yashsingh1/xdaforums huggingface dataset:
[Treble-Enabled Device Development A/AB ROMS] eremitein:
C A O S 11

< 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
​

CAOS 11 (Custom AOSP OS) is a project which based on @phhusson's Treble GSI AOSP 11. I began it because original project have not only pros (stability, speed, support) but also some issues and limitations - pure AOSP code have some bugs / haven't much useful things and it's a hard way pulling it. So i did this fork. System can run with SELinux enforced state, as an 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 or Factory reset

UPDATE VERSION

latest build: 2022.03.21

treble patches: v316

SPL: 5 Mar 2022

FEATURES/CHANGES

see Project page changelog

DOWNLOAD (CL1CK HERE)

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 AOSP Roar (in some cases doesn't work: broadcasting on TV, calls via BT; offline charging does not work normally etc etc)

NOTE: always test ROM first without Magisk (with clean boot ramdisk). 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

projects: TrebleGSI • BlissROMs • crDroid • PixelExperience • ION • neon-OS • Havoc-OS • LineageOS • Evolution-X • LiquidRemix • ExtendedUI • GrapheneOS • ABC Rom • SyberiaOS • RevengeOS • ProtonAOSP
[Treble-Enabled Device Development A/AB ROMS] eremitein:
#include_one
[Treble-Enabled Device Development A/AB ROMS] eremitein:
#include_two
[Treble-Enabled Device Development A/AB ROMS] xdagee:
Great to this thread comes up... it been long time coming. 😄
[Treble-Enabled Device Development A/AB ROMS] whitetigerdk:
Can't wait to see when a CAOS is build on Android 12 :D :D
[Treble-Enabled Device Development A/AB ROMS] fasser:
Guess this should read "the same as on AOSP Roar"
[Treble-Enabled Device Development A/AB ROMS] nsbandara:
Hi,

I flashed CAOS R 2021.04.19 in my HTC U12 life but DigitalWellbeing tools are not available. Is it only available for pixel devices ?

And I'm unable to transfer files using USB connection? Any suggestions or work around to get it working ?

Thank you.
[Treble-Enabled Device Development A/AB ROMS] eremitein:
are you flashed gappsed variant? i just added Wellbeing but can't test it now, my device have small system partition and i can't easy flash gappsed build

for MTP try enable file transfer in Developer settings
[Treble-Enabled Device Development A/AB ROMS] nsbandara:
Yes, I flashed caos-v305-210419-arm64-agZ. I'm unable to find any settings/app entry for WellBeing.
[Treble-Enabled Device Development A/AB ROMS] as400l:
@eremitein - thanks for your work. The ROM is great and fast.

I have it installed on Xiaomi Poco X3 Pro. There are some problems with sound and screen backlight but both of them can be resolved from Phh treble settings. I have posted solutions in X3 Pro thread.

I have one question - in case I would like to update CAOS in future. Is there any "official" way to do this ? Is it possible at all ? Or clean flash is required every time you post new version ?
[Treble-Enabled Device Development A/AB ROMS] eremitein:
sad, but i guess you have same with AOSP
[Treble-Enabled Device Development A/AB ROMS] eremitein:
How to update GSI

< only same ROM variants >

• go to TWRP, make wipe Dalvik cache (optionally, but recommended)

• install new GSI img to system (or reboot to fastboot/fastbootd and flash GSI)

• boot to TWRP again, resize System

• reinstall same GApps if used before

note: dirty update is not supports by me, do not send bug reports - if you will have bugs first try clean install
[Treble-Enabled Device Development A/AB ROMS] eremitein:
CAOS v306 2021.04.24

download /// changelog
[Treble-Enabled Device Development A/AB ROMS] Balsamderaersche:
Big fan of this CF. I hope there is a option to update (with further versions) using fastboot/adb. (Without loosing data) My Oukitel WP6 just supports these 2 options :).
[Treble-Enabled Device Development A/AB ROMS] GroovyG:
I have one too, and you can simply flash a new version on top of the old one in fastboot without wiping, works totally fine without loss of data.

BTW @eremitein , did you work some magic on VoLTE in the latest releases, or is it on @phhusson side? For me it just works out of the box suddenly, no more fiddling with IMS or APN settings, see screenshot. This is on your latest crDRom, really really nice, see screenshot:
[Treble-Enabled Device Development A/AB ROMS] Balsamderaersche:
So basically just:

fastboot flash system xxx.img

?
[Treble-Enabled Device Development A/AB ROMS] GroovyG:
Yeah!

