[Android-development] run APK with --user (AndroidForWork Environment)

ekke ekke at ekkes-corner.org
Wed Feb 15 17:19:01 CET 2017


Hi,

I'm just doing first time development for a customer with AndroidForWork

(will blog about the details later)

I can run a Debug Build from QtCreator and the App appears twice: in
personal area and in work area.

That's expected.

QtCreator always runs the APP in private area.

With AndroidForWork there are two users at the device, per ex

(from
https://developer.android.com/work/managed-profiles.html#testing_apps)

$ *adb shell pm list users*
UserInfo{0:Drew:13} running
UserInfo{10:Work profile:30} running

Is there a way to tell QtCreator to run the Debug App for a specific user ?

$ adb shell am start --user 10 \
...

Thanks for help

ekke

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/android-development/attachments/20170215/806a3f15/attachment.html>


More information about the Android-development mailing list