Custom Data no longer retrieving information

Custom Data no longer retrieving information

Hi,

I've noticed that my custom data is no longer working on our new devices (TC57X Android 10).  

From the logs: "Error message received from device (Unable to read file at specified path: /internal/PIN.ini)"

This custom data rule works on the older devices; TC55 Android+ and TC56 Android Enterprise.

I'm guessing it's an Android security thing, not allowing access to the internal storage?

The file is in the only internal storage location accessible: "/sdcard/"

 

Device TC57X

OS 10

Agent 15.0.0.1110

MC v15.4

 

Custom Data 

Name: PIN

Build Type: INI File

INI File name /internal/PIN.ini

Section Name: PIN

Value Name: PIN

Data type: STRING

 

We also use the Custom Data to rename the devices (also not working), for this the INI file has the HW Serials as the Section name and the value is the easier to read device name.

 

Thanks in advance for any assistance!

7 Answers

Order By:   Standard | Newest | Votes
Rafael Schäfer | posted this 14 October 2021

Maybe try with %sdcard% before your path.

  • 0
  • 0
Adam Davidson | posted this 14 October 2021

Hi Rafael,

Thanks, just tried it "%sdcard%/PIN.ini", but still nothing.  Still getting "Unable to read file..." errors in the logs.

 

 

  • 0
  • 0
Raymond Chan | posted this 15 October 2021

If you have confirmed that the problem stems from read/write access permission of  folder/file under the updated Android firmware, then one simple solution is to relocate the .INI file in a public device directory (e.g. a subdirectory under Download or DCIM) and  custom data definition reconfigured accordingly.

 

  • 0
  • 0
Adam Davidson | posted this 15 October 2021

Hi Raymond,

I've not confirmed it is a read/write access issue.  I was just speculating.

The only folder visible on the device, either by direct USB connection or remote controlling via SOTI, is "/sdcard/".  If I use ADB I can see the entire directory tree, but I doubt the agent has the same level of access.

The custom data is working on the TC56 (OS7 AE), but not the TC57X (OS10 AE), this is what's making me think that something has changed with permissions.

 

  • 0
  • 0
Rafael Schäfer | posted this 15 October 2021

leave the / away when using %sdcard% then it should work when file is really in sdcard folder which should be the same as internal.

  • 1
  • 0
Adam Davidson | posted this 15 October 2021

You're a star!  Thanks Rafael.

I was using the format that the File Sync rule uses, it includes the forward slash.

 

  • 0
  • 0
Rafael Schäfer | posted this 15 October 2021

No problem. Helping each other is important. :)

Please marc my post before than as the solution so others can see that this is problem solved.

  • 0
  • 0

Give us your feedback
Give us your feedback
Feedback