在内置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后重新编译即可