Android: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 33: | Line 33: | ||
Android partition | Android partition | ||
{| class="wikitable" | {| class="wikitable" | ||
! | ! | ||
! | ! | ||
|- | |- | ||
|boot | |boot | ||
| | |linux kernel, device tree and initramfs | ||
|- | |- | ||
|system | |system | ||
| | | | ||
|- | |- | ||
|recover | |recover | ||
| | | | ||
|} | |} | ||
| Line 76: | Line 63: | ||
| | | | ||
|} | |} | ||
netcfg | |||
adb sync | |||
adb install -r foo.apk | |||
adb connect <ip:port> | |||
on target | |||
<code>su setprop service.adb.tcp.port 5555 stop adbd start adbd</code> | |||
== References == | == References == | ||
Revision as of 20:56, 24 July 2017
Android is an Operating System.
Android Build System[1]
The Android Build System, similarly to Buildroot, is a set of build scripts (.mk files, bash scripts) used to build Android.
At the root of the Android Build System, the first thing to do is to set-up the environment: source build/envsetup.sh.
Thus, commands will be available to start the build.
| Command | Comments |
|---|---|
| croot | Jump back to the root directory |
| godir | Jump into the directory specified as a parameter |
| mm | Compile the program in the current directory |
| mm -B | Clean and compile the program in the current directory |
| lunch | Select the target to build |
| make kernelimage | Compile the kernel only |
Android partition
| boot | linux kernel, device tree and initramfs |
| system | |
| recover |
Fastboot
Fastboot is a protocol used to communicate to the bootloader of an Android device.
The bootloader should support the fastboot protocol.
| Command | Commands |
|---|---|
| flash | flash system system.img |
| continue | leave the fastboot mode in the bootloader |
| boot |
netcfg
adb sync
adb install -r foo.apk
adb connect <ip:port>
on target
su setprop service.adb.tcp.port 5555 stop adbd start adbd