yashsingh1/xdaforums huggingface dataset:
[G2 Android Development] noidea24:
adb sideload

I flashed this recovery by using adb sideload from my computer, i rebooted recovery and reset defaults.

i then wiped everything and started adb sideload to install a rom and gapps.

i open my prompt and check adb devices to ensure it says "sideload", i proceed to "adb sideload rom.zip" and it gets stuck at sending file 1%

i checked with two other zips and they get suck at 1% also, is this a problem everyone has?

_________________________________________________

had to "disbale mtp" in mount section. then flashed correctly.
[G2 Android Development] luv2increase:
Lots of talk on this thread about that happening with ls980.
[G2 Android Development] boyheadkick:
first time using this custom twrp, i decided to use this over the other custom twrps since it's the most updated (correct me if i'm wrong :D) and because dorimanx is using it too

i just made a full backup and the temp topped at 61c..i got the d802
[G2 Android Development] barturblits:
Did you use compression with your backups?
[G2 Android Development] xNotta:
Good thing I asked before I flashed this recovery.

Thank you for saving my phone.
[G2 Android Development] blastagator:
I haven't heard of this problem, nor has anyone reported it in this thread...

Glad you fixed it and reported back in case anyone else has this problem.
[G2 Android Development] blastagator:
What are you talking about...
[G2 Android Development] berryman13:
Unzipping and flashing the img with flashify worked fine
[G2 Android Development] dia_johnson:
Issues with 2.8.1.1 Install

I flashed the 2.8.1.1. zip from my 2.8.0.1 twrp and I rebooted back into the recovery to attempt to restore defaults but clicking on the button did nothing. Attempting to do anything accept wipe dalvik/cache results in a fail. I am on lg g2 vs980
[G2 Android Development] SREEPRAJAY:
Members,

Please be sensible.

If you find something which doesn't work on your device or you are not satisfied, find something which suits.

Stop whining and making sarcastic remarks.

If you can do something better, do it and you can always share here.

THREAD CLEANED
[G2 Android Development] Ace42:
I'm having the same issue, temp is allowed to increase to 80° C in this version. When I used dr87's version the temp wasn't troublesome. I'll try re flashing this version and see if temps will behave...

Sent From Capsule Corp.
[G2 Android Development] boyheadkick:
How do you mean compression?

Sent from my LG-D802
[G2 Android Development] barturblits:
You can make compressed and uncompressed backups in twrp. Compression requires more cpu power which results in more heat.
[G2 Android Development] blastagator:
Hmm... ya if you're using compression that would probably make things a bit warmer.
[G2 Android Development] boyheadkick:
I never actually bothered to notice that..i'll check now..thanks for the heads up

Sent from my LG-D802

Edit: oh that compression haha no i never use that

Edit2: making a backup while charging, temp topped at 75c..that's a given right?considering i was charging while making the backup?
[G2 Android Development] RenderBroken:
[MENTION=5031300]blastagator[/MENTION] Thanks for you hard work! Love this project and your dedication!
[G2 Android Development] Garfield3333:
Can anyone help with f2fs....?

A little tutorial or so .....?

THX
[G2 Android Development] dorimanx:
Backup all data and sdcard to pc, this is 1. Then search this thread.

Sent from my LG-D802
[G2 Android Development] blastagator:
I don't think /data is fully worked out, but /cache is pretty easy to do. /cache will work with dorimanx kernel if you just change the format to f2fs. data and system are more complex. System probably isn't worth it because the selling point of f2fs is supposed to be write speed, and system mounts as read only.
[G2 Android Development] Pipec.:
I have this to. Bootloop to recovery

Tried lineage-14.1-20170306-nightly-d802-signed.zip and lineage-14.1-20170227-nightly-d802-signed.zip

Twrp by blastagator 3.0.2.1
[G2 Android Development] Trixanity:
If either of you had bothered to read the LineageOS thread, you'd know that it has nothing to do with TWRP. I suggest you read beforehand next time.
[G2 Android Development] coolhandfluke:
Have a look here

