Play Store is unable to update certail large apps, File not found exception

tgp1994

Member
Sep 14, 2011
6
0
0
Visit site
I have a OnePlus 6T phone with stock Oxygen OS 9.0.17, rooted with Magisk and running the Xposed framework.

At some point, my phone stopped being able to update larger apps (Fallout Shelter, and 1+'s Gallery app for example). There will be a notification saying that the update failed, and to try again later. In ADB, I see the following output just as the error occurs:

10-19 14:54:30.720: I/Finsky:download_service(30305): [8569] mgh.a(12): enqueue(request_id=1594, files_to_download=1, context[group_id=com.oneplus.gallery], display_data[invisible=false, title=Additional file for OnePlus Gallery], network_restrictions=4)
10-19 14:54:30.723: E/Finsky:download_service(30305): [8569] mfj.a(72): Failed to create downloadStatus files.
10-19 14:54:30.723: E/Finsky:download_service(30305): java.io.IOException: No such file or directory
10-19 14:54:30.723: E/Finsky:download_service(30305): at java.io.UnixFileSystem.createFileExclusively0(Native Method)
10-19 14:54:30.723: E/Finsky:download_service(30305): at java.io.UnixFileSystem.createFileExclusively(UnixFileSystem.java:281)
10-19 14:54:30.723: E/Finsky:download_service(30305): at java.io.File.createNewFile(File.java:1345)
10-19 14:54:30.723: E/Finsky:download_service(30305): at mfj.a(PG:36)
10-19 14:54:30.723: E/Finsky:download_service(30305): at mgh.a(PG:19)
10-19 14:54:30.723: E/Finsky:download_service(30305): at srw.a(PG:6)
10-19 14:54:30.723: E/Finsky:download_service(30305): at bdgj.b(PG:2)
10-19 14:54:30.723: E/Finsky:download_service(30305): at bdbs.a(PG:5)
10-19 14:54:30.723: E/Finsky:download_service(30305): at bdbw.a(PG:3)
10-19 14:54:30.723: E/Finsky:download_service(30305): at bcug.run(PG:2)
10-19 14:54:30.723: E/Finsky:download_service(30305): at bdbq.run(PG:2)
10-19 14:54:30.723: E/Finsky:download_service(30305): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
10-19 14:54:30.723: E/Finsky:download_service(30305): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
10-19 14:54:30.723: E/Finsky:download_service(30305): at java.lang.Thread.run(Thread.java:764)
10-19 14:54:30.736: I/chatty(26189): uid=10216(com.android.vending) Binder:26189_4 identical 1 line
10-19 14:54:30.737: I/Finsky:download_service(30305): [8557] mgh.h(20): onRemove(request_id=1593, files_to_download=1, group_id=com.oneplus.gallery, display_data[invisible=false, title=OnePlus Gallery], network_restrictions=4, status=succeeded, bytes_downloaded=89009779, retry[count=0, next_retry=n/a])
10-19 14:54:30.737: I/chatty(26189): uid=10216(com.android.vending) Binder:26189_4 identical 1 line
10-19 14:54:30.739: W/Finsky(26189): [2] qld.k(1): IT: Cleanup running installation of com.oneplus.gallery (..obb_main)
10-19 14:54:30.740: I/Finsky(26189): [8442] mnz.d(1): getDownloads()
10-19 14:54:30.740: I/chatty(26189): uid=10216(com.android.vending) LightweightExec identical 2 lines
10-19 14:54:30.740: W/Finsky(26189): [8550] mea.run(5): Exception while deleting file:///storage/emulated/0/Android/data/com.android.vending/files/installer/-820748809/1603144449211: java.lang.IllegalArgumentException: Unknown URL file:///storage/emulated/0/Android/data/com.android.vending/files/installer/-820748809/1603144449211
10-19 14:54:30.740: I/Finsky(26189): [8442] qiv.run(12): IT: Running resource fetching of ..obb_main canceled.
10-19 14:54:30.740: I/chatty(30305): uid=10216(com.android.vending) Binder:30305_3 identical 1 line
10-19 14:54:30.741: I/Finsky:download_service(30305): [8569] mgh.c(1): getDownloads().
10-19 14:54:30.742: I/Finsky(26189): [2] qih.S(1): Installer: stopping tracking of task: com.oneplus.gallery
10-19 14:54:30.743: I/chatty(26189): uid=10216(com.android.vending) Binder:26189_4 identical 1 line
10-19 14:54:30.743: I/Finsky(26189): [2] qih.S(1): Installer: stopping tracking of task: com.oneplus.gallery
10-19 14:54:30.744: I/Finsky(26189): [2] qih.I(12): Installer: Notifying status update. package=com.oneplus.gallery, status=DOWNLOAD_ERROR
10-19 14:54:30.753: I/Finsky(26189): [2] vwq.a(25): Showing notification: [ID=com.oneplus.gallery, Tag=null, Title=Can't update OnePlus Gallery, Message=Try again, and if it still doesn't work, <a href="https://support.google.com/googleplay/?p=fix_download_install&hl=en&error=7&ctx=com.oneplus.gallery&isid=mzdWd4F0SBerR2nQib2wUA">see common ways to fix the problem </a>, channelId=security-and-errors, targetType=1, returnCode=4, uiElementType=930]
(Full log of update session attached)
View attachment updateerror.zip

As far as I can tell, it's failing to create a "downloadStatus" file due to no such file or directory, but I have no idea what the details of that error are. I can verify that the data is being downloaded to a temporary directory and the directory exists, but that's as far as I can go with my troubleshooting. I'd like to be able to solve this problem without doing a full system reinstall, can anyone offer any advice for how I can further troubleshoot this?

Thanks in advance!
 
Last edited:

Rukbat

Retired Moderator
Feb 12, 2012
44,529
26
0
Visit site
Are you sure you have sufficient free space in the storage/emulated partition (that's where downloads go) for the file? (Use a terminal emulator and issue

df

to see. The emulated or sd card partition is the one you're downloading to.)

It looks as if it's failing right at the top of the dump you pasted - download_service is failing as soon as it starts. That's usually due to no free space.
 

tgp1994

Member
Sep 14, 2011
6
0
0
Visit site
Hi Rukbat,

I can confirm that /storage/emulated is at 36% capacity right now. I also verified that I was able to copy a file to the destination data folder that it was using to download to. I meant to attach a full log of my adb session during the update, I'll try to reupload it in case that's any help.

Edit: Uploaded, please see my OP for the attachment.
 
Last edited:

mustang7757

Super Moderator
Moderator
Feb 6, 2017
91,482
6,091
113
Visit site
If you go to play store ,then settings at the bottom your play protect certification say "Device is Certified " ?
 

tgp1994

Member
Sep 14, 2011
6
0
0
Visit site
If you go to play store ,then settings at the bottom your play protect certification say "Device is Certified " ?

My device shows as not certified. I tried looking into why Magisk wasn't hiding properly and started going down this long rabbit hole of all of these mods I needed to install and tweaks to make, so I gave up since I was only trying to get the Netflix app to run properly. Just out of curiosity, why would failing SafetyNet cause file I/O errors during larger app downloads? (FWIW I have Magisk 20.4)
 

mustang7757

Super Moderator
Moderator
Feb 6, 2017
91,482
6,091
113
Visit site
My device shows as not certified. I tried looking into why Magisk wasn't hiding properly and started going down this long rabbit hole of all of these mods I needed to install and tweaks to make, so I gave up since I was only trying to get the Netflix app to run properly. Just out of curiosity, why would failing SafetyNet cause file I/O errors during larger app downloads? (FWIW I have Magisk 20.4)
Not being certified will cause app compatibility issue and even being downloaded, I don't know if there a work around for this but best to ask the guys at xda forums .
 

mustang7757

Super Moderator
Moderator
Feb 6, 2017
91,482
6,091
113
Visit site
This happens when you root, unlock bootloader,magisk,twrp breaks safety net for being trusted device ...so see if anyone has a workaround
 

tgp1994

Member
Sep 14, 2011
6
0
0
Visit site
Message posted, thank you for your help mustang. I have a bad feeling I may be looking at a system reflash here, but fingers crossed that it may only be a few commands I need to run.
 

mustang7757

Super Moderator
Moderator
Feb 6, 2017
91,482
6,091
113
Visit site
Message posted, thank you for your help mustang. I have a bad feeling I may be looking at a system reflash here, but fingers crossed that it may only be a few commands I need to run.
Your welcome !
Yeah see if you can get more info from xda , if not I can ask around see what I can come up with .
 

mustang7757

Super Moderator
Moderator
Feb 6, 2017
91,482
6,091
113
Visit site
See if this works
Open Magisk enable Magisk Hide and check (put a tick) on PlayStore. Then clear app data for PlayStore.
 

Forum statistics

Threads
942,910
Messages
6,916,480
Members
3,158,736
Latest member
Dawncompton