root原理初探
![](http://images0.cnblogs.com/blog/709515/201501/181356360586514.png)
![](http://images0.cnblogs.com/blog/709515/201501/181356394955630.png)
![](http://images0.cnblogs.com/blog/709515/201501/181356411988417.png)
![](http://images0.cnblogs.com/blog/709515/201501/181356426982675.png)
![](http://images0.cnblogs.com/blog/709515/201501/181356443541449.png)
![](http://images0.cnblogs.com/blog/709515/201501/181356462769535.png)
![](http://images0.cnblogs.com/blog/709515/201501/181356474795236.png)
如果bootloader.img是不好使的,手机就废了
![](http://images0.cnblogs.com/blog/709515/201501/181357325424769.png)
![](http://images0.cnblogs.com/blog/709515/201501/181357384172531.png)
![](http://images0.cnblogs.com/blog/709515/201501/181357436674934.png)
![](http://images0.cnblogs.com/blog/709515/201501/181357475895366.png)
![](http://images0.cnblogs.com/blog/709515/201501/181357535899398.png)
![](http://images0.cnblogs.com/blog/709515/201501/181357563867386.png)
![](http://images0.cnblogs.com/blog/709515/201501/181357585424246.png)
![](http://images0.cnblogs.com/blog/709515/201501/181357597615717.png)
![](http://images0.cnblogs.com/blog/709515/201501/181358014648504.png)
![](http://images0.cnblogs.com/blog/709515/201501/181358131987257.png)
![](http://images0.cnblogs.com/blog/709515/201501/181358168704145.png)
![](http://images0.cnblogs.com/blog/709515/201501/181358187614989.png)
vivoS7t测试:system是只读的
emmc@android /system ext4 ro,noatime,user_xattr,commit=1,barrier=1,data=ordered,
noauto_da_alloc 0 0
注:在默认情况下系统文件都是只读的也就是(read only)即使拥有root权限也无法修改系统文件
用mount命令来查看系统文件的真实路径( ext4表示该系统文件的文件格式、ro 表示只读)
/dev/block/platform/sdhci-tegra.3/by-name/APP是物理路径(注:在用vivosS7t进行测试时发现system的物理路径是emmc@android
)
shell@android:/system/media # mount -o rw,remount emmc@android
以上命令是将目录变为可读写
mount | grep system用该命令进行检验:
- 检验结果:
emmc@android /system ext4 rw,relatime,user_xattr,commit=1,barrier=1,data=ordered
,noauto_da_alloc 0 0