You need to remount it writeable too. Adb shell mount -orw,remount /
Here's the patch: https://android-review.googlesource.com/58360 On Nov 27, 2014 7:09 AM, "Inamdar Sharif" <[email protected]> wrote: > Yes I had tried this in the first place. > But still it is unable to label the directories and files properly. > > Its says"Unable to set contexts :Read-only file system" > > Thanks. > > -----Original Message----- > From: Stephen Smalley [mailto:[email protected]] > Sent: Thursday, November 27, 2014 8:32 PM > To: Inamdar Sharif > Cc: [email protected] > Subject: Re: label folder in rootfs > > Define file_contexts entries for /test and /test/xyz and then call > restorecon /test and restorecon /test/xyz (or just restorecon_recursive > /test) from your init.<board>.rc file. > > Please refrain from including signature blocks that impose restrictions on > redistribution of your email when posting to public mailing lists. > > On Thu, Nov 27, 2014 at 9:08 AM, Inamdar Sharif <[email protected]> > wrote: > > Hi, > > > > > > > > Here is my problem : > > > > > > > > I want to create a new folder inside rootfs and add some files to it. > > > > Now I want to label this folder something else. > > > > Also the folder is read-only. > > > > > > > > For example, > > > > Suppose my folder is “test” and I want to label it as “test_file” > > > > > > > > Also would like to label the files explicitly > > > > /test -> test_file > > > > /test/xyz -> xyz_file > > > > > > > > So how do I do this?? > > > > > > > > Thanks. > > > > ________________________________ > > This email message is for the sole use of the intended recipient(s) > > and may contain confidential information. Any unauthorized review, > > use, disclosure or distribution is prohibited. If you are not the > > intended recipient, please contact the sender by reply email and > > destroy all copies of the original message. > > ________________________________ > > > > _______________________________________________ > > Seandroid-list mailing list > > [email protected] > > To unsubscribe, send email to [email protected]. > > To get help, send an email containing "help" to > > [email protected]. > > _______________________________________________ > Seandroid-list mailing list > [email protected] > To unsubscribe, send email to [email protected]. > To get help, send an email containing "help" to > [email protected].
_______________________________________________ Seandroid-list mailing list [email protected] To unsubscribe, send email to [email protected]. To get help, send an email containing "help" to [email protected].
