Unable to install apps and games from Google Play


pacmankillers

Members
Mar 10, 2022
3
15
Hello everyone

I have written this post because I have not found an answer or solution to my problem.

I have a Mi 10t Pro with Android 12 (Xiaomi EU - MIUI 13) and a very serious problem, I have tried to download apps and games from the Google Play Store but I always get an error "A problem occurred while downloading, try again".

The error code that marks the system report is "-7", however, there is nothing on the internet that explains how to fix it.

So, I checked the store permissions and it turns out that the option to access internal system storage is not enabled, however I can't enable it because it appears blocked.

To confirm this I tried to use a logcat and apparently the error is that, the application can not write to the system because it has no permissions.

I attach the logcat here:



03-30 23:37:43.994 E/Finsky:background(1456): [239] jpm.u(72): Failed to create downloadStatus files.
03-30 23:37:43.994 E/Finsky:background(1456): java.io.IOException: Can't create file:///storage/emulated/0/Android/obb/com.android.vending/com.microsoft.office.officehubrow/temp.main.42890251.com.microsoft.office.officehubrow.obb
03-30 23:37:43.994 E/Finsky:background(1456): at jpm.u(PG:71)
03-30 23:37:43.994 E/Finsky:background(1456): at iha.c(PG:19)
03-30 23:37:43.994 E/Finsky:background(1456): at llu.a(PG:23)
03-30 23:37:43.994 E/Finsky:background(1456): at alpa.c(PG:2)
03-30 23:37:43.994 E/Finsky:background(1456): at alaz.c(PG:2)
03-30 23:37:43.994 E/Finsky:background(1456): at alkt.b(PG:2)
03-30 23:37:43.994 E/Finsky:background(1456): at alkw.a(PG:3)
03-30 23:37:43.994 E/Finsky:background(1456): at alfv.run(PG:2)
03-30 23:37:43.994 E/Finsky:background(1456): at alks.run(PG:2)
03-30 23:37:43.994 E/Finsky:background(1456): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
03-30 23:37:43.994 E/Finsky:background(1456): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
03-30 23:37:43.994 E/Finsky:background(1456): at java.lang.Thread.run(Thread.java:920)
03-30 23:37:43.994 E/Finsky:background(1456): Caused by: java.io.IOException: No such file or directory
03-30 23:37:43.994 E/Finsky:background(1456): at java.io.UnixFileSystem.createFileExclusively0(Native Method)
03-30 23:37:43.994 E/Finsky:background(1456): at java.io.UnixFileSystem.createFileExclusively(UnixFileSystem.java:317)
03-30 23:37:43.994 E/Finsky:background(1456): at java.io.File.createNewFile(File.java:1006)
03-30 23:37:43.994 E/Finsky:background(1456): at jpm.u(PG:36)
03-30 23:37:43.994 E/Finsky:background(1456): ... 11 more
03-30 23:37:44.134 E/Finsky (2282): [2] sia.b(9): STU: Failed to get status for package 'com.microsoft.office.officehubrow' (1601: Error getting stats)
03-30 23:37:44.134 E/Finsky (2282): android.content.pm.PackageManager$NameNotFoundException: com.microsoft.office.officehubrow
03-30 23:37:44.134 E/Finsky (2282): at java.lang.reflect.Constructor.newInstance0(Native Method)
03-30 23:37:44.134 E/Finsky (2282): at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
03-30 23:37:44.134 E/Finsky (2282): at android.os.ParcelableException.readFromParcel(Unknown Source:42)
03-30 23:37:44.134 E/Finsky (2282): at android.os.ParcelableException$1.createFromParcel(Unknown Source:2)
03-30 23:37:44.134 E/Finsky (2282): at android.os.ParcelableException$1.createFromParcel(Unknown Source:0)
03-30 23:37:44.134 E/Finsky (2282): at android.os.Parcel.readParcelable(Unknown Source:22)
03-30 23:37:44.134 E/Finsky (2282): at android.os.Parcel.createExceptionOrNull(Unknown Source:69)
03-30 23:37:44.134 E/Finsky (2282): at android.os.Parcel.createException(Unknown Source:0)
03-30 23:37:44.134 E/Finsky (2282): at android.os.Parcel.readException(Unknown Source:11)
03-30 23:37:44.134 E/Finsky (2282): at android.os.Parcel.readException(Unknown Source:10)
03-30 23:37:44.134 E/Finsky (2282): at android.app.usage.IStorageStatsManager$Stub$Proxy.queryStatsForPackage(Unknown Source:56)
03-30 23:37:44.134 E/Finsky (2282): at android.app.usage.StorageStatsManager.queryStatsForPackage(Unknown Source:16)
03-30 23:37:44.134 E/Finsky (2282): at otj.run(PG:19)
03-30 23:37:44.134 E/Finsky (2282): at android.os.Handler.handleCallback(Unknown Source:2)
03-30 23:37:44.134 E/Finsky (2282): at android.os.Handler.dispatchMessage(Unknown Source:4)
03-30 23:37:44.134 E/Finsky (2282): at android.os.Looper.loopOnce(Unknown Source:176)
03-30 23:37:44.134 E/Finsky (2282): at android.os.Looper.loop(Unknown Source:77)
03-30 23:37:44.134 E/Finsky (2282): at android.os.HandlerThread.run(Unknown Source:28)
03-30 23:37:44.134 E/Finsky (2282): Caused by: android.os.RemoteException: Remote stack trace:
03-30 23:37:44.134 E/Finsky (2282): at com.android.server.usage.StorageStatsService.queryStatsForPackage(Unknown Source:220)
03-30 23:37:44.134 E/Finsky (2282): at android.app.usage.IStorageStatsManager$Stub.onTransact(Unknown Source:252)
03-30 23:37:44.134 E/Finsky (2282): at android.os.Binder.execTransactInternal(Unknown Source:103)
03-30 23:37:44.134 E/Finsky (2282): at android.os.Binder.execTransact(Unknown Source:16)

