Back stock rom and preserve twrp ? - Samsung Galaxy A70 Questions & Answers

Hello ! I have an A70, I installed Havoc OS and it's.... well I dont like it. I want to back stock rom.
Can I flash stock rom via twrp ? (same way as I installed Havoc or lineage)
Can I flash ONLY system.img ?
My idea is to install stock rom and get root access with magisk at the end.
My problem is I cant find any good informations about that !
All I read is contradictory....
on guy say it's ok to flash only system.img via twrp, other guy say to flash boot.img +recovery.img+system.img and use Odin, never flash stock rom with twrp.
I just want to get back to stock rom and flash magisk again....
any help about the right procedure to install stock rom and flash magisk again ?
thank you....

I don't know about twrp, if you can use Odin it'd be better.

SniperLolz said:
I don't know about twrp, if you can use Odin it'd be better.
Click to expand...
Click to collapse
thank you for your answer.
1 - so if I use Odin, I just need to flash AP section ? Or the full firmware ?
2 - recovery will be back to stock too ?
I want to preserve twrp.
3 - I just need to fash twrp right after flash Ap.tar/full firmware ? (without reboot device between the 2 flash)
Right ?
need help to understand how flashing stock rom works (via Odin or twrp).
I already wiped data, system,cache partitions from twrp and now the phone only boot in twrp (the recovery) no system installed.
I just want to get back to stock rom (because I have NO system installed) with twrp which is patched with magisk ( to have root access) simple but I cant find the good procedure...
I am able to install Havoc or lineage, but they doesnt suit me.
I want to flash stock system only.... simple but no answer anywhere...
I can extract system.img.ext4.lz4 from the ap.tar. Then I extract system.img.ext4 from system.img.ext4.lz4.
And cant extract system.img from system.img.ext4 to flash it with twrp. I just miss this step and the answer is nowhere. Like the answer which files can be flash with twrp...
need procedure, every tuto is contradictory....

Ial69 said:
thank you for your answer.
1 - so if I use Odin, I just need to flash AP section ? Or the full firmware ?
2 - recovery will be back to stock too ?
I want to preserve twrp.
3 - I just need to fash twrp right after flash Ap.tar/full firmware ? (without reboot device between the 2 flash)
Right ?
need help to understand how flashing stock rom works (via Odin or twrp).
I already wiped data, system,cache partitions from twrp and now the phone only boot in twrp (the recovery) no system installed.
I just want to get back to stock rom (because I have NO system installed) with twrp which is patched with magisk ( to have root access) simple but I cant find the good procedure...
I am able to install Havoc or lineage, but they doesnt suit me.
I want to flash stock system only.... simple but no answer anywhere...
I can extract system.img.ext4.lz4 from the ap.tar. Then I extract system.img.ext4 from system.img.ext4.lz4.
And cant extract system.img from system.img.ext4 to flash it with twrp. I just miss this step and the answer is nowhere. Like the answer which files can be flash with twrp...
need procedure, every tuto is contradictory....
Click to expand...
Click to collapse
Flash every file that comes with the stock rom, that's how you get it back. I don't know about root, I'm not rooted.

Ial69 said:
1 - so if I use Odin, I just need to flash AP section ? Or the full firmware ?
2 - recovery will be back to stock too ?
I want to preserve twrp.
3 - I just need to fash twrp right after flash Ap.tar/full firmware ? (without reboot device between the 2 flash)
Right ?
need help to understand how flashing stock rom works (via Odin or twrp).
Click to expand...
Click to collapse
I don't know of a way to flash stock using TWRP (and preserve TWRP).
Quickest way might just be to:
- Flash back to stock firmware using ODIN in Windows (phone in download mode). This will wipe everything of course, including TWRP (I found).
- Follow the unofficial TWRP installation for the A70 [RECOVERY][UNOFFICIAL][ROOT] TWRP for Galaxy A70
:good:

Related

Update failed [Help].

