Copy File to android device

JZ
Jürgen Zahn
GOD Barcode Marketing mbH

Hello,

how can I copy a file to my Android-device?

I have e.g. tried copying a file through a package, but it did not succeed (Destination: 1:\MiniIni.txt\

6 years ago
Android
ANSWERS
MD
Matt Dermody Diamond Contributor
6 years ago

That destination looks a little strange and is likely your issue. This is Android, not Windows! You should be looking for something like /sdcard/MiniIni.txt

JZ
Jürgen Zahn
6 years ago
MD
Matt Dermody Diamond Contributor
6 years ago

The scripting documentation is admittedly lacking. There are many scripts not even documented and there also is poor separation between Windows and Android capabilities, and even Android+ and Android Enterprise capabilities. This script for instance references a C drive which is almost certainly a reference to a Windows device.

What type of devices are you managing? How are they enrolled (eg. Android+, Android Enterprise Profile Owner - Managed Profile, Android Enterprise Device Owner - Managed Device, Samsung Knox, etc). 

RC
Raymond Chan Diamond Contributor
6 years ago

Hi Jurgen,

I don't know which device model and brand you are using, so I'm not sure how its firmware mounts the file systems.  Assuming your target location is the Download directory in the internal flash (NOT the external SD-card), you can try 

   %sdcard%/Download

or 

  /mnt/sdcard/Download

or

 /storage/emulated/0/Download

JZ
Jürgen Zahn
6 years ago

Hello Matt, Hello Chan.

- I am using a TC52 (Zebra) with Android 8.1

- I have installed MobiControl via Google Play Store

- I am using Work- Profiles

- It looks like I was struggling because of the visibility of my file...

-  "%sdcard%/Download" works!

Thanks a lot for your help!

MD
Matt Dermody Diamond Contributor
6 years ago

If you installed the agent directly from the Play Store then you are most likely using Managed Profile and not Managed Device (AEDO) so your management capabilities are going to be severely limited. Managed Profile is designed for BYOD use cases and it is unlikely that a Zebra TC52 is being used for BYOD as those are traditionally COSU / Dedicated devices. 

JZ
Jürgen Zahn
6 years ago

Hello Matt,

thank you for the clarification.