phhusson / treble_experimentations

Notes about tinkering with Android Project Treble
3.35k stars 659 forks source link

[Huawei P20 Lite] Notch not recognized after EMUI 9 update #533

Open dcduarte opened 5 years ago

dcduarte commented 5 years ago

As the title says, after upgrading to EMUI 9 the notch is no longer recognized. The status bar is bigger than it is supposed to be and notification go behind the notch.

I'm using the system-arm64-ab-vanilla-nosu with partition style A/B (A- only doesn't boot anymore after EMUI 9 update) Below are the results of the getprop command getprop.txt

penn5 commented 5 years ago

I guess the overlay has the wrong fingerprint. Please send the output of adb shell getprop

@tadit7

dcduarte commented 5 years ago

I guess the overlay has the wrong fingerprint. Please send the output of adb shell getprop

@TadiT7

I already did. But here it is again getprop.txt

TadiT7 commented 5 years ago

The props we got now:

[ro.odm.build.fingerprint]: [Huawei/Dallas/Dallas_ANE-L21:9/PPR1.180610.011/20190510165912:user/release-keys]
[ro.boot.product.hardware.sku]: [ANE-L21]
[ro.product.odm.device]: [Dallas]
[ro.product.odm.name]: [Dallas]
TadiT7 commented 5 years ago

@Dil3mm4

phhusson commented 5 years ago

so, overlay is matching on

                android:requiredSystemPropertyName="ro.hw.oemName"
                android:requiredSystemPropertyValue="+ANE*"

but ro.hw.oemName doesn't exist in @dcduarte's getprop

Does someone have a getprop of a huawei 8.0 vendor to check the intersection? Perhaps ro.boot.product.hardware.sku works in both cases, who knows?

phhusson commented 5 years ago

My Mate 9 has no odm or sku properties

I can't see a single property that would work both on Pie and Oreo. So I guess I'll add into rw-system.sh a setprop ro.hw.oemName $(getprop ro.boot.product.hardware.sku)