TWRP: flashed ROM-file deleted automatically after first system boot ? - Android Q&A, Help & Troubleshooting

Hello
I wiped my phone completely (incl. internal storage), moved the new ROM-zipfile
to the (completely empty) internal SD-card via MTP and then flashed it within TWRP (OxygenOS on my oneplus3) .
Followed by SU.
After reboot into the system I wanted to delete the zips (1.4GB), but they are gone already ?
Or I can´t find them...
Is this normal ? Does TWRP delete the ROM-file during the first system boot ?
Or where is it hidden ?
Thanx for info !

Related

[Q] Issue upgrading from CM9-stable to CM10-nightly + encrypted /data

Hi,
Well, I guess I did a nice one...
My TF201 is unlocked, with TWRP v 5.8.3.4 as recovery. I was running so far CM9-stable RC. Please note my /data folder is encrypted using Asus inbuilt tool and I already experienced issue with it previously.
Unfortunately I faced a lot of crashes using CM9 (even following cache cleaning, removing Apps, and so on). Therefore I decided to give CM10-nightly build (v. 20130310) a try.
I first made a nanodroid backup of the whole system using TWRP ; on my internal SDCard. And I did not get this specific backup on any other support.
Downloaded all the stuff (CM10-nightly + GoogleApps) on my internal SDCard and... let's go :
1 – Using TWRP : first decrypt /data at startup → OK
2 – Using TWRP : factory reset + wipe dalvik cache → OK
3 – Using TWRP : install CM10.zip + GoogleApps.zip from the (decrypted) SDCard → OK
4 – Reboot : get stuck on CM10 splash screen (I tried to reboot several time without any success)
5 – Reboot, and great idea, reboot to bootloaded mode (vol. Down key pressed) and... “wipe data” →... OK (Step 5 was done without giving my password to decrypt /data just 'cause it has just never been asked !! And I guess I was tired...)
6 – Finally, CM 10... well... “running”
From now on, I am able to access CM10, but :
- CM10 does not ask me for my PIN during startup in order to decrypt /data (CM9 used to do it)
- (of course) CM10 can not access /data or internal SDCard
- At least but not last... I can not anymore access my SDCard from TWRP (my pass is not recognized anymore). Meaning I can not access my Nandroid backup
My guess is
I- I formated /data in step 5
II- ...but I therefore destroyed all data
III- ...including the passkey...
Any help would be (more) than welcome! I still have an ADB access to the Prime, but I do not want to make anymore (stupid) mistake
(And I confessed, I am more used to Linux system than Android.)
Regards
Stupid thing, stupid solution...
Used TWRP to format /data (this app deals pretty well with encryption by the way!) > OK
Reboot to CM 10 just to be sure > much better!
Put Gapps on the SD card, now readable > reboot to recovery
Using TWRP, format cache and Install Gapps from the internal SD (couldn't be install at the first attempt as /data was encrypted andtherfore unmounted)
Reboot, and now CM10 rolls!
What I have learned:
Always backup data before to start (my TF201 is sync on Google servers)
Backup your ROM before to start (Ok, I did it... but)
Better, back it up on AN EXTERNAL media (or backup the backup...)
Read, read, and read AND backup, backup, backup...

Android System Recovery Backup Extract

Hi Friends,
I've a problem. Actually my android cell phone "INew L4" suddenly restarted and stuck at boot logo. I tried everything to boot it up but failed. So I made Userdata backup via "Android System Recovery" to Memory Card and its created backup files as below:
userdata_20090101_140936.backup and userdata_20090101_140936.backup1 to userdata_20090101_140936.backup6
I format the cellphone and restore it via "Android System Recovery" from Memory Card but it again stuck at boot logo. So I reformat it and its working fine.
Now I just want to extract my data from backup files it created. Is there any way to extract it in Windows?
Thank you!
Is there no one who can help me out?
please see [Q] How to Extract data from .Backup file ? - Created with android system recovery

empty rooted phone, how to load installer ?

Hi,
I have rooted old phone Wildfire S. I used Revolutionary on this phone. Today I tried to refresh system on this phone.
What I did : Root to recovery, wipe cash, wipe data/factory reset, format sdcard, format all, change partition on SDcard, changed SWAP... (now I can clearly see, I was stupid moron... sry, about it)
Now my phone is emtpy. I can see only BOOTLOADER and Recovery menu. I don't know how to load installation package to my phone. How to load Revolutionary installation package to this phone and install it ? I formated SDcard in windows. I can copy files to SDcard and install from zip....
What I need to do, to install system to this phone ?
Thank you for your help.

TWRP unable to mount memory even after wipe

Hi,
I have a Xiaomi Redmi Note 5A, and I installed TWRP and Magisk on it 6 months ago, and all was working fine until the last update of MIUI that was installed just yesterday. After that, Magisk had no more root access and TWRP was no more here. At this point I flashed again TWRP with ADB, and after rebooting on recovery, TWRP launched but it was unable to mount any memory, so I could not flash any file. After several tries and researchs on forum I ended up to wipe memory (also changing format file from EXT4 to EXT2 then back to EXT4). After that TWRP sees effectively the memory but I can't still flash any file as I just wiped memory. So I have to reboot on system to put files on the memory: doing that I have first all the different screens steps to setup MIUI from scratch. When all the phone is configured, I reboot in fastboot to flash again TWRP, then I reboot on recovery, and again TWRP is unable to mount memory. I tried this several times and tried many other things (removing the patern lock, setting just a PIN...) but nothing worked so far after several hours searching...
If anyone could help, I would really appreciate it. Thanks in advance!
Ok, I finally solved it. Here is what I have done:
First I strictly followed instructions from this tutorial:
Fix Unable To Mount Storage TWRP: If you are trying to factory reset your device using twrp recovery and it’s displaying unable to must data then follow the below instructions.
First off all remove pattern lock from device and add PIN lock/password as a security lock as shown in above method.
Still getting “unable to mount storage twrp error” then go to main menu of twrp recovery.
Click on “WIPE” option >> “Advance Wipe” >> select “Cache” >>click on “Repair or Change File System” >> “Change File System” >> click “F2Fs” and “swipe to Change”
Again Go back and select >> “EXT4” option >> “Swipe To Change”
Now repeat the same process with “System” option and “Data” option one by one.
After doing that you are free to wipe or factory reset your device without any TWRP error. This time it will not show the unable to mount storage in TWRP recovery.
Click to expand...
Click to collapse
Note that it wiped everything even OS.
So I downloaded the latest official ROM from MIUI website, and I copied the file to the phone with USB mass storage mode (still being in TWRP). I also put the LazyFlasher zip and Magisk zip. Then I installed the 3 zips at the same time, ROM first, LazyFlasher second, Magisk third.
After rebooting, and reconfiguring the phone, all works fine.

Problem installing magisk-cant access internal memory from twrp

Hi all, I need a little help, I've unlocked bootloader and installed twrp recovery (that's wiped data on the phone and I've reinstalled apps and accounts).
The guide i was following ask to reboot and boot twrp recovery (working) and to install magisk zip file copied from PC to internal memory
I copied magisk in internal memory (root and download folders) but in TWRP I can't see the storage i get from PC, only different folders.
I tried also adb sideload D:\Android\Magisk-v21.2.zip directly from PC but i get errors on mounted file systems yrying to install files i think, I tried to check and mount file systems in TWRP advanced options but I can't mount them ...
How can I install Magisk ?
Thanks for help
blackalex1 said:
Hi all, I need a little help, I've unlocked bootloader and installed twrp recovery (that's wiped data on the phone and I've reinstalled apps and accounts).
The guide i was following ask to reboot and boot twrp recovery (working) and to install magisk zip file copied from PC to internal memory
I copied magisk in internal memory (root and download folders) but in TWRP I can't see the storage i get from PC, only different folders.
I tried also adb sideload D:\Android\Magisk-v21.2.zip directly from PC but i get errors on mounted file systems yrying to install files i think, I tried to check and mount file systems in TWRP advanced options but I can't mount them ...
How can I install Magisk ?
Thanks for help
Click to expand...
Click to collapse
You must copy files from PC to /temp folder
FSadino said:
You must copy files from PC to /temp folder
Click to expand...
Click to collapse
I don't have a temp folder, only Alarms, Android, DCIM...., Ringtones and Whatsup folders, should I create it ? Then i can see it in twrp ?
By the way upgraded twrp to 3.4.0.2
Tried to create temp but I can't see It obvously in twrp as the rest of the folders, only mounted filesystem is metadata
go in twrp to advanced wipe --> format data partition to ext2 --> wait --> when done format back to ext4 --> wait --> now see if your OS recognizes the USB android device. try usb replugging if not --> now you should see a new partion where you can write in your file explorer on HOST OS.
n3tk1d said:
go in twrp to advanced wipe --> format data partition to ext2 --> wait --> when done format back to ext4 --> wait --> now see if your OS recognizes the USB android device. try usb replugging if not --> now you should see a new partion where you can write in your file explorer on HOST OS.
Click to expand...
Click to collapse
Ok since It is wiping data partition and I'm under mobile connection I'll do this in the next couple of days back home. Just to confirm, I can see internal memory partition from host OS without problems, I can copy files from OS to mobile. The problem is that rebboting in recovery TWRP I can't see FROM MOBILE that partition and folders, so I can't access magisk file I copied ...
With your suggestion do you mean that the new formatted partition is visible both in TWRP and OS ?
blackalex1 said:
Ok since It is wiping data partition and I'm under mobile connection I'll do this in the next couple of days back home. Just to confirm, I can see internal memory partition from host OS without problems, I can copy files from OS to mobile. The problem is that rebboting in recovery TWRP I can't see FROM MOBILE that partition and folders, so I can't access magisk file I copied ...
With your suggestion do you mean that the new formatted partition is visible both in TWRP and OS ?
Click to expand...
Click to collapse
Which guide are you following?
Hw4ng3r said:
Which guide are you following?
Click to expand...
Click to collapse
I found many and they are all similar...
- Unlock boot loader
- Install recovery TWRP
- Reboot in recovery (sometimes from phone other guides from image on PC)
- install magisk copied from OS from twrp recovery
Everything is clear except for I can't access the data partition from TWRP in the last step so I can't see the copied magisk file and I can't mount the partitions in TWRP (i get an error)
A couple of guides:
Root OnePlus 7T Pro (hotdog) and Install TWRP Recovery 3.4.0 (androidweblog.com)
Download Latest Magisk zip 21.2 and Magisk Manager 8.0.4 and Root your phone (getdroidtips.com)
In the second one they use the sdcard partition but I don't have sdcard on 7T Pro ...
You can point me to a different method if available to get magisk installed ...
Thanks for the help
blackalex1 said:
Ok since It is wiping data partition and I'm under mobile connection I'll do this in the next couple of days back home. Just to confirm, I can see internal memory partition from host OS without problems, I can copy files from OS to mobile. The problem is that rebboting in recovery TWRP I can't see FROM MOBILE that partition and folders, so I can't access magisk file I copied ...
With your suggestion do you mean that the new formatted partition is visible both in TWRP and OS ?
Click to expand...
Click to collapse
so when you do as i said you are in twrp cos you booted to it. twrp will read and be able to access your phones storage. you are not wiping the data partion but are formating it to ext2 and then back to ext4 (still do backup as data will be lost). this enables twrp to circumvent the oxygen decryption / format. NOW and only AFTER THAT dont reboot (dont), but now your HOST can copy the desired magisk to the phone that is still in twrp RECOVERY MODE. Thus you can now install it with twrp since twrp can now access and read the recently copied image. anyways i wont do it. i used a patched magisk image. was the only thing that ultimately worked for a clean rooting and it didnt even unlock the /system_boot and /vendor partions but it works. find in the oneplus 7t pro guideds forum topic your corresponding magisk image and flash it to disk with fastboot flash boot magisk-patched.img. that worked pretty well when you use the right android version 10.0.x.etc.
actually, wtf do i know. i just followed this thread:
[Guide] How to Root OnePlus 7T Pro with TWRP
thanks for this detailed root process, I've been looking for this for around 3days. (my OP7t pro is coming today will try this root method)
forum.xda-developers.com
Clearly stated in the TWRP thread, decrypting OOS is not working. And I wouldn't even bother formating data.
In order to flash zip is TWRP you most execute;
"adb push magisk.zip /cache",
then in TWRP go into that folder and flash the file.
Or you can do patched image method, you can find guides in guides section.
Some basic researching would also help.
Lossyx said:
Clearly stated in the TWRP thread, decrypting OOS is not working. And I wouldn't even bother formating data.
In order to flash zip is TWRP you most execute;
"adb push magisk.zip /cache",
then in TWRP go into that folder and flash the file.
Or you can do patched image method, you can find guides in guides section.
Some basic researching would also help.
Click to expand...
Click to collapse
PERFECT thank you very much, got only a couple of warnings at the end:
failed to mount /system_root (permission denied)
failed to mount /vendor (permission denied)
But It seems correct.
I will check for patched image to better understand what is tha advantage compared to the standard one.
blackalex1 said:
PERFECT thank you very much, got only a couple of warnings at the end:
failed to mount /system_root (permission denied)
failed to mount /vendor (permission denied)
But It seems correct.
I will check for patched image to better understand what is tha advantage compared to the standard one.
Click to expand...
Click to collapse
Those errors are nothing to worry about since it's not possible to modify those partitions on stock.
I tried rooting my lenevo tab M10 hd and flashed a incorrect boot img as I am new to rooting and bricked up my device then from some where I got the correct boot img and recovered my device but now I am unable to use its internal storage , its shows some random letters when I open the file manager can you guys help me out resolving this issue.

Categories

Resources