FORUMS
Remove All Ads from XDA
Honor 9 Lite

[EXPERIMENTAL] [AOSP] [A-only & A/B] [ARM64] Phh-Treble

1,725 posts
Thanks Meter: 1,613
 
Post Reply Email Thread
Hi all,

Here is the thread for my generic AOSP ROM using Treble, as featured here.

WARNING: You'll most probably loose ALL your data, and might break your phone. Please use with extreme caution!

The goal of this ROM is to provide full Treble-compatible hardware support, and nothing else.
This means that hardware which DON'T have Treble API won't be supported, like Essential's external camera.
No feature will be added. This will ease forward porting to new Android versions, which is the very goal of Project Treble

My hope is that other ROM developers will use this ROM as a basis to construct more advanced ROM.
Devices will be marked as supported, unless known otherwise.

Supported devices, with build variant:
- Essential PH-1 -- A/B
- Google Pixel -- A/B
- Google Pixel XL -- A/B
- HTC U11 Plus -- A-only
- Huawei Honor 8 Pro -- A-only
- Huawei Mate 9 -- A-only
- Huawei Mate 10 Pro -- A-only
- Sony Xperia XZ1 -- A-only
- Sony Xperia XZ1 Compact -- A-only

How to flash:
- First, you MUST be running a stock Android 8.0 ROM.
- Obviously, unlock your bootloader
- Download the correct system.img variant (see list of devices above, and dowload links below)
- Flash the system.img
- Do a Factory reset
- Reboot

Changelog
v9: (2018/01/15)
- Include the compositing fixes for Kirin 970
- Crude support for Huawei fingerprint gestures (click = home, left = back, right = voice assistant, up = quick settings, down = notifications, long press = recent apps)

v8: (2018/01/14)
- Huawei compositing fixes (fixes various graphical glitches)
- Various su SELinux fixes

v7: (2017/12/30)
- Fixes various regressions (APNs, A/B, vanilla, fingerprint ...)
- Fixes dev/input requirement (not useful to any real-life product yet, afaik)
- Fixes some not-installable applications from Play Store
- Fixed substratum in phh's superuser

