[AOSP 10.0] [2019-12-06] Quack Phh-Treble

Search This thread

aljoscha81

Senior Member
Apr 23, 2016
1,339
105
it is crazy cause of everything is working so far and you know i share the .zip but can't find it anymore ;)
 

...Saurav

Member
Jan 10, 2017
49
7
Can I flash this , just need fraction of assurance from your side . My device is Realme 7 ( RMX2151 ) , Support A/B system and have a vendor from Android 10. I'm asking because I'm fade up with this RealmeUI , poor ram management and so heavy full of bloatware .

Need help somewhat new to this gsi world , previously used specific resurrection remix ROM on my previous redmi note 3 phone.
 
D

Deleted member 11464323

Guest
Can I flash this , just need fraction of assurance from your side . My device is Realme 7 ( RMX2151 ) , Support A/B system and have a vendor from Android 10. I'm asking because I'm fade up with this RealmeUI , poor ram management and so heavy full of bloatware .

Need help somewhat new to this gsi world , previously used specific resurrection remix ROM on my previous redmi note 3 phone.

As mentionned in Op thread post :
1/ check if your mobile is treble compatible.
2/ check your architecture (arm64, 32 ...) A or A/B.

If you're are treble compatible and phhusson provide an image fo your achitecture, there is no reason to not be able to flash it.

But to be sure to have a wayback :

1/ Download your stock rom image on you Pc if something wrong happen then you can restore
2/ maybe check if you have twrp for your mobile (look on xda) this is not a must have but in my case i need it my stock recovery do not allow me to wipe data and made bootloop
3/ Make a backup of your data.
 

...Saurav

Member
Jan 10, 2017
49
7
As mentionned in Op thread post :
1/ check if your mobile is treble compatible.
2/ check your architecture (arm64, 32 ...) A or A/B.

If you're are treble compatible and phhusson provide an image fo your achitecture, there is no reason to not be able to flash it.

But to be sure to have a wayback :

1/ Download your stock rom image on you Pc if something wrong happen then you can restore
2/ maybe check if you have twrp for your mobile (look on xda) this is not a must have but in my case i need it my stock recovery do not allow me to wipe data and made bootloop
3/ Make a backup of your data.
Thanks for the detail , I'M already half a way , Realme 7 community already provided PitchBlackRecovery , no TWRP as of now , the only doubt I left with the gsi flashing guides are little shady here & there . Regards
 

nook'r

