MuntashirAkon / AppManager

A full-featured package manager and viewer for Android
https://muntashirakon.github.io/AppManager/
Other
4.36k stars 259 forks source link

Crashes on Selecting System Config in 3 dot right upper menu. #341

Closed Genxster1998 closed 3 years ago

Genxster1998 commented 3 years ago
java.lang.NullPointerException: Attempt to invoke interface method 'android.os.ParcelFileDescriptor io.github.muntashirakon.AppManager.IRemoteFile.getPipedInputStream()' on a null object reference
    at io.github.muntashirakon.io.ProxyInputStream.<init>(ProxyInputStream.java:43)
    at io.github.muntashirakon.AppManager.utils.IOUtils.getFileContent(IOUtils.java:337)
    at io.github.muntashirakon.AppManager.utils.IOUtils.getFileContent(IOUtils.java:323)
    at io.github.muntashirakon.AppManager.sysconfig.SystemConfig.readPermissionsFromXml(SystemConfig.java:657)
    at io.github.muntashirakon.AppManager.sysconfig.SystemConfig.readPermissions(SystemConfig.java:642)
    at io.github.muntashirakon.AppManager.sysconfig.SystemConfig.readAllPermissions(SystemConfig.java:542)
    at io.github.muntashirakon.AppManager.sysconfig.SystemConfig.<init>(SystemConfig.java:537)
    at io.github.muntashirakon.AppManager.sysconfig.SystemConfig.getInstance(SystemConfig.java:331)
    at io.github.muntashirakon.AppManager.sysconfig.SysConfigWrapper.getSysConfigs(SysConfigWrapper.java:40)
    at io.github.muntashirakon.AppManager.sysconfig.SysConfigActivity.lambda$onStart$1$SysConfigActivity(SysConfigActivity.java:103)
    at io.github.muntashirakon.AppManager.sysconfig.-$$Lambda$SysConfigActivity$Z0_yuKTYWENRNY2UDv8WHBgf8cs.run(Unknown Source:2)
    at java.lang.Thread.run(Thread.java:919)

Device Info:
App version: 2.5.24-PRE
App version code: 383
Android build version: eng.vishwa.20210122.113105
Android release version: 10
Android SDK version: 29
Android build ID: rr_violet-userdebug 10 QQ3A.200905.001 eng.vishwa.20210122.113105 release-keys
Device brand: Xiaomi
Device manufacturer: Xiaomi
Device name: violet
Device model: Redmi Note 7 Pro
Device product name: violet
Device hardware name: qcom
ABIs: [arm64-v8a, armeabi-v7a, armeabi]
ABIs (32bit): [armeabi-v7a, armeabi]
ABIs (64bit): [arm64-v8a]
System language: en-IN
In-App Language: auto
Mode: root
MuntashirAkon commented 3 years ago

Set mode to auto and try again.

Genxster1998 commented 3 years ago

@MuntashirAkon it was auto already at first attempt .

MuntashirAkon commented 3 years ago

Was it a clean install or did you restart your device after updating the app?

Genxster1998 commented 3 years ago

@MuntashirAkon it was update ,but I again reinstalled fresh yet same result . No I haven't rebooted phone

MuntashirAkon commented 3 years ago

Restart is a must after an update.

Genxster1998 commented 3 years ago

I am out of clue , on first launch after reinstalling,everything works but on second launch after force stopping it and relaunching , I can't able to view apk from file manager .

Genxster1998 commented 3 years ago

And it happens onwards all launches.

Genxster1998 commented 3 years ago

First it give message about initialisation but at last could not get package info toast

MuntashirAkon commented 3 years ago

Parsing package often fails due to a cache bug present in the Android's PackageManager. I'm working on a fix but this will take some time as I'd have to rewrite the entire package manager. But your issue is either related to MiXplorer or MIUI. Try using another file manager or disable MIUI optimization to see what happens.

Genxster1998 commented 3 years ago

@MuntashirAkon I have other file managers too but it results same .It works fine on 2.5.21 and 2.5.22 version .

MuntashirAkon commented 3 years ago

OK. Uninstall App Manager, restart your device, install it again. After that, try to open an APK from the file manager to see what happen and be sure to take logs using logcat at the same time.

Genxster1998 commented 3 years ago

@MuntashirAkon https://del.dog/ugrimimofu.go

MuntashirAkon commented 3 years ago

@MuntashirAkon https://del.dog/ugrimimofu.go

Without any filters. It missed all the important logs. Install a debug build if possible as they are more helpful.

Genxster1998 commented 3 years ago

@MuntashirAkon okay

Genxster1998 commented 3 years ago

This is from latest debug version , I still can't upload full logcat due to some privacy issues https://del.dog/wymapifylo

MuntashirAkon commented 3 years ago

I still can't upload full logcat due to some privacy issues

Send via email. The logs still don't contain any useful logs. Most logs are printed in a context different than App Manager's own. So, they are filtered out if you only grab logs for the app.

gnuhead-chieb commented 3 years ago

@Genxster1998

It works fine on 2.5.21 and 2.5.22 version .

Not working on 2.5.23? Try these debug builds and check if these build work or not

780 and #769

https://github.com/MuntashirAkon/AppManager/suites/1854311875/artifacts/35990737

https://github.com/MuntashirAkon/AppManager/suites/1845531361/artifacts/35740263

MuntashirAkon commented 3 years ago

Closed due to lack of response. Feel free to open it again if you're still facing the issue.