aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-09-07 17:18:37 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-09-07 17:18:37 +0200
commitdd72725fd2a245391accdb7f7b4c1c199b186c8c (patch)
tree127bf2945724ac2a7181ac2c1cc3933be15e47cb
parent7e9f9be4480d27c04b46f6a694aa47617b470814 (diff)
downloaddevice_samsung_i9300-dd72725fd2a245391accdb7f7b4c1c199b186c8c.tar.gz
device_samsung_i9300-dd72725fd2a245391accdb7f7b4c1c199b186c8c.tar.bz2
device_samsung_i9300-dd72725fd2a245391accdb7f7b4c1c199b186c8c.zip
Revert "i9300: move init.smdk4x12*.rc files to common repo"
This reverts commit 7e9f9be4480d27c04b46f6a694aa47617b470814.
-rw-r--r--device.mk2
-rw-r--r--fstab.smdk4x1223
-rw-r--r--init.smdk4x12.rc81
3 files changed, 106 insertions, 0 deletions
diff --git a/device.mk b/device.mk
index 954e497..01a46c3 100644
--- a/device.mk
+++ b/device.mk
@@ -29,6 +29,8 @@ PRODUCT_PACKAGES += \
srs-test \
PRODUCT_COPY_FILES += \
+ $(LOCAL_PATH)/fstab.smdk4x12:root/fstab.smdk4x12 \
+ $(LOCAL_PATH)/init.smdk4x12.rc:root/init.smdk4x12.rc \
$(LOCAL_PATH)/ueventd.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \
frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/native/data/etc/android.software.app_widgets.xml:system/etc/permissions/android.software.app_widgets.xml \
diff --git a/fstab.smdk4x12 b/fstab.smdk4x12
new file mode 100644
index 0000000..1f55a4f
--- /dev/null
+++ b/fstab.smdk4x12
@@ -0,0 +1,23 @@
+#
+# Copyright 2018 Joonas Kylmälä
+#
+# 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.
+#
+
+/dev/block/platform/soc/12550000.mmc/by-name/SYSTEM / ext4 ro,noatime wait
+/dev/block/platform/soc/12550000.mmc/by-name/USERDATA /data ext4 rw,noatime wait
+/dev/block/platform/soc/12550000.mmc/by-name/EFS /efs ext4 rw,noatime wait
+
+# Recovery
+/dev/block/platform/soc/12550000.mmc/by-name/BOOT /boot emmc defaults recoveryonly
+/dev/block/platform/soc/12550000.mmc/by-name/RECOVERY /recovery emmc defaults recoveryonly
diff --git a/init.smdk4x12.rc b/init.smdk4x12.rc
new file mode 100644
index 0000000..74d597d
--- /dev/null
+++ b/init.smdk4x12.rc
@@ -0,0 +1,81 @@
+#
+# Copyright 2018 Joonas Kylmälä
+#
+# 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.
+#
+
+on boot
+ # Audio support
+ setprop ro.hardware.audio.primary exynos4
+ # adb support
+ mkdir /dev/usb-ffs 0770 shell shell
+ mkdir /dev/usb-ffs/adb 0770 shell shell
+ mount functionfs adb /dev/usb-ffs/adb uid=2000,gid=2000
+ setprop sys.usb.configfs 1
+ setprop sys.usb.controller 12480000.hsotg
+ # Hack to make sure to get adbd at boot
+ start adbd
+
+on fs
+ mount_all /fstab.smdk4x12
+
+on early-boot
+ mount debugfs debugfs /sys/kernel/debug
+ chmod 777 /dev/binder
+ chmod 777 /dev/hwbinder
+ chmod 777 /dev/vndbinder
+ chmod 777 /dev/ion # used by OMX / libstagefright
+ chmod 755 /sys/kernel/debug
+ chmod 755 /sys/kernel/debug/sync
+
+ # Graphics
+ chown graphics graphics /sys/kernel/debug/sync/sw_sync
+ chmod 777 /sys/kernel/debug/sync/sw_sync
+ chmod 777 /dev/dri/card0
+ chmod 777 /dev/dri/renderD128
+ chmod 777 /dev/dri/renderD129
+ chmod 777 /dev/graphics/fb0
+ chmod 777 /sys/class/backlight/panel/brightness
+ chown graphics graphics /sys/kernel/debug/sync/info
+
+ #########
+ # Modem #
+ #########
+ # HSIC bus reset (required for modem boot)
+ chown radio radio /sys/devices/platform/soc/12580000.ehci/ehci_power
+ # Modem power management GPIOs between the SOC and the modem
+ chown radio radio /sys/devices/platform/xmm6262/hostwake
+ chown radio radio /sys/devices/platform/xmm6262/link_active
+ chown radio radio /sys/devices/platform/xmm6262/modem_power
+ chown radio radio /sys/devices/platform/xmm6262/pda_active
+ chown radio radio /sys/devices/platform/xmm6262/slavewake
+ # Modem firmware (RADIO Android partition)
+ chown radio radio /dev/block/mmcblk2p7
+ # Modem devices nodes
+ chown radio radio /dev/umts_csd
+ chown radio radio /dev/umts_ipc
+ chown radio radio /dev/umts_loopback
+ chown radio radio /dev/umts_rfs
+ chown radio radio /dev/umts_router
+
+on post-fs-data
+ setprop vold.post_fs_data_done 1
+ start resize2fs_partitions
+ # RIL: Enable TelephonyManager to access /proc/cmdline
+ # This is probably needed to access the IMEI
+ chmod 777 /proc/cmdline
+
+service resize2fs_partitions /system/bin/resize2fs_partitions.sh
+ class main
+ oneshot
+ disabled