Senior Member
Dec 8, 2010
173
38
Which vendor to use?
1. Always use your actual device's vendor
2. Always use OEM unmodified vendor, not some custom vendor
3. This includes boot.img. boot.img and vendor MUST BE the same version.
4. If you're on an Android 8.0 vendor, you'll need to stick to vendors with Security Patch Level before April 2019 (that's a bug of my GSI)
Hi phhusson,
I was able to install v123 (Aug2019, android 9.0) on Huawei Mate SE, If I try to install anything v200+ I receive either hardware (only 1 ROM with Android 10 gave that error) or the system never boots.

My question: Any progress on #4?
Thank you for your work.
 

...Saurav

Member
Jan 10, 2017
49
7

Attachments

  • Screenshot_20210227-154001.png
    Screenshot_20210227-154001.png
    168.8 KB · Views: 47
  • Screenshot_20210227-172103.png
    Screenshot_20210227-172103.png
    566.6 KB · Views: 47
  • Screenshot_20210227-172113.png
    Screenshot_20210227-172113.png
    236.1 KB · Views: 48

landsome

Senior Member
May 4, 2015
550
141
@phhusson , I have updated my DeviceInfo (kDI) app on F-Droid with Treble specifics:
- ro.treble.enabled
- ro.product.cpu.abi
- ro.vndk.version
- binder v7/8 detection
- ld.config/[vendor]namespace.default.isolated
...plus all possible characteristics including /Vendor sepolicy, ro.product.first_api_level or ro.build.ab_update

Treble compliance: https://developer.android.com/topic/generic-system-image#device-compliance
Dynamic partition fastbootd : https://developer.android.com/codelabs/using-android-q-gsi?hl=de#3

kDI: (350kB) https://forum.xda-developers.com/t/...reble-a-b-device-infos-all-ids-specs.3849908/



For the record, I confirm building fine, with your treble android11 repo, following LineageOS native /product Apps: Calendar(Etar), Terminal, ExactCalculator, Music(Eleven), Browser(Jelly).

I will upload all-in-one microG in Feb. with embedded Playstore and GoogleSync_Contacts/Calendar plus few others tweaks.
Deleted
 
Last edited:

oF2pks

Senior Member
May 22, 2016
815
1,115
@phhusson on your Treble system11 rooted gsi, I have @topjohnwu 's https://github.com/topjohnwu/libsu#root-services broken due to avc: denied { call } for scontext=u:r:untrusted_app:s0... tcontext=u:r:phhsu_daemon:s0 tclass=binder permissive=0 app=com.oF2pks.adbungfu (RootServices do work well with AStudio AVD magiskified android11).

Is this expected SELinux behavior? RootServices work back fine if allow untrusted_app_all phhsu_daemon:binder { call transfer }; added to device/phh/treble/sepolicy/su.te.


btw, while testing my rooted ADBungFu adb shell, I also noticed on-device interpreted rooted #su: cmd phone was failing on your Treble gsi with similar SELinux avc: denied { call } for scontext=u:r:radio:s0 tcontext=u:r:phhsu_daemon:s0 tclass=binder permissive=0
 
My device (Redmi 8A - 'olivelite') is ARM 32-bit with 64-bit binder, A-only.
What image file should I use?
I find no "arm32_binder64-aonly" file on the releases page

EDIT
I am a little bit confused. The treble info app confirms my device does not support seamless upgrades, but it claims I should use A/B OS since my device supports System as Root. Isn't A/B related to seamless upgrades?
 
Last edited:

eremitein

Senior Member
May 16, 2017
1,186
1,520
Xiaomi Mi A2 Lite
Thanks.
I did use it, but I still found it a little bit confusing...
If it mentions no "VNDKlite", just "using VNDK version 29.0", Does it mean I should ignore the vndklite builds?
vndklite builds also can be use on non-lite vendors, no problems here
also vndklite (of some GSI) can be mounted as RW, non-lite can't. and some devices have works camera only with lite builds, so i recommend use that one
 
  • Like
Reactions: Avraham Tsaban

Top Liked Posts

  • There are no posts matching your filters.
  • 195
    Hi all,

    Here is the thread about Phh-Treble for Android 10.0, codename Quack.

    The goal of Phh-Treble for Android 10.0 is the same as for Android 8.0, 8.1, and 9.0: Bring latest AOSP to the maximum number of devices running Google-certified Treble[1], with full hardware support.

    You can download latest release at https://github.com/phhusson/treble_experimentations/releases

    Which variant do I pick
    To know which variant to download, use https://play.google.com/store/apps/details?id=tk.hack5.treblecheck . Don't use other Treble Check apps, they'll give erronous informations.
    And then, you're free to choose between vanilla and gapps variant.

    What works?
    On some devices, everything. They are still not the majority though.

    What you can expect on the majority of devices?
    It should boot successfully on pretty much all devices with Google-certified Treble. [1]
    Most features should work on the majority of devices out-of-the-box: RIL, WiFi, brightness control, buttons, gestures, ...
    However, many devices still have issues with hardware video decoding and camera.

    Is device XXX supported?
    If it's a Google-certified Treble, yes it is. Unlike Google's GSI, Treble devices supported, there is no exception.
    There might be bugs of course, but if you help me, I'll fix them!

    Which vendor to use?
    1. Always use your actual device's vendor
    2. Always use OEM unmodified vendor, not some custom vendor
    3. This includes boot.img. boot.img and vendor MUST BE the same version.
    4. If you're on an Android 8.0 vendor, you'll need to stick to vendors with Security Patch Level before April 2019 (that's a bug of my GSI)

    Enjoy!

    [1] How do I know my device is Google-certified Treble?
    Well it's easy, if your device has first been released with Oreo or more recent, and it has google apps, it has a Google-certified Treble.
    Please note that this means only the vendor provided by the OEM is certified, not the one from device-specific ROM.
    11
    do you plan on doing it?
    Yes, though I've been planning it for more than a year.
    7
    Just flashed v211. What is this green dot on the lockscreen for? If I push it the screen dims and the green dot becomes brighter.
    Right, that's a fail from me, that will be fixed in next release.
    That's intended for devices with optical under-display fingerprint.
    I'm respinning a v212 to fix that.
    7
    Well not working on V40 with LOS 17 android 10 base... haven't tried with Stock LG Pie base tho....
    Use stock vendor. It is very likely lineage breaks Treble compatibility.

    works fine on sony xperia 10 dual sim + android 10 software binaries
    Thanks for the report.
    Could you update https://github.com/phhusson/treble_experimentations/wiki/ and create a page for your device mentioning your tests?

    - adaptive brightness doesnt work, i can change brightness....but the automatic change isnt there....someone get what i mean?
    - battery stats....there is no app data....only the graph
    Those are fairly easy to fix, you just need an overlay, based on infos from stock rom.
    There is a guide there https://github.com/phhusson/treble_experimentations/wiki/How-to-create-an-overlay? or a quite automatic script there: https://github.com/phhusson/treble_experimentations/blob/master/overlay/generate.sh though I recommend you join @PHHtreble telegram group so I can help you create it.

    ps i would love to continue seeing AOSP+su-nogapps :fingers-crossed:
    I definitely don't plan on obsoleting it. Though i'm interested, may I ask why you're using this one?

    ps.: changelog said october security update? in options still september written?
    Yup my bad, that's indeed still september.
    Hopefully next should be proper november.

    Its working perfectly. but it would be awesome if the fix was built in
    Well the zip itself is closed-source, I can't integrate it without its sources