yashsingh1/xdaforums huggingface dataset:
[Treble-Enabled Device Development A/AB ROMS] mhark.moby:
is there any chance that offline charging would work with this gsi?

redmi 9 user here
[Treble-Enabled Device Development A/AB ROMS] eremitein:
just try it. on my Xiaomi A2 Lite it works, but your device with MTK so i can't guarantees
[Treble-Enabled Device Development A/AB ROMS] Lebannen74:
thanks for your reply.

I don't know how to make it and not a lot of people have this tablet.

I will use the samsung OS higlly debloated.
[Treble-Enabled Device Development A/AB ROMS] enes.korogluu:
hey, although your signal is good, cellular indicator always looks half. Why?
[Treble-Enabled Device Development A/AB ROMS] mhark.moby:
Redmi 9 user

tried this gsi so far so good.

Bugs:

Offline Charging, bootloops after showing question mark inside the battery. but you can go to system.

What would happen if i slept while charging the phone.

File transfer, you need to go to developer option to change the option after you put the usb cable.

the mobile signal has an x means that you dont have signal but the meter is working.

With Gapps the bootloading is too much.

Without Gapps loading is very fast.
[Treble-Enabled Device Development A/AB ROMS] mirzanuman6612:
Hello! Do I use the stock boot image of the firmware of my device to root my device or is there a specific boot image to root the device with this custom rom, if yes then please provide me the link to it.
[Treble-Enabled Device Development A/AB ROMS] eremitein:
hi, GSI haven't specific boot.img. GSI is only system image
[Treble-Enabled Device Development A/AB ROMS] eremitein:
CAOS 2020.11.17 R test

download

• latest v300i patches

• fixed gesture overlay

• callrecording in Dialer

• reverted sbin folder for magisk

• added mark as read in SMS notification

• improved screen recorder (stop dot and quality switch)

• slightly improved speed of laucher animation

• speed up storage by disabling FUSE

• removed black bottom area for old apps

• added screenshot sound trigger

• many other improvements for speed, performance, stability and user experience

but it's still beta test builds so

say me issues if found (which is not exist in AOSP v300i)
[Treble-Enabled Device Development A/AB ROMS] Tims Fong:
caos-v300i-201117-arm64-avN.img can't booting Loop in BL,SD821,vndk27 Aonly.thanks.
[Treble-Enabled Device Development A/AB ROMS] erdal1555:
HATA

MY MOBILE PHONE IS GENERAL MOBILE 8 I INSTALL YOUR GSI CAOS V224 ANDROID 10 VERSIONS ON MY MOBILE PHONES. NO PROBLEM. BUT YOU HAVE ENSONED 300i.20.11.17 VERSION IS INSTALLING BUT IT DOES NOT OPEN IN THE PRE-INSTALLATION WINDOW. WAITING ON THE CAOS SCREEN PHONE DOES NOT TURN ON HELP. MY MOBILE PHONE ANDROID 9 PIE A / B ARM64 ARCHITECTURE

TWRP 3.4.0 VERSION LOADED

ANDROID 10 GSI ESTABLISHES
[Treble-Enabled Device Development A/AB ROMS] MuddyDog:
Installed on an Essential PH-1 easily, without any problems.

I have only encountered one CAOS-specific bug so far.

- the base build for CAOS 2020.11.17 R is Android RD1A.201105.003.C1 2020-11-05, which includes Security Patch Level 2020-11-05.

- however, CAOS shows Security Patch Level 2020-10-01
[Treble-Enabled Device Development A/AB ROMS] eremitein:
CAOS have 2020-11-05 SPL, maybe System info shows vendor SPL - anyway, this is not critical
[Treble-Enabled Device Development A/AB ROMS] eremitein:
new variants uploaded, and arm64-avN image re-uploaded (it was broken)

c41fc54e4c46330d504a9aae139d7d4 caos-v300i-201117-arm64-avN.img.xz

b8b3f64a9f146cc9dd823dabc6528eda caos-v300i-201117-arm-avN.img.xz

fdbc03da7cb547a46f84efd2aff7b0d2 caos-v300i-201117-a64-bvN-lite.img.xz
[Treble-Enabled Device Development A/AB ROMS] Tims Fong:
caos-v300i-201117-arm64-avN.img， SD821，vndk27，Aonly booting！Nice!
[Treble-Enabled Device Development A/AB ROMS] Cường Hồ:
Device?

