diff options
| author | Zips <hcolmenares@gmail.com> | 2017-11-06 22:13:49 -0500 |
|---|---|---|
| committer | Zips <hcolmenares@gmail.com> | 2017-11-09 22:49:24 -0500 |
| commit | 186f2805f23d2e77ce026cd332c7f4628f021efe (patch) | |
| tree | b87085dba44bedf3e5d35f6d4e3110a009cab4ed | |
| parent | 321865d88ab2188959a872b974f7a7f14e9109bd (diff) | |
deb: init oreo
1.- Initial port to Oreo
2.- Fix Maintainers
3.- Added manifest
4.- Correct Path to Inherity AICP's stuff
5.- Fix Wifi
6.- Added Wifi on Boot
7.- Fix dependencies
Change-Id: Ib15e08bfa72e00168614dad8b2fe0018fe280d7f
| -rw-r--r-- | BoardConfig.mk | 2 | ||||
| -rw-r--r-- | aicp.dependencies | 15 | ||||
| -rw-r--r-- | aicp.mk | 32 | ||||
| -rw-r--r-- | device.mk | 8 | ||||
| -rw-r--r-- | init.deb.rc | 15 | ||||
| -rw-r--r-- | manifest.xml | 75 | ||||
| -rw-r--r-- | overlay/frameworks/base/core/res/res/values/config.xml | 28 | ||||
| -rw-r--r-- | overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml | 2 | ||||
| -rw-r--r-- | overlay/packages/services/Telephony/res/values/strings.xml | 38 | ||||
| -rw-r--r-- | sepolicy/audioserver.te | 6 |
10 files changed, 131 insertions, 90 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk index 7033fe9..92b4d1b 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -18,6 +18,8 @@ TARGET_BOOTLOADER_BOARD_NAME := deb TARGET_BOOTLOADER_NAME := deb TARGET_BOARD_INFO_FILE := device/asus/deb/board-info.txt +DEVICE_MANIFEST_FILE := device/asus/deb/manifest.xml + BOARD_HAL_STATIC_LIBRARIES := libdumpstate.deb TARGET_RELEASETOOLS_EXTENSIONS := device/asus/deb diff --git a/aicp.dependencies b/aicp.dependencies index ea3d1f1..beeec26 100644 --- a/aicp.dependencies +++ b/aicp.dependencies @@ -1,22 +1,17 @@ [ { - "repository": "AICP/device_asus_flo", + "repository": "LineageOS/android_device_asus_flo", "target_path": "device/asus/flo", - "branch": "n7.1-cm" + "branch": "lineage-15.0" }, { "repository": "LineageOS/android_kernel_google_msm", "target_path": "kernel/google/msm", - "branch": "cm-14.1" + "branch": "lineage-15.0" }, { - "repository": "AICP/proprietary_vendor_asus", + "repository": "Flex1911/proprietary_vendor_asus", "target_path": "vendor/asus", - "branch": "n7.1-cm" - }, - { - "repository": "LineageOS/android_external_stlport", - "target_path": "external/stlport", - "branch": "cm-14.1" + "branch": "lineage-15.0" } ] @@ -0,0 +1,32 @@ +# Release name +PRODUCT_RELEASE_NAME := deb + +# Inherit some AICP stuff. +$(call inherit-product, vendor/aicp/config/common_full_phone.mk) + +# Inherit device configuration +$(call inherit-product, device/asus/deb/full_deb.mk) + +## Device identifier. This must come after all inclusions +PRODUCT_DEVICE := deb +PRODUCT_NAME := aicp_deb +PRODUCT_BRAND := Google +PRODUCT_MODEL := Nexus 7 2013 LTE +PRODUCT_MANUFACTURER := Asus + +PRODUCT_RESTRICT_VENDOR_FILES := false + +#Set build fingerprint / ID / Product Name ect. +PRODUCT_BUILD_PROP_OVERRIDES += \ + PRODUCT_NAME=razorg \ + BUILD_FINGERPRINT=google/razorg/deb:6.0.1/MOB30X/3036618:user/release-keys \ + PRIVATE_BUILD_DESC="razorg-user 6.0.1 MOB30X 3036618 release-keys" + +# AICP Device Maintainers +PRODUCT_BUILD_PROP_OVERRIDES += \ + DEVICE_MAINTAINERS="HC (Zips)" + +# Boot animation +TARGET_SCREEN_HEIGHT := 1920 +TARGET_SCREEN_WIDTH := 1080 +-include vendor/aicp/configs/bootanimation.mk @@ -28,7 +28,11 @@ PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml PRODUCT_PACKAGES += \ - camera.deb + camera.msm8960 + +PRODUCT_PACKAGES += \ + android.hardware.radio@1.0-impl \ + android.hardware.radio.deprecated@1.0-impl #NFC PRODUCT_PACKAGES += \ @@ -41,8 +45,6 @@ PRODUCT_PROPERTY_OVERRIDES += \ PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ rild.libpath=/system/lib/libril-qc-qmi-1.so -PRODUCT_PACKAGES += \ - hostapd_default.conf # the actual meat of the device-specific product definition $(call inherit-product, device/asus/flo/device-common.mk) diff --git a/init.deb.rc b/init.deb.rc index 3ac5980..e561523 100644 --- a/init.deb.rc +++ b/init.deb.rc @@ -124,6 +124,8 @@ on boot write /proc/sys/net/core/rmem_max 2097152 write /proc/sys/net/core/wmem_max 2097152 + chown wifi wifi /sys/module/wlan/parameters/fwpath + # msm specific files that need to be created on /data on post-fs-data chown system system /dev/wcnss_wlan @@ -274,14 +276,17 @@ service sensors /system/bin/sensors.qcom user root group root -service wpa_supplicant /system/bin/wpa_supplicant \ +service wpa_supplicant /vendor/bin/hw/wpa_supplicant \ + -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \ + -I/system/etc/wifi/p2p_supplicant_overlay.conf -N \ -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \ -I/system/etc/wifi/wpa_supplicant_overlay.conf \ + -puse_p2p_group_interface=1 \ -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0 - # we will start as root and wpa_supplicant will switch to user wifi - # after setting up the capabilities required for WEXT - # user wifi - # group wifi inet keystore +# we will start as root and wpa_supplicant will switch to user wifi +# after setting up the capabilities required for WEXT +# user wifi +# group wifi inet keystore class main socket wpa_wlan0 dgram 660 wifi wifi disabled diff --git a/manifest.xml b/manifest.xml new file mode 100644 index 0000000..8068c45 --- /dev/null +++ b/manifest.xml @@ -0,0 +1,75 @@ +<manifest version="1.0" type="device"> + <hal format="hidl"> + <name>android.hardware.graphics.allocator</name> + <transport arch="32">passthrough</transport> + <version>2.0</version> + <interface> + <name>IAllocator</name> + <instance>default</instance> + </interface> + </hal> + <hal format="hidl"> + <name>android.hardware.wifi</name> + <transport>hwbinder</transport> + <version>1.0</version> + <interface> + <name>IWifi</name> + <instance>default</instance> + </interface> + </hal> + <hal format="hidl"> + <name>android.hardware.wifi.supplicant</name> + <transport>hwbinder</transport> + <version>1.0</version> + <interface> + <name>ISupplicant</name> + <instance>default</instance> + </interface> + </hal> + <hal format="hidl"> + <name>android.hardware.nfc</name> + <transport>hwbinder</transport> + <version>1.0</version> + <interface> + <name>INfc</name> + <instance>default</instance> + </interface> + </hal> + <hal format="hidl"> + <name>android.hardware.drm</name> + <transport>hwbinder</transport> + <version>1.0</version> + <interface> + <name>ICryptoFactory</name> + <instance>widevine</instance> + <instance>default</instance> + </interface> + <interface> + <name>IDrmFactory</name> + <instance>widevine</instance> + <instance>default</instance> + </interface> + </hal> + <hal format="hidl"> + <name>android.hardware.radio</name> + <transport>hwbinder</transport> + <version>1.0</version> + <interface> + <name>IRadio</name> + <instance>slot1</instance> + </interface> + <interface> + <name>ISap</name> + <instance>slot1</instance> + </interface> + </hal> + <hal format="hidl"> + <name>android.hardware.radio.deprecated</name> + <transport>hwbinder</transport> + <version>1.0</version> + <interface> + <name>IOemHook</name> + <instance>slot1</instance> + </interface> + </hal> +</manifest> diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index b99ffee..b8b1442 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -277,34 +277,6 @@ format is UMTS|LTE|... --> <string translatable="false" name="config_radio_access_family">GSM | WCDMA | LTE</string> - <!-- Hardware keys present on the device, stored as a bit field. - This integer should equal the sum of the corresponding value for each - of the following keys present: - 1 - Home - 2 - Back - 4 - Menu - 8 - Assistant (search) - 16 - App switch - 32 - Camera - 64 - Volume rocker - For example, a device with Home, Back and Menu keys would set this - config to 7. --> - <integer name="config_deviceHardwareKeys">64</integer> - - <!-- Hardware keys present on the device with the ability to wake, stored as a bit field. - This integer should equal the sum of the corresponding value for each - of the following keys present: - 1 - Home - 2 - Back - 4 - Menu - 8 - Assistant (search) - 16 - App switch - 32 - Camera - 64 - Volume rocker - For example, a device with Home, Back and Menu keys would set this - config to 7. --> - <integer name="config_deviceHardwareWakeKeys">64</integer> - <!-- enable doze powersaving mode --> <bool name="config_enableAutoPowerModes">true</bool> diff --git a/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml b/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml index 1e615ef..8b6fe33 100644 --- a/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml +++ b/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml @@ -17,6 +17,8 @@ */ --> <resources> + <!-- Turn on Wifi On Boot --> + <bool name="def_wifi_on">true</bool> <!-- 30 seconds for default screen timeout --> <integer name="def_screen_off_timeout">30000</integer> <!-- Set the automatic brightness mode on by default --> diff --git a/overlay/packages/services/Telephony/res/values/strings.xml b/overlay/packages/services/Telephony/res/values/strings.xml deleted file mode 100644 index 36ded54..0000000 --- a/overlay/packages/services/Telephony/res/values/strings.xml +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2007 The Android Open Source Project - - 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. ---> - -<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - - <string-array name="enabled_networks_choices" translatable="false"> - <item>@string/preferred_network_mode_gsm_only_choice</item> - <item>@string/preferred_network_mode_gsm_wcdma_auto_choice</item> - <item>@string/preferred_network_mode_gsm_wcdma_preferred_choice</item> - <item>@string/preferred_network_mode_wcdma_only_choice</item> - <item>@string/preferred_network_mode_gsm_wcdma_lte_choice</item> - <item>@string/preferred_network_mode_lte_wcdma_choice</item> - <item>@string/preferred_network_mode_lte_choice</item> - </string-array> - - <string-array name="enabled_networks_values" translatable="false"> - <item>"1"</item> - <item>"3"</item> - <item>"0"</item> - <item>"2"</item> - <item>"9"</item> - <item>"12"</item> - <item>"11"</item> - </string-array> -</resources>
\ No newline at end of file diff --git a/sepolicy/audioserver.te b/sepolicy/audioserver.te deleted file mode 100644 index ad17e68..0000000 --- a/sepolicy/audioserver.te +++ /dev/null @@ -1,6 +0,0 @@ -# Audioserver - -allow audioserver self:socket { create ioctl read }; -allow audioserver qmuxd_socket:dir { add_name write search }; -allow audioserver qmuxd_socket:sock_file { create write setattr }; -allow audioserver qmux:unix_stream_socket connectto; |