v6: (2017/12/19)
- Major code clean-up. Please report regressions
- Fixes random reboot on Huawei devices
- Optionally includes SU (you need to install phh's SuperUser from F-Droid/Play Store)

v5: (2017/12/14)
- Fixes FDE decryption (SystemUI was crashing in loop)
- Use a real list of APNs
- Include Chrome and Gboard (fixes IME crash when trying to input a symbol)
- Fixes SEPolicy for Hardware Overlay Picker (should fix crash of Hardware Overlay Picker on startup)

v4: (2017/12/10)
- Fixes sdcard in MTP
- Fixes Dual-SIM
- Includes hardware-specific overlays:
- Enable 4G selection in networks
- Bigger status bar on Essential PH-1
- Enable navigation bar on HTC U11+

v3: (2017/12/04)
- Fixes sdcard in MTP build fail, so will be fixed in next release
- New variant including gapps

v2: (2017/11/26)
- Fix wifi tethering
- Fix F2FS userdata
- Fix sdcard
- Fix fingerprint (Huawei)

Download:
v9:
system.img for A/B ARM64 devices with GApps and SU
system.img for A/B ARM64 devices vanilla
system.img for A-only ARM64 devices with GApps and SU
system.img for A-only ARM64 devices vanilla

v8:
system.img for A/B ARM64 devices with GApps and SU
system.img for A/B ARM64 devices vanilla
system.img for A-only ARM64 devices with GApps and SU
system.img for A-only ARM64 devices vanilla

v7:
system.img for A/B ARM64 devices with GApps and SU
system.img for A/B ARM64 devices vanilla
system.img for A-only ARM64 devices with GApps and SU
system.img for A-only ARM64 devices vanilla

Known treble-ready devices, currently unsupported
They'll be probably supported by later builds.
- Google Pixel 2
- Google Pixel 2 XL

I'm currently looking for devices to test on, I only have my daily driver, so I can't develop quite fast on it.
If you've got one you want to donate, or give for cheap, please PM me.

Want to chat about this project? Go to Freenode IRC, #phh-treble.
IRC: irc://irc.freenode.net/#phh-treble
WebIRC: http://webchat.freenode.net/?channel...-treble&uio=d4
Matrix: #freenode_#phh-treble:matrix.org

Other chatrooms:
Telegram https://t.me/phhtreble

Thanks @MishaalRahman and @Exelios for the huge help

PS: Yes the name sucks, but I'm clueless about a name
The Following 141 Users Say Thank You to phhusson For This Useful Post: [ View ] Gift phhusson Ad-Free
 
 
24th November 2017, 05:34 PM |#2  
phhusson's Avatar
OP Senior Member
Flag Paris
Thanks Meter: 1,613
 
Donate to Me
More
How to know if your phone is supported:

- Does your OEM provides a stock Oreo ROM?
No ===> Your phone is not supported
- Run Treble Check on stock Oreo ROM. Does it say Treble is supported?
No ===> Your phone is not supported

If all answers are yes, then your phone MIGHT be supported.
Test it, and report the result!
The Following 41 Users Say Thank You to phhusson For This Useful Post: [ View ] Gift phhusson Ad-Free
24th November 2017, 05:35 PM |#3  
phhusson's Avatar
OP Senior Member
Flag Paris
Thanks Meter: 1,613
 
Donate to Me
More
Build script available at https://github.com/phhusson/treble_e...aster/build.sh

Current status:

Over-all:

Essential PH-1 (Essential's Oreo beta doesn't fully support Treble):
- No mobile connectivity
- No audio

Xperia XZ1:
- Broken camera (because of Sony's DRM)

Huawei Mate 9 Pro and Honor 9:
- Fingerprint sensor should have "home" behaviour
- software keys should be disabled

Known end-user problems (WON'T BE FIXED in this ROM):
- No exfat
The Following 29 Users Say Thank You to phhusson For This Useful Post: [ View ] Gift phhusson Ad-Free
24th November 2017, 05:46 PM |#4  
phhusson's Avatar
OP Senior Member
Flag Paris
Thanks Meter: 1,613
 
Donate to Me
More
Known mess:
- A-only should use https://android-review.googlesource....0status:merged) instead of dm-verity hacks
- the dm-verity work-around is also needed on A/B, so other patches are missing, for some other reason
- On A/B devices, this system.img effectively transforms the device into a userdebug build. This means adb root works!
adb root should work on A-only later too, though it requires that the OEM includes https://android-review.googlesource....+status:merged)
This can probably be worked-around by moving adbd inside a /system/etc/init/xxx.rc
- ADB auth is totally disabled at the moment on A/B, this is bad, but useful for debugging.
- Huawei (for instance Mate 9) doesn't declare android.hardware.fingerprint. This ROM does it for them, but this need to be better implemented
- SuperSU and Magisk screws with SELinux policy. DO NOT USE SuperSU OR Magisk WITH THIS ROM
The Following 26 Users Say Thank You to phhusson For This Useful Post: [ View ] Gift phhusson Ad-Free
24th November 2017, 08:45 PM |#5  
Senior Member
Flag mmcblk0p15
Thanks Meter: 1,012
 
Donate to Me
More
Great work guys, indeed revolutionary work, Congrats
The Following 4 Users Say Thank You to sir mordred For This Useful Post: [ View ] Gift sir mordred Ad-Free
24th November 2017, 08:49 PM |#6  
Senior Member
Thanks Meter: 70
 
More
Can there be support for the LG optimous g pro
24th November 2017, 08:56 PM |#7  
MishaalRahman's Avatar
News Writer
Thanks Meter: 772
 
More
Quote:
Originally Posted by Leone/kyleproxx

Can there be support for the LG optimous g pro

That phone was released in 2013, so it's unlikely.
The Following 4 Users Say Thank You to MishaalRahman For This Useful Post: [ View ] Gift MishaalRahman Ad-Free
24th November 2017, 09:36 PM |#8  
Senior Member
Thanks Meter: 31
 
More
Support for Xiaomi Redmi Note 4 (mido), is it possible?
The Following 3 Users Say Thank You to aser_elhbayeb For This Useful Post: [ View ] Gift aser_elhbayeb Ad-Free
24th November 2017, 09:38 PM |#9  
iykeDROID™'s Avatar
Senior Member
Flag Accra
Thanks Meter: 184
 
More
Following the project.
weldone @phhusson.
24th November 2017, 09:38 PM |#10  
Senior Member
Thanks Meter: 897
 
More
will this rom support oneplus5 later on?
24th November 2017, 09:40 PM |#11  
phhusson's Avatar
OP Senior Member
Flag Paris
Thanks Meter: 1,613
 
Donate to Me
More
Quote:
Originally Posted by jef_00

will this rom support oneplus5 later on?

OnePlus said they won't support Treble, so no.
You can try to complain to them, since all they do is because for good PR.
The Following 9 Users Say Thank You to phhusson For This Useful Post: [ View ] Gift phhusson 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