Datawedge: Export/Import profile Android 11/13

Solved
WE
Willem Essing
Arvato Distribution GmbH

Because Android 11 doesnt allow access to the android/data folder we are only able to export a Datawedge profile in Android 10. Is there a way to change the Datawedge save path so you can export the profile to a diferent path.

Did anyone test to import a datawedge profile into Android 13.

2 years ago
Android
ANSWERS
ZC
Zafer Cigdem
2 years ago

Hi Willem,

AFAIK, doing the ADB connection is the only way for OS11+. Did you try to copy this .db via ADB connection to the device? 

Zafer

RS
Rafael Schäfer
2 years ago

No, adb is not the only way. And just "to copy the db file to the device" isn't the problem, the problem is that you can't copy it to the datawedge app folder where datawedge is searching for it by default.

And @Willem Essing i assume you already tested this: https://discussions.soti.net/thread/alternate-solution-to-provide-read-write-execute-to-file-in-ae
(I don't have A11 Zebra devices here to verify this for you)

But you could use the Zebra OEM config app to set datawedge configuration which also includes setting the path etc. for the db file and then you need only to copy the db file via profile to the provided location:

ZC
Zafer Cigdem
2 years ago

wow that's great I did not know that changing this path allow us to access to .db file without DB for Android 11+. I'll try this. Thank you @Rafael Schäfer

If we can access this .db file without ADB, so what is the restriction to put it on as /sdcard/config/datawedge.db. If there is no, we may use Datawedge configuration by selecting XPert mode to export an XML file by pointing out the datawedge db location and run the XML to access the datawedge.db and do the related configuration by itself on the device, similar to mentioned here: SOTI Discussion Forum

Here is a example from mine, but I did use ADB connection to get the .db from OS11 device

Zafer

RS
Rafael Schäfer
2 years ago

Maybe we are looking on 2 different things:

Import: That' what I and the TE is talking about.

Export: What you seem to talk about. There, i don't see any other possibility than adb because datawedge seem never to ask where to export it's configuration and always exports it into default folder. Not sure if this changes if you change it with oemconfig as shown above to sdcard folder or so.

ZC
Zafer Cigdem
2 years ago

Okay :) I thought the question is based on a reference device, for exporting and importing from/to OS11+ devices. Thank you

Zafer

RS
Rafael Schäfer
2 years ago

More or less both but his question was about if datawedge is able to export to different folder but the verison i have (TC51 with Oreo) has not, always displaying only the one folder). So the answer is just "no" but can be done using ADB (as you mentioned) and/or maybe with this __chmod 777 script (seen in the other topic i posted the link to) but not sure if this is still working on A11.

And the import can be realigned to different file/folder but not sure if this also has an affect for the export as we are on A8 and don't needed to change that there.

MD
Matt Dermody Diamond Contributor
2 years ago

This is honestly a huge gap Zebra needs to address. I had a workaround that worked in earlier versions of A11 where you could use the Files app on the device to access the scoped storage directory and then copy that to a public directory like Download(s) that you could access through the Remote Control file manager. The most recent versions of A11 like 11-35 and A13 have restricted the Files app too so now adb is the only option that I'm aware of. It would be great if we could use MX to reconfigure DataWedge to export to a different default directory. I think the issue is that Zebra is working toward putting DataWedge into the public Play Store so that it can receive automatic updates. I am personally not too thrilled about this move to automatic Play Store updates to apps like DataWedge but it seems to be the direction Zebra is heading in order to be more EMM agnostic. Regardless, public Play Store apps are not allowed to request the MANAGE_EXTERNAL_STORAGE permission needed to be able to write files to any directory other than scoped storage on A11+. This move toward the Public Play store, and the restrictions on using that permission, are likely why we don't have the option to choose another export directory for DataWedge.

One of the core functions of a Zebra device is scanning an yet configuring the scanner behavior is so complex, now requiring ADB.

M
MNMOD@SOTI
2 years ago

Hi Willem,

Thank you for posting on SOTI Pulse!

I see that couple of answers are provided. Do any of these work for you? Did you get the information that you were looking for?

Kind regards,

Technical Support Specialist | SOTI | +1 905.624.9828 | SOTI.net l Discussion Forum | Log a Case Online l Facebook l LinkedIn l Twitter

WE
Willem Essing
2 years ago

Goodmorning, For importing the profile on the scanner ive seen some good answers.

The main issue in AE11+ is that you cannot export a datawedgeprofile that easily. Would be great if you could store the *.db file into another folder then Android/Data/. I will try it with ADB.

ZC
Zafer Cigdem
2 years ago

Hi Willem,

You are right, on Android OS11+ it's more difficult to get the .db file from a device, AFAIK it's for security of Android OS11+. What you can alternatively do is, if you have any other device whose OS version is less then 11, you can use this device and get the.db file easy from the device by even doing a remote control to the device and you can use it for OS11+ devices. Please test it first on single/some devices, but I've used it earlier it should work. 

I hope it helps. Thank you

Zafer

Solution
M
MNMOD@SOTI
2 years ago

Hi Willem,

Did you get the chance to use ADB to resolve the issue that you are facing?

Kind regards,

Technical Support Specialist | SOTI | +1 905.624.9828 | SOTI.net l Discussion Forum | Log a Case Online l Facebook l LinkedIn l Twitter

M
MNMOD@SOTI
2 years ago

Hi Willem,

I have marked the relevant post as solution. If this post did not assist you in resolving the issue and you have additional questions, please do not hesitate to reach out.

Kind regards,

Technical Support Specialist | SOTI | +1 905.624.9828 | SOTI.net l Discussion Forum | Log a Case Online l Facebook l LinkedIn l Twitter

Similar Discussions