phhusson / treble_experimentations

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

Camera Punch Hole Missaligned (OnePlus Nord CE 2 Lite 5G) #2475

Open Loxymore opened 1 year ago

Loxymore commented 1 year ago

Current Behavior:

After first boot the display had the whole top left corner blacked-out (see images), If I however set the "Display Cutout" option in developer settings to "Punch hole cutout", the cutout is missaligned with the physical camera.

To Reproduce:

  1. Install a GSI rom on the OnePlus Nord CE 2 Lite 5G (CPH2409)
  2. Go into developper settings
  3. Set the "Display Cutout" option to "Punch hole cutout"

Photos:

IMG_20221117_230017 IMG_20221117_230004

Smartphone:

Other:

Is there a way to manually define the software cutout ? I don't have root but I have adb access (obviously) so perhaps I can do something manually without the need of a fix to the system image ?

saebaryo-xyz commented 1 year ago

Hi, I have exactly the same issue on an ULEFONE Power Armor 13. I tried AOSP, LINEAGE, LEOS and PIXEL, all the same issue. I am suspecting something in the Vendor maybe but not sure. If anyone has an idea how to address would be great, thanks

phhusson commented 1 year ago

You can make an overlay for that, look at http://github.com/phhusson/vendor_hardware_overlay/

18 nov. 2022 08:47:39 saebaryo-xyz @.***>:

Hi, I have exactly the same issue on an ULEFONE Power Armor 13. I tried AOSP, LINEAGE, LEOS and PIXEL, all the same issue. I am suspecting something in the Vendor maybe but not sure. If anyone has an idea how to address would be great, thanks

— Reply to this email directly, view it on GitHub[https://github.com/phhusson/treble_experimentations/issues/2475#issuecomment-1319655872], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AAAA4OTMY5WF3P7TG4M7OSTWI4YBXANCNFSM6AAAAAASD36LAA]. You are receiving this because you are subscribed to this thread.[Image de pistage][https://github.com/notifications/beacon/AAAA4OSA5S3QO3ACPILKP33WI4YBXA5CNFSM6AAAAAASD36LACWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSOVBM4A.gif]

saebaryo-xyz commented 1 year ago

Thanks @phhusson glad to talk to you! How can I make one please? Or use existing one (MTK for instance)? Merci infiniment!

Loxymore commented 1 year ago

Thanks @phhusson, as far as I understand I need to apply the config.xml file to my phone (the one that has the default cut out attribute), but how do I do that ? After installing the treble app, a new "Customize" option appeared in the treble settings. Do I need to put the app in the same directory as the "values" and "values-land" folder before installing?

saebaryo-xyz commented 1 year ago

Salut @phhusson sorry to vother you. Any chance you have a guide how to fix make and then apply the overlay please?

randomuser0151 commented 1 year ago

I'm suffering with the same issue, I'm using Samsung A11 - so far it only happens in Android 12 builds, in Android 11 it looks fine though.