Forum Discussion

bler0037's avatar
bler0037
Level 1.5: Cupcake
2 years ago

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

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!

  • bler0037's avatar
    bler0037
    Level 1.5: Cupcake
    2 years ago

    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's avatar
      ReeceK
      Former Community Manager
      2 years ago

      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's avatar
    ReeceK
    Former Community Manager
    2 years ago

    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