Giter VIP home page Giter VIP logo

Comments (3)

phhusson avatar phhusson commented on June 20, 2024

from vendor_hardware_overlay.

j4ger avatar j4ger commented on June 20, 2024

I get your frustrations buddy, I've been there before. Being such a niche product family, little resource and community can be found for this device, making further development somewhat tricky. Sony is kind enough to provide the SODP repos but I couldn't find too much useful config out of it (you could probably make use of power_config.xml but I wasn't able to see the difference before and after applying it).
Anyways I searched around and was able to get in touch with a previous maintainer of the device who shared his version of the device tree, which took a lot of testing and porting to create (it was initially a fork of the device tree for a Oneplus device and I believe they tested out the appropriate configurations for the current device). I used the values in that tree and made the overlay. A lot of other config items were applied but wasn't necessary for auto-brightness.
Unfortunately I searched Github and had no luck finding a existing open device tree repo for pdx213 (except for the one by Sony) which means you'll have to either make your own tree or try to find existing but private ones. I see Sjll (on xda and github) has been releasing roms for pdx213, see if you can contact him and get some help.
Another choice that sits somewhere in the middle is to find existing configs for device with similiar display panel (I doubt there's any device with the exact same panel) or its siblings (maybe even start with values from my overlay) and tweak it to an appropriate set. This could involve a lot of flashing and testing so be prepared.
As for unpacking Sony roms, you can easily see the partitions in .sin files and you need to further unpack those. Go search for a tool named UnSin on xda and follow the guide there. You'll probably need more tools such as lpunpack, ext2rd, etc, depending on which partiton you want to check out. I was able to extract framework-res.apk from system partition but found no configs related to brightness values so good luck with that.

from vendor_hardware_overlay.

pepijndevos avatar pepijndevos commented on June 20, 2024

I have indeed found that unsin will allow me to mount the firmware image, but as you said it only seems to contain the power config and not the config file that controls the stuff of interest like auto brightness.

At first glance it looks like Sony also did not provide the relevant config on their github but ada12 pointed out that the bulk of the config lives in https://github.com/sonyxperiadev/device-sony-common/blob/master/overlay/frameworks/base/core/res/res/values/config.xml with only device-specific extension in https://github.com/sonyxperiadev/device-sony-pdx213/blob/master/overlay/frameworks/base/core/res/res/values/config.xml so that's the route I'm trying to take. Let's see if it actually works.

Current progress is in #413

from vendor_hardware_overlay.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.