And a

fastboot erase cache

never hurts, just to have no junk left in there.
[Treble-Enabled Device Development A/AB ROMS] eremitein:
is it 21.04.28 build?
[Treble-Enabled Device Development A/AB ROMS] GroovyG:
No, that's on 21.04.25, didn't see you had a new one up already again, going to install later today ;)

This is hands down the best ROM I have ever used, huge props to you!
[Treble-Enabled Device Development A/AB ROMS] MHMD NZMY:
Please help me and give me the download links for ( A705FN im arm64-ab )

I'm confused
[Treble-Enabled Device Development A/AB ROMS] OldNoobOne:
I'm using Shamshung Galaxy M21 2021 Edition (SM-M215G/DS)

What working with CAOS11 GSI so far:

1> MicroG

2> GCam (without Portrait mode), Open Camera works even better in daylight with Camera2API, ANX Camera flashable zip works. MicroG services need to be Up not frozen.

3> Banking apps

4> 4G Data Calling (normal calls work haven't checked Volte), no call drops.

5> Under 1GB games work fine (no heating issue at 30 FPS)

6> TWRP Backups restore well if you don't try to restore Super Partition

7> NetGuard VPN works

8> Magisk 24.3 works, all modules flash well.

9> Battery backup might not be as good as Stock OS but 8-9% battery drain in 3 hrsof gaming at 30 FPS. Its 2 days since I charged the battery 92% and still 35% juice remaining.

Cons:

1> No Battery Charging animation when phone switched off and put to charge.
[Treble-Enabled Device Development A/AB ROMS] LocBox:
Thanks
[Treble-Enabled Device Development A/AB ROMS] krayzieiyian23:
I must be doing something wrong. I'm trying to flash this in twrp and after I try doing all of this, I reboot to system and it goes straight to fastboot. When I flash the image in twrp it asks where to flash the image and I select the system partition, not vendor . Is that correct? Is there new instructions on how to flash this? Why does the file end in xy instead of img? These are some of the questions I have.
[Treble-Enabled Device Development A/AB ROMS] krayzieiyian23:
Oh and I am on the X606F Android 10 version. Following instructions based off the guide that was made.
[Treble-Enabled Device Development A/AB ROMS] luka_bubi:
.xy is compressed archive file, you have to extract it first to get to the .img file ...

As for the rest I only flashed using fastboot but ... where did you do Wipe Data? In TWRP or stock Recovery?
[Treble-Enabled Device Development A/AB ROMS] krayzieiyian23:
What do u use to get the image file? And are you starting to flash by "fastboot flash system system.img" and so on and so forth?
[Treble-Enabled Device Development A/AB ROMS] luka_bubi:
I am on Linux and have the extraction app available from start. On Windows you can try 7zip, it should be able to extract it.

As for the flashing I am not the best person to ask. I am on Huawei p20lite and that phone has some strange procedures that you have to follow to the letter. Especially the part where you have to use specific version of TWRP and do Wipes on stock Recovery, as apparently TWRP deletes too much stuff. :rolleyes: :rolleyes: :rolleyes:
[Treble-Enabled Device Development A/AB ROMS] vassiliszacharis:
Please 🙏 help 🥺 I tried several times to install custom ROM Caos via TWRP, but I was always having a message that custom ROM was not installed! Though it seemed to be installed. I am in a bootloop logo. TWRP is still working. Is there anyone here please, that could tell me all the necessary steps to be followed, regarding TWRP custom ROM installation?
[Treble-Enabled Device Development A/AB ROMS] vassiliszacharis:
I have the same tablet bro. Have you managed to install the custom ROM via TWRP? If yes how did you manage?
[Treble-Enabled Device Development A/AB ROMS] krayzieiyian23:
No. I gave up
[Treble-Enabled Device Development A/AB ROMS] vassiliszacharis:
I am always getting an error failed to mount system root (invalid argument). I only managed to install at once but I really can't remember the trick and the bloody process mate 😊
[Treble-Enabled Device Development A/AB ROMS] krayzieiyian23:
I was having the same problem. I tried everything and wouldn't install correctly, or would bootloop. Tired of reinstalling the stock software so I just gave up
[Treble-Enabled Device Development A/AB ROMS] krayzieiyian23:
Basically was acting like the system wasn't getting installed correctly no matter what I tried.
[Treble-Enabled Device Development A/AB ROMS] vassiliszacharis:
Indeed 🥺 it is wired I have never seen that problem before with TWRP... No OS installation, when it shown that installation was successful...I just hope someone will help us
[Treble-Enabled Device Development A/AB ROMS] rw_on_xda:
for an Samsung Galaxy SM-T510 I do the following:

- xz -dkv caos-*.xz => to get the unpacked image

- copy the the unpacked image to the SD card in the SM-T510

- boot to TWRP

- format (not wipe) /DATA

- install the image to /system

- reboot
[Treble-Enabled Device Development A/AB ROMS] vassiliszacharis:
Cheers mate did tried that no luck at all
[Treble-Enabled Device Development A/AB ROMS] rw_on_xda:
- verify the checksum of the image ?

- try another TWRP ?

OR

- install lastest stock

- unlock bootloader and such again

- TWRP again

- try installing caos again
[Treble-Enabled Device Development A/AB ROMS] vassiliszacharis:
Indeed that makes sense, though I want to ask for someone who managed to install it on Lenovo

X606F​

Nobody? Please 🙏 help
[Treble-Enabled Device Development A/AB ROMS] zenowaren:
Install from Fastboot. I installed to ZA5G0100TR from Fastboot.
[Treble-Enabled Device Development A/AB ROMS] vassiliszacharis:
Thanks 👍 can you explain further the process of installing custom ROM via fastboot? I am used to installing custom ROMs by copy them to an SD card
[Treble-Enabled Device Development A/AB ROMS] zenowaren:
I followed the guide below. It is for ZA5G0100TR. I am not sure if it will work for your device too.

First of all Have platform-tools installed for adb / fastboot

Here it is important to select the rom file which is suitable for your device.

I am not responsible for bricked devices.

- I presume you unlocked bootloader. Otherwise -> Unlocking Bootloader

- If you want root -> Steps 2-3 (You must get boot.img and vbmeta.img from your stock rom version which is already runnig your device) you might find your stock rom from here

Warning, all user data, apps etc. will be deleted.

If you want root just use pached_boot.img;

adb reboot bootloader
fastboot flash boot magisk_patched_boot.img
fastboot --disable-verification flash vbmeta vbmeta.img
fastboot erase system
fastboot flash boot magisk_patched_boot.img
fastboot flash system rom_img_you_want_to_install(extract from zip file)
fastboot -w
fastboot format cache
fastboot reboot bootloader
fastboot erase userdata
fastboot reboot

If you dont want root just use stock boot.img and vbmeta.img from your device stock rom;

adb reboot bootloader
fastboot flash boot boot.img
fastboot --disable-verification flash vbmeta vbmeta.img
fastboot erase system
fastboot flash boot boot.img
fastboot flash system rom_img_you_want_to_install(extract from zip file)
fastboot -w
fastboot format cache
fastboot reboot bootloader
fastboot erase userdata
fastboot reboot
[Treble-Enabled Device Development A/AB ROMS] vassiliszacharis:
Cheers mate I tried all the same again. I think I will go to stock ROM, tough luck
[Treble-Enabled Device Development A/AB ROMS] rw_on_xda:
AFAIK, I need to do in any case when a custom rom flash was unsuccessful

BTW:

is your device in this list ?

Create new page · phhusson/treble_experimentations Wiki

Notes about tinkering with Android Project Treble. Contribute to phhusson/treble_experimentations development by creating an account on GitHub.

github.com
[Treble-Enabled Device Development A/AB ROMS] vassiliszacharis:
My device is Lenovo tablet X606-F. Some have already managed to install it. Some other like me, unfortunately not. It might be TWRP fault. My device is not on that particular list mate.
[Treble-Enabled Device Development A/AB ROMS] rw_on_xda:
Then you should search for an HowTo-flash for your device.

I'm currently unsure if you got what I said before, so again:

On my SM-T510 I need to *first* flash stock with bootloader unlock, etc if a custom rom flash failed.

over and over again flashing a custom rom under TWRP (no idea if so too via fastboot) when one flash failed won't lead to an successful custom rom flash
[Treble-Enabled Device Development A/AB ROMS] OldNoobOne:
Sorry I logged into xda after 2 months. Try Telegram for your device group or contact Developer named

Eternityson

on Telegram, he is very helpful and he is Developer for CAOS11 and Other GSI ROMS like A11 CrDroidv316 R-Mod. He can definitely tell you how to boot his GSI on Lenovo Tab or further directions. I flashed for Shamshung device SM-M215G using TWRP after unlocking bootloader, you have to check in Developer Optons if the Unlock Bootloader option is greyed out, if not greyed out you cannot flash any TWRP or ROM or GSI as it will reboot to Stock Recovery or maybe bootloader. To make Unlock Bootloader option greyed out, after you have unlocked bootloader connect to internet for 10 seconds and the Unlock Bootloader option will be greyed out automatically, after that flashing anything is possible, this is for Shamshung but check for Lenovo, the steps could be a bit different to unlock bootloader properly.
[Treble-Enabled Device Development A/AB ROMS] vassiliszacharis:
Thank you ☺️ mates 🙂 I installed again stock ROM then installed lineage android 12, no luck with CAOS though...
[Treble-Enabled Device Development A/AB ROMS] rw_on_xda:
have you checked the correct caos rom variant with this app ?

Treble Info - Apps on Google Play

Helps you check Project Treble, A/B and Architecture for GSI installation

play.google.com

- you need to unzip the caos*.xz, e.g. "xz -dkv caos-*.xz" (on a linux box)

- copy the unzipped file to an sdcard on your device

- reboot into TWRP

- format DATA (and /or System ???)

- flash the caos rom to System

that's what I did on my SM-T510.

I guess if you could flash lineage you should be able to flash caos too

and currently you don't need to install stock with your TWRP installed.

just go though the above steps.

sure if the caos flash fails you need to flash stock again to get the device in a clean state

P.S.

currently I'm unsure what the differences between lineage and caos are, but I guess they aren't much ...
[Treble-Enabled Device Development A/AB ROMS] OldNoobOne:
I have tested both CAOS 11 & CrDroid11 R-Mod , both are made by same dev Eternityson, I found CrDroid11 better than CAOS11, but thats just my opinion. User can try both for a week and compare.
[Treble-Enabled Device Development A/AB ROMS] vassiliszacharis:
Is CAOS ROM still on Android 11 or have already been updated to let's say android 12 or Android 13?
[Treble-Enabled Device Development A/AB ROMS] OldNoobOne:
yes its on A11 till now.
[Treble-Enabled Device Development A/AB ROMS] OldNoobOne:
Hi Eternityson, Can you post Caos11 OR CrDroid 11 - R-Mod with latest Security Patch? Its great Gsi-Rom you have made :-). Waiting for your reply.
[Treble-Enabled Device Development A/AB ROMS] rw_on_xda:
I guess you'll need to wait somewhat longer, cause (see first page) cit.:

