Android SDK Tools Only: Adb Shell
Android SDK Tools Only: Adb Shell
FixGooglePlayinsufficientstorageerrorwithoutrootingmyphoneAndroidEnthusiastsStackExchange
Ifyouchangeyourmindanddecidetorootyourphone,IsuggestyouinstallAndroidSDKTools
Onlyonyourcomputer,thenrootyourphone,gotoAndroid'sSettings,thenDeveloperOptions,
thenactivateUSBDebugging.Afteryoudothis,useaUSBcabletoconnectyourAndroiddeviceto
thecomputerwhereyouinstalledtheSDKtools.
TheSDKtoolshaveADB(Androiddebugger).Openashellwindow,gotothefolderwheretheSDK
toolswereinstalled,lookforafoldernamedplatformtoolsandaccessit.Insidethisfoldertherewill
beanexecutablebinaryfilenamedadb(oradb.exe,ifyou'reusingWindows).Thenrunthefollowing
commandinordertomakeADBaccessthecommandpromptofyourAndroiddevice:
adbshell
Nowthatyou'reinyourAndroiddeviceshell(commandsinterpreter),runthiscommandinorderto
becomeroot(alsoknownassuperuser):
su
Afterwards,runthiscommandtocheckwhat'syoursystem'sdefaultAPKinstalllocation:
pmgetinstalllocation
Ifthecommandabovereturns2,itmeansthattheAndroidpackagemanager( pm )isincorrectly
configuredtoinstallAPKsinyourexternalstorage(e.g.microSDcard)insteadofinyourdevice's
internalstorage(whichisthecorrectone).
Inordertofixit,runthiscommand:
pmsetinstalllocation1
1meansinternalstoragemedia.
Nowrestartyourdevicewiththiscommand:
reboot
AfteryourAndroidsystemisrestarted,runtheGooglePlayStoreappandtrytoinstall/update
something.Ifitinstalls/updates,theissue'sbeenfixed.
Ifoundthissolutionbymyselfanditwastheonlyonethatworkedforme.MydeviceisaMotorola
RAZRHD(XT925)runningAndroid4.4.2(stockROM).Ithad2GBoffreespaceinitsinternal
storageand6GBoffreespaceinitsexternalstoragewhentheissuehappened,butnoneoftheother
solutionsworked:cleaningGooglePlayStore'scacheanddata,wipingthe/cachepartition,cleaning
theDalvik/ARTcache,uninstallingtheupdatesofGooglePlayStoreandGooglePlayServices,
runningfstrimonthe/dataand/cachepartitions,remounting/systemasreadwriteandthenrunning
fstrimonit...Nothing.
Asolutionthatseemstoworkinsomedevices(youcantryitifmysolutiondoesn'tsolveyour
problem)istoaccess/data/applibandthendeleteallduplicatefoldersexcepttheoneswith
thelargestnumber.
Example:let'ssupposethatin /data/applib therearethefolders com.waze1 , com.waze
http://android.stackexchange.com/questions/112540/fixgoogleplayinsufficientstorageerrorwithoutrootingmyphone
1/2
3/28/2016
FixGooglePlayinsufficientstorageerrorwithoutrootingmyphoneAndroidEnthusiastsStackExchange
Afterdeletingallduplicatefolders,restartyourdeviceandrunGooglePlayStoreappagain.Diditfix
theissue?
Ifyou'restillexperiencingtheissue,gobacktotheterminalemulatororADBshell,becomerootagain
( su ),thenrun cd/data/applib andfinallyrunthiscommandinordertorecursivelyfix
ownerships:
chwonsystem:system*
editedJan13at2:31
answeredJan13at1:50
YuriSucupira
31
adda
comment
ThisworkedformeonmySonyXperiaE3andmyGalaxyNote10.1:
a)settingsappsallgoogleplayuninstallupdates(youwillhavetodothiseverytimeyourestart)
b)Ifthisdoesn'twork:clearcachewithanapplike1tapcachecleanerorsettingsstoragetap
cacheclearcache.:)
share improvethisanswe
http://android.stackexchange.com/questions/112540/fixgoogleplayinsufficientstorageerrorwithoutrootingmyphone
2/2