FORUMS
Remove All Ads from XDA

[Recovery][Unofficial for the moment]TWRP 3.3.0-0 : 2019-04-07

544 posts
Thanks Meter: 637
 
By Phoenix591, Senior Member on 16th December 2017, 05:42 AM
Post Reply Email Thread
Inspired by Backcheck building for the VS995, I've decided to build the latest TWRP for the US996 and now most other V20 variants as well. I'm an amateur, but so far in my own use it seems to be working fine (flashes Open Gapps, Lineage, and Magisk fine, and tested a small backup and restore). That being said, use at your own risk. Any advice and contributions are welcome.


My device tree


Made possible by:
The TWRP team
Jcadduono for the kernel and initial device tree
@askermk2000 for continuing work on stock based kernels
@emdroidle for creating Kdzwriter: a useful tool for flashing all or part of a kdz (stock firmware file) without a pc.

NEWS
I'm working with the TWRP team to make official builds for the V20 family. Right now this newest release is done from their servers, will wait a bit for your feedback on these, and providing no issues, will move forward with going official.



Known Issues
  • Occasionally the battery will incorrectly display 50% usually after rebooting from recovery into recovery
  • Decryption doesn't work on stock based Oreo roms


Please post and let me know anything else!
Changelog
2019-04-07
Not a whole lot, but TWRP officially decided to tag version 3.3.0 along with some small changes, such as being able to check zip integrity using .sha256 sum files in addition to .md5 and .md5sum files
2019-04-01
Updated kernel
Updated kdzwriter to latest version
2018-10-18
Fixed crash on startup (by updating the kernel again)
2018-10-16
Properly updated H990 build
Hopefully fixed F800 build
Minor kernel update for all variants
2018-10-06
Fixed crash/reboot on stock Oreo so that it doesn't take 10 tries to get in (by changing to an oreo kernel), /data decryption still broken.
2018-09-30
Enabled quota features in the kernel to fix stock based oreo
2018-08-17
/vendor partition support, x86cpu and I got it working and setup so that if a split vendor partition exists we'll be able to back it up or flash to it in TWRP, and of course keep /data decryption working. For those without a /vendor partition it will only show up on the twrp mount page.
Adjustments to the time so that it will be correct with Lineage 15.1
Adjustments to scripts to prevent things from getting confused and mounting and unmounting /system repeatedly as has been reported by some.

Provided nothing crazy happens with these builds, this will likely be the revision we go official with.

Older Changelogs

2018-08-05
F800* build
Refactored time script: now the date and time is closish to accurate with a lineage 15.1 rom, there is a lineage bug keeping it from being totally accurate.
Twrp 3.2.3: twrp once again recognizes .md5sum files and not only .md5.
2018-07-17
Fixed encryption in Lineage which 3.2.2-0 broke
2018-07-13
Added LAF/Download mode as a target for flashing images and creating backups, you may replace laf/download mode with a second twrp install if you so choose.
Updated to 3.2.2 , not many changes for us since I was the author of most of the time/date fixes mentioned.
2018-05-05
Adjusted time fix script
Added support for multipartition USB OTG devices such as external hard drives
2018-04-24
Adjusted encryption support script to be more reliable: a bad password would break decryption until restarting the script manually.
2018-04-21
Kdzwriter by @emdroidle is now included: no symlink needed
Adjusted an encryption support service for Oreo compatibility.
These are important enough to merit finally going from 3.2.1-0 to 3.2.1-1.
2018-04-15
Added experimental /data image backup, itl save everything on/data including internal storage but requires a lot of space.
Transitioned from kernel level exfat driver to the twrp bundled fuse based driver to hopefully resolve some backup corruption issues.
Refactored fixdate script to always produce the correct year at the cost of hardcoding the accurate year.
Suddenly had issues rebuilding previous kernel, transitioned to a mk2000 based kernel.
2018-04-06
The date fix script now always checks every six seconds (was running 22 seconds after the last time it had adjusted the date) and fixed an issue where the date may end up as 2017 instead of 2018 (observed in a us996 10o based rom).
Diagnostic script runs for 90 seconds now.
2018-03-24
Stock ROMs date really should be fixed now.
Made date diagnostic script run for 1 minute instead of 30 seconds because I'm adjusting the date later and 30 seconds cuts it close getting /data decrypted to copy the log to internal storage
2018-03-23
Trying harder to fix the date on stock ROMs by having the script run twice
Added diagnostic script that writes a 1Kb file to (Internal Storage)/TWRP/twrp-date.log Help me get the date right on stock ROMs especially H918 users
2018-03-21
Adjusted H918 clock to hopefully be more accurate
Keep the feedback coming
2018-03-20
Fixed date for those on stock ROMs by adding an init script to check and fix the date.
This makes the us996-noadj version redundant since now its all handled in the same build.
Feedback requested
I'd like confirmation the year is correct from those running stock roms
as well as any H918 users of either stock or aosp based ROMs( please specify which)
To do so simply hit advanced then terminal and then type date(enter).
2018-03-16
Full /data decryption now works! Can now decrypt /data when encrypted by Lineage's encrypt phone option as well as stock! (Stock tested 3-19 by flashing the us99610n flashable zip without immediately rooting and selecting the require pin at boot option .)
2018-03-14
Fixed Lineage OTAs (the updater can now properly reboot into twrp apply the update and reboot back into lineage on its own now) by adding misc partition to fstab
Further Upstream TWRP Changes since 3.2.1-0 in these builds

