0

I'm trying to get google play store to work on a proprietary custom ROM. I was given a hack to do this with my device. It's very hit or miss but I can get it working sometimes.

When I install Google Services Framework, Google Accounts Manager, and Services info app, the instructions say to use

pm install -g /package.apk

My understanding is that pm install is pretty much the same as just clicking the apk and installing it. But what does the -g flag accomplish? The reason I ask is because I'm running into many problems, and I'd like to have a better understanding of everything for troubleshooting purposes. Thanks.

7
  • 1
    adb shell pm -h | grep -A20 'install ' | grep '\-g:' returns: -g: grant all runtime permissions. I think it's pretty descriptive. Oct 8 at 13:51
  • @IrfanLatif OOhhh wow so it's not global it's actually short for grant. Thanks! Oct 8 at 13:59
  • For any future viewers I wanted to add this link. Finally found a reference to all of the different options for pm install here Oct 8 at 17:44
  • 1
    You can just run pm (or adb shell pm if running from a PC), and all options are displayed. It's a norm for commandline applications to show a brief help with -h or --help argument. Oct 8 at 17:57
  • 1
    @IrfanLatif as it answers the question, maybe you make it into an answer of the question?
    – Izzy
    Oct 8 at 20:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.