Using Shell in Legacy Plugin

Using Shell in Legacy Plugin

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 :) 

 

8 Answers

Order By:   Standard | Newest | Votes
christopheBERNARD | posted this 17 March 2021

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

 

  • 1
  • 0
Leon Callsen | posted this 17 March 2021

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. 


  • 0
  • 0
Raymond Chan | posted this 17 March 2021

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.

 

  • 0
  • 0
Leon Callsen | posted this 17 March 2021

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? 

  • 0
  • 0
Raymond Chan | posted this 17 March 2021

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.

 

  • 1
  • 0
Matt Dermody | posted this 17 March 2021

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. 

  • 1
  • 0
Leon Callsen | posted this 19 March 2021

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. 

  • 0
  • 0
Raymond Chan | posted this 19 March 2021

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.

 

  • 0
  • 0

Give us your feedback
Give us your feedback
Feedback