Initial commit

This commit is contained in:
Pierre-Hugues Husson 2017-12-17 17:46:37 +01:00
commit 1cbdf550d8
9 changed files with 63 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.*.swp

2
AndroidProducts.mk Normal file
View File

@ -0,0 +1,2 @@
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/treble_arm64_ag.mk

13
base.mk Normal file
View File

@ -0,0 +1,13 @@
#Huawei devices don't declare fingerprint hardware feature
#TODO: Proper detection
PRODUCT_COPY_FILES := \
frameworks/native/data/etc/android.hardware.fingerprint.xml:system/etc/permissions/android.hardware.fingerprint.xml
#Use a more decent APN config
PRODUCT_COPY_FILES := \
device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml
BOARD_PLAT_PRIVATE_SEPOLICY_DIR += device/phh/treble/sepolicy
DEVICE_PACKAGE_OVERLAYS += device/phh/treble/overlay
$(call inherit-product, vendor/hardware_overlay/overlay.mk)

12
gapps.mk Normal file
View File

@ -0,0 +1,12 @@
GAPPS_VARIANT := nano
GAPPS_FORCE_PACKAGE_OVERRIDES := true
PRODUCT_PACKAGES += \
Chrome \
CalculatorGoogle \
PrebuiltDeskClockGoogle \
CalendarGooglePrebuilt \
GoogleHome \
LatinImeGoogle \
phh-overrides
$(call inherit-product, vendor/opengapps/build/opengapps-packages.mk)

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string-array translatable="false" name="config_tether_usb_regexs">
<item>"usb\\d"</item>
<item>"rndis\\d"</item>
</string-array>
<string-array translatable="false" name="config_tether_wifi_regexs">
<item>"wlan0"</item>
<item>"softap.*"</item>
</string-array>
<string-array translatable="false" name="config_tether_bluetooth_regexs">
<item>"bt-pan"</item>
</string-array>
</resources>

View File

@ -0,0 +1 @@
allow priv_app overlay_service:service_manager find;

2
sepolicy/init.te Normal file
View File

@ -0,0 +1,2 @@
#This is in Android 8.0, but not 8.1
domain_trans(init, rootfs, adbd)

1
system.prop Normal file
View File

@ -0,0 +1 @@
ro.adb.secure=0

15
treble_arm64_ag.mk Normal file
View File

@ -0,0 +1,15 @@
include build/make/target/product/treble_common.mk
#Need to be called first to be able to override later rules,
#but after treble_common which would override PRODUCT_PACKAGES
$(call inherit-product, device/phh/treble/base.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk)
$(call inherit-product, vendor/hardware_overlay/overlay.mk)
$(call inherit-product, device/phh/treble/gapps.mk)
PRODUCT_NAME := treble_arm64_ag
PRODUCT_DEVICE := generic_arm64_a
PRODUCT_BRAND := Android
PRODUCT_MODEL := Phh-Treble