Gửi từ HTC One M9 của tôi bằng cách sử dụng Tapatalk
[Treble-Enabled Device Development A/AB ROMS] Tims Fong:
ZUK edge
[Treble-Enabled Device Development A/AB ROMS] HemanthJabalpuri:
[MENTION=8281637]eremitein[/MENTION]

How can I mount /system as rw?

mount -o rw,remount /system #mount: '/system' not in /proc/mounts
mount -o rw,remount / #'/dev/block/dm-1' is read-only

.

In CAOS latest 10 build.

Sorry, I am new to newer android versions! before I have used Marshmallow and KitKat.

Edit:- I am rooted with Magisk. Above commands are executed with su.

/ remount worked now, but I can't able to make changes to /system persistent. Those are gone after reboot!
[Treble-Enabled Device Development A/AB ROMS] PMTpro:
How long will you support CAOS Android 10 version?
[Treble-Enabled Device Development A/AB ROMS] HueyT:
Magisk 21 zip install in twrp and magisk manager apk to enable root
[Treble-Enabled Device Development A/AB ROMS] Gomeman:
If you know how to to run platform tools on pc , just do this

./adb root

./adb shell

mount -o rw,remount /

ls ( command to view root folders, you will see the system folder)

Do what you want , for example if you want to change boot image.

cd sdcard

chmod 644 bootanimation.zip

cp bootanimation.zip /system/media

To go back to read.only ;

mount -o ro,remount /

Worked for me , on bliss.

Hope it works for you.

Ps: enable usb debugging , root debuging, and transfer files

This is on a linux machine. But on windows probably is the same. Just open a cmd with adminstation privilige in platform folder.
[Treble-Enabled Device Development A/AB ROMS] Shako123:
Hi,

I tried your ROMs on the Redmi Note 9, but they all have the status bar not where it should be. Any fixes?
[Treble-Enabled Device Development A/AB ROMS] atakan33:
is magisk 21 work with this gsi ?
[Treble-Enabled Device Development A/AB ROMS] Gomeman:
Not on GSI.
[Treble-Enabled Device Development A/AB ROMS] Vulnerability:
Anyone know how to update Bromite Webview on CAOS? I tried downloading the latest installer from their website & updating the built in version, but it didn't work. Running CAOS, latest revision.
[Treble-Enabled Device Development A/AB ROMS] Rediancool:
there is a brightness problem on redmi 9a

is there any fix?

and root isn't an option right now as twrp is unfinished

i am using this build( caos-v224-201029-a64-bgN. )
[Treble-Enabled Device Development A/AB ROMS] eremitein:
send me output from command

getprop ro.vendor.build.fingerprint
[Treble-Enabled Device Development A/AB ROMS] Rediancool:
Redmi/dandelion_in/dandelion:10/QP1A.190711.020/V12.0.6.0.QCDINXM:user/release-keys (i am currently on stock rom)

and headphones also doesn't work ( i tested losq and bless also, same problem)
[Treble-Enabled Device Development A/AB ROMS] eremitein:
well, i will try to fix that in the next update
[Treble-Enabled Device Development A/AB ROMS] Rediancool:
Thanks man
[Treble-Enabled Device Development A/AB ROMS] eremitein:
CAOS R 2020.11.27 (beta3)

download /// changelog

. . .
[Treble-Enabled Device Development A/AB ROMS] hacker812c:
Thanks for this ROM My friend
[Treble-Enabled Device Development A/AB ROMS] RubenGreg:
Any plans to include microG? or at least the signature spoofing patch.

Reason:

Most corona apps need exposure notifications API.

Many thanks
[Treble-Enabled Device Development A/AB ROMS] eremitein:
signature spoofing included already. in CAOS R GSI you need put apps to the priv-app folder (same as in AOSP Roar) then they can using spoofing
[Treble-Enabled Device Development A/AB ROMS] wakko42:
There is a new AOSP 300j version with gapps 😇
[Treble-Enabled Device Development A/AB ROMS] Vulnerability:
I can't wait til CAOS is updated with AOSP 300j!
[Treble-Enabled Device Development A/AB ROMS] sulamerica_auto:
I don't know if anyone has reported this here, but there were at least three bugs in my device using the CAOS v300i.

The first is that Bluetooth does not work.

The second is that when you turn off and on or restart the device, the date goes back to November 27th. To fix this, you need to have internet.

