Closed ravenet closed 6 years ago
You must set your app as Device Owner (without Google Account Signed In)
Screen Pinning Android Lollipop without Rooting set Your App as Admin/Owner, please open terminal
adb shell dpm set-device-owner net.derohimat.kioskmodesample/.AdminReceiver
Hi,
I need to install in the actual device so I don't think I can access the terminal.
any other way. Thanks
@ravenet for access terminal and execute that command you can access from your laptop, and access devices via ADB
@derohimat I install app and then run code in Android Studio shell
adb shell dpm set-device-owner net.derohimat.kioskmodesample/.AdminReceiver
but it throws error
Not allowed to set the device owner because there are already some accounts on the device
Can you help me? My android is 7.0,Thanks
Not working always gives error even after factory reset. 'Not allowed to set the device owner because there are already some accounts on the device'
@hzshang @RaziaSandhu it's because your phone actually already has device owner, you must remove it before run the command
I've tried all these solution but no success. I have no accounts and device admin is unchecked in settings.
This code worked perfectly on rooted device, but not on simple devices.
this is a reference, hope it will help you @RaziaSandhu since android 5.0 :
Android 5.0 Lollipop introduced two new ways to configure Android devices for a single purpose:
With app pinning, the device user can temporarily pin specific apps to the screen.
With lock task mode, a user can’t escape the app and the Home and Recents buttons are hidden. Additionally, lock task mode gives the IT administrator a more robust way to manage COSU devices, as discussed below.
detail from here.
https://developer.android.com/work/cosu.html#pinning
and here some reference too https://sdgsystems.com/blog/implementing-kiosk-mode-android-part-3-android-lollipop
Need to root the device first?
Thank you so much, it works without rooting.
https://sdgsystems.com/blog/implementing-kiosk-mode-android-part-3-android-lollipop
this link helped me.
@RaziaSandhu no need to rooting first. Just follow step by step.
OK, you are wellcome
Hi, You have done a nice job and there are a few issues.
So I need those activities would be blocked can you help . Thank you