https://xdaforums.com/showpost.php?p=71336242&postcount=777

---------- Post added at 11:47 PM ---------- Previous post was at 11:46 PM ----------

https://xdaforums.com/showpost.php?p=71336242&postcount=777
[G2 Android Development] Freezystem:
I had exactly the same problem with my D802. There are two way to fix this.

First solution:

Enter fastboot mode on your phone and run "fastboot continue" from you computer terminal.

(didn't work for me as fastboot won't find my phone)

Second solution:

In recovery mode plug your phone to your computer and run this command from terminal:

`adb shell dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/misc count=1 bs=32`

If you don't have a computer run this command from TWRP terminal

Be careful as it's easy to brick your phone with DD.
[G2 Android Development] kopitaneskita:
so even with 3.0.3 beta lineage OTA still causes bootloop?

wth...
[G2 Android Development] blastagator:
What procedure is causing the bootloop exactly? I want to do testing.

And as I previously stated before, it isn't just a recovery issue, it needs to be fixed on the ROM side also.

edit: 3.1.0 build will be posted sometime tomorrow. I have it building now. I instituted a possible fix for bootloop, but ROMs will all need to add it as well. We will see.

---
[G2 Android Development] TheRuedi:
My G2 was stuck in a bootloop as well after the 06/3 Update. I did 'adb shell dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/misc count=1 bs=32' (thanks Freezystem) and upgraded TWRP to 3.0.3 beta. After flashing the 06/3 lineage os, GApps and SuperSu, everything works fine again. Sorry for not flashing 27/2 again and trying to reproduce the bootloop by OTA to 06/3 with TWRP 3.0.3 beta, I have to have a running phone immediatly :D
[G2 Android Development] blastagator:
March 13, 2017 (3.1.0-1)

Rebuild of 3.1.0-0 (from 2017.03.10) - Add ability to boot with JB bootloader.

-TWRP Change Log:

-Tree

++Bootloader offset is now 128!

If you are having OTA problems, make sure your ROM maintainer adds this to their device tree: https://github.com/blastagator/cm_d...mmit/946434d0881b50437422e7855d5d7a096d9608e1

Also, /misc needs to be mounted: https://review.lineageos.org/#/c/19334/)

++Completely rebased onto cm-14.1

++Remove custom USB - Use G2+TWRP usbs instead

++Tweaks to enable compatibility with old bootloader

-Kernel

++Completely rebased onto cm-14.1

++Tweaks to enable compatibility with old bootloader

++Disable lots of unneeded things and changed kernel compression

OTA Issue in 7.0+ ROMs

Starting in Android N, the ROM uses /misc partition to communicate with recovery. (Therefore if your ROM is M or lower, OR uses the old communication method, this is not relevant to you). To address OTA problems, it is important to note the newly introduced bootloader offset. (https://github.com/blastagator/cm_d...mmit/946434d0881b50437422e7855d5d7a096d9608e1) Your ROM maintainer should add this to their device tree. This will insure that ROM will write to the exact place the recovery is reading from.

ALL users can use the new recovery

. Just DON'T do an OTA unless the ROM you are running has the correct offset (your currently running ROM, NOT the ROM you are flashing).

Also worth noting, you don't need to install the TWRP app, we don't have an officially built TWRP anymore, so it wouldn't do you any good.

---
[G2 Android Development] kolouch.petr:
update: I use this hybrid bootstack for my D802. maybe there is something better for me to flash, please let me know

https://xdaforums.com/lg-g2/development/boot-g2-hybrid-bootstacks-t3183219

I was running LienageOS and after one week I decided to upgrade OTA. My phone downloaded the zip file via OTG and rebooted to TWRP. Nothing happnened itself (as usually) so I flashed the zip manually in TWRP (LienageOS and openGapps stock). Then I REBOOT TO SYSTEM and I the phone started to TWRP again. I tried to POWER OFF, WIPE EVERYTHING INCLUDING INTERNAL STORAGE, FORMAT, then I installed clean Lieneage OS from USB OTG. Everything seemed to be fine but it rebooted to TWRP again and I could not help myself. I flashed hybrid boot stack again from TWRP ... no way .. .it only booted to TWRP. Since I needed working phone I flashed stock original ROM via LG flash utility 2014 . Anyway I know there is no problem in TWRP which works well. Im going to flash Lineage OS again and try it next time soon :)
[G2 Android Development] cgrig1981:
I am having an lg d802 running latest Ressurection remix 5.8.2 should i flash this twrp update or i will get bootloop?
[G2 Android Development] wq0913562:
Does LineageOS already have the proper offset?
[G2 Android Development] armujahid:
adb backup link correction

