yashsingh1/xdaforums huggingface dataset:
[Treble-Enabled Device Development A/AB ROMS] eremitein:
crDroid 7.16

Your warranty is now void!

We're 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 us for messing up your device, we will laugh at you
​

crDRom 11 is a project which based on crDroid 7.x with @AndyYan's and @phhusson's Treble GSI patches. Built with some Andy's patches & recommendations, also even without "ALLOW_MISSING_DEPENDENCIES=true" flag. And system can run with SELinux enforced state, as original Phh AOSP GSI. Fully compatible with PHH-Treble patches. Has dynamic root which can be activated/deactivated without reboot - 'su' binary and SuperUser app (can works on all devices even with system read-only). Also has dynamic SafetyNet helper (but it compatible not with all devices), users have four ways to pass SafetyNet: a. just enable SafetyNet option (recommended) b. disable SafetyNet and enable "Spoof Pixel 5" then reboot c. enable both options and reboot d. mount system as RW and create empty file /system/phh/secure (legacy method) and in the Recovery do Wipe Data

UPDATE VERSION

base: crDroid 7.16

latest build: 2022.03.30

treble patches: v316

SPL: 5 Mar 2022

FEATURES/CHANGES

see Project page changelog

DOWNLOAD (CLICK H3RE)

vanilla, gapps, go-gapps: all possible architectures

NAMING

Some information you should know about knowing what type of gsi it is

<ARCH>_xyZ

<ARCH> can either be arm, a64 (arm32_binder64) or arm64

x can either be a or b

y can either be v, o, g or f

Z can be N or S

b = a/b

a = a-only

g = gapps

o = gapps-go

v = vanilla (no gapps included)

f = floss (free & open source apps instead gapps)

N = no superuser

S = superuser included

Z = dynamic superuser included

-lite = for VNDK Lite vendors (also can help with broken camera even on normal VNDK vendors)

so in most common example "arm64_avZ" is ARM64 A-only vanilla with dynamic superuser

CONTACTS

> telegram group

> project page

KN0WN BUGS

• excluding fixes, the same as on all R GSI (in some cases doesn't work: broadcasting on TV, calls via BT; offline charging does not work normally; problems with GPS etc etc)

NOTE: always test ROM first without Magisk (with clean boot.img). and don't send me bug reports if you have:

a) Magisk installed

b) modified/custom vendor or kernel

c) dirty flashing rom without wiping data

d) modified props values (another device fingerprint and so on)

CREDITS

persons: @phhusson, @AndyYan

projects: TrebleGSI • BlissROMs • LineageOS • Havoc-OS • PixelExperience • ABC Rom • GrapheneOS • SyberiaOS • ProtonAOSP
[Treble-Enabled Device Development A/AB ROMS] xdagee:
Great stuffs - glad to see these threads coming out. Good - crDroid 7.5
[Treble-Enabled Device Development A/AB ROMS] GroovyG:
Quite simply the best ROM ever. Lean, fast, no bugs, customizable to the last item.

I might hit 35h SOT on the BV9100 with this, the WP6 is heading for 25h :ROFLMAO:
[Treble-Enabled Device Development A/AB ROMS] zyhk:
Thanks for a very battery friendly ROM. Standby battery drain is about 1% during 4 hours (in deep sleep 96%) on my device (a half of the drain of Bless 12.12 on the same device).
[Treble-Enabled Device Development A/AB ROMS] retora:
Great rom, thank you. Unfortunately wired headphone (3.5mm jack) does not work on my SD660 device.
[Treble-Enabled Device Development A/AB ROMS] eremitein:
Phh settings > Misc > Disable audio effects

or Force enable headphone jack
[Treble-Enabled Device Development A/AB ROMS] pryggi:
Hi, thanks a lot for the rom. Works fine on Poco X3 Pro. So far have noticed only some small cosmetic issues, like charging info on the lockscreen seems incorrect, although it charges fast, under 2h to full. Widevine is reported as L3 in Netflix, thus only SD playback is available. View attachment 5301523
[Treble-Enabled Device Development A/AB ROMS] eremitein:
crDRom R 2021.05.13