Mar 09, 2018
Dees-Troy
Don't rename twrp.fstab to recovery.fstab
committed by Dees-Troy ⋅ 53273ecc
Mar 08, 2018
invisiblek
install: ignore build dates for A/B installs
committed by invisiblek ⋅ e7b66e10
Dees-Troy
FBE: Decrypt spblob v2 (February security patch)
committed by Dees-Troy ⋅ c5dd5791
Feb 26, 2018
FatihFIRINCI
Languages: Update Turkish translation.
committed by FatihFIRINCI ⋅ 90765a20

2018-02-13
Fixed US996 no offset build to actually have no offset
2018-02-08
Initial H990 build
Added second US996 build with no offset (if the date comes back as 1972 on the other build use this one)
2018-02-06
Made clock offset configurable per model (changed TWRP patch)
Fixed screen offset (at some point I added the kernel second screen fix but left the twrp level fix active too)
2018-02-04
Fixed the clock to actually have the correct time most of the time (two patches I created applied to twrp itself, see my device tree for source)
Upstream TWRP Changes since 3.2.1-0
Merge "Add Portuguese (Portugal) translation." into android-8.1

bigbiff authored and Gerrit Code Review committed 10 days ago

Commits on Jan 23, 2018
Add Portuguese (Portugal) translation. …

ElTifo committed 18 days ago

Commits on Jan 18, 2018
Merge "Fix typo in Micro SD to have a consistency" into android-8.1

bigbiff authored and Gerrit Code Review committed 16 days ago

Merge "Added missing translation in Turkish translation" into android… …

bigbiff authored and Gerrit Code Review committed 16 days ago

Merge "There are a few typos and bugs in the French translation, for … …

bigbiff authored and Gerrit Code Review committed 16 days ago

Merge "Typo / Uppercase-Lowercase in German translation compared to a… …

bigbiff authored and Gerrit Code Review committed 16 days ago

Merge "Typo and bug fixing in Dutch(NL) translation, for example wher… …

bigbiff authored and Gerrit Code Review committed 16 days ago

Merge "Fix minor inconsistency in Czech translation" into android-8.1

bigbiff authored and Gerrit Code Review committed 16 days ago

Merge "Added missing translation(s) in Portuguese(BR)" into android-8.1

bigbiff authored and Gerrit Code Review committed 16 days ago

Merge "Added missing translations in Swedish language file" into andr… …

bigbiff authored and Gerrit Code Review committed 16 days ago

Merge "Added 2 translations in Italian language file" into android-8.1

bigbiff authored and Gerrit Code Review committed 16 days ago

Merge "There's a missing translaton in the Greek language file." into… …

bigbiff authored and Gerrit Code Review committed 16 days ago

Commits on Jan 17, 2018
Use /persist as Qualcomm time fix source during early boot …

nkk71 authored and Dees-Troy committed on Dec 16, 2017

Commits on Jan 16, 2018
Merge "Relink adbd needed in android 8.1" into android-8.1

bigbiff authored and Gerrit Code Review committed 18 days ago

Commits on Jan 4, 2018
Use libdrm_platform for minuitwrp in 8.x trees …

Dees-Troy committed on Jan 4

Add spblob decrypt for secdis method (Pixel 1 non-weaver) …

Dees-Troy committed on Dec 15, 2017

Commits on Dec 21, 2017
Fix typo in Micro SD to have a consistency …

pr030880 committed on Dec 21, 2017

Typo and bug fixing in Dutch(NL) translation, for example where a tra… …

pr030880 committed on Dec 20, 2017

Added missing translation in Turkish translation …

pr030880 committed on Dec 21, 2017

Fix minor inconsistency in Czech translation …

pr030880 committed on Dec 21, 2017

Added 2 translations in Italian language file …

pr030880 committed on Dec 21, 2017

Added missing translations in Swedish language file …

