FORUMS

[RECOVERY][3.3.1][UNOFFICIAL] TWRP for LG G3

946 posts
Thanks Meter: 3,108
 
Post Reply Email Thread





Code:
/*
 * Your warranty is now void.
 *
 * I am not responsible for bricked devices, dead SD cards,
 * thermonuclear war, or you getting fired because the alarm app failed. Please
 * do some research if you have any concerns about features included in this ROM
 * before flashing it! YOU are choosing to make these modifications, and if
 * you point the finger at me for messing up your device, I will laugh at you.
 */

TWRP is an open source, community project. TWRP development is done by roughly 4 people at this point.
We also have a large support community with many people who are willing to answer questions
and help people with their devices either through our IRC channel or on forums like xda-developers.
Team Win was originally formed to work on porting WiMAX to CM7 for the HTC EVO 4G.
After our work on the EVO 4G we wanted to work on a project
that would work on more devices than just the EVO 4G and we settled on working on a recovery.
Today TWRP is the leading custom recovery for Android phones.


This is a continuation of @dadi11's project.
  • compiled with latest android-9.0 source, combined TeamWin and omnirom
  • updated and modified device trees
  • support for g3ds variant
  • Nebula Kernel (-Nebula_Rev12.5-Final_MM)
  • AROMA support
  • useful TWRP functions enabled (logd/logcat...)
  • new extensions supported (usb-otg, exfat, ntfs-3g...)
  • parted binary added
  • thermal-engine with config
  • optional red theme
  • backup of /recovery
  • TWRP app removed
  • nano binary


You might want to have your ROM rooted before flashing, just in case something goes wrong.
To install TWRP, you need to be rooted, of course.

first method (best and recommended)
  • boot to recovery
  • click install and select Install Image on the right bottom corner
  • flash latest recovery image

second method
  • place latest recovery image on the internal storage
  • open terminal and type following
Code:
adb shell
su
dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/recovery
dd if=/sdcard/<recovery image name>.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery
exit
exit
adb reboot recovery



If you want to contact me, head for my telegram.
I also really recommend joining telegram: G3 development channel for more information about my projects!
The thread has been designed by me, please don't copy it.


There are always two files, a normal and a -themed one.
If you want red-colored overlay, download the -themed one. Otherwise, you get blue.
MEGA (recommended)
AndroidFileHost
Rooting your phone by Linus Tech Tips
Root: Magisk
3__HacerPermisivo.zip - use this to switch your kernel selinux to permissive
bootimage_adb_unsecure by @AdrianDC - for debugging
Mr_Bump.zip by @dadi11 - flash this when you occur Secure booting error (boot certification verify)


If you want to report an issue, please use the issue tracker providing your variant and the most information you can.


@ppajdek for help with kernel and stuff
@dadi11 for releasing the sources
@sleeplessnerd for decryption
@osm0sis for nano binary
@Eliminater74
@walter79


github.com/omnirom
github.com/minimal-manifest-twrp
github.com/itsHardStyl3r
gitlab.com/HardStyl3r
device and kernel sources

local_manifests
Important: information about open sources from HardStyl3r

XDA:DevDB Information
TeamWin Recovery Project (TWRP) 3.3.1-0 for LG G3, Tool/Utility for the LG G3

Contributors
HardStyl3r

Version Information
Status: Stable

Created 2018-07-07
Last Updated 2020-03-17
The Following 38 Users Say Thank You to HardStyl3r For This Useful Post: [ View ] Gift HardStyl3r Ad-Free
7th July 2018, 07:44 PM |#2  
HardStyl3r's Avatar
OP Senior Member
Flag Łódź
Thanks Meter: 3,108
 
Donate to Me
More

3.3.1, 17.03.2020

G3
Code:
* Updated Nebula Kernel to 12.5-Final version
* New, compressed red theme (by hardStyl3r)
* Encryption highly unrecommended on Android 10 yet!
TWRP
Code:
* otautil: Android.bp libziparchive added
* updater: removed unused variables in installer
* updater: duplicate function definition

