nia-e / sdm845-abootctl Goto Github PK
View Code? Open in Web Editor NEWUtility to control boot slots on OnePlus SDM845 devices from mainline Linux
License: GNU General Public License v3.0
Utility to control boot slots on OnePlus SDM845 devices from mainline Linux
License: GNU General Public License v3.0
SlotInfo
struct is not guaranteed to be correctly formatted and bits may be misplaced. Ensure it is before actually using it by testing on actual devices.
Support other partitions, don't require that both boot partitions be written.
It would probably also be worth moving the write_inplace
/ flush out of the function so flushing can be handled by the caller.
Also, there is a bug, the partitition map keys are the partition number, not the name https://github.com/ai-b-z/sdm845-abootctl/blob/master/src/partitions.rs#L76
https://docs.rs/gpt/2.0.0/gpt/struct.GptDisk.html#method.partitions
For this to be a reliable, useful tool there's a few things that I think we need:
Whilst the API there isn't idea, it works exactly as intended, we should support exactly the same behaviour as Android, this avoids duplicating documentation and creating confusion for users. It ensures that at a bare minimum we can ensure the same functionality as Android.
Extra functionality is useful but non-essential.
It's important that we are SURE that we are implementing correct functionality, this tool could easily brick a device if it doesn't do exactly what it is meant to. We should have unit tests for all functions that mess with bits to ensure they work as intended (github actions, or gitlab CI).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.