[ONE Q&A, Help & Troubleshooting] IlyesDaoudi:
Hello everyone,

I own a OnePlus One 64GB, running CM11s stock rom + Xposed + Boeffla kernel 2.3 stable, rooted, unlocked bootloader, TWRP(2.8.5.1).

My issue came out of nowhere. Now, without any action of mine (really, at morning I took my OPO, and discovered all of this), I cannot:

- Install or update from Google Play

- Install or update from internal memory

- Install with command from pc "adb install "Path/to/apk"

- Restore app or app+data from titanium backup

In each one of these cases, I get the same error: "Insufficient Storage Space ..." (even in my windows console after adb install).

Of course I have plenty of space available.

Here is what I tried so far (you can find common "solutions" to this problem across the internet, but none worked for me):

- Wiping cache

- Wiping dalvik cache

- Fix permission via TWRP

- Delete cache and/or data of G.Play, Play services and google framework

- Delete cache and/or data of download manager (see why below)

- Manually setting the permission of data/local to 755 with "chmod" in terminal emulator (look red line in logcat: "permission revoke")

- Delete the folder "/data/app-lib/APPNAME" related to the apps which won't update

- Look for leftover .odex files (http://newton.cx/~peter/2013/07/fixing-erroneous-insufficient-storage-available-errors-on-android/)

- Searching around on the internet for hours...

This is a VERY COMMON issue, and there was never ONE solution. For different people/devices, one solution among the above has worked when the others don't. Still, in EACH CASE, the concerned person never knew what caused the problem, only assumptions from other forum posts, or after looking at logcats but not really understanding them and then do things without knowing why.

Of course, I wanna find a solution for my device, but I am also willing to provide the community with a dedicated solution. We don't know if there is one or multiple cause (at least this is what I can conclude from my personal research).

Now, I used Android device monitor to see what is happening on my device when I try to install or update any app (this is for the google play case, but for every other method, the error message is the same, only the path to the file is different):

03-06 18:37:52.966: D/Finsky(2167): [1] LightPurchaseFlowActivity.handleAppPermissionResult: Permissions accepted: com.appgenix.bizcal
03-06 18:37:52.966: D/Finsky(2167): [1] InstallerImpl.requestInstall: Request install of com.appgenix.bizcal v=201200 for single_install
03-06 18:37:52.976: D/Finsky(2167): [1] InstallerImpl.kick: Installer kick - starting com.appgenix.bizcal
03-06 18:37:53.216: I/qtaguid(2167): Failed write_ctrl(u 126) res=-1 errno=22
03-06 18:37:53.216: I/qtaguid(2167): Untagging socket 126 failed errno=-22
03-06 18:37:53.226: W/NetworkManagementSocketTagger(2167): untagSocket(126) failed with errno -22
03-06 18:37:53.646: I/Timeline(2167): Timeline: Activity_idle id: android.os.BinderProxy@440e0ec0 time:576066
03-06 18:37:53.656: I/qtaguid(2167): Failed write_ctrl(u 126) res=-1 errno=22
03-06 18:37:53.656: I/qtaguid(2167): Untagging socket 126 failed errno=-22
03-06 18:37:53.656: W/NetworkManagementSocketTagger(2167): untagSocket(126) failed with errno -22
03-06 18:37:53.826: D/Finsky(2167): [1] DownloadImpl.setState: com.appgenix.bizcal from null to UNQUEUED.
03-06 18:37:53.826: D/Finsky(2167): [1] DownloadQueueImpl.add: Download com.appgenix.bizcal added to DownloadQueue
03-06 18:37:53.826: D/Finsky(2167): [1] DownloadImpl.setState: com.appgenix.bizcal from UNQUEUED to QUEUED.
03-06 18:37:53.826: I/installd(256): free_cache(2210712) avail 29941784576
03-06 18:37:53.856: D/Finsky(2167): [1] DownloadQueueImpl.startDownload: Download com.appgenix.bizcal starting
03-06 18:37:53.886: D/Finsky(2167): [130] 7.run: Enqueued com.appgenix.bizcal as content://downloads/my_downloads/13
03-06 18:37:53.896: D/Finsky(2167): [1] DownloadImpl.setState: com.appgenix.bizcal from QUEUED to DOWNLOADING.
03-06 18:37:53.896: D/Finsky(2167): [1] DownloadQueueImpl.onStart: com.appgenix.bizcal: onStart
03-06 18:37:53.926: I/DownloadManager(1799): Download 13 starting
03-06 18:37:53.956: D/Finsky(2167): [1] DownloadQueueImpl.notifyProgress: com.appgenix.bizcal: onProgress 0/-1 Status: 192.
03-06 18:37:54.996: D/MobileDataStateTracker(946): default: setPolicyDataEnable(enabled=true)
03-06 18:37:55.206: D/Finsky(2167): [1] DownloadQueueImpl.notifyProgress: com.appgenix.bizcal: onProgress 2210712/2210712 Status: 200.
03-06 18:37:55.236: I/DownloadManager(1799): Download 13 finished with status SUCCESS
03-06 18:37:55.276: D/Finsky(2167): [1] DownloadBroadcastReceiver.onReceive: Intent received at DownloadBroadcastReceiver
03-06 18:37:55.286: D/Finsky(2167): [1] DownloadImpl.setState: com.appgenix.bizcal from DOWNLOADING to SUCCESS.
03-06 18:37:55.286: D/Finsky(2167): [1] DownloadQueueImpl.onComplete: com.appgenix.bizcal: onComplete
03-06 18:37:55.286: D/Finsky(2167): [1] DownloadQueueImpl.remove: Download com.appgenix.bizcal removed from DownloadQueue
03-06 18:37:55.286: D/Finsky(2167): [1] InstallerTask.startApplyingPatch: Prepare to patch com.appgenix.bizcal from content://downloads/my_downloads/13
03-06 18:37:55.286: I/installd(256): free_cache(0) avail 29941768192
03-06 18:37:57.766: D/Finsky(2167): [1] 9.onPostExecute: Successfully applied patch to update com.appgenix.bizcal
03-06 18:37:57.766: D/Finsky(2167): [1] InstallerTask.startInstaller: Begin install of com.appgenix.bizcal
[COLOR="Red"]03-06 18:37:57.986: I/installd(256): free_cache(533725184) avail 29934342144
03-06 18:37:57.996: W/ActivityManager(946): No content provider found for permission revoke: file:///data/data/com.android.vending/cache/copies/com.appgenix.bizcal1571224167.apk
03-06 18:37:58.186: D/Finsky(2167): [147] 1.packageInstalled: Package install status for com.appgenix.bizcal is -4
03-06 18:37:58.256: W/Finsky(2167): [1] 4.installFailed: Install failure of com.appgenix.bizcal: -4 null
03-06 18:37:58.266: D/Finsky(2167): [1] InstallerTask.cancelCleanup: Cancel running installation of com.appgenix.bizcal[/COLOR]
03-06 18:38:02.486: W/InputMethodManagerService(946): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@42d36160 attribute=null, token = android.os.BinderProxy@42758c68
: E/(): Device disconnected

(I colored lines where error occurs)

:confused: : I observed that when I update this app from G.Play, the download progress bar goes from 0% up to 16% every time, then show "installing...", and then the error message. I though it may be related to the google play cache or download manager. Same for others apps (but different %).

Here are some useful links I found while going through the internet (I'll add more tomorrow):

http://forum.cyanogenmod.org/topic/...tions-in-play-store-bug-cm-or-something-else/

I am willing to do tests, or anything else that could help for understanding where is this coming from. :good:

Thank you for reading this, and for help.

Cheers,

Debye