Closed davidepianca98 closed 9 years ago
I made a mistake, those lines must be out of the if(rewrite) statement
Thanks @KINGbabasula for your help, but it didn't work for me (HTC One M7), because of two reasons 1- prebuilt busybox doesn't seem to have SELinux extensions (but even changing the above) 2- SELinux hasn't been initialized when that function is running, so I get "SELinux is disabled" at that moment in time
my workaround, was to inject init.rc with an "import"; whose sole purpose it to run a "restorecon /data/.layout_version", on early-init
now working fine... yay... gonna do more testing though....
I made a mistake, those lines must be out of the if(rewrite) statement
@KINGbabasula Why, just to fix already installed systems? The file should never be unlabeled unless created by MultiROM.
@Tasssadar not sure why it didn't always work
If .layout_version remains unlabeled the phone won't be able to access the sdcard Thanks to @nkk71 for finding the issue