admin 管理员组文章数量: 887021
##################################################
目录
Android 启动流程解析
安卓设备硬件简介
手机处理器 SoC
CPU 中央处理器
GPU 图形处理器
ISP 图像信号处理器
MODEM 通信处理器
基带处理器
ROM 内存容量与 ROM 固件概念
RAM 运行内存
安卓分区扫盲
分区的概念
Bootloader 引导加载器分区
Fastboot 线刷模式
Recovery 分区以及 Recovery 恢复出厂模式
Modem 分区
安卓系统简要启动流程
Android 正常启动流程
Android 软件系统架构
安卓系统架构一览
安卓软件系统架构详解
Android 操作系统常见目录解析
system 分区常见目录
/system/bin 与 /system/xbin 目录
/system/media 和 /system/media/audio 目录
/system/app 跟 /system/priv-app 目录
/system/etc
/system/fonts
/system/lib
/system/framework
/system/build.prop
data 分区和 cache 分区
/data/data 目录
/data/app 目录
/data/misc 目录
/data/local/tmp 目录
/data/anr/traces.txt 文件与 /data/system/dropbox/*.txt 文件们
/data/location/gps 目录和 /data/system/location/ 目录以及 /data/property/ 目录
SD 卡目录
安卓系统分区操作
安卓系统查看磁盘使用情况
查看根分区目录
df -h 常用查看存储情况
df -ah 查看所有存储情况
查看分区数量
df 的 h 参数单独查看加载节点
查看分区表和分区名称的匹配关系
查看各分区容量
查看硬件信息和系统属性
查看设备
安卓系统对分区进行格式化及挂载操作
fdisk 命令竟然报错
lsusb 或 lsusb2 命令查看 usb 设备
格式化分区命令 mkfs.文件系统
mount 挂载 U 盘设备后就能操作了
umount 卸载 USB 设备
##################################################
Android 启动流程解析
——————————
安卓设备硬件简介
手机的硬件设备和电脑一样 都需要不同的零部件拼装而成 只不过手机零部件相比于电脑零部件来说更精密
手机必备的零部件包括:
CPU 处理器
RAM 运存
ROM 内存
GPU 处理器
屏幕
摄像头
电池容量
网络模块
等等
%%%%%
手机处理器 SoC
手机芯片名为 SoC/System on Chip/系统级芯片 也有称片上系统
意指它是一个产品 是一个有专用目标的集成电路
可能很多人平时将她称为 CPU/中央处理器
其实手机的处理器并不只是 CPU 而是一个片上系统
一颗手机处理器包括了
CPU
GPU
基带
ISP
等众多单元 而这些单元集成在一起便是 SoC !!!
手机上的 soc 一般使用 ARM 架构
ARM 架构由 ARM 公司研发
ARM 公司会将 ARM 公版架构授权给芯片设计公司
由芯片设计公司对公版架构进行定制、改进以及最后的发布
%%%%%
CPU 中央处理器
就是跟电脑一样的中央处理器
手机 soc 的 CPU 一般会有 6 个或 8 个核心
分为性能核心和能效核心
性能核心频率较高 架构较先进 主要应对手机需要处理大型任务的时候 同时耗电较多
能效核心一般频率较低 架构较低级 主要用于日常的用户使用
现在来看几组 CPU 常用的丛集 常用为
1+3+4
4+4
2+6
2+4
CPU 和电脑的 CPU 概念也差不多
手机 CPU 好坏对系统是否能够流畅运行影响很大
CPU 的功能包括
顺序控制
操作控制
时间控制
数据处理
计算机指令解释
计算机软件中的数据处理
计算机中的所有操作都由 CPU 读取解码并执行指令
很多 CPU 都可以超频工作 需刷机 root
%%%%%
GPU 图形处理器
CPU 主要负责逻辑指令的执行和处理
但是当 CPU 遇到大量的简单计算时复杂的逻辑处理反而会降低运行效率
那这大量的简单计算究竟交给谁呢 那就是 GPU
GPU 主要负责图形渲染等计算工作 减轻 CPU 负担 增强游戏体验
%%%%%
ISP 图像信号处理器
我们平时用手机拍照录像的图像信号都会由 Image Signal Processing/ISP 进行处理
目前 ISP 芯片分为两种
一种是集成式 她跟 CPU、GPU 基带等一起集成在 soc 中
另一种是独立式 其拥有明显的优势 在图像处理能力和成像质量上都更加优秀
而且独立 ISP 一般是手机厂商根据不同机型的摄像硬件定制 也能更好的发挥出手机相机的实力
%%%%%
MODEM 通信处理器
手机除了普通的 CPU 芯片以外 还有 MODEM 处理器芯片
该芯片的功能就是实现手机必需的通信功能
%%%%%
基带处理器
手机基带又称为 Radio 是手机中的一块电路
主要的作用是负责完成移动网络中无线信号的解调、解扰、解扩和解码的工作
手机通常由两大部分电路组成
一部分是高层处理部分 另一部分就是基带
基带英文全称 Baseband/信源 信息源也称 发终端
发出的没有经过 调制/进行频谱搬移和变换 的原始电信号所固有的 频带/频率带宽 称为基本频带 简称基带
简单来说手机处理器负责处理信息
而我们上网或通话时无线信号的收发均由基带完成
基带也分为集成式和外挂式
在骁龙 888 之前 高通骁龙 8 系一直使用的是外挂基带
这是因为骁龙 865 及以前的处理器均使用的是 7nm 以上制程 处理器内部寸土寸金
如果要保证 soc 的面积大小不变强行把基带集成进 soc 那必然会带来性能的牺牲
而如今的骁龙 888 使用了 5nm 制程 使得 soc 在相同面积内能容纳下更多的晶体管
所以高通这次就把基带集成进了 soc
基带芯片是指用来合成即将发射的基带信号或对接收到的基带信号进行解码的芯片
具体地说 就是发射时 把语音或其她数据信号编码成用来发射的基带码
接收时 把收到的基带码解码为语音或其她数据信号
主要完成通信终端的信息处理功能
%%%%%
ROM 内存容量与 ROM 固件概念
ROM 手机内存容量即手机内部存储空间 和电脑的硬盘可以说是一个概念
ROM 的大小 影响手机内部可以放多少东西
个人觉得最好软件装 ROM 里 媒体文件等等放手机内存卡里
ROM 固件和 ROM 内存不是一个概念
就是各大论坛上说的固件 可以简单理解为刷入的系统 就像从网上下的 .iso 系统镜像
在 Android 系统领域里有原生的 Android 系统 现在大多数 Android 手机厂商的出厂手机都是原生的
还有基于原生系统上的优化系统 OS 等等
可以这样理解 原生的 Android 系统就像原版的 XP
优化系统就相当于 雨林木风版、深度版 XP 等等
一般而言 后者都要比原生的 Android 系统具有更良好的性能
而且有些差别很大 要比官方的系统在性能上好很多
当然也有其她的一些缺点,比如没有原生系统稳定 这点在中低端手机会特别明显
%%%%%
RAM 运行内存
简称运存
这个和电脑的内存差不多
RAM 的大小影响手机可以同时运行多少软件 尤其是特别占运存的软件
——————————
安卓分区扫盲
如果没有安卓分区知识 建议看一下这篇文章:
[探索 Android 设备分区]-安卓手机分区扫盲!折腾狂必看~~_燃吹的博客-CSDN博客_手机分区安卓系统是怎么分区的?用户权限扫盲/为什么需要 root 手机示例获取安卓 5.0.2手机信息以及系统分区详解安卓 6.0 系统分区传统安卓的 non-A/B 分区传统分区介绍传统系统升级方案安卓 7.0 之后的A/B 和 VAB 分区结构A/B 主备分区A/B 分区的系统升级方式以及优缺点A/B 分区结构虚拟 AB 分区安卓 10 之后的动态分区Shared System Image/SSI 概念动态分区和super 概念示例一个 Android 10 的默认分区方案...https://blog.csdn/m0_67268286/article/details/125128226
下面主要是介绍了一下 Android 手机的硬软件结构以及主要分区的内容并简要的介绍了一些开机启动的过程
%%%%%
分区的概念
可以简单的把手机的 ROM 存储类比为我们电脑上的硬盘
这个硬盘被分成了几个分区:
bootloader 分区
boot 分区
system 分区
等等
所谓的刷机我们可以简单的理解成把软件安装在手机的某些分区中类似于我们在电脑上安装 Windows 系统到 C 盘
注意盘符的概念是微软创造的 盘符那一套在这里不适用 而是 Android 是基于 Linux 的挂载概念
Android 的主要分区:
BootLoader 分区
Boot 分区
Recoverty 分区
System 分区
Data 分区
Modem 分区
%%%%%
Bootloader 引导加载器分区
当按下电源键手机上电启动后,首先从 bootloader 分区中一个固定的地址开始执行指令
bootloader 就是 Android 版本的的 BIOS !!!
bootloader 分区分成两个部分,分别叫做
primary bootloader/主引导加载程序
secondary stage bootloader/二级引导加载程序
bootloader 的 primary bootloader 部分主要执行硬件检测 确保硬件能正常工作
然后将 secondary stage bootloader 拷贝到 内存/RAM 相应位置开始执行
Secondary stage bootloader 会进行一些硬件初始化工作 例如获取内存大小信息等 然后根据用户的按键进入到某种启动模式
比如说大家所熟知的通过电源键和其她一些按键的组合进入到 recovery、fastboot、 或者选择启动模式的启动界面以及进入工厂模式等等
我们在各大论坛上看到的 bootloader 通常指的就是 secondary stage bootloader
不过我们不需要关心太多的细节 可以简单的理解为 bootloader 就是一段启动代码 根据用户按键有选择的进入某种启动模式
%%%%%
Fastboot 线刷模式
fastboot 是 Android 定义的一种简单的刷机协议
用户可以通过 fastboot 命令行工具通过 USB 来进行刷机
例如:
fastboot flash boot boot.img /* 把 boot.img 的内容刷写到 boot 分区中 */
一般的手机厂商不直接提供 fastboot 模式刷机 而为了显示她们的 NB 之处总是会提供自己专有的刷机工具和刷机方法
比如说三星的 Odin 摩托的 RSD 华为的粉屏等等
但是其本质实际上是相同的 都是将软件直接 flash 到各个分区中
这种通常称为线刷 是比较原始的方法
当手机处于开不了机的情况下 可以使用相应厂家提供的工具进行刷入
不过需要注意的是 有一些机型无法修改 boot 分区!
%%%%%
Recovery 分区以及 Recovery 恢复出厂模式
recovery 是 Android 定义的一个标准刷机协议
当进入 recovery 模式时 Secondary stage bootloader 从 recovery 分区开始启动
recovery 分区实际上是一个简单的 Linux 系统
当内核启动完毕后 开始执行第一个程序 init
init 程序是 Linux 系统所有程序的老祖宗
init 会启动一个叫做 recovery 的程序
recovery 模式的名称也由此而来
通过 recovery 程序用户可以执行清除数据、安装刷机包等操作
一般的手机厂商都提供一个简单的 recovery 刷机 多数只能进行 upate 的操作 不能进行卡刷
如果想要自已卡刷 则需要事先刷入第三方的 Recovery 然后选择刷机包
大名鼎鼎的 CWM Recovery 就是一个加入了很多增强功能的 recovery
要想用上 CWM Recovery 前提是 recovery 分区可以被刷写
大家在论坛上看到的解锁 bootloader 通常指的就是解锁 recovery 或 fastboot 允许刷写 recovery 分区
这样大家就可以用上喜爱的 CWM Recovery 了!
%%%%%
Modem 分区
实现手机必需的通信功能
大家通常所刷的 RADIO 就是刷写 modem 分区
在所有适配的 ROM 中这部分是不动 否则会造成通话不稳定
——————————
安卓系统简要启动流程
你有没有想过当我们按下电源键开机到进入到桌面到底是个什么样的过程呢?
%%%%%
Android 正常启动流程
当我们只是按下电源键开机时 会进入正常启动模式
Secondary stage bootloader/二级引导加载程序 会从 boot 分区开始启动
Boot 分区的格式是固定的
首先是一个头部
然后是 Linux 内核
最后是用作根文件系统的 ramdisk
一般针对每个机型的完整刷机包中会有一个 boot.img 文件 这就是 boot 分区镜像文件
当 Linux 内核启动完毕后 就开始执行根文件系统中的 init 程序
init 程序会读取启动脚本文件
init.rc
init.*.rc
下面是我安卓中的 init 文件:
-rwxr-x--- 1 root root 1.4M 1970-01-01 08:00 init
-rwxr-x--- 1 root root 1.1K 1970-01-01 08:00 init.environ.rc
-rwxr-x--- 1 root root 29K 1970-01-01 08:00 init.rc
-rwxr-x--- 1 root root 15K 1970-01-01 08:00 init.recovery.amlogic.rc
-rwxr-x--- 1 root root 7.5K 1970-01-01 08:00 init.usb.configfs.rc
-rwxr-x--- 1 root root 5.5K 1970-01-01 08:00 init.usb.rc
-rwxr-x--- 1 root root 511 1970-01-01 08:00 init.zygote32.rc
Android 内核挂载到
/nfsroot/androidfs
之后根据
init.rc
init.goldfish.rc
来初始化并装载系统库和相应程序等 直到开机完成
init.rc 脚本包括了文件系统初始化、装载的许多过程
init.rc 的工作主要是:
设置一些环境变量
创建 system、sdcard、data、cache 等目录
把一些文件系统 mount 到一些目录去
设置一些文件的用户群组、权限
设置一些线程参数
设置 TCP 缓存大小
启动脚本文件的格式大家可以在网上找到很多参考资料 这里就不列出了
根文件系统中有一个重要的配置文件
cmcc_jiangsu:/ # ls default.prop -alh
lrwxrwxrwx 1 root root 23 1970-01-01 08:00 default.prop -> system/etc/prop.default
cmcc_jiangsu:/ #
该文件的内容如下:
cmcc_jiangsu:/ # cat default.prop
#
# ADDITIONAL_DEFAULT_PROPERTIES
#
ro.build.version.release=9
ro.actionable_compatible_property.enabled=true
ro.secure=0
security.perf_harden=1
ro.allow.mock.location=0
ro.debuggable=1
tombstoned.max_tombstone_count=50
dalvik.vm.image-dex2oat-Xms=64m
dalvik.vm.image-dex2oat-Xmx=64m
dalvik.vm.dex2oat-Xms=64m
dalvik.vm.dex2oat-Xmx=512m
dalvik.vm.usejit=true
dalvik.vm.usejitprofiles=true
dalvik.vm.dexopt.secondary=true
dalvik.vm.appimageformat=lz4
pm.dexopt.first-boot=quicken
pm.dexopt.boot=verify
pm.dexopt.install=speed-profile
pm.dexopt.bg-dexopt=speed-profile
pm.dexopt.ab-ota=speed-profile
pm.dexopt.inactive=verify
pm.dexopt.shared=speed
dalvik.vm.dex2oat-minidebuginfo=true
debug.atrace.tags.enableflags=0
#
# BOOTIMAGE_BUILD_PROPERTIES
#
ro.bootimage.build.date=/* ... ... */
ro.bootimage.build.date.utc=/* ... ... */
ro.bootimage.build.fingerprint=/* ... ... */
persist.sys.usb.config=none
cmcc_jiangsu:/ #
文件中的每一行对某个属性赋值
需要注意的两个属性:
ro.secure
ro.debuggable
如果
ro.secure=0
允许我们运行 adbroot 命令
通常大家说的内核 ROOT 指的就是 ro.secure=0
ROOT 权限只是手机上有一个名为授权管理的程序 Superuser.apk 可以授予程序 root 用户的权限
如果
ro.debuggable=1
允许调试系统 APP
init 程序读取启动脚本 执行脚本中指定的动作和命令
脚本中的一部分是运行 system 分区的程序:
system 的 bin 目录下存放的都是可执行程序
其中有一个重要的可执行文件叫 app_process 一般称之为 Zygote
Zygote 是卵的意思 所有的 Android 进程都是由她生出来的
Zygote 首先会加载 dalvik 虚拟机 然后产生一个叫做 system_server 的进程
system_server 顾名思义被称作 Android的 系统服务程序
system_server 主要管理整个 android 系统
示例:
cmcc_jiangsu:/ # ls /system
app etc lib priv-app vendor
bin fake-libs lost+found product xbin
build.prop fonts media recovery-from-boot.p
compatibility_matrix.xml framework preinstall usr
cmcc_jiangsu:/ # ls /system -alh
total 2.2M
drwxr-xr-x 15 root root 4.0K 1970-01-01 08:00 .
drwxr-xr-x 23 root root 0 2015-01-01 08:00 ..
drwxr-xr-x 17 root root 4.0K 2022-06-26 11:03 app
drwxr-xr-x 3 root shell 8.0K 2022-06-26 11:03 bin
-rw------- 1 root root 14K 2022-06-26 10:21 build.prop
-rw-r--r-- 1 root root 87K 2022-06-26 10:21 compatibility_matrix.xml
drwxr-xr-x 14 root root 4.0K 2022-06-26 11:03 etc
drwxr-xr-x 2 root root 4.0K 2022-06-26 11:03 fake-libs
drwxr-xr-x 2 root root 12K 2022-06-26 11:03 fonts
drwxr-xr-x 4 root root 4.0K 2022-06-26 11:03 framework
drwxr-xr-x 8 root root 16K 2022-06-28 15:29 lib
drwx------ 2 root root 4.0K 1970-01-01 08:00 lost+found
drwxr-xr-x 3 root root 4.0K 2022-06-26 11:03 media
drwxr-xr-x 2 root root 4.0K 2022-07-10 17:17 preinstall
drwxr-xr-x 21 root root 4.0K 2022-06-26 11:03 priv-app
lrw-r--r-- 1 root root 8 2022-06-26 10:22 product -> /product
-rw-r--r-- 1 root root 4.4M 2022-06-26 10:22 recovery-from-boot.p
drwxr-xr-x 8 root root 4.0K 2022-06-26 11:03 usr
lrw-r--r-- 1 root root 7 2022-06-26 10:22 vendor -> /vendor
drwxr-xr-x 2 root shell 4.0K 2022-06-26 11:03 xbin
cmcc_jiangsu:/ # ls /system/bin/app* -alh
lrwxr-xr-x 1 root shell 13 2022-06-26 10:21 /system/bin/app_process -> app_process32
-rwxr-xr-x 1 root shell 28K 2022-06-26 10:21 /system/bin/app_process32
-rwxr-xr-x 1 root shell 71K 2022-06-26 10:21 /system/bin/applypatch
-rwxr-xr-x 1 root shell 33 2022-06-26 10:21 /system/bin/appops
-rwxr-xr-x 1 root shell 232 2022-06-26 10:21 /system/bin/appwidget
cmcc_jiangsu:/ # ps -A | grep system_server
system 3612 2600 1426196 195968 SyS_epoll_wait 0 S system_server
cmcc_jiangsu:/ #
system_server 启动完成后开始寻找一个叫做启动器的程序
找到之后由 zygote 开始启动执行启动器 这就是我们常见到的桌面程序!
至此我们总算弄明白了从电源键到桌面程序经历了什么!
##################################################
Android 软件系统架构
——————————
安卓系统架构一览
除了内核是放在 boot 分区之外 其她层的代码都是在 system 分区之中的
Boot 分区
Linux Kernel/Linux 内核
例如 WiFi、Audio 等驱动
System 分区
Library/动态链接库文件
例如各种 .so 文件
Android Runtime/安卓运行时环境
例如核心 lib 库
例如 Dalvik 虚拟机
Application Framework/应用框架
例如窗口管理
再例如程序安装包管理
Application/应用程序
例如 Home、Phone、Browser 等等
——————————
安卓软件系统架构详解
了解 system 分区必看的 Android 软件系统架构:
核心应用层
框架层
JNI 层
Dalvik 虚拟机层
本地库层
HAL 硬件抽象层
厂家适配层
Linux 内核
核心应用层:
这一层就是大家平常所接触的各种各样的系统自带应用
比如联系人
电话
音乐
等
应用层往下就是开发人员所接触的
框架层:
这一层是 Android 系统的核心
她提供了整个 Android 系统运作的机制
像窗口管理
程序安装包管理
还有开发人员所接触的
Activity
Service
broadcast
等等
JNI 层:
JNI 层是 Java 程序和底层操作系统通信的一个机制
她使得 Java 代码可以调用 C/C++ 代码来访问底层操作系统的 API
Dalvik 虚拟机:
Android 开发使用 Java 语言
应用程序的 Java 代码会被编译成 dalvik 虚拟机字节码
这些字节码由 dalvik 虚拟机解释执行
本地库:
本地库一般是由 C/C++ 语言所开发 直接编译成相应 CPU 的机器码
这其中包含标准 C 库 例如用以绘制图形的 skia 库
浏览器核心引擎 webkit
等
HAL 硬件抽象层:
为了和各个厂家的不同硬件工作 Android 定义了一套硬件接口
比如说为了使用相机 厂家的相机驱动必须提供的接口方法
这样使得上层的代码可以独立于不同的硬件运行
厂家适配层:
本来 Android 定义的 HAL 层是直接和厂家提供的设备驱动打交道的
但是目前厂家不想开源 HAL 部分的代码 因此很多厂家都提供了一个厂家适配层的代码
这样在 HAL 层接口的实现只是一个简单的对厂家适配层接口函数的调用
内核:
这一层就是大家熟悉的 Linux 内核
内核中包含有各种硬件驱动 这些驱动不同的手机厂商不同的手机是不一样的
Linux 内核是支持驱动模块化机制的
简单的说就是允许用户动态的加载或者卸载某个硬件驱动
但是目前来看手机厂商除了提供 WIFI 驱动单独加载外 其她驱动都是和内核绑定在一起的
Android 把对硬件的支持分成了两层
一层放在用户空间 User Space
一层放在内核空间 Kernel Space
其中硬件抽象层运行在用户空间 而 Linux 内核驱动程序运行在内核空间
为什么要这样安排呢?把硬件抽象层和内核驱动整合在一起放在内核空间不可行吗?
从技术实现的角度来看 是可以的
然而从商业的角度来看 把对硬件的支持逻辑都放在内核空间 可能会损害厂家的利益
我们知道 Linux 内核源代码版权遵循 GNU License
而 Android 源代码版权遵循 Apache License
这两个许可证有些不同:
前者在发布产品时 必须公布源代码 而后者无须发布源代码
如果把对硬件支持的所有代码都放在 Linux 驱动层 那就意味着发布时要公开驱动程序的源代码
而公开源代码就意味着把硬件的相关参数和实现都公开了
在手机市场竞争激烈的今天 这对厂家来说 损害是非常大的
因此 Android 才会想到把对硬件的支持分成硬件抽象层和内核驱动层
内核驱动层只提供简单的访问硬件逻辑 例如读写硬件寄存器的通道
至于从硬件中读到了什么值或者写了什么值到硬件中的逻辑 都放在硬件抽象层中去了
这样就可以把商业秘密隐藏起来了
##################################################
Android 操作系统常见目录解析
——————————
system 分区常见目录
%%%%%
/system/bin 与 /system/xbin 目录
我们常见的 shell 命令虽然都是放在 /system/bin 和 /system/xbin 目录下的
但是 bin 目录下存放的是一些可执行文件
基本上是由 C/C++ 编写的
cmcc_jiangsu:/ # ls /system/bin | wc -l
358
cmcc_jiangsu:/ # ls /system/bin
Android.mk insmod rgbtest
acpi install-recovery.sh rm
adbd installd rmdir
am ionice rmmod
amctcTest iorenice rtwpriv
app_process iotop run-as
app_process32 ip runcon
applypatch ip6tables schedtest
appops ip6tables-restore schedulecmd.sh
appwidget ip6tables-save screencap
arping ipd screencontrol
atrace iptables screenrecord
audioserver iptables-restore sdcard
awk iptables-save secdiscard
base64 iptvd secilc
basename iptvdc sed
bcc ipv6-android-script.sh sendevent
blank_screen iw sensorservice
blkid karaok_recorder seq
blockdev keystore service
bmgr keystore_cli_v2 servicemanager
bootanimation kill setenforce
bootplayer killall setprop
bootstat ld.mc setsid
bpfloader libpcapcmcc.so settings
bu linker sgdisk
bugreport linker_asan sh
bugreportz lmkd sha1sum
bunzip2 ln sha224sum
busybox_ft load_policy sha256sum
bzcat locksettings sha384sum
bzip2 log sha512sum
cal logcapture.sh sleep
cameraserver logcat sload_f2fs
cat logcatd sm
chcon logd sort
chgrp logname split
chmod logpersist.cat sqlite3
chown logpersist.start ss
chroot logpersist.stop start
chrt logwrapper startsoftdetector.sh
cksum losetup stat
clatd ls statsd
clear lshal stop
cmd lsmod storaged
cmp lsof strace
comm lspci strings
content lsusb stty
cp make_f2fs su
cpio md5sum surfaceflinger
crash_dump32 mdnsd svc
csrctctest media swapoff
ctctest mediadrmserver swapon
cut mediaextractor sync
dalvikvm mediametrics sysctl
dalvikvm32 mediaserver tac
date memory_replay32 tail
dd memtest tar
debuggerd microcom taskset
dex2oat mkdir tc
dex2oatd mke2fs tee
dexdiag mkfifo telecom
dexdump mkfs.exfat terminal_info_main
dexlist mkfs.ext2 terminal_write_test
dexoptanalyzer mkfs.ext3 thermalserviced
dexoptanalyzerd mkfs.ext4 time
df mknod timeout
diff mkntfs tinycap
dirname mkswap tinymix
dmesg mktemp tinyplay
dnsmasq modinfo tombstoned
dos2unix modprobe toolbox
dpm monkey top
drmserver more touch
du mount touchwifi.sh
dumpstate mountpoint toybox
dumpsys mtpd tr
e2fsck mv traced
e2fsdroid ndc traced_probes
echo netd tracepath
egrep netstat tracepath6
env newfs_msdos traceroute
execmd.sh nice traceroute6
expand nl true
expr nohup truncate
fallocate ntfs-3g tspacktest
false ntfsfix tty
fgrep oatdump tune2fs
file od tzdatacheck
find odhcp6c uiautomator
flock paste ulimit
fmt patch umount
free patchoat uname
fsck.exfat patchoatd uncrypt
fsck.f2fs perfetto unifiedctctest
fsck_msdos perfprofd uniq
gdbserver pgrep unix2dos
getenforce pidof uptime
getevent ping usbd
getprop ping6 usleep
grep pkill uudecode
groups pm uuencode
gunzip pmap vdc
gzip pngtest videomediaconvertortest
head pppd vmstat
hid printenv vold
hostname printf vold_prepare_subdirs
hw profman wait_for_keymaster
hwclock profmand wc
hwservicemanager ps which
id pwd whoami
idmap racoon wificond
ifconfig readlink wm
imageserver realpath xargs
ime reboot xiriservice_All
incident renice xxd
incident_helper requestsync yes
incidentd resize2fs zcat
inotifyd restorecon
input revertuserdata.sh
cmcc_jiangsu:/ # ls -alh /system/bin
total 15M
drwxr-xr-x 3 root shell 8.0K 2022-06-26 11:03 .
drwxr-xr-x 15 root root 4.0K 1970-01-01 08:00 ..
-rwxr-xr-x 1 root shell 727 2022-06-26 10:21 Android.mk
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 acpi -> toybox
-rwxr-xr-x 1 root shell 1.2M 2022-06-26 10:21 adbd
-rwxr-xr-x 1 root shell 207 2022-06-26 10:21 am
-rwxr-xr-x 1 root shell 20K 2022-06-26 10:21 amctcTest
lrwxr-xr-x 1 root shell 13 2022-06-26 10:21 app_process -> app_process32
-rwxr-xr-x 1 root shell 28K 2022-06-26 10:21 app_process32
-rwxr-xr-x 1 root shell 71K 2022-06-26 10:21 applypatch
-rwxr-xr-x 1 root shell 33 2022-06-26 10:21 appops
-rwxr-xr-x 1 root shell 232 2022-06-26 10:21 appwidget
-rwxr-xr-x 1 root shell 24K 2022-06-26 10:21 arping
-rwxr-xr-x 1 root shell 57K 2022-06-26 10:21 atrace
-rwxr-xr-x 1 root shell 36K 2022-06-26 10:21 audioserver
-rwxr-xr-x 1 root shell 124K 2022-06-26 10:21 awk
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 base64 -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 basename -> toybox
-rwxr-xr-x 1 root shell 41K 2022-06-26 10:21 bcc
-rwxr-xr-x 1 root shell 20K 2022-06-26 10:21 blank_screen
-rwxr-xr-x 1 root shell 20K 2022-06-26 10:21 blkid
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 blockdev -> toybox
-rwxr-xr-x 1 root shell 216 2022-06-26 10:21 bmgr
-rwxr-xr-x 1 root shell 32K 2022-06-26 10:21 bootanimation
-rwxr-xr-x 1 root shell 6.5M 2022-06-26 10:21 bootplayer
-r-xr-x--- 1 system log 61K 2022-06-26 10:21 bootstat
-rwxr-xr-x 1 root shell 29K 2022-06-26 10:21 bpfloader
-rwxr-xr-x 1 root shell 173 2022-06-26 10:21 bu
-rwxr-xr-x 1 root shell 16K 2022-06-26 10:21 bugreport
-rwxr-xr-x 1 root shell 16K 2022-06-26 10:21 bugreportz
lrwxr-xr-x 1 root shell 5 2022-06-26 10:21 bunzip2 -> bzip2
-rwxr-xr-x 1 root shell 743K 2022-06-26 10:21 busybox_ft
lrwxr-xr-x 1 root shell 5 2022-06-26 10:21 bzcat -> bzip2
-rwxr-xr-x 1 root shell 39K 2022-06-26 10:21 bzip2
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 cal -> toybox
-rwxr-xr-x 1 root shell 16K 2022-06-26 10:21 cameraserver
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 cat -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 chcon -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 chgrp -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 chmod -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 chown -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 chroot -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 chrt -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 cksum -> toybox
-rwxr-xr-x 1 root shell 51K 2022-06-26 10:21 clatd
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 clear -> toybox
-rwxr-xr-x 1 root shell 45K 2022-06-26 10:21 cmd
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 cmp -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 comm -> toybox
-rwxr-xr-x 1 root shell 224 2022-06-26 10:21 content
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 cp -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 cpio -> toybox
-rwxr-xr-x 1 root shell 104K 2022-06-26 10:21 crash_dump32
-rwxr-xr-x 1 root shell 55K 2022-06-26 10:21 csrctctest
-rwxr-xr-x 1 root shell 50K 2022-06-26 10:21 ctctest
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 cut -> toybox
lrwxr-xr-x 1 root shell 10 2022-06-26 10:21 dalvikvm -> dalvikvm32
-rwxr-xr-x 1 root shell 24K 2022-06-26 10:21 dalvikvm32
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 date -> toybox
lrwxr-xr-x 1 root shell 7 2022-06-26 10:21 dd -> toolbox
-rwxr-xr-x 1 root shell 20K 2022-06-26 10:21 debuggerd
-rwxr-xr-x 1 root shell 534K 2022-06-26 10:21 dex2oat
-rwxr-xr-x 1 root shell 790K 2022-06-26 10:21 dex2oatd
-rwxr-xr-x 1 root shell 32K 2022-06-26 10:21 dexdiag
-rwxr-xr-x 1 root shell 105K 2022-06-26 10:21 dexdump
-rwxr-xr-x 1 root shell 24K 2022-06-26 10:21 dexlist
-rwxr-xr-x 1 root shell 28K 2022-06-26 10:21 dexoptanalyzer
-rwxr-xr-x 1 root shell 36K 2022-06-26 10:21 dexoptanalyzerd
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 df -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 diff -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 dirname -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 dmesg -> toybox
-rwxr-xr-x 1 root shell 137K 2022-06-26 10:21 dnsmasq
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 dos2unix -> toybox
-rwxr-xr-x 1 root shell 173 2022-06-26 10:21 dpm
-rwxr-xr-x 1 root shell 68K 2022-06-26 10:21 drmserver
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 du -> toybox
-rwxr-xr-x 1 root shell 250K 2022-06-26 10:21 dumpstate
-rwxr-xr-x 1 root shell 41K 2022-06-26 10:21 dumpsys
-rwxr-xr-x 1 root shell 194K 2022-06-26 10:21 e2fsck
-rwxr-xr-x 1 root shell 28K 2022-06-26 10:21 e2fsdroid
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 echo -> toybox
lrwxr-xr-x 1 root shell 4 2022-06-26 10:21 egrep -> grep
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 env -> toybox
-rwxr-xr-x 1 root shell 1.6K 2022-06-26 10:21 execmd.sh
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 expand -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 expr -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 fallocate -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 false -> toybox
lrwxr-xr-x 1 root shell 4 2022-06-26 10:21 fgrep -> grep
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 file -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 find -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 flock -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 fmt -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 free -> toybox
-rwxr-xr-x 1 root shell 41K 2022-06-26 10:21 fsck.exfat
-rwxr-xr-x 1 root shell 107K 2022-06-26 10:21 fsck.f2fs
-rwxr-xr-x 1 root shell 36K 2022-06-26 10:21 fsck_msdos
-rwxr-xr-x 1 root shell 583K 2022-06-26 10:21 gdbserver
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 getenforce -> toybox
lrwxr-xr-x 1 root shell 7 2022-06-26 10:21 getevent -> toolbox
lrwxr-xr-x 1 root shell 7 2022-06-26 10:21 getprop -> toolbox
-rwxr-xr-x 1 root shell 33K 2022-06-26 10:21 grep
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 groups -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 gunzip -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 gzip -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 head -> toybox
-rwxr-xr-x 1 root shell 213 2022-06-26 10:21 hid
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 hostname -> toybox
drwxr-xr-x 2 root shell 4.0K 2022-06-26 11:03 hw
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 hwclock -> toybox
-rwxr-xr-x 1 root shell 71K 2022-06-26 10:21 hwservicemanager
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 id -> toybox
-rwxr-xr-x 1 root shell 36K 2022-06-26 10:21 idmap
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 ifconfig -> toybox
-rwxr-xr-x 1 root shell 346K 2022-06-26 10:21 imageserver
-rwxr-xr-x 1 root shell 48 2022-06-26 10:21 ime
-rwxr-xr-x 1 root shell 28K 2022-06-26 10:21 incident
-rwxr-xr-x 1 root shell 138K 2022-06-26 10:21 incident_helper
-rwxr-xr-x 1 root shell 128K 2022-06-26 10:21 incidentd
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 inotifyd -> toybox
-rwxr-xr-x 1 root shell 220 2022-06-26 10:21 input
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 insmod -> toybox
-rwxr-x--- 1 root root 822 2022-06-26 10:21 install-recovery.sh
-rwxr-xr-x 1 root shell 228K 2022-06-26 10:21 installd
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 ionice -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 iorenice -> toybox
-rwxr-xr-x 1 root shell 49K 2022-06-26 10:21 iotop
-rwxr-xr-x 1 root shell 281K 2022-06-26 10:21 ip
-rwxr-xr-x 1 root shell 293K 2022-06-26 10:21 ip6tables
lrwxr-xr-x 1 root shell 9 2022-06-26 10:21 ip6tables-restore -> ip6tables
lrwxr-xr-x 1 root shell 9 2022-06-26 10:21 ip6tables-save -> ip6tables
-rwxr-xr-x 1 root shell 162 2022-06-26 10:21 ipd
-rwxr-xr-x 1 root shell 284K 2022-06-26 10:21 iptables
lrwxr-xr-x 1 root shell 8 2022-06-26 10:21 iptables-restore -> iptables
lrwxr-xr-x 1 root shell 8 2022-06-26 10:21 iptables-save -> iptables
-rwxr-xr-x 1 root shell 67K 2022-06-26 10:21 iptvd
-rwxr-xr-x 1 root shell 33K 2022-06-26 10:21 iptvdc
-rwxr-xr-x 1 root shell 7.7K 2022-06-26 10:21 ipv6-android-script.sh
-rwxr-xr-x 1 root shell 183K 2022-06-26 10:21 iw
-rwxr-xr-x 1 root shell 24K 2022-06-26 10:21 karaok_recorder
-rwxr-xr-x 1 root shell 233K 2022-06-26 10:21 keystore
-rwxr-xr-x 1 root shell 65K 2022-06-26 10:21 keystore_cli_v2
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 kill -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 killall -> toybox
-rwxr-xr-x 1 root shell 505K 2022-06-26 10:21 ld.mc
-rwxr-xr-x 1 root shell 619K 2022-06-26 10:21 libpcapcmcc.so
-rwxr-xr-x 1 root shell 1.1M 2022-06-26 10:21 linker
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 linker_asan -> linker
-rwxr-xr-x 1 root shell 32K 2022-06-26 10:21 lmkd
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 ln -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 load_policy -> toybox
-rwxr-xr-x 1 root shell 211 2022-06-26 10:21 locksettings
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 log -> toybox
-rwxr-xr-x 1 root shell 307 2022-06-26 10:21 logcapture.sh
-rwxr-xr-x 1 root shell 16K 2022-06-26 10:21 logcat
-rwxr-xr-x 1 root shell 16K 2022-06-26 10:21 logcatd
-r-xr-x--- 1 logd logd 129K 2022-06-26 10:21 logd
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 logname -> toybox
lrwxr-xr-x 1 root shell 16 2022-06-26 10:21 logpersist.cat -> logpersist.start
-rwxr-xr-x 1 root shell 5.4K 2022-06-26 10:21 logpersist.start
lrwxr-xr-x 1 root shell 16 2022-06-26 10:21 logpersist.stop -> logpersist.start
-rwxr-xr-x 1 root shell 24K 2022-06-26 10:21 logwrapper
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 losetup -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 ls -> toybox
-rwxr-xr-x 1 root shell 16K 2022-06-26 10:21 lshal
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 lsmod -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 lsof -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 lspci -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 lsusb -> toybox
-rwxr-xr-x 1 root shell 49K 2022-06-26 10:21 make_f2fs
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 md5sum -> toybox
-rwxr-xr-x 1 root shell 769K 2022-06-26 10:21 mdnsd
-rwxr-xr-x 1 root shell 227 2022-06-26 10:21 media
-rwxr-xr-x 1 root shell 24K 2022-06-26 10:21 mediadrmserver
-rwxr-xr-x 1 root shell 20K 2022-06-26 10:21 mediaextractor
-rwxr-xr-x 1 root shell 37K 2022-06-26 10:21 mediametrics
-rwxr-xr-x 1 root shell 24K 2022-06-26 10:21 mediaserver
-rwxr-xr-x 1 root shell 25K 2022-06-26 10:21 memory_replay32
-rwxr-xr-x 1 root shell 38K 2022-06-26 10:21 memtest
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 microcom -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 mkdir -> toybox
-rwxr-xr-x 1 root shell 72K 2022-06-26 10:21 mke2fs
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 mkfifo -> toybox
-rwxr-xr-x 1 root shell 35K 2022-06-26 10:21 mkfs.exfat
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 mkfs.ext2 -> mke2fs
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 mkfs.ext3 -> mke2fs
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 mkfs.ext4 -> mke2fs
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 mknod -> toybox
-rwxr-xr-x 1 root shell 107K 2022-06-26 10:21 mkntfs
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 mkswap -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 mktemp -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 modinfo -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 modprobe -> toybox
-rwxr-xr-x 1 root shell 268 2022-06-26 10:21 monkey
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 more -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 mount -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 mountpoint -> toybox
-rwxr-xr-x 1 root shell 28K 2022-06-26 10:21 mtpd
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 mv -> toybox
-rwxr-xr-x 1 root shell 20K 2022-06-26 10:21 ndc
-rwxr-xr-x 1 root shell 403K 2022-06-26 10:21 netd
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 netstat -> toybox
lrwxr-xr-x 1 root shell 7 2022-06-26 10:21 newfs_msdos -> toolbox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 nice -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 nl -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 nohup -> toybox
-rwxr-xr-x 1 root shell 245K 2022-06-26 10:21 ntfs-3g
-rwxr-xr-x 1 root shell 152K 2022-06-26 10:21 ntfsfix
-rwxr-xr-x 1 root shell 201K 2022-06-26 10:21 oatdump
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 od -> toybox
-rwxr-xr-x 1 root shell 441K 2022-06-26 10:21 odhcp6c
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 paste -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 patch -> toybox
-rwxr-xr-x 1 root shell 61K 2022-06-26 10:21 patchoat
-rwxr-xr-x 1 root shell 104K 2022-06-26 10:21 patchoatd
-rwxr-xr-x 1 root shell 183K 2022-06-26 10:21 perfetto
-rwxr-xr-x 1 root shell 1.5M 2022-06-26 10:21 perfprofd
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 pgrep -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 pidof -> toybox
-rwxr-xr-x 1 root shell 41K 2022-06-26 10:21 ping
-rwxr-xr-x 1 root shell 45K 2022-06-26 10:21 ping6
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 pkill -> toybox
-rwxr-xr-x 1 root shell 34 2022-06-26 10:21 pm
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 pmap -> toybox
-rwxr-xr-x 1 root shell 20K 2022-06-26 10:21 pngtest
-rwxr-xr-x 1 root shell 231K 2022-06-26 10:21 pppd
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 printenv -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 printf -> toybox
-rwxr-xr-x 1 root shell 82K 2022-06-26 10:21 profman
-rwxr-xr-x 1 root shell 91K 2022-06-26 10:21 profmand
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 ps -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 pwd -> toybox
-rwxr-xr-x 1 root shell 189K 2022-06-26 10:21 racoon
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 readlink -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 realpath -> toybox
-rwxr-xr-x 1 root shell 16K 2022-06-26 10:21 reboot
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 renice -> toybox
-rwxr-xr-x 1 root shell 205 2022-06-26 10:21 requestsync
-rwxr-xr-x 1 root shell 56K 2022-06-26 10:21 resize2fs
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 restorecon -> toybox
-rwxr-xr-x 1 root shell 1.3K 2022-06-26 10:21 revertuserdata.sh
-rwxr-xr-x 1 root shell 16K 2022-06-26 10:21 rgbtest
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 rm -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 rmdir -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 rmmod -> toybox
-rwxr-xr-x 1 root shell 1.6M 2022-06-26 10:21 rtwpriv
-rwxr-x--- 1 root shell 20K 2022-06-26 10:21 run-as
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 runcon -> toybox
-rwxr-xr-x 1 root shell 16K 2022-06-26 10:21 schedtest
-rwxr-xr-x 1 root shell 1.0K 2022-06-26 10:21 schedulecmd.sh
-rwxr-xr-x 1 root shell 24K 2022-06-26 10:21 screencap
-rwxr-xr-x 1 root shell 37K 2022-06-26 10:21 screencontrol
-rwxr-xr-x 1 root shell 110K 2022-06-26 10:21 screenrecord
-rwxr-xr-x 1 root shell 33K 2022-06-26 10:21 sdcard
-rwxr-xr-x 1 root shell 24K 2022-06-26 10:21 secdiscard
-rwx------ 1 root root 230K 2022-06-26 10:21 secilc
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 sed -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 sendevent -> toybox
-rwxr-xr-x 1 root shell 16K 2022-06-26 10:21 sensorservice
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 seq -> toybox
-rwxr-xr-x 1 root shell 32K 2022-06-26 10:21 service
-rwxr-xr-x 1 root shell 24K 2022-06-26 10:21 servicemanager
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 setenforce -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 setprop -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 setsid -> toybox
-rwxr-xr-x 1 root shell 35 2022-06-26 10:21 settings
-rwxr-xr-x 1 root shell 118K 2022-06-26 10:21 sgdisk
-rwxr-xr-x 1 root shell 231K 2022-06-26 10:21 sh
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 sha1sum -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 sha224sum -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 sha256sum -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 sha384sum -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 sha512sum -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 sleep -> toybox
-rwxr-xr-x 1 root shell 119K 2022-06-26 10:21 sload_f2fs
-rwxr-xr-x 1 root shell 207 2022-06-26 10:21 sm
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 sort -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 split -> toybox
-rwxr-xr-x 1 root shell 131K 2022-06-26 10:21 sqlite3
-rwxr-xr-x 1 root shell 69K 2022-06-26 10:21 ss
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 start -> toybox
-rwxr-xr-x 1 root shell 475 2022-06-26 10:21 startsoftdetector.sh
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 stat -> toybox
-rwxr-xr-x 1 root shell 421K 2022-06-26 10:21 statsd
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 stop -> toybox
-rwxr-xr-x 1 root shell 172K 2022-06-26 10:21 storaged
-rwxr-xr-x 1 root shell 565K 2022-06-26 10:21 strace
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 strings -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 stty -> toybox
-rwxr-xr-x 1 root shell 122K 2022-06-26 10:21 su
-rwxr-xr-x 1 system graphics 33K 2022-06-26 10:21 surfaceflinger
-rwxr-xr-x 1 root shell 209 2022-06-26 10:21 svc
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 swapoff -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 swapon -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 sync -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 sysctl -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 tac -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 tail -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 tar -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 taskset -> toybox
-rwxr-xr-x 1 root shell 94K 2022-06-26 10:21 tc
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 tee -> toybox
-rwxr-xr-x 1 root shell 189 2022-06-26 10:21 telecom
-rwxr-xr-x 1 root shell 16K 2022-06-26 10:21 terminal_info_main
-rwxr-xr-x 1 root shell 16K 2022-06-26 10:21 terminal_write_test
-rwxr-xr-x 1 root shell 33K 2022-06-26 10:21 thermalserviced
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 time -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 timeout -> toybox
-rwxr-xr-x 1 root shell 20K 2022-06-26 10:21 tinycap
-rwxr-xr-x 1 root shell 20K 2022-06-26 10:21 tinymix
-rwxr-xr-x 1 root shell 20K 2022-06-26 10:21 tinyplay
-rwxr-xr-x 1 root shell 139K 2022-06-26 10:21 tombstoned
-rwxr-xr-x 1 root shell 93K 2022-06-26 10:21 toolbox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 top -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 touch -> toybox
-rwxr-xr-x 1 root shell 166 2022-06-26 10:21 touchwifi.sh
-rwxr-xr-x 1 root shell 340K 2022-06-26 10:21 toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 tr -> toybox
-rwxr-xr-x 1 root shell 16K 2022-06-26 10:21 traced
-rwxr-xr-x 1 root shell 16K 2022-06-26 10:21 traced_probes
-rwxr-xr-x 1 root shell 20K 2022-06-26 10:21 tracepath
-rwxr-xr-x 1 root shell 20K 2022-06-26 10:21 tracepath6
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 traceroute -> toybox
-rwxr-xr-x 1 root shell 24K 2022-06-26 10:21 traceroute6
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 true -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 truncate -> toybox
-rwxr-xr-x 1 root shell 16K 2022-06-26 10:21 tspacktest
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 tty -> toybox
-rwxr-xr-x 1 root shell 56K 2022-06-26 10:21 tune2fs
-rwxr-xr-x 1 root shell 28K 2022-06-26 10:21 tzdatacheck
-rwxr-xr-x 1 root shell 4.0K 2022-06-26 10:21 uiautomator
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 ulimit -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 umount -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 uname -> toybox
-rwxr-x--- 1 root root 114K 2022-06-26 10:21 uncrypt
-rwxr-xr-x 1 root shell 55K 2022-06-26 10:21 unifiedctctest
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 uniq -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 unix2dos -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 uptime -> toybox
-rwxr-xr-x 1 root shell 20K 2022-06-26 10:21 usbd
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 usleep -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 uudecode -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 uuencode -> toybox
-rwxr-xr-x 1 root shell 46K 2022-06-26 10:21 vdc
-rwxr-xr-x 1 root shell 16K 2022-06-26 10:21 videomediaconvertortest
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 vmstat -> toybox
-rwxr-xr-x 1 root shell 595K 2022-06-26 10:21 vold
-rwxr-xr-x 1 root shell 32K 2022-06-26 10:21 vold_prepare_subdirs
-rwxr-xr-x 1 root shell 28K 2022-06-26 10:21 wait_for_keymaster
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 wc -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 which -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 whoami -> toybox
-rwxr-xr-x 1 root shell 312K 2022-06-26 10:21 wificond
-rwxr-xr-x 1 root shell 33 2022-06-26 10:21 wm
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 xargs -> toybox
-rwxr-xr-x 1 root shell 38K 2022-06-26 10:21 xiriservice_All
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 xxd -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 yes -> toybox
lrwxr-xr-x 1 root shell 6 2022-06-26 10:21 zcat -> toybox
cmcc_jiangsu:/ #
而 xbin 存放的是一些扩展的可执行文件
cmcc_jiangsu:/ # ls /system/xbin | wc -l
24
cmcc_jiangsu:/ # ls /system/xbin
anrd ioshark_bench micro_bench_static rawbu simpleperf
cpustats ksminfo mmc_utils runconuid su
dnschk latencytop procmem sane_schedstat taskstats
dumpcache librank procrank showmap tcpdump
httpurl micro_bench puncture_fs showslab
cmcc_jiangsu:/ # ls /system/xbin -alh
total 1.8M
drwxr-xr-x 2 root shell 4.0K 2022-06-26 11:03 .
drwxr-xr-x 15 root root 4.0K 1970-01-01 08:00 ..
-rwxr-xr-x 1 root shell 24K 2022-06-26 10:22 anrd
-rwxr-xr-x 1 root shell 20K 2022-06-26 10:22 cpustats
-rwxr-xr-x 1 root shell 20K 2022-06-26 10:22 dnschk
-rwxr-xr-x 1 root shell 20K 2022-06-26 10:22 dumpcache
-rwxr-xr-x 1 root shell 24K 2022-06-26 10:22 httpurl
-rwxr-xr-x 1 root shell 37K 2022-06-26 10:22 ioshark_bench
-rwxr-xr-x 1 root shell 20K 2022-06-26 10:22 ksminfo
-rwxr-xr-x 1 root shell 20K 2022-06-26 10:22 latencytop
-rwxr-xr-x 1 root shell 20K 2022-06-26 10:22 librank
-rwxr-xr-x 1 root shell 36K 2022-06-26 10:22 micro_bench
-rwxr-xr-x 1 root shell 282K 2022-06-26 10:22 micro_bench_static
-rwxr-xr-x 1 root shell 50K 2022-06-26 10:22 mmc_utils
-rwsr-sr-x 1 root root 20K 2022-06-26 10:22 procmem
-rwxr-xr-x 1 root shell 28K 2022-06-26 10:22 procrank
-rwxr-xr-x 1 root shell 20K 2022-06-26 10:22 puncture_fs
-rwxr-xr-x 1 root shell 28K 2022-06-26 10:22 rawbu
-rwxr-xr-x 1 root shell 20K 2022-06-26 10:22 runconuid
-rwxr-xr-x 1 root shell 20K 2022-06-26 10:22 sane_schedstat
-rwxr-xr-x 1 root shell 20K 2022-06-26 10:22 showmap
-rwxr-xr-x 1 root shell 20K 2022-06-26 10:22 showslab
-rwxr-xr-x 1 root shell 2.3M 2022-06-26 10:22 simpleperf
-rwsr-x--- 1 root shell 16K 2022-06-26 10:22 su
-rwxr-xr-x 1 root shell 24K 2022-06-26 10:22 taskstats
-rwxr-xr-x 1 root shell 705K 2022-06-26 10:22 tcpdump
cmcc_jiangsu:/ #
该目录可以为空 大家常用的 busybox 就放在该目录下
Busybox 所建立的各种符号链接命令一般都是放在该目录
BusyBox 是一个集成了三百多个最常用 Linux 命令和工具的软件
BusyBox 包含了一些简单的工具 例如
ls
cat
echo
等等
还包含了一些更强大更复杂的工具 例如
grep
find
mount
telnet
有些人将 BusyBox 称为 Linux 工具里的瑞士军刀
简单的说 BusyBox 就好像是个大工具箱 集成压缩了 Linux 的许多工具和命令
也包含了 Linux 系统的自带的 shell ……
BusyBox 是打包为单个二进制文件的用户级 Unix 实用程序的轻量级集合实现
这使其成为资源受限环境
例如嵌入式设备
的理想选择
完整的发行版包含近 400 个最常用的命令
BusyBox 是开源的并在 GPL 下获得许可
她创建于 1995 年旨在使可引导系统适合单个软盘
将命令捆绑到一个二进制文件中可以减少开销并允许看似独立的应用程序之间的代码共享
你可以将她与 Linux 内核结合起来以创建一个没有其她依赖项的正常运行的系统
BusyBox 针对空间受限的环境进行了优化 这使其成为物联网设备等嵌入式产品的理想选择
你可能还会发现 BusyBox 安装在最小但通用的 Linux 发行版上 例如 Alpine Linux
%%%%%
/system/media 和 /system/media/audio 目录
/system/media 目录下存放的是系统所使用的各种媒体文件
比如说
开机音乐
动画
壁纸文件
等
不同的手机该目录的组织方式可能不一样
如何修改这些文件请自行捉摸~
cmcc_jiangsu:/ # ls /system/media
audio bootanimation.zip
cmcc_jiangsu:/ # ls /system/media -alh
total 1.2M
drwxr-xr-x 3 root root 4.0K 2022-06-26 11:03 .
drwxr-xr-x 15 root root 4.0K 1970-01-01 08:00 ..
drwxr-xr-x 6 root root 4.0K 2022-06-26 11:03 audio
-rw-r--r-- 1 root root 2.5M 2022-06-26 10:34 bootanimation.zip
cmcc_jiangsu:/ # ls /system/media/audio
alarms notifications ringtones ui
cmcc_jiangsu:/ # ls /system/media/audio -alh
total 12K
drwxr-xr-x 6 root root 4.0K 2022-06-26 11:03 .
drwxr-xr-x 3 root root 4.0K 2022-06-26 11:03 ..
drwxr-xr-x 2 root root 4.0K 2022-06-26 11:03 alarms
drwxr-xr-x 2 root root 4.0K 2022-06-26 11:03 notifications
drwxr-xr-x 2 root root 4.0K 2022-06-26 11:03 ringtones
drwxr-xr-x 2 root root 4.0K 2022-06-26 11:03 ui
cmcc_jiangsu:/ # ls /system/media/audio/ui -alh
total 88K
drwxr-xr-x 2 root root 4.0K 2022-06-26 11:03 .
drwxr-xr-x 6 root root 4.0K 2022-06-26 11:03 ..
-rw-r--r-- 1 root root 6.1K 2022-06-26 10:22 Dock.ogg
-rw-r--r-- 1 root root 5.0K 2022-06-26 10:22 Effect_Tick.ogg
-rw-r--r-- 1 root root 5.6K 2022-06-26 10:22 KeypressDelete.ogg
-rw-r--r-- 1 root root 10K 2022-06-26 10:22 KeypressInvalid.ogg
-rw-r--r-- 1 root root 6.1K 2022-06-26 10:22 KeypressReturn.ogg
-rw-r--r-- 1 root root 5.8K 2022-06-26 10:22 KeypressSpacebar.ogg
-rw-r--r-- 1 root root 5.7K 2022-06-26 10:22 KeypressStandard.ogg
-rw-r--r-- 1 root root 8.1K 2022-06-26 10:22 Lock.ogg
-rw-r--r-- 1 root root 12K 2022-06-26 10:22 LowBattery.ogg
-rw-r--r-- 1 root root 5.5K 2022-06-26 10:22 Trusted.ogg
-rw-r--r-- 1 root root 8.0K 2022-06-26 10:22 Undock.ogg
-rw-r--r-- 1 root root 7.6K 2022-06-26 10:22 Unlock.ogg
-rw-r--r-- 1 root root 6.3K 2022-06-26 10:22 VideoRecord.ogg
-rw-r--r-- 1 root root 6.3K 2022-06-26 10:22 VideoStop.ogg
-rw-r--r-- 1 root root 12K 2022-06-26 10:22 WirelessChargingStarted.ogg
-rw-r--r-- 1 root root 5.8K 2022-06-26 10:22 camera_click.ogg
-rw-r--r-- 1 root root 9.1K 2022-06-26 10:22 camera_focus.ogg
-rw-r--r-- 1 root root 24 2022-06-26 10:22 config.txt
cmcc_jiangsu:/ #
/system/media/audio 下面放的都是系统的声音文件 像是闹铃声或者来电铃声等等这些声音文件多是 ogg 格式
/system/media/audio/notification
/system/media/audio/alarms
/system/media/audio/ringtones
/system/media/audio/ui
%%%%%
/system/app 跟 /system/priv-app 目录
/system/app 目录下都是核心应用程序文件 系统统自带的 *.apk 都是存放在这里
cmcc_jiangsu:/ # ls /system/app
Bluetooth
BtAutoConn_release_9.0_V1.0_19_20210827_chinamobile
CertInstaller
CompanionDeviceManager
Dangbei2.apk
ExtShared
GDYD-IPTVSettings-AN9-ALL-DEBUG-1.0.0-20210805-1058.apk
KeyChain
LatinIME
PacProcessor
SecureElement
SkySettingA9_jiangsuCMCC_release
SoftDetector_V5.1.0_20210721_35101_x025_encrypt
Superuser
SystemXiri_release-2.0.4-unsigned_signed_Aligned
Tr069_Service.apk
TvSettings
xiri
cmcc_jiangsu:/ # ls /system/app -alh
total 5.4M
drwxr-xr-x 17 root root 4.0K 2022-06-26 11:03 .
drwxr-xr-x 15 root root 4.0K 1970-01-01 08:00 ..
drwxr-xr-x 4 root root 4.0K 2022-06-26 11:03 Bluetooth
drwxr-xr-x 3 root root 4.0K 2022-06-26 11:03 BtAutoConn_release_9.0_V1.0_19_20210827_chinamobile
drwxr-xr-x 3 root root 4.0K 2022-06-26 11:03 CertInstaller
drwxr-xr-x 3 root root 4.0K 2022-06-26 11:03 CompanionDeviceManager
-rw-r--r-- 1 root root 5.3M 2022-06-26 10:21 Dangbei2.apk
drwxr-xr-x 3 root root 4.0K 2022-06-26 11:03 ExtShared
-rw-r--r-- 1 root root 2.3M 2022-06-26 10:21 GDYD-IPTVSettings-AN9-ALL-DEBUG-1.0.0-20210805-1058.apk
drwxr-xr-x 3 root root 4.0K 2022-06-26 11:03 KeyChain
drwxr-xr-x 4 root root 4.0K 2022-06-26 11:03 LatinIME
drwxr-xr-x 4 root root 4.0K 2022-06-26 11:03 PacProcessor
drwxr-xr-x 3 root root 4.0K 2022-06-26 11:03 SecureElement
drwxr-xr-x 3 root root 4.0K 2022-06-26 11:03 SkySettingA9_jiangsuCMCC_release
drwxr-xr-x 4 root root 4.0K 2022-06-26 11:03 SoftDetector_V5.1.0_20210721_35101_x025_encrypt
drwxr-xr-x 3 root root 4.0K 2022-06-26 11:03 Superuser
drwxr-xr-x 4 root root 4.0K 2022-06-26 11:03 SystemXiri_release-2.0.4-unsigned_signed_Aligned
-rw-r--r-- 1 root root 3.1M 2022-06-26 10:21 Tr069_Service.apk
drwxr-xr-x 3 root root 4.0K 2022-06-26 11:03 TvSettings
drwxr-xr-x 3 root root 4.0K 2022-06-26 11:03 xiri
cmcc_jiangsu:/ #
静默安装就是将 APK 放入到 system/app 目录下
像是
Phone/电话
Alarm Clock/闹钟
Browser/浏览器
Contacts/联系人
等等这些核心应用也就是大家熟知的系统 APP
这些系统自带的程序是不能简单的卸载的
要通过一些特殊的方式才能删除
大家熟悉的一种方法是用 RE 文件管理器
/system/priv-app 是特权 App 也称之为内置应用:
cmcc_jiangsu:/ # ls /system/priv-app
BackupRestoreConfirmation ManagedProvisioning Shell
DefaultContainerService MediaProvider SkySettings
DownloadProvider PackageInstaller StatementService
ExtServices ProxyHandler SystemUI
ExternalStorageProvider Settings VpnDialogs
FusedLocation SettingsProvider
InputDevices SharedStorageBackup
cmcc_jiangsu:/ # ls /system/priv-app -alh
total 42K
drwxr-xr-x 21 root root 4.0K 2022-06-26 11:03 .
drwxr-xr-x 15 root root 4.0K 1970-01-01 08:00 ..
drwxr-xr-x 3 root root 4.0K 2022-06-26 11:03 BackupRestoreConfirmation
drwxr-xr-x 4 root root 4.0K 2022-06-26 11:03 DefaultContainerService
drwxr-xr-x 3 root root 4.0K 2022-06-26 11:03 DownloadProvider
drwxr-xr-x 3 root root 4.0K 2022-06-26 11:03 ExtServices
drwxr-xr-x 3 root root 4.0K 2022-06-26 11:03 ExternalStorageProvider
drwxr-xr-x 3 root root 4.0K 2022-06-26 11:03 FusedLocation
drwxr-xr-x 3 root root 4.0K 2022-06-26 11:03 InputDevices
drwxr-xr-x 3 root root 4.0K 2022-06-26 11:03 ManagedProvisioning
drwxr-xr-x 3 root root 4.0K 2022-06-26 11:03 MediaProvider
drwxr-xr-x 3 root root 4.0K 2022-06-26 11:03 PackageInstaller
drwxr-xr-x 3 root root 4.0K 2022-06-26 11:03 ProxyHandler
drwxr-xr-x 3 root root 4.0K 2022-06-26 11:03 Settings
drwxr-xr-x 3 root root 4.0K 2022-06-26 11:03 SettingsProvider
drwxr-xr-x 3 root root 4.0K 2022-06-26 11:03 SharedStorageBackup
drwxr-xr-x 3 root root 4.0K 2022-06-26 11:03 Shell
drwxr-xr-x 3 root root 4.0K 2022-06-26 11:03 SkySettings
drwxr-xr-x 3 root root 4.0K 2022-06-26 11:03 StatementService
drwxr-xr-x 3 root root 4.0K 2022-06-26 11:03 SystemUI
drwxr-xr-x 3 root root 4.0K 2022-06-26 11:03 VpnDialogs
cmcc_jiangsu:/ #
这里的应用比 system_app 权限还要高!
其不仅 System_app 标识是 true 同时还置了 Priv-app 标识
放到 /system/priv-app 下的应用比放到 /system/app 下的应用可以声明获得更多的权限
手机被 root 后通过 adb push 可以把 apk 推送到这两个目录作为系统应用 之后用户无法删除这些应用
/system/priv-app 中包括
Launcher/桌面启动器
SystemUI/状态栏
SettingsProvider/设置存储
等 均是系统的核心应用 这些应用能使用系统级的权限
%%%%%
/system/etc
/system/etc 目录存放一些配置文件
和属性配置文件不一样 这下面的配置文件可能稍微没那么的有规律:
cmcc_jiangsu:/ # ls /system/etc
NOTICE.xml.gz hosts prop.default
bluetooth hotkey.properties public.libraries.txt
boot-image.prof in_test.mp4 seccomp_policy
bpf init security
clatd.conf keypara.ini selinux
curl ld.config.28.txt sepolicy_freeze_test
cwmp.conf llndk.libraries.28.txt sepolicy_tests
delayStartAppList.txt media_profiles_V1_0.dtd sysconfig
device.xml mke2fs.conf textclassifier
dirty-image-objects mkshrc treble_sepolicy_tests_26.0
event-log-tags packages-warnings.xml treble_sepolicy_tests_27.0
fonts.xml permissions vintf
fs_config_dirs ppp vndksp.libraries.28.txt
fs_config_files preloaded-classes xtables.lock
cmcc_jiangsu:/ # ls /system/etc -alh
total 8.1M
drwxr-xr-x 14 root root 4.0K 2022-06-26 11:03 .
drwxr-xr-x 15 root root 4.0K 1970-01-01 08:00 ..
-rw-r--r-- 1 root root 175K 2022-06-26 10:21 NOTICE.xml.gz
drwxr-xr-x 2 root root 4.0K 2022-06-26 11:03 bluetooth
-rw-r--r-- 1 root root 76K 2022-06-26 10:21 boot-image.prof
drwxr-xr-x 2 root root 4.0K 2022-06-26 11:03 bpf
-rw-r--r-- 1 root root 1.0K 2022-06-26 10:21 clatd.conf
drwxr-xr-x 3 root root 4.0K 2022-06-26 11:03 curl
-rw-r--r-- 1 root root 775 2022-06-26 10:21 cwmp.conf
-rw-r--r-- 1 root root 404 2022-06-26 10:21 delayStartAppList.txt
-rw-r--r-- 1 root root 31K 2022-06-26 10:21 device.xml
-rw-r--r-- 1 root root 5.9K 2022-06-26 10:21 dirty-image-objects
-rw-r--r-- 1 root root 24K 2022-06-26 10:21 event-log-tags
-rw-r--r-- 1 root root 29K 2022-06-26 10:21 fonts.xml
---------- 1 root root 0 2022-06-26 10:21 fs_config_dirs
---------- 1 root root 352 2022-06-26 10:21 fs_config_files
-rw-r--r-- 1 root root 56 2022-06-26 10:21 hosts
-rw-r--r-- 1 root root 125 2022-06-26 10:21 hotkey.properties
-rw-r--r-- 1 root root 16M 2022-06-26 10:21 in_test.mp4
drwxr-xr-x 2 root root 4.0K 2022-06-26 11:03 init
-rw-r--r-- 1 root root 84 2022-06-26 10:21 keypara.ini
-rw-r--r-- 1 root root 25K 2022-06-26 10:21 ld.config.28.txt
-rw-r--r-- 1 root root 253 2022-06-26 10:21 llndk.libraries.28.txt
-rw-r--r-- 1 root root 2.6K 2022-06-26 10:21 media_profiles_V1_0.dtd
-rw-r--r-- 1 root root 1.1K 2022-06-26 10:21 mke2fs.conf
-rw-r--r-- 1 root root 375 2022-06-26 10:21 mkshrc
-rw-r--r-- 1 root root 139 2022-06-26 10:21 packages-warnings.xml
drwxr-xr-x 2 root root 4.0K 2022-06-26 11:03 permissions
drwxr-xr-x 2 root root 4.0K 2022-06-26 11:03 ppp
-rw-r--r-- 1 root root 251K 2022-06-26 10:21 preloaded-classes
-rw------- 1 root root 977 2022-06-26 21:00 prop.default
-rw-r--r-- 1 root root 454 2022-06-26 10:21 public.libraries.txt
drwxr-xr-x 2 root root 4.0K 2022-06-26 11:03 seccomp_policy
drwxr-xr-x 4 root root 4.0K 2022-06-26 11:03 security
drwxr-xr-x 3 root root 4.0K 2022-06-26 11:03 selinux
-rw-r--r-- 1 root root 0 2022-06-26 10:21 sepolicy_freeze_test
-rw-r--r-- 1 root root 0 2022-06-26 10:21 sepolicy_tests
drwxr-xr-x 2 root root 4.0K 2022-06-26 11:03 sysconfig
drwxr-xr-x 2 root root 4.0K 2022-06-26 11:03 textclassifier
-rw-r--r-- 1 root root 0 2022-06-26 10:21 treble_sepolicy_tests_26.0
-rw-r--r-- 1 root root 0 2022-06-26 10:21 treble_sepolicy_tests_27.0
drwxr-xr-x 2 root root 4.0K 2022-06-26 11:03 vintf
-rw-r--r-- 1 root root 628 2022-06-26 10:21 vndksp.libraries.28.txt
-rw-r--r-- 1 root root 0 2022-06-26 10:21 xtables.lock
cmcc_jiangsu:/ #
一般来说一些脚本程序还有 GPS 配置文件
gps.conf
和 APN 配置文件
apns-conf.xml
都是放在这个目录
像 HTC 将相机特效所使用的一些文件也放在这个目录下
%%%%%
/system/fonts
/system/fonts 目录下存放的是系统 缺省/默认 的字体文件
我的系统有 237 个字体文件:
cmcc_jiangsu:/ # ls /system/fonts -alh | wc -l
237
cmcc_jiangsu:/ # ls /system/fonts -alh
total 34M
drwxr-xr-x 2 root root 12K 2022-06-26 11:03 .
drwxr-xr-x 15 root root 4.0K 1970-01-01 08:00 ..
-rw-r--r-- 1 root root 4.4K 2022-06-26 10:21 AndroidClock.ttf
-rw-r--r-- 1 root root 39K 2022-06-26 10:21 CarroisGothicSC-Regular.ttf
-rw-r--r-- 1 root root 58K 2022-06-26 10:21 ComingSoon.ttf
-rw-r--r-- 1 root root 68K 2022-06-26 10:21 CutiveMono.ttf
-rw-r--r-- 1 root root 113K 2022-06-26 10:21 DancingScript-Bold.ttf
-rw-r--r-- 1 root root 114K 2022-06-26 10:21 DancingScript-Regular.ttf
lrw-r--r-- 1 root root 15 2022-06-26 10:21 DroidSans-Bold.ttf -> Roboto-Bold.ttf
lrw-r--r-- 1 root root 18 2022-06-26 10:21 DroidSans.ttf -> Roboto-Regular.ttf
-rw-r--r-- 1 root root 106K 2022-06-26 10:21 DroidSansMono.ttf
-rw-r--r-- 1 root root 7.4M 2022-06-26 10:21 NotoColorEmoji.ttf
-rw-r--r-- 1 root root 113K 2022-06-26 10:21 NotoNaskhArabic-Bold.ttf
-rw-r--r-- 1 root root 114K 2022-06-26 10:21 NotoNaskhArabic-Regular.ttf
-rw-r--r-- 1 root root 117K 2022-06-26 10:21 NotoNaskhArabicUI-Bold.ttf
-rw-r--r-- 1 root root 118K 2022-06-26 10:21 NotoNaskhArabicUI-Regular.ttf
-rw-r--r-- 1 root root 50K 2022-06-26 10:21 NotoSansAdlam-Regular.ttf
-rw-r--r-- 1 root root 14K 2022-06-26 10:21 NotoSansAhom-Regular.otf
-rw-r--r-- 1 root root 132K 2022-06-26 10:21 NotoSansAnatolianHieroglyphs-Regular.otf
-rw-r--r-- 1 root root 15K 2022-06-26 10:21 NotoSansArmenian-Bold.ttf
-rw-r--r-- 1 root root 16K 2022-06-26 10:21 NotoSansArmenian-Regular.ttf
-rw-r--r-- 1 root root 12K 2022-06-26 10:21 NotoSansAvestan-Regular.ttf
-rw-r--r-- 1 root root 31K 2022-06-26 10:21 NotoSansBalinese-Regular.ttf
-rw-r--r-- 1 root root 131K 2022-06-26 10:21 NotoSansBamum-Regular.ttf
-rw-r--r-- 1 root root 6.1K 2022-06-26 10:21 NotoSansBassaVah-Regular.otf
-rw-r--r-- 1 root root 13K 2022-06-26 10:21 NotoSansBatak-Regular.ttf
-rw-r--r-- 1 root root 96K 2022-06-26 10:21 NotoSansBengali-Bold.ttf
-rw-r--r-- 1 root root 99K 2022-06-26 10:21 NotoSansBengali-Regular.ttf
-rw-r--r-- 1 root root 102K 2022-06-26 10:21 NotoSansBengaliUI-Bold.ttf
-rw-r--r-- 1 root root 105K 2022-06-26 10:21 NotoSansBengaliUI-Regular.ttf
-rw-r--r-- 1 root root 98K 2022-06-26 10:21 NotoSansBhaiksuki-Regular.otf
-rw-r--r-- 1 root root 23K 2022-06-26 10:21 NotoSansBrahmi-Regular.ttf
-rw-r--r-- 1 root root 7.6K 2022-06-26 10:21 NotoSansBuginese-Regular.ttf
-rw-r--r-- 1 root root 4.7K 2022-06-26 10:21 NotoSansBuhid-Regular.ttf
-rw-r--r-- 1 root root 18M 2022-06-26 10:21 NotoSansCJK-Regular.ttc
-rw-r--r-- 1 root root 45K 2022-06-26 10:21 NotoSansCanadianAboriginal-Regular.ttf
-rw-r--r-- 1 root root 6.1K 2022-06-26 10:21 NotoSansCarian-Regular.ttf
-rw-r--r-- 1 root root 33K 2022-06-26 10:21 NotoSansChakma-Regular.ttf
-rw-r--r-- 1 root root 22K 2022-06-26 10:21 NotoSansCham-Bold.ttf
-rw-r--r-- 1 root root 22K 2022-06-26 10:21 NotoSansCham-Regular.ttf
-rw-r--r-- 1 root root 57K 2022-06-26 10:21 NotoSansCherokee-Regular.ttf
-rw-r--r-- 1 root root 21K 2022-06-26 10:21 NotoSansCoptic-Regular.ttf
-rw-r--r-- 1 root root 489K 2022-06-26 10:21 NotoSansCuneiform-Regular.ttf
-rw-r--r-- 1 root root 7.7K 2022-06-26 10:21 NotoSansCypriot-Regular.ttf
-rw-r--r-- 1 root root 10K 2022-06-26 10:21 NotoSansDeseret-Regular.ttf
-rw-r--r-- 1 root root 129K 2022-06-26 10:21 NotoSansDevanagari-Bold.ttf
-rw-r--r-- 1 root root 133K 2022-06-26 10:21 NotoSansDevanagari-Regular.ttf
-rw-r--r-- 1 root root 118K 2022-06-26 10:21 NotoSansDevanagariUI-Bold.ttf
-rw-r--r-- 1 root root 122K 2022-06-26 10:21 NotoSansDevanagariUI-Regular.ttf
-rw-r--r-- 1 root root 494K 2022-06-26 10:21 NotoSansEgyptianHieroglyphs-Regular.ttf
-rw-r--r-- 1 root root 8.5K 2022-06-26 10:21 NotoSansElbasan-Regular.otf
-rw-r--r-- 1 root root 140K 2022-06-26 10:21 NotoSansEthiopic-Bold.ttf
-rw-r--r-- 1 root root 140K 2022-06-26 10:21 NotoSansEthiopic-Regular.ttf
-rw-r--r-- 1 root root 20K 2022-06-26 10:21 NotoSansGeorgian-Bold.ttf
-rw-r--r-- 1 root root 20K 2022-06-26 10:21 NotoSansGeorgian-Regular.ttf
-rw-r--r-- 1 root root 15K 2022-06-26 10:21 NotoSansGlagolitic-Regular.ttf
-rw-r--r-- 1 root root 5.8K 2022-06-26 10:21 NotoSansGothic-Regular.ttf
-rw-r--r-- 1 root root 114K 2022-06-26 10:21 NotoSansGujarati-Bold.ttf
-rw-r--r-- 1 root root 117K 2022-06-26 10:21 NotoSansGujarati-Regular.ttf
-rw-r--r-- 1 root root 112K 2022-06-26 10:21 NotoSansGujaratiUI-Bold.ttf
-rw-r--r-- 1 root root 115K 2022-06-26 10:21 NotoSansGujaratiUI-Regular.ttf
-rw-r--r-- 1 root root 31K 2022-06-26 10:21 NotoSansGurmukhi-Bold.ttf
-rw-r--r-- 1 root root 31K 2022-06-26 10:21 NotoSansGurmukhi-Regular.ttf
-rw-r--r-- 1 root root 32K 2022-06-26 10:21 NotoSansGurmukhiUI-Bold.ttf
-rw-r--r-- 1 root root 31K 2022-06-26 10:21 NotoSansGurmukhiUI-Regular.ttf
-rw-r--r-- 1 root root 6.6K 2022-06-26 10:21 NotoSansHanunoo-Regular.ttf
-rw-r--r-- 1 root root 4.2K 2022-06-26 10:21 NotoSansHatran-Regular.otf
-rw-r--r-- 1 root root 17K 2022-06-26 10:21 NotoSansHebrew-Bold.ttf
-rw-r--r-- 1 root root 17K 2022-06-26 10:21 NotoSansHebrew-Regular.ttf
-rw-r--r-- 1 root root 5.5K 2022-06-26 10:21 NotoSansImperialAramaic-Regular.ttf
-rw-r--r-- 1 root root 5.5K 2022-06-26 10:21 NotoSansInscriptionalPahlavi-Regular.ttf
-rw-r--r-- 1 root root 7.3K 2022-06-26 10:21 NotoSansInscriptionalParthian-Regular.ttf
-rw-r--r-- 1 root root 37K 2022-06-26 10:21 NotoSansJavanese-Regular.ttf
-rw-r--r-- 1 root root 58K 2022-06-26 10:21 NotoSansKaithi-Regular.ttf
-rw-r--r-- 1 root root 79K 2022-06-26 10:21 NotoSansKannada-Bold.ttf
-rw-r--r-- 1 root root 80K 2022-06-26 10:21 NotoSansKannada-Regular.ttf
-rw-r--r-- 1 root root 78K 2022-06-26 10:21 NotoSansKannadaUI-Bold.ttf
-rw-r--r-- 1 root root 79K 2022-06-26 10:21 NotoSansKannadaUI-Regular.ttf
-rw-r--r-- 1 root root 7.8K 2022-06-26 10:21 NotoSansKayahLi-Regular.ttf
-rw-r--r-- 1 root root 21K 2022-06-26 10:21 NotoSansKharoshthi-Regular.ttf
-rw-r--r-- 1 root root 140K 2022-06-26 10:21 NotoSansKhmer-VF.ttf
-rw-r--r-- 1 root root 35K 2022-06-26 10:21 NotoSansKhmerUI-Bold.ttf
-rw-r--r-- 1 root root 37K 2022-06-26 10:21 NotoSansKhmerUI-Regular.ttf
-rw-r--r-- 1 root root 28K 2022-06-26 10:21 NotoSansLao-Bold.ttf
-rw-r--r-- 1 root root 30K 2022-06-26 10:21 NotoSansLao-Regular.ttf
-rw-r--r-- 1 root root 29K 2022-06-26 10:21 NotoSansLaoUI-Bold.ttf
-rw-r--r-- 1 root root 30K 2022-06-26 10:21 NotoSansLaoUI-Regular.ttf
-rw-r--r-- 1 root root 100K 2022-06-26 10:21 NotoSansLepcha-Regular.ttf
-rw-r--r-- 1 root root 11K 2022-06-26 10:21 NotoSansLimbu-Regular.ttf
-rw-r--r-- 1 root root 33K 2022-06-26 10:21 NotoSansLinearA-Regular.otf
-rw-r--r-- 1 root root 57K 2022-06-26 10:21 NotoSansLinearB-Regular.ttf
-rw-r--r-- 1 root root 5.5K 2022-06-26 10:21 NotoSansLisu-Regular.ttf
-rw-r--r-- 1 root root 4.2K 2022-06-26 10:21 NotoSansLycian-Regular.ttf
-rw-r--r-- 1 root root 4.1K 2022-06-26 10:21 NotoSansLydian-Regular.ttf
-rw-r--r-- 1 root root 55K 2022-06-26 10:21 NotoSansMalayalam-Bold.ttf
-rw-r--r-- 1 root root 55K 2022-06-26 10:21 NotoSansMalayalam-Regular.ttf
-rw-r--r-- 1 root root 55K 2022-06-26 10:21 NotoSansMalayalamUI-Bold.ttf
-rw-r--r-- 1 root root 56K 2022-06-26 10:21 NotoSansMalayalamUI-Regular.ttf
-rw-r--r-- 1 root root 15K 2022-06-26 10:21 NotoSansMandaic-Regular.ttf
-rw-r--r-- 1 root root 16K 2022-06-26 10:21 NotoSansManichaean-Regular.otf
-rw-r--r-- 1 root root 62K 2022-06-26 10:21 NotoSansMarchen-Regular.otf
-rw-r--r-- 1 root root 14K 2022-06-26 10:21 NotoSansMeeteiMayek-Regular.ttf
-rw-r--r-- 1 root root 20K 2022-06-26 10:21 NotoSansMeroitic-Regular.otf
-rw-r--r-- 1 root root 22K 2022-06-26 10:21 NotoSansMiao-Regular.otf
-rw-r--r-- 1 root root 111K 2022-06-26 10:21 NotoSansMongolian-Regular.ttf
-rw-r--r-- 1 root root 5.5K 2022-06-26 10:21 NotoSansMro-Regular.otf
-rw-r--r-- 1 root root 7.6K 2022-06-26 10:21 NotoSansMultani-Regular.otf
-rw-r--r-- 1 root root 106K 2022-06-26 10:21 NotoSansMyanmar-Bold.ttf
-rw-r--r-- 1 root root 106K 2022-06-26 10:21 NotoSansMyanmar-Regular.ttf
-rw-r--r-- 1 root root 102K 2022-06-26 10:21 NotoSansMyanmarUI-Bold.ttf
-rw-r--r-- 1 root root 100K 2022-06-26 10:21 NotoSansMyanmarUI-Regular.ttf
-rw-r--r-- 1 root root 18K 2022-06-26 10:21 NotoSansNKo-Regular.ttf
-rw-r--r-- 1 root root 6.4K 2022-06-26 10:21 NotoSansNabataean-Regular.otf
-rw-r--r-- 1 root root 15K 2022-06-26 10:21 NotoSansNewTaiLue-Regular.ttf
-rw-r--r-- 1 root root 65K 2022-06-26 10:21 NotoSansNewa-Regular.otf
-rw-r--r-- 1 root root 4.3K 2022-06-26 10:21 NotoSansOgham-Regular.ttf
-rw-r--r-- 1 root root 7.4K 2022-06-26 10:21 NotoSansOlChiki-Regular.ttf
-rw-r--r-- 1 root root 4.8K 2022-06-26 10:21 NotoSansOldItalic-Regular.ttf
-rw-r--r-- 1 root root 6.1K 2022-06-26 10:21 NotoSansOldNorthArabian-Regular.otf
-rw-r--r-- 1 root root 8.4K 2022-06-26 10:21 NotoSansOldPermic-Regular.otf
-rw-r--r-- 1 root root 12K 2022-06-26 10:21 NotoSansOldPersian-Regular.ttf
-rw-r--r-- 1 root root 4.6K 2022-06-26 10:21 NotoSansOldSouthArabian-Regular.ttf
-rw-r--r-- 1 root root 7.6K 2022-06-26 10:21 NotoSansOldTurkic-Regular.ttf
-rw-r--r-- 1 root root 83K 2022-06-26 10:21 NotoSansOriya-Bold.ttf
-rw-r--r-- 1 root root 83K 2022-06-26 10:21 NotoSansOriya-Regular.ttf
-rw-r--r-- 1 root root 78K 2022-06-26 10:21 NotoSansOriyaUI-Bold.ttf
-rw-r--r-- 1 root root 79K 2022-06-26 10:21 NotoSansOriyaUI-Regular.ttf
-rw-r--r-- 1 root root 10K 2022-06-26 10:21 NotoSansOsage-Regular.ttf
-rw-r--r-- 1 root root 7.2K 2022-06-26 10:21 NotoSansOsmanya-Regular.ttf
-rw-r--r-- 1 root root 13K 2022-06-26 10:21 NotoSansPahawhHmong-Regular.otf
-rw-r--r-- 1 root root 8.4K 2022-06-26 10:21 NotoSansPalmyrene-Regular.otf
-rw-r--r-- 1 root root 8.0K 2022-06-26 10:21 NotoSansPauCinHau-Regular.otf
-rw-r--r-- 1 root root 28K 2022-06-26 10:21 NotoSansPhagsPa-Regular.ttf
-rw-r--r-- 1 root root 5.2K 2022-06-26 10:21 NotoSansPhoenician-Regular.ttf
-rw-r--r-- 1 root root 6.3K 2022-06-26 10:21 NotoSansRejang-Regular.ttf
-rw-r--r-- 1 root root 8.3K 2022-06-26 10:21 NotoSansRunic-Regular.ttf
-rw-r--r-- 1 root root 10K 2022-06-26 10:21 NotoSansSamaritan-Regular.ttf
-rw-r--r-- 1 root root 18K 2022-06-26 10:21 NotoSansSaurashtra-Regular.ttf
-rw-r--r-- 1 root root 27K 2022-06-26 10:21 NotoSansSharada-Regular.otf
-rw-r--r-- 1 root root 5.8K 2022-06-26 10:21 NotoSansShavian-Regular.ttf
-rw-r--r-- 1 root root 150K 2022-06-26 10:21 NotoSansSinhala-Bold.ttf
-rw-r--r-- 1 root root 156K 2022-06-26 10:21 NotoSansSinhala-Regular.ttf
-rw-r--r-- 1 root root 82K 2022-06-26 10:21 NotoSansSinhalaUI-Bold.otf
-rw-r--r-- 1 root root 82K 2022-06-26 10:21 NotoSansSinhalaUI-Regular.otf
-rw-r--r-- 1 root root 6.2K 2022-06-26 10:21 NotoSansSoraSompeng-Regular.otf
-rw-r--r-- 1 root root 10K 2022-06-26 10:21 NotoSansSundanese-Regular.ttf
-rw-r--r-- 1 root root 15K 2022-06-26 10:21 NotoSansSylotiNagri-Regular.ttf
-rw-r--r-- 1 root root 693K 2022-06-26 10:21 NotoSansSymbols-Regular-Subsetted.ttf
-rw-r--r-- 1 root root 32K 2022-06-26 10:21 NotoSansSymbols-Regular-Subsetted2.ttf
-rw-r--r-- 1 root root 49K 2022-06-26 10:21 NotoSansSyriacEastern-Regular.ttf
-rw-r--r-- 1 root root 45K 2022-06-26 10:21 NotoSansSyriacEstrangela-Regular.ttf
-rw-r--r-- 1 root root 51K 2022-06-26 10:21 NotoSansSyriacWestern-Regular.ttf
-rw-r--r-- 1 root root 5.5K 2022-06-26 10:21 NotoSansTagalog-Regular.ttf
-rw-r--r-- 1 root root 5.4K 2022-06-26 10:21 NotoSansTagbanwa-Regular.ttf
-rw-r--r-- 1 root root 10K 2022-06-26 10:21 NotoSansTaiLe-Regular.ttf
-rw-r--r-- 1 root root 47K 2022-06-26 10:21 NotoSansTaiTham-Regular.ttf
-rw-r--r-- 1 root root 15K 2022-06-26 10:21 NotoSansTaiViet-Regular.ttf
-rw-r--r-- 1 root root 34K 2022-06-26 10:21 NotoSansTamil-Bold.ttf
-rw-r--r-- 1 root root 33K 2022-06-26 10:21 NotoSansTamil-Regular.ttf
-rw-r--r-- 1 root root 34K 2022-06-26 10:21 NotoSansTamilUI-Bold.ttf
-rw-r--r-- 1 root root 33K 2022-06-26 10:21 NotoSansTamilUI-Regular.ttf
-rw-r--r-- 1 root root 108K 2022-06-26 10:21 NotoSansTelugu-Bold.ttf
-rw-r--r-- 1 root root 108K 2022-06-26 10:21 NotoSansTelugu-Regular.ttf
-rw-r--r-- 1 root root 109K 2022-06-26 10:21 NotoSansTeluguUI-Bold.ttf
-rw-r--r-- 1 root root 109K 2022-06-26 10:21 NotoSansTeluguUI-Regular.ttf
-rw-r--r-- 1 root root 14K 2022-06-26 10:21 NotoSansThaana-Bold.ttf
-rw-r--r-- 1 root root 14K 2022-06-26 10:21 NotoSansThaana-Regular.ttf
-rw-r--r-- 1 root root 18K 2022-06-26 10:21 NotoSansThai-Bold.ttf
-rw-r--r-- 1 root root 21K 2022-06-26 10:21 NotoSansThai-Regular.ttf
-rw-r--r-- 1 root root 19K 2022-06-26 10:21 NotoSansThaiUI-Bold.ttf
-rw-r--r-- 1 root root 22K 2022-06-26 10:21 NotoSansThaiUI-Regular.ttf
-rw-r--r-- 1 root root 364K 2022-06-26 10:21 NotoSansTibetan-Bold.ttf
-rw-r--r-- 1 root root 392K 2022-06-26 10:21 NotoSansTibetan-Regular.ttf
-rw-r--r-- 1 root root 13K 2022-06-26 10:21 NotoSansTifinagh-Regular.ttf
-rw-r--r-- 1 root root 6.6K 2022-06-26 10:21 NotoSansUgaritic-Regular.ttf
-rw-r--r-- 1 root root 63K 2022-06-26 10:21 NotoSansVai-Regular.ttf
-rw-r--r-- 1 root root 120K 2022-06-26 10:21 NotoSansYi-Regular.ttf
-rw-r--r-- 1 root root 242K 2022-06-26 10:21 NotoSerif-Bold.ttf
-rw-r--r-- 1 root root 257K 2022-06-26 10:21 NotoSerif-BoldItalic.ttf
-rw-r--r-- 1 root root 244K 2022-06-26 10:21 NotoSerif-Italic.ttf
-rw-r--r-- 1 root root 241K 2022-06-26 10:21 NotoSerif-Regular.ttf
-rw-r--r-- 1 root root 14K 2022-06-26 10:21 NotoSerifArmenian-Bold.ttf
-rw-r--r-- 1 root root 15K 2022-06-26 10:21 NotoSerifArmenian-Regular.ttf
-rw-r--r-- 1 root root 114K 2022-06-26 10:21 NotoSerifBengali-Bold.ttf
-rw-r--r-- 1 root root 116K 2022-06-26 10:21 NotoSerifBengali-Regular.ttf
-rw-r--r-- 1 root root 24M 2022-06-26 10:21 NotoSerifCJK-Regular.ttc
-rw-r--r-- 1 root root 77K 2022-06-26 10:21 NotoSerifDevanagari-Bold.ttf
-rw-r--r-- 1 root root 77K 2022-06-26 10:21 NotoSerifDevanagari-Regular.ttf
-rw-r--r-- 1 root root 126K 2022-06-26 10:21 NotoSerifEthiopic-Bold.otf
-rw-r--r-- 1 root root 110K 2022-06-26 10:21 NotoSerifEthiopic-Regular.otf
-rw-r--r-- 1 root root 22K 2022-06-26 10:21 NotoSerifGeorgian-Bold.ttf
-rw-r--r-- 1 root root 22K 2022-06-26 10:21 NotoSerifGeorgian-Regular.ttf
-rw-r--r-- 1 root root 62K 2022-06-26 10:21 NotoSerifGujarati-Bold.ttf
-rw-r--r-- 1 root root 64K 2022-06-26 10:21 NotoSerifGujarati-Regular.ttf
-rw-r--r-- 1 root root 29K 2022-06-26 10:21 NotoSerifGurmukhi-Bold.otf
-rw-r--r-- 1 root root 27K 2022-06-26 10:21 NotoSerifGurmukhi-Regular.otf
-rw-r--r-- 1 root root 17K 2022-06-26 10:21 NotoSerifHebrew-Bold.ttf
-rw-r--r-- 1 root root 17K 2022-06-26 10:21 NotoSerifHebrew-Regular.ttf
-rw-r--r-- 1 root root 89K 2022-06-26 10:21 NotoSerifKannada-Bold.ttf
-rw-r--r-- 1 root root 90K 2022-06-26 10:21 NotoSerifKannada-Regular.ttf
-rw-r--r-- 1 root root 47K 2022-06-26 10:21 NotoSerifKhmer-Bold.otf
-rw-r--r-- 1 root root 40K 2022-06-26 10:21 NotoSerifKhmer-Regular.otf
-rw-r--r-- 1 root root 29K 2022-06-26 10:21 NotoSerifLao-Bold.ttf
-rw-r--r-- 1 root root 30K 2022-06-26 10:21 NotoSerifLao-Regular.ttf
-rw-r--r-- 1 root root 49K 2022-06-26 10:21 NotoSerifMalayalam-Bold.ttf
-rw-r--r-- 1 root root 48K 2022-06-26 10:21 NotoSerifMalayalam-Regular.ttf
-rw-r--r-- 1 root root 133K 2022-06-26 10:21 NotoSerifMyanmar-Bold.otf
-rw-r--r-- 1 root root 134K 2022-06-26 10:21 NotoSerifMyanmar-Regular.otf
-rw-r--r-- 1 root root 83K 2022-06-26 10:21 NotoSerifSinhala-Bold.otf
-rw-r--r-- 1 root root 73K 2022-06-26 10:21 NotoSerifSinhala-Regular.otf
-rw-r--r-- 1 root root 33K 2022-06-26 10:21 NotoSerifTamil-Bold.ttf
-rw-r--r-- 1 root root 33K 2022-06-26 10:21 NotoSerifTamil-Regular.ttf
-rw-r--r-- 1 root root 147K 2022-06-26 10:21 NotoSerifTelugu-Bold.ttf
-rw-r--r-- 1 root root 148K 2022-06-26 10:21 NotoSerifTelugu-Regular.ttf
-rw-r--r-- 1 root root 18K 2022-06-26 10:21 NotoSerifThai-Bold.ttf
-rw-r--r-- 1 root root 19K 2022-06-26 10:21 NotoSerifThai-Regular.ttf
-rw-r--r-- 1 root root 299K 2022-06-26 10:21 Roboto-Black.ttf
-rw-r--r-- 1 root root 323K 2022-06-26 10:21 Roboto-BlackItalic.ttf
-rw-r--r-- 1 root root 300K 2022-06-26 10:21 Roboto-Bold.ttf
-rw-r--r-- 1 root root 324K 2022-06-26 10:21 Roboto-BoldItalic.ttf
-rw-r--r-- 1 root root 321K 2022-06-26 10:21 Roboto-Italic.ttf
-rw-r--r-- 1 root root 300K 2022-06-26 10:21 Roboto-Light.ttf
-rw-r--r-- 1 root root 324K 2022-06-26 10:21 Roboto-LightItalic.ttf
-rw-r--r-- 1 root root 299K 2022-06-26 10:21 Roboto-Medium.ttf
-rw-r--r-- 1 root root 323K 2022-06-26 10:21 Roboto-MediumItalic.ttf
-rw-r--r-- 1 root root 298K 2022-06-26 10:21 Roboto-Regular.ttf
-rw-r--r-- 1 root root 300K 2022-06-26 10:21 Roboto-Thin.ttf
-rw-r--r-- 1 root root 322K 2022-06-26 10:21 Roboto-ThinItalic.ttf
-rw-r--r-- 1 root root 297K 2022-06-26 10:21 RobotoCondensed-Bold.ttf
-rw-r--r-- 1 root root 323K 2022-06-26 10:21 RobotoCondensed-BoldItalic.ttf
-rw-r--r-- 1 root root 322K 2022-06-26 10:21 RobotoCondensed-Italic.ttf
-rw-r--r-- 1 root root 295K 2022-06-26 10:21 RobotoCondensed-Light.ttf
-rw-r--r-- 1 root root 325K 2022-06-26 10:21 RobotoCondensed-LightItalic.ttf
-rw-r--r-- 1 root root 296K 2022-06-26 10:21 RobotoCondensed-Medium.ttf
-rw-r--r-- 1 root root 323K 2022-06-26 10:21 RobotoCondensed-MediumItalic.ttf
-rw-r--r-- 1 root root 294K 2022-06-26 10:21 RobotoCondensed-Regular.ttf
cmcc_jiangsu:/ #
%%%%%
/system/lib
system 的 Library 存放的是所有动态链接库 .so 文件
/system/lib 目录下都是组成
JNI 层
Dalvik 虚拟机
本地库
HAL 层
厂家适配层
的所有动态链接库 .so 文件
也存放 APK 程序用到的库文件
这些 SO 是
JNI 层
Dalvik 虚拟机本地库
HAL 层
所必须需要的
因为系统应用 /system/app 下的 apk 是不会解压 SO 到程序的目录下
所以其相应用的 SO 都应放在 /system/lib 下面
当一个系统 apk 的 SO 加载时会从此目录下寻找对应用的 SO 文件
我系统上的库文件大概有五百个:
cmcc_jiangsu:/ # ls /system/lib | wc -l
489
cmcc_jiangsu:/ #
%%%%%
/system/framework
/system/framework 目录下存放的都是 Android 系统的核心文件库
启用 Android 系统所用到框架 例如一些 .jar 文件
存放的是框架层的 JAR 包 application framework 部分的库 像是
core.jar
services.jar
android.policy.jar
framework-res.apk
framework.jar
等等
我的系统中有 70 个:
cmcc_jiangsu:/ # ls /system/framework | wc -l
70
cmcc_jiangsu:/ # ls /system/framework -alh
total 34M
drwxr-xr-x 4 root root 4.0K 2022-06-26 11:03 .
drwxr-xr-x 15 root root 4.0K 1970-01-01 08:00 ..
-rw-r--r-- 1 root root 200 2022-06-26 10:21 am.jar
-rw-r--r-- 1 root root 183 2022-06-26 10:21 android.hidl.base-V1.0-java.jar
-rw-r--r-- 1 root root 183 2022-06-26 10:21 android.hidl.manager-V1.0-java.jar
-rw-r--r-- 1 root root 183 2022-06-26 10:21 android.test.base.jar
-rw-r--r-- 1 root root 183 2022-06-26 10:21 android.test.mock.jar
-rw-r--r-- 1 root root 183 2022-06-26 10:21 android.test.runner.jar
-rw-r--r-- 1 root root 17K 2022-06-26 10:21 apache-xml.jar
-rw-r--r-- 1 root root 200 2022-06-26 10:21 appwidget.jar
drwxr-xr-x 2 root root 4.0K 2022-06-26 11:03 arm
-rw-r--r-- 1 root root 200 2022-06-26 10:22 bmgr.jar
-rw-r--r-- 1 root root 27K 2022-06-26 10:22 boot-android.hidl.base-V1.0-java.vdex
-rw-r--r-- 1 root root 43K 2022-06-26 10:22 boot-android.hidl.manager-V1.0-java.vdex
-rw-r--r-- 1 root root 32K 2022-06-26 10:22 boot-android.test.base.vdex
-rw-r--r-- 1 root root 1.1M 2022-06-26 10:22 boot-apache-xml.vdex
-rw-r--r-- 1 root root 1.2M 2022-06-26 10:22 boot-bouncycastle.vdex
-rw-r--r-- 1 root root 1.2K 2022-06-26 10:22 boot-com.sumavision.util.terminalinfo.vdex
-rw-r--r-- 1 root root 387K 2022-06-26 10:22 boot-conscrypt.vdex
-rw-r--r-- 1 root root 2.9M 2022-06-26 10:22 boot-core-libart.vdex
-rw-r--r-- 1 root root 937K 2022-06-26 10:22 boot-ext.vdex
-rw-r--r-- 1 root root 1.1K 2022-06-26 10:22 boot-framework-oahl-backward-compatibility.vdex
-rw-r--r-- 1 root root 20M 2022-06-26 10:22 boot-framework.vdex
-rw-r--r-- 1 root root 130K 2022-06-26 10:22 boot-ims-common.vdex
-rw-r--r-- 1 root root 378K 2022-06-26 10:22 boot-okhttp.vdex
-rw-r--r-- 1 root root 2.8M 2022-06-26 10:22 boot-telephony-common.vdex
-rw-r--r-- 1 root root 146K 2022-06-26 10:22 boot-voip-common.vdex
-rw-r--r-- 1 root root 4.4M 2022-06-26 10:22 boot.vdex
-rw-r--r-- 1 root root 185 2022-06-26 10:22 bouncycastle.jar
-rw-r--r-- 1 root root 200 2022-06-26 10:22 bu.jar
-rw-r--r-- 1 root root 200 2022-06-26 10:22 com.android.future.usb.accessory.jar
-rw-r--r-- 1 root root 200 2022-06-26 10:22 com.android.location.provider.jar
-rw-r--r-- 1 root root 200 2022-06-26 10:22 com.android.media.remotedisplay.jar
-rw-r--r-- 1 root root 200 2022-06-26 10:22 com.android.mediadrm.signer.jar
-rw-r--r-- 1 root root 200 2022-06-26 10:22 com.sumavision.util.terminalinfo.jar
-rw-r--r-- 1 root root 185 2022-06-26 10:22 conscrypt.jar
-rw-r--r-- 1 root root 200 2022-06-26 10:22 content.jar
-rw-r--r-- 1 root root 18K 2022-06-26 10:22 core-libart.jar
-rw-r--r-- 1 root root 123K 2022-06-26 10:22 core-oj.jar
-rw-r--r-- 1 root root 200 2022-06-26 10:22 dpm.jar
-rw-r--r-- 1 root root 200 2022-06-26 10:22 ethernet-service.jar
-rw-r--r-- 1 root root 1.8M 2022-06-26 10:22 ext.jar
-rw-r--r-- 1 root root 183 2022-06-26 10:22 framework-oahl-backward-compatibility.jar
-rw-r--r-- 1 root root 32M 2022-06-26 10:22 framework-res.apk
-rw-r--r-- 1 root root 183 2022-06-26 10:22 framework.jar
-rw-r--r-- 1 root root 200 2022-06-26 10:22 hid.jar
-rw-r--r-- 1 root root 200 2022-06-26 10:22 ims-common.jar
-rw-r--r-- 1 root root 200 2022-06-26 10:22 input.jar
-rw-r--r-- 1 root root 183 2022-06-26 10:22 iptvd.core.jar
-rw-r--r-- 1 root root 200 2022-06-26 10:22 javax.obex.jar
-rw-r--r-- 1 root root 183 2022-06-26 10:22 libipd.jar
-rw-r--r-- 1 root root 200 2022-06-26 10:22 locksettings.jar
-rw-r--r-- 1 root root 200 2022-06-26 10:22 media_cmd.jar
-rw-r--r-- 1 root root 200 2022-06-26 10:22 monkey.jar
drwxr-xr-x 3 root root 4.0K 2022-06-26 11:03 oat
-rw-r--r-- 1 root root 185 2022-06-26 10:22 okhttp.jar
-rw-r--r-- 1 root root 200 2022-06-26 10:22 org.apache.http.legacy.boot.jar
-rw-r--r-- 1 root root 1.3K 2022-06-26 10:22 org.apache.http.legacy.boot.jar.prof
-rw-r--r-- 1 root root 200 2022-06-26 10:22 pppoe-service.jar
-rw-r--r-- 1 root root 200 2022-06-26 10:22 requestsync.jar
-rw-r--r-- 1 root root 183 2022-06-26 10:22 services.jar
-rw-r--r-- 1 root root 2.5K 2022-06-26 10:22 services.jar.prof
-rw-r--r-- 1 root root 200 2022-06-26 10:22 sm.jar
-rw-r--r-- 1 root root 200 2022-06-26 10:22 svc.jar
-rw-r--r-- 1 root root 200 2022-06-26 10:22 telecom.jar
-rw-r--r-- 1 root root 200 2022-06-26 10:22 telephony-common.jar
-rw-r--r-- 1 root root 200 2022-06-26 10:22 uiautomator.jar
-rw-r--r-- 1 root root 183 2022-06-26 10:22 vendor.amlogic.hardware.droidvold-V1.0java.jar
-rw-r--r-- 1 root root 200 2022-06-26 10:22 vlan-service.jar
-rw-r--r-- 1 root root 183 2022-06-26 10:22 voip-common.jar
-rw-r--r-- 1 root root 200 2022-06-26 10:22 wifi-service.jar
-rw-r--r-- 1 root root 1.1K 2022-06-26 10:22 wifi-service.jar.prof
cmcc_jiangsu:/ #
%%%%%
/system/build.prop
cmcc_jiangsu:/ # ls -alh /system/build.prop
-rw------- 1 root root 14K 2022-06-26 10:21 /system/build.prop
cmcc_jiangsu:/ #
build.prop 跟根文件系统中的 default.prop 文件格式一样 都称为属性配置文件
她们都定义了一些属性值 代码可以读取或者修改这些属性值
属性值有一些命名规范:
ro 开头的表示只读属性 即这些属性的值代码是无法修改的
persist 开头的表示这些属性值会保存在文件中 这样重新启动之后这些值还保留其她的属性一般以所属的类别开头 这些属性是可读可写的 但是对她们的修改重启之后不会保留
很多 ROM 制作者都会修改一下 build.prop 信息
里面的一些以 ro.build 开头的属性就是你在手机设置中的关于手机里看到的
可以通过修改 build.prop 文件来将这个 ROM 打上自己的印记 例如
OOXX 所修改
我见过一个只是删了 /system/app 的一些程序
然后修改 build.prop 中的
ro.build.display.id
ro.build.version.incremental
两个属性值打上自己的大名的 ROM ……
——————————
data 分区和 cache 分区
当我们开机进入桌面程序后 一般来说我们都会下载安装一些 APP
这些 APP 都安装在该目录下
/data/app
所有的 Android 程序生成的数据基本上都保存在 data/data 目录下
wipe data 实质上就是格式化 data 分区 这样我们安装的所有 APP 和程序数据就都丢失了
cache 分区从名字上来看是用来缓存一些文件的
比如说一些音乐下载的临时文件
或者下载管理下载的内容基本上放在这个分区
%%%%%
/data/data 目录
/data/data 目录存放的是所有 APK 程序数据的目录
每个 APK 所对应的 Data 目录都在 /data/data/ 目录下
会产生一个跟 PackageName/包名 一样的目录
比如有一个 APK 包名
com.test.hello
则在 /data/data/ 目录下会有一个 com.test.hello 的目录:
/data/data/com.test.hello
这个 APK 只能操作此目录而不能操作其她 APK 的目录
另外 如果你是 Android 编程的话 当你在代码中用 Context.openFileOutput() 所建立的文件都放在这个目录
/data/data/<app-package-name>
下的 files 子目录内
而用 Context.getSharedPreferences() 所建立的 preferences 文件 *.xml 则是放在 shared_pref 这个子目录中
我的系统这边竟然有 41 个:
cmcc_jiangsu:/ # ls /data/data | wc -l
41
cmcc_jiangsu:/ # ls /data/data
android com.android.settings
android.ext.services com.android.sharedstoragebackup
android.ext.shared com.android.shell
com.android.backupconfirm com.android.statementservice
com.android.bluetooth com.android.superuser
com.android.certinstaller com.android.systemui
com.androidpaniondevicemanager com.android.vpndialogs
com.android.defcontainer com.android.webview
com.android.externalstorage com.cmcc.mid.softdetector
com.android.inputdevices com.dangbei.tvlauncher
com.android.inputmethod.latin com.dangbeimarket
com.android.keychain com.droidlogic
com.android.location.fused com.droidlogic.BluetoothRemote
com.android.managedprovisioning com.droidlogic.inputmethod.remote
com.android.packageinstaller com.fengyun.live
com.android.pacprocessor com.iflytek.bt.auto
com.android.providers.downloads com.iflytek.xiri
com.android.providers.media com.iflytek.xiri2.system
com.android.providers.settings com.mylejia.store
com.android.proxyhandler me.thomastv.rebootupdate
com.android.se
cmcc_jiangsu:/ # ls /data/data -alh
total 170K
drwxrwx--x 43 system system 4.0K 2015-01-01 08:00 .
drwxrwx--x 40 system system 4.0K 2015-01-01 08:00 ..
drwx------ 4 system system 4.0K 2015-01-01 08:00 android
drwx------ 4 u0_a3 u0_a3 4.0K 2015-01-01 08:00 android.ext.services
drwx------ 4 u0_a15 u0_a15 4.0K 2015-01-01 08:00 android.ext.shared
drwx------ 4 u0_a1 u0_a1 4.0K 2015-01-01 08:00 com.android.backupconfirm
drwx------ 4 bluetooth bluetooth 4.0K 2015-01-01 08:00 com.android.bluetooth
drwx------ 4 u0_a13 u0_a13 4.0K 2015-01-01 08:00 com.android.certinstaller
drwx------ 4 u0_a12 u0_a12 4.0K 2015-01-01 08:00 com.androidpaniondevicemanager
drwx------ 4 u0_a0 u0_a0 4.0K 2015-01-01 08:00 com.android.defcontainer
drwx------ 4 u0_a4 u0_a4 4.0K 2015-01-01 08:00 com.android.externalstorage
drwx------ 4 system system 4.0K 2015-01-01 08:00 com.android.inputdevices
drwxr-x--x 4 u0_a20 u0_a20 4.0K 2015-01-01 08:00 com.android.inputmethod.latin
drwx------ 5 system system 4.0K 2015-01-01 08:00 com.android.keychain
drwx------ 4 system system 4.0K 2015-01-01 08:00 com.android.location.fused
drwx------ 5 u0_a5 u0_a5 4.0K 2015-01-01 08:00 com.android.managedprovisioning
drwx------ 4 u0_a8 u0_a8 4.0K 2015-01-01 08:00 com.android.packageinstaller
drwx------ 4 u0_a17 u0_a17 4.0K 2015-01-01 08:00 com.android.pacprocessor
drwx------ 5 u0_a2 u0_a2 4.0K 2015-01-01 08:00 com.android.providers.downloads
drwx------ 6 u0_a2 u0_a2 4.0K 2015-01-01 08:00 com.android.providers.media
drwx------ 4 system system 4.0K 2015-01-01 08:00 com.android.providers.settings
drwx------ 4 u0_a6 u0_a6 4.0K 2015-01-01 08:00 com.android.proxyhandler
drwx------ 4 secure_element secure_element 4.0K 2015-01-01 08:00 com.android.se
drwx------ 6 system system 4.0K 2015-01-01 08:00 com.android.settings
drwx------ 4 u0_a7 u0_a7 4.0K 2015-01-01 08:00 com.android.sharedstoragebackup
drwx------ 4 shell shell 4.0K 2015-01-01 08:00 com.android.shell
drwx------ 4 u0_a9 u0_a9 4.0K 2015-01-01 08:00 com.android.statementservice
drwxr-x--x 5 u0_a19 u0_a19 4.0K 2015-01-01 08:00 com.android.superuser
drwx------ 4 u0_a11 u0_a11 4.0K 2015-01-01 08:00 com.android.systemui
drwx------ 4 u0_a10 u0_a10 4.0K 2015-01-01 08:00 com.android.vpndialogs
drwx------ 4 u0_a23 u0_a23 4.0K 2015-01-01 08:00 com.android.webview
drwxr-x--x 10 u0_a18 u0_a18 4.0K 2015-01-01 08:00 com.cmcc.mid.softdetector
drwxr-x--x 7 u0_a16 u0_a16 4.0K 2015-01-01 08:00 com.dangbei.tvlauncher
drwxr-x--x 4 u0_a25 u0_a25 4.0K 2015-01-01 08:00 com.dangbeimarket
drwx------ 5 system system 4.0K 2015-01-01 08:00 com.droidlogic
drwx------ 4 system system 4.0K 2015-01-01 08:00 com.droidlogic.BluetoothRemote
drwx------ 6 u0_a22 u0_a22 4.0K 2015-01-01 08:00 com.droidlogic.inputmethod.remote
drwx------ 4 u0_a27 u0_a27 4.0K 2015-01-01 08:00 com.fengyun.live
drwx------ 4 u0_a14 u0_a14 4.0K 2015-01-01 08:00 com.iflytek.bt.auto
drwxr-x--x 11 u0_a21 u0_a21 4.0K 2022-07-22 18:46 com.iflytek.xiri
drwx------ 5 system system 4.0K 2015-01-01 08:00 com.iflytek.xiri2.system
drwx------ 4 u0_a26 u0_a26 4.0K 2015-01-01 08:00 com.mylejia.store
drwx------ 4 u0_a24 u0_a24 4.0K 2015-01-01 08:00 me.thomastv.rebootupdate
cmcc_jiangsu:/ #
%%%%%
/data/app 目录
/data/app 一般放的是使用者自己安装的应用程序可执行 *.apk 文件
用户安装的 APK 都放在这里
我们如果把 APK 放入这个文件夹下面的话就算安装好了
这就叫静默安装
不用管 APK 文件里面的 lib 目录下的库文件 系统会自动帮我们放入调用库
cmcc_jiangsu:/ # ls /data/app
com.dangbeimarket-GvchZCDlwKegHBtoXBQhwg==
com.fengyun.live-829NViyOdL42DNDyYJhxWw==
com.iflytek.xiri-WgYGkZvi6pwHhlca9dWSJw==
com.mylejia.store--X53YUFZXKN1XMhyN9prZw==
me.thomastv.rebootupdate-4SVHakbq9YXs3X7ozxyY0w==
cmcc_jiangsu:/ # ls /data/app -alh
total 16K
drwxrwxr-x 7 system system 4.0K 2015-01-01 08:00 .
drwxrwx--x 40 system system 4.0K 2015-01-01 08:00 ..
drwxr-xr-x 4 system system 4.0K 2015-01-01 08:00 com.dangbeimarket-GvchZCDlwKegHBtoXBQhwg==
drwxr-xr-x 4 system system 4.0K 2015-01-01 08:01 com.fengyun.live-829NViyOdL42DNDyYJhxWw==
drwxr-xr-x 4 system system 4.0K 2015-01-01 08:00 com.iflytek.xiri-WgYGkZvi6pwHhlca9dWSJw==
drwxr-xr-x 4 system system 4.0K 2015-01-01 08:00 com.mylejia.store--X53YUFZXKN1XMhyN9prZw==
drwxr-xr-x 4 system system 4.0K 2015-01-01 08:00 me.thomastv.rebootupdate-4SVHakbq9YXs3X7ozxyY0w==
cmcc_jiangsu:/ #
%%%%%
/data/misc 目录
WIFI 帐号或 VPN 设置信息等都保存在 /data/misc 目录下
比如保存了一个 WIFI 连接帐号
则在此目录下的 WIFI 目录下面的 wpa_supplicant.conf 中可以看到
cmcc_jiangsu:/ # ls /data/misc | wc -l
41
cmcc_jiangsu:/ # ls /data/misc
adb dhcp media sms vold
apns ethernet net stats-data vpn
audioserver gatekeeper network_watchlist stats-service wifi
bluedroid gcov perfprofd systemkeys wmtrace
bluetooth hdcp profiles textclassifier zoneinfo
bootstat incidents profman trace
boottrace keychain radio update_engine
cameraserver keystore recovery update_engine_log
carrierid logd shared_relro user
cmcc_jiangsu:/ # ls -alh /data/misc
total 88K
drwxrwx--t 43 system misc 4.0K 2015-01-01 08:00 .
drwxrwx--x 40 system system 4.0K 2015-01-01 08:00 ..
drwxr-s--- 2 system shell 4.0K 2015-01-01 08:00 adb
drwxrwx--- 2 system radio 4.0K 2015-01-01 08:00 apns
drwx------ 2 audioserver audioserver 4.0K 2015-01-01 08:00 audioserver
drwxrws--- 2 bluetooth bluetooth 4.0K 2022-07-19 12:10 bluedroid
drwxrwx--- 3 bluetooth bluetooth 4.0K 2015-01-01 08:00 bluetooth
drwx------ 2 system log 4.0K 2015-01-01 08:00 bootstat
drwxrwx--x 2 system shell 4.0K 2015-01-01 08:00 boottrace
drwx------ 2 cameraserver cameraserver 4.0K 2015-01-01 08:00 cameraserver
drwxrwx--- 2 system radio 4.0K 2015-01-01 08:00 carrierid
drwxrwx--- 2 dhcp dhcp 4.0K 2015-01-01 08:00 dhcp
drwxrwx--- 2 system system 4.0K 2022-07-22 19:23 ethernet
drwx------ 2 system system 4.0K 2015-01-01 08:00 gatekeeper
drwxrwx--- 2 root root 4.0K 2015-01-01 08:00 gcov
drwxrwx--- 2 media media 4.0K 2015-01-01 08:00 hdcp
drwxrwx--- 2 incidentd incidentd 4.0K 2015-01-01 08:00 incidents
drwxrwx--x 2 system system 4.0K 2015-01-01 08:00 keychain
drwx------ 3 keystore keystore 4.0K 2015-01-01 08:00 keystore
drwx------ 2 logd log 4.0K 2015-01-01 08:00 logd
drwx------ 2 media media 4.0K 2015-01-01 08:00 media
drwxr-x--- 2 root shell 4.0K 2015-01-01 08:00 net
drwxrwxr-- 2 system system 4.0K 2015-01-01 08:00 network_watchlist
drwxrwxr-x 2 root root 4.0K 2015-01-01 08:00 perfprofd
drwxrwx--x 4 system system 4.0K 2015-01-01 08:00 profiles
drwxrwx--- 2 system shell 4.0K 2015-01-01 08:00 profman
drwxrwx--- 2 system radio 4.0K 2015-01-01 08:00 radio
drwxrwx--- 3 system log 4.0K 2015-01-01 08:00 recovery
drwxrwx--x 2 shared_relro shared_relro 4.0K 2022-07-22 18:46 shared_relro
drwxrwx--- 2 system radio 4.0K 2015-01-01 08:00 sms
drwxrwx--- 2 statsd system 4.0K 2015-01-01 08:00 stats-data
drwxrwx--- 2 statsd system 4.0K 2015-01-01 08:00 stats-service
drwx------ 2 system system 4.0K 2015-01-01 08:00 systemkeys
drwxrwx--x 2 system system 4.0K 2015-01-01 08:00 textclassifier
drwxrwx-wx 2 root root 4.0K 2015-01-01 08:00 trace
drwx------ 2 root root 4.0K 2015-01-01 08:00 update_engine
drwxr-s--- 2 root log 4.0K 2015-01-01 08:00 update_engine_log
drwxrwx--x 3 root root 4.0K 2015-01-01 08:00 user
drwx------ 2 root root 4.0K 2015-01-01 08:00 vold
drwxrwx--- 2 system vpn 4.0K 2015-01-01 08:00 vpn
drwxrwx--- 4 wifi wifi 4.0K 2015-01-01 08:00 wifi
drwxrwxr-x 2 system system 4.0K 2015-01-01 08:00 wmtrace
drwxrwxr-x 2 system system 4.0K 2015-01-01 08:00 zoneinfo
cmcc_jiangsu:/ # ls /data/misc/wifi/
sockets/ softap.conf wpa_supplicant/
cmcc_jiangsu:/ # ls /data/misc/wifi/wpa_supplicant
cmcc_jiangsu:/ # ls /data/misc/wifi/wpa_supplicant -alh
total 4.0K
drwxrwx--- 2 wifi wifi 4.0K 2015-01-01 08:00 .
drwxrwx--- 4 wifi wifi 4.0K 2015-01-01 08:00 ..
cmcc_jiangsu:/ # ls /data/misc/wifi/ -alh
total 10K
drwxrwx--- 4 wifi wifi 4.0K 2015-01-01 08:00 .
drwxrwx--t 43 system misc 4.0K 2015-01-01 08:00 ..
drwxrwx--- 2 wifi wifi 4.0K 2015-01-01 08:00 sockets
-rw------- 1 system system 47 2015-01-01 08:00 softap.conf
drwxrwx--- 2 wifi wifi 4.0K 2015-01-01 08:00 wpa_supplicant
cmcc_jiangsu:/ #
%%%%%
/data/local/tmp 目录
/data/local/tmp 就不用多说了 懂的都懂!
在 Android 中访问 data 目录一般需要 root 权限但是有个例外那就是 /data/local/tmp 目录!!!
cmcc_jiangsu:/ # ls /data/local/tmp
log.txt symbol_thirdpart_apks_installed
cmcc_jiangsu:/ # ls /data/local/tmp -alh
total 6.0K
drwxrwx--x 2 shell shell 4.0K 2015-01-01 08:01 .
drwxrwxrwx 4 root root 4.0K 2015-01-01 08:00 ..
-rw------- 1 root root 233 2015-01-01 08:01 log.txt
-rw------- 1 root root 0 2015-01-01 08:01 symbol_thirdpart_apks_installed
cmcc_jiangsu:/ # ls /data/local -alh
total 10K
drwxrwxrwx 4 root root 4.0K 2015-01-01 08:00 .
drwxrwx--x 40 system system 4.0K 2015-01-01 08:00 ..
-rw------- 1 root root 0 2015-01-01 08:00 showwififlag
drwxrwx--x 2 shell shell 4.0K 2015-01-01 08:01 tmp
drwxrwxrwx 2 shell shell 4.0K 2015-01-01 08:00 traces
cmcc_jiangsu:/ #
%%%%%
/data/anr/traces.txt 文件与 /data/system/dropbox/*.txt 文件们
当你的应用程序发生 ANR/Application is Not Responding 错误时
Android 会自动将问题点的
code stack list/代码堆栈列表
写在 /data/anr/traces.txt 这个文件内
你直接用 cat 命令就查看内容
cmcc_jiangsu:/ # ls /data -alh
total 88K
drwxrwx--x 40 system system 4.0K 2015-01-01 08:00 .
drwxr-xr-x 23 root root 0 2015-01-01 08:00 ..
-rw------- 1 root root 2 2015-01-01 08:00 .layout_version
drwx------ 2 root root 4.0K 2015-01-01 08:00 adb
drwxrwxr-x 2 system system 4.0K 2015-01-01 08:00 anr
drwxrwxr-x 7 system system 4.0K 2015-01-01 08:00 app
drwx------ 2 root root 4.0K 2015-01-01 08:00 app-asec
drwxrwx--x 2 system system 4.0K 2015-01-01 08:00 app-ephemeral
drwxrwx--x 2 system system 4.0K 2015-01-01 08:00 app-lib
drwxrwx--x 2 system system 4.0K 2015-01-01 08:00 app-private
drwx------ 4 system system 4.0K 2022-07-22 18:46 backup
drwxr-xr-x 2 shell shell 4.0K 2015-01-01 08:00 bootchart
drwxrwx--- 5 system cache 4.0K 2015-01-01 08:00 cache
drwxrwx--x 3 root root 4.0K 2015-01-01 08:00 dalvik-cache
drwxrwx--x 43 system system 4.0K 2015-01-01 08:00 data
drwxrwx--- 3 drm drm 4.0K 2015-01-01 08:00 drm
drwxrwx--x 2 system system 4.0K 2015-01-01 08:00 droidota
drwxrwx--- 2 system system 4.0K 2015-01-01 08:00 execmd
drwxrwxrwx 4 root root 4.0K 2015-01-01 08:00 local
drwxrwx--x 3 log log 4.0K 2015-01-01 08:00 log
drwxrwx--- 2 root root 16K 2015-01-01 08:00 lost+found
drwxrwx--- 4 media_rw media_rw 4.0K 2015-01-01 08:00 media
drwxrwx--- 2 mediadrm mediadrm 4.0K 2015-01-01 08:00 mediadrm
drwxrwx--t 43 system misc 4.0K 2015-01-01 08:00 misc
drwxrwx--t 3 system misc 4.0K 2015-01-01 08:00 misc_ce
drwxrwx--t 3 system misc 4.0K 2015-01-01 08:00 misc_de
drwxrwx--- 3 nfc nfc 4.0K 2015-01-01 08:00 nfc
drwxrwx--x 2 root root 4.0K 2015-01-01 08:00 ota
drwxrwx--- 2 system cache 4.0K 2015-01-01 08:00 ota_package
drwx------ 2 root root 4.0K 2022-07-22 19:25 property
drwxrwx--x 2 system system 4.0K 2015-01-01 08:00 resource-cache
drwx------ 2 system system 4.0K 2015-01-01 08:00 ss
drwxrwxr-x 18 system system 4.0K 2022-07-22 20:16 system
drwxrwx--- 3 system system 4.0K 2015-01-01 08:00 system_ce
drwxrwx--- 3 system system 4.0K 2015-01-01 08:00 system_de
drwxrwx--x 2 system system 4.0K 2022-07-22 19:03 tombstones
drwx--x--x 2 system system 4.0K 2015-01-01 08:00 user
drwx--x--x 3 system system 4.0K 2015-01-01 08:00 user_de
drwxrwx--x 7 root root 4.0K 2015-01-01 08:00 vendor
drwxrwx--x 3 root root 4.0K 2015-01-01 08:00 vendor_ce
drwxrwx--x 3 root root 4.0K 2015-01-01 08:00 vendor_de
cmcc_jiangsu:/ # ls /data/anr/
cmcc_jiangsu:/ # ls /data/anr/ -alh
total 6.0K
drwxrwxr-x 2 system system 4.0K 2015-01-01 08:00 .
drwxrwx--x 40 system system 4.0K 2015-01-01 08:00 ..
cmcc_jiangsu:/ #
而 /data/system/dropbox 下的文件们主要是系统内 apk 发生 crash 时写的日志文件
主要有 system_app_crash 或 data_app_crash 等日志
cmcc_jiangsu:/ # ls /data/system/dropbox
SYSTEM_BOOT@1658486820338.txt
system_app_strictmode@1658486812713.txt
system_app_strictmode@1658486812724.txt
system_app_strictmode@1658486812732.txt
system_app_strictmode@1658486812745.txt
system_app_strictmode@1658486812763.txt
system_app_strictmode@1658486812769.txt
system_app_strictmode@1658486812777.txt
system_app_strictmode@1658486812789.txt
system_app_strictmode@1658486812795.txt
system_app_strictmode@1658486812817.txt
system_app_strictmode@1658486821213.txt
system_app_strictmode@1658486821253.txt
system_app_strictmode@1658486821286.txt
system_app_strictmode@1658486821326.txt
system_app_strictmode@1658486821366.txt
system_app_strictmode@1658486821402.txt
system_app_strictmode@1658486821421.txt
system_app_strictmode@1658486821446.txt
system_app_strictmode@1658486821466.txt
system_app_strictmode@1658486821489.txt
system_app_strictmode@1658488660424.txt.gz
system_app_wtf@1658486814247.txt
system_server_strictmode@1658486816020.txt
system_server_strictmode@1658486816024.txt
system_server_strictmode@1658486816039.txt
system_server_strictmode@1658486816047.txt
system_server_strictmode@1658486816053.txt
system_server_strictmode@1658486816060.txt
system_server_strictmode@1658486819968.txt
system_server_strictmode@1658486819973.txt
system_server_strictmode@1658486819979.txt
system_server_strictmode@1658486819982.txt
system_server_strictmode@1658486822840.txt
system_server_wtf@1658486814250.txt
system_server_wtf@1658486814260.txt
system_server_wtf@1658489113063.txt
cmcc_jiangsu:/ # ls /data/system/dropbox -alh
total 94K
drwx------ 2 system system 32K 2022-07-22 19:25 .
drwxrwxr-x 18 system system 4.0K 2022-07-22 20:46 ..
-rw------- 1 system system 319 2022-07-22 18:47 SYSTEM_BOOT@1658486820338.txt
-rw------- 1 system system 1.7K 2022-07-22 18:46 system_app_strictmode@1658486812713.txt
-rw------- 1 system system 1.7K 2022-07-22 18:46 system_app_strictmode@1658486812724.txt
-rw------- 1 system system 1.8K 2022-07-22 18:46 system_app_strictmode@1658486812732.txt
-rw------- 1 system system 1.4K 2022-07-22 18:46 system_app_strictmode@1658486812745.txt
-rw------- 1 system system 2.5K 2022-07-22 18:46 system_app_strictmode@1658486812763.txt
-rw------- 1 system system 2.5K 2022-07-22 18:46 system_app_strictmode@1658486812769.txt
-rw------- 1 system system 2.5K 2022-07-22 18:46 system_app_strictmode@1658486812777.txt
-rw------- 1 system system 2.3K 2022-07-22 18:46 system_app_strictmode@1658486812789.txt
-rw------- 1 system system 2.4K 2022-07-22 18:46 system_app_strictmode@1658486812795.txt
-rw------- 1 system system 2.2K 2022-07-22 18:46 system_app_strictmode@1658486812817.txt
-rw------- 1 system system 2.0K 2022-07-22 18:47 system_app_strictmode@1658486821213.txt
-rw------- 1 system system 2.4K 2022-07-22 18:47 system_app_strictmode@1658486821253.txt
-rw------- 1 system system 2.5K 2022-07-22 18:47 system_app_strictmode@1658486821286.txt
-rw------- 1 system system 2.5K 2022-07-22 18:47 system_app_strictmode@1658486821326.txt
-rw------- 1 system system 2.5K 2022-07-22 18:47 system_app_strictmode@1658486821366.txt
-rw------- 1 system system 2.5K 2022-07-22 18:47 system_app_strictmode@1658486821402.txt
-rw------- 1 system system 2.5K 2022-07-22 18:47 system_app_strictmode@1658486821421.txt
-rw------- 1 system system 2.5K 2022-07-22 18:47 system_app_strictmode@1658486821446.txt
-rw------- 1 system system 2.5K 2022-07-22 18:47 system_app_strictmode@1658486821466.txt
-rw------- 1 system system 2.5K 2022-07-22 18:47 system_app_strictmode@1658486821489.txt
-rw------- 1 system system 1.2K 2022-07-22 19:17 system_app_strictmode@1658488660424.txt.gz
-rw------- 1 system system 1.3K 2022-07-22 18:46 system_app_wtf@1658486814247.txt
-rw------- 1 system system 1.1K 2022-07-22 18:46 system_server_strictmode@1658486816020.txt
-rw------- 1 system system 1.1K 2022-07-22 18:46 system_server_strictmode@1658486816024.txt
-rw------- 1 system system 1.5K 2022-07-22 18:46 system_server_strictmode@1658486816039.txt
-rw------- 1 system system 1.5K 2022-07-22 18:46 system_server_strictmode@1658486816047.txt
-rw------- 1 system system 1.5K 2022-07-22 18:46 system_server_strictmode@1658486816053.txt
-rw------- 1 system system 1.5K 2022-07-22 18:46 system_server_strictmode@1658486816060.txt
-rw------- 1 system system 1.1K 2022-07-22 18:46 system_server_strictmode@1658486819968.txt
-rw------- 1 system system 1.5K 2022-07-22 18:46 system_server_strictmode@1658486819973.txt
-rw------- 1 system system 1.5K 2022-07-22 18:46 system_server_strictmode@1658486819979.txt
-rw------- 1 system system 1.5K 2022-07-22 18:46 system_server_strictmode@1658486819982.txt
-rw------- 1 system system 1.5K 2022-07-22 18:47 system_server_strictmode@1658486822840.txt
-rw------- 1 system system 1.1K 2022-07-22 18:46 system_server_wtf@1658486814250.txt
-rw------- 1 system system 1.1K 2022-07-22 18:46 system_server_wtf@1658486814260.txt
-rw------- 1 system system 1.1K 2022-07-22 19:25 system_server_wtf@1658489113063.txt
cmcc_jiangsu:/ #
%%%%%
/data/location/gps 目录和 /data/system/location/ 目录以及 /data/property/ 目录
/data/location/gps 目录是给 GPS location provider 用的
其中的 properties 档案的内容如下
/data/system/location/location.gps 这个文件主要是记录最后的经纬度座标
LocationManager.getLastKnownLocation() 就是在这抓值的
/data/property/persist.sys.timezone 文件主要是记录目前系统所使用的时区
例如记录着 Asia/ShangHai 这个字串
cmcc_jiangsu:/ # ls /data/property/ -alh
total 8.0K
drwx------ 2 root root 4.0K 2022-07-22 19:25 .
drwxrwx--x 40 system system 4.0K 2015-01-01 08:00 ..
-rw------- 1 root root 0.9K 2022-07-22 19:25 persistent_properties
cmcc_jiangsu:/ #
——————————
SD 卡目录
最常见的两个 sd 卡目录为:
/sdcard
/mnt/sdcard
但是储存卡位置在:
/storage/emulated/0
要说储存卡还真是不好找啊 链接来链接去的 最后才能确定为 /storage/emulated/0
cmcc_jiangsu:/ # ls / -alh
total 792K
drwxr-xr-x 23 root root 0 2015-01-01 08:00 .
drwxr-xr-x 23 root root 0 2015-01-01 08:00 ..
dr-xr-xr-x 35 root root 0 2015-01-01 08:00 acct
lrwxrwxrwx 1 root root 11 1970-01-01 08:00 bin -> /system/bin
drwxr-xr-x 2 root root 0 1970-01-01 08:00 boot
drwxrwxr-x 2 system system 0 2015-01-01 08:00 bootfiles
lrwxrwxrwx 1 root root 50 1970-01-01 08:00 bugreports -> /data/user_de/0/com.android.shell/files/bugreports
drwxrwx--- 6 system cache 4.0K 2015-01-01 08:00 cache
lrwxrwxrwx 1 root root 13 1970-01-01 08:00 charger -> /sbin/charger
drwxr-xr-x 4 root root 0 1970-01-01 08:00 config
lrwxrwxrwx 1 root root 17 1970-01-01 08:00 d -> /sys/kernel/debug
drwxrwx--x 40 system system 4.0K 2015-01-01 08:00 data
lrwxrwxrwx 1 root root 23 1970-01-01 08:00 default.prop -> system/etc/prop.default
drwxr-xr-x 17 root root 5.5K 2022-07-22 20:33 dev
lrwxrwxrwx 1 root root 11 1970-01-01 08:00 etc -> /system/etc
drwxr-xr-x 2 root root 0 2015-01-01 08:00 factory
lrwxrwxrwx 1 root root 17 1970-01-01 08:00 info -> /mnt/vendor/param
-rwxr-x--- 1 root root 1.4M 1970-01-01 08:00 init
-rwxr-x--- 1 root root 1.1K 1970-01-01 08:00 init.environ.rc
-rwxr-x--- 1 root root 29K 1970-01-01 08:00 init.rc
-rwxr-x--- 1 root root 15K 1970-01-01 08:00 init.recovery.amlogic.rc
-rwxr-x--- 1 root root 7.5K 1970-01-01 08:00 init.usb.configfs.rc
-rwxr-x--- 1 root root 5.5K 1970-01-01 08:00 init.usb.rc
-rwxr-x--- 1 root root 511 1970-01-01 08:00 init.zygote32.rc
drwxr-xr-x 4 root root 4.0K 2015-01-01 08:00 metadata
drwxr-xr-x 12 root system 260 2022-07-22 18:47 mnt
drwxr-xr-x 4 root root 4.0K 1970-01-01 08:00 odm
drwxr-xr-x 2 root root 0 1970-01-01 08:00 oem
dr-xr-xr-x 261 root root 0 1970-01-01 08:00 proc
drwxr-xr-x 7 root root 4.0K 1970-01-01 08:00 product
drwx------ 2 root root 0 2021-12-10 20:51 root
drwxr-x--- 2 root root 0 1970-01-01 08:00 sbin
lrwxrwxrwx 1 root root 21 1970-01-01 08:00 sdcard -> /storage/self/primary
drwxr-xr-x 4 root root 80 2022-07-22 18:58 storage
dr-xr-xr-x 12 root root 0 2015-01-01 08:00 sys
drwxr-xr-x 15 root root 4.0K 1970-01-01 08:00 system
drwxrwxrwt 3 root root 80 2022-07-22 19:48 tmp
-rw-r--r-- 1 root root 5.1K 1970-01-01 08:00 ueventd.rc
drwxr-xr-x 13 root root 4.0K 1970-01-01 08:00 vendor
cmcc_jiangsu:/ # ls -alh /sdcard
lrwxrwxrwx 1 root root 21 1970-01-01 08:00 /sdcard -> /storage/self/primary
cmcc_jiangsu:/ # ls -alh /mnt/sdcard
lrwxrwxrwx 1 root root 21 2015-01-01 08:00 /mnt/sdcard -> /storage/self/primary
cmcc_jiangsu:/ # ls -alh /storage/self/primary
lrwxrwxrwx 1 root root 19 2015-01-01 08:00 /storage/self/primary -> /mnt/user/0/
primary
cmcc_jiangsu:/ # ls -alh /mnt/user/0/primary
lrwxrwxrwx 1 root reserved_disk 19 2015-01-01 08:00 /mnt/user/0/primary -> /stor
age/emulated/0
cmcc_jiangsu:/ # ls -alh /storage/emulated/0
total 44K
drwxrwx--x 22 root sdcard_rw 4.0K 2022-07-20 18:56 .
drwx--x--x 4 root sdcard_rw 4.0K 2015-01-01 08:00 ..
drwxrwx--x 2 root sdcard_rw 4.0K 2022-07-22 18:47 .DataStorage
drwxrwx--x 3 root sdcard_rw 4.0K 2015-01-01 08:00 .UTSystemConfig
drwxrwx--x 2 root sdcard_rw 4.0K 2015-01-01 08:00 Alarms
drwxrwx--x 5 root sdcard_rw 4.0K 2022-07-19 11:05 Android
drwxrwx--x 3 root sdcard_rw 4.0K 2022-07-19 11:08 DBLauncher
drwxrwx--x 2 root sdcard_rw 4.0K 2022-07-19 13:56 DBZM
drwxrwx--x 2 root sdcard_rw 4.0K 2015-01-01 08:00 DCIM
drwxrwx--x 2 root sdcard_rw 4.0K 2015-01-01 08:00 Download
drwxrwx--x 2 root sdcard_rw 4.0K 2015-01-01 08:00 Movies
drwxrwx--x 2 root sdcard_rw 4.0K 2015-01-01 08:00 Music
drwxrwx--x 2 root sdcard_rw 4.0K 2015-01-01 08:00 Notifications
drwxrwx--x 3 root sdcard_rw 4.0K 2015-01-01 08:00 Pictures
drwxrwx--x 2 root sdcard_rw 4.0K 2015-01-01 08:00 Podcasts
drwxrwx--x 2 root sdcard_rw 4.0K 2015-01-01 08:00 Ringtones
drwxrwx--x 2 root sdcard_rw 4.0K 2022-07-19 11:01 com.iflytek.xiri
drwxrwx--x 5 root sdcard_rw 4.0K 2015-01-01 08:01 msc
drwxrwx--x 2 root sdcard_rw 4.0K 2022-07-20 18:58 sc
drwxrwx--x 5 root sdcard_rw 4.0K 2022-07-19 11:08 zm_pingbao
drwxrwx--x 2 root sdcard_rw 4.0K 2015-01-01 08:05 zm_pingbao_local
drwxrwx--x 2 root sdcard_rw 4.0K 2015-01-01 08:00 zm_wx_chuantu
cmcc_jiangsu:/ #
##################################################
安卓系统分区操作
——————————
安卓系统查看磁盘使用情况
%%%%%
查看根分区目录
cmcc_jiangsu:/ # ls
acct d init.environ.rc odm sys
bin data init.rc oem system
boot default.prop init.recovery.amlogic.rc proc tmp
bootfiles dev init.usb.configfs.rc product ueventd.rc
bugreports etc init.usb.rc root vendor
cache factory init.zygote32.rc sbin
charger info metadata sdcard
config init mnt storage
cmcc_jiangsu:/ # ls -alh
total 792K
drwxr-xr-x 23 root root 0 2015-01-01 08:00 .
drwxr-xr-x 23 root root 0 2015-01-01 08:00 ..
dr-xr-xr-x 34 root root 0 2015-01-01 08:00 acct
lrwxrwxrwx 1 root root 11 1970-01-01 08:00 bin -> /system/bin
drwxr-xr-x 2 root root 0 1970-01-01 08:00 boot
drwxrwxr-x 2 system system 0 2015-01-01 08:00 bootfiles
lrwxrwxrwx 1 root root 50 1970-01-01 08:00 bugreports -> /data/user_de/0/com.android.shell/files/bugreports
drwxrwx--- 6 system cache 4.0K 2015-01-01 08:00 cache
lrwxrwxrwx 1 root root 13 1970-01-01 08:00 charger -> /sbin/charger
drwxr-xr-x 4 root root 0 1970-01-01 08:00 config
lrwxrwxrwx 1 root root 17 1970-01-01 08:00 d -> /sys/kernel/debug
drwxrwx--x 40 system system 4.0K 2015-01-01 08:00 data
lrwxrwxrwx 1 root root 23 1970-01-01 08:00 default.prop -> system/etc/prop.default
drwxr-xr-x 17 root root 5.5K 2015-01-01 08:00 dev
lrwxrwxrwx 1 root root 11 1970-01-01 08:00 etc -> /system/etc
drwxr-xr-x 2 root root 0 2015-01-01 08:00 factory
lrwxrwxrwx 1 root root 17 1970-01-01 08:00 info -> /mnt/vendor/param
-rwxr-x--- 1 root root 1.4M 1970-01-01 08:00 init
-rwxr-x--- 1 root root 1.1K 1970-01-01 08:00 init.environ.rc
-rwxr-x--- 1 root root 29K 1970-01-01 08:00 init.rc
-rwxr-x--- 1 root root 15K 1970-01-01 08:00 init.recovery.amlogic.rc
-rwxr-x--- 1 root root 7.5K 1970-01-01 08:00 init.usb.configfs.rc
-rwxr-x--- 1 root root 5.5K 1970-01-01 08:00 init.usb.rc
-rwxr-x--- 1 root root 511 1970-01-01 08:00 init.zygote32.rc
drwxr-xr-x 4 root root 4.0K 2015-01-01 08:00 metadata
drwxr-xr-x 11 root system 240 2015-01-01 08:00 mnt
drwxr-xr-x 4 root root 4.0K 1970-01-01 08:00 odm
drwxr-xr-x 2 root root 0 1970-01-01 08:00 oem
dr-xr-xr-x 259 root root 0 1970-01-01 08:00 proc
drwxr-xr-x 7 root root 4.0K 1970-01-01 08:00 product
drwx------ 2 root root 0 2021-12-10 20:51 root
drwxr-x--- 2 root root 0 1970-01-01 08:00 sbin
lrwxrwxrwx 1 root root 21 1970-01-01 08:00 sdcard -> /storage/self/primary
drwxr-xr-x 4 root root 80 2015-01-01 08:00 storage
dr-xr-xr-x 12 root root 0 2015-01-01 08:00 sys
drwxr-xr-x 15 root root 4.0K 1970-01-01 08:00 system
drwxrwxrwt 3 root root 80 2022-07-21 00:02 tmp
-rw-r--r-- 1 root root 5.1K 1970-01-01 08:00 ueventd.rc
drwxr-xr-x 13 root root 4.0K 1970-01-01 08:00 vendor
cmcc_jiangsu:/ #
%%%%%
df -h 常用查看存储情况
最常用的方式:
cmcc_jiangsu:/ # df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 0.9G 516K 0.9G 1% /dev
tmpfs 0.9G 0 0.9G 0% /mnt
/dev/block/odm 122M 472K 122M 1% /odm
/dev/block/product 126M 51M 75M 41% /product
/dev/block/system 1.2G 738M 501M 60% /system
/dev/block/vendor 310M 244M 66M 79% /vendor
tmpfs 0.9G 88K 0.9G 1% /tmp
tmpfs 0.9G 0 0.9G 0% /tmp/capture
/dev/block/data 10G 254M 10G 3% /data
/dev/block/cache 976M 1.2M 975M 1% /cache
/dev/block/metadata 11M 40K 11M 1% /metadata
/dev/block/param 11M 860K 11M 8% /mnt/vendor/param
/dev/block/tee 27M 28K 27M 1% /mnt/vendor/tee
/data/media 10G 254M 10G 3% /mnt/runtime/default/emulated
cmcc_jiangsu:/ # df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 1027576 516 1027060 1% /dev
tmpfs 1027576 0 1027576 0% /mnt
/dev/block/odm 124912 472 124440 1% /odm
/dev/block/product 129008 52496 76512 41% /product
/dev/block/system 1269632 756112 513520 60% /system
/dev/block/vendor 317396 249988 67408 79% /vendor
tmpfs 1027576 132 1027444 1% /tmp
tmpfs 1027576 0 1027576 0% /tmp/capture
/dev/block/data 10610276 260480 10349796 3% /data
/dev/block/cache 999320 1312 998008 1% /cache
/dev/block/metadata 11760 40 11720 1% /metadata
/dev/block/param 11744 860 10884 8% /mnt/vendor/param
/dev/block/tee 27632 28 27604 1% /mnt/vendor/tee
/data/media 10610276 260480 10349796 3% /mnt/runtime/default/emulate
d
cmcc_jiangsu:/ #
%%%%%
df -ah 查看所有存储情况
cmcc_jiangsu:/ # df -ah
Filesystem Size Used Avail Use% Mounted on
rootfs 0 0 0 0% /
tmpfs 0.9G 516K 0.9G 1% /dev
devpts 0 0 0 0% /dev/pts
proc 0 0 0 0% /proc
sysfs 0 0 0 0% /sys
selinuxfs 0 0 0 0% /sys/fs/selinux
tmpfs 0.9G 0 0.9G 0% /mnt
/dev/block/odm 122M 472K 122M 1% /odm
/dev/block/product 126M 51M 75M 41% /product
/dev/block/system 1.2G 738M 501M 60% /system
/dev/block/vendor 310M 244M 66M 79% /vendor
none 0 0 0 0% /acct
/sys/kernel/debug 0 0 0 0% /sys/kernel/debug
none 0 0 0 0% /dev/stune
none 0 0 0 0% /config
none 0 0 0 0% /dev/cpuctl
none 0 0 0 0% /dev/cpuset
cg2_bpf 0 0 0 0% /dev/cg2_bpf
bpf 0 0 0 0% /sys/fs/bpf
pstore 0 0 0 0% /sys/fs/pstore
tmpfs 0.9G 132K 0.9G 1% /tmp
tmpfs 0.9G 0 0.9G 0% /tmp/capture
tracefs 0 0 0 0% /sys/kernel/debug/tracing
/dev/block/data 10G 254M 10G 3% /data
/dev/block/cache 976M 1.2M 975M 1% /cache
/dev/block/metadata 11M 40K 11M 1% /metadata
/dev/block/param 11M 860K 11M 8% /mnt/vendor/param
/dev/block/tee 27M 28K 27M 1% /mnt/vendor/tee
tmpfs 0.9G 0 0.9G 0% /storage
adb 0 0 0 0% /dev/usb-ffs/adb
/data/media 10G 254M 10G 3% /mnt/runtime/default/emulated
/data/media 10G 254M 10G 3% /storage/emulated
/data/media 10G 254M 10G 3% /mnt/runtime/read/emulated
/data/media 10G 254M 10G 3% /mnt/runtime/write/emulated
cmcc_jiangsu:/ #
%%%%%
查看分区数量
要注意的是 df 中的 size 是不准的 要以 /proc/partitions 为准
cmcc_jiangsu:/ # cat /proc/partitions
major minor #blocks name
1 0 4096 ram0
1 1 4096 ram1
1 2 4096 ram2
1 3 4096 ram3
1 4 4096 ram4
1 5 4096 ram5
1 6 4096 ram6
1 7 4096 ram7
1 8 4096 ram8
1 9 4096 ram9
1 10 4096 ram10
1 11 4096 ram11
1 12 4096 ram12
1 13 4096 ram13
1 14 4096 ram14
1 15 4096 ram15
252 0 262144 zram0
179 0 15267840 mmcblk0
179 1 4096 mmcblk0p1
179 2 65536 mmcblk0p2
179 3 1048576 mmcblk0p3
179 4 8192 mmcblk0p4
179 5 8192 mmcblk0p5
179 6 24576 mmcblk0p6
179 7 8192 mmcblk0p7
179 8 8192 mmcblk0p8
179 9 8192 mmcblk0p9
179 10 16384 mmcblk0p10
179 11 16384 mmcblk0p11
179 12 16384 mmcblk0p12
179 13 16384 mmcblk0p13
179 14 2048 mmcblk0p14
179 15 32768 mmcblk0p15
179 16 327680 mmcblk0p16
179 17 131072 mmcblk0p17
179 18 1310720 mmcblk0p18
179 19 131072 mmcblk0p19
179 20 1048576 mmcblk0p20
179 21 10846208 mmcblk0p21
179 96 4096 mmcblk0rpmb
179 64 4096 mmcblk0boot1
179 32 4096 mmcblk0boot0
cmcc_jiangsu:/ #
%%%%%
df 的 h 参数单独查看加载节点
单独查看分区 被加载到哪个节点
这边发现 /system 是 /dev/block/
cmcc_jiangsu:/ # df -h /system
Filesystem Size Used Avail Use% Mounted on
/dev/block/system 1.2G 738M 501M 60% /system
cmcc_jiangsu:/ #
——————————
查看分区表和分区名称的匹配关系
查看 /proc/mounts 文件
cmcc_jiangsu:/ # cat /proc/mounts
rootfs / rootfs ro,seclabel 0 0
tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,seclabel,relatime,mode=600,ptmxmode=000 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,seclabel,relatime 0 0
selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0
tmpfs /mnt tmpfs rw,seclabel,nosuid,nodev,noexec,relatime,mode=755,gid=1000 0 0
/dev/block/odm /odm ext4 ro,seclabel,relatime,data=ordered,inode_readahead_blks=8 0 0
/dev/block/product /product ext4 ro,seclabel,relatime,block_validity,delalloc,barrier,user_xattr,acl,inode_readahead_blks=8 0 0
/dev/block/system /system ext4 ro,seclabel,relatime,data=ordered,inode_readahead_blks=8 0 0
/dev/block/vendor /vendor ext4 ro,seclabel,relatime,data=ordered,inode_readahead_blks=8 0 0
none /acct cgroup rw,nosuid,nodev,noexec,relatime,cpuacct 0 0
/sys/kernel/debug /sys/kernel/debug debugfs rw,seclabel,relatime,mode=755 0 0
configfs /sys/kernel/config configfs rw,relatime 0 0
none /dev/stune cgroup rw,nosuid,nodev,noexec,relatime,schedtune 0 0
none /config configfs rw,nosuid,nodev,noexec,relatime 0 0
none /dev/cpuctl cgroup rw,nosuid,nodev,noexec,relatime,cpu 0 0
none /dev/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset,noprefix,release_
agent=/sbin/cpuset_release_agent 0 0
cg2_bpf /dev/cg2_bpf cgroup2 rw,nosuid,nodev,noexec,relatime 0 0
bpf /sys/fs/bpf bpf rw,nosuid,nodev,noexec,relatime 0 0
pstore /sys/fs/pstore pstore rw,seclabel,nosuid,nodev,noexec,relatime 0 0
tmpfs /tmp tmpfs rw,seclabel,relatime 0 0
tmpfs /tmp/capture tmpfs rw,seclabel,relatime 0 0
tracefs /sys/kernel/debug/tracing tracefs rw,seclabel,relatime 0 0
/dev/block/data /data ext4 rw,seclabel,nosuid,nodev,noatime,nodelalloc,resgid=1065,errors=panic,data=ordered 0 0
/dev/block/cache /cache ext4 rw,seclabel,nosuid,nodev,noatime,nodelalloc,errors=panic,data=ordered 0 0
/dev/block/metadata /metadata ext4 rw,seclabel,nosuid,nodev,noatime,nodelalloc,errors=panic,data=ordered 0 0
/dev/block/param /mnt/vendor/param ext4 rw,seclabel,nosuid,nodev,noatime,nodelalloc,errors=panic,data=ordered 0 0
/dev/block/tee /mnt/vendor/tee ext4 rw,seclabel,nosuid,nodev,noatime,nodelalloc,errors=panic,data=ordered 0 0
tmpfs /storage tmpfs rw,seclabel,nosuid,nodev,noexec,relatime,mode=755,gid=10000 0
adb /dev/usb-ffs/adb functionfs rw,relatime 0 0
/data/media /mnt/runtime/default/emulated sdcardfs rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,multiuser,mask=6,derive_gid,default_normal 0 0
/data/media /storage/emulated sdcardfs rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,multiuser,mask=6,derive_gid,default_normal 0 0
/data/media /mnt/runtime/read/emulated sdcardfs rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,multiuser,mask=23,derive_gid,default_normal 0 0
/data/media /mnt/runtime/write/emulated sdcardfs rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,multiuser,mask=7,derive_gid,default_normal 0 0
cmcc_jiangsu:/ #
或者查看 /sys/class/block 下的文件指向:
cmcc_jiangsu:/ # ls /sys/class/block -alh
total 0
drwxr-xr-x 2 root root 0 2015-01-01 08:00 .
drwxr-xr-x 119 root root 0 2015-01-01 08:00 ..
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 backup -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/backup
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 boot -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/boot
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 bootloader -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/bootloader
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 cache -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/cache
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 cri_data -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/cri_data
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 data -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/data
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 dtbo -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/dtbo
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 env -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/env
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 logo -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/logo
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 loop0 -> ../../devices/virtual/block/loop0
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 loop1 -> ../../devices/virtual/block/loop1
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 loop2 -> ../../devices/virtual/block/loop2
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 loop3 -> ../../devices/virtual/block/loop3
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 loop4 -> ../../devices/virtual/block/loop4
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 loop5 -> ../../devices/virtual/block/loop5
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 loop6 -> ../../devices/virtual/block/loop6
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 loop7 -> ../../devices/virtual/block/loop7
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 metadata -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/metadata
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 misc -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/misc
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 mmcblk0 -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 mmcblk0boot0 -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/mmcblk0boot0
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 mmcblk0boot1 -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/mmcblk0boot1
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 mmcblk0rpmb -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/mmcblk0rpmb
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 odm -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/odm
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 param -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/param
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 product -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/product
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 ram0 -> ../../devices/virtual/block/ram0
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 ram1 -> ../../devices/virtual/block/ram1
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 ram10 -> ../../devices/virtual/block/ram10
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 ram11 -> ../../devices/virtual/block/ram11
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 ram12 -> ../../devices/virtual/block/ram12
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 ram13 -> ../../devices/virtual/block/ram13
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 ram14 -> ../../devices/virtual/block/ram14
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 ram15 -> ../../devices/virtual/block/ram15
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 ram2 -> ../../devices/virtual/block/ram2
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 ram3 -> ../../devices/virtual/block/ram3
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 ram4 -> ../../devices/virtual/block/ram4
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 ram5 -> ../../devices/virtual/block/ram5
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 ram6 -> ../../devices/virtual/block/ram6
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 ram7 -> ../../devices/virtual/block/ram7
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 ram8 -> ../../devices/virtual/block/ram8
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 ram9 -> ../../devices/virtual/block/ram9
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 recovery -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/recovery
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 reserved -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/reserved
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 rsv -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/rsv
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 system -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/system
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 tee -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/tee
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 vbmeta -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/vbmeta
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 vendor -> ../../devices/platform/ffe07000.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0/vendor
lrwxrwxrwx 1 root root 0 2022-07-21 01:14 zram0 -> ../../devices/virtual/block/zram0
cmcc_jiangsu:/ #
mount 缺省输出就是挂载信息:
cmcc_jiangsu:/ # mount
rootfs on / type rootfs (ro,seclabel)
tmpfs on /dev type tmpfs (rw,seclabel,nosuid,relatime,mode=755)
devpts on /dev/pts type devpts (rw,seclabel,relatime,mode=600,ptmxmode=000)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,seclabel,relatime)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
tmpfs on /mnt type tmpfs (rw,seclabel,nosuid,nodev,noexec,relatime,mode=755,gid=1000)
/dev/block/odm on /odm type ext4 (ro,seclabel,relatime,data=ordered,inode_readahead_blks=8)
/dev/block/product on /product type ext4 (ro,seclabel,relatime,block_validity,delalloc,barrier,user_xattr,acl,inode_readahead_blks=8)
/dev/block/system on /system type ext4 (ro,seclabel,relatime,data=ordered,inode_readahead_blks=8)
/dev/block/vendor on /vendor type ext4 (ro,seclabel,relatime,data=ordered,inode_readahead_blks=8)
none on /acct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct)
/sys/kernel/debug on /sys/kernel/debug type debugfs (rw,seclabel,relatime,mode=755)
configfs on /sys/kernel/config type configfs (rw,relatime)
none on /dev/stune type cgroup (rw,nosuid,nodev,noexec,relatime,schedtune)
none on /config type configfs (rw,nosuid,nodev,noexec,relatime)
none on /dev/cpuctl type cgroup (rw,nosuid,nodev,noexec,relatime,cpu)
none on /dev/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset,noprefix,release_agent=/sbin/cpuset_release_agent)
cg2_bpf on /dev/cg2_bpf type cgroup2 (rw,nosuid,nodev,noexec,relatime)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime)
pstore on /sys/fs/pstore type pstore (rw,seclabel,nosuid,nodev,noexec,relatime)
tmpfs on /tmp type tmpfs (rw,seclabel,relatime)
tmpfs on /tmp/capture type tmpfs (rw,seclabel,relatime)
tracefs on /sys/kernel/debug/tracing type tracefs (rw,seclabel,relatime)
/dev/block/data on /data type ext4 (rw,seclabel,nosuid,nodev,noatime,nodelalloc,resgid=1065,errors=panic,data=ordered)
/dev/block/cache on /cache type ext4 (rw,seclabel,nosuid,nodev,noatime,nodelalloc,errors=panic,data=ordered)
/dev/block/metadata on /metadata type ext4 (rw,seclabel,nosuid,nodev,noatime,nodelalloc,errors=panic,data=ordered)
/dev/block/param on /mnt/vendor/param type ext4 (rw,seclabel,nosuid,nodev,noatime,nodelalloc,errors=panic,data=ordered)
/dev/block/tee on /mnt/vendor/tee type ext4 (rw,seclabel,nosuid,nodev,noatime,nodelalloc,errors=panic,data=ordered)
tmpfs on /storage type tmpfs (rw,seclabel,nosuid,nodev,noexec,relatime,mode=755,gid=1000)
adb on /dev/usb-ffs/adb type functionfs (rw,relatime)
/data/media on /mnt/runtime/default/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,multiuser,mask=6,derive_gid,default_normal)
/data/media on /storage/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,multiuser,mask=6,derive_gid,default_normal)
/data/media on /mnt/runtime/read/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,multiuser,mask=23,derive_id,default_normal)
/data/media on /mnt/runtime/write/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,multiuser,mask=7,derive_gid,default_normal)
cmcc_jiangsu:/ #
%%%%%
查看各分区容量
显示单位是 records
1 records = 512 byte
示例查看 mmcblk0 的状况 约等于 15 G
cmcc_jiangsu:/ # cat /sys/class/block/mmcblk0/size
30535680
cmcc_jiangsu:/ #
size = 30535680 / 2 = 15267840 KB = 14910 MB = 14.560546875 GB
——————————
查看硬件信息和系统属性
硬件信息查看:
cat /system/build.prop
单独查看系统属性
getprop > /tmp/getprop.txt
——————————
查看设备
cmcc_jiangsu:/ # cat /proc/devices
Character devices:
255 amstream
510 deinterlace
1 mem
511 display2
2 pty
257 dsp
3 ttyp
258 firmware_vdec
4 /dev/vc/0
4 tty
5 /dev/tty
5 /dev/console
5 /dev/ptmx
7 vcs
264 amvideo
10 misc
266 amaudio
13 input
269 vfm
270 ionvideo
271 vad
272 videosync
274 video_composer
276 v4lvideo
29 fb
81 video4linux
89 i2c
90 mtd
108 ppp
116 alsa
128 ptm
136 pts
153 spi
166 ttyACM
180 usb
188 ttyUSB
189 usb_device
212 DVB
216 rfcomm
235 amvideo_poll
236 tunnel_sync
237 ge2d
238 media-configs-dev
239 amremote
494 HevcEnc
240 ttyS
495 amvenc_avc
241 hidraw
496 amsubtitle
242 uio
497 dtb
243 bsg
498 audio_data_debug
244 wifi_power
499 unifykeys
245 watchdog
500 cec
246 display
501 smc
247 amhdmitx
502 vm
248 iio
503 amdolby_vision
249 ptp
504 amvecm
250 pps
505 picdec
251 rtc
506 ppmgr
252 cvbs
507 amvdec_csi
253 amvdac
508 hdmirx
254 gpiochip
509 vdin
Block devices:
1 ramdisk
259 blkext
7 loop
8 sd
9 md
11 sr
31 mtdblock
65 sd
66 sd
67 sd
68 sd
69 sd
70 sd
71 sd
128 sd
129 sd
130 sd
131 sd
132 sd
133 sd
134 sd
135 sd
179 mmc
251 device-mapper
252 zram
253 virtblk
254 mdp
cmcc_jiangsu:/ # ls /dev
HevcEnc fuse ptyq5 tty44 ttyqe
__properties__ ge2d ptyq6 tty45 ttyqf
amaudio gpiochip0 ptyq7 tty46 tun
amaudio_ctl gpiochip1 ptyq8 tty47 tunnel_sync
amaudio_utils graphics ptyq9 tty48 ubi_ctrl
amdolby_vision hw_random ptyqa tty49 uhid
amhdmitx0 hwbinder ptyqb tty5 uinput
amremote i2c-0 ptyqc tty50 uio0
amstream_abuf input ptyqd tty51 unifykeys
amstream_dves_avc ion ptyqe tty52 urandom
amstream_dves_hevc ionvideo ptyqf tty53 usb-ffs
amstream_hevc kmsg random tty54 usb_accessory
amstream_hevc_frame kmsg_debug rfkill tty55 uvm
amstream_hevc_sched loop-control rtc0 tty56 v4lvideo
amstream_mpps mali0 snd tty57 vad
amstream_mpts media socket tty58 vcs
amstream_mpts_sched media.amports stune tty59 vcs1
amstream_rm media.audio tty tty6 vcsa
amstream_sub media.codec_mm tty0 tty60 vcsa1
amstream_sub_read media.decoder tty1 tty61 vdin1
amstream_userdata media.parser tty10 tty62 vfm
amstream_vbuf media.tsync tty11 tty63 vga_arbiter
amstream_vbuf_sched media.vfm tty12 tty7 video10
amstream_vframe media.video tty13 tty8 video11
amsubtitle memcg tty14 tty9 video12
amvdac memory_bandwidth tty15 ttyS0 video13
amvecm mtp_usb tty16 ttyS1 video14
amvenc_avc network_latency tty17 ttyp0 video15
amvideo network_throughput tty18 ttyp1 video16
amvideo_poll null tty19 ttyp2 video17
ashmem picdec tty2 ttyp3 video18
audio_data_debug ppmgr tty20 ttyp4 video19
audiodsp0 ppp tty21 ttyp5 video20
autofs psaux tty22 ttyp6 video21
binder ptmx tty23 ttyp7 video23
bl40 pts tty24 ttyp8 video30
block ptyp0 tty25 ttyp9 video31
bus ptyp1 tty26 ttypa video32
cec ptyp2 tty27 ttypb video33
cg2_bpf ptyp3 tty28 ttypc video34
console ptyp4 tty29 ttypd video35
cpu_dma_latency ptyp5 tty3 ttype video36
cpuctl ptyp6 tty30 ttypf video37
cpuset ptyp7 tty31 ttyq0 video38
cvbs ptyp8 tty32 ttyq1 video_composer.0
device-mapper ptyp9 tty33 ttyq2 video_composer.1
di0 ptypa tty34 ttyq3 videosync
display ptypb tty35 ttyq4 videotunnel
display2 ptypc tty36 ttyq5 vndbinder
dtb ptypd tty37 ttyq6 watchdog
esm ptype tty38 ttyq7 watchdog0
esm_rx ptypf tty39 ttyq8 wifi_power
event-log-tags ptyq0 tty4 ttyq9 xt_qtaguid
fd ptyq1 tty40 ttyqa zero
firmware_vdec ptyq2 tty41 ttyqb
fscklogs ptyq3 tty42 ttyqc
full ptyq4 tty43 ttyqd
cmcc_jiangsu:/ #
——————————
安卓系统对分区进行格式化及挂载操作
%%%%%
fdisk 命令竟然报错
CM311-1A 盒子的 fdisk 竟然不能用:
cmcc_jiangsu:/ # fdisk --help
BusyBox v1.26.2 bionic (2017-11-15 14:37 +0800) multi-call binary.
Usage: fdisk [-ul] [-C CYLINDERS] [-H HEADS] [-S SECTORS] [-b SSZ] DISK
Change partition table
-u Start and End are in sectors (instead of cylinders) /* 开始和结束在扇区中 而不是柱面 */
-l Show partition table for each DISK, then exit /* 显示每个磁盘的分区表,然后退出 */
-b 2048 (for certain MO disks) use 2048-byte sectors /* 对于某些 MO 磁盘 使用 2048 字节扇区 */
-C CYLINDERS Set number of cylinders/heads/sectors /* 设置 柱面/磁头/扇区 的数量 */
-H HEADS
-S SECTORS
cmcc_jiangsu:/ # fdisk -l
Segmentation fault
139|cmcc_jiangsu:/ #
Segmentation fault 分段故障是为什么!!!
%%%%%
lsusb 或 lsusb2 命令查看 usb 设备
还好 lsusb 可以用:
cmcc_jiangsu:/ # lsusb --version
toybox 0.7.6-android
cmcc_jiangsu:/ # lsusb --help
usage: lsusb
List USB hosts/devices.
cmcc_jiangsu:/ #
然后还发现一个 lsusb2 好家伙:
cmcc_jiangsu:/ # ls
ls lsattr lshal lsmod lsof lspci lsusb lsusb2
cmcc_jiangsu:/ # lsusb
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0003
cmcc_jiangsu:/ # lsusb2
1d6b:0002 (bus 1, device 1)
1d6b:0003 (bus 2, device 1)
cmcc_jiangsu:/ #
插上 U 盘成功识别出来:
cmcc_jiangsu:/ # lsusb
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0003
Bus 001 Device 002: ID 0951:1642
cmcc_jiangsu:/ # lsusb2
1d6b:0002 (bus 1, device 1)
1d6b:0003 (bus 2, device 1)
0951:1642 (bus 1, device 2)
cmcc_jiangsu:/ #
插上 USB 之前:
cmcc_jiangsu:/ # df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 0.9G 516K 0.9G 1% /dev
tmpfs 0.9G 0 0.9G 0% /mnt
/dev/block/odm 122M 472K 122M 1% /odm
/dev/block/product 126M 51M 75M 41% /product
/dev/block/system 1.2G 738M 501M 60% /system
/dev/block/vendor 310M 244M 66M 79% /vendor
tmpfs 0.9G 0 0.9G 0% /tmp
tmpfs 0.9G 0 0.9G 0% /tmp/capture
/dev/block/data 10G 255M 10G 3% /data
/dev/block/cache 976M 1.2M 975M 1% /cache
/dev/block/metadata 11M 40K 11M 1% /metadata
/dev/block/param 11M 860K 11M 8% /mnt/vendor/param
/dev/block/tee 27M 28K 27M 1% /mnt/vendor/tee
/data/media 10G 255M 10G 3% /mnt/runtime/default/emulated
cmcc_jiangsu:/ # ls /dev
HevcEnc fuse ptyq5 tty44 ttyqe
__properties__ ge2d ptyq6 tty45 ttyqf
amaudio gpiochip0 ptyq7 tty46 tun
amaudio_ctl gpiochip1 ptyq8 tty47 tunnel_sync
amaudio_utils graphics ptyq9 tty48 ubi_ctrl
amdolby_vision hw_random ptyqa tty49 uhid
amhdmitx0 hwbinder ptyqb tty5 uinput
amremote i2c-0 ptyqc tty50 uio0
amstream_abuf input ptyqd tty51 unifykeys
amstream_dves_avc ion ptyqe tty52 urandom
amstream_dves_hevc ionvideo ptyqf tty53 usb-ffs
amstream_hevc kmsg random tty54 usb_accessory
amstream_hevc_frame kmsg_debug rfkill tty55 uvm
amstream_hevc_sched loop-control rtc0 tty56 v4lvideo
amstream_mpps mali0 snd tty57 vad
amstream_mpts media socket tty58 vcs
amstream_mpts_sched media.amports stune tty59 vcs1
amstream_rm media.audio tty tty6 vcsa
amstream_sub media.codec_mm tty0 tty60 vcsa1
amstream_sub_read media.decoder tty1 tty61 vdin1
amstream_userdata media.parser tty10 tty62 vfm
amstream_vbuf media.tsync tty11 tty63 vga_arbiter
amstream_vbuf_sched media.vfm tty12 tty7 video10
amstream_vframe media.video tty13 tty8 video11
amsubtitle memcg tty14 tty9 video12
amvdac memory_bandwidth tty15 ttyS0 video13
amvecm mtp_usb tty16 ttyS1 video14
amvenc_avc network_latency tty17 ttyp0 video15
amvideo network_throughput tty18 ttyp1 video16
amvideo_poll null tty19 ttyp2 video17
ashmem picdec tty2 ttyp3 video18
audio_data_debug ppmgr tty20 ttyp4 video19
audiodsp0 ppp tty21 ttyp5 video20
autofs psaux tty22 ttyp6 video21
binder ptmx tty23 ttyp7 video23
bl40 pts tty24 ttyp8 video30
block ptyp0 tty25 ttyp9 video31
bus ptyp1 tty26 ttypa video32
cec ptyp2 tty27 ttypb video33
cg2_bpf ptyp3 tty28 ttypc video34
console ptyp4 tty29 ttypd video35
cpu_dma_latency ptyp5 tty3 ttype video36
cpuctl ptyp6 tty30 ttypf video37
cpuset ptyp7 tty31 ttyq0 video38
cvbs ptyp8 tty32 ttyq1 video_composer.0
device-mapper ptyp9 tty33 ttyq2 video_composer.1
di0 ptypa tty34 ttyq3 videosync
display ptypb tty35 ttyq4 videotunnel
display2 ptypc tty36 ttyq5 vndbinder
dtb ptypd tty37 ttyq6 watchdog
esm ptype tty38 ttyq7 watchdog0
esm_rx ptypf tty39 ttyq8 wifi_power
event-log-tags ptyq0 tty4 ttyq9 xt_qtaguid
fd ptyq1 tty40 ttyqa zero
firmware_vdec ptyq2 tty41 ttyqb
fscklogs ptyq3 tty42 ttyqc
full ptyq4 tty43 ttyqd
cmcc_jiangsu:/ #
插上 USB 之后:
cmcc_jiangsu:/ # df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 0.9G 516K 0.9G 1% /dev
tmpfs 0.9G 0 0.9G 0% /mnt
/dev/block/param 11M 860K 11M 8% /mnt/vendor/param
/dev/block/tee 27M 28K 27M 1% /mnt/vendor/tee
/data/media 10G 255M 10G 3% /mnt/runtime/default/emulated
/dev/block/odm 122M 472K 122M 1% /odm
/dev/block/product 126M 51M 75M 41% /product
/dev/block/system 1.2G 738M 501M 60% /system
/dev/block/vendor 310M 244M 66M 79% /vendor
tmpfs 0.9G 0 0.9G 0% /tmp
tmpfs 0.9G 0 0.9G 0% /tmp/capture
/dev/block/data 10G 255M 10G 3% /data
/dev/block/cache 976M 1.2M 975M 1% /cache
/dev/block/metadata 11M 40K 11M 1% /metadata
/dev/block/vold/public:8,4 7.4G 3.2G 4.2G 44% /mnt/media_rw/B4FE-5315
/mnt/media_rw/B4FE-5315 7.4G 3.2G 4.2G 44% /mnt/runtime/default/B4FE-5315
cmcc_jiangsu:/ #
每个目录都看一遍:
cmcc_jiangsu:/ # ls /dev/block/vold -alh
total 0
drwx------ 2 root reserved_disk 80 2022-07-22 18:00 .
drwxr-xr-x 4 root root 1.0K 2022-07-22 18:00 ..
brw------- 1 root reserved_disk 8, 0 2022-07-22 18:00 disk:8,0
brw------- 1 root reserved_disk 8, 4 2022-07-22 18:00 public:8,4
cmcc_jiangsu:/ # ls /mnt/media_rw -alh
total 2.0K
drwxr-x--- 3 root media_rw 60 2022-07-22 18:00 .
drwxr-xr-x 11 root system 240 2015-01-01 08:00 ..
drwxrwx--- 9 media_rw media_rw 4.0K 2022-07-22 18:00 B4FE-5315
cmcc_jiangsu:/ # ls /mnt/runtime/default -alh
total 4.0K
drwxr-xr-x 5 root root 100 2022-07-22 18:00 .
drwx------ 5 root root 100 2015-01-01 08:00 ..
drwxrwx--x 9 root sdcard_rw 4.0K 2022-07-22 18:00 B4FE-5315
drwx--x--x 4 root sdcard_rw 4.0K 2015-01-01 08:00 emulated
drwxr-xr-x 2 root root 60 2015-01-01 08:00 self
cmcc_jiangsu:/ #
最后确认设备为:
/dev/block/vold/public\:8,4
"/dev/block/vold/public:8,4"
%%%%%
格式化分区命令 mkfs.文件系统
可以格式化成如下系统:
exfat
ext2
ext3
ext4
vfat
cmcc_jiangsu:/ # mkfs
mkfs.exfat mkfs.ext2 mkfs.ext3 mkfs.ext4 mkfs.vfat
cmcc_jiangsu:/ # mkfs.
现在我们就将 U 盘格式化为 exfat 文件系统:
cmcc_jiangsu:/ # mkfs.exfat /dev/block/vold/public\:8,4
mkexfatfs 1.3.0
Creating... done.
Flushing... done.
File system created successfully.
cmcc_jiangsu:/ #
格式化成功 但是发现 df 还是旧的信息 而且 U 盘的挂载点也是旧的内容:
cmcc_jiangsu:/ # df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 0.9G 516K 0.9G 1% /dev
tmpfs 0.9G 0 0.9G 0% /mnt
/dev/block/param 11M 860K 11M 8% /mnt/vendor/param
/dev/block/tee 27M 28K 27M 1% /mnt/vendor/tee
/data/media 10G 255M 10G 3% /mnt/runtime/default/emulated
/dev/block/odm 122M 472K 122M 1% /odm
/dev/block/product 126M 51M 75M 41% /product
/dev/block/system 1.2G 738M 501M 60% /system
/dev/block/vendor 310M 244M 66M 79% /vendor
tmpfs 0.9G 0 0.9G 0% /tmp
tmpfs 0.9G 0 0.9G 0% /tmp/capture
/dev/block/data 10G 255M 10G 3% /data
/dev/block/cache 976M 1.2M 975M 1% /cache
/dev/block/metadata 11M 40K 11M 1% /metadata
/dev/block/vold/public:8,4 7.4G 3.2G 4.2G 44% /mnt/media_rw/B4FE-5315
/mnt/media_rw/B4FE-5315 7.4G 3.2G 4.2G 44% /mnt/runtime/default/B4FE-5315
cmcc_jiangsu:/ # ls /mnt/media_rw/B4FE-5315/
LOST.DIR boot efi support
System\ Volume\ Information bootmgr setup.exe upgrade
autorun.inf bootmgr.efi sources
cmcc_jiangsu:/ #
这可能需要重启一下系统
重启过后再次查看挂载信息 发现 U 盘容量发生变化了 已经被清空了
再查看 USB 挂载点的内容 也是空空如也:
cmcc_jiangsu:/ # reboot
C:\Users\byme>adb connect 192.168.0.103
already connected to 192.168.0.103:5555
C:\Users\byme>adb shell
cmcc_jiangsu:/ # df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 0.9G 516K 0.9G 1% /dev
tmpfs 0.9G 0 0.9G 0% /mnt
/dev/block/odm 122M 472K 122M 1% /odm
/dev/block/product 126M 51M 75M 41% /product
/dev/block/system 1.2G 738M 501M 60% /system
/dev/block/vendor 310M 244M 66M 79% /vendor
tmpfs 0.9G 0 0.9G 0% /tmp
tmpfs 0.9G 0 0.9G 0% /tmp/capture
/dev/block/data 10G 255M 10G 3% /data
/dev/block/cache 976M 1.2M 975M 1% /cache
/dev/block/metadata 11M 40K 11M 1% /metadata
/dev/block/param 11M 860K 11M 8% /mnt/vendor/param
/dev/block/tee 27M 28K 27M 1% /mnt/vendor/tee
/data/media 10G 255M 10G 3% /mnt/runtime/default/emulated
/dev/block/vold/public:8,4 7.4G 96K 7.4G 1% /mnt/media_rw/BC92-F723
/mnt/media_rw/BC92-F723 7.4G 96K 7.4G 1% /mnt/runtime/default/BC92-F723
cmcc_jiangsu:/ # ls /mnt/media_rw/BC92-F723/ -alh
total 16K
drwxrwx--- 2 media_rw media_rw 32K 2022-07-22 18:31 .
drwxr-x--- 3 root media_rw 60 2022-07-22 18:31 ..
cmcc_jiangsu:/ #
要知道以前这可是一个启动盘啊:
cmcc_jiangsu:/ # ls /mnt/media_rw/B4FE-5315 -alh
total 594K
drwxrwx--- 9 media_rw media_rw 4.0K 2022-07-22 18:00 .
drwxr-x--- 3 root media_rw 60 2022-07-22 18:00 ..
drwxrwx--- 2 media_rw media_rw 4.0K 2022-07-22 18:00 LOST.DIR
drwxrwx--- 2 media_rw media_rw 4.0K 2022-05-30 06:26 System\ Volume\ Informatio
n
-rwxrwx--- 1 media_rw media_rw 122 2011-04-13 00:18 autorun.inf
drwxrwx--- 4 media_rw media_rw 4.0K 2011-04-13 00:18 boot
-rwxrwx--- 1 media_rw media_rw 375K 2011-04-13 00:18 bootmgr
-rwxrwx--- 1 media_rw media_rw 654K 2011-04-13 00:18 bootmgr.efi
drwxrwx--- 3 media_rw media_rw 4.0K 2011-04-13 00:18 efi
-rwxrwx--- 1 media_rw media_rw 104K 2011-04-13 00:18 setup.exe
drwxrwx--- 10 media_rw media_rw 16K 2011-04-13 00:18 sources
drwxrwx--- 5 media_rw media_rw 4.0K 2011-04-13 00:18 support
drwxrwx--- 3 media_rw media_rw 4.0K 2011-04-13 00:18 upgrade
cmcc_jiangsu:/ #
%%%%%
mount 挂载 U 盘设备后就能操作了
将 U 盘挂载到指定位置 对该位置进行操作就是对 USB 进行操作!
示例操作 都标注了注释:
cmcc_jiangsu:/ # cd mnt /* 进入 /mnt 目录 */
cmcc_jiangsu:/mnt # ls /* 查看目录内容 */
appfuse asec expand media_rw obb runtime sdcard secure user vendor
cmcc_jiangsu:/mnt # mkdir usb_dir /* 创建 U 盘挂载点 */
cmcc_jiangsu:/mnt # mount /dev/block/vold/public\:8,4 usb_dir /* 将 U 盘挂载到这里 */
cmcc_jiangsu:/mnt # df -h /* 发现 df 的缓存信息还没刷新 没关系 实际上已经挂载好了 */
Filesystem Size Used Avail Use% Mounted on
tmpfs 0.9G 516K 0.9G 1% /dev
tmpfs 0.9G 0 0.9G 0% /mnt
/dev/block/odm 122M 472K 122M 1% /odm
/dev/block/product 126M 51M 75M 41% /product
/dev/block/system 1.2G 738M 501M 60% /system
/dev/block/vendor 310M 244M 66M 79% /vendor
tmpfs 0.9G 0 0.9G 0% /tmp
tmpfs 0.9G 0 0.9G 0% /tmp/capture
/dev/block/data 10G 255M 10G 3% /data
/dev/block/cache 976M 1.2M 975M 1% /cache
/dev/block/metadata 11M 40K 11M 1% /metadata
/dev/block/param 11M 860K 11M 8% /mnt/vendor/param
/dev/block/tee 27M 28K 27M 1% /mnt/vendor/tee
/data/media 10G 255M 10G 3% /mnt/runtime/default/emulated
/dev/block/vold/public:8,4 7.4G 96K 7.4G 1% /mnt/media_rw/BC92-F723
/mnt/media_rw/BC92-F723 7.4G 96K 7.4G 1% /mnt/runtime/default/BC92-F723
cmcc_jiangsu:/mnt # touch /mnt/usb_dir/usb_1.txt /* 在挂载处创建一个文件 */
cmcc_jiangsu:/mnt # ls usb_dir /* 查看挂载点目录内容 */
usb_1.txt
cmcc_jiangsu:/mnt # ls /mnt/media_rw/BC92-F723 /* 发现确实是对 U 盘设备进行操作 */
usb_1.txt
cmcc_jiangsu:/mnt #
%%%%%
umount 卸载 USB 设备
使用完毕 就需要卸载 U 盘
cmcc_jiangsu:/mnt # umount usb_dir /* 卸载挂载点 */
cmcc_jiangsu:/mnt # df -h /* 查看 df 缓存信息还是没刷新出来 但是已经成功卸载了 */
Filesystem Size Used Avail Use% Mounted on
tmpfs 0.9G 516K 0.9G 1% /dev
tmpfs 0.9G 0 0.9G 0% /mnt
/dev/block/odm 122M 472K 122M 1% /odm
/dev/block/product 126M 51M 75M 41% /product
/dev/block/system 1.2G 738M 501M 60% /system
/dev/block/vendor 310M 244M 66M 79% /vendor
tmpfs 0.9G 0 0.9G 0% /tmp
tmpfs 0.9G 0 0.9G 0% /tmp/capture
/dev/block/data 10G 255M 10G 3% /data
/dev/block/cache 976M 1.2M 975M 1% /cache
/dev/block/metadata 11M 40K 11M 1% /metadata
/dev/block/param 11M 860K 11M 8% /mnt/vendor/param
/dev/block/tee 27M 28K 27M 1% /mnt/vendor/tee
/data/media 10G 255M 10G 3% /mnt/runtime/default/emulated
/dev/block/vold/public:8,4 7.4G 96K 7.4G 1% /mnt/media_rw/BC92-F723
/mnt/media_rw/BC92-F723 7.4G 96K 7.4G 1% /mnt/runtime/default/BC92-F723
cmcc_jiangsu:/mnt # ls usb_dir/ /* 不信看一下挂载点 是空的哦! */
cmcc_jiangsu:/mnt #
然后就可以拔出来了!
插上我们的 Windows 系统查看 确实操作成功了:
版权声明:本文标题:[CM311-1A]-Android 分区管理以及系统启动流程和目录解析 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.freenas.com.cn/jishu/1716157045h668771.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论