From 837c9f37e576c28176b8aa9448156ca6c4b24d87 Mon Sep 17 00:00:00 2001 From: Davide Garberi Date: Mon, 27 Nov 2023 20:55:15 +0100 Subject: [PATCH] pipa: rootdir: Use US for WiFi country code * Considering that the only two versions of this device are `GLOBAL` and `CN`, and that the former already sets `US` as countrycode regardless of anything, set it for the `CN` version as well, since this version of the device is mostly used and imported all over the world. Change-Id: Iaf6b0c1ae202425c0c83d2eb51ce5cec651d6876 --- device.mk | 4 ++++ rootdir/Android.bp | 13 +++++++++++++ rootdir/etc/init.device.rc | 9 +++++++++ 3 files changed, 26 insertions(+) create mode 100644 rootdir/Android.bp create mode 100644 rootdir/etc/init.device.rc 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