The third is the camera application that comes in ROM. When I zoom in to photograph something, the camera app just crashes! But this bug also occurs in LineageOS GSIs, for example.
[Treble-Enabled Device Development A/AB ROMS] eremitein:
CAOS R 2020.12.13 (beta4)

download /// changelog
[Treble-Enabled Device Development A/AB ROMS] wakko42:
thanks for your work :)

Damn :(

sudo fastboot flash system caos-v300j-201213-arm64-bgN.img

Sending sparse 'system' 1/7 (458752 KB) OKAY [ 10.998s]

Writing 'system' FAILED (remote: 'sparse flash write failure')

fastboot: error: Command failed

I guess the img is too big for my mediapad m5?
[Treble-Enabled Device Development A/AB ROMS] DavitidzeSh:
Any way to fix Status bar? It's quite off from how it was on stock ROM
[Treble-Enabled Device Development A/AB ROMS] eremitein:
first, you need to be sure you have latest fastboot version on your pc

second, if your device have super partition (mostly Q vendor), you need to be sure you selected right flash mode (need fastbootd)

third, if you can flash vanilla build, but can't gappsed - then system image is bigger than your system partition
[Treble-Enabled Device Development A/AB ROMS] eremitein:
try option "Status bar padding" in Display settings
[Treble-Enabled Device Development A/AB ROMS] DavitidzeSh:
Already did but didn't work for me
[Treble-Enabled Device Development A/AB ROMS] TimeRainStarSky:
My device is Redmi Note 9 (merlin). After I flashed in CAOS (caos-v224-201029-arm64-bgN.img.xz), it failed to boot normally and entered the FASTBOOT mode. Do you know what the problem is? (Vbmeta has been disabled.)

Is it because I need to delete "/system/phh/secure"? But I cannot mount /system as read-write. What should I do?
[Treble-Enabled Device Development A/AB ROMS] eremitein:
are you did a clean install? no magisk in ramdisk, clean data storage etc

also can you flash AOSP v300j and boot it?
[Treble-Enabled Device Development A/AB ROMS] TimeRainStarSky:
Yes, clean install, no magisk in ramdisk, clean data storage etc.

AOSP can boot normally.
[Treble-Enabled Device Development A/AB ROMS] TimeRainStarSky:
I flashed caos-v300j-201213-arm64-bgN.img.xz and it started normally, but the screen refresh rate is only 45Hz. How can I restore it to 60Hz?
[Treble-Enabled Device Development A/AB ROMS] neo_mat:
Hello,

I used an old aospextended (android 9) and the project is stopped. This rom contain a lot of extensions.

I used app ops in order to control apps BOOTUP and RUN IN BACKGROUND option.

(for exemple: allowing for email app but blocked for aliexpress app and all his notifications...)

Is there any app ops equivalent in this rom ? without the need to be root.

Thanks
[Treble-Enabled Device Development A/AB ROMS] eremitein:
you have magisk in boot? I know magisk broken for refresh rate in GSI
[Treble-Enabled Device Development A/AB ROMS] eremitein:
try to search in web (and in Play Store) by keywords "autostart manager android"
[Treble-Enabled Device Development A/AB ROMS] TimeRainStarSky:
Without Magisk installed.

And I can’t install Magisk.
[Treble-Enabled Device Development A/AB ROMS] eremitein:
i said "in boot"

that's mean magisk in ramdisk

flash clean stock boot.img to be sure no magisk in ramdisk (no matter that magisk manager say it's not installed)

also check AOSP v300j
[Treble-Enabled Device Development A/AB ROMS] mirzanuman6612:
Hello! Does this contain fixes for audio jack and brightness? (Xiaomi Redmi Note 9 Merlin)
[Treble-Enabled Device Development A/AB ROMS] mirzanuman6612:
Any known bugs? Cuz I am looking forward to install this rom on my device.
[Treble-Enabled Device Development A/AB ROMS] eremitein:
user with "merlin" reported that CAOS v300j booted, see in my group
[Treble-Enabled Device Development A/AB ROMS] eremitein:
it's beta build, if you want install and give feedback to me
[Treble-Enabled Device Development A/AB ROMS] mirzanuman6612:
Bro, any guess till when will be the stable rom will be released?
[Treble-Enabled Device Development A/AB ROMS] DavitidzeSh:
Status bar is off
[Treble-Enabled Device Development A/AB ROMS] mirzanuman6612:
Hows the call quality and hows the smoothness?
[Treble-Enabled Device Development A/AB ROMS] DavitidzeSh:
I haven't checked call quality but I did notice that it was a bit buggier than MIUI, also my refresh rate was at 45Hz even though It isn't rooted and I unrooted my phone fully before installation
[Treble-Enabled Device Development A/AB ROMS] mirzanuman6612:
Mhm, then I must wait for the stable release. Anyways, thanks for your replies.
[Treble-Enabled Device Development A/AB ROMS] yatsura2k:
It worked for me on my M5 SHT-W09 (with firmware 8.0.0.168) -

fastboot flash system caos-v300j-201213-arm64-agN.img

target reported max download size of 471859200 bytes

Invalid sparse file format at header magic

sending <snip>

I guess you are on firmware 9.0 or 9.1 since you use AB rather than A-only.
[Treble-Enabled Device Development A/AB ROMS] rbt07:
eremitein thanks for your hard work.

I try this ROM on my tablet Teclast T30, file: caos-v300j-201213-arm64-bgN.img.xz

It boots up and works, BUT, why I cant install Chrome browser there?

The installation from Google play will begin, but it will never complete.

There must by something wrong withh GAPPS. Please look at it in next version. Thanks in advance.
[Treble-Enabled Device Development A/AB ROMS] eremitein:
try to use Aurora Store from f-droid.org
[Treble-Enabled Device Development A/AB ROMS] lasset:
Caos latest boot img for download, please!?
[Treble-Enabled Device Development A/AB ROMS] eremitein:
CAOS R 2020.12.21 (beta5)

download /// changelog
[Treble-Enabled Device Development A/AB ROMS] mirzanuman6612:
What does "Z" means?
[Treble-Enabled Device Development A/AB ROMS] HemanthJabalpuri:
See changelog.

For convenience, I am quoting here
[Treble-Enabled Device Development A/AB ROMS] mirzanuman6612:
Thanks man!
[Treble-Enabled Device Development A/AB ROMS] eremitein:
CAOS R 2020.12.25 (beta6)

download /// changelog
[Treble-Enabled Device Development A/AB ROMS] mirzanuman6612:
Sir, when will the stable update will be released.
[Treble-Enabled Device Development A/AB ROMS] HueyT:
This is stable. Don't let the "beta" scare you
[Treble-Enabled Device Development A/AB ROMS] mirzanuman6612:
Mhm, I appreciate the reply. But, are you using this ROM and if yes have you came across any kind of bugs.
[Treble-Enabled Device Development A/AB ROMS] zyhk:
I think this ROM stable, too. But I have an issue that I cannot use ADB (Of course I can use ADB on the Roar ROM).
[Treble-Enabled Device Development A/AB ROMS] eremitein:
I guess you can using ADB in the CAOS too

install latest beta6 and check with clean Data, just right after installing GSI
[Treble-Enabled Device Development A/AB ROMS] zyhk:
I installed caos-v300j-201225-arm64-avZ on Umidigi Z2 (Oreo 8.1 vendor) with formatting data. I found that "/system/bin/adbd" was logically linked to nothing.

W/init ( 1): type=1400 audit(0.0:160): avc: denied { read } for name="adbd" dev="mmcblk0p30" ino=11 scontext=u:r:init:s0 tcontext=u:object_r:adbd_exec:s0 tclass=lnk_file permissive=0
I/(4)[1:init]( 1): [PropSet]: pid:1376 uid:1000 gid:1000 ctl.start, adbd
E/(4)[1:init]( 1): cannot find '/system/bin/adbd', disabling 'adbd': Permission denied
I/UsbDeviceManager( 1376): Setting USB config to adb
I/(1)[1:init]( 1): PropSet [persist.sys.usb.config]=[adb] Done
I/(1)[1:init]( 1): processing action (init.svc.adbd=stopped) from (/init.usb.configfs.rc:15)
I/(1)[1:init]( 1): PropSet [sys.usb.config]=[adb] Done
E/UsbDeviceManager( 1376): waitForState(adb) FAILED: got none
E/UsbDeviceManager( 1376): Failed to switch USB config to adb
E/UsbDeviceManager( 1376): Failsafe 2: Restoring default USB functions.
[Treble-Enabled Device Development A/AB ROMS] eremitein:
try to re-enable USB debug option in Developers settings
[Treble-Enabled Device Development A/AB ROMS] zyhk:
This didn't work. In a terminal window, I inspected "/system/bin/adbd" closely and found it was logically linked to "/apex/com.android.adbd/bin/adbd" existing in the Caos (I was wrong in previous post). But "init" cannot still find the adbd.
[Treble-Enabled Device Development A/AB ROMS] eremitein:
there is no adbd in system, but adb works on my device
[Treble-Enabled Device Development A/AB ROMS] zyhk:
I tried to change SELinux stare to Permissive, then I was able to use adb.

In my device,

/system/bin # ls -lZ adbd
lrwxrwxrwx 1 root root u:object_r:adbd_exec:s0 31 2020-12-26 19:05 adbd -> /apex/com.android.adbd/bin/adbd

/apex/com.android.adbd/bin # ls -lZ adbd
-rwxr-xr-x 1 root shell u:object_r:adbd_exec:s0 1513408 2020-12-26 11:46 adbd
[Treble-Enabled Device Development A/AB ROMS] mirzanuman6612:
@eremitein Hey dude! So, yesterday I tried this GSI on my Redmi Note 9 (merlin) the UI and overall GSI is so laggy. The refresh rate is stuck on 45.0 hertz even after rebooting with no superuser. It does not have fixes for the brightness slider, nor the headphone jack. I had to immediately reinstall the stock rom because of the GSI being so laggy and not having fixes for the headphone jack and the brightness slider. Anyways, I thought I should let you know about the issues. Hopefully you will look forward to fix these issues. And then I would love to use this GSI as my daily driver. :)
[Treble-Enabled Device Development A/AB ROMS] eremitein:
try again with unmodified stock boot and vendor, maybe your device fingerprint was changed
[Treble-Enabled Device Development A/AB ROMS] mirzanuman6612:
I flashed with stock boot and unmodified boot image.
[Treble-Enabled Device Development A/AB ROMS] eremitein:
you sure you have "merlin"? check with command getprop ro.vendor.build.fingerprint

tweaks for merlin already in the build, I'm sure
[Treble-Enabled Device Development A/AB ROMS] mirzanuman6612:
I already checked mate... I have merlin.

Edit: There are no tweaks... I am sure as well, sir.
[Treble-Enabled Device Development A/AB ROMS] eremitein:
but other users reported tweaks works, there is few reports in my telegram group
[Treble-Enabled Device Development A/AB ROMS] mirzanuman6612:
Well, appearently the "tweaks" don't work for me.

Edit: The Android 10 build worked perfectly for me. @eremitein its just that this Android 11 build does not have tweaks for Redmi Note 9 (merlin).
[Treble-Enabled Device Development A/AB ROMS] HueyT:
300j works great on xt1962-1 river on top of LOS171
[Treble-Enabled Device Development A/AB ROMS] pokepokepoke:
In R GSI's what is the difference between "lite"(vndklite) version.How do I know if I should choose it,till Q i used arm64_bvZ (arm64 A/B)
[Treble-Enabled Device Development A/AB ROMS] eremitein:
Treble Info will show you which build you need https://play.google.com/store/apps/details?id=tk.hack5.treblecheck
[Treble-Enabled Device Development A/AB ROMS] :
I tryed to flash it on my A20e (vendor Q) but I'm stuck in Caos loading screen and system doesn't boot. What's the correct process of installation? Maybe I made some errors. Coming from stock I wiped everything, installed caos image, flashed DM-verity and Gsi Fix then wiped both caches and reboot.
[Treble-Enabled Device Development A/AB ROMS] rbt07:
I tried the latest version of caos-v300j-201225-arm64-bgZ.img.xz.

Unfortunately, even in this version, restarts occur every time I switch to the next video on Youtube in the Chrome Browser.

So far, all GSI ROMs have restarted when switching youtube videos in the Chrome browser.

Please look at it.

I am using Teclast T30 tablet.
[Treble-Enabled Device Development A/AB ROMS] methuselah:
@eremitein will you work on issues that my device has got? I mean it has got 8.1 vendor. Phh is busy man. I will give each and every kind of log if you want. If you have time and expertise please let me know. I didn't even tried installing ur gsi. There are few horrible issues with my device like sound don't comes from loudspeaker. Please let me know.
[Treble-Enabled Device Development A/AB ROMS] eremitein:
hi mate, I'm not pro as phh, sorry i can't help. i lost much time and still no success to run A11 GSI on the vndk-27 AB device
[Treble-Enabled Device Development A/AB ROMS] methuselah:
alright mate no issues. 👍
[Treble-Enabled Device Development A/AB ROMS] hafizhlf:
Allow client to use vpn doesnt work on hotspot / tethering

caos R 300j+
[Treble-Enabled Device Development A/AB ROMS] eremitein:
CAOS R 2021.01.10 (beta7)

download /// changelog
[Treble-Enabled Device Development A/AB ROMS] sabrdawg:
I tried flashing this on my Galaxy S20+ running Android 11, but keep bootlooping :/ Any ideas?
[Treble-Enabled Device Development A/AB ROMS] eremitein:
yes, try AOSP v300l first - is it boot?

and try vanilla, not gappsed
[Treble-Enabled Device Development A/AB ROMS] IamTheBRAVE:
Thank you, @eremitein

I installed v300.l bgZ on galaxy A20. Booted really fast first time, but couple of bugs.

-GPlay services: screen goes black on checking info when trying to log in. Only Gplay, contact, and google search are installed.

-

CallUI does not appear or show caller id when making or receiving calls. Can't answer or hang up calls

. (Edit: SOLVED, dialer app was not default call app. It was set to none. Now IncallUI appears correctly)

- A couple of apps crash on start. Including XDA.

-

can't use magisk, maybe i should flash phh superuser.zip or something else?

(Edit: SOLVED, in phh treble settings there's an option to turn su and root on and it's working)

If i use bvZ what gapps to use? Thanks for your time👍
[Treble-Enabled Device Development A/AB ROMS] sabrdawg:
I'll have to try that. Thank you!
[Treble-Enabled Device Development A/AB ROMS] IamTheBRAVE:
@eremitein instead of installing bvZ version can't we just flash gapps on bgZ? Would that solve login problems?

UPDATE: answer is no. Flashed gapps on bgZ version, installed ok, triggered setup but same problem: gms checking info screen goes black. Tried removing gms and gsf from priv-app and reapplied gapps but same.

Did some digging, google play services has some permission disabled (screenshots) among others read-gmail and autosync can't turnthem back on.
[Treble-Enabled Device Development A/AB ROMS] TimeRainStarSky:
I confirmed that Magisk has been removed from the boot, but the device refresh rate is still 45Hz.
[Treble-Enabled Device Development A/AB ROMS] eremitein:
try to use bvZ + external gapps

(by the way i can login in bgZ version on my device, i tested it in v300j)
[Treble-Enabled Device Development A/AB ROMS] eremitein:
weird, on my device i have 60fps. well try AOSP v300l then
[Treble-Enabled Device Development A/AB ROMS] IamTheBRAVE:
Started over fresh, bvZ + flame gapps/nikgapps. When it doesn't bootloop it starts with only google play and framework services installed, no play services. Sign in button does nothing, I'm on v300.l. I'll keep trying, really love CAOS better than others 👍
[Treble-Enabled Device Development A/AB ROMS] eremitein:
i tested nikgapps core too, it works

you have issues with AOSP v300L?
[Treble-Enabled Device Development A/AB ROMS] IamTheBRAVE:
@eremitein finally was able to login. Flashed bitgapps, at first services crashed at checking info screen, then found a play protect notification, opened it then went back to sign in and it worked, crashes at the end but the account is logged in. Now I can start enjoying this GSI, thank you.
[Treble-Enabled Device Development A/AB ROMS] whitetigerdk:
Could it be possible to create a smaller image. Image is for Huawei P20 Lite so big that there are not enough space to install other apps.. Tried to format the SD card to be used for system space for apps - but it fails - cannot be done.. Any ideas?
[Treble-Enabled Device Development A/AB ROMS] eremitein:
CAOS R 2021.01.17 (beta8)

download /// changelog
[Treble-Enabled Device Development A/AB ROMS] eremitein:
the is few methods:

a. fisrt - use vanilla build (i hope you did it)

b. TWRP > Wipe > Advanced > Resize System

c. mount System in TWRP and delete all unnecessary VNDK libs (which is not match your device vendor vndk and not '-current' one) from system_ext/apex
[Treble-Enabled Device Development A/AB ROMS] IamTheBRAVE:
The above method is what i used when i had trouble installing gapps. maybe should be added as a note to OP? 👍
[Treble-Enabled Device Development A/AB ROMS] whitetigerdk:
Thanks.. Will take a look at that.. Yeah Vanilla - lite image installed.. Besides this issue it runs smoooth on P20 Lite.