pr030880 committed on Dec 21, 2017

Added missing translation(s) in Portuguese(BR) …

pr030880 committed on Dec 21, 2017

Typo / Uppercase-Lowercase in German translation compared to all othe… …

pr030880 committed on Dec 21, 2017

Commits on Dec 20, 2017
There are a few typos and bugs in the French translation, for example… …

pr030880 committed on Dec 20, 2017

Commits on Dec 19, 2017
Relink adbd needed in android 8.1 …

nkk71 committed on Dec 19, 2017

There's a missing translaton in the Greek language file. …

pr030880 committed on Dec 19, 2017

Commits on Dec 15, 2017
Merge up to android-8.1.0_r1 and fix conflicts …

Dees-Troy committed on Dec 14, 2017

Commits on Dec 12, 2017
Fix build error in AOSP 8.1.0 r1 tree …

Dees-Troy committed on Dec 12, 2017

Fix [email protected] rule for various 8.0 trees …

Dees-Troy committed on Dec 12, 2017



If the clock and/or date (check by going to advanced->terminal then typing date(enter)) is wrong, first try rebooting to normal Android for a while, then if its still wrong after rebooting into recovery let me know your model, and the time/date it claims to be and the correct time (or just the difference)

Download
TWRP-3.3.0-0: 2019-04-07
(Is linking just the folder alright for ya'll? If enough people say something I'll go back to direct links to each device, but copy and pasting individual links for each device gets to be kind of a drag)

Optional: DO NOT USE THIS OPTIONAL ENCRYPTING ZIP WITH LINEAGEOS
Since Magisk and supersu disable mandetory encryption by default unless installed with an already encrypted /data and stock and stock based roms have no ui option to encrypt, I've created a flashable zip encrypt-v2.zip (uses the anykernel template by osm0sis ) that makes encrypts /data without data loss. Requires a charged battery (if the power is cut during encryption you could lose all data!) and it checks if you're using one of my twrp builds since afaik none of the others work with encryption.
Stock users it will stay on the LG boot animation while encrypting! Do not even think about pulling the battery unless you didnt want your data anyway.
DO NOT USE THIS OPTIONAL ENCRYPTING ZIP WITH LINEAGEOS, it has it's own option to encryption in settings under security.


Old versions

3.2.3-5: 2019-04-01
F800
H910
H918
H990
LS997
US996
VS995

3.2.3-4: 2018-10-18
F800
H910
H918
H990
LS997
US996
VS995

3.2.3-3 and 3.2.3-2 not listed due to being particularly broken

3.2.3-1 : 2018-09-30
F800
H910
H918
H990
LS997
US996
VS995

3.2.3-0 : 2018-08-17
The links for this version will soon point to the latest version with the new changes but these will be labeled 3.2.3-0 and yet have all the new changes.
F800
H910
H918
H990
LS997
US996
VS995

3.2.3-0 : 2018-08-05
F800
H910
H918
H990
LS997
US996
VS995


3.2.2-1 : 2018-07-17
H910
H918
H990
LS997
US996
VS995

3.2.1-3 : 2018-05-05
H910
H918
H990
LS997
US996
VS995


3.2.1-2 2018-04-24
H910
H918
H990
LS997
US996
VS995


3.2.1-1 2018-04-21
H910
H918
H990
LS997
US996
VS995

3.2.1-0 2018-04-15
H910
H918
H990
LS997
US996
VS995

3.2.1-0 2018-04-06
H910
H918
H990
LS997
US996
VS995

3.2.1-0 2018-03-24
H910
H918
H990
LS997
US996
VS995

3.2.1-0 2018-03-23
H910
H918
H990
LS997
US996
VS995

3.2.1-0 2018-03-21
H918
(Only the H918 changed)

3.2.1-0 2018-03-20
US996
H910
H990
LS997
VS995
H918

3.2.1-0 2018-03-16
US996 (if date shows as 1972 use US996-noadj )
H910
H918
H990
LS997
VS995

3.2.1-0 2018-03-14
US996 and if the date shows as 1972 use US996-noadj
H910
H918
H990
LS997
VS995

3.2.1-0 02-06-18
US996 If the date comes back as 1972, use this build instead
LS997
H910
H918 if clock is incorrect on H918, try this build
VS995
H990


3.2.1-0 02-04-18
LS997
H910
H918
VS995
US996

3.2.1-0 for the US996
The Following 77 Users Say Thank You to Phoenix591 For This Useful Post: [ View ] Gift Phoenix591 Ad-Free
 
 
5th February 2018, 07:24 PM |#2  
XblackdemonX's Avatar
Senior Member
Flag Montreal
Thanks Meter: 506
 