Hi,

adb backup link is incorrect. correct link is https://github.com/omnirom/android_bootable_recovery/commit/ce8f83c48d200106ff61ad530c863b15c16949d9

Reference:

https://www.xda-developers.com/twrp...-support-for-adb-backup-ab-ota-zips-and-more/
[G2 Android Development] wq0913562:
Never mind, found the answer: https://review.lineageos.org/#/c/165001/
[G2 Android Development] freinet:
Only for information, mokee OTA update works fine with TWRP. OTA bug seems not TWRP related.

Gesendet von meinem LG-D802 mit Tapatalk
[G2 Android Development] blastagator:
I updated the description of the issue in the update post. Anyone can use the new TWRP, just don't OTA unless the offset has been changed in your ROM.

Fixed, thanks. Please remove massive quote :)

You got it. Should be merged soon.
[G2 Android Development] wq0913562:
[MENTION=5031300]blastagator[/MENTION] :

Do you happen to know why your TWRP builds are not listed on:

https://twrp.me/devices/lgg2.html

?

It doesn't even list a build for the D802...
[G2 Android Development] SystematicLP:
Just need to flash the zip on twrp? If I use Flashify my Touchscreen will not work?

I am on 2.8.7.3

(im still newbie, sorry)
[G2 Android Development] khanjui:
Because his builds are not official.
[G2 Android Development] Startrek852:
Official​ support has been completely dropped.
[G2 Android Development] blastagator:
Correct. Official support was dropped several versions ago. You guys are stuck with me.

You should flash the zip, but if your panel isn't jdi flashing the image with flashify is fine.
[G2 Android Development] wq0913562:
But why? Just curious.
[G2 Android Development] KoLa_:
D802 LG logo for a second and a black screen

Hello,

I have a problem with LG G2 D802. I was on stock 4.4.2. I didn't do OTA. I did an advanced wipe before installing the OS.

I tried to install latest version of TWRP (3.1.0.0), however I ran into a problem. Once I try to reboot into recovery I get an LG logo for a brief moment of time (up to 1 second) and then the screen blacks out. I can't do anything about it, but I still had a functioning system, so I used to boot into system and use AutoRec and go back to TWRP 2.7.0.0 and try to install another TWRP version again.

So I tried to upgrade TWRP gradually, I went 2.7.0.0 (Working OK) -> 2.8.7.3 (Working OK) -> 3.0.0.4 (Working OK) -> 3.0.2.0 (Working OK) -> 3.0.2.1 (Working OK) -> 3.1.0.0 - and here the LG logo for a second and a black screen started to appear. So I figured out that the 3.0.2.1 is stable for me (and it is).

However knowing that I installed lineage-14.1-20170306-nightly-d802-signed.zip and the behaviour I saw with TWRP 3.1.0.0 reappeared. I now can only get into recovery by holding power button + volume down for a long time and when I see LG logo, hit that combo again and then enter recovery. I tried installing experimental LoS, but that didn't help.

So now I'm stuck with a functioning recovery and a dead OS, not sure who do I ask for help first, but if I install the latest TWRP now, I will neither have a working system, nor a working recovery, so I need a good advice.

