Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission tab crash #26

Closed
ghost opened this issue Nov 10, 2022 · 9 comments
Closed

Permission tab crash #26

ghost opened this issue Nov 10, 2022 · 9 comments
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Nov 10, 2022

java.lang.NullPointerException: Attempt to get length of null array
at app.simple.inure.viewmodels.viewers.PermissionsViewModel$loadPermissionData$1.invokeSuspend(PermissionsViewModel.kt:36)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:749)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)

Inure > apps > choose framework system app > permission > crashes with logs

Devices: Realme 5i (RMX2030)
Android 10 Realme UI 1.0
Non Root mode
(Since ADB and shizuku isn't added yet)
#Bug #Crash

it's looks like only some system framework will crash bcs in experience are like this.
Apk file provided to help developer investigate the inure app:
apks.zip

Developer you are right only app with no permission crashes

@Hamza417
Copy link
Owner

@NSTAdventure It's working fine here. I'll check why it's crashing in your device. Which disabled app that's causing this?

@MichaelZ4714
Copy link

Inure (Build 45) crashes also here when opening the permissions tab of an app. In this case the app has no permissions, I think. It is '2048' made by Secuso-Security Usability Society having the id org.secuso.privacyfriendly.2048. IIRC I did use the Google Play Store variant (through Aurora Store) and not the F-Droid one. If necessary I can attach the apk and/or syslog. The permission of other apps are shown correctly, but I didn't test all. The system I use is Android 12 (CrDroid 8.10) with Magisk and microG.

@Hamza417
Copy link
Owner

@MichaelZ4714 Send me the apk here, it should help.

@MichaelZ4714
Copy link

MichaelZ4714 commented Nov 10, 2022 via email

@MichaelZ4714
Copy link

@MichaelZ4714 Send me the apk here, it should help.

I think the reply with email was a bad idea, it looks like the attachment got stripped. Here it is with reply through the web page.
org.secuso.privacyfriendly2048.apk.zip

@Hamza417
Copy link
Owner

Screenshot_2022-11-11-00-01-53-592_app simple inure
It's an expected behaviour of the app. Since the app has no permissions defined in manifest it returns null. I'll replace the error message with a better "this app doesn't require any permission" type of warning.

@Hamza417
Copy link
Owner

Edit: @Hamza417 welp i provided wrong reproduce step It's not in disabled but on apps section Ofc all app no matter what.

Even the app that has permissions defined?

@ghost
Copy link
Author

ghost commented Nov 11, 2022

Even the app that has permissions defined?

Arcoding to my test only app with no permission will result have error log

Screenshot_2022-11-11-00-01-53-592_app simple inure It's an expected behaviour of the app. Since the app has no permissions defined in manifest it returns null. I'll replace the error message with a better "this app doesn't require any permission" type of warning.

So your statement above are right only app with no permission defined will trigger this

@ghost ghost closed this as completed Nov 11, 2022
@ghost ghost reopened this Nov 11, 2022
Hamza417 added a commit that referenced this issue Nov 19, 2022
…hat doesn't require any instead of showing error stack.
@Hamza417
Copy link
Owner

This should make the error more clear now.

@Hamza417 Hamza417 added the bug Something isn't working label Nov 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants