TWRP for X2 / X2 Pro - what's needed? - BQ Aquaris X Pro Guides, News, & Discussion

I know there is currently no TWRP for the X2 / X2 Pro devices.
But I wonder why / if it is so difficult to generate one?!
What do the TWRP developer need to create one?
A dump of the recovery partition? Should be possible with root - or not?
(BTW, which of the devices _is_ the recovery partition?)
What else is needed?

Bodenseematze said:
I know there is currently no TWRP for the X2 / X2 Pro devices.
But I wonder why / if it is so difficult to generate one?!
What do the TWRP developer need to create one?
A dump of the recovery partition? Should be possible with root - or not?
(BTW, which of the devices _is_ the recovery partition?)
What else is needed?
Click to expand...
Click to collapse
I would start here: https://forum.xda-developers.com/showthread.php?p=32965365#post32965365
Or if you speak Spain go to:
https://www.htcmania.com/showthread.php?t=1312725
Maybe member @nuv can help you as well.

AndroidenKalle said:
I would start here: https://forum.xda-developers.com/showthread.php?p=32965365#post32965365
Or if you speak Spain go to:
https://www.htcmania.com/showthread.php?t=1312725
Maybe member @nuv can help you as well.
Click to expand...
Click to collapse
Hi @Bodenseematze,
uh, well; unfortunately I got no X2 and do not know anything about the partition structure.
I didn't compile TWRP myself (e.g. for my X Pro ), so I can't give you hints about that either :crying:
The first link from @AndroidenKalle looks promising, I would start reading there.
If BQ doesn't change the way their phones handle the firmware, the bootloader locking and so on, maybe I can help in the later steps after building TWRP (?)...
edit: if you don't need TWRP but only Magisk, maybe take a look here: https://forum.xda-developers.com/aquaris-x-pro/how-to/root-magisk-bq-aquaris-x2-pro-custom-t3841795

Thanks for your answers.
I'm not sure if compiling TWRP from sources is the right direction for me :silly:
And the guide is really old - I'm not sure if it's still valid (especially because the X2 Pro is such a "a/b"-Device.
I thought about trying this:
[GUIDE]Porting TWRP without source
But I'm not sure about which partition I should use - or if the correct (recovery) partition is included in an official update.
I only see the boot.img - but as opposed to the above source porting guide our device has also two (_a/_b) of them...
And I'm also not sure which existing twrp binary I should use as base (arm64 and 1080x2160 screen resolution and maybe _a/_b support?)...
@AndroidenKalle: unfortunately I'm not able to speak Spanish...
And yes, of course I already have rooted my device with Magisk - but I really want to have TWRP possibilities (easily create flashable backup image, restore image without losing my data, easy flashing, easy access to all partitions, ....)

Apparently, there is a TWRP from aquaris-dev, downloadable from their Slack:
https://join.slack.com/t/aquaris-de...QyMWIwZTk4ZjllYjMxZWJhYzM0YzNhZWZkYTEwMzQ5ZDQ

Yes, that one seems to work at my X2 Pro device (tried with fastboot).
Soon after start it asks for a password when trying to mount the partitions.
In principal that's to decrypt the encrypted stock partitions - but that functionality is currently not available - so to install lineageos this TWRP is fine - for everything else (e.g. to make a backup of your stock image) not...

Related

[Q] Can anyone ELI5 what to do next.

Alright, so I think I've gone about this the right way so far, and since there doesn't seem to be any definitive literature on what to do next, I'm hoping someone can shed some light on this:
So, my Verizon HTC One m7 shows that it is unlocked and has S-OFF from the boot screen, and I was able to flash to the TWRP recovery (unofficial version v2.7.0.4b-santod) using ADB.
My end goal is to install this ROM and my first question is; is there a more recent / more stable build for TWRP that I should be using? [see 3rd question is yes]
Second question is; after either switching recoveries, all I have to do is hit install on the TWRP menu, and select the .zip from the internal storage right?
And as a third / follow-up question to my first question; can someoen direct me to a guide on how to flash the recovery using ADB or perhaps and easier method? It's been a month or so since i first did it and I didnt save the steps I followed anywhere.
WorseDoughnut said:
Alright, so I think I've gone about this the right way so far, and since there doesn't seem to be any definitive literature on what to do next, I'm hoping someone can shed some light on this:
So, my Verizon HTC One m7 shows that it is unlocked and has S-OFF from the boot screen, and I was able to flash to the TWRP recovery (unofficial version v2.7.0.4b-santod) using ADB.
My end goal is to install this ROM and my first question is; is there a more recent / more stable build for TWRP that I should be using? [see 3rd question is yes]
Second question is; after either switching recoveries, all I have to do is hit install on the TWRP menu, and select the .zip from the internal storage right?
And as a third / follow-up question to my first question; can someoen direct me to a guide on how to flash the recovery using ADB or perhaps and easier method? It's been a month or so since i first did it and I didnt save the steps I followed anywhere.
Click to expand...
Click to collapse
There is a TWRP 2.7.0.8. Also, you can flash recoveries with an app called Flashify if you don't want to use fastboot (always good to know though). Before you install your new Rom, you'll want to do a full wipe. Then, you got it, go back to install and select your Rom.zip.
Sent from my HTC6500LVW using Tapatalk
brholt6 said:
There is a TWRP 2.7.0.8.
Click to expand...
Click to collapse
Do you know if MDMower's build is compatible? that's the one i keep finding on google.
Also what about the TWRP official 2.7.1.0 build? Or should I stick to 2.7.0.8?
WorseDoughnut said:
Do you know if MDMower's build is compatible? that's the one i keep finding on google.
Also what about the TWRP official 2.7.1.0 build? Or should I stick to 2.7.0.8?
Click to expand...
Click to collapse
You'll want to get anything you flash on this phone from the Verizon HTC One forums (or if it says it's for the vzw version). Here's a link to our TWRP thread. The MDMower build is linked under downloads in the first post.
http://forum.xda-developers.com/showthread.php?t=2416431
Also I saw in the link on that thread, there is a 2.7.1.0 for us. Not sure what's changed though.
Sent from my HTC6500LVW using Tapatalk
From official site: http://teamw.in/project/twrp2
What's new in 2.7.1.0:
Add GUI option to change or repair file systems on individual partitions. The change is destructive so backup your data including internal sdcard first. This option should make it a little easier to migrate a device from ext4 -> f2fs, for instance. You will find this option under Wipe -> Advanced Wipe, then select only one partition and then press the Repair or Change File System button. If a developer has added f2fs support for your device and we don't have it in TWRP, please contact me via PM to arrange for it to be added.
Various bugfixes to backup and restore
Improvements to USB storage handling
Added a class to search for files to make finding the correct brightness file automatic in most cases
Various other bugfixes and tweaks
Click to expand...
Click to collapse
Sent from my HTC6500LVW using XDA Free mobile app

Newb questions regarding Oneplus 5T

