GithubHelp home page GithubHelp logo

Modify the kdz/dz files about salt HOT 1 OPEN

steadfasterx avatar steadfasterx commented on August 26, 2024
Modify the kdz/dz files

from salt.

Comments (1)

steadfasterX avatar steadfasterX commented on August 26, 2024

Is it possible to modify the kdz files and upload them to the device?
By modification I mean the rootfs and the vbmeta?
Add some data and recalculate the root hash. Or just disable dm-verity itself.
Could I change the boot.img itself?

all depends on if we talk about a locked or unlocked (i.e. secureboot off). for unlocked devices all the above would be possible while you can can flash partitions directly with SALT then.

so yes it should be possible to modify a kdz (not included in any of the repos I own - iirc) but flashing requires to have it properly signed (which you can't w/o the privkey by LG). Well if it would be that easy.... ;)

Do we know how the LGUP works?

we know a bit about LGup yes. The main things how the LAF protocol works are written here. The way this was reverse engineered was by wireshark while using LGup and a wireshark dissector. you likely need to adapt it for other models but should be straight forward (hopefully). Then you can do your own tests and traces.

Does it do checks on the device itself or maybe just on the host?

all happens between device and sender, no remote host involved (or if then it does not matter at all)

Does it take into account the Antirollback protection?

I guess with "it" you meant LGup?! Anyways the Antirollback protection is something LGup checks before flashing, yes. lglaf itself does not have such a pre-check before flashing directly implemented while SALT makes use of that in other areas though. SALT always fetches the current ARB value and does the same for a KDZ and warns when trying to flash a different ARB level. See also #17 and #41

from salt.

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.