[QUESTION][TWRP] Can I install a custom ROM downloaded while on the OS? - Android Q&A, Help & Troubleshooting

Hey, I've always wondered if it would be possible to just download a ROM on the phone I'm going to install the OS on, boot into TWRP, go to the downloads folder, and install the ZIP file from there. Would that be possible? Or would it require a SD card or to ADB sideload the file? (like I always do it)

Yes, this is possible, as long as TWRP is already installed. It doesn't matter how the file gets to storage, whether you download it through Android or transfer via USB. The only thing that matters is whether TWRP can decrypt your data (if encrypted) and whether the file is intact and not corrupted.

Once your device is rooted and has TWRP installed for your device and you have backed up your current working rom on an sdcard using TWRP, Yes you can download any rom for your device and install it from TWRP, Download folder
The install process for roms do not wipe your sdcard (phone's storage) only the system partitions unless they contain pit files which repartition the whole device (usually only when installing stock rom pit files included otherwise custom rom developer will list in the install instructions use external sdcard as whole phone will be partitioned but in the years I've been involved with custom roms this has never happened to date)
Hope I answered your question have fun and enjoy learning

V0latyle said:
Yes, this is possible, as long as TWRP is already installed. It doesn't matter how the file gets to storage, whether you download it through Android or transfer via USB. The only thing that matters is whether TWRP can decrypt your data (if encrypted) and whether the file is intact and not corrupted.
Click to expand...
Click to collapse
see above forgotten to click reply on yourself lol cheers

Related

[Q] overflashing

I think I may have flashed one to many times..The latest made me lose root on my s-off/ un-locked rezound. I did somehow regain root however I now cannot get my internal or external storage to show up with usb hook up, they do show up on root explorer though, I also lost TWRP and CWM will not back up anything because it cannot find the back up path. I was able to flash a Rom so my phone is operational in every other way. How do I fix...any clues will be appreciated and I thank all of the Dev's for sticking with the Rezound for so long...
If I were you, I would try:
1. Wiping data, system, cache, dalvik
2. Flash a new rom
3. Check
If that doesn't help:
1. Run latest OTA RUU
2. Flash recovery
3. Flash new rom
4. Check
no work
zourn said:
If I were you, I would try:
1. Wiping data, system, cache, dalvik
2. Flash a new rom
3. Check
If that doesn't help:
1. Run latest OTA RUU
2. Flash recovery
3. Flash new rom
4. Check
Click to expand...
Click to collapse
I can't flash anything because it won't read my sd card..
is your sd card working properly? (i.e. can your computer or some other device read it?)
bik2101 said:
is your sd card working properly? (i.e. can your computer or some other device read it?)
Click to expand...
Click to collapse
Yes, it reads on everything else, even root manager reads it..
Do you have a card reader that you could use to transfer the files from your computer to your sd card? Perhaps even a different device such as a digital camera that you could use to mount the sd card on the computer?
Put a RUU file on the SD card, boot into bootloader, does the bootloader see it?

[Q] need to bring a file to the phone, no ROM installed

I've attempted to flash a newer version of cyanogenmod on my phone (10.1.3 to 11). I'm using TWRP 2.6.1.0
I can not boot because I've wiped the phone (dalvik, system, data, internal storage, cache), and I suspect the ROM I have is corrupted but I can't connect it to my computer and transfer the file via USB because I have no ROM installed and can not boot. I also can't take the SD card (since there's non) and put the file that way.
My phone is Oppo find 5
My root file flashing was successful, but installation of the ROM cm-11-20140204-NIGHTLY has failed. I assume the file was corrupted, but I have no way to find out what it is.
I now realize my mistakes, like wiping the system unnecessarily.
Is there any way to get another file on the device? any other suggestions?
Also, I'm not sure if this is the correct place to post this, but I was not able to find the right place. I apologize in advance.
Eyal,
http://forum.xda-developers.com/showthread.php?t=2141817
Check that thread, set up adb and push a ROM to the internal sd of your phone via adb. You can use adb in recovery mode (I could in CWM, dont know about your recovry) so if you can boot into recovery, you can push the rom. (There is info on the thread about adb pushing/pulling)
Sent from my GT-S5660
Cwm has an option to mount storage to PC in mounts & storage menu
Check if twrp has the option
You can mount it that way:good:
vneogi199 said:
Cwm has an option to mount storage to PC in mounts & storage menu
Check if twrp has the option
You can mount it that way:good:
Click to expand...
Click to collapse
it doesn't seem to recognize anything.

