Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overlay builds fine but doesn't apply - Lenovo Tab M8 #2422

Open
eric-pierce opened this issue Aug 25, 2022 · 0 comments
Open

Overlay builds fine but doesn't apply - Lenovo Tab M8 #2422

eric-pierce opened this issue Aug 25, 2022 · 0 comments

Comments

@eric-pierce
Copy link

I'm running into some interesting challenges while trying to build an overlay for my Lenovo Tab M8:

  1. The latest firmware for my device (Android 10) contains both /system/product/overlay/framework-res__auto_generated_rro_product.apk and /system/framework/framework-res.apk. It looks like the auto_generated version has fewer config.xml settings (100 lines across all 4 XML files) vs the framework-res file (~650 lines across all 4 XML files). I'm not sure which to use, for now I'm using the auto_generated_rro file.

  2. I'm able to pass all tests and build the overlay, but when I upload to my device and restart, I find the following error in logcat:

08-15 12:57:33.346 4025 4025 W PackageManager: Failed to parse /system/product/overlay/treble-overlay-lenovo-tabm8.apk: /system/product/overlay/treble-overlay-lenovo-tabm8.apk (at Binary XML file line #10): does not contain an or

Any help would be appreciated. I'm trying to get the device to recognize my headphones when they're plugged in. I haven't had any success with "adb shell setprop persist.sys.overlay.devinputjack true" or the settings suggested in https://github.com/phhusson/treble_experimentations/wiki/Common-Issues-and-fixes.

I've also tried using "Lesser AudioSwitch" to solve my headphone problem but it doesn't support Android 11.

Any help/pointing me in the right direction would be greatly appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant