android5.1 make_ext4fs supersu修正

来源:互联网 发布:k-means算法 编辑:程序博客网 时间:2024/05/16 13:44

在内置supersu到自修改的rom中时,/system/xbin/su的文件权限总是被make_ext4fs修改回04750

解决办法:

make_ext4fs是编译android5.1得到的,从源码找到system/core/include/private/android_filesystem_config.h

在该文件中有变量android_files,其中有对su的权限设置如下:

{ 04750, AID_ROOT,      AID_SHELL,     0, "system/xbin/su" },

将04750修改为06755后重新编译即可

0 0
原创粉丝点击