Hi All,
Previously my op3 unlocked and rooted after some days i was flashed Freedom OS 1.7 (normal) build. Now i want go back to complete stock and unroot. I follow some of the guidance videos internet and followed ,
1. Restored my backup via twrp
2. Flashed Full rom OOS 3.2.6 via TWRP
3. Flashed stock recovery via ADB. Everything works fine but
Now i am trying to update 3.2.6 to 3.2.7 getting error " Installation Failed" . Whats wrong i did .
Also i have boot logo Freedom OS don't know even i am on stock rom. Can any one help me
1. How to remove that boot logo
2. Completely go back to stock rom with stock recovery
3. Also get updates and install without fail
Please help Guys.
Thanks in Advance
Mahesh
Well, probably its a problem with your boot.img partition. Extract boot.img from stock rom zip, then flash it via fastboot flash boot boot.img and then, flash orginal recovery same as boot. Then, finally, flash via recovery STOCK ROM. Probably now it will be fine.
If not, try flash TWRP and make FULL WIPE included system partition and repeat upper steps.
Cheers.
In twrp goto wipe and do normal wipe remember don't do advance wipe otherwise it'll format internal storage as well so avoid advance wipe only do normal wipe then install full 3.2.7 zip and super su. zip
Sent from my ONEPLUS A3003 using Tapatalk
Mahesh8348 said:
Hi All,
Previously my op3 unlocked and rooted after some days i was flashed Freedom OS 1.7 (normal) build. Now i want go back to complete stock and unroot. I follow some of the guidance videos internet and followed ,
1. Restored my backup via twrp
2. Flashed Full rom OOS 3.2.6 via TWRP
3. Flashed stock recovery via ADB. Everything works fine but
Now i am trying to update 3.2.6 to 3.2.7 getting error " Installation Failed" . Whats wrong i did .
Also i have boot logo Freedom OS don't know even i am on stock rom. Can any one help me
1. How to remove that boot logo
2. Completely go back to stock rom with stock recovery
3. Also get updates and install without fail
Please help Guys.
Thanks in Advance
Mahesh
Click to expand...
Click to collapse
before you flash 3.2.7 mount system read-only. you can do this under "mount"
it is a known bug with twrp and oxygenos
You can download the stock boot logo from here: https://www.androidfilehost.com/?fid=529152257862664522
Credits goes to @jamal2367
panther124 said:
before you flash 3.2.7 mount system read-only. you can do this under "mount"
You can download the stock boot logo from here: https://www.androidfilehost.com/?fid=529152257862664522
Credits goes to @jamal2367
Click to expand...
Click to collapse
Hi you are saying in TWRP or Stock recovery? anyway i am on stock recovery . How to mount on stock recovery.
Mahesh8348 said:
Hi you are saying in TWRP or Stock recovery? anyway i am on stock recovery . How to mount on stock recovery.
Click to expand...
Click to collapse
if you are on stock recovery you cant change the mounts.
flash twrp to flash bootlogo and oxygenos 3.2.7
otherwhise you have to install via sideload but this is very slow and you cant flash stock bootlogo
so flash twrp and then mount system read-only and then flash oxygenos 3.2.7 and after or before this you can flash the stock bootlogo
panther124 said:
if you are on stock recovery you cant change the mounts.
flash twrp to flash bootlogo and oxygenos 3.2.7
otherwhise you have to install via sideload but this is very slow and you cant flash stock bootlogo
so flash twrp and then mount system read-only and then flash oxygenos 3.2.7 and after or before this you can flash the stock bootlogo
Click to expand...
Click to collapse
Thanks sir for that boot logo.
I want go complete stock without twrp. after i flash 3.2.6 via twrp it will replace twrp recovery and automatically go to stock recovery. Again i flashed stock recovery . try to update via stock recovery it shows installation failed. attached is the image for your reference. could you please suggest to install updates successfully .
Mahesh8348 said:
Thanks sir for that boot logo.
I want go complete stock without twrp. after i flash 3.2.6 via twrp it will replace twrp recovery and automatically go to stock recovery. Again i flashed stock recovery . try to update via stock recovery it shows installation failed. attached is the image for your reference. could you please suggest to install updates successfully .
Click to expand...
Click to collapse
download 3.2.7 full zip and flash it
i will show you how to get this becuase you cant download it from official site
http://forum.xda-developers.com/oneplus-3/how-to/download-install-oxygenos-3-2-7-update-t3472178
here you can get the full zip. And this zip you can flash without 3.2.6 preinstalled.
panther124 said:
download 3.2.7 full zip and flash it
i will show you how to get this becuase you cant download it from official site
http://forum.xda-developers.com/oneplus-3/how-to/download-install-oxygenos-3-2-7-update-t3472178
here you can get the full zip. And this zip you can flash without 3.2.6 preinstalled.
Click to expand...
Click to collapse
Thanks for that sir,
Every time i got update need to do like this way. or i will get updates automatically .
Mahesh8348 said:
Thanks for that sir,
Every time i got update need to do like this way. or i will get updates automatically .
Click to expand...
Click to collapse
You should get it automatically

