-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Crashes on Android 8.1 #941
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
Comments
!Confirmed to work on the stable release! |
From the error: ... it looks like maybe the WAKELOCK permission should be explicitly requested (?), which is weird because (A) it's not in the list of "dangerous" permissions, (B) we do have the WAKE_LOCK permission in the manifest, and (C) it's working fine for me in api 25 on different devices I've tested it on and (D) I don't even see a UI request for it available in 25. I also don't see that that anything involving the wakelock permission has changed in Oreo or 8.1, although there may be an issue with background services that will need to be addressed. Question-- if you go to Settings->Apps-> is there a permission you can turn on that isn't already on? I have a few changes here I can propose that you can try, specifically:
and I guess
I can try adding those if you want to try them (or feel free to try yourself). Maybe the WAKE_LOCK just isn't being granted automatically sort of described in that "behavior changes" even though the READ_PHONE_STATE is. |
as you can see the nightly lacks the "prevent phone from sleeping" permission |
Hmm. I never touched that permission (it's still here), and the only thing I can think of behaviorally is that it wasn't explicitly requested until the patch above and maybe it needs to be in 8.0x if that's what the docs are saying changed. I don't have the hardware to try it though, and like I said api26+arm is not supported by the emulator yet. Could you try building w/those changes, and if youdid so, did it fix the issue by any chance? Thx |
@fat-tire yeah I'll build with those fixes and report back. |
Actually @fat-tire could you build since im in a rush and will actually be home on Monday (so it would need to wait till then) |
Hey just following up. Did you get a chance to try the fixes? |
So this one had been bugging me for a while ( pun fully intended I'm afraid ). I decided to give it another go today so I decompiled the installed and crashing app. Without any further ado, here's an snippet of the installed app's manifest: Well duh Oreo 8.0 is API level 26 l, Oreo 8.1 is 27. So the fix is to change the maximum API level predicating the wake_lock permission in the manifest. And yes I might have just done all that to 'subtlety' hint at Android P's dessert name and claim some geek cred if I'm right! That's all for now, folks. |
The problem is created by the new ACRA lib version. They added to their android manifest WAKE_LOCK permission with maxSdkVersion="25", which is merged with main app manifest file. |
This was an issue in ACRA. Thanks to vczilla & gregd for chasing it down. See issue cSploit#941
DEVICE: OnePlus 3T
OS version: 8.1
cSploit version:
Latest nightly
busybox (installed or not):
Installed
Rooted with supersu?
Rooted with magisk
logcat (filter it!):
How-to guide
https://pastebin.com/617YaHG2
Daemon specific questions
Go version:
OS:
Using Docker (incase of unofficial build.)
Actions performed:
Logs:
Issue:
Remember to search for issues alike before creating new one!
It starts fine, but immediately after granting root is displays pop-up that says "initialization error. Neither user 10159 nor current process has android.permission.WAKE_LOCK"
Then it installs every dependency fine (MSF and Ruby), but after closing the app (cSploit) once and then trying to reopen it, it doesn't open and just shows the cSploit has crashed notification
The text was updated successfully, but these errors were encountered: