build TWRP on a A/B Treble phone - Treble-Enabled Device Questions and Answers

Hello, I was looking to build a TWRP recovery for my phone (LG G7) but since the recovery is now part of the boot image I'm not sure if the old guides will work for my situation. I already have experience building ROMs (still a semi-beginner). Is it any different than before or it still the old guides would work?

LameMonster82 said:
Hello, I was looking to build a TWRP recovery for my phone (LG G7) but since the recovery is now part of the boot image I'm not sure if the old guides will work for my situation. I already have experience building ROMs (still a semi-beginner). Is it any different than before or it still the old guides would work?
Click to expand...
Click to collapse
I have the G5 and I will like to learn how to build pie for it too

Related

"if you're rooted with a custom recovery you can flash any ROM"

Is there any truth to this? I'm paraphrasing from a post a read about an hour ago. For context, he was talking about being able to flash basically any ROM regardless of software version after you successfully get TWRP working.
I was wondering because i have a vs985 24B which makes it pretty hard to find relevant information for even the mainstream ROMs like skydragon and cloudyg3. I found a way to root and get TWRP but if possible I'd like to avoid experimenting with ROMs that aren't confirmed working for my software version.
awohlgemuth said:
Is there any truth to this? I'm paraphrasing from a post a read about an hour ago. For context, he was talking about being able to flash basically any ROM regardless of software version after you successfully get TWRP working.
I was wondering because i have a vs985 24B which makes it pretty hard to find relevant information for even the mainstream ROMs like skydragon and cloudyg3. I found a way to root and get TWRP but if possible I'd like to avoid experimenting with ROMs that aren't confirmed working for my software version.
Click to expand...
Click to collapse
If you sucessfuly rooted your phone and installed TWRP, you can flash any ROM that was built for your G3 version, nothing else.
For example, you cannot flash D855 version ROM on your device.
Sent from my LG-D855
awohlgemuth said:
Is there any truth to this? I'm paraphrasing from a post a read about an hour ago. For context, he was talking about being able to flash basically any ROM regardless of software version after you successfully get TWRP working.
I was wondering because i have a vs985 24B which makes it pretty hard to find relevant information for even the mainstream ROMs like skydragon and cloudyg3. I found a way to root and get TWRP but if possible I'd like to avoid experimenting with ROMs that aren't confirmed working for my software version.
Click to expand...
Click to collapse
nop only some aosp roms work that way(never ever flash kernel)
draskome said:
If you sucessfuly rooted your phone and installed TWRP, you can flash any ROM that was built for your G3 version, nothing else.
For example, you cannot flash D855 version ROM on your device.
Sent from my LG-D855
Click to expand...
Click to collapse
Thanks for the reply,
Does that rule apply even across kit Kat --> lollipop?
For example, will ROMs that havn't been updated in years with the most recent software version being VS985 10b work?
Sent from my VS985 4G
awohlgemuth said:
Is there any truth to this? I'm paraphrasing from a post a read about an hour ago. For context, he was talking about being able to flash basically any ROM regardless of software version after you successfully get TWRP working.
I was wondering because i have a vs985 24B which makes it pretty hard to find relevant information for even the mainstream ROMs like skydragon and cloudyg3. I found a way to root and get TWRP but if possible I'd like to avoid experimenting with ROMs that aren't confirmed working for my software version.
Click to expand...
Click to collapse
There are 2 words you should look for flashing a rom..
vs985 your device model
bumped
since it's so well known things need to be bumped it may not necessarily be mentioned on everything.. buuuut in most cases it is..
the only other thing to be mindful of is upgrading or downgrading from various Android versions & their modems & such..
oh and if you start messing with kernels.. some kernels will boot loop you if flashed over a different kernel with known issues.. that's usually mentioned in their related threads & by the time you mess with kernels you should be pretty familiar with things..
if you end up with a rom that won't boot.. not a problem.. just go back into twrp & use your backup.. because you should always have a backup made & ready..

Recoveryproblems after Android 6.0 Update

Hello,
some days ago I've installed Android M.
If i try to boot recovery now i just get the dead droid.
~5 Mins later it just reboots to normal mode.
Flashing TWRP didn't help
Any suggestions - never had something like this before?
J3n50m4t said:
Hello,
some days ago I've installed Android M.
If i try to boot recovery now i just get the dead droid.
~5 Mins later it just reboots to normal mode.
Flashing TWRP didn't help
Any suggestions - never had something like this before?
Click to expand...
Click to collapse
did you installed Android M on Verizon device?
ajeevlal said:
did you installed Android M on Verizon device?
Click to expand...
Click to collapse
No. updated with LG Bridge (h815)
J3n50m4t said:
Hello,
some days ago I've installed Android M.
If i try to boot recovery now i just get the dead droid.
~5 Mins later it just reboots to normal mode.
Flashing TWRP didn't help
Any suggestions - never had something like this before?
Click to expand...
Click to collapse
TWRP requires an unlocked bootloader which the VS986 (Verizon G4) has not been able to do. I saw a thread somewhere about installing MM on any G4, but figured I could wait a while and be happy with 13B. What software version were you BEFORE installing 6.0 MM? Can you not go back to 13B by placing a system image on your phone and flashing that in recover/command mode? I have not read much about what MM does with your kernel/bootloader, so DEFINITELY check that before you think about going back to 5..1 LG has anti-rollback stuff backed in that can brick your phone if you try going to a previous version, but not sure how the 6.0 MM flash handles that.
Edit: Well, that answers that question, not a Verizon phone. lol.
Which H815 version do you have? VERY IMPORTANT because not all H815 are made the same. Depending on the region is what determines if you can actually unlock your bootloader.
woozzy101 said:
TWRP requires an unlocked bootloader.
Click to expand...
Click to collapse
Bootloader is unlocked. Had 5.1 before with TWRP & Co. working.
The CM Wiki is exactly what I did. Installing Android 6 and then flashing recovery with adb.
Can't link due newbie but cyanogen wiki /w/Install_CM_for_h815
Now tried to boot directly into recovery after flashing.
I'm just getting the Stock recovery after a sucessful flash of twrp?

Reverting from custom ROM to stock causes bootloops

Hi guys,
I have a problem I need some advice for. A year ago, I purchased my Amami for the purpose of GPS-navigation on my bicycle. It always worked fine and I was able to charge it with my dynohub without any issues. The charging is giving me a headache now though, and all troubleshooting points at the phone being the problem.
Now, a couple months ago I decided to ditch 4.4 and go for a custom ROM (I've tried Oreo and Pie) which worked fine, but the phone doesn't charge as well as it used to on my bike. I'd like to go back to stock to see if that's what is causing the issue and used the Xperia Flashtool to revert to a stock image, but the ones that used to work on the phone now give me bootloops after I've flashed TWRP and ResurrectionRemix and Lineage OS.
Is there anything I need to know before I flash a stock firmware with the tool? Any input would be appreciated.
Sounds like to have not updated to Lolipop and therefore you do not have real recovery. Is your bootloader unlocked? Then you can try EMMA to update to Lollipop.
jho55 said:
Sounds like to have not updated to Lolipop and therefore you do not have real recovery. Is your bootloader unlocked? Then you can try EMMA to update to Lollipop.
Click to expand...
Click to collapse
My bootloader is unlocked, I have TWRP installed and am currently running Lineage OS (Android 8). It doesn't matter if I flash Sony's original Kitkat or Lollipop; both will have bootloops. No offense, but I'm not sure you understood my original post: I'd like to go back to an old stock ROM, because 4.4 is the one that I'm sure have me no trouble with charging on my bike.
Proper BL relock:
https://forum.xda-developers.com/xperia-z/general/tutorial-relock-xperia-z-bootloader-t2191907https://forum.xda-developers.com/xperia-z/general/tutorial-relock-xperia-z-bootloader-t2191907
If you use twrp in fotakernel partition maybe necassary to write back original fotakernel.sin (inside stock.ftf) before relock with flashtool. Remember! After relock with flastool the new BL unlock key here: DEVICESERIAL \ unlock.txt

GSI on LG g8s

Hey guys,
As the g8s is falling in price a lot and has good build quality, I was thinking of picking one up. Sadly the almost non existant updates of LG hinder me here.
So I was wondering, did anyone try to get GSI working on the European g8s, which can be bootloader unlocked? If so, how is the functionality?
Thanks.
same here, anyone tried it?
Not possible because there is no TWRP and also no Custom Roms
Bunsenbrenner said:
Not possible because there is no TWRP and also no Custom Roms
Click to expand...
Click to collapse
Hmm, as far as I understand GSI, it works on project treble enabled phones. For this you don't necessarily need twrp and most of all device specific custom roms. You can theoretically flash a generic GSI on a bootloader unlocked phone with fastboot. The question naturally is, if it's usable than on this specific phone.
But it appears noone tried that with the g8s and the price has gone considerably up again... At least where I live
it would be a horribly stupid move to flash a GSI on a phone without any working recovery - if the GSI fcks up something you're stuck with a phone that might be bricked forever
doubt anyone would want to try that with their flagship phone lol
If only you would know that you can flash a stock kdz with lgup in case it goes sideways. The dll is available from this forum, lgup as well and the kdz from LG fan club.
Yes,exist https://forum.xda-developers.com/t/rom-lineageos-18-1-for-lg-g8s-thinq-betalm-wip.4219111/

Clarification needed regarding rooting and bootloader for installing LineageOS 17.1

Hi all,
so my current smartphone died for good and instead of getting a new one, I thought I'd revive my old Sony Xperia Z1 Compact. It's been a while since I switched it on so the battery is dead but I'm planning to buy a new battery and replace it. Then I plan to install LineageOS (which is based on Android 10 I believe?)
However I've never done rooting or anything more than basic end user stuff so I've searched the internet and thought I needed to root my phone and then flash the LineageOS. I've read some beginner guides on this forum and other places. However, I've ran into some conflicting/confusing(?) info and need some clarification before starting out. Hope someone can help with my admittedly-very-noobie questions:
1) Can I install LineageOS WITHOUT rooting my phone?
I believe that the bootloader needs to be unlocked first but is rooting necessary? The reason being is that I just want to get rid of the current stock ROM (I think it was Lollipop - can't know for sure because the new battery hasn't arrived yet) and install LineageOS. I don't want a rooted phone because it might conflict with banking apps and such (I know there are workarounds i.e. masking/reflashing/unrooting but as I am not that familiar with the development systems I will just be exposing myself to unknown vulnerabilities) so is it possible to just have the custom ROM and not completely root the phone?
2) Unlocking the bootloader
So I read I have to do a backup first before unlocking the bootloader. Is an SD card necessary or only for rooting? Since unlocking the bootloader will format the SD card anyway? Where should the backup be stored then?
I'd really appreciate some guidance. Thanks!!
Cheers,
traegr
LineageOS or most other roms aren't rooted by default. You will have to install solutions like magisk.
If you install twrp https://forum.xda-developers.com/sony-xperia-z1-compact/development/recovery-twrp-3-3-1-t3960699 make sure you are on latest stock firmware as you need the latest bootloader which allows booting into recovery. Flash firmware with Xperia Flashtool which has inbuilt firmware downloader. http://www.flashtool.net/index.php
If you can't boot into TWRP, you can try flashing attached file with xperia flashtool.
Instead of unofficial lineage I recommend AICP forum.xda-developers.com/sony-xperia-z1-compact/orig-development/rom-aicp-15-0-q10-0-amami-t4005457 . It's got good battery life and nice inbuilt tweaks and customization options..
Hope this helps
Also you need to flash Gapps if you want to use certain apps. Important point for AICP is that you can use microg instead. https://microg.org/
drater2 said:
LineageOS or most other roms aren't rooted by default. You will have to install solutions like magisk.
If you install twrp https://forum.xda-developers.com/sony-xperia-z1-compact/development/recovery-twrp-3-3-1-t3960699 make sure you are on latest stock firmware as you need the latest bootloader which allows booting into recovery. Flash firmware with Xperia Flashtool which has inbuilt firmware downloader. http://www.flashtool.net/index.php
If you can't boot into TWRP, you can try flashing attached file with xperia flashtool.
Instead of unofficial lineage I recommend AICP forum.xda-developers.com/sony-xperia-z1-compact/orig-development/rom-aicp-15-0-q10-0-amami-t4005457 . It's got good battery life and nice inbuilt tweaks and customization options..
Hope this helps
Click to expand...
Click to collapse
Hi, thanks for replying.
What's the difference between the lineage and AICP?
traegr said:
Hi, thanks for replying.
What's the difference between the lineage and AICP?
Click to expand...
Click to collapse
AICP provides more customizations while lineage is a "cleaner" approach. In the end AICP builds on top of lineage sources and adds several features. It totally depends on your personal taste. I consider it to be a bit overloaded. But that's my opinion. Which may be a bit influenced as I build the lineage version. Hehe
But once you have a recovery set up you can easily flash one, test it, and try the other one afterwards.
Hardware functionality should be same as AICP (SpiritCroc) and lineage (mse and me) share the same device tree sources. If one of us repairs something the other one will also get the fixes.
Both AICP and lineage have OTA update support. If you need microg you can either go with AICP 15 (Android 10) or Lineage 16 (Android 9).
Also you can easily backup your entire system with twrp if something goes wrong when flashing or whatever.
And when "hopping" roms you can make backups with Titatnium (root needed)

Categories

Resources