diff --git a/configs/perf/power_app_cfg.xml b/configs/perf/power_app_cfg.xml new file mode 100644 index 0000000..4b7618e --- /dev/null +++ b/configs/perf/power_app_cfg.xml @@ -0,0 +1,567 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/configs/perf/powercontable.xml b/configs/perf/powercontable.xml new file mode 100644 index 0000000..ec1917d --- /dev/null +++ b/configs/perf/powercontable.xml @@ -0,0 +1,382 @@ + + + + + more + 100 + -100 + + + + more + 100 + 0 + 0 + + + + more + 100 + -100 + 0 + + + + more + 100 + -100 + + + + less + 20 + 1 + + + + more + 20 + 1 + + + + less + 2 + 0 + -1 + + + + more + 1 + 0 + 0 + + + + more + 1 + 0 + 0 + + + + more + 15 + 1 + 1 + + + + more + 6 + 0 + + + + less + 10000000 + 1000 + 200000 + + + + more + 1 + 0 + 0 + + + + more + 1 + 0 + 0 + + + + more + 100 + 0 + + + + more + 100 + 0 + + + + more + 100 + 0 + + + + more + 100 + 0 + + + + more + 1 + 0 + 0 + + + + more + 101 + -1 + 100 + + + + more + 1 + 0 + 0 + + + + more + 100000000 + 0 + -1 + + + + less + 1 + 0 + -1 + + + + more + 110 + 10 + 10 + + + + more + 2 + 0 + 0 + + + + more + 100 + 0 + + + + more + 100 + 0 + + + + more + 1 + 0 + + + + more + 1000000 + 33 + + + + more + 1 + 0 + + + + more + 1 + 0 + CAM^ + 1 + + + + less + 5 + 0 + 2 + touch_opp^ + + + + more + 2000000000 + 10000000 + 100000000 + duration^ + + + + more + 1000000 + 0 + 100000 + active_time^ + + + + less + 4000000 + 0 + -1 + + + + more + 2000000000 + 0 + + + + more + 100 + 0 + + + + more + 80 + 1 + + + + more + 25855 + 0 + 4 + + + + more + 100 + 0 + + + + more + 32767 + 1 + + + + more + 32767 + 1 + + + + less + 1 + 0 + + + + more + 32767 + 8 + + + + more + 32768 + 1 + + + + more + 32768 + 1 + + + + more + 15 + 0 + + + + more + 15 + 0 + + + + more + 1 + 0 + + + + more + 32767 + 0 + + + + more + 32767 + 0 + + + + more + 16000000 + 0 + + + + more + 65535 + 0 + + + + more + 100 + 0 + + + + more + 1 + 0 + 0 + + + + more + 1 + 0 + + + + more + 1 + 0 + 0 + 1 + + + + more + 1 + 0 + enable^ + + + diff --git a/configs/perf/powerscntbl.xml b/configs/perf/powerscntbl.xml new file mode 100644 index 0000000..bc88a6e --- /dev/null +++ b/configs/perf/powerscntbl.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/powerhint.json b/configs/powerhint.json deleted file mode 100644 index 1d0776f..0000000 --- a/configs/powerhint.json +++ /dev/null @@ -1,550 +0,0 @@ -{ - "Nodes": [ - { - "Name": "CPULittleClusterMaxFreq", - "Path": "/sys/devices/system/cpu/cpufreq/mtk/lcluster_max_freq", - "Values": [ - "-1", - "2000000", - "1933000", - "1866000", - "1800000", - "1733000", - "1666000", - "1618000", - "1500000", - "1375000", - "1275000", - "1175000", - "1075000", - "975000", - "875000", - "774000", - "500000" - ], - "DefaultIndex": 0, - "ResetOnInit": true - }, - { - "Name": "CPULittleClusterMinFreq", - "Path": "/sys/devices/system/cpu/cpufreq/mtk/lcluster_min_freq", - "Values": [ - "2000000", - "1933000", - "1866000", - "1800000", - "1733000", - "1666000", - "1618000", - "1500000", - "1375000", - "1275000", - "1175000", - "1075000", - "975000", - "875000", - "774000", - "500000", - "-1" - ], - "ResetOnInit": true - }, - { - "Name": "CPUBigClusterMaxFreq", - "Path": "/sys/devices/system/cpu/cpufreq/mtk/bcluster_max_freq", - "Values": [ - "-1", - "2050000", - "1986000", - "1923000", - "1860000", - "1796000", - "1733000", - "1670000", - "1530000", - "1419000", - "1308000", - "1169000", - "1085000", - "1002000", - "919000", - "835000", - "774000" - ], - "DefaultIndex": 0, - "ResetOnInit": true - }, - { - "Name": "CPUBigClusterMinFreq", - "Path": "/sys/devices/system/cpu/cpufreq/mtk/bcluster_min_freq", - "Values": [ - "2050000", - "1986000", - "1923000", - "1860000", - "1796000", - "1733000", - "1670000", - "1530000", - "1419000", - "1308000", - "1169000", - "1085000", - "1002000", - "919000", - "835000", - "774000", - "-1" - ], - "ResetOnInit": true - }, - { - "Name": "GPUSchedMode", - "Path": "/sys/devices/platform/13040000.mali/js_ctx_scheduling_mode", - "Values": [ - "0", - "1" - ], - "DefaultIndex": 0, - "ResetOnInit": true - }, - { - "Name": "GPUSchedPeriod", - "Path": "/sys/devices/platform/13040000.mali/js_scheduling_period", - "Values": [ - "100", - "75", - "50", - "0" - ], - "ResetOnInit": true, - "DefaultIndex": 0 - }, - { - "Name": "GPUDVFSInterval", - "Path": "/sys/devices/platform/13040000.mali/dvfs_period", - "Values": [ - "100", - "75", - "50" - ], - "ResetOnInit": true, - "DefaultIndex": 0 - }, - { - "Name": "TASchedtuneBoost", - "Path": "/dev/stune/top-app/schedtune.boost", - "Values": [ - "40", - "10" - ], - "ResetOnInit": true - }, - { - "Name": "CDSchedtuneBoost", - "Path": "/dev/stune/camera-daemon/schedtune.boost", - "Values": [ - "1", - "0" - ], - "ResetOnInit": true - }, - { - "Name": "FGBoostPerf", - "Path": "/proc/perfmgr/boost_ctrl/eas_ctrl/perfserv_fg_boost", - "Values": [ - "0", - "50", - "100" - ], - "ResetOnInit": true, - "DefaultIndex": 0 - }, - { - "Name": "TABoostPerf", - "Path": "/proc/perfmgr/boost_ctrl/eas_ctrl/perfserv_ta_boost", - "Values": [ - "0", - "50", - "100" - ], - "ResetOnInit": true, - "DefaultIndex": 0 - }, - { - "Name": "BGBoostPerf", - "Path": "/proc/perfmgr/boost_ctrl/eas_ctrl/perfserv_bg_boost", - "Values": [ - "0", - "50", - "100" - ], - "ResetOnInit": true, - "DefaultIndex": 0 - }, - { - "Name": "FBTFloorBound", - "Path": "/sys/module/fbt_cpu/parameters/floor_bound", - "Values": [ - "20", - "10", - "5", - "1" - ], - "ResetOnInit": true - }, - { - "Name": "FBTVariance", - "Path": "/sys/module/fbt_cpu/parameters/variance", - "Values": [ - "100", - "80", - "60", - "40", - "20", - "0" - ], - "ResetOnInit": true, - "DefaultIndex": 3 - }, - { - "Name": "DRAMOppMin", - "Path": "/proc/perfmgr/boost_ctrl/dram_ctrl/ddr", - "Values": [ - "-1", - "0", - "1", - "2" - ], - "ResetOnInit": true, - "DefaultIndex": 0 - }, - { - "Name": "FBTBHROPP", - "Path": "/sys/module/fbt_cpu/parameters/bhr_opp", - "Values": [ - "1", - "3", - "6", - "9", - "12", - "15" - ], - "ResetOnInit": true, - "DefaultIndex": 0 - }, - { - "Name": "FBTBHR", - "Path": "/sys/module/fbt_cpu/parameters/bhr", - "Values": [ - "5", - "10", - "50", - "100" - ], - "ResetOnInit": true, - "DefaultIndex": 0 - }, - { - "Name": "EASMigrateCost", - "Path": "/proc/perfmgr/boost_ctrl/eas_ctrl/m_sched_migrate_cost_n", - "Values": [ - "0", - "100000", - "200000", - "400000", - "800000", - "1000000", - "2000000", - "4000000", - "8000000", - "10000000" - ], - "ResetOnInit": true, - "DefaultIndex": 3 - }, - { - "Name": "CCIFreqMode", - "Path": "/proc/cpufreq/cpufreq_cci_mode", - "Values": [ - "0", - "1" - ], - "ResetOnInit": true, - "DefaultIndex": 0 - }, - { - "Name": "GPUBlockBoost", - "Path": "/sys/kernel/fpsgo/common/gpu_block_boost", - "Values": [ - "101", - "50", - "0", - "-1" - ], - "ResetOnInit": true, - "DefaultIndex": 2 - }, - { - "Name": "UclampMin", - "Path": "/proc/perfmgr/boost_ctrl/eas_ctrl/perfserv_uclamp_min", - "Values": [ - "100", - "75", - "50", - "25", - "0" - ], - "ResetOnInit": true - }, - { - "Name": "BGUclampMin", - "Path": "/proc/perfmgr/boost_ctrl/eas_ctrl/perfserv_bg_uclamp_min", - "Values": [ - "100", - "75", - "50", - "25", - "0" - ], - "ResetOnInit": true - }, - { - "Name": "FGUclampMin", - "Path": "/proc/perfmgr/boost_ctrl/eas_ctrl/perfserv_fg_uclamp_min", - "Values": [ - "100", - "75", - "50", - "25", - "0" - ], - "ResetOnInit": true - }, - { - "Name": "TAUclampMin", - "Path": "/proc/perfmgr/boost_ctrl/eas_ctrl/perfserv_ta_uclamp_min", - "Values": [ - "100", - "75", - "50", - "25", - "0" - ], - "ResetOnInit": true - }, - { - "Name": "FBTBoostTA", - "Path": "/sys/kernel/fpsgo/fbt/boost_ta", - "Values": [ - "0", - "1" - ], - "ResetOnInit": true, - "DefaultIndex": 0 - }, - { - "Name": "PowerHALMainState", - "Path": "vendor.mediatek.powerhal.state", - "Values": [ - "SUSTAINED_PERFORMANCE", - "" - ], - "Type": "Property" - }, - { - "Name": "PowerHALAudioState", - "Path": "vendor.mediatek.powerhal.audio", - "Values": [ - "AUDIO_STREAMING_LOW_LATENCY", - "" - ], - "Type": "Property" - }, - { - "Name": "PowerHALRenderingState", - "Path": "vendor.mediatek.powerhal.rendering", - "Values": [ - "EXPENSIVE_RENDERING", - "" - ], - "Type": "Property" - } - ], - "Actions": [ - { - "PowerHint": "SUSTAINED_PERFORMANCE", - "Node": "PowerHALMainState", - "Duration": 0, - "Value": "SUSTAINED_PERFORMANCE" - }, - { - "PowerHint": "SUSTAINED_PERFORMANCE", - "Node": "CPUBigClusterMaxFreq", - "Duration": 0, - "Value": "2050000" - }, - { - "PowerHint": "SUSTAINED_PERFORMANCE", - "Node": "CPULittleClusterMaxFreq", - "Duration": 0, - "Value": "2000000" - }, - { - "PowerHint": "SUSTAINED_PERFORMANCE", - "Node": "GPUSchedMode", - "Duration": 0, - "Value": "1" - }, - { - "PowerHint": "INTERACTION", - "Node": "CPULittleClusterMinFreq", - "Duration": 0, - "Value": "1275000" - }, - { - "PowerHint": "INTERACTION", - "Node": "CPUBigClusterMinFreq", - "Duration": 0, - "Value": "1419000" - }, - { - "PowerHint": "INTERACTION", - "Node": "CPULittleClusterMaxFreq", - "Duration": 0, - "Value": "1666000" - }, - { - "PowerHint": "INTERACTION", - "Node": "CPUBigClusterMaxFreq", - "Duration": 0, - "Value": "2050000" - }, - { - "PowerHint": "INTERACTION", - "Node": "TASchedtuneBoost", - "Duration": 0, - "Value": "40" - }, - { - "PowerHint": "INTERACTION", - "Node": "DRAMOppMin", - "Duration": 0, - "Value": "0" - }, - { - "PowerHint": "INTERACTION", - "Node": "FBTBHROPP", - "Duration": 0, - "Value": "15" - }, - { - "PowerHint": "INTERACTION", - "Node": "CCIFreqMode", - "Duration": 0, - "Value": "1" - }, - { - "PowerHint": "INTERACTION", - "Node": "FGBoostPerf", - "Duration": 0, - "Value": "50" - }, - { - "PowerHint": "INTERACTION", - "Node": "UclampMin", - "Duration": 0, - "Value": "50" - }, - { - "PowerHint": "INTERACTION", - "Node": "FGUclampMin", - "Duration": 0, - "Value": "50" - }, - { - "PowerHint": "INTERACTION", - "Node": "TAUclampMin", - "Duration": 0, - "Value": "50" - }, - { - "PowerHint": "LAUNCH", - "Node": "FBTBoostTA", - "Duration": 3000, - "Value": "1" - }, - { - "PowerHint": "LAUNCH", - "Node": "CPUBigClusterMaxFreq", - "Duration": 3000, - "Value": "2050000" - }, - { - "PowerHint": "LAUNCH", - "Node": "CPUBigClusterMinFreq", - "Duration": 3000, - "Value": "2050000" - }, - { - "PowerHint": "LAUNCH", - "Node": "CPULittleClusterMaxFreq", - "Duration": 5000, - "Value": "2000000" - }, - { - "PowerHint": "LAUNCH", - "Node": "CPULittleClusterMinFreq", - "Duration": 3000, - "Value": "2000000" - }, - { - "PowerHint": "LAUNCH", - "Node": "TAUclampMin", - "Duration": 3000, - "Value": "100" - }, - { - "PowerHint": "LAUNCH", - "Node": "UclampMin", - "Duration": 3000, - "Value": "100" - }, - { - "PowerHint": "LAUNCH", - "Node": "GPUBlockBoost", - "Duration": 3000, - "Value": "101" - }, - { - "PowerHint": "LAUNCH", - "Node": "DRAMOppMin", - "Duration": 3000, - "Value": "1" - }, - { - "PowerHint": "EXPENSIVE_RENDERING", - "Node": "PowerHALRenderingState", - "Duration": 0, - "Value": "EXPENSIVE_RENDERING" - }, - { - "PowerHint": "EXPENSIVE_RENDERING", - "Node": "GPUDVFSInterval", - "Duration": 0, - "Value": "75" - }, - { - "PowerHint": "EXPENSIVE_RENDERING", - "Node": "GPUSchedMode", - "Duration": 0, - "Value": "1" - }, - { - "PowerHint": "EXPENSIVE_RENDERING", - "Node": "GPUBlockBoost", - "Duration": 0, - "Value": "50" - } - ] -} diff --git a/device.mk b/device.mk index 1a9ec6d..166d26a 100644 --- a/device.mk +++ b/device.mk @@ -329,25 +329,19 @@ PRODUCT_PACKAGES += \ # Power PRODUCT_PACKAGES += \ - android.hardware.power-service.mediatek-libperfmgr - -PRODUCT_PACKAGES += \ - libmtkperf_client_vendor \ - libmtkperf_client - -PRODUCT_PACKAGES += \ - vendor.mediatek.hardware.mtkpower@1.0.vendor \ - vendor.mediatek.hardware.mtkpower@1.1.vendor \ - vendor.mediatek.hardware.mtkpower@1.2-service.stub - -PRODUCT_PACKAGES += \ + android.hardware.power-service-mediatek \ + android.hardware.power-V2-ndk_platform.vendor \ android.hardware.power@1.0.vendor \ android.hardware.power@1.1.vendor \ android.hardware.power@1.2.vendor \ - android.hardware.power@1.3.vendor + vendor.mediatek.hardware.mtkpower@1.0.vendor \ + vendor.mediatek.hardware.mtkpower@1.1.vendor \ + vendor.mediatek.hardware.mtkpower@1.2.vendor PRODUCT_COPY_FILES += \ - $(LOCAL_PATH)/configs/powerhint.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json + $(LOCAL_PATH)/configs/perf/power_app_cfg.xml:$(TARGET_COPY_OUT_VENDOR)/etc/power_app_cfg.xml \ + $(LOCAL_PATH)/configs/perf/powercontable.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powercontable.xml \ + $(LOCAL_PATH)/configs/perf/powerscntbl.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerscntbl.xml # PowerOffAlarm PRODUCT_PACKAGES += \ diff --git a/proprietary-files.txt b/proprietary-files.txt index 6e17c7a..c147d97 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -2211,8 +2211,24 @@ vendor/lib64/libdynamiclog.so vendor/lib64/libmvpu_config_data.so # Perf +vendor/bin/hw/vendor.mediatek.hardware.mtkpower@1.0-service vendor/etc/init/bootperf.rc +vendor/etc/init/init.fpsgo.rc +vendor/etc/init/vendor.mediatek.hardware.mtkpower@1.0-init.rc +vendor/etc/init/vendor.mediatek.hardware.mtkpower@1.0-service.rc +vendor/lib/hw/vendor.mediatek.hardware.mtkpower@1.2-impl.so +vendor/lib/libmtkperf_client_vendor.so +vendor/lib/libperfctl_vendor.so +vendor/lib/libpower_timer.so +vendor/lib/libpowerhal.so +vendor/lib/libpowerhalwrap_vendor.so vendor/lib/vendor.mediatek.hardware.power@2.0.so +vendor/lib64/hw/vendor.mediatek.hardware.mtkpower@1.2-impl.so +vendor/lib64/libmtkperf_client_vendor.so +vendor/lib64/libperfctl_vendor.so +vendor/lib64/libpower_timer.so +vendor/lib64/libpowerhal.so +vendor/lib64/libpowerhalwrap_vendor.so vendor/lib64/vendor.mediatek.hardware.power@2.0.so # PQ diff --git a/sepolicy/vendor/file.te b/sepolicy/vendor/file.te index a9f2df3..b125138 100644 --- a/sepolicy/vendor/file.te +++ b/sepolicy/vendor/file.te @@ -7,8 +7,6 @@ type vendor_fingerprint_data_file, data_file_type, file_type; type vendor_fingerprint_device, dev_type; type sysfs_fingerprint, fs_type, sysfs_type; -# Latency -type latency_device, dev_type; # Health type vendor_sysfs_ac_supply, fs_type, sysfs_type; @@ -22,11 +20,6 @@ type vendor_sysfs_main_supply, fs_type, sysfs_type; # Performance type proc_vm_dirty, fs_type, proc_type; type proc_sched_stune, fs_type, proc_type; -type sysfs_mtk_cpufreq, fs_type, sysfs_type; -type sysfs_mtk_gpufreq, fs_type, sysfs_type; - -# PPS -type pps_socket, file_type; # Touchpanel type sysfs_touchpanel, sysfs_type, fs_type; diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts index 02d3b34..3b6a63d 100644 --- a/sepolicy/vendor/file_contexts +++ b/sepolicy/vendor/file_contexts @@ -20,9 +20,6 @@ # IR /dev/spidev3.0 u:object_r:spidev_device:s0 -# Latency -/dev/cpu_dma_latency u:object_r:latency_device:s0 - # Lights /(vendor|system/vendor)/bin/hw/android\.hardware\.light-service\.rosemary u:object_r:hal_light_default_exec:s0 diff --git a/sepolicy/vendor/genfs_contexts b/sepolicy/vendor/genfs_contexts index ee65358..50961ee 100644 --- a/sepolicy/vendor/genfs_contexts +++ b/sepolicy/vendor/genfs_contexts @@ -33,8 +33,6 @@ genfscon sysfs /devices/platform/leds-mt65xx/leds/lcd-backlight # Performance genfscon proc /sys/vm/dirty_writeback_centisecs u:object_r:proc_vm_dirty:s0 genfscon proc /sys/kernel/sched_stune_task_threshold u:object_r:proc_sched_stune:s0 -genfscon sysfs /devices/system/cpu/cpufreq/mtk/.cluster_(min|max)_freq u:object_r:sysfs_mtk_cpufreq:s0 -genfscon sysfs /kernel/gpu/gpu_(min|max)_clock u:object_r:sysfs_mtk_gpufreq:s0 # Touchpanel genfscon sysfs /touchpanel u:object_r:sysfs_touchpanel:s0 diff --git a/sepolicy/vendor/hal_power_default.te b/sepolicy/vendor/hal_power_default.te deleted file mode 100644 index 2b09a5e..0000000 --- a/sepolicy/vendor/hal_power_default.te +++ /dev/null @@ -1,49 +0,0 @@ -typeattribute hal_power_default mlstrustedsubject; - -allow hal_power_default sysfs_devices_system_cpu:file rw_file_perms; -allow hal_power_default cgroup:file r_file_perms; - -# To get/set powerhal state property -set_prop(hal_power_default, vendor_power_prop) - -# Rule for hal_power_default to access graphics composer process -unix_socket_connect(hal_power_default, pps, hal_graphics_composer_default); - -# Set scheduling info for apps (for adpf) -allow hal_power_default appdomain:process { getsched setsched }; -allow hal_power_default self:capability sys_nice; - -# Set scheduling info for system_server (for adpf) -allow hal_power_default system_server:process setsched; - -# Set CPU frequency -allow hal_power_default sysfs_mtk_cpufreq:file rw_file_perms; - -# Set GPU frequency -allow hal_power_default sysfs_mtk_gpufreq:file rw_file_perms; -allow hal_power_default sysfs_gpu:dir r_dir_perms; -allow hal_power_default sysfs_gpu:file rw_file_perms; - -# Set perfmgr nodes -allow hal_power_default proc_perfmgr:dir r_dir_perms; -allow hal_power_default sysfs_fpsgo:file w_file_perms; -allow hal_power_default proc_ppm:dir r_dir_perms; -allow hal_power_default proc_ppm:file rw_file_perms; -allow hal_power_default proc_cpufreq:dir r_dir_perms; -allow hal_power_default proc_cpufreq:file rw_file_perms; -allow hal_power_default proc_hps:dir r_dir_perms; -allow hal_power_default proc_hps:file rw_file_perms; -allow hal_power_default proc_cm_mgr:dir r_dir_perms; -allow hal_power_default proc_cm_mgr:file rw_file_perms; -allow hal_power_default proc_fliperfs:dir r_dir_perms; -allow hal_power_default proc_fliperfs:file rw_file_perms; -allow hal_power_default sysfs_fbt_cpu:dir r_dir_perms; -allow hal_power_default sysfs_fbt_cpu:file rw_file_perms; -allow hal_power_default sysfs_fbt_fteh:dir r_dir_perms; -allow hal_power_default sysfs_fbt_fteh:file rw_file_perms; -allow hal_power_default sysfs_fpsgo:dir r_dir_perms; -allow hal_power_default sysfs_fpsgo:file rw_file_perms; - -# Set touchpanel nodes -allow hal_power_default sysfs_touchpanel:dir r_dir_perms; -allow hal_power_default sysfs_touchpanel:file rw_file_perms;