步骤(小米)
- 安装
adb
,fastboot
- 打开开发者选项,USB调试,OEM解锁
- 解除小米设备锁(Mi Unlock)
adb reboot bootloader
- 安装并启动
recovery
TWRP
启动sideload
adb sideload lineage-17.zip
- 重启完成系统安装
adb sideload open_gapps-arm64-10.0-pico.zip
步骤(Sony)
Newflasher
https://forum.xda-developers.com/t/tool-newflasher-xperia-command-line-flasher.3619426/
XperiFirm
https://forum.xda-developers.com/t/tool-xperifirm-xperia-firmware-downloader-v5-4-0.2834142/
解决驱动问题
https://zadig.akeo.ie/
logd
100% cpu 的问题
1
2
3
4
mount -o rw,remount /
cd /system/bin
mv logd logd.bak
# 重启即可
调整分区大小
1
2
# 查看手机架构
uname -m
进入 recovery
模式
1
adb reboot recovery
安装 parted
, mkfs.ext4
1
2
3
4
5
6
adb push parted /sbin
adb push mkfs.ext4 /sbin
adb shell
cd /sbin
chmod 777 parted
chmod 777 mkfs.ext4
使用 recovery
unmount 需要重新分配的分区,使用 parted
:
1
parted /dev/block/mmcblk0
1
print
1
2
3
4
5
# ...
41 537MB 2550MB 2013MB ext4 system
42 2550MB 2953MB 403MB ext4 cache
43 2953MB 3288MB 336MB ext4 cust
44 3288MB 31.3GB 28.0GB ext4 userdata
删除需要重新分配大小的分区:
1
2
3
4
rm 44
rm 43
rm 42
rm 41
为 system 多分配 1000M
1
2
3
4
mkpart system ext4 537 3550
mkpart cache ext4 3550 3953
mkpart cust ext4 3953 4288
mkpart userdata ext4 4288 31.3G
重命名
1
2
3
4
name 41 system
name 42 cache
name 43 cust
name 44 userdata
完成
1
quit
格式化:
1
2
3
4
mkfs.ext4 /dev/block/mmcblk0p41
mkfs.ext4 /dev/block/mmcblk0p42
mkfs.ext4 /dev/block/mmcblk0p43
mkfs.ext4 /dev/block/mmcblk0p44
使用 TWRP
的 resize
https://forum.hovatek.com/thread-32750.html
Root
magisk
https://magiskmanager.com/
https://github.com/topjohnwu/Magisk
- install Magisk Manager apk
- install Magisk.zip with
TWRP
- install
Magisk Manager.apk
Modules
- Magisk Hide
- Riru (Riru - Core)
- Riru - EdXposed
- Taichi
Shizuku
https://shizuku.rikka.app/
App Ops
https://appops.rikka.app/
Root Explorer
BusyBox
BusyBox
combines tiny versions of many common UNIX
utilities into a single small executable.
BusyBox
has been written with size-optimization and limited resources in mind.
https://busybox.net/about.html
https://busybox.net/downloads/binaries/
https://busybox.net/downloads/BusyBox.html
ru.meefik.busybox
修改 /data/data/ru.meefik.busybox/files/scripts/install.sh
https://github.com/meefik/busybox/issues/93
Linux Deploy
Steps
- Installation settings
- Edit settings
- Install
- Start
Alpine
下载镜像:
http://hub.meefik.ru/rootfs/alpine_arm64.tgz
配置 Linux deploy
Config | Value |
---|---|
Distribution | Alpine |
Architecture | aarch64 |
Distribution suite | lastest stable |
Source path | /storage/emulated/0/alpine_arm64.tgz |
Instalion Type | File |
SSH | enable |
Mounts | enable |
Mount points | /mnt/sdcard:/mnt/sdcard |
Install -> Start
1
ssh root@127.0.0.1
1
2
# sdcard 权限, 重新登录后生效
sudo usermod -a -G aid_everybody android
1
2
3
4
5
6
7
# install zsh oh-my-zsh
# ...
# install nodejs
apk add nodejs
# install python3
apk add python3 pip3
pip install ipython
安装 Github Pages (较占空间,不建议安装)
1
2
3
4
# install github pages
apk add ruby
apk add build-base ruby-deb libffi-dev
gem install bundler jekyll github-pages
修复登录问题
1
2
chmod +x /etc/sudoers
chmod 755 /
配置文件位置
1
/data/data/ru.meefik.linuxdeploy/files/config
https://github.com/meefik/linuxdeploy/wiki/How-to-use-application
https://www.maketecheasier.com/install-ubuntu-on-android-linux-deploy/
https://cloud.tencent.com/developer/article/1159975
JuiceSSH
https://juicessh.com/features
Xposed
Xposed is a framework for modules that can change the behavior of the system and apps without touching any APKs.
https://github.com/ElderDrivers/EdXposed
- Install
Magisk
- Install
Riru-Core
fromMagisk
repo. - Download and install
EdXposed
inMagisk Manager
. - Install
EdXposed Manager.apk
.
WebViewDebugHook
force webview Debug
https://github.com/feix760/WebViewDebugHook
Recovery
TWRP
https://twrp.me/
ROMs
https://lineageos.org/
https://forum.xda-developers.com/
Install
1
2
3
adb reboot bootloader
fastboot flash recovery twrp-3.3.x.x-xxx.img
fastboot boot twrp-3.3.x.x-xxx.img
找到对应的机型:
https://twrp.me/Devices/
GApps
https://opengapps.org/
https://github.com/opengapps/opengapps/wiki/Package-Comparison
Apps | pico | nano | micro | mini | full |
---|---|---|---|---|---|
Google Play Services | x | x | x | x | x |
Google Play Store | x | x | x | x | x |
Google System Base | x | x | x | x | x |
Apps
Termux
Gboard
- 支持多种语言 (中文,英文,日文)
- 悬浮窗/单手
- 支持双拼
-
支持滑动输入
- Spacebar as Trackpad
- swope left or right on the spacebar
- Quickly delete multiple words
- swipe delete key
- Capitalize words Easily
- swipe from the
Shift
key
- swipe from the
- Quickly enter symbols
- swipe from the
?123
key
- swipe from the
Power Menu controls
(Android 12 不再支持)
- 长按电源键启动
- 可以打开手电筒
Icon Pack
- 默认图标变得更好看
Shortcut Maker
- 可通过
widget
的方式定制图标 - 支持 Icon Pack
- 历史功能
欧路词典
- 内存占用小
- 无广告
- 查词记录
- 例句库
- 支持扩展离线词典
Firefox
- 可以以音频的形式播放 YoouTube 的视频。
IceRaven
Eruda
Console for Mobile Browsers.
https://eruda.liriliri.io/
https://github.com/liriliri/eruda
- eruda-dom
- 多端同步
- 英文 tts 效果极好
Package Manager
com.smartpack.packagemanager
- 列出包名
- 提取
Apk
- 读取
manifast.xml
- 读取其他资源
KWGT
Telegram
几何天气
李跳跳
Zerotier
KDE Connect
Store
酷安
F-Driod
Launcher
Android 11
上所有的第三方 Launcher 都会有闪烁问题,暂时无解,等待谷歌更新。
微软桌面
- 负一屏
- 快捷栏
- 支持分屏
- 编辑图标
Poco & Mint
-
接近 MIUI
-
不支持分屏
Smart
Tips
手势
双指右滑触发 App 的侧边菜单
从右下角斜向上滑动
在最低部左右滑动切换 App
Xiaomi
Android
Android 12
- Material You
- Redesigned widgets
- Approximate location
Android 11
- One-time permissions
- Scoped storage
- Screen recorder
Android 10
- Multi-Window Support
- Full Screen Gesture
- Dark Theme
- Privacy for users
- more control over location data
- native MIDI API
- …
Android 9 (Pie)
- Power Management
- Multi-camera support
Android 8 (Oreo)
- Picture in Picture
- Multi-display support
- Neural Networks API
Android 7 (Naugat)
- Split-screen
- Quick Setting above notifications
fastboot
1
2
3
fastboot devices
fastboot getvar all
fastboot oem device-info
ROM
There are mainly six partitions in android:
- Boot - contains ramdisk and kernel
- Recovery
- System - contains the entire Android OS
- Data - contains the user’s data
- Cache
- Misc