This widget could not be displayed.
This widget could not be displayed.
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to restore pre-installed app after deleting

alexeyrzayev
Star II

Hello!

 

Can anyone explain if it is possible to restore accidentally deleted app Files, Ver. t_frc_doc_330543000?

 

First I unpacked the bin image of the firmware, found a number of files there:

 

DocumentsUIGoogle.apk

DocumentsUIGoogle-hdpi.apk

DocumentsUIGoogle-ldpi.apk

DocumentsUIGoogle-mdpi.apk

DocumentsUIGoogle-tvdpi.apk

DocumentsUIGoogle-xhdpi.apk

DocumentsUIGoogle-xxhdpi.apk

DocumentsUIGoogle-xxxhdpi.apk

 

Following advice from the Internet, I installed them using Package Manager. The application was installed, but crashes when I try to launch it.

 

Then I found and installed it from some website, but the result is the same.

 

Is there any way to fix this without resetting to factory settings?

 

Thanks!

10 REPLIES 10

Since I’m a novice in this matter, I probably misunderstood you and did it from a PC, but if I do it in the ADB Shell application for Android, then this message appears:

pm enable com.google.android.documentsui

Exception occurred while executing 'enable':
java.lang.SecurityException: Attempt to change component state; pid=22642, uid=10031, package=com.google.android.documentsui
at com.android.server.pm.PackageManagerService.setEnabledSettings(PackageManagerService.java:3857)
at com.android.server.pm.PackageManagerService.-$$Nest$msetEnabledSettings(Unknown Source:0)
at com.android.server.pm.PackageManagerService$IPackageManagerImpl.setApplicationEnabledSetting(PackageManagerService.java:5609)
at com.android.server.pm.PackageManagerShellCommand.runSetEnabledSetting(PackageManagerShellCommand.java:2356)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:270)
at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97)
at android.os.ShellCommand.exec(ShellCommand.java:38)
at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onShellCommand(PackageManagerService.java:6126)
at android.os.Binder.shellCommand(Binder.java:1049)
at android.os.Binder.onTransact(Binder.java:877)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4437)
at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onTransact(PackageManagerService.java:6110)
at android.os.Binder.execTransactInternal(Binder.java:1285)
at android.os.Binder.execTransact(Binder.java:1244)

Maybe one of these?

pm install-existing com.google.android.documentsui
pm default-state com.google.android.documentsui

Hopefully you can figure out what trick disabled it.

pm install-existing com.google.android.documentsui

Exception occurred while executing 'install-existing':
java.lang.SecurityException: Permission Denial: runInstallExisting from pm command asks to run as user -2 but is calling from uid u0a31; this requires android.permission.INTERACT_ACROSS_USERS_FULL
at com.android.server.am.UserController.handleIncomingUser(UserController.java:2285)
at com.android.server.am.ActivityManagerService.handleIncomingUser(ActivityManagerService.java:13159)
at android.app.ActivityManager.handleIncomingUser(ActivityManager.java:4306)
at com.android.server.pm.PackageManagerShellCommand.translateUserId(PackageManagerShellCommand.java:3421)
at com.android.server.pm.PackageManagerShellCommand.runInstallExisting(PackageManagerShellCommand.java:1655)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:238)
at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97)
at android.os.ShellCommand.exec(ShellCommand.java:38)
at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onShellCommand(PackageManagerService.java:6126)
at android.os.Binder.shellCommand(Binder.java:1049)
at android.os.Binder.onTransact(Binder.java:877)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4437)
at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onTransact(PackageManagerService.java:6110)
at android.os.Binder.execTransactInternal(Binder.java:1285)
at android.os.Binder.execTransact(Binder.java:1244)

pm default-state com.google.android.documentsui

Exception occurred while executing 'default-state':
java.lang.SecurityException: Attempt to change component state; pid=28599, uid=10031, package=com.google.android.documentsui
at com.android.server.pm.PackageManagerService.setEnabledSettings(PackageManagerService.java:3857)
at com.android.server.pm.PackageManagerService.-$$Nest$msetEnabledSettings(Unknown Source:0)
at com.android.server.pm.PackageManagerService$IPackageManagerImpl.setApplicationEnabledSetting(PackageManagerService.java:5609)
at com.android.server.pm.PackageManagerShellCommand.runSetEnabledSetting(PackageManagerShellCommand.java:2356)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:280)
at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97)
at android.os.ShellCommand.exec(ShellCommand.java:38)
at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onShellCommand(PackageManagerService.java:6126)
at android.os.Binder.shellCommand(Binder.java:1049)
at android.os.Binder.onTransact(Binder.java:877)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4437)
at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onTransact(PackageManagerService.java:6110)
at android.os.Binder.execTransactInternal(Binder.java:1285)
at android.os.Binder.execTransact(Binder.java:1244)

It's seems you're not the main user profile.  You're in multi-user mode or have an administrative app in control.  I don't know how that stuff works.

Thanks for trying to help...