Git Product home page Git Product logo

Comments (13)

RaziaSandhu avatar RaziaSandhu commented on June 9, 2024 1

Thank you so much, it works without rooting.
https://sdgsystems.com/blog/implementing-kiosk-mode-android-part-3-android-lollipop
this link helped me.

from kioskmode-android.

derohimat avatar derohimat commented on June 9, 2024

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

from kioskmode-android.

ravenet avatar ravenet commented on June 9, 2024

Hi,

I need to install in the actual device so I don't think I can access the terminal.

any other way.
Thanks

from kioskmode-android.

derohimat avatar derohimat commented on June 9, 2024

@ravenet for access terminal and execute that command you can access from your laptop, and access devices via ADB

from kioskmode-android.

hzshang avatar hzshang commented on June 9, 2024

@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

from kioskmode-android.

RaziaSandhu avatar RaziaSandhu commented on June 9, 2024

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'

from kioskmode-android.

derohimat avatar derohimat commented on June 9, 2024

@hzshang @RaziaSandhu it's because your phone actually already has device owner, you must remove it before run the command

from kioskmode-android.

derohimat avatar derohimat commented on June 9, 2024

https://stackoverflow.com/questions/26561029/android-uninstall-device-administrator-using-adb

from kioskmode-android.

RaziaSandhu avatar RaziaSandhu commented on June 9, 2024

I've tried all these solution but no success. I have no accounts and device admin is unchecked in settings.

from kioskmode-android.

RaziaSandhu avatar RaziaSandhu commented on June 9, 2024

This code worked perfectly on rooted device, but not on simple devices.

from kioskmode-android.

derohimat avatar derohimat commented on June 9, 2024

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:

  1. With app pinning, the device user can temporarily pin specific apps to the screen.

  2. 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

from kioskmode-android.

RaziaSandhu avatar RaziaSandhu commented on June 9, 2024

Need to root the device first?

from kioskmode-android.

derohimat avatar derohimat commented on June 9, 2024

@RaziaSandhu no need to rooting first. Just follow step by step.

OK, you are wellcome

from kioskmode-android.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.