Donate to Me
More
H910 version boots fine and looks fine! Thank you very much!
The Following User Says Thank You to XblackdemonX For This Useful Post: [ View ] Gift XblackdemonX Ad-Free
6th February 2018, 12:53 AM |#3  
Senior Member
Thanks Meter: 55
 
More
918 version seems fine.
6th February 2018, 02:37 AM |#4  
OP Senior Member
Thanks Meter: 637
 
More
Quote:
Originally Posted by Gadianton

918 version seems fine.

Just uploaded a new version that fixes the little offset on the top of the screen. Also curious if the date is correct on the H918 too, if you don't mind going to advanced->terminal and typing date (enter). One quirk is that when I first got the clock working it thought it was 2064, so I set it to rewind the clock 46 years exactly and am wondering if that's the same with all models.
The Following User Says Thank You to Phoenix591 For This Useful Post: [ View ] Gift Phoenix591 Ad-Free
6th February 2018, 02:44 AM |#5  
Senior Member
Thanks Meter: 55
 
More
Quote:
Originally Posted by Phoenix591

Just uploaded a new version that fixes the little offset on the top of the screen. Also curious if the date is correct on the H918 too, if you don't mind going to advanced->terminal and typing date (enter). One quirk is that when I first got the clock working it thought it was 2064, so I set it to rewind the clock 46 years exactly and am wondering if that's the same with all models.

Date comes back as Sat Jan 2 2016
6th February 2018, 02:53 AM |#6  
OP Senior Member
Thanks Meter: 637
 
More
Quote:
Originally Posted by Gadianton

Date comes back as Sat Jan 2 2016

Is that going from powered off into twrp, or rebooting into it from Android? If not from Android, mind doing so (after running normally for a few minutes it seems to adjust the clock in recovery)? Lastly is the time itself correct? Going to use this info to adjust the clock per model I suppose.
The Following User Says Thank You to Phoenix591 For This Useful Post: [ View ] Gift Phoenix591 Ad-Free
6th February 2018, 03:34 AM |#7  
Senior Member
Thanks Meter: 55
 
More
Quote:
Originally Posted by Phoenix591

Just uploaded a new version that fixes the little offset on the top of the screen. Also curious if the date is correct on the H918 too, if you don't mind going to advanced->terminal and typing date (enter). One quirk is that when I first got the clock working it thought it was 2064, so I set it to rewind the clock 46 years exactly and am wondering if that's the same with all models.

Quote:
Originally Posted by Phoenix591

Is that going from powered off into twrp, or rebooting into it from Android? If not from Android, mind doing so (after running normally for a few minutes it seems to adjust the clock in recovery)? Lastly is the time itself correct? Going to use this info to adjust the clock per model I suppose.

Ok I tried it from Android and the clock said Sun Jan 3 00:33:14 GMT. I think the actual time was 3:33:14 GMT.
6th February 2018, 03:46 AM |#8  
OP Senior Member
Thanks Meter: 637
 
More
Quote:
Originally Posted by Gadianton

Ok I tried it from Android and the clock said Sun Jan 3 00:33:14 GMT. I think the actual time was 3:33:14 GMT.

H918 Time fix If I did the math properly that should do it.

I didn't math properly (my brain is still on year 2017) so this should
6th February 2018, 07:34 PM |#9  
will5's Avatar
Senior Member
Thanks Meter: 329
 
More
Do you think you can build one for h990ds or one from that list is compatible with that model?

Thanks
7th February 2018, 03:42 PM |#10  
Senior Member
Flag Key West
Thanks Meter: 48
 
More
The H918 TWRP works very well. I have used it for two days now.

The date and time needs some tweaking. The time is ahead by 3 hours. The year is ahead by two (2020). The month is ahead by one (March). The day is ahead by 4 (11).

Thanks for creating the 3.2.1-0 version.
8th February 2018, 01:31 AM |#11  
Member
Thanks Meter: 45
 
More
Running 2018-02-06 for the US996 (Unlocked) results in the following,

Expected Date/Time:
Wed Feb 7 17:20:43 PST 2018

TWRP Date/Time:
Tue Feb 8 17:20:43 PST 1972

The time is spot on, but the date is off. This is the same behavior booting into TWRP from System as well as booting directly into TWRP with the key combination. Phone has been running for ~18 hours before rebooting into TWRP and checking the date.

There were also 'errors' when running 'date' from TWRP if they mean anything to the situation,


Code:
~ # date
__bionic_open_tzdata: couldn't find any tzdata when looking for PST8PDT,M3.2.0,M11.1.0!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
Tue Feb 8 17:20:43 PST 1972
~ #
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