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.
adb shell pm -h | grep -A20 'install ' | grep '\-g:'
returns:-g: grant all runtime permissions
. I think it's pretty descriptive.pm
(oradb 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.