download /// changelog
[Treble-Enabled Device Development A/AB ROMS] eremitein:
for Netflix try to find "ro.netflix.bsp_rev" from your stock rom and add this prop to gsi
[Treble-Enabled Device Development A/AB ROMS] UpperCenter:
Hey, thanks for this release! I have been using crDroid 6 on Redmi Note 9 (Merlin) with very few issues. I updated today, but I am getting low fps and small stuttering in the UI. Is there any settings I can check to fix this?

Thanks

Edit: I have tried arm64-bgZ and arm64-bvZ-lite with no change.
[Treble-Enabled Device Development A/AB ROMS] eremitein:
hi, yes i guess you need check option Display > Blur (should be disabled) and also try to add in the /system/build.prop new line "debug.sf.latch_unsignaled=1"

say me, which treble base (kernel & vendor) used and if suggestions helped you
[Treble-Enabled Device Development A/AB ROMS] UpperCenter:
Thanks for your comments, do I need to be root for this? How can I find which treble base I am using?

Edit: I added the line to /system/build.prop, it didn't seem to improve performance. Blur is also disabled.
[Treble-Enabled Device Development A/AB ROMS] eremitein:
crDRom R 2021.05.21

download /// changelog
[Treble-Enabled Device Development A/AB ROMS] Hater4life:
So have a galaxy A705mn and can't mso e or receive phone calls ,is there any way possible for me to rectify this ?
[Treble-Enabled Device Development A/AB ROMS] guest210:
Hi, tell me how to set up a call recording, I can't hear the interlocutor,
[Treble-Enabled Device Development A/AB ROMS] eremitein:
call recording in vanilla Dialer can rec only from microphone, so you need set volume higher or even enable loud speaker
[Treble-Enabled Device Development A/AB ROMS] MIORT:
fast，easy and good gsi rom
[Treble-Enabled Device Development A/AB ROMS] retora:
The best! :)
[Treble-Enabled Device Development A/AB ROMS] Bazito:
Hi, what does it look like? Will your work continue?
[Treble-Enabled Device Development A/AB ROMS] eremitein:
crDRom R 2021.09.21

download /// changelog
[Treble-Enabled Device Development A/AB ROMS] ariadnejro:
Thank you so much for upgrading your crDRom build, it's working like a charm in my Alldocube X Neo.
[Treble-Enabled Device Development A/AB ROMS] sinkoo1979:
Thank you for the crdroid. Working fantastic on my v30+. Using with microg
[Treble-Enabled Device Development A/AB ROMS] nickelnine:
Thanks for the fantastic ROM.
[Treble-Enabled Device Development A/AB ROMS] nickelnine:
I'm noticing my incoming text messages are delayed or not arriving at all. Is anyone else noticing that? Is there something else that I can flash to fix delayed receiving text messages?

EDIT: Fixed it by fiddling with phh IMS settings.
[Treble-Enabled Device Development A/AB ROMS] CosmicDan:
Awesome ROM and very fluid. Nice to see a feature-rich GSI that's kept up to date, thanks!

Sadly, I cannot get Magisk working on my Pixel 3 XL. No matter what method, flashing a patched boot.img (or installing in TWRP) - with an insecure vbmeta - results in being kicked to bootloader. Flashing back stock boot.img solves it immediately.

- Tried both regular and vndk-lite

- Tried a fresh flash from factory images, multiple times - I am 99.9% sure I did everything right.

Note that this is a "super.img" device - i.e. dynamic partitions - and I read somewhere that in this case, system can never be mounted r/w. Is this true? Maybe this is causing issues if so.

