AOSP project - how do I on building AOSP set a specific app as device owner?

bler0037
Level 1.5: Cupcake

I am building a AOSP-project where we have a APK, we would like to be device-owner on the build.

 

Where in the AOSP-project do we set a specific APK as device-owner?

 

Thanks!

3 REPLIES 3

bler0037
Level 1.5: Cupcake

We know it is possible to run this command "adb shell dpm set-device-owner ..." but we would like so its being done, when we build the AOSP, so we do not need to connect each device to a laptop and run the command. But it is being done on the build itself.

ReeceK
Former Community Manager

Hello @bler0037 

 

Just to confirm, are you trying to enroll fully managed using EMM? If so, you can use a QR code to download the dpc. Please let me know if this helps. You can also reach out via the public developer channel for AOSP https://source.android.com/

 

Thanks,

Reece

ReeceK
Former Community Manager

Hey @bler0037

 

Firstly, welcome to the community. 

 

Just to keep you informed, I am looking into this question for you. I will be sure to get an answer for you in the upcoming days. 

 

In the meantime, is there anything else I can support with? 


Thanks,
Reece