From 1505433aa9a06ce817efa0ac059d5a497bb26d7f Mon Sep 17 00:00:00 2001 From: cfig Date: Sat, 5 Jun 2021 22:44:06 +0800 Subject: [PATCH] Issue #17: known to work with Topway TS10 --- README.md | 1 + doc/layout.md | 5 +---- src/resources/eth0_up.puml | 27 +++++++++++++++++++++++++++ tools/release.mk | 2 ++ 4 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 src/resources/eth0_up.puml diff --git a/README.md b/README.md index 859794bf..368539b7 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,7 @@ Please note that the boot.img MUST follows AOSP verified boot flow, either [Boot | Pixel 3 (blueline) | Google | Y | 11 (RP1A.200720.009,
2020)| [more ...](doc/additional_tricks.md#pixel-3-blueline) | | Pixel 3 (blueline) | Google | Y | Q preview (qpp2.190228.023,
2019)| [more ...](doc/additional_tricks.md#pixel-3-blueline) | | Redmi K30 4G (phoenix[n]) | XiaoMi | Y | 10 | [verified](https://github.com/cfig/Android_boot_image_editor/issues/17#issuecomment-817169307) by @eebssk1 | +| TS10 | Topway | Y | 10 | car headunit, @mariodantas | | Pixel XL (marlin) | HTC | Y | 9.0.0 (PPR2.180905.006,
Sep 2018)| [more ...](doc/additional_tricks.md#pixel-xl-marlin) | | K3 (CPH1955) | OPPO | Y for recovery.img
N for boot.img | Pie | [more](doc/additional_tricks.md#k3-cph1955) | | Z18 (NX606J) | ZTE | Y | 8.1.0 | [more...](doc/additional_tricks.md#nx606j) | diff --git a/doc/layout.md b/doc/layout.md index f870e7f4..bd2e0356 100644 --- a/doc/layout.md +++ b/doc/layout.md @@ -132,11 +132,8 @@ Value at 0x28 is one of {0x00,0x01,0x02,0x03,0x04}, this filed should be read fi +-----------------------------------------------------------+ | (v4 only) | boot signature length | +--------------------------------+--------------------------+ - - padding calculation: | | min(n * page_size - len) | - - + +-----------------------------------------------------------+ ## 3. vendor\_boot.img v3-v4 diff --git a/src/resources/eth0_up.puml b/src/resources/eth0_up.puml new file mode 100644 index 00000000..8f2298ce --- /dev/null +++ b/src/resources/eth0_up.puml @@ -0,0 +1,27 @@ +@startuml +'comment + +autonumber + +box "Framework" +participant "EthernetTracker.java" as EthernetTracker +participant "NetworkManagementService.java" as NetworkManagementService +end box + +EthernetTracker -> EthernetTracker: maybeTrackInterface(eth0) +EthernetTracker -> EthernetTracker: addInterface(eth0) +EthernetTracker -> NetworkManagementService: INetworkManagementService\n::setInterfaceUp(eth0) + +box "Netd" +participant "NetdNativeService.cpp" as NetdNativeService +NetworkManagementService -> NetworkManagementService: setInterfaceConfig(iface, ifcg) +NetworkManagementService -> NetworkManagementService: INetd.interfaceSetCfg(cfgParcel) +NetworkManagementService --[#green]> NetdNativeService: NetdNativeService\n::interfaceSetCfg() +participant "InterfaceController.cpp" as InterfaceController +end box + +entity "kernel" as kernel + +NetdNativeService -> InterfaceController: InterfaceController\n::setCfg(cfg) +InterfaceController -[#green]> kernel: ioctl() +@enduml diff --git a/tools/release.mk b/tools/release.mk index 27af29f6..6358cb6e 100644 --- a/tools/release.mk +++ b/tools/release.mk @@ -22,6 +22,8 @@ endef define gw_win @IF EXIST tools\\bin SET PATH=%PATH%;tools\\bin\n +if "%1" == "check" exit 0\n +if "%1" == "clean" exit 0\n @java -jar bbootimg/bbootimg.jar %* endef export gw gw_win