TWRP gets overwritten

I'm on latest ob18. I am able to flash it, and run it once, but after reboot, the stock recovery gets Back. Any ideas?
Just Reflash twrp via flashify or adb in fastboot mode, that could be normal if u r flash an unmodified stock rom
Yep. On latest ob-Oos or H2o for me recovery stays, after instaltion of the rom. But on a second reboot, stock recovery shows and i reflash custom recovery again.
Guys I flashed latest H2OS beta over OOS Beta18 and lost access to recovery. These are the steps I followed, please help.
1. Backup current ROM (OB18)
2. Dirty Flash New H2OS version
3. Flash recovery image again
4. Reboot system
ROM booted without any problems and all my data is present but I lost access to TWRP.
Solution attempted: Reboot to fastboot and flash recovery image again, the process is successful but still TWRP is not coming up.
Please help. Thanks in advance
Stock rom always over writes recovery best way to get it to stick is flash stock zip than twrp reboot to twrp and reboot or flash mods/root
liam_davenport said:
Stock rom always over writes recovery best way to get it to stick is flash stock zip than twrp reboot to twrp and reboot or flash mods/root
Click to expand...
Click to collapse
Thanks this worked

[RECOVERY][P905][UNOFFICIAL] twrp 3.2.2-0

I'm not responsible for any damage to your device of any sort.
By flashing this you take responsibility of anything that happens.
Process at your own risk!
This recovery was developed for the p905. It doesn't apply to the p905v at this time because it's bootloader locked and a custom recovery isn't possible.
Instructions
Install zip using an existing custom recovery
Work
Everything works as in the original version + otg and mtp.
Links
2. 20180708: 3.2.2-0 version:
from recovery: https://drive.google.com/file/d/1v5KlNFjaQqpyml7TotbleIvsGhITyYFk/view?usp=sharing
from odin: https://drive.google.com/file/d/1RMqFJ7uXVwttxu5dmYarQLcAi56g2seh/view?usp=sharing
1. 20171006: 3.1.1-0: https://drive.google.com/file/d/0B-6nm7Jks0W5MHlwTUxlUDFiOWc/view?usp=sharing
Sources
TWRP: https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni
Device: twrp branch: https://github.com/Valera1978/android_device_samsung_viennalte
i m on official twrp and i m not able to install magisk (image cant get compressed to size of 10mb boot, always 10.4)
will this inofficial twrp build help to get magisk installed
Valera1978 said:
I'm not responsible for any damage to your device of any sort.
By flashing this you take responsibility of anything that happens.
Process at your own risk!
This frecovery was developed for the p905. It doesn't apply to the p905v at this time because it's bootloader locked and a custom recovery isn't possible.
Instructions
Install zip using an existing custom recovery
Work
Everything works as in the original version + otg and mtp.
Links
1. 20171006: 3.1.1-0: https://drive.google.com/file/d/0B-6nm7Jks0W5MHlwTUxlUDFiOWc/view?usp=sharing
Sources
TWRP: https://github.com/omnirom/android_bootable_recovery
Kernel: https://github.com/Valera1978/android_kernel_samsung_lt03lte
Click to expand...
Click to collapse
For some reason this recovery causes facebook and facebook messenger apps to continuously crash over and over, other than that so far everything is great!
@Valera1978
Amazing! Thanks for sharing with us!
@Valera1978
Sooooooo cool! :good:
....and.....while not using F*ckbook, I don't care about crashing messengers and so on. :evel:
I installed this recovery and everything is ok except when trying to restore modem
I backed up my system to install official firmware to test some stuff
Then i reinstalled the recovery and tried to restore my backup but it was failing when restoring the modem
I deselected the modem and restored everything else and all ok
Same here. Failing restoring the modem.
The latest official Version doesn't work either (crash):
twrp-3.2.1-0-viennaltexx
The latest working version for my p905 is:
twrp-3.0.2-0-viennaltexx
https://twrp.me/samsung/samsunggalaxynotepro122qcom.html
i flashed twrp recovery sucessfully thru odin..but when i tried to boot to recovery it's still stock firmware recovery not twrp recovery please help
The bootloader is unlooked?
Could you start into the bootloader?
If yes, you can flash the recovery via fastboot
after five times I have managed
My big problem now is how do I activate HDMi?
have a MHL cable micro usb to HDMi when I plug it in nothing happens
Thanks a lot for this TWRP 3.2.2-0 it works nice with SM-P905, and Valera1978 Android 9 Pie ROM.
Easy install, Valera1978 TWRP 3.2.2-0 img from Official TWRP 3.0.2-0 viennalte.
Format f2fs, And latest magisk
risant said:
i flashed twrp recovery sucessfully thru odin..but when i tried to boot to recovery it's still stock firmware recovery not twrp recovery please help
Click to expand...
Click to collapse
Successfully TWRP flash thru Odin, observe the progress in Odin left bottom corner and prepare for this; "directly" when flash finished "force recovery start" (volume up home and startbutton until recovery starts)
Not fast enough" stock recovery autorestore ! Doitagain.
About bootloader (4.4.2 KK)
Hi,
I've just got a SM-P905 on 4.4.2 kitkat (stock). I'd like to flash one of your ROM (probably the LOS 17.1) and this recovery first.
Should I just flash it through Odin or do I need to unlock the bootloader? In that case, could you please drive me to a tutorial? I've searched a lot on this forum on howto unlock the SM-P905 bootloader (or just if it comes -the 4.4.2 version at least- with an unlocked one already) but I haven't found anything on it.
Thanks in advance
SYS2048 said:
Hi,
Should I just flash it through Odin or do I need to unlock the bootloader?
Click to expand...
Click to collapse
Flash TWRP only, through Odin.
Then flash ROM, GApps, and optional Magisk, through TWRP.
Magisk needed for root-apps, or to hide root.
(flash bootloader and modem not needed, only sometime later, if your modem are to old, and SIM not working)
KjellO said:
Flash TWRP only, through Odin.
Then flash ROM, GApps, and optional Magisk, through TWRP.
Magisk needed for root-apps, or to hide root.
(flash bootloader and modem not needed, only sometime later, if your modem are to old, and SIM not working)
Click to expand...
Click to collapse
Done a couple of days after my post. Forgot to report. Then flashed LOS 17, gapps (pico) and Magisk. Everything's ok.
Thanks for your answer.
Anyway, now it can be said that the P905 with stock 4.4.2 KK has the bootloader unlocked.
Hi, I've downloaded twrp-3.2.2.0-viennaltexx.img.tar and flashed by Odin, but twrp doesn't installed. In Developer settings I have not OEM unlock option.
what can I do?
uzzi78 said:
Hi, I've downloaded twrp-3.2.2.0-viennaltexx.img.tar and flashed by Odin, but twrp doesn't installed. In Developer settings I have not OEM unlock option.
what can I do?
Click to expand...
Click to collapse
What is your actual stock firmware on it?
You can try latest official .tar and then work your way up to this.
bmwdroid said:
What is your actual stock firmware on it?
You can try latest official .tar and then work your way up to this.
Click to expand...
Click to collapse
Now I've Android 5.0.2
LRX22G.P905XXSABQB1
@uzzi78 so you have the latest bootloader installed.
That's good.
Btw afaik/remember there is no unlock option.
Try other TWRPs as a. m.