It may be a conflict with "dynamic root" so I will try a few other GSI's to see if they work. Will also try downgrading factory firmware to rule that out, since I knew it was working back when I tried GSI's a few months back.

EDIT: Aside; hopefully the new Magisk with selective root will be more compatible. I wish Magisk would just remove root entire tbh, the dynamic root in this ROM is fantastic - I dont need root all the time and am tired of the Safetynet arms race :p
[Treble-Enabled Device Development A/AB ROMS] eremitein:
thanks for feedback, welcome

for magisk issue i guess you need follow that https://xdaforums.com/t/tutorial-ma...with-dynamic-partition.4311045/#post-85390677
[Treble-Enabled Device Development A/AB ROMS] zyhk:
Thanks for updating. I found that "dumpsys media.aduio_{policy,flinger} issue I mentioned in the Caos R thread was fixed. My root script "USB SampleRate Changer (on the fly)" now can be executed by SuperUer as well as Magisk root.

If you like, try "extras/jitter-reducer.sh" in its ZIP file to enjoy hifi music streaming services.

Edit: "dumpsys media.aduio_{policy,flinger}" has not been fixed for MTK Oreo 8.1 vendor. Probably other devices are ok.
[Treble-Enabled Device Development A/AB ROMS] CosmicDan:
Indeed, I made the mistake of deleting product. Instead you can just resize it to something tiny (I did 512KB) and then format it as ext4.

Also I found out that Elemental X works whereas another custom kernel for this device doesn't, but only with some GSI's. No matter, that's a problem with this kernel.

Thanks for the ROM's and continued updates!
[Treble-Enabled Device Development A/AB ROMS] CosmicDan:
So I had an issue of SMS not working in the gapps variant; I saw your post in CAOS or LIR thread suggestiong to use vanilla + gapps. Indeed, SMS now works. On your Gapps ROM I had to force 3G mode to get SMS working so I thought it required RCS. But now with chat features disabled + manual gapps, I can send and receive texts fine while on LTE(+), without chat features enabled.

Chat features cannot verify on this ROM still, I am not sure why - but it's a fickle thing and Google themselves admit issues still so I don't mind. But FWIW, I can get RCS verified and connected on sooti's GSI - somehow his ROM was even more reliable with RCS than stock Pixel ROM; so I am thinking this is probably an operator/Google issue at least partly.

Anyway, yeah - it would be great if you could figure out whats wrong with the Gapps version because it takes manual work to enlarge system + boot a semi-working TWRP + flash NikGapps package with config set to force /system install. Also, I cannot restore from google cloud backup because the crDroid option links to a missing activity now; I believe its part of a customized Google Setup Wizard in crDroid.

If you can't figure it out though, no worries - just a heads up for users might be nice! Every user should be aware that Gapps on any custom 11+ ROM is a bit fickle, GSI's are no exception.
[Treble-Enabled Device Development A/AB ROMS] lfom:
Hey, @eremitein !

Thank you a lot for your builds. I've learned about your Treble build on another thread by -Alf-, and I was able to install both latest LiR and crDroid (after some tweaking) on a Huawei P Smart 2018 (FIG-LX1 C432).

I recently unlocked its bootloader and updated it to the latest supported stock version of EMUI9 (9.1.0.216). The problem is that it has a small system partition, only about 2.4GB. Looking around, I've found that that most GSI ROMs have multiple versions of the vndk files, so I manually deleted the ones the phone does not need (it uses vndk28 only) and then I could install and boot normally.

I installed LiR first, but because I plan to use MicroG only and it does not support Signature Spoofing, I move to crDroid. I was the best experience out of box: I could enable NFC using Alf's patch (I installed the files manually, but I was not able to fully test if it actually works so far) and even the fingerprint gesture to show the notification shade worked while all other Treble based ROMs didn't.

There are a few small bugs, if I can help fixing them, please tell me how:

