shoey63
Recognized Contributor
Does anyone know if there is a way to switch slots on the device itself, as opposed to jumping on the PC to change via fastboot?
If you have a custom recovery like TWRP, it allows change of slots.Does anyone know if there is a way to switch slots on the device itself, as opposed to jumping on the PC to change via fastboot?
Probably not the answer you're looking for, and this is from an Asus thread, but this may apply to some other devices, such as my Pixel:Does anyone know if there is a way to switch slots on the device itself, as opposed to jumping on the PC to change via fastboot?
3. Switching the Slot via Magisk
The active slot can also be changed in the Magisk App. This is used to update the boot partition after an OTA (see here https://topjohnwu.github.io/Magisk/ota.html for details) but can also be used to manual change the active slot.
Open the Magisk App and choose the "install" button to install Magisk into the boot partition. In the next dialog use the method "Install to inactive Slot (After OTA)".
This works also if no update (OTA) was installed and it does not change the Magisk config - it just replaces the Magisk files in the inactive boot partition and activates the inactive boot partition. To reboot the phone then from the now active partition press the "Reboot" button after the update of the boot partition by Magisk is done.
This only works if the OS in both slots is supported by Magisk, of course.
I don't know specifically about GrapheneOS, or the 7a for that matter, but on the Pixel 7 and 7 Pro, init_boot.img is what needs patched with Magisk to get root, not boot.img.Hey there,
apologies, if this has been addressed, but it didn't came up after a lengthy search. (At least not with a solution that worked).
Anyway, I want to run GrapheneOS on a Pixel 7a, rooted with Magisk and a unlocked bootloader for now.
I did flash GrapheneOS and booted it afterwards.
Then I took the boot.img included in the same factory image zip and patched it on device with the latest Magisk app.
I flashed the patched boot.img from fastboot (fastboot flash boot boot.img, I even tried with "--slot all"), but after rebooting the Magisk app shows "Installed N/A".
It simply looks like it doesn't get installed, but every step finishes successful without any error.
Did I miss anything? What else could I try?
ThanksProbably not the answer you're looking for, and this is from an Asus thread, but this may apply to some other devices, such as my Pixel:
There is also another method mentioned in that post (details there):
Unfortunately I use everyones of the apps you listed which is why i never rooted my zfold 3. The one think Knox gives you is adhell 3 and other similar apps. You can use the Knox firewall as a pretty effective adblocker and to disable system apps/remove permissions and receivers.There's no problem relocking on Samsung either...
You will lose special Samsung secure 'business platform' B2B (Business to Business) features (+ device enrollment for Knox solutions) incl. use of the Knox Security Container when Knox fuse (warranty bit) is blown.
Several Samsung apps and utilities use Knox Security so these will be also be broken including:
- Samsung pay*
- Samsung Pass
- Samsung Health
- Samsung Secure Folder
*Nb. There should be no issue for G Pay/Wallet.
I believe warrant may still be intact depending on local law, but in many lands the warranty will be voided.
Basically:
Likely most users never use the Knox enterprise features and might not need S Pay, S Health etc but need to realise that those features will be lost by flashing custom mods (not simply by unlocking bootloader)... Otherwise they can simply re-lock if and continue using device as before if they wish.
PW
Ooohh, will try that, thanks.I don't know specifically about GrapheneOS, or the 7a for that matter, but on the Pixel 7 and 7 Pro, init_boot.img is what needs patched with Magisk to get root, not boot.img.
fastboot flash init_boot <patched_init_boot.img>
You're welcome! That is exactly correct.Ooohh, will try that, thanks.
I would therefore need to
fastboot flash init_boot <patched_init_boot.img>
correct?
I must say that I totaly hate that warranty bit. No idea why, when relocking the device and wiping the device completely that bit is not reverted to 0x0 to allow the full experience. It's one of the biggest things that I dislike about Samsung devices as I like to root my devices and make roms for themThere's no problem relocking on Samsung either...
You will lose special Samsung secure 'business platform' B2B (Business to Business) features (+ device enrollment for Knox solutions) incl. use of the Knox Security Container when Knox fuse (warranty bit) is blown.
Several Samsung apps and utilities use Knox Security so these will be also be broken including:
- Samsung pay*
- Samsung Pass
- Samsung Health
- Samsung Secure Folder
*Nb. There should be no issue for G Pay/Wallet.
I believe warrant may still be intact depending on local law, but in many lands the warranty will be voided.
Basically:
Likely most users never use the Knox enterprise features and might not need S Pay, S Health etc but need to realise that those features will be lost by flashing custom mods (not simply by unlocking bootloader)... Otherwise they can simply re-lock if and continue using device as before if they wish.
PW
Not the answer but have you tried the rootless jamesdsp apk? You can use that with or without magisk and can switch between the 2Does anybody know what (actually, why it) happened to magisk --path?
AFAIK, it used to point to /dev/<something> but now, with Canary 26102 it points to /debug_ramdisk
Indeed, I can execute the following (commands and responses) on Magisk Delta 25210:
<cmd>
su
magisk --path
<resp>
/dev/gpjeftludcwoxhw
<cmd>
cd $(magisk --path)/.magisk/modules
pwd
<resp>
/dev/gpjeftludcwoxhw/.magisk/modules
<cmd>
touch MY-TEST-FILE_TO-BE-DELETED
ls MY*
<resp>
MY-TEST-FILE_TO-BE-DELETED
<cmd>
rm MY*
Ie, you see the path to /dev and that I can write to the subfolder
However, on Magisk 26102 it responds with a different path and eventually the subfolder is read-only:
<cmd>
su
magisk --path
<resp>
/debug_ramdisk
<cmd>
cd $(magisk --path)/.magisk/modules
pwd
<resp>
/debug_ramdisk/.magisk/modules
<cmd>
touch MY-TEST-FILE_TO-BE-DELETED
<resp>
Read-only file system
<cmd>
ls MY*
<resp>
ls: MY*: No such file or directory
---
I'm asking because I cannot make AML module to work.
It installs but doesn't create and/or populate it's folders with audio conf and xml patched files from eg V4A:
/data/adb/aml
/data/adb/modules/aml/system
It's because its post-fs-data.sh and service.sh scripts at zillion places try to write to the (now) read-only path:
$(magisk --path)/.magisk/modules/aml/system
Even worse, post-fs-data sh strictly assumes it is on /dev/<something>, hence it looks for:
[ -d "/sbin/.magisk" ] && MAGISKTMP="/sbin/.magisk" || MAGISKTMP="$(find /dev -mindepth 2 -maxdepth 2 -type d -name ".magisk")"
MODPATH=$MAGISKTMP/modules/aml
and therefore it obtains a complete b...sht - path to the not-existing folder:
<cmd>
echo "$MODPATH"
<resp>
/modules/aml
where it cannot read nor write to
Today I tried to adapt the AML scripts and got my modded AML module creating the folders, picking up audio conf and xml files but it breaks me then the V4A
---
Actually, I wanted to install JamesDSP (alongside with V4A and AML) - JamesDSP is also broken on Magisk v26 (reported in the JDSP thread by several users)
Unfortunately, JamesDSP does not have scripts but the logic is in the Java JDSP manager app and I assume (both modules are from the same developer and btw he had disabled reporting of Issues to GitHub) that it must be a similar problem with the now changed magisk --path on Magisk v26 (JDSP also works fine with Magisk Delta)
However, JamesDSP fails to work on Magisk v26 even if installed as the single/only audio module (hence, without the need for AML)
It creates /data/adb/modules/ainur_jamesdsp/system but doesn't populate with the patched audio files, and when you try to run JDSP manager app, it immediately crashes
---
If some power users could try please the quoted code on their Magisk v26, and maybe also on Alpha v26 (assuming, the wind of change was blowing again from that direction)
And/or, please try AML and JamesDSP modules on your Canary and Alpha v26
No I didn'tNot the answer but have you tried the rootless jamesdsp apk? You can use that with or without magisk and can switch between the 2
The rootless jamesdsp apk works either with root or adb so it is also a root app. I meant try it to see if it works with magisk or not, if it works at least you can use the module until magisk issue is resolved and you can easily switch back from within the app itselfNo I didn't
I have root and I'm not interested in rootless solutions
(And I'm interested to see how/why some things are constantly changed in Magisk in a way that one thing is fixed but the other changed and introducing troubles to the other modules - we are experiencing that since Canary v25207
Although, troubles are dragged here by the code in the AML scripts)
"New magisk tmp dir: /debug_ramdisk"Does anybody know what (actually, why it) happened to magisk --path?
AFAIK, it used to point to /dev/<something> but now, with Canary 26102 it points to /debug_ramdisk
<SNIP>
bonito:/ $ magisk -v
c79bc8327-ip:MAGISK:R
bonito:/ $ magisk -V
26102
bonito:/ $ magisk --path
/debug_ramdisk
bonito:/ $ ls -la debug_ramdisk/
ls: debug_ramdisk/: Permission denied
1|bonito:/ $ su -c ls -la debug_ramdisk/
total 1408
drwx--x--x 5 root root 260 2023-05-30 20:21 .
drwxr-xr-x 26 root root 4096 2023-04-22 18:55 ..
drwxr-xr-x 11 root root 260 2023-05-30 20:21 .magisk
drwxr-xr-x 2 root root 80 2023-05-30 20:21 dex2oat
lrwxrwxrwx 1 root root 10 1974-02-05 10:08 magisk -> ./magisk64
-rwxr-xr-x 1 root root 164200 1974-02-05 10:08 magisk32
-rwxr-xr-x 1 root root 259984 1974-02-05 10:08 magisk64
-rwxr-x--- 1 root root 657224 1974-02-05 10:08 magiskinit
-rwxr-xr-x 1 root root 345584 2023-05-30 20:21 magiskpolicy
lrwxrwxrwx 1 root root 8 1974-02-05 10:08 resetprop -> ./magisk
drwxr-xr-x 2 root root 80 2023-05-30 20:21 shamiko
lrwxrwxrwx 1 root root 8 1974-02-05 10:08 su -> ./magisk
lrwxrwxrwx 1 root root 14 1974-02-05 10:08 supolicy -> ./magiskpolicy
bonito:/ $
Unfortunately I use everyones of the apps you listed which is why i never rooted my zfold 3. The one think Knox gives you is adhell 3 and other similar apps. You can use the Knox firewall as a pretty effective adblocker and to disable system apps/remove permissions and receivers.
At least you can relock bootloader and go back stock I guess. On Sammy once you trip Knox that's it something's will never ever work again...
Old Sammy devices did work that way, but now soc makers include e-fuses that utilise physical burn-in on the substrate... I put info on use of q-fuses (Qualcomm) here:I must say that I totaly hate that warranty bit. No idea why, when relocking the device and wiping the device completely that bit is not reverted to 0x0 to allow the full experience.
If a non-Knox boot loader or kernel has been installed on the device, Knox can no longer guarantee the security of the Knox container. As a result, the Warranty Bit is tripped to 0X1, indicating that this device can no longer use the Knox Workspace (container.)
Yup... It's a choice... Much like Google's device integrity APIs and key attestation models really... They're doing that because they must compete in the secure Mobile OS arena in today's climate, and are loosing to IOS in the enterprise/corporate marketplace because of the (justified) perception that Android is largely insecure...It's one of the biggest things that I dislike about Samsung devices as I like to root my devices and make roms for them.
What I said was once you root something's will never work again which isStill, you said
which is just not true. You can both re-lock B/L and use stock ROM again and you will have Android like other devices. Samsung just disable their proprietary special knox-based features after device is tampered...
Old Sammy devices did work that way, but now soc makers include e-fuses that utilise physical burn-in on the substrate... I put info on use of q-fuses (Qualcomm) here:
https://forum.xda-developers.com/t/magisk-general-support-discussion.3432382/post-85146255
Samsung says
I put a number of links here (incl. ref. above):
https://forum.xda-developers.com/t/magisk-general-support-discussion.3432382/post-85755893
Yup... It's a choice... Much like Google's device integrity APIs and key attestation models really... They're doing that because they must compete in the secure Mobile OS arena in today's climate, and are loosing to IOS in the enterprise/corporate marketplace because of the (justified) perception that Android is largely insecure...
Samsung want to position themselves as a credible alternative to IOS/iPhone and as the leading manufacturer of property secure Android devices in this market too as the (somewhat outdated) links above show...
The difference in these approaches (ie. Google doesn't penalise modders by making the restoration of some device features impossible while Samsung does) may indicate that Google is more supportive of the modding community than is Samsung... I don't know if Sammy encourage custom modders in any way other than allowing B/L unlock... But it's still far more generous that what IOS will offer you!
PW
Ah... Sorry.What I said was once you root something's will never work again which isCORRECT. Of course you can relock bootloader but it won't fix the apps that will never work again and that was my point ffs
to mean you 'can't relock bootloader and go back to stock on Sammy once you trip Knox, and that's something that will never ever work again' rather than 'If you relock bootloader and go to back stock on Sammy, once you trip Knox some things will never ever work again'!...At least you can relock bootloader and go back stock I guess. On Sammy once you trip Knox that's it something's will never ever work again...
Apparently, there was also a change in the $MAGISKTMP variable (available during the Installation of Magisk modules):"New magisk tmp dir: /debug_ramdisk"
Magisk - [GitHub] - commit
Example: Pixel 3a Lineage 19.1
Code:bonito:/ $ magisk -v c79bc8327-ip:MAGISK:R bonito:/ $ magisk -V 26102 bonito:/ $ magisk --path /debug_ramdisk bonito:/ $ ls -la debug_ramdisk/ ls: debug_ramdisk/: Permission denied 1|bonito:/ $ su -c ls -la debug_ramdisk/ total 1408 drwx--x--x 5 root root 260 2023-05-30 20:21 . drwxr-xr-x 26 root root 4096 2023-04-22 18:55 .. drwxr-xr-x 11 root root 260 2023-05-30 20:21 .magisk drwxr-xr-x 2 root root 80 2023-05-30 20:21 dex2oat lrwxrwxrwx 1 root root 10 1974-02-05 10:08 magisk -> ./magisk64 -rwxr-xr-x 1 root root 164200 1974-02-05 10:08 magisk32 -rwxr-xr-x 1 root root 259984 1974-02-05 10:08 magisk64 -rwxr-x--- 1 root root 657224 1974-02-05 10:08 magiskinit -rwxr-xr-x 1 root root 345584 2023-05-30 20:21 magiskpolicy lrwxrwxrwx 1 root root 8 1974-02-05 10:08 resetprop -> ./magisk drwxr-xr-x 2 root root 80 2023-05-30 20:21 shamiko lrwxrwxrwx 1 root root 8 1974-02-05 10:08 su -> ./magisk lrwxrwxrwx 1 root root 14 1974-02-05 10:08 supolicy -> ./magiskpolicy bonito:/ $
Not sure if it helps but, that was the change.
¯\_(ツ)_/¯
Cheers.![]()
That's not the point. The point is it was an obvious thing to check, I never thought of it, @iruiz2 did, and I would have liked to be able to paste glitter and unicorns all over his post to express how much I Liked it.... except the poster did indeed try that, and the SIM card is fine. See above.
Just to make sure... Did you test your SIM card is working on another phone, and that another SIM card is not working on yours?the big button that said Uninstall Magiak, hit restore Images, did nothing, then I completed uninstall, unrooted my phone, then i factory resetted my phone, and my phone is still locked.
Yes I literally walked into a T MOBILE store and the employee put the same sim card into a display phone and it worked normally, even that same phone showing up on my T-Mobile accountJust to make sure... Did you test your SIM card is working on another phone, and that another SIM card is not working on yours?
How "did nothing"?the big button that said Uninstall Magiak, hit restore Images, did nothing, then I completed uninstall, unrooted my phone, then i factory resetted my phone, and my phone is still locked.
If Restore Images "did nothing", I suspect Complete Uninstall, which includes Restore Images, will have failed with errors also...the big button that said Uninstall Magiak, hit restore Images, did nothing, then I completed uninstall, unrooted my phone, then i factory resetted my phone, and my phone is still locked.
I consider it to be unfair to define "modder" or "developer" as "anyone who dumps partitions/nandroid".
<SNIP>
I miss the days when I could just use adb to dump the data partition into an image file and flash it back. 😿️<SNIP>
Since it's not available without unlocking, 'anyone who dumps partitions / performs nandroid' has to agree to modify the device by unlocking which changes original product features including disabling security functions and other features... Then they generally install a custom (modified) recovery...
<SNIP>
Yeah... And Microsoft should have stayed with DOS, and maybe Windows as a DOS add-on!...This illustrates why I always want to be able to use a device upon which TWRP (or perhaps OrangeFox) is functional. As long as I've taken a proper full nandroid backup of a previous working system, I can easily nandroid-restore that working system after an upgrade, if I wish.
I am not happy with Google for continuing to "enhance" (ha ha!) Android as time goes on,
That's certainly NOT their intention...thereby making it more and more difficult to get TWRP and OrangeFox working with newer Android versions.
https://twrp.me/about/TWRP development is done by roughly 4 people at this point. We also have a large support community with many people who are willing to answer questions and help people with their devices either through our Zulip channel or on forums like xda-developers.
We need your help! The bulk of TWRP work is done by a handful of people on a volunteer basis. We have pushed most of our device files to our github and we have a gerrit instance. If you have the ability, please help us maintain our official devices and/or add your device to our official device list. Thanks in advance!
.... thereby making it more and more difficult to get TWRP and OrangeFox working with newer Android versions.
Yeah... in Australia you should be sure to meet Gumtree electronics vendor in the middle of a busy shopping mall!... In Asian countries this is even more imperative...Sorry laughing at side of road comment, not your post in general