diff --git a/nehemiah/AndroidProducts.mk b/nehemiah/AndroidProducts.mk deleted file mode 100644 index 76f7abf..0000000 --- a/nehemiah/AndroidProducts.mk +++ /dev/null @@ -1,2 +0,0 @@ -PRODUCT_MAKEFILES := \ - $(LOCAL_DIR)/nehemiah_qin_f21pro.mk \ No newline at end of file diff --git a/nehemiah/base-pre.mk b/nehemiah/base-pre.mk deleted file mode 100644 index 8db5af7..0000000 --- a/nehemiah/base-pre.mk +++ /dev/null @@ -1,2 +0,0 @@ -PRODUCT_COPY_FILES += \ - device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml \ No newline at end of file diff --git a/nehemiah/base.mk b/nehemiah/base.mk deleted file mode 100644 index 4780b77..0000000 --- a/nehemiah/base.mk +++ /dev/null @@ -1,23 +0,0 @@ -BOARD_PLAT_PRIVATE_SEPOLICY_DIR += device/wephone/nehemiah/sepolicy -PRODUCT_PACKAGE_OVERLAYS += device/wephone/nehemiah/overlay - -# $(call inherit-product, vendor/hardware_overlay/overlay.mk) -$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) -$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk) - -PRODUCT_PACKAGES += \ - treble-environ-rc \ - -PRODUCT_PACKAGES += \ - bootctl \ - vintf \ - simg2img_simple \ - lptools - -ifneq (,$(wildcard external/exfat)) -PRODUCT_PACKAGES += \ - mkfs.exfat \ - fsck.exfat -endif - -SELINUX_IGNORE_NEVERALLOWS := true \ No newline at end of file diff --git a/nehemiah/bluetooth/bdroid_buildcfg.h b/nehemiah/bluetooth/bdroid_buildcfg.h deleted file mode 100644 index 166bd4a..0000000 --- a/nehemiah/bluetooth/bdroid_buildcfg.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2013, The Linux Foundation. All rights reserved. - * Not a Contribution, Apache license notifications and license are retained - * for attribution purposes only. - * - * Copyright (C) 2012 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef _BDROID_BUILDCFG_H -#define _BDROID_BUILDCFG_H - -//#include -#include - -static inline const char* BtmDefLocalName() -{ -#if 0 - static char product_device[PROPERTY_VALUE_MAX]; - //Huawei-defined property - property_get("ro.config.marketing_name", product_device, ""); - - if (strcmp(product_device, "") != 0) - return product_device; - - // Fallback to ro.product.model - return ""; -#endif - return "hello"; -} - -static inline int BtmBypassExtraAclSetup() { -#if 0 - int8_t prop = property_get_bool("persist.sys.bt_acl_bypass", false); - return prop == true; -#endif - return 1; -} - -#define BTM_DEF_LOCAL_NAME BtmDefLocalName() -#define BTM_BYPASS_EXTRA_ACL_SETUP BtmBypassExtraAclSetup() - -#endif diff --git a/nehemiah/board-base.mk b/nehemiah/board-base.mk deleted file mode 100644 index b561863..0000000 --- a/nehemiah/board-base.mk +++ /dev/null @@ -1,6 +0,0 @@ -TARGET_SYSTEM_PROP := device/wephone/nehemiah/system.prop $(TARGET_SYSTEM_PROP) -BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/wephone/nehemiah/bluetooth -TARGET_EXFAT_DRIVER := exfat -DEVICE_FRAMEWORK_MANIFEST_FILE := device/wephone/nehemiah/framework_manifest.xml - -BOARD_ROOT_EXTRA_FOLDERS += bt_firmware sec_storage efs \ No newline at end of file diff --git a/nehemiah/environ/Android.mk b/nehemiah/environ/Android.mk deleted file mode 100644 index 750d13b..0000000 --- a/nehemiah/environ/Android.mk +++ /dev/null @@ -1,11 +0,0 @@ -include $(CLEAR_VARS) - -LOCAL_MODULE := treble-environ-rc -LOCAL_MODULE_TAGS := optional - -LOCAL_POST_INSTALL_CMD := \ - mkdir -p $(PRODUCT_OUT)/system/etc/init/ && \ - sed -e 's?%BOOTCLASSPATH%?$(PRODUCT_BOOTCLASSPATH)?g' device/phh/treble/environ/init.treble-environ.rc > $(PRODUCT_OUT)/system/etc/init/init.treble-environ.rc && \ - sed -i -e 's?%SYSTEMSERVERCLASSPATH%?$(PRODUCT_SYSTEM_SERVER_CLASSPATH)?g' $(PRODUCT_OUT)/system/etc/init/init.treble-environ.rc - -include $(BUILD_PHONY_PACKAGE) diff --git a/nehemiah/environ/init.treble-environ.rc b/nehemiah/environ/init.treble-environ.rc deleted file mode 100644 index 4fc8c32..0000000 --- a/nehemiah/environ/init.treble-environ.rc +++ /dev/null @@ -1,4 +0,0 @@ -# set up the global environment -on init - export BOOTCLASSPATH /apex/com.android.runtime/javalib/core-oj.jar:/apex/com.android.runtime/javalib/core-libart.jar:/apex/com.android.runtime/javalib/okhttp.jar:/apex/com.android.runtime/javalib/bouncycastle.jar:/apex/com.android.runtime/javalib/apache-xml.jar:/system/framework/framework.jar:/system/framework/ext.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/android.test.base.jar:/apex/com.android.conscrypt/javalib/conscrypt.jar:/apex/com.android.media/javalib/updatable-media.jar - export SYSTEMSERVERCLASSPATH /system/framework/services.jar:/system/framework/ethernet-service.jar:/system/framework/wifi-service.jar:/system/framework/com.android.location.provider.jar diff --git a/nehemiah/framework_manifest.xml b/nehemiah/framework_manifest.xml deleted file mode 100644 index 738f809..0000000 --- a/nehemiah/framework_manifest.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - android.hardware.wifi.hostapd - hwbinder - 1.0 - - IHostapd - default - - - \ No newline at end of file diff --git a/nehemiah/mediatek_arm64/BoardConfig.mk b/nehemiah/mediatek_arm64/BoardConfig.mk deleted file mode 100644 index 5f4ccde..0000000 --- a/nehemiah/mediatek_arm64/BoardConfig.mk +++ /dev/null @@ -1,8 +0,0 @@ -include build/make/target/board/generic_arm64_ab/BoardConfig.mk -include device/wephone/nehemiah/board-base.mk - -ifeq ($(BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE),) -BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648 -else -BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE := 33554432 -endif \ No newline at end of file diff --git a/nehemiah/nehemiah_qin_f21pro.mk b/nehemiah/nehemiah_qin_f21pro.mk deleted file mode 100644 index 0d27e5b..0000000 --- a/nehemiah/nehemiah_qin_f21pro.mk +++ /dev/null @@ -1,15 +0,0 @@ -TARGET_GAPPS_ARCH := arm64 -$(call inherit-product, device/wephone/nehemiah/base-pre.mk) -include build/make/target/product/aosp_arm64_ab.mk -$(call inherit-product, device/wephone/nehemiah/base.mk) - -PRODUCT_NAME := nehemiah_qin_f21pro -PRODUCT_DEVICE := mediatek_arm64 -PRODUCT_BRAND := wePhone -PRODUCT_SYSTEM_BRAND := wePhone -PRODUCT_MODEL := wePhone Qin F21pro - -# Overwrite the inherited "emulator" characteristics -PRODUCT_CHARACTERISTICS := device - -PRODUCT_PACKAGES += diff --git a/nehemiah/overlay/frameworks/base/core/res/res/drawable-nodpi/default_wallpaper.png b/nehemiah/overlay/frameworks/base/core/res/res/drawable-nodpi/default_wallpaper.png deleted file mode 100644 index 14109dc..0000000 Binary files a/nehemiah/overlay/frameworks/base/core/res/res/drawable-nodpi/default_wallpaper.png and /dev/null differ diff --git a/nehemiah/overlay/frameworks/base/core/res/res/values/config.xml b/nehemiah/overlay/frameworks/base/core/res/res/values/config.xml deleted file mode 100644 index b3ab443..0000000 --- a/nehemiah/overlay/frameworks/base/core/res/res/values/config.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - "usb\\d" - "rndis\\d" - - - - "wlan0" - "softap.*" - "wifi_br0" - "wigig0" - - - - bnep\\d - "bt-pan" - - - true - true - "M50 0C77.6 0 100 22.4 100 50C100 77.6 77.6 100 50 100C22.4 100 0 77.6 0 50C0 22.4 22.4 0 50 0Z" - true - - com.android.wallpaperpicker - true - 5 - true - - com.android.systemui/com.android.systemui.doze.DozeService - true - true - 8.0dip - 4.0dip - - true - - - - 0 - - 1 - - 2 - - 3 - - - true - - android.sensor.light - - 2 - - true - diff --git a/nehemiah/overlay/frameworks/base/core/res/res/xml/config_webview_packages.xml b/nehemiah/overlay/frameworks/base/core/res/res/xml/config_webview_packages.xml deleted file mode 100644 index ac018af..0000000 --- a/nehemiah/overlay/frameworks/base/core/res/res/xml/config_webview_packages.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - MIIEQzCCAyugAwIBAgIJAMLgh0ZkSjCNMA0GCSqGSIb3DQEBBAUAMHQxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtHb29nbGUgSW5jLjEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDAeFw0wODA4MjEyMzEzMzRaFw0zNjAxMDcyMzEzMzRaMHQxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtHb29nbGUgSW5jLjEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDCCASAwDQYJKoZIhvcNAQEBBQADggENADCCAQgCggEBAKtWLgDYO6IIrgqWbxJOKdoR8qtW0I9Y4sypEwPpt1TTcvZApxsdyxMJZ2JORland2qSGT2y5b+3JKkedxiLDmpHpDsz2WCbdxgxRczfey5YZnTJ4VZbH0xqWVW/8lGmPav5xVwnIiJS6HXk+BVKZF+JcWjAsb/GEuq/eFdpuzSqeYTcfi6idkyugwfYwXFU1+5fZKUaRKYCwkkFQVfcAs1fXA5V+++FGfvjJ/CxURaSxaBvGdGDhfXE28LWuT9ozCl5xw4Yq5OGazvV24mZVSoOO0yZ31j7kYvtwYK6NeADwbSxDdJEqO4k//0zOHKrUiGYXtqw/A0LFFtqoZKF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Nrov4oRQK7lIfqInzwc4d34wU069Lrw6m7J7HM0KbRYISsWMiYj025Qg+dTrtdWt7jbdcj7htW0eYyJoLd90+s43RWnOpENmWpcWv1EVPxUD4mCdV9idYwoHRIESpSu9IWvqDZp1VoRc43nLgsNfNBwmYdTkIaPiz1m7TBcr7QIDAQABoyEwHzAdBgNVHQ4EFgQUuWoGd7W7wMyQ1pOdjiMv10YHTR0wDQYJKoZIhvcNAQELBQADggEBAA7iw6eKz+T8HIpKDoDcX1Ywjn9JUzuCFu20LnsLzreO/Pog1xErYjdLAS7LTZokfbAnitBskO9QhV9BYkDiM0Qr5v2/HsJTtxa1mz9ywCcI36jblMyuXFj8tuwQI9/t9i+Fc3+bOFBV3t7djPo9qX1dIK0lZ6s8HcIhaCNdqm65fH+nWhC/H9djqC6qOtrkTiACKEcHQ4a/5dfROU0q0M4bS4YuiaAQWgjiGbik4LrZ8wZX1aqJCLt0Hs7MzXyyf0cRSO11FIOViHwzh6WTZGufq2J3YBFXPond8kLxkKL3LNezbi5yTcecxsbKQ6OS46CnIKcy/M8asSreLpoCDvw= - - - - - diff --git a/nehemiah/sepolicy/asus.te b/nehemiah/sepolicy/asus.te deleted file mode 100644 index 64ff117..0000000 --- a/nehemiah/sepolicy/asus.te +++ /dev/null @@ -1,5 +0,0 @@ -allow cameraserver phhsu_exec:file rx_file_perms; - -type asus_motor_device, file_type; -allow cameraserver asus_motor_device:chr_file { open read write ioctl }; -allowxperm cameraserver asus_motor_device:chr_file ioctl { 0x4d02 }; diff --git a/nehemiah/sepolicy/board_properties.te b/nehemiah/sepolicy/board_properties.te deleted file mode 100644 index 4ed75dc..0000000 --- a/nehemiah/sepolicy/board_properties.te +++ /dev/null @@ -1,4 +0,0 @@ -type sysfs_board_properties, fs_type, sysfs_type; - -allow system_server sysfs_board_properties:dir search; -allow system_server sysfs_board_properties:file r_file_perms; diff --git a/nehemiah/sepolicy/bootanim.te b/nehemiah/sepolicy/bootanim.te deleted file mode 100644 index bba8c50..0000000 --- a/nehemiah/sepolicy/bootanim.te +++ /dev/null @@ -1,3 +0,0 @@ -#11-14 21:15:02.748 477 477 I auditd : type=1400 audit(0.0:104): avc: denied { search } for comm="BootAnimation" name="dri" dev="tmpfs" ino=1108 scontext=u:r:bootanim:s0 tcontext=u:object_r:gpu_device:s0 tclass=dir permissive=0 -#Seen on some MTK devices -allow bootanim gpu_device:dir r_dir_perms; diff --git a/nehemiah/sepolicy/file_contexts b/nehemiah/sepolicy/file_contexts deleted file mode 100644 index 4ae5095..0000000 --- a/nehemiah/sepolicy/file_contexts +++ /dev/null @@ -1,22 +0,0 @@ -/system/bin/phh-su u:object_r:phhsu_exec:s0 -/system/bin/vndk-detect u:object_r:vndk_detect_exec:s0 -/system/etc/usb_audio_policy_configuration.xml u:object_r:vendor_configs_file:s0 -/system/bin/rw-system.sh u:object_r:phhsu_exec:s0 -/system/bin/phh-on-boot.sh u:object_r:phhsu_exec:s0 -/system/bin/phh-on-data.sh u:object_r:phhsu_exec:s0 -/system/bin/asus-motor u:object_r:phhsu_exec:s0 - -#/system/bin/fsck\.exfat u:object_r:fsck_exec:s0 -/system/bin/fsck\.ntfs u:object_r:fsck_exec:s0 - -/bt_firmware(/.*)? u:object_r:bt_firmware_file:s0 - -/sec_storage(/.*)? u:object_r:teecd_data_file:s0 -/dev/dsm u:object_r:dmd_device:s0 - -/system/bin/hw/android.hardware.biometrics.fingerprint@2.1-service.oppo.compat u:object_r:hal_fingerprint_oppo_compat_exec:s0 -/system/bin/hw/android.hardware.biometrics.fingerprint@2.1-service.oplus.compat u:object_r:hal_fingerprint_oppo_compat_exec:s0 - -/efs u:object_r:efs_file:s0 - -/dev/smcinvoke u:object_r:smcinvoke_device:s0 diff --git a/nehemiah/sepolicy/genfs_contexts b/nehemiah/sepolicy/genfs_contexts deleted file mode 100644 index 56e8950..0000000 --- a/nehemiah/sepolicy/genfs_contexts +++ /dev/null @@ -1 +0,0 @@ -genfscon sysfs /board_properties u:object_r:sysfs_board_properties:s0 diff --git a/nehemiah/sepolicy/hal.te b/nehemiah/sepolicy/hal.te deleted file mode 100644 index cb44422..0000000 --- a/nehemiah/sepolicy/hal.te +++ /dev/null @@ -1,10 +0,0 @@ -type hal_fingerprint_oppo_compat, domain; -hal_client_domain(hal_fingerprint_oppo_compat, hal_fingerprint) -hal_server_domain(hal_fingerprint_oppo_compat, hal_fingerprint) - -type hal_fingerprint_oppo_compat_exec, exec_type, vendor_file_type, file_type; -init_daemon_domain(hal_fingerprint_oppo_compat) - - -type hal_fingerprint_oppo, domain; -allow hal_fingerprint_oppo vendor_default_prop:property_service { set }; diff --git a/nehemiah/sepolicy/hardware_overlay.te b/nehemiah/sepolicy/hardware_overlay.te deleted file mode 100644 index d3bb487..0000000 --- a/nehemiah/sepolicy/hardware_overlay.te +++ /dev/null @@ -1 +0,0 @@ -allow priv_app overlay_service:service_manager find; diff --git a/nehemiah/sepolicy/hostapd.te b/nehemiah/sepolicy/hostapd.te deleted file mode 100644 index fd37b61..0000000 --- a/nehemiah/sepolicy/hostapd.te +++ /dev/null @@ -1,4 +0,0 @@ -type hostapd, domain; - -allow hostapd wifi_data_file:dir create_dir_perms; -allow hostapd wifi_data_file:file create_file_perms; diff --git a/nehemiah/sepolicy/huawei.te b/nehemiah/sepolicy/huawei.te deleted file mode 100644 index e912528..0000000 --- a/nehemiah/sepolicy/huawei.te +++ /dev/null @@ -1,17 +0,0 @@ -allow ueventd proc:file r_file_perms; -permissive ueventd; - -type teecd_data_file, file_type; -type dmd_device, file_type; -allow hal_fingerprint_server dmd_device:chr_file rw_file_perms; -allow hal_fingerprint_server sysfs:file rw_file_perms; -allow tee hal_fingerprint_default:process { getattr }; -allow tee teecd_data_file:dir { search read write create getattr add_name open }; -allow tee teecd_data_file:file { read write create getattr open }; -allow tee system_data_file:dir { getattr }; - -type oeminfo_nvm, domain; -type oeminfo_nvm_device, file_type; -allowxperm oeminfo_nvm oeminfo_nvm_device:blk_file ioctl { 0x1260 }; - -allow charger rootfs:file { ioctl read getattr lock map execute entrypoint open }; diff --git a/nehemiah/sepolicy/init.te b/nehemiah/sepolicy/init.te deleted file mode 100644 index 42f5bf5..0000000 --- a/nehemiah/sepolicy/init.te +++ /dev/null @@ -1,13 +0,0 @@ -#This is in Android 8.0, but not 8.1 -domain_trans(init, rootfs, adbd) - -#This is used on Huawei devices to f2fs data partition -allow init userdata_block_device:blk_file relabelto; -allow init userdata_block_device:lnk_file relabelto; - -allow vendor_init vendor_init:capability { sys_module }; - -allow init system_file:lnk_file create_file_perms; - -#fix adb in some cases -allow init adbd_exec:lnk_file read; diff --git a/nehemiah/sepolicy/lenovo.te b/nehemiah/sepolicy/lenovo.te deleted file mode 100644 index 19e3314..0000000 --- a/nehemiah/sepolicy/lenovo.te +++ /dev/null @@ -1,4 +0,0 @@ -type sysfs_tp, file_type; - -#Allow treble_app access to /sys/devices/virtual/touch/tp_dev/gesture_on -allow system_app sysfs_tp:file rw_file_perms; diff --git a/nehemiah/sepolicy/lmkd.te b/nehemiah/sepolicy/lmkd.te deleted file mode 100644 index 46e1a61..0000000 --- a/nehemiah/sepolicy/lmkd.te +++ /dev/null @@ -1 +0,0 @@ -allow lmkd self:capability sys_ptrace; diff --git a/nehemiah/sepolicy/mediatek.te b/nehemiah/sepolicy/mediatek.te deleted file mode 100644 index 1577411..0000000 --- a/nehemiah/sepolicy/mediatek.te +++ /dev/null @@ -1,19 +0,0 @@ -type hal_graphics_allocator_default, domain; -type proc_ged, file_type; -allowxperm domain proc_ged:file ioctl { 0x6700-0x67ff }; - -allow init mnt_product_file:dir mounton; - -type mtk_hal_audio, domain; -typeattribute mtk_hal_audio hal_broadcastradio_client; - -type mtk_hal_power, domain; -allow mtk_hal_power system_data_root_file:file create_file_perms; -allow zygote ashmem_device:chr_file execute; - -attribute hal_mms_server; -binder_call({appdomain -isolated_app}, hal_mms_server) -binder_call(hal_mms_server, {appdomain -isolated_app}) - -type mtk_hal_mms_hwservice, hwservice_manager_type; -allow { appdomain -isolated_app } mtk_hal_mms_hwservice:hwservice_manager find; diff --git a/nehemiah/sepolicy/oppo.te b/nehemiah/sepolicy/oppo.te deleted file mode 100644 index 216ba3c..0000000 --- a/nehemiah/sepolicy/oppo.te +++ /dev/null @@ -1,6 +0,0 @@ -type sysfs_usb_supply, file_type; - -allow system_app sysfs_usb_supply:file rw_file_perms; - -type hal_fingerprint_oplus, domain; -allow hal_fingerprint_oplus vendor_default_prop:property_service set; diff --git a/nehemiah/sepolicy/qualcomm.te b/nehemiah/sepolicy/qualcomm.te deleted file mode 100644 index 2669694..0000000 --- a/nehemiah/sepolicy/qualcomm.te +++ /dev/null @@ -1,30 +0,0 @@ -type bt_firmware_file, file_type; -type rild, domain; - -#me.phh.treble.qti.audio is system-signed -allow system_app hal_telephony_hwservice:hwservice_manager { find }; -allow { rild system_app } { rild system_app }:binder { call transfer }; - -#Pixel 1 -type vnd_qcril_audio_hwservice, hwservice_manager_type; -allow system_app vnd_qcril_audio_hwservice:hwservice_manager { find }; - -#Pixel 2 -type vnd_qcrilhook_hwservice, hwservice_manager_type; -allow system_app vnd_qcrilhook_hwservice:hwservice_manager { find }; - -#OP6 -allow system_app hal_telephony_hwservice:hwservice_manager { find }; - -# cf https://github.com/phhusson/treble_experimentations/issues/131 -# SELinux : avc: denied { add } for interface=android.hardware.tetheroffload.control::IOffloadControl pid=15220 scontext=u:r:ipacm:s0 tcontext=u:object_r:hal_tetheroffload_hwservice:s0 tclass=hwservice_manager permissive=0 -type ipacm, hwservice_manager_type; -allow ipacm hal_tetheroffload_hwservice:hwservice_manager { add }; - -type rpmb_device, file_type; -allow tee rpmb_device:blk_file rw_file_perms; -allowxperm tee rpmb_device:blk_file ioctl { 0xb300-0xbfff }; - -attribute smcinvoke_device_29_0; -type smcinvoke_device, dev_type; -typeattribute smcinvoke_device smcinvoke_device_29_0; diff --git a/nehemiah/sepolicy/samsung.te b/nehemiah/sepolicy/samsung.te deleted file mode 100644 index 63f4edc..0000000 --- a/nehemiah/sepolicy/samsung.te +++ /dev/null @@ -1,4 +0,0 @@ -type boot_prop, property_type; - -set_prop(system_server, boot_prop); - diff --git a/nehemiah/sepolicy/service_contexts b/nehemiah/sepolicy/service_contexts deleted file mode 100644 index 7680633..0000000 --- a/nehemiah/sepolicy/service_contexts +++ /dev/null @@ -1,10 +0,0 @@ -qti.ims.ext u:object_r:radio_service:s0 -# SPRD IMS -ims_ex u:object_r:radio_service:s0 -ims_ut_ex u:object_r:radio_service:s0 -ims_doze_manager u:object_r:radio_service:s0 -irit u:object_r:radio_service:s0 - -# MTK IMS -mwis u:object_r:radio_service:s0 -mtkIms u:object_r:radio_service:s0 diff --git a/nehemiah/sepolicy/su.te b/nehemiah/sepolicy/su.te deleted file mode 100644 index f8829cd..0000000 --- a/nehemiah/sepolicy/su.te +++ /dev/null @@ -1,151 +0,0 @@ -type phhsu_daemon, domain, mlstrustedsubject; -type phhsu_exec, exec_type, file_type; -type phhsu_daemon_tmpfs, file_type; - -typeattribute phhsu_daemon coredomain; -permissive phhsu_daemon; - -tmpfs_domain(phhsu_daemon); -domain_auto_trans(init, phhsu_exec, phhsu_daemon); -file_type_auto_trans(phhsu_daemon, device, phhsu_daemon); - -allow { appdomain shell } phhsu_daemon:unix_stream_socket { connectto write read }; -allow { appdomain shell } phhsu_daemon:sock_file { write read }; -allow { appdomain shell } phhsu_exec:file { getattr read open execute execute_no_trans }; - -create_pty(shell) -allowxperm shell devpts:chr_file ioctl { TCSETSF TCGETS unpriv_tty_ioctls }; -allowxperm { phhsu_daemon untrusted_app untrusted_app_27 } untrusted_app_all_devpts:chr_file ioctl { TCSETSF TCGETS unpriv_tty_ioctls }; - -allow servicemanager phhsu_daemon:dir { search read }; -allow servicemanager phhsu_daemon:file { open read }; -allow servicemanager phhsu_daemon:process { getattr }; -allow servicemanager phhsu_daemon:binder { call transfer }; - -typeattribute phhsu_daemon mlstrustedobject; -typeattribute phhsu_daemon mlstrustedsubject; - -allow shell su_exec:file getattr; -typeattribute su mlstrustedsubject; - -allow phhsu_daemon { system_api_service app_api_service system_server_service }:service_manager find; - -allow system_server phhsu_daemon:fifo_file { read write getattr }; -allow system_server phhsu_daemon:fd use; -allow system_server phhsu_daemon:binder { call transfer }; -allow system_server shell_devpts:chr_file { read write }; - -# Add su to various domains -net_domain(phhsu_daemon) - -hwbinder_use(phhsu_daemon) - -allow domain untrusted_app_all_devpts:chr_file { getattr read write }; -allow phhsu_daemon untrusted_app_all_devpts:chr_file { getattr read write open ioctl }; -allow phhsu_daemon untrusted_app_all:fifo_file { getattr read write open ioctl }; -allow phhsu_daemon zygote_exec:file { execute read open execute_no_trans getattr }; - -allow appdomain phhsu_daemon:dir { search }; - -allow phhsu_daemon self:global_capability_class_set { sys_resource sys_ptrace }; - -allow phhsu_daemon self:dir rw_dir_perms; -allow phhsu_daemon self:file { rwx_file_perms create rename setattr unlink }; -allow phhsu_daemon self:lnk_file { r_file_perms execmod }; - -allow phhsu_daemon adbd_exec:file { getattr read }; -allow phhsu_daemon { rootfs same_process_hal_file system_file tmpfs }:file { mounton getattr }; -allow phhsu_daemon self:capability { sys_admin chown setuid setgid net_raw dac_override dac_read_search kill fowner mknod }; -allow phhsu_daemon self:capability2 { syslog }; -allow phhsu_daemon shell_exec:file rx_file_perms; -allow phhsu_daemon system_file:file { rx_file_perms entrypoint }; -allow phhsu_daemon kmsg_device:chr_file { ioctl w_file_perms }; -allow phhsu_daemon toolbox_exec:file rx_file_perms; -allow phhsu_daemon system_block_device:{ lnk_file file } r_file_perms; - -allow { phhsu_daemon shell } domain:dir rw_dir_perms; -allow { phhsu_daemon shell } domain:file rw_file_perms; -allow { phhsu_daemon shell } domain:lnk_file rw_file_perms; -allow { phhsu_daemon shell } rootfs:file { rwx_file_perms create rename setattr unlink }; -allow { phhsu_daemon shell } rootfs:dir rw_dir_perms; -allow phhsu_daemon asec_apk_file:dir rw_dir_perms; - -allow phhsu_daemon shell_devpts:chr_file rw_file_perms; - -allow phhsu_daemon app_data_file:dir rw_dir_perms; -allow phhsu_daemon app_data_file:file { rwx_file_perms create rename setattr unlink }; -allow phhsu_daemon dalvikcache_data_file:dir rw_dir_perms; -allow phhsu_daemon dalvikcache_data_file:file { rwx_file_perms create rename setattr unlink }; -allow phhsu_daemon dalvikcache_data_file:lnk_file { r_file_perms execmod }; -allow phhsu_daemon system_data_file:file { rwx_file_perms create rename setattr unlink }; -allow phhsu_daemon system_data_file:dir rw_dir_perms; -allow phhsu_daemon system_data_file:file { rwx_file_perms create rename setattr unlink }; -allow phhsu_daemon system_file:dir rw_dir_perms; -allow phhsu_daemon system_file:file { rwx_file_perms create rename setattr unlink }; -allow phhsu_daemon init:unix_stream_socket { connectto }; -allow phhsu_daemon self:process { ptrace setexec execmem setfscreate }; -allow phhsu_daemon app_data_file:file { rwx_file_perms create rename setattr unlink }; -allow phhsu_daemon app_data_file:dir rw_dir_perms; -allow phhsu_daemon ashmem_device:chr_file { execute }; -allow phhsu_daemon dex2oat_exec:file rx_file_perms; - - -allow phhsu_daemon phhsu_daemon_tmpfs:file rwx_file_perms; - -allow phhsu_daemon { proc_type dev_type exec_type file_type sysfs_type fs_type phhsu_daemon }:file { rwx_file_perms create mounton setattr getattr relabelto relabelfrom unlink rename }; -allow phhsu_daemon { proc_type dev_type exec_type file_type sysfs_type fs_type phhsu_daemon }:lnk_file { rw_file_perms create mounton setattr getattr relabelto relabelfrom unlink rename}; -allow phhsu_daemon { proc_type dev_type exec_type file_type sysfs_type fs_type phhsu_daemon }:dir { rw_dir_perms create mounton setattr getattr relabelto relabelfrom unlink rename}; -allow phhsu_daemon { proc_type dev_type exec_type file_type sysfs_type fs_type phhsu_daemon }:chr_file { rwx_file_perms unlink rename ioctl}; -allow phhsu_daemon { proc_type dev_type exec_type file_type sysfs_type fs_type phhsu_daemon }:blk_file { rw_file_perms create unlink rename ioctl}; - -allow phhsu_daemon device:file rwx_file_perms; -allow phhsu_daemon device:dir rw_dir_perms; - -allow phhsu_daemon domain:process { ptrace signal signull getattr }; -allow phhsu_daemon selinuxfs:file rwx_file_perms; -allow domain phhsu_daemon:process { sigchld }; -allow phhsu_daemon domain:binder { call transfer }; -allow phhsu_daemon kernel:system { syslog_read syslog_mod }; -allow phhsu_daemon kernel:security { setenforce compute_av }; -allow phhsu_daemon domain:unix_stream_socket { getattr }; - -allow phhsu_daemon logdr_socket:sock_file write; -allow phhsu_daemon logd:unix_stream_socket connectto; - -allow phhsu_daemon property_type:property_service { set }; -allow phhsu_daemon property_socket:sock_file { write }; -allow phhsu_daemon property_type:file rw_file_perms; -allow phhsu_daemon { hwservicemanager hwservice_manager_type }:hwservice_manager { list add find }; -allow phhsu_daemon domain:unix_dgram_socket rw_socket_perms; - -allow phhsu_daemon tombstoned_intercept_socket:sock_file { write }; -allow phhsu_daemon tombstoned:unix_stream_socket { connectto }; - -allow phhsu_daemon { property_data_file data_file_type tmpfs }:file create_file_perms; -allow phhsu_daemon { property_data_file data_file_type tmpfs }:dir create_dir_perms; - -allow phhsu_daemon { tmpfs fs_type }:filesystem { mount remount unmount associate }; - -allow phhsu_daemon phhsu_daemon:file relabelfrom; - -allow phhsu_daemon properties_device:dir { map }; -allow phhsu_daemon { tmpfs }:dir { mounton }; -allow phhsu_daemon { file_type shell_data_file system_file}:file { relabelto relabelfrom} ; - -allow phhsu_daemon domain:fd { use }; -allow phhsu_daemon domain:unix_stream_socket { connectto ioctl getattr getopt read write shutdown }; -allow phhsu_daemon self:netlink_kobject_uevent_socket create_socket_perms; -allow phhsu_daemon self:{ netlink_tcpdiag_socket } { create_socket_perms nlmsg_write nlmsg_read }; -allow phhsu_daemon self:{ netlink_selinux_socket } { create_socket_perms }; - -allow phhsu_daemon file_type:file create_file_perms; -allow phhsu_daemon file_type:dir create_dir_perms; - -allow phhsu_daemon domain:process { transition }; - - -# 05-09 00:05:30.149 18450 18450 W lprename: type=1400 audit(0.0:40923): avc: denied { ioctl } for path="/dev/block/sda25" dev="tmpfs" ino=19441 ioctlcmd=0x1278 scontext=u:r:phhsu_daemon:s0 tcontext=u:object_r:super_block_device:s0 tclass=blk_file permissive=0 -# 06-06 12:59:53.775 30150 30150 I auditd : type=1400 audit(0.0:35585): avc: denied { ioctl } for comm="blockdev" path="/dev/block/dm-3" dev="tmpfs" ino=12687 ioctlcmd=0x125d scontext=u:r:phhsu_daemon:s0 tcontext=u:object_r:dm_device:s0 tclass=blk_file permissive=0 - -allowxperm phhsu_daemon { file_type block_device }:blk_file ioctl { 0-0xffff }; -allowxperm phhsu_daemon { system_block_device super_block_device dm_device }:blk_file ioctl { 0x1278-0x127a 0x125d }; diff --git a/nehemiah/sepolicy/treble_app.te b/nehemiah/sepolicy/treble_app.te deleted file mode 100644 index 6bb46a8..0000000 --- a/nehemiah/sepolicy/treble_app.te +++ /dev/null @@ -1,44 +0,0 @@ -allow system_app hal_wifi_hostapd_hwservice:hwservice_manager { add find }; -allow system_app hidl_base_hwservice:hwservice_manager { add }; -allow system_app wifi_data_file:dir create_dir_perms; -allow system_app wifi_data_file:file create_file_perms; - -allow system_app sysfs_batteryinfo:file rw_file_perms; - -type vendor_camera_prop, property_type; -set_prop(system_app, vendor_camera_prop); -type camera_prop, property_type; -set_prop(system_app, camera_prop); - -type hal_ext_fingerprint_hwservice, hwservice_manager_type; -allow system_app hal_ext_fingerprint_hwservice:hwservice_manager { find }; -type hal_fingerprint_default, domain; -allow system_app hal_fingerprint_default:binder { call }; -allow system_app sysfs_power:dir r_dir_perms; -allow system_app sysfs_power:file rw_file_perms; -allow system_app sysfs_power:lnk_file read; - -type default_hisi_hwservice, hwservice_manager_type; -allow system_app default_hisi_hwservice:hwservice_manager { find }; - -type hal_tp_default, domain; -allow system_app hal_tp_default:binder { call }; - -#cam2api -allow system_app vendor_default_prop:property_service { set }; - -set_prop(system_app, default_prop); -set_prop(system_app, exported3_default_prop); - -type mtk_hal_rild_hwservice, hwservice_manager_type; -allow system_app mtk_hal_rild_hwservice:hwservice_manager { find}; - -type mtk_vilte_support_prop, property_type; -allow system_app mtk_vilte_support_prop:property_service set; - -type hal_gesturewake_hwservice, hwservice_manager_type; -type hal_gesturewake_default, domain; -allow system_app hal_gesturewake_hwservice:hwservice_manager { find }; -allow system_app hal_gesturewake_default:binder { call transfer }; -allow hal_gesturewake_default system_app:binder { call transfer }; - diff --git a/nehemiah/sepolicy/vndk_detect.te b/nehemiah/sepolicy/vndk_detect.te deleted file mode 100644 index 797094a..0000000 --- a/nehemiah/sepolicy/vndk_detect.te +++ /dev/null @@ -1,27 +0,0 @@ -type vndk_detect, coredomain, domain; -type vndk_detect_exec, exec_type, file_type; - -init_daemon_domain(vndk_detect); -allow vndk_detect sepolicy_file:file r_file_perms; -set_prop(vndk_detect,system_prop); -set_prop(vndk_detect,debug_prop); - -allow vndk_detect shell_exec:file rx_file_perms; -allow vndk_detect toolbox_exec:file rx_file_perms; -#/system/bin/grep -allow vndk_detect system_file:file rx_file_perms; - -#mount -o bind /system/bin/adbd /sbin/adbd -allow vndk_detect adbd_exec:file { getattr read }; -allow vndk_detect rootfs:file { mounton getattr }; -allow vndk_detect self:capability { sys_admin }; - -#mount -o bind /system/etc/usb_audio_policy_configuration.xml /vendor/etc/usb_audio_policy_configuration.xml -allow init vendor_configs_file:file { getattr mounton }; - -#/sys/module/five -allow vndk_detect sysfs:file r_file_perms; -allow vndk_detect sysfs:dir r_dir_perms; - -#/proc/filesystems -allow vndk_detect proc_filesystems:file r_file_perms; diff --git a/nehemiah/sepolicy/vold.te b/nehemiah/sepolicy/vold.te deleted file mode 100644 index 7cbd585..0000000 --- a/nehemiah/sepolicy/vold.te +++ /dev/null @@ -1,2 +0,0 @@ -allow vold system_data_file:lnk_file { unlink }; -allow mediaextractor sdcard_type:file read; diff --git a/nehemiah/system.prop b/nehemiah/system.prop deleted file mode 100644 index 152efc8..0000000 --- a/nehemiah/system.prop +++ /dev/null @@ -1,4 +0,0 @@ -persist.bluetooth.bluetooth_audio_hal.disabled=true -persist.sys.bt.unsupport.features=00000000 -persist.sys.bt.unsupport.states=00000000 -persist.sys.bt.unsupport.stdfeatures=000001 \ No newline at end of file