Question Magisk Module Crashes - Sony Xperia 1 III

Recently I have been trying to install a magisk file. However, due to some reasons, the module crashes my phone. It's not a boot loop; instead, my phone just doesn't boot. The recovery and bootloader are fine so I can flash the stock boot.img to boot my phone correctly.
I searched on google for solutions. Almost everyone says I need TWRP to run magisk manager in recovery or use the adb shell command. The thing is there is no TWRP for this phone and I cannot even boot so that adb shell won't work.
Is there any method to uninstall the one module that makes the phone crash without wiping my data partition?

How far do you get into the boot? The ADB seems to be exposed for a couple of seconds before the module causes boot to stop, in my experience, so you can snipe in a command to disable the module.
adb wait-for-device shell magisk --remove-modules

I ran into a similar problem. I was able to fix by doing the below--maybe it will work for you too.
1. Use fastboot to install the regular boot.img (the one without root)
2. Start phone as normal
3. After the phone is booted (you don't need to unlock), press and hold the power button to get the power menu, then press and hold Power Off to reboot to Safe Mode. Make sure you have your USB cable ready--you want to press ok, but then plug your USB cable in, hold the volume button and get into fastboot instead of letting the phone reboot direct into Safe Mode.
4. Once in fastboot, reinstall your rooted boot.img, then reboot
5. When the phone reboots, it should now reboot into Safe Mode, but with root. You can then use "adb shell magisk --removemodules" to remove the offending module.
6. When you reboot again, you should now have a properly booting phone, with root, but no Magisk modules.

Related

help with stock recovery and stock 5.0 from asus

I have the padfone x rooted using towel root but I haven't installed a custom recovery. I'm trying to install the recent WW ROM for the padfone s and I get an error about the footer not matching. How can I install the s ROM on an x?
From custom recovery without installing said recovery.
1. Download TWRP and place it in directory with adb and fastboot.
2. Power off the phone, hold Volume UP then the Power Button until the phone turns on, then release the Power Button only. Your phone will appear to hang the ASUS Logo bootscreen, you are now in bootloader.
3. open command prompt on your PC and navigate to your adb/fastboot directory.
4. Run this command
Code:
fastboot boot twrp.img
5. Your phone will reboot and show the TWRP boot screen then go dark. Wait ~2 minutes then tap power to wake phone.
6. Install as normal from recovery.
If that doesn't work.
1. put the ROM zip in a folder on your computer where your ADB.exe is located.
2. Using TWRP, go to Advance > ADB Sideload
3. Slide to start ADB sideload.
4 Navigate CMD Prompt to the directory containing ADB and the zip file.
5. Run
Code:
adb sideload [I]filename[/I].zip
6. Tap reboot, TWRP will ask if you want to fix/install root. Your choice here
If you have any problems with force close, reboot into recovery and factory reset.
Thanks Daggorlad. That worked brilliantly.

Can't access recovery after 7.0

Hey there!
so, I just upgraded my z5c from MM CyanogenMod to this nougat ROM > [ROM][7.0][Stock][.33][3.7 b7][Deodex][DeBloat][Font][Stereo][Vulkan™] Xperia Loop™
Before the update I could enter TWRP without any problems.
Now, everytime I try to boot into recovery the phone simply reboots...
Things I've tried:
• Typed "adb reboot recovery" on CM
• Downloaded TWRP App to re-flash and click on "recovery reboot"
• Power up phone holding Volume Down
The phone is rooted with SuperSU.
The main reason I wanted to regain access to recovery is to re-root the phone with Magisk.
Thanks for your time.
1. install fastboot and fastboot drivers on your pc (if you don't have them obviously)
2. plug the phone into the pc using the usb cable while holding the volume + button (this way you will skip the adb part)
3. wait for the notification light to go blue
4. go into the fastboot directory
5. download the twrp "recovery.img" file and put it into the fastboot directory
6. hold shift while right-clicking into the directory where fastboot is
7. use the option to open a cmd into the directory
8. type in "fastboot boot recovery.img"
if your phone's fastboot drivers don't have signature (like it happened to me) download Zadig and create a signature for the driver
Hope this helps... i had the same problem and solved by doing this

boot loop with broken volumes buttons

Hi all, I wonder if anybody can help with this.
my volume buttons are not working (hardware issue) and I was trying to install TWRP and a custom rom but, after installing TWRP the phone now always boots in recovery mode (at least this is what adb tells me) but TWRP does not really start, I keep seeing only "honor, powered by android" black screen.
adb is working but not fastboot. I tried to reboot to bootloader but it always go to recovery instead. I have no su, and I am stuck just with adb in recovery.
any idea?
If you have full adb access maybe you can restore your backup directly from it
Thanks Rayan
how? what do you mean by "full adb access"?
I tried to run adb sideload but it does not work (it says "closed" shortly after without doing anything)
I don't really understand what the issue is, do you have access to TWRP menu or not at all? And when you say that you can use adb, is the device recognized when you type adb devices ? And what happens when you try to boot in bootloader and use fastboot? Can you try to the command "adb reboot bootloader"?
Rayan19997 said:
I don't really understand what the issue is, do you have access to TWRP menu or not at all? And when you say that you can use adb, is the device recognized when you type adb devices ? And what happens when you try to boot in bootloader and use fastboot? Can you try to the command "adb reboot bootloader"?
Click to expand...
Click to collapse
Thanks Rayan, I finally solved replacing the volume buttons (found cheap ones). However adb was working but no matter which command I was sending (adb reboot bootloader) the phone was always rebooting in recovery mode but TWRP was not starting properly (could not see anything)
with volume buttons I managed to enter into bootloader, reflash TWRP and do everything I needed
Thanks

Help with Xperia M4 root

I tried doing this root and safetynet procedure https://forum.xda-developers.com/m4-aqua/general/systemless-root-safetynet-t3725341
in my xperia m4 aqua e2306, but I can not get into recovery mode, I already tried to get into adb and it does not boot or simply reboot in normal mode, I tried to push volume (-) and power button, but it also does not work, and finally I used recovery reboot (and other apps) and nothing worked
This is for sony m4 aqua marshmallow 6.01 (SINGLE SIM)
You must have your bootloader unlocked before attempting this and usb debugging and oem lock both switched on.
For the boot.img and recovery.img you'll need for root CLICK HERE
Download then put the .img's inside your adb fastboot's home folder
Right click on an empty space inside adb fastboot and select open terminal here
On the command line input this command - adb devices -press return(you should see devicies serial #)If no reply from your phone check cables and s1 driver's.
If you are having S1 driver problem's download and install THIS it will install the driver's for you this will work for all phone's.
Once all is good.
On command input - adb reboot bootloader -press return
Once you are in bootloader mode your led on mobile should turn blue
Then input - fastboot flash recovery M4_tulip_recovery.img - return (should take around 5 sec's to flash)
You now have twrp to access switch off phone wait till it vibrates or 10 sec's hold down vol then press power on when sony logo appear's let go of vol down and click a couple of times twrp will start in around 5 sec's.
Switch phone on and put phone back into bootloader mode with -adb reboot bootloader -
Wait for blue led ---
Then input - fastboot flash boot M4_tulip_su_boot.img -takes under 10 sec's
Restart phone with - fastboot reboot - or switch on manually.
If all went well once restarted your phone should now have the supersu app installed and phone rooted with twrp recovery.
It may be worth mentioning that the command line is case sensitive so if any problem's just copy and paste the command's written above straight to the command line.
If you try to install supersu with a zip from twrp on the sony m4 you will probability run into trouble i have had nothing but bootloop's trying that way.
You can flash the .img in any order.

Relocked the bootloader now won't boot any more

I had my OPX running nicely with TWRP bootloader and AOSIP 8.1 rom, and then I went and relocked the bootloader with "fastboot oem lock" command. Now it just vibrates and flashes up the OP logo and "powered by Android" screen, and continuously reboots. Only thing I can do is hold the power button till it turns off. Holding the vol down button and power buttons aren't getting it back into fastboot state. What's the best way to recover from this state? Kind of hoping it's as simple as getting back in somehow and "fastboot oem unlock"?
OK, managed to recover it by getting into fastboot and unlocking the bootloader again. Bit of a relief. "Fastboot oem device-info" is now reporting device tampered as true, it was previously saying false. Is this different to being rooted? When I run a root check app it says the device isn't rooted. Everything is working fine apart from the Barclays banking app, which it seems is very fussy about non standard firmware, unlocked bootloaders, and having TWRP installed. Is there any way to make it happy? Kind of frustrating to loose that, all my other online banking apps work.
Did you tried with Magisk activating the Hide option for the Barclay's app?
Kéno40 said:
Did you tried with Magisk activating the Hide option for the Barclay's app?
Click to expand...
Click to collapse
No, not yet. I've been reading about it on XDA, but seems a bit hit and miss whether it Magisk can fool the latest Barclays app?
I also have another OPX (my current main phone) running stock Oxygen 2.2.3/Android 5.1.1. Bootloader is locked and it's not been rooted. I would really like to transfer all my saved wifi network passwords over to another device. They don't seem to go into google backup from the OPX, and I'm struggling to find another way to get them off without rooting. Obviously, I can't unlock the bootloader because it'll wipe everything off the phone. I did try Kingroot out of desperation (seems to be the only way to root with bootloader still locked?), but even that wouldn't install. So I'm stuck on that as well.
One Plus X reboots continuously and able to enter only fast boot mode
Hi My One plus X is now rebooting continuously and able to enter only fast boot mode. I tried unlocking boot loader but where the OEM Unlocking option is disabled in settings. Now unable to switch on mobile. Please help in getting out of Fast boot mode and switch on normally.
Tried pressing volume down+ power key
Volume up + power key enters only fast boot mode.
surya_vs said:
Hi My One plus X is now rebooting continuously and able to enter only fast boot mode. I tried unlocking boot loader but where the OEM Unlocking option is disabled in settings. Now unable to switch on mobile. Please help in getting out of Fast boot mode and switch on normally.
Tried pressing volume down+ power key
Volume up + power key enters only fast boot mode.
Click to expand...
Click to collapse
Noob Guide:
1. Download latest TWRP on computer.
https://dl.twrp.me/onyx/twrp-3.2.3-0-onyx.img.html
2. Download minimal adb tools and install it (Folder installed at C:\ProgramFiles\Minimal ADB and Fastboot)
https://forum.xda-developers.com/showthread.php?t=2317790
3. Transfer Twrp file to 'minimal adb and fastboot' folder.
4. Switch to fastboot in mobile by pressing "vol up + power"
5. Connect to PC using usb cable
6. Press "Shift" and right click in 'minimal adb and fastboot' folder, click on "open powershell(cmd) window here"
7. Type " ./fastboot devices "( it should show you fastboot serial number)
8. If bootloader is locked, unlock it by typing " ./fastboot oem unlock "
9. Install twrp by typing " ./fastboot flash recovery twrp-3.2.3-0-onyx.img "
10. Boot into twrp by typing " ./fastboot boot twrp-3.2.3-0-onyx.img "
11. If TWRP shows up,
Download your favorite desired Custom ROM (my fav any Oreo ROM) on computer and transfer it onto your mobile.
Download Gapps(any package nano,stock etc..) and transfer it to mobile.
12. In TWRP goto
Wipe >> swipe to factory reset
Advanced wipe >> select "System,Cache,Dalvik Cache" and wipe it
13. In TWRP goto
Install >>select ROM,gapps>>flash it.
14. Reboot
That's it.:laugh:
---------- Post added at 12:54 PM ---------- Previous post was at 12:41 PM ----------
mike-b said:
OK, managed to recover it by getting into fastboot and unlocking the bootloader again. Bit of a relief. "Fastboot oem device-info" is now reporting device tampered as true, it was previously saying false. Is this different to being rooted? When I run a root check app it says the device isn't rooted. Everything is working fine apart from the Barclays banking app, which it seems is very fussy about non standard firmware, unlocked bootloaders, and having TWRP installed. Is there any way to make it happy? Kind of frustrating to loose that, all my other online banking apps work.
Click to expand...
Click to collapse
Check the above guide to solve your issue.
Guide to use banking apps on custom roms.
1. Flash latest Magisk in TWRP and install Magisk manager.
2. Open up Magisk >>Magisk hide >>Choose app(ex: Google pay:Tez.. etc).
3. Magisk >> Settings>> Hide Magisk manager
4. Apps>> Google Play services >> Permissions >>Turn off telephone or phone permission.
5. Apps>> Google Play store >> Permissions >>Turn off telephone or phone permission
6. Login to banking app.
7. Viola!! Done and done.
Hope this helped.:laugh:

Categories

Resources