100% found this document useful (1 vote)
104 views

Android SDK Tools Only: Adb Shell

This document provides instructions for fixing the "insufficient storage" error on Android devices without rooting. It recommends installing Android SDK tools on a computer and using ADB commands like "adb shell" and "su -" to gain root access on the phone. It then has commands to check and change the install location setting to install apps on internal storage instead of the SD card. Restarting after changing the setting may resolve the error. It also includes some alternative methods like deleting duplicate folders in /data/app-lib or changing folder ownership if the first method does not work.

Uploaded by

NuhuMabiriizi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
104 views

Android SDK Tools Only: Adb Shell

This document provides instructions for fixing the "insufficient storage" error on Android devices without rooting. It recommends installing Android SDK tools on a computer and using ADB commands like "adb shell" and "su -" to gain root access on the phone. It then has commands to check and change the install location setting to install apps on internal storage instead of the SD card. Restarting after changing the setting may resolve the error. It also includes some alternative methods like deleting duplicate folders in /data/app-lib or changing folder ownership if the first method does not work.

Uploaded by

NuhuMabiriizi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

3/28/2016

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

2 and com.waze3 .Insuchcase,you'llhavetodeletefolders com.waze1 and com.waze2 ,butdo


notdelete com.waze3 .

Afterdeletingallduplicatefolders,restartyourdeviceandrunGooglePlayStoreappagain.Diditfix
theissue?
Ifyou'restillexperiencingtheissue,gobacktotheterminalemulatororADBshell,becomerootagain
( su ),thenrun cd/data/applib andfinallyrunthiscommandinordertorecursivelyfix
ownerships:
chwonsystem:system*

Nowrestartyoursystem( reboot )andcrossyourfingers.Sometimesanotherappmesseswiththe


ownershipofthesefolders,hencemakingsystemtheirownerandgroupfixestheissue.
Goodluck.
share improvethisanswer

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

You might also like