[Q] some noob's questions - HTC Desire X

Hi all,
I'm trying to understand how a mobile rom is partitioned and using adb and fastboot i have understood this:
There are 3 partition
-recovery (where work CWM or other recovery software)
I can flash a recovery software via fastboot, righ?
-boot :
I"m not sure of this, but should be the partition of the kenerl? Pls correct me if i am wrong
-other partition:
For system apk ?
This is what i think, pls help me to understand better my rom partitions
After this:
- if i flash i kenerl i modify boot partition (i'm pretty sure of this)
- if i flash a recovery , modify recovery obviously
- if i flash a rom what really modify? Q.Q
Ok last noon question..
How to do a nandroid backup?
it's enough the CWM backup
Or is a backup from adb?
And from adb how to backup ?
It'd enough
"./adb shell backup " ?
How someone have a bit of time to answer to me
Thank u all

Yes, boot is the kernel... When you install a ROM, you modify your /system partition. To make a nandroid backup just use cwm.
Sent from my HTC branded muffin...

Related

[Q] How to modfify boot.img for dual boot

Hi.i'm a newbie sorry for that. and i'm turkish i dont now english well sorry for that. I'm using dual rom. one is in my internal sd other one is in sdcard (class 10 ). first is booting from default boot. second is booting from recovery(i modified boot.img and flashed as recovery). When i need recovery i'm using my own scripts they can flash boot.img to boot partition or recovery partition. also i modified cwm and twrp for flashing zip to second rom.I want to use this two roms and recovery at the same time but unfortunately there isn't 3 partitions. Can i modify boot.img for asking like "Which rom you want to use?". so i can choose which rom i want to boot.
Sorry for bad english it seems complicated . i hope you understand
Thanks

Some Questions

Current Situation:
-Phone is on KK (version .167)
-Phone is working fine, no problems at all
-Has Locked Bootloader
-Is Missing Recovery
So my questions are:
1) Can I install recovery WITHOUT having to unlock my bootloader or flashing another rom?
If yes, then could you perhaps provide me with the necessary information to do it? (if I need a PC, and where to find the required programms, I will do everything else on my own)
2) Can I take a Nandroid Backup of just the system? (not the apps installed by me)
3) If I have a Nandroid Backup, flash another android version, and then restore the backup, everything should be as if I never flashed anything right?
4) If I take a Nandroid Backup while on locked bootloader, flash a rom, unlock my bootloader, flash a kernel, and then restore my backup, what happens?
Mokiwipeout said:
Current Situation:
-Phone is on KK (version .167)
-Phone is working fine, no problems at all
-Has Locked Bootloader
-Is Missing Recovery
So my questions are:
1) Can I install recovery WITHOUT having to unlock my bootloader or flashing another rom?
If yes, then could you perhaps provide me with the necessary information to do it? (if I need a PC, and where to find the required programms, I will do everything else on my own)
2) Can I take a Nandroid Backup of just the system? (not the apps installed by me)
3) If I have a Nandroid Backup, flash another android version, and then restore the backup, everything should be as if I never flashed anything right?
4) If I take a Nandroid Backup while on locked bootloader, flash a rom, unlock my bootloader, flash a kernel, and then restore my backup, what happens?
Click to expand...
Click to collapse
Mokiwipeout said:
Current Situation:
-Phone is on KK (version .167)
-Phone is working fine, no problems at all
-Has Locked Bootloader
-Is Missing Recovery
So my questions are:
1) Can I install recovery WITHOUT having to unlock my bootloader or flashing another rom?
If yes, then could you perhaps provide me with the necessary information to do it? (if I need a PC, and where to find the required programms, I will do everything else on my own)
Click to expand...
Click to collapse
Yes. This has been asked and answered. There is a search button to assist in asking siple thing. There is also google.
1. Root with community root kit, towelroot or king root. Install recovery image. Google twrp and it'll tell you how to install with dd.
Mokiwipeout said:
2) Can I take a Nandroid Backup of just the system? (not the apps installed by me)
Click to expand...
Click to collapse
Not really. You can take a complete backup and restore the system partition only though. Look in advanced restore of recovery. This will only recover the system partition and not the apps you install (assuming you don't install things on the system partition).
Mokiwipeout said:
3) If I have a Nandroid Backup, flash another android version, and then restore the backup, everything should be as if I never flashed anything right?
Click to expand...
Click to collapse
Yes depending on what you restore and what you wipe. E.g. If you don't wipe data you may get some interesting things like force closes or boatloads.
Mokiwipeout said:
4) If I take a Nandroid Backup while on locked bootloader, flash a rom, unlock my bootloader, flash a kernel, and then restore my backup, what happens?
Click to expand...
Click to collapse
You'll be on the original rom and kernal with an unlocked bootloader.
Sent from my D6503 using Tapatalk
1- You don't need to unlock the bootloader, there is no reason to do that. You must downgrade to 4.4.2 to install a recovery - A downgrade means you'll loose your apps and settings.Unlocking the bootloader will trigger factory reset too. And yes, you will need a PC or Mac with all the drivers installed (ADB and Flashmode are a must) See NUT's XZDR: http://forum.xda-developers.com/showthread.php?t=2261606 Download the older installer from his official download page and search for Z2-lockeddualrecovery2.8.21-RELEASE.installer.zip . It can temporarily root to install the recovery. After you have a fully functional recovery you can install the SuperSU .zip
2- Use TWRP to make a backup, also you can make a flashable update package by yourself by using PRF Creator: http://forum.xda-developers.com/crossdevice-dev/sony/tool-prfcreator-easily-create-pre-t2859904 (You will need this to keep root/recovery on Marshmallow)
3- I usually do clean installs, so I can't answer this one
4-If you unlock the bootloader it will stay unlocked until you manually relock it.
BEWARE! Unlocking the bootloader on a Xperia is more of a downgrade. You will loose proprietary functions like noise cancelling, a bit of camera quality, some GPS functios, official updates, DRM keys...etc. First try to root on 4.4.2 and do a TA Backup (Trim Area) BEFORE tinkering with the bootloader. The DRM keys are unique to every phone, they are not interchangeable and cannot be recovered after you unlock the bootloader. Bootloader unlocking will not unlock the SIM card.
cachanilla86 said:
. You must downgrade to 4.4.2 to install a recovery
Click to expand...
Click to collapse
You should read the question before you answer.
Mokiwipeout said:
Current Situation:
-Phone is on KK (version .167)
Click to expand...
Click to collapse
cachanilla86 said:
. And yes, you will need a PC or Mac with all the drivers installed (ADB and Flashmode are a must)
Click to expand...
Click to collapse
Also not true. Root with towelroot ask (https://towelroot.com/) and install twrp. Can be done from phone 100%.
Dd Install Method (Requires Root):
Download the latest image file (.img) from the download link above. Place it in the root of your /sdcard folder and rename it to twrp.img. Run the following commands via adb shell or a terminal emulator app:
su
dd if=/sdcard/twrp.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel
Click to expand...
Click to collapse
https://twrp.me/devices/sonyxperiaz2.html
Sent from my D6503 using Tapatalk
Thank you guys for your responses, I know I should have searched before actually asking these questions. Anyways, thanks for saving me from actually having to search!

looking for boot.img z5c compatible with 32.0.A.6.200_R4B

Hi Guys,
I wanted to backup my TA partition on my z5c so I donwgraded using an Australian Stock ROM found in a step by step tutorial (32.0.A.6.200_R4B). So far so good, backup worked with ivoryroot. After unlocking the bootloader I wanted to flash twrp on the recovery partition. I porbably was not concentrated so I typed "fastboot flash boot ...." instead of "fastboot flash recovery .....". Is there anything to do about it or did I hard brick my device? Perhaps I could generate a boot.img out of the ftf file? but if yes how? Thanks for suggestions in advance.
Cheers
ncls
Edit: I managed to reflash the whole rom (which did not work yesterday) an got it to work - sorry for bothering you!

How to use magisk to twrp from 2.3.5 gingerbread without a computer?

How to use magisk to twrp from 2.3.5 gingerbread without a computer?
@Didgeridoohan
Do you think its possible to flash twrp from a terminal emulator? Or what are my options?
If you really can't get a hold of a computer you might be lucky with an app like Franco Kernel Manager, Flashify, etc. Problem is that most apps likely won't support or be compatible with that ancient version of Android or whatever root you currently have installed. And, you're also risking bricking your device if you don't have access to a computer...
I really think your best bet is to somehow get access to a computer. Friend/school/work/something...
If you can't install stuff on that borrowed computer you could create a bootable USB with a Linux distro and run everything from there. Linux Mint is quite user friendly, they've got good documentation on how to get things running with a Live Boot USB, and it's not too hard to get adb & fastboot up and running.
Ill try and get a hold of a computer because nothing seems to work on 2.3.5
@Didgeridoohan
I had rooted using framaroot but after a factory reset it wont install supersu or superuser to my app drawer, can you give me a suggestion? Btw im using my xbox one to type this.
@chris1892006
don't waste your time with this: Magisk works only on Android 5.0 and above.
jwoegerbauer said:
@chris1892006
don't waste your time with this: Magisk works only on Android 5.0 and above.
Click to expand...
Click to collapse
thanks so do u know if its possiblle to flash a twrp.zip using terminal on 2.3.5?
chris1892006 said:
thanks so do u know if its possiblle to flash a twrp.zip using terminal on 2.3.5?
Click to expand...
Click to collapse
Is it so hard to read posts carefully?
I found this https://www.youtube.com/watch?v=-YAKGRblIuw
dd Install Method (Requires Root):
Download the latest image file (.img) from the download link above. Place it in the root of your /sdcard folder and rename it to twrp.img. Run the following commands via adb shell or a terminal emulator app:
su
dd if=/sdcard/twrp.img of=/dev/block/mmcblk0p9
What part of the command do i change for a yp-g70 venturi? Also can i extract my twrp 2.8.0.0.zip and get the .img out of it or can i flash the .zip?
This what i used to flash cwm/ entropys daily driver kernel
https://forum.xda-developers.com/showthread.php?t=1445840
su
dd if=/sdcard/zImage of=/dev/block/mmcblk0p11
Well i got cwm installed! Now i just need to flash twrp and then a rom
chris1892006 said:
... Now i just need to flash twrp and then a rom
Click to expand...
Click to collapse
Notice, that for Lollipop and up to get it running smoothly, you need a device with minimum 2GB RAM and at least 2GHz dual core processor - what since Android 4.4+ must be a ARMv7 one.
jwoegerbauer said:
Notice, that for Lollipop and up to get it running smoothly, you need a device with minimum 2GB RAM and at least 2GHz dual core processor - what since Android 4.4+ must be a ARMv7 one.
Click to expand...
Click to collapse
Thanks i had 4.4.4 up and running but tried flashing 5.1.1 lollipop on cwm and it corrupted the bootloader. Now i cant get into recovery because twrp wouldnt flash over cwm, i tried to flash twrp 2.8.0.0 & it succeeded yet didnt work after a reboot, why? I read the op but i still cant figure out why it didnt work after a reboot? Still remained cwm.
https://forum.xda-developers.com/galaxy-player/development/recovery-twrp-v2-8-0-0-t2867742
http://www.meticulus.co.vu/p/yp-g70.html
@Didgeridoohan
How do i flash twrp over cwm?
Hey... Look at that, you had some progress. Nice.
I've never used CWM, so I wouldn't know.... Sorry.
@chris1892006
Have you backed up stock recovery IMG through e.g. Flashify app before installing a custom recovery by means of CWM ? Do remember that restoring a backup will essentially wipe any changes made after that backup.
If so then
1. you can restore or flash stock recovery IMG through Fastboot to get CWM out of your system.
2. you can install through TWRP any custom recovery IMG of your choice.
jwoegerbauer said:
@chris1892006
Have you backed up stock recovery IMG through e.g. Flashify app before installing a custom recovery by means of CWM ? Do remember that restoring a backup will essentially wipe any changes made after that backup.
If so then
1. you can restore or flash stock recovery IMG through Fastboot to get CWM out of your system.
2. you can install through TWRP any custom recovery IMG of your choice.
Click to expand...
Click to collapse
thanks only problem is they only make a .zip for twrp for my device... I don't know how to flash it.
That's a really old android version, I'm not sure if it's possible. If you don't have access to a PC, try to ask a friend if they could do it for you, just to be safe. Trying to modify stuff within android, especially on such an old version, with probably unsupported software could result in a bricked device.
Thanks but I finally got TWRP and Lollipop 5.1.1 installed it took an ADB Sideload from a PC to sideload the twrp.zip file for my device and now I'm up and running and very happy to say the very least. Sure I bricked it 3 times in the process but was always able to recover using ODIN and having the proper files on hand.
Now im having an issue with xda on the device where the xda app wont let me sign in and the browser will sign me in but go right back to the sign in page again, idk how to fix it?
I install a dalvik cache wiper with root required and it corrupted the recovery again. So I figured out the exact steps to get this device working perfectly again. Firstly the twrp folder on the external sd card has to be renamed TWRP because it has extra strange characters after the TWRP. Now we know how to restore our backup, we can start by ODIN back to stock, then Framaroot v1.4.1 root the device then download entropys daily driver kernel cwm, the flash it via terminal emulator, reboot, then you have to install meticulous carbon 4.4.4 to fix the partitions and update the cwm to adb sideload the twrp. So you can then flash Meticulus Carbon 5.1.1 and both updates and 5.1.1 pico gapps. Good to go. Meticulus made the kernel overclock to 1.7ghz and it runs pretty darn good honestly. I modded the build.prop vm dalvik heap limit to 384m from 128m to get some extra performance out of it.

Development Working TWRP but very unofficial! But very useful!

Hi, so I just got this phone and I see there's not much on the postings like with links to a working TWRP, in particular. So I did some digging around and experented, and found this TWRP. It's from the Moto G9 Play (guamp). But it works, at least just booting it. I have not tried flashing it to the boot partition but it serves it's function when just booted (see command below) . Most important on the get go is a Android backup.
fastboot boot recovery.img
After booting, go to "Mount" and mount all the partitions listed there. Then backtrack to "Backup" and select where you want the backup to go. Then continue with backing it up. You don't have to back up both the 'Super' and the 'Super image' partitions, just choose one of those. Then once that finishes, it's a matter of bravery on your part. There was a 'vbmeta.img' you could flash then a Magisk_21.zip but I'm not sure if the Play G9 vbmeta would work. Anyhow, attached it the TWRP and then the link to it's source with the other files mentioned above. Let us know how it works or helps anyone. Oh, and it will ask for your internal PIN or password first to decrypt that partition. I think it's best to delete your finger prints and change the lock to NONE. Then boot it and backup everything. Remember to Mount everything first!
Link
Lastly, my recovery log shows this works on our Moto G Play 2021 (guamna)
It does work 100% I have tested every feature out and it all works do not install it only boot it I have tried to mod the recovery 3 times now to install it but Everytime I do it bootloops my phone and I have to reflash all the imgs to the device
You can boot it with terminal emulator by running the below steps
Step 1 (backup stock_boot.img so we can get back in to android)
dd if=/dev/block/by-name/boot_a of=/sdcard/stock_recovery_backup.img
Step 2 (dd recovery.img to boot_a)
dd if=(path to stock_recovery.img) of=/dev/block/by-name/boot_a
Step 3( from twrp terminal replace recovery very.img with stock_boot_a in twrp mount all that can be mounted)
dd if=/sdcard/stock_boot_a of=/dev/block/by-name/boot_a
Thank you for that info. I actually was not aware it could be done. For me, personally, this twrp serves best as being able to do a complete backup as well as I realized it does flash Magisk for root successfully as well. Until we get an official twrp, this seems sufficient enough for the most necessary functions.
It works 100% so there is no need for a official twrp this will work just need the device trees to add to it so it can be installed to recovery and stay after a reboot
Hey guys I built a TWRP from this one and the stock recovery you can flash it to the recovery partition it's 100% working.. I had a little problem with the touch but I fixed the kernel... I posted it in the development section

Categories

Resources