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.

  • 1
    adb shell pm -h | grep -A20 'install ' | grep '\-g:' returns: -g: grant all runtime permissions. I think it's pretty descriptive. Commented Oct 8, 2021 at 13:51
  • @IrfanLatif OOhhh wow so it's not global it's actually short for grant. Thanks! Commented Oct 8, 2021 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 Commented Oct 8, 2021 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. Commented Oct 8, 2021 at 17:57
  • 1
    @IrfanLatif as it answers the question, maybe you make it into an answer of the question?
    – Izzy
    Commented Oct 8, 2021 at 20:45


You must log in to answer this question.

Browse other questions tagged .