Software Install Failed problem, please help me.

I've tried to install official firmware with sdcard/dload/UPDATE.APP method, but it shows software install failed,
Inside the firmware zip file I got a installation guide and there they said if installation failed you should firstly upgrade a transfer package first provided by R&D.
But what is this transfer package and where I can get it??
See screenshot below,
Rom needs to be on internal storage first, can't install from sdcard. If you can put it in /data folder with twrp(custom recovery). Your bootloader is unlocked?
I don't know the method you're using(never heard of it, and wouldn't trust it), but download the rom, transfer it to phone(USB). If you have a file manager, and root, move it to internal storage, in the /data folder. If not, but you have twrp installed as the recovery, use that file manager. Wipe dalvik, and cache, then install.

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.

Cant access internal storage in recovery

Hello guys,
i wanted to use a custom rom, so i unlocked the bootloader and installed a custom rom (i could access the internal memory from windows while in recovery). Now i wanted to use another rom, so i boot in orange fox, do format data, wipe and reboot to recovery. But now, i cant access the internal storage anymore. Windows explorer shows me the device, but i cant acess it. I have the global version Redmi Note 9 pro. I tried pitch black recovery as well as Mauronofrio's TWRP. I also tried to flash the Stock Rom from https://xiaomifirmwareupdater.com with the official mi flash tool and followed this instruction (https://forum.xda-developers.com/t/unable-to-decrypt-fbe-device.4206579/page-3#post-84370443). But then again, i could not access the internal storage from windows and the moved files from step 4 where not there anymore.
When i boot to the original stock rom, run all the setup and stuff and then boot again to recovery, i am able to access the internal storage. but then again, after format data i cant access it anymore and cant copy any custom rom on the phone. What to do?
Use adb sideload to install the ROM directly from your PC.
Not all recoveries support it though.
LineageOS recovery does so that's the reason why I use it.
elytron01 said:
Hello guys,
i wanted to use a custom rom, so i unlocked the bootloader and installed a custom rom (i could access the internal memory from windows while in recovery). Now i wanted to use another rom, so i boot in orange fox, do format data, wipe and reboot to recovery. But now, i cant access the internal storage anymore. Windows explorer shows me the device, but i cant acess it. I have the global version Redmi Note 9 pro. I tried pitch black recovery as well as Mauronofrio's TWRP. I also tried to flash the Stock Rom from https://xiaomifirmwareupdater.com with the official mi flash tool and followed this instruction (https://forum.xda-developers.com/t/unable-to-decrypt-fbe-device.4206579/page-3#post-84370443). But then again, i could not access the internal storage from windows and the moved files from step 4 where not there anymore.
When i boot to the original stock rom, run all the setup and stuff and then boot again to recovery, i am able to access the internal storage. but then again, after format data i cant access it anymore and cant copy any custom rom on the phone. What to do?
Click to expand...
Click to collapse
Just few alternate method without adb/PC:
1. Use an sdcard to store roms, recovery backups...
2. Few days ago forget to copy the rom to sdcard (and already formatted the data), used an otg cable and installed the rom from usb-stick without any problem.
3. Flash the rom from internal storage, format data and boot to system.
Always use latest recovery (now ofox 11.0.1).
vlouis said:
Just few alternate method without adb/PC:
1. Use an sdcard to store roms, recovery backups...
2. Few days ago forget to copy the rom to sdcard (and already formatted the data), used an otg cable and installed the rom from usb-stick without any problem.
3. Flash the rom from internal storage, format data and boot to system.
Always use latest recovery (now ofox 11.0.1).
Click to expand...
Click to collapse
Thanks, i will try it today. Cant stand the stock miui anymore!

Categories

Resources