How to upgrade O+5T to OxygenOS 5.1.0 when rooted with stock recovery?

Greetings. I received the OTA update (which I did not install!) on my OnePlus 5T today. I'm on OxygenOS 5.0.4 with magisk installed, phone is rooted, bootloader unlocked, stock recovery (no TWRP).
What's the right path to upgrade to 5.1.0?
I'm experienced with the command line and have no problems with it.
Based on my ideas, I think the path should be:
- Download full Oxygen OS 5.1.0 Full Zip
- Start TWRP using adb
Code:
fastboot boot
(which TWRP version?)
- Wipe dalvik and cache
- Flash the downloaded file
- Wipe dalvik and cache
- Flash magisk
That's it. Am I missing something? Do I need to reinstall magisk as specified as last step? Which TWRP version should I use (from the official website?)?
Thanks for your help :good:
Please go through the dedicated update thread that ive made for the update
https://forum.xda-developers.com/oneplus-5t/how-to/official-oxygenos-4-7-2-7-1-1-ota-t3709265
The thread has all the instructions and files needed to update. As far as twrp is concerned i recommend latest codeworkx or or bluspark recovery. The links are available on the thread.
Feel free to post on the thread if you have any further doubts.
Thanks @Funk Wizard , I read that thread (I linked it in my post) but it mentions "For Stock Non Rooted Users with Stock Recovery" and "For Rooted Users with TWRP Recovery" while in my case I'm rooted with STOCK recovery, which doesn't fit any of those 2 sentences. Which one should I follow?
As you are rooted you can flash the full zip from stock recovery that would remove root or you need follow and flash via twrp. If rooted stock recovery is no good TBH and i recommend staying on TWRP.
You can flash twrp from fastboot and then follow the instructions on the flashing post.
In case you dont need root anymore you can just flash the full zip from stock recovery. It will remove root and you will stay on stock recovery. In both the cases, use the full zip to flash via twrp or stock recovery.
No good? Please be more specific, why it's no good? From my understanding keeping stock recovery with magisk installed and bootloader unlocked allows me to pass all SafetyNet checks, which is very helpful if you don't want to deal with apps complaining that you are rooted. I can easily boot to TWRP as long as I can plug my phone into my computer by just using the fastboot command. The only downside I could see is if I brick my phone and have usb debugging disabled, I can't fastboot from adb.
Flashing TWRP would make me fail SafetyNet checks, which I'm not interested into.
After I flash the full zip, do I also need to flash the OTA update?
Thanks by the way, basically the only real "special" thing I need to do is install Magisk again after flashing.
Flashing twrp doesn't break safety net. So it's upto you if you want to stay on stock recovery with no additional benefits or on twrp.
Also, if have full time zip then you don't need to flash ota zip again.
That's good! I'll definitely flash twrp in that case.
@sshivampp Sorry to resurrect this thread, but looks like it's important. On TWRP website itself it's stated that installing TWRP would break dm-verity. What's the consequence of this? https://twrp.me/oneplus/oneplus5t.html

