Android Question How do i enter to correct command shell in Kiosk apps 2017

Åke Johansson Bravida

Member
Licensed User
I try to follow the Android kiosk mode tutorial.
How can i start command promt on windows 10 to execute this shell command ?

adb shell dpm set-device-owner your.package.name.here/anywheresoftware.b4a.objects.AdminReceiver2
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Look for this:
SS-2018-06-24_11.04.36.png
 
Upvote 0

Åke Johansson Bravida

Member
Licensed User
Thank you that was much better but now i got this error message


C:\Android\platform-tools>adb shell dpm set-device-owner b4a_kiosk/anywheresoftware.b4a.objects.AdminReceiver2
java.lang.SecurityException: Neither user 2000 nor current process has com.sec.enterprise.permission.MDM_PROXY_ADMIN_INTERNAL.
at android.os.Parcel.readException(Parcel.java:1620)
at android.os.Parcel.readException(Parcel.java:1573)
at android.app.admin.IDevicePolicyManager$Stub$Proxy.setActiveAdmin(IDevicePolicyManager.java:4838)
at com.android.commands.dpm.Dpm.runSetDeviceOwner(Dpm.java:110)
at com.android.commands.dpm.Dpm.onRun(Dpm.java:82)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:47)
at com.android.commands.dpm.Dpm.main(Dpm.java:38)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:257)
C:\Android\platform-tools>

How can i fix this?
 
Upvote 0

Åke Johansson Bravida

Member
Licensed User
???
Path to my project : C:\project\B4A\Kiosk2\Kiosk\Kiosk\kiosk.b4a
What is Project-Buildconfiguration (STRG-B) ?
Where can i find that?
Do you mean ctrl + b

upload_2018-6-25_18-25-34.png


Is Paket: wrong? I should change b4a.example to kiosk ?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
b4a.example should be 1st what you change when you start a new project. Do not let the defaultüackagename for your Apps.
The packagename must be unique.

It should be usally have three parts (two dots).
Like com.bravida.kiosk

Also note that your Packagename should have three parts if you want to use Firebase. So it is a good advice to start with that.

Replace com.bravida.kiosk in the shell call
>adb shell dpm set-device-owner your.package.name.here/anywheresoftware.b4a.objects.AdminReceiver2
so it should look like
>adb shell dpm set-device-owner com.bravida.kiosk/anywheresoftware.b4a.objects.AdminReceiver2
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
What is Project-Buildconfiguration (STRG-B) ?
Where can i find that?
Do you mean ctrl + b
Sorry, it is a Translation issue.
In germany we usually say STRG-B because the Key is Named STRG on german Keyboards.

I forget to use CTRL to be international.
 
Upvote 0
Top