lazybox: support settings dump

dev
cfig 10 months ago
parent 5835158b3f
commit 979a9b9f77
No known key found for this signature in database
GPG Key ID: B104C307F0FDABB7

@ -0,0 +1,29 @@
## Test set up
source code and release package
## boot.img
## ota.zip
platforms: macOS, Linux
specify the partition to extract:
"-Dpart=XXX"
* jdk: java 11
* wrapper script
should be compatible with "/usr/bin/env sh"
## dtbo
[multiple dtb](https://source.android.com/docs/core/architecture/dto/multiple)
## TODO: command line usage
unpack
```
abe unpack boot.img
```
pack
```
abe pack
```

@ -125,6 +125,15 @@ makeTar("%s", "%s")
File("config.gz").deleteOnExit()
File("config").deleteOnExit()
}
FileOutputStream("$prefix/4_setting").use { fos ->
fos.write("[global]\n".toByteArray())
runAndWrite("adb shell settings list global", fos, false)
fos.write("\n[system]\n".toByteArray())
runAndWrite("adb shell settings list system", fos, false)
fos.write("\n[secure]\n".toByteArray())
runAndWrite("adb shell settings list secure", fos, false)
}
"adb pull /proc/device-tree".check_call(prefix)
Files.move(Paths.get("$prefix/device-tree"), Paths.get("$prefix/device_tree"))

Binary file not shown.

Binary file not shown.

Binary file not shown.
Loading…
Cancel
Save