Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shawn111 committed Apr 24, 2024
1 parent a12ae9e commit 3bcf460
Show file tree
Hide file tree
Showing 4 changed files with 339 additions and 2 deletions.
230 changes: 228 additions & 2 deletions collections/android/README.md
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
---
----
Binary file added collections/android/android-market-share.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added collections/android/termux-screenshot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
111 changes: 111 additions & 0 deletions collections/android/termux/REAMDE.md
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

0 comments on commit 3bcf460

Please sign in to comment.