Please help me solve this riddle.
[G2 Android Development] MB525:
Perhaps you are on the wrong old boot stack from Kitkat but you need the one from Lollipop. On that stack you need to press volume up+down after the logo.

It would be the clean way to start new from stock Lollipop rom. But you can try to flash the hybrid boot stack. You will find it in the forum.
[G2 Android Development] kopitaneskita:
[MENTION=5031300]blastagator[/MENTION]

buddy, thank you so so much for the official new version of twrp for our beloved g2.

i'm very grateful!
[G2 Android Development] TheHaso:
Seen you have posted this a few places. What you need to do is to use LG Flash Tool and CMS flash a lollipop firmware (30xy.KDZ)

This will revert to full stock base you need to use Android 7 based ROMs.

Now just root it, TWRP it, install latest TWRP. Install Lineage OS and Pico opengapps.

PS. Don't flash any bootstacks.
[G2 Android Development] Tibiti:
This means you're on Kitkat bootloader. But: it takes as long as it takes...

Do this.

Or look for the Lollipop bootloader and install that. Then reboot recovery, then install CM (I'd rather use AICP anyway) and gapps.

I will stay on 3.0.2 until I read that my ROM has the commit the OP says is needed for OTA to work.
[G2 Android Development] blastagator:
I haven't tested on the JB bootloader, but that [black screen] is the symptom for a failed JB boot. I'll test tonight and rebuild if needed.
[G2 Android Development] Tibiti:
Re:

That's fine, I never used an official version.. :D

TBH, I'm pretty sure v3.0.2 is sufficient for anybody..
[G2 Android Development] dodora3d:
can i flash last version of AICP ? ota ( it's was worked well in 3.0.2.1 ) but i don't know will work with last twrp or what ?
[G2 Android Development] blastagator:
JB bootloader is no go. The dt image didn't build right. Working on it and will repost with new build. Sorry bout that guys :(

edit: Building d800 now to test on my device.

edit 2: Fixed. Compiling new builds now.
[G2 Android Development] Zackptg5:
Nope, drgravy answered that in the aicp thread
[G2 Android Development] blastagator:
March 13, 2017 (3.1.0-1)

Rebuild of 3.1.0-0 (from 2017.03.10) - Add ability to boot with JB bootloader.

Original posts for 3.1.0-0 have been updated. Sorry about that, everybody! Please update if you have the other release. I have tested this release on my device with JB bootloader, and all is good. Apparently I just like version ending in "-1".
[G2 Android Development] Tibiti:
Honestly, did you read the last two pages of that thread? If you had you would've known the answer..
[G2 Android Development] Tibiti:
Not to knock the wind out of your sails but if you'd ask I could have saved you those 5 days and the soft bricks BUT you would not learn jack sh*t that way. All the info is on here at XDA.
[G2 Android Development] blastagator:
Good write-up. Sorry about the non JB compatible release of TWRP.
[G2 Android Development] AfterSiD:
Hello everybody, did someone try to use the ADB backup?

I'm trying to do it but it's not working, my procedure was:

- Download ADB from https://developer.android.com/studio/releases/platform-tools.html#download

- Unpack it

- Open a command prompt with administrative privileges and change directory to the ADB folder

- Enable Debug in the Developer options of my D802 with LineageOS 14.1

- Reboot into TWRP 3.1.0-1

- Execute the command: ADB backup --twrp

After it initialize ADB it says to unlock the device and continue the procedure, but nothing happens on the device.

In the end I gave up and used old way of backup, but I still want to understand where I do wrong.
[G2 Android Development] MarekAG:
I was trying and I can only confirm what you wrote.

Only differences:

- I'm using Resurrection Remix Nougat

- I was doing it on two different ADB versions (bundled with newest Android Studio 2.3 (v.39) and from Ubuntu repos (v.32))
[G2 Android Development] akohle:
Good work, thank you for that.

But in one case, this recovery is not reliable and useless. All your data will be lost.

After wipe, it´s not possible to reboot into recovery. Hard reset via button combo even not possible. (D802 Stock LP)

****
[G2 Android Development] runekock:
Well, I never had such a problem. Can you describe what you did in more details? Are you looking for help, or is it too late now?
[G2 Android Development] Tibiti:
Cough.. it's using cm14.1 (Nougat) sources.. cough.

I. E. Not for you, should have read first.
[G2 Android Development] Dev Dezigns:
sorry if this was asked\mentioned before, I changed the default twrp theme with one of [MENTION=2719389]z31s1g[/MENTION] one's and ended up successfully but the Aroma transparency issue returned, is this related to the theme or to the last twrp update?.
[G2 Android Development] krija:
It's theme related.

https://github.com/blastagator/andr...mmit/f217a73a603c2ec75029e0de5db38fa82cbdb7ba

Unzip your theme and add black_out page to end of main theme file.View attachment 4090878
[G2 Android Development] liott:
Direct-to-PC backup feature (TWRP 3.1.0-1) not working with LG G2

Did someone manage to backup and restore direct-to-PC using ADB with the new feature of TWRP 3.1.0-1 ?

I've flashed blastagator TWRP v3.1.0-1 as my Recovery mode.

As instructed, after rebooting the phone in TWRP, I go to my command prompt and type :

adb backup --twrp

Then I get this message :

But nothing happens on my phone - the TWRP main menu just sits there

I've tried as well, the nice TWRP Backup & Restore Tool from dexbyte. The tool seems to work fine with the basic option for rebooting in recovery, but I get the same result as above, when I want to backup a partition.

EDIT :

Just read this on issue thread (TWRP github) :
[G2 Android Development] blastagator:
Hardware key combo works fine. The bug only effects the reboot button in TWRP.

They're working on it. When they fix it, I will build again. It seems the bug is not the bug they originally thought.
[G2 Android Development] Dev Dezigns:
thank you so much, this can't be more clear :fingers-crossed:
[G2 Android Development] metalboy94:
No, I can confirm the hardware key combo does not work. Both versions (Volume Down or both volume buttons). Scenario: I wipe all storage (including /system), I put some .zip's on the internal memory, I flash the .zip's. After reboot the phone gets stuck at the LG logo with flashing LED, recovery key combo does not work. Last time this happened I fixed it by flashing KDZ, then re-rooting and installing TWRP. I then flashed the same .zip's (I do not remember if I wiped the entire storage or everything except /system) and the phone did not get stuck.

Edit: I see that wiping the internal storage may be the problem. I did not wipe it after returning from the soft brick.
[G2 Android Development] jeebspawnshop:
Yes - if you wipe internal storage, you wipe the TWRP config files. When this happens, it gets stuck on the first boot-to-recovery (dunno why).

But if you just turn off the phone, then do the Power+VolDown power on, then VolUp+VolDown on LG logo, it'll go to the factory reset screen where you just select yes, then yes, then it'll boot TWRP normally.
[G2 Android Development] metalboy94:
And I'm saying I've tried this and it didn't work. Multiple times.
[G2 Android Development] blastagator:
If you never got the factory reset screen, that doesn't have anything to do with TWRP. TWRP doesn't start until after that.
[G2 Android Development] ElfinJNoty:
[MENTION=5031300]blastagator[/MENTION]

I recently repaired my buddies vs980 screen and am trying to get his device running a mm or n build.

I have been fine kdz'ing to stock 39a and rooting. Tried to use AutoRec to install recovery, which worked fine. But the display replacement is a jdi panel, so after a reboot, all sorts of garbled display.

After getting a recovery in place, how can one use the panel fix included in your latest TWRP without being able to see anything in screen ?

I cannot locate an older version of TWRP with any attention to the panel detection.

Would appreciate any pointers or advice. I own a d801 but these vzw models are a whole different animal
[G2 Android Development] blastagator:
The zip runs the panel detection script. Flash the zip version of latest twrp and it should work fine. If it doesn't, let me know. I tweaked the script and can't test since I don't have JDI.
[G2 Android Development] runekock:
I haven't tried it myself, but this article says that you can control twrp using adb from a computer:

http://www.pocketables.com/2014/10/using-twrps-new-adb-interface.html
[G2 Android Development] ElfinJNoty:
Problem is, soon as I vs980-AutoRec a TWRP, upon reboot I am troubled by not being able to see the display due to garbled lines on display, no ability to see buttons of TWRP.

I need some way to control TWRP via adb maybe? In order to initiate flashing your latest, with the included panel detection.

---------- Post added at 11:38 PM ---------- Previous post was at 11:38 PM ----------

Will give this a read
[G2 Android Development] blastagator:
Run the following command on the image:

find ./recovery.img -type f -exec sed -i 's/msm_rtb.filter=0x0 mdss_mdp.panel=1:dsi:0:qcom,mdss_dsi_g2_lgd_cmd/msm_rtb.filter=0x0 mdss_mdp.panel=1:dsi:0:qcom,mdss_dsi_g2_jdi_cmd/g' {} \;

recovery.img being replaced by wherever the file is, of course. This should correct the command line in the file, then flash the file.

edit: Please let me know if that works.
[G2 Android Development] Cyberman5145:
[MENTION=5031300]blastagator[/MENTION]

I am currently running twrp 2.8.6 for my G2 D802 and want to update to twrp 3.1. I have never done this before. Can u walk me through on set by set procedure I should do to get this rolling on twrp 3.1?
[G2 Android Development] runekock:
Actually it is as simple as 1) download, 2) flash from your current TWRP. If you like South Park, add step 3) profit.
[G2 Android Development] Cyberman5145:
So are you suggesting that I flash it just like I flash a rom in TWRP using install option, pls clarify?