Hi
long time user of Huawei and Sammy
after waiting long for some sort of development for Huawei phones i have given up and im taking the plunge into the oneplus territory, after researching it seems like oneplus dont put obstacles in the way of development.
i have a few questions before i receive my oneplus and starting tinkering with it.
(disclaimer i know there is a tool for fact image twrp etc etc)
Firstly regarding stock image, is there only one firmware for the oneplus5T? i dont see anyone mentioning anything about branding or region stock ROMS.
also is there a download portal we can download the stock ROM / and extract .img files? (Huawei had a tool that lets you extract the .zip and within the zip the boot.img file could be extracted using another tool also to repack)
if not is there something similar (does TWRP let you backup boot.img and other important files? are they able to be modified and re-flashed?)
also what is the proper procedure in flashing ROM, Kernel, SuperSU and boot.img (which order)?
--i say boot image because i have some customisations id like to flash, if the kernel or SuperSU contains the boot.img i may be able to edit the changes and flash
on the huawei it was ROM>boot.img>kernel> supersu (Assuming supersu and kernel, bluspark in particular, doesnt flash stock boot.img just uses the one installed to modify - specifically id like to modify fstab in the boot img and keep my modifications)
when installing TWRP and wiping /data before first boot do any system applications get wiped? (on huawei some applications disappeared, themes, camera etc) or does all the good stuff reside somewhere else? (i.e i dont have to flash anything after wiping data as i did on the huawei to get some stuff back)
and finally, does root affect logging into snapchat?
on my mate 9 i had no problems but using the root method for the 10 caused problem
thank you!
To My knowledge the is one Global Rom.
For all your other questions, go here: https://forum.xda-developers.com/oneplus-5t/development
virtyx said:
Hi
long time user of Huawei and Sammy
after waiting long for some sort of development for Huawei phones i have given up and im taking the plunge into the oneplus territory, after researching it seems like oneplus dont put obstacles in the way of development.
i have a few questions before i receive my oneplus and starting tinkering with it.
(disclaimer i know there is a tool for fact image twrp etc etc)
Firstly regarding stock image, is there only one firmware for the oneplus5T? i dont see anyone mentioning anything about branding or region stock ROMS.
also is there a download portal we can download the stock ROM / and extract .img files? (Huawei had a tool that lets you extract the .zip and within the zip the boot.img file could be extracted using another tool also to repack)
if not is there something similar (does TWRP let you backup boot.img and other important files? are they able to be modified and re-flashed?)
also what is the proper procedure in flashing ROM, Kernel, SuperSU and boot.img (which order)?
--i say boot image because i have some customisations id like to flash, if the kernel or SuperSU contains the boot.img i may be able to edit the changes and flash
on the huawei it was ROM>boot.img>kernel> supersu (Assuming supersu and kernel, bluspark in particular, doesnt flash stock boot.img just uses the one installed to modify - specifically id like to modify fstab in the boot img and keep my modifications)
when installing TWRP and wiping /data before first boot do any system applications get wiped? (on huawei some applications disappeared, themes, camera etc) or does all the good stuff reside somewhere else? (i.e i dont have to flash anything after wiping data as i did on the huawei to get some stuff back)
and finally, does root affect logging into snapchat?
on my mate 9 i had no problems but using the root method for the 10 caused problem
thank you!
Click to expand...
Click to collapse
Lu-USVI said:
To My knowledge the is one Global Rom.
For all your other questions, go here: https://forum.xda-developers.com/oneplus-5t/development
Click to expand...
Click to collapse
thanks
I've read most of the threads and I don't see much in terms of my questions.

Which TWRP to use (keeping encryption in mind)?

Hello. I have a stock fully updated(amzin, v8.1.0) moto G5(SKU: XT1677). I decided to install a custom rom and I got the unlock key from Motorola. However, I read that official twrp can only flash 32 bit(pre oreo) roms. And there are lots of unofficial TWRPs. I wanted to keep my device encrypted with a PIN after installing a custom ROM, so which TWRP should I use to have relatively good encryption support?
This 64bit twrp supports encryption
https://drive.google.com/open?id=1MLlljM7BzMj9Da57LeyBHyg81cHdW1cB
Note though that as of time of this post Los 17.1 & roms that use the same device tree don't currently support encryption
TheFixItMan said:
This 64bit twrp supports encryption
https://drive.google.com/open?id=1MLlljM7BzMj9Da57LeyBHyg81cHdW1cB
Note though that as of time of this post Los 17.1 & roms that use the same device tree don't currently support encryption
Click to expand...
Click to collapse
Well, then I guess I'll just use whatever twrp is linked in the ROM thread.
Also, I read through old threads and read about the possibility of losing RIL/IMEI so would you recommend using official 32bit twrp to create a nandroid full backup of the stock oreo and then proceed with 64 bit twrp followed by the ROM?
cp101da said:
Well, then I guess I'll just use whatever twrp is linked in the ROM thread.
Also, I read through old threads and read about the possibility of losing RIL/IMEI so would you recommend using official 32bit twrp to create a nandroid full backup of the stock oreo and then proceed with 64 bit twrp followed by the ROM?
Click to expand...
Click to collapse
Backup efs with 64bit twrp if you want to save your imei
Obviously save it to sdcard or pc
The rest is totally up to you
TheFixItMan said:
Backup efs with 64bit twrp if you want to save your imei
Obviously save it to sdcard or pc
The rest is totally up to you
Click to expand...
Click to collapse
Thank you. It's been a while since I've looked into custom ROMs and such.
So at this point, I don't need to use the official twrp for any purpose?