Is there anything that can be done, any idea how to solve it? I really need help.
 

Attachments

  • Screenshot_2022-03-30-23-34-11-831_com.android.vending.jpg
    Screenshot_2022-03-30-23-34-11-831_com.android.vending.jpg
    431.5 KB · Views: 246
  • Screenshot_2022-03-30-23-34-32-846_com.google.android.gms.jpg
    Screenshot_2022-03-30-23-34-32-846_com.google.android.gms.jpg
    384 KB · Views: 199
  • Screenshot_2022-03-30-23-36-31-351_com.google.android.permissioncontroller.jpg
    Screenshot_2022-03-30-23-36-31-351_com.google.android.permissioncontroller.jpg
    255.1 KB · Views: 168
  • Screenshot_2022-03-30-23-39-59-923_com.pluscubed.matlog.jpg
    Screenshot_2022-03-30-23-39-59-923_com.pluscubed.matlog.jpg
    887.3 KB · Views: 234
  • 2022-03-30-23-39-49.txt
    4.3 KB · Views: 118
Ok guys, I solve it.

Apparently the Google permissions manager in MIUI 13 was bugged (I don't know why) but it caused Google Play Store to lose permission to access the internal storage, restricting access to apps that occupy the OBB section of the storage.

The solution was very simple and apparently is not anywhere else.

It is important to mention that for this the device must be rooted.

You need the Permission Manager X application in its Pro version (as it allows you to change permissions on system applications).

I went to search for "Google Play Store" and change the write permissions on the system that was disabled, specifically the following:

WRITE_EXTERNAL_STORAGE
READ_EXTERNAL_STORAGE

After it was enabled I went to Google Play Store and cleared the cache.

Finally I rebooted the device and was able to download all the apps I needed, even the storage permission bwhich appeared disabled (could not change) was now enabled.

And that's it, I hope this is a good alternative to the options that people have provided.
 

Attachments

  • Screenshot_2022-03-31-11-53-54-690_com.mirfatif.permissionmanagerx.jpg
    Screenshot_2022-03-31-11-53-54-690_com.mirfatif.permissionmanagerx.jpg
    415 KB · Views: 285
  • Screenshot_2022-03-31-12-02-06-139_com.android.vending.jpg
    Screenshot_2022-03-31-12-02-06-139_com.android.vending.jpg
    441.8 KB · Views: 233
  • Screenshot_2022-03-31-12-02-10-863_com.android.vending.jpg
    Screenshot_2022-03-31-12-02-10-863_com.android.vending.jpg
    450 KB · Views: 230
  • Screenshot_2022-03-31-12-02-19-936_com.google.android.permissioncontroller.jpg
    Screenshot_2022-03-31-12-02-19-936_com.google.android.permissioncontroller.jpg
    201.2 KB · Views: 197
  • Screenshot_2022-03-31-12-02-22-277_com.google.android.permissioncontroller.jpg
    Screenshot_2022-03-31-12-02-22-277_com.google.android.permissioncontroller.jpg
    256.1 KB · Views: 272
  • Like
Reactions: katerpanne