---------- Post added at 09:07 AM ---------- Previous post was at 09:07 AM ----------

So are you suggesting that I flash it just like I flash a rom in TWRP using install option, pls clarify?
[G2 Android Development] ST Dog:
Correct. The zip is designed to be installed from you current recovery.
[G2 Android Development] Cyberman5145:
Thanks [MENTION=5320537]ST Dog[/MENTION]. I will try this now and come back in case if any trouble. Cheers to all the support I had from the forum members. I love it
[G2 Android Development] Cyberman5145:
Thanks man. It worked just like charm for me.
[G2 Android Development] lgnd:
I don't know how but I have the official twrp app on my d802 and can't get rid of it. Any advice is much appreciated.

deleted the apk from priv-app folder case closed.

Twrp app back again but how???
[G2 Android Development] fesso:
just put this zip on phone reboot in twrp and install zip... next reboot in recovery should be this one...
[G2 Android Development] myidealcut:
maybe means that twrp app not this recovery

btw, if you are rooted, then you can force uninstall any system app using any app uninstaller that have root
[G2 Android Development] Tibiti:
His issue seems to be that on reboot the presence of that app is checked and restored if not there -> so he might need to find the app being restored, which could be somewhere on the /data partition.
[G2 Android Development] lgnd:
Twrp base.apk was in data/app folder now it's finally gone. Thanks for the help!
[G2 Android Development] freinet:
Hey guys,

some time ago I run into the OTA twrp bootloop. I flash stock kdz and all was fine. Root, install twrp all works. Now I make twrp backup and it gives me an error. Twrp didn't find the misc. Partition.

What's the matter?

freinet

Gesendet von meinem C6903 mit Tapatalk
[G2 Android Development] blastagator:
Can't say I've ever seen that before. What variant?
[G2 Android Development] freinet:
D802. All other things works fine so far.... Only this error.

Gesendet von meinem LG-D802 mit Tapatalk
[G2 Android Development] Tibiti:
Since he uses German language I'd say d802.
[G2 Android Development] blastagator:
Try using dd to backup /misc and then using dd to 0 it out. Report back if that fixes the error. Thanks!