I have a rooted TV Box with Android 7.1.2 which didn't come with the Files
app (com.android.documentsui
), so I can't give write access to external drives.
I tried the following steps to install DocumentsUI.apk
:
- move
DocumentsUI.apk
to/system/priv-app/DocumentsUI/DocumentsUI.apk
chmod 744 /system/priv-app/DocumentsUI
chmod 644 /system/priv-app/DocumentsUI/DocumentsUI.apk
chown 0.0 /system/priv-app/DocumentsUI
chown 0.0 /system/priv-app/DocumentsUI/DocumentsUI.apk
chcon u:object_r:system_file:s0 /system/priv-app/DocumentsUI
chcon u:object_r:system_file:s0 /system/priv-app/DocumentsUI/DocumentsUI.apk
- reboot
Even so, when I try to launch the app, it always force closes with the following error message on logcat:
Neither user 10072 nor current process has android.permission.CACHE_CONTENT
Any idea if I'm missing something?
Please note I'm not on Android 8+ so as far as I know I don't have to add an XML on /system/etc/permissions
.