Question How can reinstall stock ROM over TWRP recovery?

Hello.
How can I please reinstall the stock rom via TWRP recovery without data loss, or how can I reinstall it via the Miflash tool?
I have a bootloop and would like to try reinstalling rom. Thanks
basically what u can do is flash stock rom using mi flash tool. ensure that down to the bottom u click save user data. and i think u should be fine flashing the stock rom and preserving your data in that sense. after flashing wait and let the device reboot for itself it usually takes a couple mins
TormentedHeart said:
basically what u can do is flash stock rom using mi flash tool. ensure that down to the bottom u click save user data. and i think u should be fine flashing the stock rom and preserving your data in that sense. after flashing wait and let the device reboot for itself it usually takes a couple mins
Click to expand...
Click to collapse
I have already managed to boot into the system, in TWRP Recovery I wipe dalvik.
But I need root and I must to patch the boot.img again via Magisk. And then I must flash patched boot.img via ADB back to the mobile, but I'm afraid I'll go back to the bootloop.
Any other options to do root or avoid bootloop?
Thanks
jkmaxfli said:
I have already managed to boot into the system, in TWRP Recovery I wipe dalvik.
But I need root and I must to patch the boot.img again via Magisk. And then I must flash patched boot.img via ADB back to the mobile, but I'm afraid I'll go back to the bootloop.
Any other options to do root or avoid bootloop?
Thanks
Click to expand...
Click to collapse
Stupid question but did you extracted boot.img before or after update? Maybe you flashed patched boot.img from previous update to last update? That would cause bootloop
Greenspoof said:
Stupid question but did you extracted boot.img before or after update? Maybe you flashed patched boot.img from previous update to last update? That would cause bootloop
Click to expand...
Click to collapse
It's not a stupid question.
The update was displayed on my phone, downloaded, installed, restarted and booted into the system, everything is fine.
Then I had to download the update manually from the Internet and extract the boot.img. and I then patched it via Magisk and flashed it back to the mobile via ADB, and then a bootloop occurred.
jkmaxfli said:
I have already managed to boot into the system, in TWRP Recovery I wipe dalvik.
But I need root and I must to patch the boot.img again via Magisk. And then I must flash patched boot.img via ADB back to the mobile, but I'm afraid I'll go back to the bootloop.
Any other options to do root or avoid bootloop?
Thanks
Click to expand...
Click to collapse
basically to root its just best to flash the official magisk zip via twrp. it patches the boot img during the process. and u wont get bootloop

Categories

Resources