diff --git a/device.mk b/device.mk index fb930a7..766fe60 100644 --- a/device.mk +++ b/device.mk @@ -38,6 +38,10 @@ DEVICE_PACKAGE_OVERLAYS += \ PRODUCT_COPY_FILES += \ frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml +# Rootdir +PRODUCT_PACKAGES += \ + init.device.rc + # Shipping API level PRODUCT_SHIPPING_API_LEVEL := 30 diff --git a/rootdir/Android.bp b/rootdir/Android.bp new file mode 100644 index 0000000..4cd229d --- /dev/null +++ b/rootdir/Android.bp @@ -0,0 +1,13 @@ +// +// Copyright (C) 2023 The LineageOS Project +// +// SPDX-License-Identifier: Apache-2.0 +// + +// Init configuration files +prebuilt_etc { + name: "init.device.rc", + src: "etc/init.device.rc", + sub_dir: "init/hw", + vendor: true, +} diff --git a/rootdir/etc/init.device.rc b/rootdir/etc/init.device.rc new file mode 100644 index 0000000..f65e323 --- /dev/null +++ b/rootdir/etc/init.device.rc @@ -0,0 +1,9 @@ +# +# Copyright (C) 2023 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +on boot + # WiFi country code + setprop ro.boot.wificountrycode US