universal8895: add script to read /efs/factory.prop
authorJan Altensen <info@stricted.net>
Wed, 23 Sep 2020 22:53:38 +0000 (00:53 +0200)
committerAnan Jaser <ananjaser@gmail.com>
Thu, 24 Sep 2020 05:16:18 +0000 (09:16 +0400)
 * in R its no longer possible to use `import /efs/factory.prop`

Change-Id: I81ccf500ca0cf21f9be9af13db48affd5bec8ee8

BoardConfigCommon.mk
device-common.mk
ramdisk/etc/init.samsungexynos8895.rc
ramdisk/etc/ril_config.sh [new file with mode: 0644]
system.prop [deleted file]

index b56c7edf7dfaeefbc9a5edd73265d593e420009d..7660add10004fadd0491d2e5853a589ddc38db2c 100644 (file)
@@ -100,9 +100,6 @@ TARGET_EXCLUDES_AUDIOFX := true
 # Vendor separation
 TARGET_COPY_OUT_VENDOR := system/vendor
 
-# Properties
-TARGET_SYSTEM_PROP := $(LOCAL_PATH)/system.prop
-
 # Device Tree
 BOARD_USES_DT := true
 
index fb070c9d0adb5261d14cda334bd950ac616bc0a3..2db845a59a947300c69f01e9a2ab0e624c60b9d8 100644 (file)
@@ -241,6 +241,9 @@ PRODUCT_PACKAGES += \
     android.hardware.radio@1.4 \
     libxml2
 
+PRODUCT_COPY_FILES += \
+    $(LOCAL_PATH)/ramdisk/etc/ril_config.sh:$(TARGET_COPY_OUT_VENDOR)/etc/ril_config.sh
+
 # SamsungDoze
 PRODUCT_PACKAGES += \
     SamsungDoze
index 379c63be8e23ec61f64380805808f14a77f02f42..e3bfffecfdcb479764866318fcc7b8e2770d57bd 100644 (file)
@@ -875,6 +875,15 @@ on fs
 # ARGOSD network_throughput
     chown system system /dev/network_throughput
 
+    start ril_config
+
+service ril_config /vendor/bin/sh /vendor/etc/ril_config.sh
+    class main
+    user radio
+    oneshot
+    disabled
+
+
 # ARGOSD
 service argos-daemon /vendor/bin/argosd
     class main
diff --git a/ramdisk/etc/ril_config.sh b/ramdisk/etc/ril_config.sh
new file mode 100644 (file)
index 0000000..062d6aa
--- /dev/null
@@ -0,0 +1,6 @@
+#!/vendor/bin/sh
+
+cat /efs/factory.prop | while read line
+do
+    setprop `echo $line | sed 's/=/ /'`
+done
diff --git a/system.prop b/system.prop
deleted file mode 100644 (file)
index 6ed94d7..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-# read DS/SS property
-import /efs/factory.prop