Magisk: init user 0 failed (merlin) - Redmi Note 9 Questions & Answers

Hello everyone! I've successfully installed Pixel Experience 13 (PixelExperience_merlinx-13.0-20221113-1311-OFFICIAL) on my Redmi Note 9 merlin device and everything was great until I installed magisk, it asked me to reboot for extended setup and then I got thrown in TWRP recovery with nothing but: "init user 0 failed".
I took a screenshot of manager logs before rebooting and it looked like the screenshot I attached.
I couldn't try anything since I did this late at night and I had school and needed my phone. I had to reflash PEX.
This is the most information I can provide.
If someone could help me I would really appreciate it!

I forgot to include the screenshot here it is:

Related

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

Watch 3 - cant install the WEAR-App with Lineage 11

I use the Galaxy Watch 3 and love it.
But now the following problem:
The installed app says to install an update.
Otherwise "Cancel" ...
I can install the update - I call it comes:
"Your phone's operating system has been changed in an unauthorized manner ..." - and that's it.
Sure, that's right - it's Lineage 11 ...
And - bad, bad, bad - rooted too.
Solutions?
Hi seach on the forums here you can eithr use a modified version of Samsung apps or root your rom to hide the props (with magisk).

Can't get Zygisk to enable itself

Hi,
I've installed Magisk Manager 23014 and flashed the latest canary build.
When I go to settings and enable Zygisk it keeps perpetually telling me to "Reboot to apply changes", of course, I did but Zygisk remains disabled.
I'm on a Note 9, running DevBase v7.4 based on the S9FUH1 rom (Android 10)
Are you entirely sure that you have the 23014 Magisk binaries installed, and not just the app? This is the kind of behaviour we've seen when there's a mismatch between app and binaries versions.
What is the version info displayed in the Magisk app?
The Magisk version is: 7e9d4512 (23014)
Magisk App: 7e9d4512 (23014)
I just tried a full uninstall of the old Magisk install and then a fresh install of canary to make sure no previously installed modules could interfere, but no change unfortunately.
I'm also not seeing any errors in the log viewer of the magisk app
Could you post those logs?
Didgeridoohan said:
Could you post those logs?
Click to expand...
Click to collapse
Sure, please find the /cache/magisk.log and one saved from within Magisk Manager attached
So I run into the same problem. As I can't see anything useful in the magisk logs, I figured I'd check the dmesg.
This is one line that kind of triggers me, but I can't tell if it's significant:
Code:
[ 8.879227] init: Command 'start zygote_secondary' action=persist.sys.zygote.early=true (/init.rc:2197) took 0ms and failed: service zygote_secondary not found
This is on a Samsung J600fn.
Not sure if it makes a difference, but after disabling verity and encryption (either could be the culprit) it worked for me.
I had the same issue on my note 9. Disabling verity and encryption worked for me too as per FreakyJoosts post.
I used this (flashed via TWRP): https://mega.nz/file/6YszWYoB#dAQcttv6AvFK6HxY2oVuaGy-iouRG9uR77AnbXOqcWM
Which I got from this guide:
[Guide] Root Note 9 (Exynos) Android 10 (Q) With/Out Custom Recovery
How to Root Note 9 with Magisk on Android 10 (Q) without Custom Recovery (Eg.. TWRP) This method will work with most of the latest Samsung devices running Android 9/10. (Tested and Working on Galaxy Note 9 (Exynos) with Android 10 Q). WARNINGS...
forum.xda-developers.com
FreakyJoost said:
So I run into the same problem. As I can't see anything useful in the magisk logs, I figured I'd check the dmesg.
This is one line that kind of triggers me, but I can't tell if it's significant:
Code:
[ 8.879227] init: Command 'start zygote_secondary' action=persist.sys.zygote.early=true (/init.rc:2197) took 0ms and failed: service zygote_secondary not found
This is on a Samsung J600fn.
Click to expand...
Click to collapse
You may be right. But why don't you post it to GitHub before the stable release?
Anyway, try this build:
yujincheng08 said:
You may be right. But why don't you post it to GitHub before the stable release?
Anyway, try this build:
Click to expand...
Click to collapse
I found the problem on this forum.. not github. Also this thread didn't mention a github issue this would be linked to.
As for trying the other build. I already have it fixed. As mentioned before, I disabled encryption and verity.
Maybe @Adrixan can still try?
FreakyJoost said:
I found the problem on this forum.. not github. Also this thread didn't mention a github issue this would be linked to.
As for trying the other build. I already have it fixed. As mentioned before, I disabled encryption and verity.
Maybe @Adrixan can still try?
Click to expand...
Click to collapse
you can open a new issue on github at any time though.
Anyway, disabling encryption is not a gentle fix. You can try to re-enable the encryption for the try.
Today I faced the same problem. I had encryption off already but flashed so I figured that one of my modules causes this. So basicly just remove all old modules to enable Zygisk. Probably some outdated module blocks Zygisk.
I finally found a solution guys if your zygisk is not enabling even if you enable and you reboot or you install a GSI like pixel experience/pixel experience plus etc it has a solution
1: you have to be rooted
2: enable zygisk
3: download and flash pixel launcher mod here you can download it from a telegram link : Mod edit: Inactive TG link removed.
Install and flash and check zygisk should be enabled if it’s still not enabling send me logs

