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

support direct flashing (kdz) #41

Open
4 of 8 tasks
steadfasterX opened this issue Aug 31, 2023 · 1 comment
Open
4 of 8 tasks

support direct flashing (kdz) #41

steadfasterX opened this issue Aug 31, 2023 · 1 comment

Comments

@steadfasterX
Copy link
Owner

steadfasterX commented Aug 31, 2023

SALT should allow flashing a KDZ while in download mode.

Requirements:

  • a secureboot off / unlocked device*

(*)The goal was always to allow flashing for locked devices, too. Flashing will work perfectly fine as long as your LAF protocol version is v100002 or lower but on later versions more work is required to workaround the new implemented protocol checks.

The whole implementation is W.I.P (while there is no one actually working on it atm) and should NOT be used until finished.

The following is required to finish the implementation:

  • pre-check ARB on device
  • extract KDZ + DZ
  • pre-check ARB of the chosen KDZ
  • warn user about any diff between those ARB's
  • detect/get/.. (how ?/ where?) what partitions of the KDZ should be flashed[1]
  • offer option to factory reset (wipe userdata + keystore)
  • flash all good partitions
  • verify flashing + warn if smth failed

[1] The most critical part because it differs between devices and sometimes models. There must be a way to identify which partitions are required or as a workaround flash only known partitions. The latter will require to make known lists of partitions for each device/model and warn / abort if there is none. not very useful but the only way to avoid bricks which can happen very easily if a partition is named slightly different etc.

If you still want to experiment with that (you have been warned) enable flashing support with:

./salt --experimental

then choose Flash (kdz)
note: for Flash (folder) see #17

image

@cuynu
Copy link

cuynu commented Dec 4, 2023

still waiting for this be usable

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

No branches or pull requests

2 participants