make OEM partition by make_ext4fs tool, file permission attributes lost

404 views
Skip to first unread message

killmind zhang

unread,
Dec 3, 2015, 1:19:15 AM12/3/15
to android-porting
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?

Rohit Choudhary

unread,
Feb 1, 2019, 12:57:13 PM2/1/19
to android-porting
I am stuck with similar problem did you find any solution or workaround ?? 
Reply all
Reply to author
Forward
0 new messages