* minuitwrp: Include some missing variables related to screen blanking
* language: turkish update
* Fix 'system/etc/ld.config.txt' not found error
* crypto: fde: decrypt master key first
* Fix ORS backup and restore for system-as-root
* crypto: add more missing newlines
* openrecoveryscript: do not skip decryption even if using block.map
* partitionmanager: add /etc to Local_Path
* Move decryption error from logerror to loginfo
* bootable: read all asserts in case there are more than one.
* Prevent errors caused by /data/per_boot/
* crypto: add some missing newlines
* Removing fake error: E: recv error on uevent
* Complete overhaul of Dutch translation:
* recovery: wipe bootloader message from index 0 when using custom offsets
* android-5.1: use char constructor for default on c++ streams
* recovery: Move bldrmsg offset symbols to bootloader_message.cpp
* /sbin should come first in the linker search path.
* Encryption: try wrapped key also for device without metadata support
* ldconfig: add /sbin to search.paths
* cache: Fix typo in twrp-functions.cpp for A/B devices
* Add ld.config.txt for Android 8.x+ trees
* Fix typo in comment
* Update Portuguese (Portugal) translation
3.3.1, 21.06.2019
G3
Code:
* d851: Fix kernel, apply mkbootimg and bump the images
TWRP
Code:
* Fix selinux issues during formatting - dianlujitao
* Various fixes for toybox and toolbox builds - CaptainThrowback and bigbiff
* Flash both A and B partitions when installing a recovery ramdisk - Dees_Troy
* Add option to uninstall TWRP app from /system - Dees_Troy
* Create digest for subpartitions - bigbiff
3.3.0, 17.04.2019
Code:
* Merge AOSP 9.0 r3 (Dees_Troy)
* Use ANDROID_ROOT variable instead of hard coding to /system (CaptainThrowback)
* Decrypt FBE on 9.0 and metadata decrypt (Dees_Troy)
* vold decrypt updates (CaptainThrowback and nijel8)
* Support vibration on LED class devices (notsyncing)
* Metadata decrypt support for Pixel 3 (Dees_Troy)
* Support rotating the display via build flag (vladimiroltean)
* Reboot to EDL mode button (mauronofrio)
* Support MTP on FFS devices (bigbiff)
* Update FDE decrypt to support keymaster 3 and 4 (Dees_Troy)
* Detect mkfs.f2fs version to properly format on f2fs partitions (Dees_Troy)
* Allow TWRP to use md5 and sha256 checksums for zip installs (bigbiff)
* TWRP can use /data/cache/recovery and /persist/cache/recovery on AB devices with no cache partition (bigbiff)
* Switch part of advanced menus in TWRP to use a listbox of options (Dees_Troy)
* Use magiskboot to allow repacking boot images for installing TWRP (Dees_Troy with thanks to topjohnwu of course)
3.2.3-0
G3
Code:
* added nano binary (https://www.nano-editor.org/), thanks to @osm0sis
* complete rebase
* cleaned flags
* fstab update: fix modem backup and restore
TWRP
Code:
* android-9.0 support

* Fix automatic installing of OTA zips on encrypted devices
* Remove SuperSU from TWRP
* Support both md5 and md5sum file extensions when doing MD5 checking for zip files
3.2.2-0
Code:
* adb backup fixes
* OTA style update zips will now install automatically without prompting for decrypt
* minor tweaks to handling date/time on Qualcomm devices
* updates to some language translations
3.2.1-0
Code:
* minui fixes (cryptomilk)
* Better android-8.0 compatibility in ROM trees (Dees_Troy)
* Fix missing library in android-8.0 (nkk71)
* Fix inconsistent SDCard naming (DevUt)
* Default to TWRP restore instead of adb backup restore to fix restore on fresh TWRP boot (jlask)
3.2.0-0
Code:
Allow restoring adb backups in the TWRP GUI (bigbiff)
Fix gzip backup error in adb backups (bigbiff)
Fix a bug in TWRP's backup routines that occasionally corrupted backup files (nkk71)
Better support for installing Android 8.0 based zips due to legacy props (nkk71)
Support vold decrypt with keymaster 3.0 in 8.0 firmwares (nkk71)
Decrypt of synthetic passwords for Pixel 2 (Dees_Troy)
Support newer ext4 FBE policies for backup and restore in libtar (Dees_Troy)
v2 fstab support (Dees_Troy)
Bring TWRP forward to android 8.0 AOSP base (Dees_Troy)
Various other minor bugfixes and tweaks
3.1.1-0
Code:
Backups will now include adopted storage keys (Dees_Troy)
Fixed an adb restore issue (bigbiff)
Fixed rebooting when no OS is present (Dees_Troy)
Fixed line wrapping in the GUI terminal (_that)
Updated TWRP source code to AOSP 7.1.2 (Dees_Troy)Updated TWRP source code to AOSP 7.1.2
3.1.0-0
Code:
vold decrypt on a few select HTC devices, TWRP will now attempt to use the system partition's vold and vdc binaries and libraries to decrypt the data partition (nkk71 and CaptainThrowback)
adb backup to stream a backup directly to or from your PC, see documentation here (bigbiff)
tweak MTP startup routines (mdmower)
support new Android 7.x xattrs for backup and restore to fix loss of data after a restore (Dees_Troy)
support POSIX file capabilities backup and restore to fix VoLTE on HTC devices and possibly other issues (Dees_Troy)
better indicate to users that internal storage is not backed up (Dees_Troy)
improve automatic determination of TW_THEME (mdmower)
minimal getcap and setcap support (_that)
try mounting both ext4 and f2fs during decrypt (jcadduono and Dees_Troy)
shut off backlight with power key (mdmower)
timeout during FDE decrypt (Dees_Troy and nkk71)
support for FBE decrypt and backing up and restoring FBE policies (Dees_Troy)
boot slot support (Dees_Troy)
TWRP app install prompt during reboot (Dees_Troy)
support for AB OTA zips (Dees_Troy)
support new Android 7.x log command (Dees_Troy)
update recovery sources to AOSP 7.1 (Dees_Troy)
numerous bugfixes and improvements by too many people to mention
The Following 13 Users Say Thank You to HardStyl3r For This Useful Post: [ View ] Gift HardStyl3r Ad-Free
7th July 2018, 08:41 PM |#8  
Member
Thanks Meter: 28
 
More
Thank you for keeping things updated

Just a heads up to everyone, LS990 versions are not booting. The following error comes up:

[4540] Fastboot mode started
The Following 3 Users Say Thank You to luciferin For This Useful Post: [ View ] Gift luciferin Ad-Free
7th July 2018, 09:04 PM |#9  
Senior Member
Thanks Meter: 50
 
More
D855 themed version working good till now (made a backup and flashed a kernel)
7th July 2018, 09:25 PM |#10  
HardStyl3r's Avatar
OP Senior Member
Flag Łódź
Thanks Meter: 3,108
 
Donate to Me
More
Quote:
Originally Posted by luciferin

Thank you for keeping things updated

Just a heads up to everyone, LS990 versions are not booting. The following error comes up:

[4540] Fastboot mode started

that's a lot for feedback, I made a mistake while building vs985 and ls990. they were using d855 kernel.
I am building fixed versions and gonna upload them in 10 minutes

//edit done!
The Following 5 Users Say Thank You to HardStyl3r For This Useful Post: [ View ] Gift HardStyl3r Ad-Free
7th July 2018, 09:46 PM |#11  
Member
Thanks Meter: 28
 
More
Quote:
Originally Posted by HardStyl3r

that's a lot for feedback, I made a mistake while building vs985 and ls990. they were using d855 kernel.
I am building fixed versions and gonna upload them in 10 minutes

//edit done!

New upload is working great here! Nicely done, and thank you for the good work.
The Following User Says Thank You to luciferin For This Useful Post: [ View ] Gift luciferin Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes