Using Shell in Legacy Plugin

LC
Leon Callsen
Taneri Consulting GmbH (TCG Global)

Hello Guys, 

I have a little problem with Android devices with Oreo and above. 
I need access to the folder /sdcard/usr/enterprise. 

Do you have any ideas how can I copy or transfer a file into this direction? 
I have no access in a direct way. 

Is there any way to transfer this file or getting access to this direction? 

Would be a pleasure if you can solve my problem :) 

4 years ago
Android
ANSWERS
C
Christophe
4 years ago

Hello,

I don't use android entreprise actually but why you don't use file sync rules for to do that ?

it's the best way for this

https://www.soti.net/mc/help/v14.0/en/console/data/filesyncrules/using.html

thanks

LC
Leon Callsen
4 years ago

Hey :) Thanks for your answer. 
We have to deploy the config gile for the EHS from Zebra. 
The folder for it only exist after the first start of the Enterprise Home Screen. 

Anyway the file sync rule is a good idea. 
I´ll run a little test with it. 
At the moment the devices have one profile with two packages. 
One with the application and one with the settings. 


RC
Raymond Chan Diamond Contributor
4 years ago

From your screenshot, I can at least spot one problem.   Use "copy" instead of "cp".

Whether or not your specify your source and destination directory properly is another issue.

LC
Leon Callsen
4 years ago

Thanks for that !
I´ll try it. 

Is the shell in this legacy plugin based on the windows shell? 

Another Question: 
Can I specify a file sync rule only for one manufacturer or device model? 

RC
Raymond Chan Diamond Contributor
4 years ago (edited 4 years ago)

Can you specify a file sync rule only for one manufacturer or device model?

Yes!   Create a virtual device group/group-subtree to automatically/manually include targeted device brand(s)/model(s).  Then apply your file-sync rule to this virtual device group/group-subtree.

MD
Matt Dermody Diamond Contributor
4 years ago

The path you're looking for is /enterprise/usr/ and it is already on the device, you just dont get visibility to it through Remote Control. File Sync or Packages should be able to deliver the .xml config file to that directory however. 

LC
Leon Callsen
4 years ago

Thanks for that! 
Is there any possibility to become this directory visible? 

I know it belongs to the Android Enterprise regulatorys but we want to switch from TC8000 to TC8300
and it would be much easier for us if we have access to this folder. 

RC
Raymond Chan Diamond Contributor
4 years ago

I remember there was another post in the last two weeks mentioning about permission for specific file on some Android+ Zebra device using script command like

    shellexecute chmod 777 /enterprise/usr/abc.xml

I have no Zebra devices to test it out, nor do I know if you can use this approach to change the permission of the whole directory /enterprise/usr.  You can give it a go yourself.  Good luck.