Custom Data no longer retrieving information

Solved
AD
Adam Davidson
Boots Global account

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!

4 years ago
Android
ANSWERS
RS
Rafael Schäfer
4 years ago

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

Solution
RS
Rafael Schäfer
4 years ago

Maybe try with %sdcard% before your path.

AD
Adam Davidson
4 years ago

Hi Rafael,

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

RC
Raymond Chan Diamond Contributor
4 years ago

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.

AD
Adam Davidson
4 years ago

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.

AD
Adam Davidson
4 years ago

You're a star!  Thanks Rafael.

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

RS
Rafael Schäfer
4 years ago

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.