summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--logcat/Android.mk10
-rw-r--r--rootdir/init.rc6
-rw-r--r--rootdir/ueventd.rc5
3 files changed, 21 insertions, 0 deletions
diff --git a/logcat/Android.mk b/logcat/Android.mk
index 7b8eb01..9c12b6e 100644
--- a/logcat/Android.mk
+++ b/logcat/Android.mk
@@ -10,3 +10,13 @@ LOCAL_SHARED_LIBRARIES := liblog
LOCAL_MODULE:= logcat
include $(BUILD_EXECUTABLE)
+
+SYMLINK := $(TARGET_OUT)/bin/lolcat
+$(SYMLINK): LOGCAT_BINARY := $(LOCAL_MODULE)
+$(SYMLINK): $(LOCAL_INSTALLED_MODULE) $(LOCAL_PATH)/Android.mk
+ @echo "Symlink: $@ -> $(LOGCAT_BINARY)"
+ @mkdir -p $(dir $@)
+ @rm -rf $@
+ $(hide) ln -sf $(LOGCAT_BINARY) $@
+
+ALL_DEFAULT_INSTALLED_MODULES += $(SYMLINK)
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 1ed1e07..8e068a0 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -129,6 +129,12 @@ loglevel 3
write /dev/cpuctl/apps/bg_non_interactive/cpu.rt_runtime_us 700000
write /dev/cpuctl/apps/bg_non_interactive/cpu.rt_period_us 1000000
+# qtaguid will limit access to specific data based on group memberships.
+# net_bw_acct grants impersonation of socket owners.
+# net_bw_stats grants access to other apps' detailed tagged-socket stats.
+ chown root net_bw_acct /proc/net/xt_qtaguid/ctrl
+ chown root net_bw_stats /proc/net/xt_qtaguid/stats
+
# Allow everybody to read the xt_qtaguid resource tracking misc dev.
# This is needed by any process that uses socket tagging.
chmod 0644 /dev/xt_qtaguid
diff --git a/rootdir/ueventd.rc b/rootdir/ueventd.rc
index abfc129..cee3e73 100644
--- a/rootdir/ueventd.rc
+++ b/rootdir/ueventd.rc
@@ -97,6 +97,11 @@
/sys/devices/system/cpu/cpufreq ondemand/powersave_bias 0664 system system
/sys/devices/system/cpu/cpufreq ondemand/sampling_down_factor 0664 system system
/sys/devices/system/cpu/cpufreq ondemand/up_threshold 0664 system system
+/sys/devices/system/cpu/cpufreq ondemand/up_threshold_multi_core 0664 system system
+/sys/devices/system/cpu/cpufreq ondemand/down_differential_multi_core 0664 system system
+/sys/devices/system/cpu/cpufreq ondemand/optimal_freq 0664 system system
+/sys/devices/system/cpu/cpufreq ondemand/sync_freq 0664 system system
+/sys/devices/system/cpu/cpufreq ondemand/up_threshold_any_cpu_load 0664 system system
/sys/devices/system/cpu/cpufreq interactive/boostpulse 0664 system system
/sys/devices/system/cpu/cpufreq interactive/timer_rate 0664 system system