aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberto97 <albertop2197@gmail.com>2017-10-18 14:11:53 +0000
committerAli Al-Asadi <alasadi56@gmail.com>2017-11-20 13:36:29 +0100
commit173f18b7ba905d3e18b98b7db1f019420f04bb4b (patch)
treedfc5ab52d70dcf7abaef34a5af05debb36ca4d27
parentdc2f9d5fdea3d35328980191ad7c645bb03fc9a8 (diff)
athene : Remove debugging toolsn7.1
Change-Id: I4a69517e352361fb4cac1fe600f5becdd0ec440b
-rwxr-xr-xproprietary-files.txt3
-rw-r--r--rootdir/etc/init.qcom.rc15
-rw-r--r--sepolicy/atvc.te7
-rw-r--r--sepolicy/batt_health.te18
-rw-r--r--sepolicy/file.te7
-rw-r--r--sepolicy/file_contexts6
-rw-r--r--sepolicy/hw_revs.te11
-rw-r--r--sepolicy/property.te1
-rw-r--r--sepolicy/property_contexts1
-rw-r--r--sepolicy/qti_init_shell.te3
10 files changed, 0 insertions, 72 deletions
diff --git a/proprietary-files.txt b/proprietary-files.txt
index 04e6460..247564c 100755
--- a/proprietary-files.txt
+++ b/proprietary-files.txt
@@ -898,14 +898,11 @@ vendor/lib/libxtadapter.so
vendor/lib/libxt_native.so
# Moto
-bin/batt_health
bin/charge_only_mode
bin/cnd
-bin/dbvc_atvc_property_set
bin/dun-server
bin/ftmdaemon
bin/ftmipcd
-bin/hardware_revisions.sh
bin/irsc_util
bin/motobox
bin/motosh
diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc
index 6e57672..34d28cd 100644
--- a/rootdir/etc/init.qcom.rc
+++ b/rootdir/etc/init.qcom.rc
@@ -339,7 +339,6 @@ on post-fs
mkdir /persist/bt 0755 mot_tcmd bluetooth
mkdir /persist/wmdrm 0775 mot_drm mot_drm
mkdir /persist/security 02770 mot_tpapi mot_tpapi
- mkdir /persist/batt_health 0755 mot_pwric mot_pwric
mkdir /persist/mdm 0770 radio radio
chown mot_tcmd mot_tcmd /persist/factory/fti
@@ -584,7 +583,6 @@ on property:persist.sys.ssr.enable_ramdumps=0
write /sys/module/subsystem_restart/parameters/enable_ramdumps 0
on property:sys.boot_completed=1
- start batt_health
start emmc_ffu
start mbm_spy
start mmi-laser-sh
@@ -943,12 +941,6 @@ on property:hw.touch.status="dead"
on property:hw.touch.status="ready"
# start touch-ready-sh
-service batt_health /system/bin/batt_health
- class late_start
- user mot_pwric
- group mot_pwric cache net_admin log
- disabled
-
service charge_only_mode /system/bin/charge_only_mode
user root
group graphics system input
@@ -999,12 +991,6 @@ on property:ro.debuggable=1
# enable group read/write to /dev/log/kernel
chmod 0660 /dev/log/kernel
-service hw_revs /system/bin/hardware_revisions.sh
- class late_start
- user system
- group system
- oneshot
-
service dropboxd /system/bin/dropboxd
class late_start
user diag
@@ -1154,5 +1140,4 @@ on charger
on moto-charger
setprop ro.board.platform msm8952
start charge_only_mode
- start batt_health
start thermal-com
diff --git a/sepolicy/atvc.te b/sepolicy/atvc.te
deleted file mode 100644
index 972dff6..0000000
--- a/sepolicy/atvc.te
+++ /dev/null
@@ -1,7 +0,0 @@
-type atvc, domain;
-type atvc_exec, exec_type, file_type;
-init_daemon_domain(atvc)
-
-allow atvc atvc_prop:property_service set;
-allow atvc persist_file:dir search;
-unix_socket_connect(atvc, property, init)
diff --git a/sepolicy/batt_health.te b/sepolicy/batt_health.te
deleted file mode 100644
index baaac75..0000000
--- a/sepolicy/batt_health.te
+++ /dev/null
@@ -1,18 +0,0 @@
-type batt_health, domain;
-type batt_health_exec, exec_type, file_type;
-init_daemon_domain(batt_health);
-
-allow batt_health batt_health_data_file:dir rw_dir_perms;
-allow batt_health batt_health_data_file:file { setattr create rename rw_file_perms };
-allow batt_health cache_file:dir { write add_name remove_name search };
-allow batt_health cache_file:file { getattr read write create open append setattr unlink };
-allow batt_health self:capability { dac_override net_admin setuid chown fowner fsetid };
-allow batt_health self:netlink_kobject_uevent_socket { create bind setopt read };
-allow batt_health sysfs:dir { open read };
-allow batt_health sysfs:file { open read };
-allow batt_health sysfs_battery_supply:dir { search read };
-allow batt_health sysfs_battery_supply:file r_file_perms;
-allow batt_health sysfs_batt_health:dir search;
-allow batt_health sysfs_batt_health:file rw_file_perms;
-allow batt_health sysfs_usb_supply:dir { search read };
-allow batt_health sysfs_usb_supply:file r_file_perms;
diff --git a/sepolicy/file.te b/sepolicy/file.te
index 39ebdf8..04a1d22 100644
--- a/sepolicy/file.te
+++ b/sepolicy/file.te
@@ -1,10 +1,3 @@
-# Battery health
-type batt_health_data_file, file_type, data_file_type;
-type sysfs_batt_health, fs_type, sysfs_type;
-
-# hw_revs
-type hw_revs_data_file, file_type, data_file_type;
-
# charge_only_mode
type chargeonly_data_file, file_type, data_file_type;
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
index 51e88ed..162a875 100644
--- a/sepolicy/file_contexts
+++ b/sepolicy/file_contexts
@@ -1,8 +1,5 @@
# Binaries
-/system/bin/batt_health u:object_r:batt_health_exec:s0
/system/bin/charge_only_mode u:object_r:charge_only_exec:s0
-/system/bin/dbvc_atvc_property_set u:object_r:atvc_exec:s0
-/system/bin/hardware_revisions.sh u:object_r:hw_revs_exec:s0
/system/bin/motosh u:object_r:sensors_exec:s0
/system/bin/stm.* u:object_r:sensors_exec:s0
/system/bin/thermal-engine u:object_r:thermal-engine_exec:s0
@@ -19,9 +16,6 @@
# Motorola services
/data/chargeonlymode(/.*)? u:object_r:chargeonly_data_file:s0
-/data/hardware_revisions(/.*)? u:object_r:hw_revs_data_file:s0
-/data/power_supply_logger(/.*)? u:object_r:batt_health_data_file:s0
-/sys/module/qpnp_charger/parameters(/.*)? u:object_r:sysfs_batt_health:s0
# Partitions
/dev/block/bootdevice/by-name/cache u:object_r:cache_block_device:s0
diff --git a/sepolicy/hw_revs.te b/sepolicy/hw_revs.te
deleted file mode 100644
index 121b191..0000000
--- a/sepolicy/hw_revs.te
+++ /dev/null
@@ -1,11 +0,0 @@
-type hw_revs, domain;
-type hw_revs_exec, exec_type, file_type;
-init_daemon_domain(hw_revs)
-
-allow hw_revs hw_revs_data_file:dir create_dir_perms;
-allow hw_revs hw_revs_data_file:file create_file_perms;
-allow hw_revs shell_exec:file { getattr read };
-allow hw_revs sysfs:dir { open read };
-allow hw_revs sysfs:file { open read getattr };
-allow hw_revs system_file:file execute_no_trans;
-allow hw_revs toolbox_exec:file { execute execute_no_trans getattr open read };
diff --git a/sepolicy/property.te b/sepolicy/property.te
index 2eb6e29..b094714 100644
--- a/sepolicy/property.te
+++ b/sepolicy/property.te
@@ -1,4 +1,3 @@
# Motorola service properties
-type atvc_prop, property_type;
type manufacturedate_prop, property_type;
type rmtfs_prop, property_type;
diff --git a/sepolicy/property_contexts b/sepolicy/property_contexts
index 2be8c5f..c9a9732 100644
--- a/sepolicy/property_contexts
+++ b/sepolicy/property_contexts
@@ -1,5 +1,4 @@
# Motorola service properties
manufacturedate u:object_r:manufacturedate_prop:s0
-persist.atvc u:object_r:atvc_prop:s0
qualcomm.bt. u:object_r:bluetooth_prop:s0
rmtfs. u:object_r:rmtfs_prop:s0
diff --git a/sepolicy/qti_init_shell.te b/sepolicy/qti_init_shell.te
index e8f44ec..869ef9c 100644
--- a/sepolicy/qti_init_shell.te
+++ b/sepolicy/qti_init_shell.te
@@ -1,8 +1,5 @@
allow qti_init_shell apk_data_file:file { write };
allow qti_init_shell bluetooth_loader_exec:file { open read };
-allow qti_init_shell hw_revs_data_file:dir { write getattr setattr search read remove_name open add_name };
-allow qti_init_shell hw_revs_data_file:file { write getattr setattr create unlink open append };
-allow qti_init_shell hw_revs_exec:file r_file_perms;
allow qti_init_shell kmsg_device:chr_file { write open };
# Needed by init.mmi.boot.sh