Recovery

What kind of recovery is recovery-oneplus7t-3.4.2-10.0-b26.img? is it the chinese TWRP one?
altojd said:
What kind of recovery is recovery-oneplus7t-3.4.2-10.0-b26.img? is it the chinese TWRP one?
Click to expand...
Click to collapse
Yes
Where did you find it ?
Any idea why after flashing recovery-oneplus7t-3.4.2-10.0-b26.img (chinese twrp) being in recovery mode i don't see ANYTHING in sdcard?
altojd said:
Any idea why after flashing recovery-oneplus7t-3.4.2-10.0-b26.img (chinese twrp) being in recovery mode i don't see ANYTHING in sdcard?
Click to expand...
Click to collapse
Please could you pm the link to this recovery please l think flashing this recovery will format your data because it changes the file system which is why it works
a g bell said:
Please could you pm the link to this recovery please l think flashing this recovery will format your data because it changes the file system which is why it works
Click to expand...
Click to collapse
i found this recovery in msm extended telegram chat.
the installation did not format my data since i have all my apps working and i can see the entire internal storage when i connect the phone to pc.
I have this recovery on my device for a later time in case I decide to move away from OOS so I can't speak to experience...BUT:
My understanding is due to decryption/recovery on this device the chinese recovery will work BUT the limitations are that if you are on OOS currently you cannot decrypt storage, HENCE you will not see anything in TWRP (again that is my understanding). After backing up the device and wiping the data partition at minimum (most custom roms seem to require us to fastboot wipe our partitions from instructions ive read)... then we can use this version of recovery for custom roms.
I think the major difference between this one and the official version here is of course the unofficial nature of this twrp but also the chinese twrp will let you flash (not boot) the recovery image without issue so we can still USE OOS OR flash custom roms without things going...wrong?...I plan to wait until the A11 OOS upgrade before I make a decision. After learning about how 1P botched the recovery keys + partition issues with the A10 launch I think its just better to see how development goes AFTER the new year maybe
Hmm l was of the understanding that if you format using the chinese recovery all will work on oos will see what's what and report back as soon as l find it and flash it
So flashed Chinese twrp couldn't mount data until l formatted data using it then l could see everything in storage but it reverted after a reboot and would need formatting again to see storage also it seems much more functional that the mauronofrio twrp but the decryption issue is still an issue for me at least. It's ashame nobody is working on this to give us a better twrp.
a g bell said:
Hmm l was of the understanding that if you format using the chinese recovery all will work on oos will see what's what and report back as soon as l find it and flash it
So flashed Chinese twrp couldn't mount data until l formatted data using it then l could see everything in storage but it reverted after a reboot and would need formatting again to see storage also it seems much more functional that the mauronofrio twrp but the decryption issue is still an issue for me at least. It's ashame nobody is working on this to give us a better twrp.
Click to expand...
Click to collapse
What's "this"? And what do you mean nobody?
Check twrp gerrit and github and you'll see lots of progress. Fastbootd has been implemented, and dynamic partitions are pretty much handled now. Only significant thing would be decryption, but let's hope Android 11 fixes this as Google once again has changed things regarding to keystore.
Lossyx said:
What's "this"? And what do you mean nobody?
Check twrp gerrit and github and you'll see lots of progress. Fastbootd has been implemented, and dynamic partitions are pretty much handled now. Only significant thing would be decryption, but let's hope Android 11 fixes this as Google once again has changed things regarding to keystore.
Click to expand...
Click to collapse
Ok l stand corrected just wondering why mauronofrio hasn't released an update or updated his thread. So OnePlus have to implement changes to keystore with Android 11 so they might fix it ?

Full Nandroid Backup Solution for LineageOS 17??

