Magisk appears to be installed and granting root to apps, but none of the apps works - Magisk

I just installed magisk succesfully(?) on my xperia 5 ii following this guide:
https://forum.xda-developers.com/sony-xperia-5-ii/how-to/guide-magisk-twrp-recovery-t4177209/page7
Using the beta channel (stable simply doesn't even boot), magisk manager shows v21 installed. However none of the root apps I tried so far (busybox, adaway, system app remover) works. All of them give some kind of error. The root privileges are being granted (I get the promt to grant/deny and the popup that root was granted). This is very weird and the first time it happens to me on any device. The root browser file managers shows the "root directory" with 0 free space incorrectly (1.6GB used - 1.72 total) I tried copying a file inside the /system directory and it just didn't do anything. I tried reinstalling magisk from the manager, but its still the same. Any help will be appreciated, I really have no idea what to try at this point.

Hard to say... What's "some kind of error"? Maybe the Magisk logs show something (although you'd likely have to switch to the Canary channel to get any useful logs).
I think it's best to wait for a reply to your query in the thread you linked. That's likely to be the best place to get help, since that's where you find other users of the same device...

Related

Issues installing BusyBox

Hey guys, so I'm trying to install BusyBox on my new Nexus 6 running stock 6.0, rooted. When I try to install via Stericson's installer I got from the Play store, I get:
"We could not verify the integrity of the binary selected..." flashes for a moment, then:
"BusyBox installer was not allowed root access. This may be an issue with Superuser, open Superuser and make sure that you are allowing root access. This application will not work without root access."
I've made sure that the app is allowed root access, and have also tried deleting it from SuperSu so it would prompt me and I could grant it access again, but still the same issue. I'm not sure what the deal is, it seems like I could be having root issues? I appear to have root since I am able to use TiBu, but something seems funky. For example usually when I open FKUpdater it says "FKUpdater has been granted super user access..." and then "Unable to acquire ROOT access." Other times it only says "Unable to acquire ROOT access." I haven't tried flashing a kernel with it because I don't want to at the moment while I figure this other issue out, so I'm not sure if it's falsely reporting the root error.
So, I looked into things further and it seems like I may have some sort of permissions issue. I tried using JRummy's BusyBox installer, but that fails also and just tells me to try installing a different version of BusyBox. It also includes a script for fixing permissions, and when I run it I get "error: only position independent executables (PIE) are supported" and "/data/user/0/com.crummy.busybox.installer/files/temp.sh[118]: sync: can't be executed: permission denied."
Permissions for /data/user/0/com.crummy.busybox.installer are set to drwxr-x--x, as is /system. Also /system is only showing 58 MB free but I don't think that's a problem...
Any ideas? I'm totally stumped...
set your SElinux to be permissive(via app or terminal command)

Magisk Issue On OmniROM 8.1

