phhusson / treble_experimentations

Notes about tinkering with Android Project Treble
3.41k stars 660 forks source link

Overlay not applying and disappears after a reboot #2513

Closed Rekik88 closed 1 year ago

Rekik88 commented 1 year ago

I'm trying to build an overlay for my Samsung Galaxy S10Lite. The tests and build finish fine without any errors. When I copy the overly file to /system/product/overlay the next reboot the file disappears and nothing is applied. Am I missing something ? Using Pixel Expirience Plus GSI A13.

phhusson commented 1 year ago

You're using:

adb root
adb remount system
adb push xxx.apk /system/product/overlay/xxx.apk

?

or are you using some other method?

Rekik88 commented 1 year ago

I used the adb push when the system is running should I do it through the recovery ?

phhusson commented 1 year ago

did you do adb root and adb remount system ?

Rekik88 commented 1 year ago

No i didn't remount system

Rekik88 commented 1 year ago

I followed the commands and still the same thing

phhusson commented 1 year ago

How did you do it before those commands? Are you using magisk?

Rekik88 commented 1 year ago

I used adb root adb push xxx.apk /system/product/overlay/

Rekik88 commented 1 year ago

And I even tried trying through a Material Files (a root file manager)

Rekik88 commented 1 year ago

And device rooted with magisk

phhusson commented 1 year ago

then put magisk in core mode, or disable it. it's magisk that prevents you from writing to system partition

Rekik88 commented 1 year ago

Thanks it worked. Uninstalling magisk solved the problem !