Phone permission needed to take calls.

Hya,
i have a sagit phone, with lineageos 18.1 on it, pioneer head unit capable of AA and CP. Until last weekend, it worked fine. After an error, where i had to factory default the phone and reinstall the apps again,i get the message "Phone permission needed to take calls. When it's safe, turn on the phone permission in Settings."
But all permissions are set for AA, including phone.
Any hint in how to solve this?
Thx in advance!
Did you check your Bluetooth settings if phone permission is on for your pioneer head unit Bluetooth connection?
Hi, same problem, not tried yet with bluetooth settings as suggested above. Did it work? ('m lazy to make a new attempt with LOS 18.1, I explain why below)
So if it's not working with the tip above, I give here some clues :
I recently upgraded my Sony X Compact from Android 8 to lineageos 18.1 (Android 11) with MindTheGapps installed. Everything works fine except these call permissions.
I decided, after several failures, to test LOS 17 and calls are now possible from AA.
In Android 11, AA is natively integrated. In A10, it's not, it doesn't appear in the bluetoth/NFC settings, like in Android 8. Does this make the difference? A8 and A10 seem using the same permissions process, A11 not.
About permissions, I found another thread close to my issue and could be related: https://forum.xda-developers.com/t/linageos-16-overlay-permission-denied-but-it-is-checked.3924101/ . I tried the second method (Magisk) but it gave nothing and I'm just a newbie in Android world to try the other methods.
Any suggestions ?
Update from last reply
I finally installed LOS 19.1 (Android 12) with still MindTheGapps and everything works perfectly with AA. So it doesn't seem to be an Android version issue but rather LOS 18.1 itself or MindTheGapps. Maybe by using other gapps you'll get it work (I didn't try).
Hi,
I've upgraded my 9 y.o. Galaxy Note 4 to LineageOS 18.1 recently and was very happy with it until I stumbled on the same problem.
Android Auto claimed to have phone permission in the Application settings but the permission was impossible to change (mandatory/grayed out) and the unit in my Civic 10 was showing the same error as pw44's.
Having no UI to fiddle with, I thought maybe that can be tweaked with some ADB command, and after some reading here:
How to Grant Permissions Using ADB in Android
It can be tricky to grant advanced permissions to Android apps without rooting your phone. Here's how you can use ADB to achieve it.
www.makeuseof.com
and there:
Listing permissions of Android application via adb
Using adb, how can I find out the which permissions an Android application requires? Because I want to display the permissions of multiple applications on different devices, viewing them in Google...
stackoverflow.com
I came up with a command that fixed it:
adb shell pm grant com.google.android.projection.gearhead android.permission.CALL_PHONE
Obviously, I googled that exact command and found confirmation here:
Lineage OS 18.1 Xiaomi Redmi Note 6 Pro cant phone calls in Android Auto (#5092) · Issues · LineageOS / issues / android · GitLab
Expected Behavior Realize phone calls in Android auto Current Behavior Android auto...
gitlab.com

Question New to MIUI 13 - Need some advice

Hi guys.
Coming from a Mi 9T Pro which is stuck at MIUI 12.
Got a couple questions that i can't solve (tried google but that just gave me more questions)
First off. Followed this guide to root my phone. The root is working just fine, but Adaway is giving me some errors. Every time i try to install new hosts it tells me something like -Failed to copy the hosts file to the /system partition.
Adaway says it has something like 150k blocked, but it wont work.
Second. How the heck do i get rid of the clock in upper left corner? Can't find any settings and can't remember that i had it on my 9T Pro.
Thanks in advance.

Categories

Resources