I'm trying to enable oem partition on Android 6.0.0. Some binaries are put into oem/bin with permission 755.
By command "make oem_image" I got an ext4 oem image. With mounting this oem image, I found permission of files in oem/bin have been changed to 644.
After some investigation, I realized that Google didn’t put oem partition in the list of android permissions:
system/core/libcutils/fs_config.c:
static const struct fs_path_config android_dirs[]
static const struct fs_path_config android_files[]
“make oem_image” will assign a mount point “-a oem” to make_ext4fs, but it’s not in list. So all permissions are changed.
Even though I can do some workaround, could you guys give an “official” way to solve this problem?