I'm using official Omni 8.1. The issue I'm facing is that the Magisk Manager can't seem to remember the apps it has granted Superuser permission. Even in the Superuser tab it shows "No apps found". Result being I have to grant Superuser permission every time when I open an app like Root Explorer.
Please look into this issue.
Magisk Manager: v5.5.2
Magisk Root: v15.1 Stable
I don't have this issue on version 5.5.0 and 15.1 on the latest Omni 8.1 weekly on my Oneplus 3T.
Edit: You didn't mention what device, so I doubt anyone would be able to help you. But I guess you're running a Oneplus 3T or a Oneplus 5 since there are no 8.1 Omni weeklies for any other devices, yet. Maybe you could try to attach some logs.
For me Magisk v15.1 doesn't boot anymore, it just fails and goes back to recovery.
v14.6 works fine.
Omni 8.1 on Oneplus 5T
Same problem here. Any solution?
Look into this issue, doesn't boot, solutions?
Where are the logs?
How do you expect someone to help you without that?
For all the praise Magisk seems to get, it sure does have some issues. Lately, it's been kind of a lottery figuring out which version will work with which ROM... These things never happend to me on SuperSu
Jazavchar said:
For all the praise Magisk seems to get, it sure does have some issues. Lately, it's been kind of a lottery figuring out which version will work with which ROM... These things never happend to me on SuperSu
Click to expand...
Click to collapse
I'd say it has to do with the incredible speed that the Magisk development has been going at. Looking back over the past year, a lot has happened. This kind of speed can cause instabilities...
Now, it's most likely at a point where the focus will be on stability and compatibility development.
Having said that, though, all users experiencing issues can help with that by providing as much details as possible and relevant logs.
I can confirm this. It seems Magisk has a problem opening the sqlite3 database, on OmniROM 8.1 at least.
The Superuser request can be granted, and it goes through (as in the app gets its root access), however nothing is permitted "forever".
Superuser log in Magisk Manager is empty, so is the list of apps granted Superuser access.
From my log:
Code:
sqlite3 open failure: unable to open database file
Either the sqlite3 database is located somewhere else, or Magisk didn't get the correct writing rights during the install. Did something change regarding this in 8.1?
There is also a somewhat unrelated issue with Magisk Hide, where the hidelist-file doesn't exist/wasn't initially created upon installation:
Code:
fopen: /sbin/.core/img/.core/hidelist failed with 2: No such file or directory
Full log attached.
debichu said:
I can confirm this. It seems Magisk has a problem opening the sqlite3 database, on OmniROM 8.1 at least.
The Superuser request can be granted, and it goes through (as in the app gets its root access), however nothing is permitted "forever".
Superuser log in Magisk Manager is empty, so is the list of apps granted Superuser access.
From my log:
Code:
sqlite3 open failure: unable to open database file
Either the sqlite3 database is located somewhere else, or Magisk didn't get the correct writing rights during the install. Did something change regarding this in 8.1?
There is also a somewhat unrelated issue with Magisk Hide, where the hidelist-file doesn't exist/wasn't initially created upon installation:
Code:
fopen: /sbin/.core/img/.core/hidelist failed with 2: No such file or directory
Full log attached.
Click to expand...
Click to collapse
Two things I'm curious about (at the moment):
What are the permissions for /data/adb/magisk.db?
Do you now have a hidelist file in /sbin/.core/img/.core?
Didgeridoohan said:
Two things I'm curious about (at the moment):
What are the permissions for /data/adb/magisk.db?
Do you now have a hidelist file in /sbin/.core/img/.core?
Click to expand...
Click to collapse
There is no such file in that location. There is a magisk.img in that folder with -rw-r--r--, and a magisk/ folder but not containing any magisk.db file either.
Yes, there is now a hidelist file in /sbin/.core/img/.core with -rw-rw-rw-
Bonus info:
I did a complete wipe (I initially did that but I wanted to be certain), and I got this error while installing Magisk right after OmniROM (also see attached):
Code:
! System installed root detected, mount rw :(
Now, OmniROM doesn't ship with root built in - at least not to my knowledge. So I don't know what this "system installed root" Magisk is detecting.
debichu said:
There is no such file in that location. There is a magisk.img in that folder with -rw-r--r--, and a magisk/ folder but not containing any magisk.db file either.
Yes, there is now a hidelist file in /sbin/.core/img/.core with -rw-rw-rw-
Bonus info:
I did a complete wipe (I initially did that but I wanted to be certain), and I got this error while installing Magisk right after OmniROM (also see attached):
Code:
! System installed root detected, mount rw :(
Now, OmniROM doesn't ship with root built in - at least not to my knowledge. So I don't know what this "system installed root" Magisk is detecting.
Click to expand...
Click to collapse
Number 1 is an issue, because that's the su database... If there is none, it's no wonder why granted superuser requests aren't saved.
Hi, do you have a solution?
@Didgeridoohan i am facing same issue like this . it keeps asking for superuser req .
cpt.macp said:
@Didgeridoohan i am facing same issue like this . it keeps asking for superuser req .
Click to expand...
Click to collapse
As far as I know, so far the only known working solution is to reformat /data as ext4. Or stay on an old version of Magisk.
Didgeridoohan said:
As far as I know, so far the only known working solution is to reformat /data as ext4. Or stay on an old version of Magisk.
Click to expand...
Click to collapse
which version you suggest also my /data is ext4 only .
also i would like to tell you one more thing after tinkering little bit and observed following things
as soon as i dont open the magsik app and using root by simple toast and granting the permission it works but as soon as i open the app , it starts misbehaving . i wonder why .
cpt.macp said:
which version you suggest also my /data is ext4 only .
also i would like to tell you one more thing after tinkering little bit and observed following things
as soon as i dont open the magsik app and using root by simple toast and granting the permission it works but as soon as i open the app , it starts misbehaving . i wonder why .
Click to expand...
Click to collapse
Let me guess: you're not using OmniROM...
Since you're posting in this thread, I kind of assumed you did, so my answer was given accordingly.
If you need help, post all possible details and lots of relevant logs.
I've had the same error. Magisk seems unstable on OmniROM 8.1 on OnePlus 5. Probably an issue with the ROM, but the developer seems like the kind of guy who will tell you to go f*ck yourself if you have a problem like this.
Sometimes it works sometimes it doesn't.
A temporary workaround with the permission issue on /data/adb/magisk.db, even after not working trying 0666 permissions, was to change ownership. None of many other solutions worked for me until I found the user for Magisk. You can use a shell as root or with apps like FX File Explorer with root capability to see which user owns files in "/data/adb/magisk/" . Then I applied that user as the owner of magisk.db. Verified that apps which ask for root permission get saved now. The user of Magisk will be different for you since it is marked as "app_##' which I suppose is up to the amount of apps you have installed.
I have a problem and think it caused by the same reason other users here.. My issue is after installing omni rom and gapps ONLY i can't use my banking apps because ( i guess) it thinks my device is rooted.
Device : oneplus 5
I wasn't planning to root my device to keep those kind of issues away
saidmsb said:
I have a problem and think it caused by the same reason other users here.. My issue is after installing omni rom and gapps ONLY i can't use my banking apps because ( i guess) it thinks my device is rooted.
Device : oneplus 5
I wasn't planning to root my device to keep those kind of issues away
Click to expand...
Click to collapse
No... I don't think so. This thread is about an issue with Magisk and f2fs on Android 8.1 ROMs. Your issue could be that OmniROM sets some sensitive props to triggering values.
That can be taken care of by using Magisk and MagiskHide. Take a look here for more info:
https://www.didgeridoohan.com/magisk/MagiskHide#hn_Sensitive_props
If you decide to install Magisk, this part of the guide might also be useful (all of it is useful, really):
https://www.didgeridoohan.com/magisk/MagiskHide#hn_Hiding_root_from_apps

[HELP] Hide Magisk Manager (Repackage) upgrades the version over the internet

I have my Samsung A30 (SM-A305F) rooted with magisk canery (87de0e7a) by flashing patched boot img via odin. Now, If i try to hide magisk with random package , it demands internet connection and install the latest version (9348c5ba). BUT i don't want to upgrade as the updated version has weird bug of rejecting SU automatically (with a very brief pop-up). I then need to ---> uninstall the repackaged app ---> Reboot ---> install 87de0e7a version ---> then it become functional again. I don't have TWRP installed. Re-flashing new patched boot requires wiping data. i don't want to do factory reset
Now I want to hide magisk as PUBG MOBILE might be crashing due to root detection. Please help me achieve solution:
(1) hide magisk manager without updating
(2) update magisk manager without that BUG of rejecting SU automatically
1 - Hide the Manager and let it update fully, no way around that. Then replace /data/user_de/0/com.H3.nuhw6UY.GoCgl/dyn/current.apk with the apk of whatever Manager version it is you want to use (and don't forget to set the same permissions and owner).
Edit: replace the package name above with the one your Manager uses.
2 - Seems to be a similar issue reported here: https://github.com/topjohnwu/Magisk/issues/2944
If there's anything to be done about it, it will be eventually.
If you can get some proper logs showing the su rejection and add to the above linked issue that would be great.
Note: i previously managed to hide it successfully when there was no newer version. It would just download the same version from the internet and repackage itself with random package name. But some days ago, i restored original manager and now i can't get it to hide.
Didgeridoohan said:
1 - Hide the Manager and let it update fully, no way around that. Then replace /data/user_de/0/com.H3.nuhw6UY.GoCgl/dyn/current.apk with the apk of whatever Manager version it is you want to use (and don't forget to set the same permissions).
2 - Seems to be a similar issue reported here: https://github.com/topjohnwu/Magisk/issues/2944
If there's anything to be done about it, it will be eventually.
If you can get some proper logs showing the su rejection and add to the above linked issue that would be great.
Click to expand...
Click to collapse
Thanks for replying. I followed our steps (com.mkhirsnpiw.z.kkt was used instead of com.H3.nuhw6UY.GoCgl). But it again says the same thing, "Upgrade to full magisk to finish the setup. Download and install?". Clicking ok upgrades it again
Shihabus Sakib Rad said:
Thanks for replying. I followed our steps (com.mkhirsnpiw.z.kkt was used instead of com.H3.nuhw6UY.GoCgl). But it again says the same thing, "Upgrade to full magisk to finish the setup. Download and install?". Clicking ok upgrades it again
Click to expand...
Click to collapse
Did you place the new current.apk file in the same directory and give it the proper permissions (same owner and permission 600)? I just tested and had no issues downgrading the hidden Manager to 285 this way.
Didgeridoohan said:
Did you place the new current.apk file in the same directory and give it the proper permissions (same owner and permission 600)? I just tested and had no issues downgrading the hidden Manager to 285 this way.
Click to expand...
Click to collapse
yes with MiXplorer.
When Manager updated itself , i tried to update the magisk ( not the manager). But it bricked my phone as it won't start. i had to flash stock firmware via odin. It happened what i feared about. Now, i will try to patch boot img with new version.
UPDATE: I patched and flashed boot img using canary 290. after rebooting , this time there was not that Bug of rejecting SU automatically. Root was functional. But when it asked to do additional setups, it was stuck on setup operation forever and when i tried to hide manager, it showed "hiding magisk manager failed". so i uninstalled canary 290 and installed 7.5.1 (267) . This time additional setup was completed and rebooted automatically. But there was some problem with su access. so i uninstalled 7.5.1 (267) and installed canary 290. Root is now functional and it does not ask for additional setup anymore. (meaning setup was complete?). But still shows "hiding magisk manager failed" when try to hide manager. I don't know what is the problem . I was using canary 284 without any problem. PUBG mobile was runnig without problem. Now I am tired......
About hiding the Manager failing:
https://www.didgeridoohan.com/magisk/Magisk#hn_Cant_hide_the_Magisk_Manager
Didgeridoohan said:
About hiding the Manager failing:
https://www.didgeridoohan.com/magisk/Magisk#hn_Cant_hide_the_Magisk_Manager
Click to expand...
Click to collapse
Disabling Play Protect Worked !!!! Thank you Sir :angel:

SOLVED [issue] Magisk module download error & SafetyNet API error

Hi, im running Android 10 with OneUI 2.5 rooted by Magisk v.21 on my Samsung Galaxy NOTE 10 Lite,
Root is working correctly, i have root access for donated FDE.AI, X-Plore file manager and etc..
Im using few Magisk modules, like Viper4Android and they works well too.
But, any atempt to download or install Magisk module from its own online reposirory ends with "Error downloading file", and atempt to check SafetyNet status gives me "SafetyNet API error" afzer hiting Ok to download SafetyNet API...
I searched on google, and here on the forum for similar problems, but i found topics from 2017 year (outdated)
Can anyone hp me solve this prob please?
Both those issues (module download error and SafetyNet API error) suggest that there are Internet connection problems.
There's been a couple of similar reports, but those have usually been fixed by clearing data for, or reinstalling the Manager.
Also make sure that you don't have any firewall rules or similar that might be restricting internet access for the Manager.
Thx for respone. I tried to delete Managers cache and App data too, nothing changes. I also tried to reinstall App, but no change.
About internet connection, yesterday I had to downgrade Magisk from v.21 beta to v.20.4 stable for unexpected random reboots 5times a day.. I done that in Magisk Manager App, selecting "Direct install (recommended)". Magisk downloaded necessery files without any problem and flashed it.
And, i dont use any third party security apps (antivirus, firevall).
So, any idea? After downgrade magisk reboots solved, here reported issue no.
No idea. A logcat might show what's up:
https://www.didgeridoohan.com/magisk/MagiskHelp
Heres my logcat, filters: level error, keyword magisj
Heres my new logcat, printed at error level verbose, filtered by keyword magisk.
I see only one problem, file permission (write permission), but where magisk wont write? Im able seriously give 777 permissions to this folder ?
Or did anybody see anything else?..
For now, nothing changes in my phone configuration.. FW version the same as in 1. Post, magisk v 20.4, actual stable magisk manager.. I also tried canary magisk manager, but the canary version wont load module list and crashed down at all, including UI.
KubikMichal5 said:
Heres my new logcat, printed at error level verbose, filtered by keyword magisk.
I see only one problem, file permission (write permission), but where magisk wont write? Im able seriously give 777 permissions to this folder
Or did anybody see anything else?..
For now, nothing changes in my phone configuration.. FW version the same as in 1. Post, magisk v 20.4, actual stable magisk manager.. I also tried canary magisk manager, but the canary version wont load module list and crashed down at all, including UI.
Click to expand...
Click to collapse
I have not had any opportunity to look at your log (and the new one won't download since it seems like the XDA attachments server is acting up again, good thing there's a new one on the way).
But, that the Canary Manager will crash when you try to access the modules list is yet another sign that your issue is that the Manager cannot get an internet connection (that's a currently known bug).
Thx u for your time . So, its known bug, but is there some way to solve it and get magisk manager functional? Or its not a global issue and its not specific to each user
It's a known issue that the Manager will crash when you enter the modules download section without an internet connection. It's not a common issue that the Manager can't get a connection at all.
I still suspect that there's something on your device that is blocking internet access for the Manager somehow.
Have the same problem.Magisk Manager 8.0.2 on Android 9,Magisk is working fine,but i become no update info for modules and i cant download any module,but 3 days ago all was ok,weird.
I think, that is not any app blocking magisk internet connection. The last stable mahisk manager dont have any problem to load online module list, and download of magisk core is aleays possible, as install ing core too....
But, i dont have time right now for test it, it is possible to reboot to safe mode and there run magisk?
I still cant understand that some app blocking magisk internet connection...
Look at my screenshot of magisk manager latest stable version, the connection working, magisk showing modules wich got updated today......
Sorry, but i still hope, that magisk manager do not have internet connection error, in screen, he knows about the module updated version, but it still wont download..
Im ready for N770FXXU6CTJ2 update, im going to flash it right now... Im confused of magisk support,
Is that last one with the Stable or Canary Manager? There seems to be something weird going on, and there have been some similar reports.
I suggest that you switch over to Canary again (Magisk and Manager) and grab a verbose logcat when you have connection issues. Upload that to a new GitHub issue where you also make sure to give all possible details as to what works and don't work on the stable Manager contra what works and doesn't work on the Canary Manager.
That way, better eyes than mine might be able to take a look at it and see if there is indeed something going on.
Nevermind... See below.
I solved reported issue on my device...
The reason is, Lucky Patcher and blocking ads on device...
I opened LP, opened Toolbox/Block Ads and pressed Clear local hosts file... Now everything is working fine...
Ok... Nice to know I wasn't wrong. :good:
Sad to see that app being used...
KubikMichal5 said:
I solved reported issue on my device...
The reason is, Lucky Patcher and blocking ads on device...
I opened LP, opened Toolbox/Block Ads and pressed Clear local hosts file... Now everything is working fine...
Click to expand...
Click to collapse
Awesome,hughe thanx,works for me.Cheers!!!
KubikMichal5 said:
I solved reported issue on my device...
The reason is, Lucky Patcher and blocking ads on device...
I opened LP, opened Toolbox/Block Ads and pressed Clear local hosts file... Now everything is working fine...
Click to expand...
Click to collapse
Life saver! It solved my problem too. Huge thanks!
KubikMichal5 said:
I solved reported issue on my device...
The reason is, Lucky Patcher and blocking ads on device...
I opened LP, opened Toolbox/Block Ads and pressed Clear local hosts file... Now everything is working fine...
Click to expand...
Click to collapse
Thanks!!!!
I'm having an issue also with passing safetynet on Razer Phone 2 (Cheryl 2). Rooted with Magisk 22.1 and TWRP arter Kernel. Had a rough time getting the "new" all-in-one Magisk installed properly. I'm using adfree for an adblocker. I've cleared the hosts file and rebooted MANY times, to no avail. Thinking I may need to uninstall Magisk and go back to 20.4 and install the old Magisk Mgr. app. Any help would be appreciated. If you need log files, let me know. I DO have root as Ti Backup, ROM Toolbox, adfree all have root access.

Can't find old install; have root but Magisk can't see it

So, an OTA caused a loss of root (pixel 6 pro, unlocked). Tried to go into a hidden magisk and disable modules, but everything greyed out, unable to. Tried to uninstall the manager (I was using an old MagiskAlpha build), and thought it worked, though it must have left something behind. Updating wouldn't work - would give me a failure.
Flashed new factory image, installed new magisk manager, patched boot.img in new magisk manager, loaded boot.img, and I have root; adb shell su works, all my old apps that worked with root work, but no magisk manager recognizing that I have root - and therefore no modules - working. So, no charging management, safetynet is borked, etc. Have uninstalled/reinstalled mm numerous times. No luck. Tried loading it from adb, etc.
I've dug through adb shell pm list packages and can't find anything that looks like an old version of magisk at all anywhere anymore. I think I had three different versions on the phone. They are all gone. But no luck with a freshly installed manager. Still can't see root even though it's there. Any ideas?
Of note: I have a work profile and two users on the phone. However, I can't find anything even using --user for all three users. Only thing even close I see is com.lsposed.manager still installed. That shouldn't be a factor, but I can't think of anything at this point.
TB checker, under "check root" gives pass for everything except SU binary, 2nd SU binary, root via native, and magisk specific.
Under Check xposed, I have fail for dual/work profile and xprivacyLua, and com.topjohnwu.magisk under PM Sundry APIs. Everything else is Pass.
I had never granted TB checker root before; Termux on the other hand works fine with su (as does adb shell), and Root Essentials shows root fine.
Magisk Manager was downloaded from topjohnwu's github, then I manually added the canary URL, and updated to canary. No luck.
Any other ideas?
One other thing... /data/adb/magisk was dated; all the other directories in /data/adb were new, but magisk was from my last update of MagiskAlpha, and when I looked at util_functions.sh it was aligned to my old (uninstalled) magisk alpha build
So, the /data/adb/magisk tipped me off. I pulled the hidden apk info from the magisk.db, and from there was able to (while rooted) manually delete all the references to the hidden apk string (just did a find /data/* | grep [hidden package name] ) and once they were all deleted, deleted everything from /data/adb - the magisk.db and everything - and then next time I went into magisk, it informed it was incorrectly configured, I pressed okay, it fixed itself, and full root in magisk was restored.
had to reinstall all modules, but that wasn't a very big price to pay. Safetynet fixed (google pay worked just fine at the store yesterday), xprivacylua, etc., all worked.
As of right now, other than a citi app *****ing that I'm possibly rooted (and then it still works fine anyway), haven't had any issues with leaving magisk unhidden, so not going to hide it again unless I need to. Wasn't worth the PITA to fix it if something like this happens again.

Categories

Resources