mercredi 10 décembre 2014

[Q] Need help with Selinux on building android 5 topic

22:07






Hello, and good morning everyone.

As my title implies, I have problems with the Selinux and Sepolicy on building and running android L on my tablet. Some background information:
  • Tablet I am working on is Asus ME301T

  • There is a device tree for 4.4 which I am using as a base

  • I am using cm12 as my source

  • I am able to build the rom, but it is not booting

Now that those are things are clear, I think I am able to move in to the problem itself. I had some problems building the selinux from start, but was able to fix it with this commit . It seems like that was not the correct way to fix the issue, as I am getting a lot of "permission denied" errors in the kmsg like this:




Code:


[    6.880239] SELinux: Could not set context for /sys/devices/tegradc.0/power/runtime_active_time:  Permission denied
[    6.881143] SELinux: Could not set context for /sys/devices/tegradc.0/power/autosuspend_delay_ms:  Permission denied
[    6.881912] SELinux: Could not set context for /sys/devices/tegradc.0/driver:  Permission denied
[    6.882938] SELinux: Could not set context for /sys/devices/tegradc.0/tegra_dc_ext:  Permission denied
[    6.884344] SELinux: Could not set context for /sys/devices/tegradc.0/tegra_dc_ext/tegra_dc_0:  Permission denied
[    6.885720] SELinux: Could not set context for /sys/devices/tegradc.0/tegra_dc_ext/tegra_dc_0/uevent:  Permission denied
[    6.886620] SELinux: Could not set context for /sys/devices/tegradc.0/tegra_dc_ext/tegra_dc_0/dev:  Permission denied
[    6.887558] SELinux: Could not set context for /sys/devices/tegradc.0/tegra_dc_ext/tegra_dc_0/subsystem:  Permission denied
[    6.888481] SELinux: Could not set context for /sys/devices/tegradc.0/tegra_dc_ext/tegra_dc_0/device:  Permission denied
[    6.889736] SELinux: Could not set context for /sys/devices/tegradc.0/tegra_dc_ext/tegra_dc_0/power:  Permission denied
[    6.891289] SELinux: Could not set context for /sys/devices/tegradc.0/tegra_dc_ext/tegra_dc_0/power/runtime_status:  Permission denied





Full kmsg is linked on the bottom of this post, should it be required for better understanding of this issue. The error I got whilst building without the commit I linked above was that type "system" was not found. In case you need the exact error, I shall get it for you.

Can you guys give me a hint to where to go next with fixing this sellinux? I am kind of lost myself and Google didn't help me (yet)

Links:
Device tree: https://github.com/jesse131/android_device_asus_me301t
Kernel: https://github.com/jesse131/android_kernel_asus_me301t
Last_kmsg: http://pastebin.com/R5yWyiT4






Written by

We are Creative Blogger Theme Wavers which provides user friendly, effective and easy to use themes. Each support has free and providing HD support screen casting.

0 commentaires:

Enregistrer un commentaire

 

© 2013 Mobile Probleme. All rights resevered. Designed by Templateism

Back To Top