Android Customizing SePolicy: Difference between revisions
From Variscite Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<!-- Set release according to "release" parameter in URL and use RELEASE_P9.0.0_1.0.0_GA_DART-MX8M-MINI as default | |||
--> {{#vardefine:RELEASE_PARAM|{{#urlget:release}}}} <!-- | |||
--> {{#lst:Android_Platform_Customization|{{#var:RELEASE_PARAM|RELEASE_P9.0.0_1.0.0_GA_DART-MX8M-MINI}}}} <!-- | |||
=Overview= | =Overview= | ||
Selinux is the Security Enhanced Linux concept to enhance the Android Security and have the controlled access to the files.<br> | Selinux is the Security Enhanced Linux concept to enhance the Android Security and have the controlled access to the files.<br> | ||
Line 21: | Line 25: | ||
==Setting the permission in Boot image== | ==Setting the permission in Boot image== | ||
===Edit U-Boot command line arguments=== | ===Edit U-Boot command line arguments=== | ||
https://github.com/varigit/uboot-imx/blob/ | https://github.com/varigit/uboot-imx/blob/{{#var:U-BOOT_BRANCH}}/{{#var:U-BOOT_ANDROID_CONFIG_FILE}} | ||
Change following macro <br> | Change following macro <br> | ||
#define CONFIG_EXTRA_ENV_SETTINGS \ | #define CONFIG_EXTRA_ENV_SETTINGS \ | ||
"bootargs=" \ | "bootargs=" \ | ||
....... | |||
....\0" | |||
And append "androidboot.selinux=permissive\0" to the kernel | |||
#define CONFIG_EXTRA_ENV_SETTINGS \ | #define CONFIG_EXTRA_ENV_SETTINGS \ | ||
"bootargs=" \ | "bootargs=" \ | ||
....... | |||
androidboot.selinux=permissive\0" | |||
===Compile U-Boot=== | ===Compile U-Boot=== | ||
Compile the new U-Boot | Compile the new U-Boot | ||
===Update U-Boot=== | ===Update U-Boot=== | ||
Flash the binaries following {{Varlink| | Flash the binaries following {{Varlink|Android_Recovery_SD_card|{{#var:RELEASE_LINK}}|Android Recovery SD card}} and replacing your binaries in /opt/images/Android/ | ||
The updated U-Boot should have the SeLinux in permissive mode. | The updated U-Boot should have the SeLinux in permissive mode. |
Revision as of 03:59, 3 January 2020