mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-21 11:55:31 -04:00
universal7885: Import debugging script
* https://github.com/SamarV-121/android_vendor_extra/blob/android-12.0/prebuilt/init/debugging.rc
This commit is contained in:
parent
f5cec63d36
commit
af95ebdf2b
9 changed files with 46 additions and 4 deletions
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
|
||||||
|
universal7885-common/vendor_name
|
||||||
|
a20e/AndroidProducts.mk
|
||||||
|
a20/AndroidProducts.mk
|
||||||
|
|
||||||
2
a20e/AndroidProducts.mk
Normal file
2
a20e/AndroidProducts.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
# Auto-Generated by device/samsung/a20e/setup.sh
|
||||||
|
PRODUCT_MAKEFILES += $(LOCAL_DIR)/aosp_a20e.mk
|
||||||
|
|
@ -65,8 +65,8 @@
|
||||||
<name>IDrmFactory</name>
|
<name>IDrmFactory</name>
|
||||||
<instance>default</instance>
|
<instance>default</instance>
|
||||||
</interface>
|
</interface>
|
||||||
<fqname>@1.2::ICryptoFactory/widevine</fqname>
|
<fqname>@1.3::ICryptoFactory/widevine</fqname>
|
||||||
<fqname>@1.2::IDrmFactory/widevine</fqname>
|
<fqname>@1.3::IDrmFactory/widevine</fqname>
|
||||||
</hal>
|
</hal>
|
||||||
<hal format="hidl">
|
<hal format="hidl">
|
||||||
<name>android.hardware.gatekeeper</name>
|
<name>android.hardware.gatekeeper</name>
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,6 @@
|
||||||
<item>"/system_ext/priv-app/SystemUI/SystemUI.apk"</item>
|
<item>"/system_ext/priv-app/SystemUI/SystemUI.apk"</item>
|
||||||
<item>"/system/bin/surfaceflinger"</item>
|
<item>"/system/bin/surfaceflinger"</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
<bool name="config_pinnerCameraApp">true</bool>
|
|
||||||
<string name="config_radio_access_family">GSM|CDMA|EVDO|WCDMA|LTE</string>
|
<string name="config_radio_access_family">GSM|CDMA|EVDO|WCDMA|LTE</string>
|
||||||
<integer name="config_fingerprintMaxTemplatesPerUser">4</integer>
|
<integer name="config_fingerprintMaxTemplatesPerUser">4</integer>
|
||||||
<integer-array name="config_longPressVibePattern">
|
<integer-array name="config_longPressVibePattern">
|
||||||
|
|
|
||||||
|
|
@ -40,3 +40,11 @@ LOCAL_MODULE_CLASS := ETC
|
||||||
LOCAL_SRC_FILES := etc/$(LOCAL_MODULE)
|
LOCAL_SRC_FILES := etc/$(LOCAL_MODULE)
|
||||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init
|
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init
|
||||||
include $(BUILD_PREBUILT)
|
include $(BUILD_PREBUILT)
|
||||||
|
|
||||||
|
include $(CLEAR_VARS)
|
||||||
|
LOCAL_MODULE := debug.rc
|
||||||
|
LOCAL_MODULE_TAGS := optional
|
||||||
|
LOCAL_MODUE_CLASS := ETC
|
||||||
|
LOCAL_SRC_FILES := etc/$(LOCAL_MODULE)
|
||||||
|
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init
|
||||||
|
include $(BUILD_PREBUILT)
|
||||||
|
|
|
||||||
17
universal7885-common/rootdir/etc/debug.rc
Normal file
17
universal7885-common/rootdir/etc/debug.rc
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
on property:sys.boot_completed=1
|
||||||
|
stop kerneld
|
||||||
|
stop logd
|
||||||
|
|
||||||
|
on post-fs-data
|
||||||
|
rm /data/kmsg.txt
|
||||||
|
rm /data/misc/logd/logcat.txt
|
||||||
|
|
||||||
|
service kerneld /system/bin/sh -c "cat /proc/kmsg > /data/kmsg.txt"
|
||||||
|
class main
|
||||||
|
user root
|
||||||
|
group system
|
||||||
|
|
||||||
|
service logcatd /system/bin/logcat -f /data/misc/logd/logcat.txt -v threadtime
|
||||||
|
class main
|
||||||
|
user root
|
||||||
|
group system
|
||||||
|
|
@ -1 +1 @@
|
||||||
allow hal_keymaster_default prov_efs_file r_file_perms;
|
allow hal_keymaster_default prov_efs_file:file r_file_perms;
|
||||||
|
|
|
||||||
|
|
@ -270,3 +270,13 @@ PRODUCT_COPY_FILES += \
|
||||||
$(LOCAL_PATH)/configs/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf
|
$(LOCAL_PATH)/configs/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf
|
||||||
|
|
||||||
PRODUCT_CFI_INCLUDE_PATHS += hardware/samsung_slsi/scsc_wifibt/wpa_supplicant_lib
|
PRODUCT_CFI_INCLUDE_PATHS += hardware/samsung_slsi/scsc_wifibt/wpa_supplicant_lib
|
||||||
|
|
||||||
|
# SamsungParts
|
||||||
|
PRODUCT_PACKAGES += \
|
||||||
|
SamsungParts \
|
||||||
|
android.software.samsungparts@1.0-service
|
||||||
|
|
||||||
|
# Debug
|
||||||
|
ifeq ($(TARGET_BUILD_VARIENT),eng)
|
||||||
|
PRODUCT_PACKAGES += debug.rc
|
||||||
|
endif
|
||||||
|
|
|
||||||
1
universal7885-common/vendor_name
Normal file
1
universal7885-common/vendor_name
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
aosp
|
||||||
Loading…
Reference in a new issue