-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
339 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,229 @@ | ||
# Android related | ||
--- | ||
theme: | ||
override: | ||
footer: | ||
style: template | ||
center: "Enable Linux Power with Android" | ||
right: "{current_slide} / {total_slides}" | ||
|
||
hello | ||
|
||
--- | ||
|
||
# Andriod | ||
|
||
|
||
Android is Linux | ||
--- | ||
|
||
- termux - an Android terminal emulator and Linux environment app | ||
- scrcpy - "screen copy" mirrors Android devices | ||
- scrcpy desktop | ||
- waydriod - android container | ||
|
||
----- | ||
<!-- end_slide --> | ||
|
||
https://gs.statcounter.com/os-market-share | ||
|
||
![https://gs.statcounter.com/os-market-share](android-market-share.png) | ||
|
||
----- | ||
<!-- end_slide --> | ||
|
||
# Android is Linux/bionic Distro | ||
|
||
- Android 啟動過程 - init 進程 https://hackmd.io/pJpAeKAeRea0VIW3oI-mXw?view | ||
- https://hackmd.io/@AlienHackMd/BkvyAzNf9 | ||
- The Generic Kernel Image (GKI) project | ||
- kernel module interface (KMI) | ||
- bionic libc (native part) - ndk | ||
- BSD license / Small size / Speed | ||
- android runtime (java part) - sdk | ||
- adb (android debug bridge) shell | ||
|
||
----- | ||
<!-- end_slide --> | ||
|
||
# termux | ||
|
||
![https://pbs.twimg.com/media/EeDRB0aX0AMj5kh?format=jpg&name=large](termux-screenshot.jpg) | ||
|
||
|
||
|
||
----- | ||
<!-- end_slide --> | ||
|
||
# termux application (main parts) | ||
- single user | ||
- native (bionic libc) | ||
- terminal-emulator | ||
- terminal-shared | ||
- shell | ||
- socket | ||
- am (Activity Manager) | ||
- notification | ||
|
||
----- | ||
<!-- end_slide --> | ||
|
||
# termux packages | ||
|
||
- format - binary deb packages | ||
- package manager: pkg / apt | ||
- single source repo: https://github.com/termux/termux-packages | ||
- native (bionic libc) | ||
- termux file system layout | ||
- https://github.com/termux/termux-packages/wiki/Termux-file-system-layout | ||
- repos / mirrors: | ||
- termux | ||
- termux-root | ||
- termux-x11 | ||
- tut (others) | ||
|
||
----- | ||
<!-- end_slide --> | ||
|
||
## proot: An chroot-like implementation using ptrace. | ||
- General usage information | ||
- unset LD_PRELOAD - Termux-exec, execve() hook, conflicts with PRoot. | ||
- -r ./rootfs - option to specify the rootfs where Linux distribution was installed. | ||
- -0 - tells PRoot to simulate a root user which expected to be always available in Linux distributions. This option will allow you to use package manager. | ||
- -b /dev -b /proc -b /sys - make file systems at /dev, /proc, /sys appear in the rootfs. These 3 bindings are important and used by variety of utilities. | ||
- /bin/sh - a program that should be executed inside the rootfs. Typically a shell. | ||
|
||
----- | ||
<!-- end_slide --> | ||
|
||
## proot-disto git@github.com:termux/proot-distro.git | ||
|
||
``` | ||
proot-distro install debian | ||
proot-distro login debian | ||
```` | ||
` | ||
- ubuntu / redhat | ||
- nix | ||
----- | ||
<!-- end_slide --> | ||
# termux api | ||
- termux-sms-send | ||
----- | ||
<!-- end_slide --> | ||
### other plugins | ||
- Termux:API | ||
- Termux:Boot | ||
- Termux:Float | ||
- Termux:Tasker | ||
----- | ||
<!-- end_slide --> | ||
### build app in termux | ||
https://sdrausty.github.io/docsBuildAPKs/ | ||
https://gist.github.com/tmatz/817bf03433e059bf89c63dc33f286ccb | ||
----- | ||
<!-- end_slide --> | ||
## termux-rust / android rust | ||
### Tier 2 with Host Tools | ||
### Tier 2 without Host Tools | ||
* aarch64-linux-android | ||
* x86_64-linux-android | ||
https://doc.rust-lang.org/nightly/rustc/platform-support.html | ||
----- | ||
<!-- end_slide --> | ||
## termux-setup-storage | ||
----- | ||
<!-- end_slide --> | ||
## termux- services / runit | ||
``` | ||
pkg install termux-services | ||
``` | ||
----- | ||
<!-- end_slide --> | ||
## ssh | ||
https://blog.csdn.net/Billhe_zju/article/details/122706171 | ||
----- | ||
<!-- end_slide --> | ||
## cli / tui - old school but fashion | ||
https://blog.csdn.net/Billhe_zju/article/details/122706171 | ||
----- | ||
<!-- end_slide --> | ||
## termux-docker | ||
----- | ||
<!-- end_slide --> | ||
## scrcpy | ||
----- | ||
<!-- end_slide --> | ||
## scrcpy-desktop | ||
----- | ||
<!-- end_slide --> | ||
### android desktop | ||
- samsung dex / moto ready for | ||
- Linux on DeX (dead) | ||
- desktop mode / android 15 | ||
----- | ||
<!-- end_slide --> | ||
# waydroid | ||
LXC | ||
----- | ||
<!-- end_slide --> | ||
---- | ||
Happy Hacking All Your Linux Devices | ||
--- | ||
Thank you | ||
--- | ||
---- |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
--- | ||
theme: | ||
override: | ||
footer: | ||
style: template | ||
center: "Enable Linux Power with Android" | ||
right: "{current_slide} / {total_slides}" | ||
|
||
|
||
--- | ||
|
||
Outline | ||
--- | ||
|
||
- termux - an Android terminal emulator and Linux environment app | ||
- scrcpy - "screen copy" mirrors Android devices | ||
- scrcpy desktop | ||
|
||
----- | ||
<!-- end_slide --> | ||
|
||
# Android is Linux-based | ||
|
||
- Android 啟動過程 - init 進程 https://hackmd.io/pJpAeKAeRea0VIW3oI-mXw?view | ||
- https://hackmd.io/@AlienHackMd/BkvyAzNf9 | ||
- The Generic Kernel Image (GKI) project | ||
- kernel module interface (KMI) | ||
- bionic libc (native part) - ndk | ||
- BSD license / Small size / Speed | ||
- android runtime (java part) - sdk | ||
- adb (android debug bridge) shell | ||
|
||
----- | ||
<!-- end_slide --> | ||
|
||
# termux application (main parts) | ||
|
||
- | ||
- single user | ||
|
||
|
||
----- | ||
<!-- end_slide --> | ||
|
||
# termux packages | ||
|
||
- native (bionic libc) | ||
- termux file system layout | ||
- https://github.com/termux/termux-packages/wiki/Termux-file-system-layout | ||
|
||
----- | ||
<!-- end_slide --> | ||
|
||
## proot | ||
|
||
----- | ||
<!-- end_slide --> | ||
|
||
## supprot distros | ||
|
||
----- | ||
<!-- end_slide --> | ||
|
||
## other repos | ||
|
||
- tut | ||
- termux-root | ||
- termux-x11 | ||
|
||
----- | ||
<!-- end_slide --> | ||
|
||
|
||
# termux api | ||
- termux-sms-send | ||
|
||
----- | ||
<!-- end_slide --> | ||
|
||
|
||
|
||
### other plugins | ||
- Termux:API | ||
- Termux:Boot | ||
- Termux:Float | ||
- Termux:Tasker | ||
|
||
----- | ||
<!-- end_slide --> | ||
|
||
### build app in termux | ||
https://sdrausty.github.io/docsBuildAPKs/ | ||
https://gist.github.com/tmatz/817bf03433e059bf89c63dc33f286ccb | ||
|
||
## termux-setup-storage | ||
|
||
## termux- services / runit | ||
|
||
``` | ||
pkg install termux-services | ||
``` | ||
|
||
## ssh | ||
|
||
|
||
|
||
|
||
https://blog.csdn.net/Billhe_zju/article/details/122706171 | ||
|
||
|
||
## termux-docker |