I got Lineage 17 w/ Magisk root running now neat and great and I want to perform a full NANDroid Backup.
After some research it seems crucial to have a custom recovery like TWRP for that. There is the online nandroid thing - but I would need CWM or anything like this to restore?!
So my question is
a) is there another custom recovery (compatible with Pixel 3a XL w/ lineage 17 based on android 10) I can install and perform Nandroid backup with?
b) any other solution to perform this backup and restore? I heard there are cmd commands for that as well , but I'm a noobie not so sure to do that.
of course there are several apps out there to backup data.. but I don't trust ''any'' app to get root permission. In F Droid I couldn't find what I was looking for. Suggestion?
thank you for help!
It is unsafe to perform backups while booted into Android, as files may be changed/added/removed while the backup is taking place.
This is why it tends to be a feature of custom recoveries.
Titanium Backup is good. It doesn't support split APKs like YouTube but the data restore works flawlessly. This is an old utility app so you can trust it with root. You can find Titanium Backup on the play store, it is the one with the star and "root required".
If you want to perform full backups of your PHONE you will want TWRP. If you want to perform full backups of your APPS then you will want to use an app like Titanium Backup (however Titanium Backup is not updated for split APKs, like I said above), which will allow you to transfer your backups to a new phone and fully restore all apps & data (as long as both phones have root).
Sure problem is I want to perform a full backup of my phone, but TWRP ist not available. What are my options?
dadu1257 said:
Sure problem is I want to perform a full backup of my phone, but TWRP ist not available. What are my options?
Click to expand...
Click to collapse
Does TWRP for Pixel 3a XL not work for you? All you have to do is download the "twrp-installer-3.4.0-0-bonito.zip", install it as a Magisk module, then direct install Magisk again, then reboot into recovery and you'll have TWRP.
When accepting OTAs, you will want to use the "TWRP A/B retention script" before you install Magisk to the inactive slot. The script is available as part of the Magisk modules repository, so you should be able to install it directly from within Magisk Manager.
TWRP doesnt work for me, see here what user 41rw4lk wrote, too..
Is there a tutorial on how to install twrp as a masgisk module?
Also, how else can I perform a backup img for my phone?
thank you
dadu1257 said:
TWRP doesnt work for me, see here what user 41rw4lk wrote, too..
Is there a tutorial on how to install twrp as a masgisk module?
Also, how else can I perform a backup img for my phone?
thank you
Click to expand...
Click to collapse
https://puu.sh/GWiul/2611f0cdf4.mp4 - video showing how to install TWRP
Edit: https://puu.sh/GWiAe/6f620419c8.mp4 is more compatible and smaller. same video
.....
LoganDark said:
https://puu.sh/GWiul/2611f0cdf4.mp4 - video showing how to install TWRP
Edit: https://puu.sh/GWiAe/6f620419c8.mp4 is more compatible and smaller. same video
Click to expand...
Click to collapse
Benn trying to get this to work for a little bit now and no luck at all....
Let me start by saying i an NOT running LOS so that might be the whole issue...
I have tried with pure stock and stock with ex kernel
Same results for each
1) TWRP loads as the recovery and can be booted into, BUT the rom is now soft bricked and wont boot at all
2) Even when in twrp I cannot flash anything, cannot see sdcard and cannot backup data partition (the data partition shows as 0 space)
Perhaps the LOS kernel or rom adds something thats missing in my two setups?
The sample video is for another phone. My recolection is that twrp and pixels on android 10 or 11 wont work. Lineageos 17.1 is android 10 based. I think it worked on that other phone as it was not a pixel.
Can anyone confirm or deny if this works in any configuration of android 10 or 11 on our phones?
adm1jtg said:
Benn trying to get this to work for a little bit now and no luck at all....
Let me start by saying i an NOT running LOS so that might be the whole issue...
I have tried with pure stock and stock with ex kernel
Same results for each
1) TWRP loads as the recovery and can be booted into, BUT the rom is now soft bricked and wont boot at all
2) Even when in twrp I cannot flash anything, cannot see sdcard and cannot backup data partition (the data partition shows as 0 space)
Perhaps the LOS kernel or rom adds something thats missing in my two setups?
The sample video is for another phone. My recolection is that twrp and pixels on android 10 or 11 wont work. Lineageos 17.1 is android 10 based. I think it worked on that other phone as it was not a pixel.
Can anyone confirm or deny if this works in any configuration of android 10 or 11 on our phones?
Click to expand...
Click to collapse
Huh, that's weird... I apologize, I'm not very good at supporting devices I don't own. I'm not running Lineage either, I'm running stock plus mods.
It's possible that it doesn't work on your phone for whatever reason. There are a couple ways to install TWRP nowadays, check them out maybe? I promise TWRP is what you want for backups.
LoganDark said:
Huh, that's weird... I apologize, I'm not very good at supporting devices I don't own. I'm not running Lineage either, I'm running stock plus mods.
It's possible that it doesn't work on your phone for whatever reason. There are a couple ways to install TWRP nowadays, check them out maybe? I promise TWRP is what you want for backups.
Click to expand...
Click to collapse
Agreed but twrp simply doesnt work on our phones, or even any pixel 3 or above. It can't read the partitions correctly. Just trying to keep people from soft bricking their phone. Something about andriod 10 and 11 and the phones a/b partition configuration
adm1jtg said:
Agreed but twrp simply doesnt work on our phones, or even any pixel 3 or above. It can't read the partitions correctly.
Click to expand...
Click to collapse
Where did you hear this? I'll admit, I haven't heard about TWRP not working on Pixels, but it's relevant and it would be good to know if I ever help another Pixel user in the future.
adm1jtg said:
Something about andriod 10 and 11 and the phones a/b partition configuration
Click to expand...
Click to collapse
That's interesting, because my OnePlus 7 Pro runs Android 10 with an A/B configuration and TWRP works just fine. Haven't found a single feature that didn't work. Flashing custom ROMs, changing boot slots, etc. all work fine. So it can't be the A/B configuration.
LoganDark said:
Where did you hear this? I'll admit, I haven't heard about TWRP not working on Pixels, but it's relevant and it would be good to know if I ever help another Pixel user in the future.
That's interesting, because my OnePlus 7 Pro runs Android 10 with an A/B configuration and TWRP works just fine. Haven't found a single feature that didn't work. Flashing custom ROMs, changing boot slots, etc. all work fine. So it can't be the A/B configuration.
Click to expand...
Click to collapse
You can read through this:
[CLOSED]TWRP 3.3.1-1 for Pixel 3A XL [OFFICIAL]
Team Win Recovery Project 3.x, or TWRP3 for short, is a custom recovery built with ease of use and customization in mind. Its a fully touch driven user interface no more volume rocker or power buttons to mash. The GUI is also fully XML driven and...
forum.xda-developers.com
And this:
tips for preserving twrp from Pie to Q
hi i'm not an expert so sorry maybe for foolish question but coudn't find a clear answer yet.. i'm still on pie and twrp 3.3.1.1; i'd like to upgade to ten but preserving twrp (maybe upgrading to 3.4.0 if necessary) which are the steps to keep...
forum.xda-developers.com
No method I have tried results in anything but an unusable twrp or a boot loop. Cant even fastboot boot current version. All about dynamic partitions and lzma compression as I guess the partition isnt big enough. But bottom line is I have yet to find anyone including myself who can get twrp to in any way shape or form be usable on our phones for android 10 or newer.
this is what command prompt gives with fastboot boot
Sending 'boot.img' (65536 KB) OKAY [ 1.509s]
Booting FAILED (remote: 'Error verifying the received boot.img: Invalid Parameter')
This is likely due to the kernels I use likely not having lzma. Checking into it.
fastboot: error: Command failed
LoganDark said:
If you want to perform full backups of your PHONE you will want TWRP
Click to expand...
Click to collapse
I'm not sure how reliable is that. I just did a backup of Lineage 17 in TWRP, System and Data, restored it a few hours later through OTG and it got stuck on a google boot screen... Now I installed the LOS 17 ROM again (which I had in internal storage) but restored only Data (excl. storage).
It boots up now, but most apps are corrupted - if I open them they crash ('App ... keeps stopping').
I wouldn't count on it. TWRP nandroid backup is very unreliable.

Categories

Resources