Skip to content

Commit

Permalink
Issue cfig#17: known to work with Topway TS10
Browse files Browse the repository at this point in the history
  • Loading branch information
cfig authored and MNoxx74 committed Jun 14, 2021
1 parent 69afc64 commit 9258001
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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, <Br>2020)| [more ...](doc/additional_tricks.md#pixel-3-blueline) |
| Pixel 3 (blueline) | Google | Y | Q preview (qpp2.190228.023, <Br>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, <Br>Sep 2018)| [more ...](doc/additional_tricks.md#pixel-xl-marlin) |
| K3 (CPH1955) | OPPO | Y for recovery.img<Br> 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) |
Expand Down
5 changes: 1 addition & 4 deletions doc/layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,8 @@ Value at 0x28 is one of {0x00,0x01,0x02,0x03,0x04}, this filed should be read fi
+-----------------------------------------------------------+
|<boot signature> (v4 only) | boot signature length |
+--------------------------------+--------------------------+

padding calculation:
|<padding> | min(n * page_size - len) |


+-----------------------------------------------------------+

## 3. vendor\_boot.img v3-v4

Expand Down
27 changes: 27 additions & 0 deletions src/resources/eth0_up.puml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions tools/release.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9258001

Please sign in to comment.