Installing Xposed - Stuck at installing TWRP - Samsung Galaxy S7 Edge Questions and Answers

Hello. I am trying to install TWRP on my S7 Edge, because I want the Xposed Framework. I have the Exynos version.
I am trying to follow this short guide: http://forum.xda-developers.com/showpost.php?p=66277202&postcount=28
I am rooted, I have all the zip files, and I have TWRP Manager installed. However, when I go to try and install it, it says:
"Something is wrong
Flashing recovery was unsuccessful. Either you already have this recovery installed or another error has occurred. Would you like to attempt rebooting to recovery now?"
If I select OK, I get into the TWRP Recovery, but I am unable to mount /data so I can take a backup.
Is this because of Android 6, that the device is encrypted and it won't mount /data?
I have read places that I need to flash a new kernel and format my user data, but if I have to take it that far, I don't really want to do it.
Please let me know your thoughts on this.
Thanks!

Related

Stuck in recovery

So i probably did something stupid.
I wanted to root my oneplus 5, so i updated it to last oxygenos 5.0.1 and copied all necessary stuff to pc.
After that unlocked the bootloader, got the phone to fastboot and flashed twrp 3.2.1-0.
Somewhy i couldn't access internal storage from twrp, it said its 0 mb and sdcard folder was empty, however i put magisk 15.3 there before, so i googled for a while and found that it probably couldn't mount storage. so this is where i probably did stupid thing by formating and fully wiping the phone. after that i could mount the storage, but the files were gone so i just put them there again. After that installed magisk and booted to system only to find myself in recovery again. So i though that i completely wiped the phone with the rom, so i downloaded the latest oxygenos and put it on the phone to install from twrp but it just doesnt install. returns error 7, which is, as google says, has somehting to do with asserts, it suggested to remove them form updater-script file, but opening it doesnt show any asserts in it. So here i am with phone with twrp and no rom at all. What do i do? Please help
tl;dr: I have OnePlus 5 with twrp 3.2.1-0 after complete wipe, and it cant install oxygenos because of error 7
Edit: only after posting noticed that there's a help thread, sorry for that. problem is not fixed though
Try a different TWRP.
update
thanks for suggesting different recovery. first tried older versions of twrp with no success, then tried twrp blu spark and it got a different error, something to do with unlocked bootloader. so i edited updater-script file and it installed normally. so i now have a clean oneplus 5 with oxygenos 5.0.1
will try to install magisk again, hopefully wont wipe everything again
update
yeah, everything worked. installed magisk and got root. but it always says 'install' inside magisk manager, is this normal?
saw that it should say 're-instal' in yt videos
It's normal.
Magisk updates regularly, those YouTube videos don't get updated.
I bumped into the same problem as mentioned by hyro28..
Please explain how to "update updater-script file " -- where is the file found, how to update it? I am new to this, would appreciate detailed instructions -- links, written instructions, videos, etc Thanks!

HELP URGENT! - I tried rooting my LG G6 (TWRP and Magisk)

I tried rooting my phone using TWRP and Magisk and at some point my OS was deleted.
Got a warning from TWRP satying "No OS" while trying to reboot.
At first the phone wouldnt start at all but now i've ended up with it only launching into TWRP every time i try to launch whether in Recovery Mode or not.
I have no idea what to do and need help. Please.
I believe i need a fresh install of Android but i have no idea how to do this
All you have to do is flash a ROM from within TWRP. It's relatively straight forward.
Pick appropriate ROM for your device: https://forum.xda-developers.com/lg-g6/development
Download the zip file, put it on an SD card or USB-C drive
Insert card/drive into your G6
Click "install" in TWRP, select the zip file
Flash and then reboot
Should be it. Follow the instructions for your particular ROM.

HELP! SM -G901F, TWRP can't find storage partition to mount