"CAOS 11 (Custom AOSP OS) is a project which based on @phhusson's Treble GSI AOSP 11..."

and the last looks like this:

Releases · phhusson/treble_experimentations

Notes about tinkering with Android Project Treble. Contribute to phhusson/treble_experimentations development by creating an account on GitHub.

github.com

=> "Still July security patch" (but AOSP 12.1)

in case: If I'm not completely blind or looked at the wrong place ...
[Treble-Enabled Device Development A/AB ROMS] Terrorigel97:
this rom is asking for an passwort to boot why?
[Treble-Enabled Device Development A/AB ROMS] rw_on_xda:
my wild guess (cause your lack of enough info's):

- cause bootloader is unlocked (but it boots after some seconds or after pressing power button)

OR

- cause you didn't wipe data (see 1st page)
[Treble-Enabled Device Development A/AB ROMS] Gueron:
Hi Eremitein,

I am quite frustrated at the moment, and I dont know how to solve this..

I really like your GSI rom developments, and appreciate the work you have done, thanks.

But only on "paper" since I cant seem to flash any of them.

I have a Samsung A10e with unlocked bootloader and dm-verity canceled.

I use heimdall to flash.

I have successfully flashed AndyYans Lineage (17 and 18) and Of2pks Aosp (Android 10 and 11).

In all cases I extract the download file using xz on linux.

But whichever of your ROM builds (Caos, Crdroid, LiR), Android 10 or 11, various dates, Heimdall

gives me an error after 3% flash...

ERROR: Failed to confirm end of file transfer sequence

ERROR: libusb error -7 whilst sending bulk transfer. Retrying...

I have tried with magisk patched stock boot, recovery, and also flashing with twrp. Twrp will

flash but wont boot, goes to bootloader instead.

Searching for Heimdall answers on internet have not helped. I wonder whether there is some

difference in the xz compression you use or Rom signature.

I would appreciate any insight you could give me.. thanks !!
[Treble-Enabled Device Development A/AB ROMS] Gueron:
Today I tried decompressing xz file using peazip on windows. Same result. Also tried flashing with Pbrp, same result as twrp...
[Treble-Enabled Device Development A/AB ROMS] Gueron:
Finally success... So still no luck with Heimdall flash, but twrp completed. I had tried dirty flashing crdroid and lir with the expectation to keep my lineage data. So in the end I could boot once I had wiped data. Now I am trying to recover my seedvault saved data with Caos... Is the data storage compatible with other aosp roms ? I was hoping to try this - https://xdaforums.com/t/aosp-11-0_r...al-cve-august-2021-arm32-64-vndklite.4281231/
[Treble-Enabled Device Development A/AB ROMS] OldNoobOne:
Hi Gueron, This A11 GSI ROM is the BEST till date (as far as my device Galaxy M21 2021 Edition is concerned).

For the last 1.5 Years I have been trying out almost each and every GSI ROM on github-phh-gsi-list right from A11 upto A13, nothing beats This CrDroid R-Mod A11 by Eremitein a.k.a Eternityson. 32 Hours of Battery Backup with full usage...smooth & stable. Best So far. I didn't like the Andoid Versions above A11. Eremitein is from Ukraine so its a war zone right now, I wish him good luck and thanks for his GSI-ROM.

#Edit (12 April 2023)

: Ancient OS 13 GSI shows promise too. Do Check.

[ https://sourceforge.net/projects/ancientrom/files/gsi/V7.1/ ]
[Treble-Enabled Device Development A/AB ROMS] Gueron:
Thanks for this info OldNoobOne, I did not know that Erimitein was in Ukraine, and of course what they are going through is far more important than any thing here..

My SMALL issues are also for sharing with others and trying to find a solution.

As you mentioned his ROMs are really smooth and work well and we have to thenk him for the work he has done.

Personally I have tried to get everything, so I have tried flashing quite a number of ROMs. Finally none gives me a perfect PERSONAL solution so just a compromise.

What spoils everything is how Google screws us indirectly.. many simple applications I use dont work properly without their hooks... so I am still hesitating between some AOSP GSIs and lineage versions. And finally all options limited by what Samsung provides for my device.. Seems like Android 11 is a good compromise.. thanks for your input and experience..
[Treble-Enabled Device Development A/AB ROMS] OldNoobOne:
Youre WC friend,

yes i think Andoid 11 is more stable & offers some more customizations than A12/A13.

1> With A12/A13 Gugle has introduced Camera/Mic/Location sensor access notification on status bar which is a distraction (that was already being managed by SELinux before so why now inform the user at all?)

2> Also Gugle has introduced new Storage folder selection security policy for 3rd Party Apps (so why didnt they think of it up untill A12? That was also being managed by SELinux before, moreover some power users have reported their suspicions of Download folder behaving like an App rather than being just a folder that stores your downloads-creepy!).

3> As soon as user flashes Ghapps over Vanilla ROM the battery backup goes down to 50% lesser over time & also GMS & Gugle Pley Services cannot be Battery Optimized so all these notification splashing on the status bar to enable Pley Services & other useless notifs drains battery too. So if you want to run all apps normally it is best to use the Factory Installed OS on your device then Root it and disable Ghapps (or install apps from Pley Sthore and then disable Ghapps) & other services that drain the battery, that way only a few apps wont run but rest usually do (GCam wont run without Ghapps enabled anyway) and you get 20% more battery juice with Pley Services Warning notifs bothering you sometimes .

4> Some devs claim that OEMs, Gugle, Mycroshaft & the whole Retail + Online sales chain want everyone to buy latest devices EVERY YEAR so that they can make Billions of bucks, I have a hunch that older devices are perfectly capable of runninglatest versions of apps but these guys deliberately stopping users from doing that so that they all can plunder billions of $ from everyone. Democracy is going to hell I see a rise in Autocracy everywhere. Sad Demise.
[Treble-Enabled Device Development A/AB ROMS] Darkstar119:
hi Pls help i have caos-v316-220321-arm64-bgZ.img.xz on Lenovo TB-606F install.

Now when I start caos I have to enter a password. then he wants to reset all data. now it starts the TWRP and it doesn't start anymore what can I do.
[Treble-Enabled Device Development A/AB ROMS] rw_on_xda:
I own a Samsung SM-T510, but I guess install procedure is the same.

Before flashing Caos you need to format (not wipe) Data.

Directly coming from Stock you need to init a reset, then flash TWRP, then data format and then flash caos.

did you miss the first step here ?