Help Needed
Hi,
I am planning to create an app where an employee will scan code from the new phone and give me the device admin access to be able to lock/unlock phone based on requirement.
If the phone is locked, then even after factory reset or custom os it should automatically install my app on internet connection and lock the phone accordingly.
Can anyone please guide me on how to build such a solution?
Hey! let me help you where i can,
If for Android only, you would need to modify the AndroidManifest.xml to declare your app as a Device Administrator, specifying the necessary policies it can enforce (like locking or wiping data).
Then, the application you want to create is a Device Policy Controller (DPC) application, which, when provisioned as the "Device Owner," manages corporate-owned devices within the Android Enterprise framework.
To scan a code from the new phone and give you the device admin access, you can utilize Android Enterprise's QR code provisioning method during the initial device setup (after a factory reset). The user scans a QR code that tells the device to install your DPC app and establish it as the Device Owner.
For your last question, i have no idea how to do that, maybe someone else can help with that
If you have any other questions, feel free to ask!
im trying to do something like this and nothing is working for me i can get it to do the setup process with qr code but my app is not device owner or admin so it cant do what it needs to do