No call or notification sounds: UI sounds work, like touch and camera sounds, but nothing else. Stock sound picker shows only None always. Copying a backup I had to the internal storage worked (Alarm/Notifications/Ringtone folders). I can see the files in the system folder /system/product/media/audio, but I have no idea why they do not appear in the Sound Picker app;

If I enable only the sound for the charger connect/disconnect events, it still vibrates (the option in the stock Settings is enabled too);

Calls work, but I think the signal icon does not display the strength value correctly, no matter what I choose in Signal meter method in Phh Treble Settings > Misc features. It seems to be a common issue for most Treble ROMs, do you happen to know any way to improve it?

Ampere reports the wrong battery capacity: sometimes 700mAh while others it shows 900mAh, when the correct value is 3000mAh. I may be related to shorter battery time? Any ideas on how to fix it?

The stock camera app does not work with flash, but I think it is know bug for most Treble ROMs, I have not found a good replacement yet (tried Footej, HedgeCam2 and OpenCamera, I like OpenCamera more so far);

The same goes for the FMRadio app, I was not able to install the stock app back due to some permission issue (maybe I need to sign the APK again).

Again, thank you!

Regards
[Treble-Enabled Device Development A/AB ROMS] CosmicDan:
For all audio issues, try alternate audio policy in Phh Settings. Common issue on many SoC's.

For Camera, probably the best choice is a Google Camera mod. Most of them can just be installed as an APK, and many have changed package ID to avoid conflict with Play Store version.

Shouldn't need to re-sign any APK as long as its in priv-app, likely a missing permission or framework jar.

Finally, you should try and test all hardware with original Phh roar build, since hardware support needs to be done at the base.
[Treble-Enabled Device Development A/AB ROMS] eremitein:
hi, welcome

all my builds have signature spoofing, which applied automatically for apks installed inside system "priv-app" folders

about other issues - they is device specific and out of topic here. if you want find more help then welcome to my telegram group, there is some advanced Huawei users (link on the phhusson github page with all GSI ROMs)
[Treble-Enabled Device Development A/AB ROMS] lfom:
@CosmicDan Audio works fine, including wired and wireless headsets. The problem is that there is no default settings for Call/Notification/Alarm in settings (all set to None) although the files are available in /system/product/media.

I had a GCam installed in EMUI but it crashes a lot more on crDroid.

I will take a look at the stock Phh build as soon as possible, thank you for the tips.

@eremitein Yes, usually LOS has support for signature spoofing, but for some reason I could not setup MicroG properly in LiR, while it worked fine in crDroid. I used a normal APK and the Magisk module.

I have some experience building APKs, I think I can build the proper overlay for FIG-LX1. The correct place to submit it is on Phh GitHub page? Thank you again.
[Treble-Enabled Device Development A/AB ROMS] eremitein:
build overlay - test it - if it worked then push to the https://github.com/phhusson/vendor_hardware_overlay
[Treble-Enabled Device Development A/AB ROMS] eremitein:
crDRom R 2021.10.13

download /// changelog
[Treble-Enabled Device Development A/AB ROMS] CosmicDan:
Oh, you meant default audio :D that's interesting, I didn't have this issue. Maybe it selected tones when I logged into Google based on backup.

Yeah I did some reading and Gcam really only works for Qcom devices. I guess your best option is to try and get EMUI Camera working....?

P.S. thanks for update, dev!
[Treble-Enabled Device Development A/AB ROMS] tauhid.91:
Is there "double tap to wake" option in this version?
[Treble-Enabled Device Development A/AB ROMS] eremitein:
yes, and works on my phone. but for your device maybe will not work
[Treble-Enabled Device Development A/AB ROMS] tauhid.91:
In previous update it didn't work for my device (Galaxy A30)
[Treble-Enabled Device Development A/AB ROMS] juandi34:
I just flash this ROM in my Blackview BV9600E and works very fine. I thinks it´s the most complete. I try using LiR, CAOS and many others, but I think it´s the most complete, but in my phone has a problem that it wasn´t in LiR and CAOS: the location is very slow, and doesn´t works fine (google maps, location in whatsapp ... etc).

