Magisk (Magic Mask/root) is always installed in a real device's ramdisk... Thus root (superuser permission) exists regardless of any App...Hello thank you for your answers pndwal and J.Michael, ok I don't see why and how to reinstall following a third-party installation or other magisk which shows me not available and zygisk not available without going through odin...
If you think you have lost root, run a terminal emulator app and type... the concern this one how to find magisk if it goes unavailable...
magisk -c
to see current binary version. If Magisk is not installed, no version info will be returned... To check Magisk is running in the background, type magisk -V
to see running daemon version code. If Magisk daemon is not running properly no version info will be returned...Hello, I would like to know the reason when installing an application or updating the fox manager apk or others. Magisk application is found unavailable.
My concern that I would like to know why as explained during an example installation yesterday I installed superNDS a DS nitendo emulator.
There is no denying that the Android app formerly known as "Magisk Manager" is a manager. The quibbling comes from John Wu declaring that he no longer wanted the app to be called "Magisk Manager", but rather just "Magisk".@badabing2003 @pndwal @J.Michael
Now that everyone has explained Magisk root vs. the Manager app.
Sorry.I will always refer to the Magisk app as the Manager because that is what it is.I have used Xposed and other(s) for too long to not refer to the application that allows you to setup, install modules, configure and control as the Manager.
---
I would like to bump the other half of his question.
- Why would installing/updating a Module cause Magisk to fail for him.
- Why would installing an APK file even affect Magisk let alone cause it to fail.
I can not duplicate this part of the issue.
Any ideas on why this part of the issue would happen?
Cheers
PS.
I update and install modules, apks and even system updates with Magisk hidden (renamed).
Very rarely do I have an issue due to the Magisk app being renamed.
@J.Michael and @ipdevThere is no denying that the Android app formerly known as "Magisk Manager" is a manager. The quibbling comes from John Wu declaring that he no longer wanted the app to be called "Magisk Manager", but rather just "Magisk".
As for @meric57's disappearing Magisk: He mentioned installing apps, not so much modules. And we are all currently so hung up on him displaying screenshots showing no-Magisk/unhidden-manager vs. Magisk/hidden-manager, I think we are ignoring his claim that the problem is triggered by installing/updating an app.
Competing installed Magisk manager apps would give the error even before installing a random apk file.@J.Michael and @ipdev
To me the problem of why installing an app is triggering the issue is a secondary problem, that I wouldn't look into until I address the primary issue.
Which is:
1- Multiple versions of the manager on the system.
2- Redoing the root patch (this should not be necessary)
Hence I asked to first uninstall all managers, reboot and the install one copy, preferably not hidden (just for testing) and then install an app and see if it triggers the issue. I suspect that it won't, but if it does, at least at that point we know it is not the manger misleading him.
It is also possible that the Magisk root is of a different version than the manager being installed.
Once change at a time to narrow it down, that would be my approach.
@meric57's screenshots show no Magisk with unhidden manager; Magisk with hidden managerCompeting installed Magisk manager apps would give the error even before installing a random apk file.
Both the full Magisk app and the hidden (renamed) one would show Magisk as N/A.
I do not think the initial issue is with multiple Magisk apps installed.
Since Magisk (hidden) seems to be working before installing an apk file.
I can see reflashing magisk via Odin might install the full Magisk app.
But, it does not explain why it (full version) shows Magisk actively installed if there is a hidden magisk Manager app still active.
The full version and the hidden (renamed) version should both show Magisk as N/A until you remove one of them.
---
I fully agree with your suggestion about testing without the Magisk app hidden (renamed).
Cheers.
PS.
Just tried to duplicate competing full and hidden Magisk app on my Pixel 7.
Current commits in Magisk seem to now keep this from happening.
I installed the full Magisk app version.
Opened it and it closed and was removed, leaving only my hidden (renamed) version active.![]()
I think John did this:@badabing2003 @pndwal @J.Michael
Now that everyone has explained Magisk root vs. the Manager app.
Sorry.I will always refer to the Magisk app as the Manager because that is what it is.I have used Xposed and other(s) for too long to not refer to the application that allows you to setup, install modules, configure and control as the Manager.
This may be device or version dependant... I always try this just to guage if the issue has been resolved... On my device the issue is less frequent than a year ago, but both taking Hide the Magisk app and updating with App hidden have still failed several times recently to remove the full App and required manual removal...PS.
I update and install modules, apks and even system updates with Magisk hidden (renamed).
Very rarely do I have an issue due to the Magisk app being renamed.
I did wonder about this too, but am not familiar with how Fox updates / other apps etc might interfere or even restore full app...I would like to bump the other half of his question.
- Why would installing/updating a Module cause Magisk to fail for him.
- Why would installing an APK file even affect Magisk let alone cause it to fail.
I can not duplicate this part of the issue.
Any ideas on why this part of the issue would happen?![]()
To me the problem of why installing an app is triggering the issue is a secondary problem, that I wouldn't look into until I address the primary issue.
Which is:
1- Multiple versions of the manager on the system.
...
Once change at a time to narrow it down, that would be my approach.
Yes, but that is evidently the state of things now for whatever reason... And FWIW, once the hidden stub is properly working the full App has necessarily been removed...Competing installed Magisk manager apps would give the error even before installing a random apk file.
Both the full Magisk app and the hidden (renamed) one would show Magisk as N/A.
So why did he show the full app not working?I do not think the initial issue is with multiple Magisk apps installed.
Since Magisk (hidden) seems to be working before installing an apk file.![]()
Ah... But it didn't... Full App showed Non disponible ... Excusez mon français...I can see reflashing magisk via Odin might install the full Magisk app.
But, it does not explain why it (full version) shows Magisk actively installed if there is a hidden magisk Manager app still active.
Please say which commit... (This: Fix automatic stub installation seems unrelated)...PS.
Just tried to duplicate competing full and hidden Magisk app on my Pixel 7.
Current commits in Magisk seem to now keep this from happening.
I installed the full Magisk app version.
Opened it and it closed and was removed, leaving only my hidden (renamed) version active.![]()
Ah... So appearance of full app happens with a reboot...Hello, my installation I do as explained by JohnWu modify AP with magisk then adb pull then odin.
Then once active start zygisk and installation of the main modules, applications like root checker and others give me active root.
Why for example when I update LSPosed in magisk or an application like Saturday that I installed nitendo DS emulator, when I restart my s10 exynos I find in the first magisk and zigisk not available.
So either it comes from a conflict with magisk installer or magisk is jealous that I install another application with its permission.
if it starts again how to proceed for the reinstallation without going through odin normally I just update firmware when a new security arrives, I read on the thread of the discussions you have to flash the boot.img or recovery.img of the AP patched_magisk with adb or magisk in recovery.
Canyie talks about uninstalling app manager no, for automatic installation
https://github.com/topjohnwu/Magisk/pull/6547
Badading2003 talks about 2 install managers, he talks about magisk and app magisk manager .
unless it speaks that on the internal memory of the Samsung S 10 I have 2 installations of the magisk manager app.
Just did the same to ensure forced app removal occurs even with same build App installation... It did...PS.
Just tried to duplicate competing full and hidden Magisk app on my Pixel 7.
Current commits in Magisk seem to now keep this from happening.
I installed the full Magisk app version.
Opened it and it closed and was removed, leaving only my hidden (renamed) version active.![]()
... But regarding this:Just did the same to ensure forced app removal occurs even with same build App installation... It did...
So seems we do have forced app removal for App when hidden stub App is present in addition to when signing keys differ or App has a lower version than Magisk daemon...
Man, Magisk Devs are trying hard to protect us from ourselves! (Not sure I need my hand held this much)... Except that when this fails to work as expected we may need protecting from them!PW
PS.
I update and install modules, apks and even system updates with Magisk hidden (renamed).
Very rarely do I have an issue due to the Magisk app being renamed.
Just uninstalled hidden App (on latest Canary) again, reinstalled Canary Magisk App, then took Hide the Magisk app, and once again process failed to uninstall full app, asks for superuser permission for Magisk App etc ... As usual, simply ignoring requests and uninstalling the full App restores hidden app functions...This may be device or version dependant... I always try this just to guage if the issue has been resolved... On my device the issue is less frequent than a year ago, but both taking Hide the Magisk app and updating with App hidden have still failed several times recently to remove the full App and required manual removal...
Here's an open issue on this; My comments there too:
Hiding and Restoring Magisk App not working properly on Galaxy A8 2018 (Android 9.0)
#6309 opened on Oct 6, 2022 by DarkKnight1995
PW
What did you do?Hello, my installation I do as explained by JohnWu modify AP with magisk then adb pull then odin.
Then once active start zygisk and installation of the main modules, applications like root checker and others give me active root.
Why for example when I update LSPosed in magisk or an application like Saturday that I installed nitendo DS emulator, when I restart my s10 exynos I find in the first magisk and zigisk not available.
So either it comes from a conflict with magisk installer or magisk is jealous that I install another application with its permission.
if it starts again how to proceed for the reinstallation without going through odin normally I just update firmware when a new security arrives, I read on the thread of the discussions you have to flash the boot.img or recovery.img of the AP patched_magisk with adb or magisk in recovery.
Canyie talks about uninstalling app manager no, for automatic installation
https://github.com/topjohnwu/Magisk/pull/6547
Badading2003 talks about 2 install managers, he talks about magisk and app magisk manager .
unless it speaks that on the internal memory of the Samsung S 10 I have 2 installations of the magisk manager app.
As for competing managers.@meric57's screenshots show no Magisk with unhidden manager; Magisk with hidden manager
I don't remember anyone ever talking about locating the hidden app in the app drawer and using it. I have been assuming that it would show Magisk installed -- the problem was always that the victim didn't realize he had two manager apps, I don't remember anyone saying that with two managers, both managers are disabled, only that the new, unhidden, manager did not communicate with the installed Magisk because the installed Magisk had somehow been co-opted by the manager that is now hidden.
Maybe meaningless details. I do not feel that we have been told what @meric57 did, in exactly what order.
Like I said I have been using Manger apps way too long to not refer to them as the Manager.I think John did this:
https://topjohnwu.github.io/Magisk/...agisk-manager-is-deadlong-live-the-magisk-app
to clearly distinguish the old Manager which was just that, the Manager component, a "companion app" finishing with version 8.0.7, from the new Magisk app which is actually a complete Magisk package w/ the App (UI) part now necessarily in sync with the Magisk binaries and including "everything it needs within the APK itself, making installation a 100% offline process" incl. zip installers and now stub APK etc and starting wrapped with Magisk itself as version 22.0 (22000)...
Magisk Manager is dead.
Long live the Magisk app!
PW
Like I said I have been using Manger apps way too long to not refer to them as the Manager.![]()
It's ok not to be a dev or know Python, you can use the program as a user,I did try taking a look at PF source code at Github, but unfortunately I still know nothing of Python, thus could not understand much...
bad patch
good patch
I don't agree with the above generalization, there's always outliers, but in general the community is very helpful, and amazingly patient even with newcomers, what is typically not tolerated is people not putting in the effort to research or even read few posts and expect all the answers to be delivered on a platter.Having just seen that community here tends to be highly intolerant towards non-devs/non-experts in general, I realized I was almost completely on my own. Then, I was only able to follow what boot_patch.sh said in its code.
You're not supposed to know, but you find out with exploratory observation, testing, trial and error and of course differential analysis.For all the above facts, yes, I did not export the KEEPVERITY=true and KEEPFORCEENCRYPT=true env variables -how am I supposed to know they're always needed no matter what device?-, did not unzip magisk32 -why on earth if ARCH in my case is arm64-v8a?-, and did not run magisk cleanup before patching -is this important?-.
With Magisk Delta Canary 'Direct Install' too. I was thinking mine was one of those rare cases..... I don't wipe anything, just updating Delta by patch and flash (Delta Canaries come several times a week)
If you're running
boot_patch.sh
those are referenced without .so
ligmagiskboot.so
and others directly then there is no need to rename anything.boot_patch.sh
on an unrooted system#!/system/bin/sh
##############################################################################
# PixelFlasher 4.8.1.0 patch script using Magisk Manager 25.2:25200
##############################################################################
ARCH=arm64-v8a
cp /data/app/~~wUtBmsEAIr1uaL-H7KirJg==/com.topjohnwu.magisk-Bsw07ODC_tLE4-KThHUD3A==/base.apk /data/local/tmp/pf.zip
cd /data/local/tmp
rm -rf pf
mkdir pf
cd pf
../busybox unzip -o ../pf.zip
cd assets
for FILE in ../lib/$ARCH/lib*.so; do
NEWNAME=$(echo $FILE | sed -En 's/.*\/lib(.*)\.so/\1/p')
cp $FILE $NEWNAME
done
cp ../lib/armeabi-v7a/libmagisk32.so magisk32
chmod 755 *
export KEEPVERITY=true
export KEEPFORCEENCRYPT=true
./magiskboot cleanup
./boot_patch.sh /sdcard/Download/init_boot.img_4d938d3c.img
cp -f /data/local/tmp/pf/assets/new-boot.img /sdcard/Download/magisk_patched_4d938d3c.img
True, it is the case... No need for another reboot since you've already done one since flashing Magisk and Android system setup...Thank you @zgfg @shoey63 @pndwal
It makes all sense now,
I don't recall ever needing to reboot when I did the following steps manually, most likely my memory is not serving me well.
Is this not the case?
- Brand new system, setup phone
- Install Magisk
- Create Patch (at this point /data/adb/magisk can't be setup, no root yet)
- Reboot to bootloader and flash the patch (still no /data/adb/magisk)
Reboot to system and Magisk works and does not need to reboot.
App doesn't need to be installed... Magisk daemon does the config setup... App will only notify you of need for extra setup (just a reboot actually) if it's opened...If it does need to reboot then what follows belowspoiler
is moot and everything is clear,
"However if it does not need to reboot"
Then upon first boot after flashing the patch, Magisk Core sets up the /data/adb/magisk behind the scenes automatically? only if Magisk Manager is installed?
No, sorry...Because the only difference was that I installed Magisk Manager after the system was up.
Then the logic dictates that Magisk Core will only setup automatically if it finds Magisk Manager (I suppose a startup process?)
If one chooses to install Magisk Manager afterwards like I did, it would prompt that it would need to do additional steps, which is ok, but why need a reboot in this case?
If it is capable of doing it without reboot?
... the important difference is actually that you (re)booted after the system was up... When you installed the Magisk App is immaterial...Without digging into the code further this indicates to me that the 'Additional Setup' needs no special routines in this case, only a simple reboot to rebuild configuration files which happens automatically if they're missing anyway... Seems we just need two reboots after factory reset / data wipes simply because Magisk cannot build configuration in /data/adb until initial Android Setup is performed.
no, as in similar approach to determine that I needed to include Magisk32 binary when creating a patch
did not unzip magisk32 -why on earth if ARCH in my case is arm64-v8a?
Not only does it work, but if you take a few extra steps, you can make a 100% clean install of ANY Magisk version or fork without PC or TWRP.. . . found a YT video that explains you can download the APK, rename to .zip, and install it as a module. Hopefully that works![]()
Magisk canary builds are available on GitHub.how/where do you get prior canary builds if you're on the latest?
2.3 Flaming / Lack of respect: XDA is about sharing and this does not involve virtual yelling (flaming) or rudeness. Flaming or posting with a lack of respect is unacceptable. Treat new members in the manner in which you would like to have been treated when you were a new member. When dealing with any member, provide them with guidance, advice and instructions when you can, showing them respect and courtesy. Never post in a demanding, argumentative, disrespectful or self-righteous manner.