Open Menci opened 6 years ago
I've also encountered such problem on android-x86-7.1-rc1. after debugging the installer app, i found out that it's a permission problem.
see the source code below
for (File dir : DownloadsUtil.getDownloadDirs(DownloadsUtil.DOWNLOAD_FRAMEWORK)) {
if (!dir.isDirectory()) {
continue;
}
for (String filename : dir.list()) {
if (!filename.endsWith(".zip")) {
continue;
}
...
}
}
here dir.list()
will return null if the system is using BlockGuard
to check file accessiblity,
and my android 7 emulator actually does that.
However, XposedInstaller does not have storage permission by default, and cause the above exception.
In order to make it work, you need to go to settings -> apps -> XposedInstaller-> permissions
and grant storage permission for XposedInstaller .
I installed XposedInstaller from https://forum.xda-developers.com/showthread.php?t=3034811 on my XZ1C (with LineageOS 15.1 from XDA, OpenGApps, Magisk). I can launch the app before I download the Framework. After the framework is downloaded, it crashed. I can no longer open the app.
And I rebooted to TWRP and installed the zip located in
/sdcard/Android/data/de.robv.android.xposed.installer/cache/downloads/framework
(cache cleared).Then I rebooted to LOS. The app still could't be opened. I installed some modules via apk and open a module app to enter the Xposed Installer app's modules section, then I can turn on the modules. After rebooting the modules just worked as I expected. But if I click framework section in the left panel, it crashes.
I ran
adb logcat
and then clicked the Xposed Install icon from my launcher and found some useful information:Now
/sdcard/Android/data/de.robv.android.xposed.installer/cache/downloads/framework
is empty. If I touch a .zip file there, the app still can't be opened.