eremitein : is there a patch to apply in TWRP to solve it ???

Thank you and congratulations.
[Treble-Enabled Device Development A/AB ROMS] eremitein:
sorry, i have no fix

did you flashed same gapps zip which used in CAOS/LiR? or you using gappsed builds always?
[Treble-Enabled Device Development A/AB ROMS] juandi34:
Yes: I have flashed same gapps that I flashed in CAOS/LIR.
[Treble-Enabled Device Development A/AB ROMS] meechyy:
p
[Treble-Enabled Device Development A/AB ROMS] lfom:
Just a quick follow up from my port (#33), after I installed phhusson's AOSP 11.0 v313. All issues I reported besides #2 and #6 also happen with vanilla AOSP, #2 is related to the crDRom11 while #6 is just generic (it would happen with any ROM).

I was able to build an overlay for FIG-LX1 and battery seems to be OK, not as good as stock ROM tho, but I think this is expected. I downgraded the stock system to EMUI8 so I could use the Aonly version, but it seems that some NFC service keeps crashing all the time, slowing down the whole system after a while, and also demanding more battery. So I moved to EMUI9 again and installed the AB version. (small parenthesis here: EMUI8 is Aonly = SAS = System as System, while EMUI9 is AB = SAR = System as Root, at least on FIG-LX1)

The main problem that remains is the cell signal, what is broken. It seems that there is workaround using in some other ROM, but I have found it only on Android Q (A10) ROMs, not A11. If anyone has any tip on how to fix it on Android R ROMs it would be great.

There is another minor issue with cdDRom that I forgot: the Simple Gallery app included is not signed using the same keys as the F-Droid version, so it is not possible to update the app easily. Not a big deal, but I wonder why the F-Droid version wasn't used.

Thanks to @eremitein for all his builds again.
[Treble-Enabled Device Development A/AB ROMS] CosmicDan:
If its only the cell signal display, it sounds like an overlay issue. Its probably the fact that Android 11 has some new values that aren't in 10, and they're just using defaults.

You said you made an overlay, so you know what you're doing. What I do with making stock ROM overlays is to merge all the xmls I can find relevant to framework, with one set merged on stock ROM only and the second set merged with a Treble ROM. You can do this easily by just whacking in the extra xml's into values and recompiling with apktool - any value that comes *after* will overwrite previous. Vendor is read first I think, so you want vendor xmls to have a filename appearing first (so the /system xmls can overwrite the vendor ones when you recompile).

Then, you end up with two apk's - one is a combined framework-res with *all* values aggregated from stock ROM, the other is a framework apk that's supplanted with GSI values. You can simply decompile these recompiled framework apk's and diff them, since apktool will remove dupes (remember: replacing with what comes in a later xml) and sort the values.

I hope that makes sense. Not only does it ensure that you have gotten *every* value from your stock ROM, but it also allows you to see all the new values in Android 11. Do note that many of those new values will be new defaults of A11 that don't need to be changed, though.

If you're sure you've gotten all overlay values, and also cannot find a new Android 11 signal display values (if they exist or not, I don't know), then you would have to report to Phh as its likely some custom Huwaei framework code.
[Treble-Enabled Device Development A/AB ROMS] eremitein:
i know for EMUI8 need patch AIO from @Hami_Do, it will fix NFC and other things
[Treble-Enabled Device Development A/AB ROMS] lfom:
@CosmicDan Thanks. I think I got you, but I also think it is something else, perhaps some other patch in framework-res.apk. Actually, there is a patched cdDroid v7.10 that has the cell signal patch, but I did not figure out yet what exactly was changed.

@eremitein Now I am not sure if his patch fixed the crash or not, but I do remember I was not able to make NFC work, only using the AB version (his patch is only for Aonly ROMs if I recall correctly), but even to make it work I had to install a Magisk module for Kirin 659 devices, apply Alf patch to /vendor partition manually, and then remove the Magisk module, only then I could enable NFC successfully.

I am still looking for a fix to the cell signal. Thanks again.
[Treble-Enabled Device Development A/AB ROMS] GroovyG:
In case anyone wonders what happens when you put this ROM on a WP15 with microg :love:

This is after my first flash, so with a lot of installing, setting up, rebooting, testing etc. going on.

Under normal use scenario it'll probably get to around 50h SOT :ROFLMAO:
[Treble-Enabled Device Development A/AB ROMS] eremitein:
what is WP15?
[Treble-Enabled Device Development A/AB ROMS] GroovyG:
WP15
[Treble-Enabled Device Development A/AB ROMS] eremitein:
wow insane battery!
[Treble-Enabled Device Development A/AB ROMS] GroovyG:
Indeed, it's a beautiful piece of hardware all round. Only the stock software is total garbage as usual (which is really the case for any device haha), but there's your crDroid for that :cool:

I charged it for the first time today, let's see how long it lasts under normal use. Prediction in battery stats now says 17 days left :ROFLMAO:
[Treble-Enabled Device Development A/AB ROMS] juandi34:
I have reflashed yesterday on my BV9600E when I was experimenting another roms, but in this time, I have downloaded and flashed another file: crdrom-v313+211013-arm64-boZ.img (for not to have to flash GAPPS).

Great surprise: ... now, location runs quick and fine (only a little magnetic adjust using the 8 movement).

Congratulations.
[Treble-Enabled Device Development A/AB ROMS] eremitein:
crDRom R 2021.12.19

download /// changelog
[Treble-Enabled Device Development A/AB ROMS] MuddyDog:
hi, hope you re well and thanks for updating crDRom. except for one show stopper on my PH-1 it is running great.

the bug is that there is no in-call audio. this bug showed up in phh's v400 builds, affecting the ph-1 and some pixel phones. since none of your earlier crDRom builds have this bug, it been introduced (most likely) by something backported from v400.

phh knows about this problem and has it on his Android 12 todo list. hope that it can be backed out or fixed in crDRom.
[Treble-Enabled Device Development A/AB ROMS] eremitein:
hi, can you grab logs "adb logcat -b all -d > logs.txt" ? right after reboot and one call

much better without VoLTE
[Treble-Enabled Device Development A/AB ROMS] MuddyDog:
hi, the .txt file wouldn't attach, so i sorted out the problem by zipping the file.
[Treble-Enabled Device Development A/AB ROMS] selo28:
Lite the ones with vndklite ?
[Treble-Enabled Device Development A/AB ROMS] Ham1do:
(y)(y)(y)
[Treble-Enabled Device Development A/AB ROMS] eremitein:
which latest A11 build haven't that bug?
[Treble-Enabled Device Development A/AB ROMS] MuddyDog:
v313

i used phh's v313 build briefly to understand the baseline

and then have used

crdrom-v313+211013-arm64-bgZ.img

caos-v313+211010-arm64-bgZ.img

all of these have stable (actully very good) in-call audio... without volte works - and with volte also works great.
[Treble-Enabled Device Development A/AB ROMS] eremitein:
thanks. can you make one test for me? when bug appeared just open Phh treble settings and try one more call again
[Treble-Enabled Device Development A/AB ROMS] MuddyDog:
just open Phh Settings... but don't actually select anything (ims, misc, etc.)?

And, then generte a new logcat file?

Done, see attached
[Treble-Enabled Device Development A/AB ROMS] eremitein:
yes, still not working?
[Treble-Enabled Device Development A/AB ROMS] MuddyDog:
still not working
[Treble-Enabled Device Development A/AB ROMS] AhmedtSadek:
can anyone help enabling dual back camera? It only detects one back camera and I enabled the camera AUX option in the phh settings