Guys this is help less.
After rooting my device I followed some instructions to get the Lineage 14. I flashed a BootLoader and a Modem as instructed and went forth to mount USB in order to transfer the custom rom into the device. But this is where the problem is.
It says E: Cant find partition to mount storage. I've tried to reboot, wide, data, storage, system and cache and repair the partition I don't know what else to do.
Anyone else can help? Btw I am fairly new to this stuff so please dumb it down for me.
Another thing, when I go to reboot my recovery it says my device isn't rooted and asks to install superSu, however it was rooted before I entered download mode and started installing bootloader and modem.
Now I have no operating system in the device so i can literally only use Recovery or download mode.
Is my device bricked? I don't know. :crying: :crying:
Pobi123 said:
Guys this is help less.
After rooting my device I followed some instructions to get the Lineage 14. I flashed a BootLoader and a Modem as instructed and went forth to mount USB in order to transfer the custom rom into the device. But this is where the problem is.
It says E: Cant find partition to mount storage. I've tried to reboot, wide, data, storage, system and cache and repair the partition I don't know what else to do.
Anyone else can help? Btw I am fairly new to this stuff so please dumb it down for me.
Another thing, when I go to reboot my recovery it says my device isn't rooted and asks to install superSu, however it was rooted before I entered download mode and started installing bootloader and modem.
Now I have no operating system in the device so i can literally only use Recovery or download mode.
Is my device bricked? I don't know. :crying: :crying:
Click to expand...
Click to collapse
If you can boot recovery, all is not lost.
First, are you sure that you flashed the correct bootloader/modem for your s5 model (G900 T, P, V, F, etc? Odin should not let you flash the wrong one, but anything is possible.
If Bl/modem is correct, them the next thing is to get the custom rom onto the phone.
-make sure you have downloaded everything you need (rom, root method(pref Magisk), gapps if wanted)
- boot into recovery, I'm recommending and assuming that you are using the latest Twrp, if not, d/l official Twrp for your model, and flash that with Odin
-In twrp select wipe, format data, just in case.
-now you should be able to mount usb storage, using the option in twrp
- now you should be able to mount your phone to your PC and transfer the rom, put it somewhere easy to find on the phone. also copy gapps and Magisk zips
-now, still in twrp, select install, select rom zip, select add more, select Magisk zip, also flash gapps at this time if you want to use them.
-click the button to flash
-click wipe cache/dalvik
-click reboot
-pray ?
BlueCyclone said:
If you can boot recovery, all is not lost.
First, are you sure that you flashed the correct bootloader/modem for your s5 model (G900 T, P, V, F, etc? Odin should not let you flash the wrong one, but anything is possible.
If Bl/modem is correct, them the next thing is to get the custom rom onto the phone.
-make sure you have downloaded everything you need (rom, root method(pref Magisk), gapps if wanted)
- boot into recovery, I'm recommending and assuming that you are using the latest Twrp, if not, d/l official Twrp for your model, and flash that with Odin
-In twrp select wipe, format data, just in case.
-now you should be able to mount usb storage, using the option in twrp
- now you should be able to mount your phone to your PC and transfer the rom, put it somewhere easy to find on the phone. also copy gapps and Magisk zips
-now, still in twrp, select install, select rom zip, select add more, select Magisk zip, also flash gapps at this time if you want to use them.
-click the button to flash
-click wipe cache/dalvik
-click reboot
-pray ?
Click to expand...
Click to collapse
Hey man! Thank you so much for your reply. I installed CPE1 bootloader and modem driver, honestly I don't even know what they do. Was this a wrong thing to do?
I rooted my device using cf auto root, then flashed the bootloader and modem using Odin. After that I (stupidly) tried to boot my stock OS and it was stuck in a bootloop.
Unfortunately I won't be able to try your instructions this till tomorrow evening but I'll keep you posted!! do you mind if I pm?
Edit: I was using twrp 2.8.7 I believe, could this have been the problem? Also I updated twrp to latest and tried micro sd as storage and flashed a Rom but the phone is still bootlooping
Pobi123 said:
Hey man! Thank you so much for your reply. I installed CPE1 bootloader and modem driver, honestly I don't even know what they do. Was this a wrong thing to do?
I rooted my device using cf auto root, then flashed the bootloader and modem using Odin. After that I (stupidly) tried to boot my stock OS and it was stuck in a bootloop.
Unfortunately I won't be able to try your instructions this till tomorrow evening but I'll keep you posted!! do you mind if I pm?
Edit: I was using twrp 2.8.7 I believe, could this have been the problem? Also I updated twrp to latest and tried micro sd as storage and flashed a Rom but the phone is still bootlooping
Click to expand...
Click to collapse
Ok I see you have S5 plus. I'm not familiar with that device to know which baseband it should be.
One thing you might try is to boot recovery and clear cache/dalvik and then try booting the custom rom.
If all else fails, you might try Samfirm
https://forum.xda-developers.com/galaxy-tab-s/general/tool-samfirm-samsung-firmware-t2988647
That should give you a stock firmware file to flash with odin.
You can pm if you need to, I don't own an S5+, nor am I a veteran flasher but I will try to help if I can.
BlueCyclone said:
Ok I see you have S5 plus. I'm not familiar with that device to know which baseband it should be.
One thing you might try is to boot recovery and clear cache/dalvik and then try booting the custom rom.
If all else fails, you might try Samfirm
https://forum.xda-developers.com/galaxy-tab-s/general/tool-samfirm-samsung-firmware-t2988647
That should give you a stock firmware file to flash with odin.
You can pm if you need to, I don't own an S5+, nor am I a veteran flasher but I will try to help if I can.
Click to expand...
Click to collapse
Ive tried the suggestion you gave me, no success. However I honestly dont know if it could be my fault. I'm gonna flash the stock firmware and restart the whole root process.
Thanks for your help man!
Pobi123 said:
Ive tried the suggestion you gave me, no success. However I honestly dont know if it could be my fault. I'm gonna flash the stock firmware and restart the whole root process.
Thanks for your help man!
Click to expand...
Click to collapse
Ok sorry I couldn't be more help
Oh, you don't need to use of cfautoroot anymore, you can just flash Magisk after the rom, and then use Magisk manager to manage all your root permissions.
So if you are going back to stock, I would:
-Flash stock in Odin
-probably boot stock once to verify (first boot takes long)
-odin flash latest twrp(uncheck auto-reboot, just battery pull after it says pass)
-power on phone with key combo to boot recovery
- format data
-flash rom/gapps?/Magisk
-wipe cache/dalvik
-reboot system (first boot will take long)
Hope you get your phone working again
BlueCyclone said:
Ok sorry I couldn't be more help
Oh, you don't need to use of cfautoroot anymore, you can just flash Magisk after the rom, and then use Magisk manager to manage all your root permissions.
So if you are going back to stock, I would:
-Flash stock in Odin
-probably boot stock once to verify (first boot takes long)
-odin flash latest twrp(uncheck auto-reboot, just battery pull after it says pass)
-power on phone with key combo to boot recovery
- format data
-flash rom/gapps?/Magisk
-wipe cache/dalvik
-reboot system (first boot will take long)
Hope you get your phone working again
Click to expand...
Click to collapse
Good News! Phone is back in full working order after flashing stock firmware. It was kinda scary though, I had to fix an error in Odin and then the phone wouldn't even boot up! Left it over night, booted it again and it worked fine Thanks a lot for your help, I'll try not to soft brick my device again

Error 7, /vendors

Today I tried to install LineageOs to a friend in his x720
I manage to unlock bootloader and TWRP, but when i try to install any zips i have that error.
Should I update the firmware?
If i have this zip, "firmware-20S-X720-le_zl1.zip" how do I install it? should I use TWRP??
Thanks for the help
guillert said:
Today I tried to install LineageOs to a friend in his x720
I manage to unlock bootloader and TWRP, but when i try to install any zips i have that error.
Should I update the firmware?
If i have this zip, "firmware-20S-X720-le_zl1.zip" how do I install it? should I use TWRP??
Thanks for the help
Click to expand...
Click to collapse
First, you really should had done your Homework before you started.
Error 7 means encryption. -
Go to the first page of Lineage 15 and use the recommended versions posted, its sounds like you have the wrong version of TWRP. You can install an upgrade to TWRP within TWRP, just make sure that you reboot back to TWRP recovery after installing, (check boxes if present)
If you have the correct version of Twrp, try rebooting to recovery and flashing the Rom again : if you have the same error , try the steps below.
If the issue is simply encryption related
Its because there is user data in the storage part of the phone ( the part that holds music, photos, user date etc ) Apparently it did not get fully wiped, It is possible that you may need to do a full wipe, maybe even format storage before you can go forward.
Try doing a Full wipe first and then reboot to recovery, if you see check boxes to install Twrp manager make sure that you check them.
If you have to format storage ( type yes) Be careful reboot to recovery and check boxes to keep Twrp installed and install Twrp manager
Ensure that you have latest version Lineage, and the correct version of Gapps and latest Magisk, ensure that you have the right firmware, if you have an X720 use X720 firmware, you do not want to use the wrong firmware or you will brick the phone.

.

.
HMSS013 said:
Had my new OP5 rooted and almost everything was right in the world, but i flew too close to the sun by uninstalling a few apps I thought were expendable and eventually Google Play Services started crashing. When all troubleshooting failed I ended up flashing a fresh copy of OxygenOS (5.1.7) to my device, but every attempt to re-root the device has failed.
The first obstacle I ran into was that there was no access to Internal Storage in TWRP, I was able to fix that by Wipe > Format Data and then using Advanced Wipe to clean Dalvik/Cache/System/Data for good measure.
My next issue was that TWRP returned Error 7 when attempting to flash the stock OOS rom... after some digging I was able to clean the 'asserts' line from the updater-script file and now the rom will flash.
The headache has been getting the device re-rooted, and I feel like I've tried everything. I have to flash the SuperSU or Magisk zip (both fail to root the device) before reboot because the dm-verity encrypts on first boot and after that I can't access any storage to flash from internal memory. The three different dm-verity patches I've found don't prevent it. I also tried 'fastboot oem disable_dm_verity' to try and stop it but after talking with the device fastboot returns 'unknown command'.
My final effort to get around it was to flash a kernel that didn't force dm-verity (blu_spark kernel) but that returns Error 1: 'Unsupported Android Version' when I attempt to flash it.
I've tried dozens of variations on this, including a Lineage OS rom instead and also trying to sideload certain zips, but still no dice. Any and all help would be appreciated.
Click to expand...
Click to collapse
Which rom do you want to install?
HMSS013 said:
The first obstacle I ran into was that there was no access to Internal Storage in TWRP, I was able to fix that by Wipe > Format Data and then using Advanced Wipe to clean Dalvik/Cache/System/Data for good measure.
Click to expand...
Click to collapse
Hi, this one is because of your TWRP. Please flash Codework's TWRP and try that with it. It should solve your issue for sure. (same thing happened to me while I tried installing custom roms and every time I needed to wipe everything to see my internal storage again)
This guide can help you out with Error 7 on TWRP https://forum.xda-developers.com/showthread.php?t=2522762
I do believe your this issue you're having caused by TWRP. Also after rooting the phone, install magisk app. (you don't need to install supersu, it comes with magisk). After rebooting into system reboot your phone again once more it should show up on magisk app that you've successfully rooted your phone. Remember after flashing magisk you need to reboot twice in order for phone to realize it. Please try the steps I told you and let me know.
Also you don't need to flash dm-verity patch at all.
Try clean flash instructions with Codework's TWRP and root it with latest Magisk.
.
.
HMSS013 said:
I actually really like the Oreo version of OxygenOS, so when I had to resort to re-flashing to fix this mess I dug up one of the stock (5.1.7) roms, it served me well (assuming I can get it rooted, lol).
I'd be willing to move to Lineage if I absolutely have to, but if not, I'd really like to keep Oreo if at all possible.
Click to expand...
Click to collapse
For 5.1.7 try this twrp https://drive.google.com/file/d/1UlTftbe6wooAs4Fp0cjwXlOKmfQHgdfL/view?usp=drivesdk along with magisk 17.1.
Clean flash is recommended. If it didn't help, please list your steps again(detailed).
Don't use supersu and skip the other suggestions for now please.
.

Categories

Resources