pa: Set global AOSPA props for all devices

The props will be set in /system/build.prop, which is ideal for GSI
builds.

Change-Id: I2957f10b39187651ef022700a75080909aefbc23
Signed-off-by: Josh Choo <dev@joshchoo.com>
This commit is contained in:
Josh Choo 2018-12-04 13:12:59 +00:00 committed by TheStrix
parent 3a461f81da
commit ef5f514a98
2 changed files with 46 additions and 33 deletions

33
main.mk
View File

@ -14,39 +14,9 @@
export VENDOR := pa
# Include versioning information
# Format: AndroidVersion.Major.Maintenance (-TAG)
export PA_VERSION := PA1-DEV
export ROM_VERSION := $(PA_VERSION)-$(shell date -u +%Y%m%d)
PRODUCT_PROPERTY_OVERRIDES += \
ro.modversion=$(ROM_VERSION) \
ro.pa.version=$(PA_VERSION)
# Override undesired Google defaults
PRODUCT_PROPERTY_OVERRIDES += \
keyguard.no_require_sim=true \
ro.com.android.dateformat=MM-dd-yyyy \
ro.com.android.wifi-watchlist=GoogleGuest \
ro.com.google.clientidbase=android-google \
ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html \
ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html \
ro.setupwizard.require_network=any \
ro.setupwizard.mode=OPTIONAL \
ro.opa.eligible_device=true
# Override old AOSP default sounds with newer Google stock ones
PRODUCT_PROPERTY_OVERRIDES += \
ro.config.alarm_alert=Osmium.ogg \
ro.config.notification_sound=Ariel.ogg \
ro.config.ringtone=Titania.ogg
# Enable SIP+VoIP
PRODUCT_COPY_FILES += frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml
# Don't Hide APNs
PRODUCT_PROPERTY_OVERRIDES += persist.sys.hideapn=false
# Include vendor overlays
PRODUCT_PACKAGE_OVERLAYS += vendor/pa/overlay/common
@ -56,9 +26,6 @@ USE_DEX2OAT_DEBUG := false
# Include APN information
PRODUCT_COPY_FILES += vendor/pa/prebuilt/etc/apns-conf.xml:system/etc/apns-conf.xml
# Allow tethering without provisioning app
PRODUCT_PROPERTY_OVERRIDES += net.tethering.noprovisioning=true
# Include support for preconfigured permissions
PRODUCT_COPY_FILES += vendor/pa/prebuilt/etc/default-permissions/pa-permissions.xml:system/etc/default-permissions/pa-permissions.xml

46
props.mk Normal file
View File

@ -0,0 +1,46 @@
# Copyright (C) 2013-2017 Paranoid Android
#
# 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.
# Include versioning information
# Format: AndroidVersion.Major.Maintenance (-TAG)
export PA_VERSION := PA1-DEV
export ROM_VERSION := $(PA_VERSION)-$(shell date -u +%Y%m%d)
ADDITIONAL_BUILD_PROPERTIES += \
ro.modversion=$(ROM_VERSION) \
ro.pa.version=$(PA_VERSION)
# Override undesired Google defaults
ADDITIONAL_BUILD_PROPERTIES += \
keyguard.no_require_sim=true \
ro.com.android.dateformat=MM-dd-yyyy \
ro.com.android.wifi-watchlist=GoogleGuest \
ro.com.google.clientidbase=android-google \
ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html \
ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html \
ro.setupwizard.require_network=any \
ro.setupwizard.mode=OPTIONAL \
ro.opa.eligible_device=true
# Override old AOSP default sounds with newer Google stock ones
ADDITIONAL_BUILD_PROPERTIES += \
ro.config.alarm_alert=Osmium.ogg \
ro.config.notification_sound=Ariel.ogg \
ro.config.ringtone=Titania.ogg
# Don't Hide APNs
ADDITIONAL_BUILD_PROPERTIES += persist.sys.hideapn=false
# Allow tethering without provisioning app
ADDITIONAL_BUILD_PROPERTIES += net.tethering.noprovisioning=true