zenfone7: Welcome to familly
diff --git a/Android.mk b/Android.mk
index 4ad8367..a163bd3 100755
--- a/Android.mk
+++ b/Android.mk
@@ -27,7 +27,7 @@
LOCAL_PATH := $(call my-dir)
-ifeq ($(TARGET_DEVICE),rog3)
+ifeq ($(TARGET_DEVICE),zenfone7)
subdir_makefiles=$(call first-makefiles-under,$(LOCAL_PATH))
$(foreach mk,$(subdir_makefiles),$(info including $(mk) ...)$(eval include $(mk)))
endif
diff --git a/AndroidProducts.mk b/AndroidProducts.mk
index 1c6e24f..21a2abd 100755
--- a/AndroidProducts.mk
+++ b/AndroidProducts.mk
@@ -1,9 +1,9 @@
PRODUCT_MAKEFILES := \
- $(LOCAL_DIR)/omni_rog3.mk
+ $(LOCAL_DIR)/omni_zenfone7.mk
COMMON_LUNCH_CHOICES := \
- omni_rog3-user \
- omni_rog3-userdebug \
- omni_rog3-eng
+ omni_zenfone7-user \
+ omni_zenfone7-userdebug \
+ omni_zenfone7-eng
\ No newline at end of file
diff --git a/BoardConfig.mk b/BoardConfig.mk
index bf798a6..33393d7 100755
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -22,16 +22,22 @@
# Inherit from asus sm8250-common
-include device/asus/sm8250-common/BoardConfigCommon.mk
-DEVICE_PATH := device/asus/rog3
+DEVICE_PATH := device/asus/zenfone7
# Bluetooth
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth
+# Extra Folders
+BOARD_ROOT_EXTRA_FOLDERS += motor_fw1 motor_fw2
+
# Kernel
-TARGET_KERNEL_CONFIG := vendor/rog3_defconfig
+TARGET_KERNEL_CONFIG := vendor/zf7_defconfig
# Properties
TARGET_SYSTEM_PROP += $(DEVICE_PATH)/system.prop
+# Sepolicy
+BOARD_PLAT_PRIVATE_SEPOLICY_DIR += $(DEVICE_PATH)/sepolicy/private
+
# inherit from the proprietary version
--include vendor/asus/rog3/BoardConfigVendor.mk
+-include vendor/asus/zenfone7/BoardConfigVendor.mk
diff --git a/audio/audio_policy_configuration_ZS661KS.xml b/audio/audio_policy_configuration_ZS670KS.xml
similarity index 98%
rename from audio/audio_policy_configuration_ZS661KS.xml
rename to audio/audio_policy_configuration_ZS670KS.xml
index d8da94e..d513f4e 100644
--- a/audio/audio_policy_configuration_ZS661KS.xml
+++ b/audio/audio_policy_configuration_ZS670KS.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<!-- Copyright (c) 2016-2019, The Linux Foundation. All rights reserved
+<!-- Copyright (c) 2016-2020, The Linux Foundation. All rights reserved
Not a Contribution.
-->
<!-- Copyright (C) 2015 The Android Open Source Project
@@ -426,15 +426,15 @@
</module>
<!-- Remote Submix Audio HAL -->
- <xi:include href="/vendor/etc/r_submix_audio_policy_configuration_ZS661KS.xml"/>
+ <xi:include href="/vendor/etc/r_submix_audio_policy_configuration_ZS670KS.xml"/>
</modules>
<!-- End of Modules section -->
<!-- Volume section -->
- <xi:include href="/vendor/etc/audio_policy_volumes_ZS661KS.xml"/>
- <xi:include href="/vendor/etc/default_volume_tables_ZS661KS.xml"/>
+ <xi:include href="/vendor/etc/audio_policy_volumes_ZS670KS.xml"/>
+ <xi:include href="/vendor/etc/default_volume_tables_ZS670KS.xml"/>
<!-- End of Volume section -->
diff --git a/audio/audio_policy_volumes_ZS661KS.xml b/audio/audio_policy_volumes_ZS661KS.xml
deleted file mode 100644
index 0a1f0ed..0000000
--- a/audio/audio_policy_volumes_ZS661KS.xml
+++ /dev/null
@@ -1,481 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- Copyright (C) 2015 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.
--->
-<!-- Volume section defines a volume curve for a given use case and device category.
-It contains a list of points of this curve expressing the attenuation in Millibels for a given
-volume index from 0 to 100.
-<volume stream=”AUDIO_STREAM_MUSIC” deviceCategory=””>
-<point>0,-9600</point>
-<point>100,0</point>
-</volume>
--->
-
-<volumes>
- <volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_HEADSET">
- <point>0,-4900</point>
- <point>33,-3200</point>
- <point>66,-1400</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_SPEAKER">
- <point>0,-2400</point>
- <point>33,-1600</point>
- <point>66,-800</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_EARPIECE">
- <point>0,-2400</point>
- <point>33,-1600</point>
- <point>66,-800</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_BLUETOOTH">
- <point>0,-4200</point>
- <point>33,-2800</point>
- <point>66,-1400</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_BLUETOOTH_ABSOLUTE">
- <point>0,-4200</point>
- <point>33,-2800</point>
- <point>66,-1400</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_USB_HEADSET">
- <point>0,-4200</point>
- <point>33,-2800</point>
- <point>66,-1400</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_ACCY_EU">
- <point>0,-4200</point>
- <point>33,-2800</point>
- <point>66,-1400</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
- ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
- ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_HEADSET">
- <point>1,-4200</point>
- <point>33,-3400</point>
- <point>66,-2600</point>
- <point>100,-1800</point>
- </volume>
- <volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_SPEAKER">
- <point>1,-3900</point>
- <point>33,-3100</point>
- <point>66,-2300</point>
- <point>100,-1500</point>
- </volume>
- <volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_EARPIECE"
- ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_BLUETOOTH">
- <point>1,-4950</point>
- <point>33,-3350</point>
- <point>66,-1700</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_BLUETOOTH_ABSOLUTE">
- <point>1,-4950</point>
- <point>33,-3350</point>
- <point>66,-1700</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_USB_HEADSET">
- <point>1,-4800</point>
- <point>33,-4000</point>
- <point>66,-3200</point>
- <point>100,-2400</point>
- </volume>
- <volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_ACCY_EU">
- <point>1,-4800</point>
- <point>33,-4000</point>
- <point>66,-3200</point>
- <point>100,-2400</point>
- </volume>
- <volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
- ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
- ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_HEADSET">
- <point>1,-4950</point>
- <point>33,-3350</point>
- <point>66,-1700</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_SPEAKER">
- <point>1,-3900</point>
- <point>33,-2600</point>
- <point>66,-1300</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_EARPIECE"
- ref="DEFAULT_DEVICE_CATEGORY_EARPIECE_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_BLUETOOTH">
- <point>1,-4950</point>
- <point>33,-3350</point>
- <point>66,-1700</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_BLUETOOTH_ABSOLUTE">
- <point>1,-4950</point>
- <point>33,-3350</point>
- <point>66,-1700</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_USB_HEADSET">
- <point>1,-4950</point>
- <point>33,-3350</point>
- <point>66,-1700</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_ACCY_EU">
- <point>1,-4950</point>
- <point>33,-3350</point>
- <point>66,-1700</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
- ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
- ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_HEADSET">
- <point>1,-6750</point>
- <point>33,-4500</point>
- <point>66,-2250</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_SPEAKER"
- ref="DEFAULT_DEVICE_CATEGORY_SPEAKER_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_EARPIECE">
- <point>1,-2700</point>
- <point>33,-1800</point>
- <point>66,-900</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_BLUETOOTH">
- <point>1,-5900</point>
- <point>33,-4000</point>
- <point>66,-2000</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_BLUETOOTH_ABSOLUTE">
- <point>1,-4500</point>
- <point>33,-2500</point>
- <point>66,-1000</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_USB_HEADSET">
- <point>1,-7400</point>
- <point>33,-5000</point>
- <point>66,-2500</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_ACCY_EU">
- <point>1,-7305</point>
- <point>33,-5155</point>
- <point>66,-2930</point>
- <point>100,-730</point>
- </volume>
- <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
- ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
- ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_HEADSET">
- <point>1,-4950</point>
- <point>33,-3350</point>
- <point>66,-1700</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_SPEAKER">
- <point>1,-3600</point>
- <point>33,-2400</point>
- <point>66,-1200</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_EARPIECE"
- ref="DEFAULT_NON_MUTABLE_EARPIECE_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_BLUETOOTH">
- <point>1,-4950</point>
- <point>33,-3350</point>
- <point>66,-1700</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_BLUETOOTH_ABSOLUTE">
- <point>1,-4950</point>
- <point>33,-3350</point>
- <point>66,-1700</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_USB_HEADSET">
- <point>1,-4950</point>
- <point>33,-3350</point>
- <point>66,-1700</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_ACCY_EU">
- <point>1,-4950</point>
- <point>33,-3350</point>
- <point>66,-1700</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
- ref="DEFAULT_NON_MUTABLE_EXT_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
- ref="DEFAULT_NON_MUTABLE_HEARING_AID_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_HEADSET">
- <point>1,-5400</point>
- <point>33,-4200</point>
- <point>66,-3000</point>
- <point>100,-1800</point>
- </volume>
- <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_SPEAKER">
- <point>1,-3900</point>
- <point>33,-2900</point>
- <point>66,-1900</point>
- <point>100,-900</point>
- </volume>
- <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_EARPIECE"
- ref="DEFAULT_DEVICE_CATEGORY_EARPIECE_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_BLUETOOTH">
- <point>1,-4950</point>
- <point>33,-3350</point>
- <point>66,-1700</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_BLUETOOTH_ABSOLUTE">
- <point>1,-4950</point>
- <point>33,-3350</point>
- <point>66,-1700</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_USB_HEADSET">
- <point>1,-6000</point>
- <point>33,-4800</point>
- <point>66,-3600</point>
- <point>100,-2400</point>
- </volume>
- <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_ACCY_EU">
- <point>1,-6000</point>
- <point>33,-4800</point>
- <point>66,-3600</point>
- <point>100,-2400</point>
- </volume>
- <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
- ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
- ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_HEADSET">
- <point>0,-4200</point>
- <point>33,-2800</point>
- <point>66,-1400</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_SPEAKER">
- <point>0,-2400</point>
- <point>33,-1600</point>
- <point>66,-800</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_EARPIECE">
- <point>0,-4200</point>
- <point>33,-2800</point>
- <point>66,-1400</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_BLUETOOTH">
- <point>0,-4200</point>
- <point>33,-2800</point>
- <point>66,-1400</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_BLUETOOTH_ABSOLUTE">
- <point>0,-4200</point>
- <point>33,-2800</point>
- <point>66,-1400</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_USB_HEADSET">
- <point>0,-4200</point>
- <point>33,-2800</point>
- <point>66,-1400</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_ACCY_EU">
- <point>0,-4200</point>
- <point>33,-2800</point>
- <point>66,-1400</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
- ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
- ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_HEADSET">
- <point>1,-3000</point>
- <point>33,-2600</point>
- <point>66,-2200</point>
- <point>100,-1800</point>
- </volume>
- <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_SPEAKER"
- ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_EARPIECE"
- ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_BLUETOOTH">
- <point>1,-3000</point>
- <point>33,-2600</point>
- <point>66,-2200</point>
- <point>100,-1800</point>
- </volume>
- <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_BLUETOOTH_ABSOLUTE">
- <point>1,-3000</point>
- <point>33,-2600</point>
- <point>66,-2200</point>
- <point>100,-1800</point>
- </volume>
- <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_USB_HEADSET">
- <point>1,-3000</point>
- <point>33,-2600</point>
- <point>66,-2200</point>
- <point>100,-1800</point>
- </volume>
- <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_ACCY_EU">
- <point>1,-3000</point>
- <point>33,-2600</point>
- <point>66,-2200</point>
- <point>100,-1800</point>
- </volume>
- <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
- ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
- ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_HEADSET">
- <point>1,-4200</point>
- <point>33,-3600</point>
- <point>66,-3000</point>
- <point>100,-2400</point>
- </volume>
- <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_SPEAKER">
- <point>1,-4900</point>
- <point>33,-4100</point>
- <point>66,-3300</point>
- <point>100,-2500</point>
- </volume>
- <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_EARPIECE"
- ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_BLUETOOTH">
- <point>1,-4950</point>
- <point>33,-3350</point>
- <point>66,-1700</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_BLUETOOTH_ABSOLUTE">
- <point>1,-4950</point>
- <point>33,-3350</point>
- <point>66,-1700</point>
- <point>100,0</point>
- </volume>
- <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_USB_HEADSET">
- <point>1,-4800</point>
- <point>33,-4200</point>
- <point>66,-3600</point>
- <point>100,-3000</point>
- </volume>
- <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_ACCY_EU">
- <point>1,-4800</point>
- <point>33,-4200</point>
- <point>66,-3600</point>
- <point>100,-3000</point>
- </volume>
- <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
- ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
- ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_HEADSET"
- ref="SILENT_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_SPEAKER"
- ref="FULL_SCALE_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_EARPIECE"
- ref="SILENT_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_BLUETOOTH"
- ref="SILENT_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_BLUETOOTH_ABSOLUTE"
- ref="SILENT_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_USB_HEADSET"
- ref="SILENT_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_ACCY_EU"
- ref="SILENT_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
- ref="SILENT_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
- ref="SILENT_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_HEADSET"
- ref="DEFAULT_NON_MUTABLE_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_SPEAKER"
- ref="DEFAULT_NON_MUTABLE_SPEAKER_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_EARPIECE"
- ref="DEFAULT_NON_MUTABLE_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_BLUETOOTH"
- ref="DEFAULT_NON_MUTABLE_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_BLUETOOTH_ABSOLUTE"
- ref="DEFAULT_NON_MUTABLE_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_USB_HEADSET"
- ref="DEFAULT_NON_MUTABLE_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_ACCY_EU"
- ref="DEFAULT_NON_MUTABLE_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
- ref="DEFAULT_NON_MUTABLE_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
- ref="DEFAULT_NON_MUTABLE_HEARING_AID_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_HEADSET"
- ref="FULL_SCALE_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_SPEAKER"
- ref="FULL_SCALE_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_EARPIECE"
- ref="FULL_SCALE_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_BLUETOOTH"
- ref="FULL_SCALE_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_BLUETOOTH_ABSOLUTE"
- ref="FULL_SCALE_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_USB_HEADSET"
- ref="FULL_SCALE_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_ACCY_EU"
- ref="FULL_SCALE_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
- ref="FULL_SCALE_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
- ref="FULL_SCALE_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_HEADSET"
- ref="FULL_SCALE_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_SPEAKER"
- ref="FULL_SCALE_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_EARPIECE"
- ref="FULL_SCALE_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_BLUETOOTH"
- ref="FULL_SCALE_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_BLUETOOTH_ABSOLUTE"
- ref="FULL_SCALE_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_USB_HEADSET"
- ref="FULL_SCALE_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_ACCY_EU"
- ref="FULL_SCALE_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
- ref="FULL_SCALE_VOLUME_CURVE"/>
- <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
- ref="FULL_SCALE_VOLUME_CURVE"/>
-</volumes>
-
diff --git a/audio/audio_policy_volumes_ZS670KS.xml b/audio/audio_policy_volumes_ZS670KS.xml
new file mode 100644
index 0000000..89294c4
--- /dev/null
+++ b/audio/audio_policy_volumes_ZS670KS.xml
@@ -0,0 +1,239 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2015 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.
+-->
+<!-- Volume section defines a volume curve for a given use case and device category.
+It contains a list of points of this curve expressing the attenuation in Millibels for a given
+volume index from 0 to 100.
+<volume stream=”AUDIO_STREAM_MUSIC” deviceCategory=””>
+<point>0,-9600</point>
+<point>100,0</point>
+</volume>
+-->
+
+<volumes>
+ <volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_HEADSET">
+ <point>0,-4200</point>
+ <point>33,-2800</point>
+ <point>66,-1400</point>
+ <point>100,0</point>
+ </volume>
+ <volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_SPEAKER">
+ <point>0,-3600</point>
+ <point>33,-2400</point>
+ <point>66,-1200</point>
+ <point>100,0</point>
+ </volume>
+ <volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_EARPIECE">
+ <point>0,-2700</point>
+ <point>33,-1800</point>
+ <point>66,-900</point>
+ <point>100,0</point>
+ </volume>
+ <volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
+ ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
+ ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_HEADSET">
+ <point>1,-4200</point>
+ <point>33,-3400</point>
+ <point>66,-2600</point>
+ <point>100,-1800</point>
+ </volume>
+ <volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_SPEAKER">
+ <point>1,-4000</point>
+ <point>33,-3100</point>
+ <point>66,-2200</point>
+ <point>100,-1300</point>
+ </volume>
+ <volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_EARPIECE"
+ ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
+ ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
+ ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_HEADSET">
+ <point>1,-5400</point>
+ <point>33,-4200</point>
+ <point>66,-3000</point>
+ <point>100,-1800</point>
+ </volume>
+ <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_SPEAKER">
+ <point>1,-4800</point>
+ <point>33,-3300</point>
+ <point>66,-1800</point>
+ <point>100,-300</point>
+ </volume>
+ <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_EARPIECE"
+ ref="DEFAULT_DEVICE_CATEGORY_EARPIECE_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
+ ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
+ ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_HEADSET">
+ <point>1,-6750</point>
+ <point>33,-4500</point>
+ <point>66,-2250</point>
+ <point>100,0</point>
+ </volume>
+ <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_SPEAKER"
+ ref="DEFAULT_DEVICE_CATEGORY_SPEAKER_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_EARPIECE">
+ <point>1,-2700</point>
+ <point>33,-1800</point>
+ <point>66,-900</point>
+ <point>100,0</point>
+ </volume>
+ <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
+ ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
+ ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_HEADSET">
+ <point>1,-6000</point>
+ <point>33,-4800</point>
+ <point>66,-3600</point>
+ <point>100,-2400</point>
+ </volume>
+ <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_HEADSET_nonEU">
+ <point>1,-5400</point>
+ <point>33,-4200</point>
+ <point>66,-3000</point>
+ <point>100,-1800</point>
+ </volume>
+ <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_SPEAKER">
+ <point>1,-4500</point>
+ <point>33,-3000</point>
+ <point>66,-1500</point>
+ <point>100,0</point>
+ </volume>
+ <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_EARPIECE"
+ ref="DEFAULT_NON_MUTABLE_EARPIECE_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
+ ref="DEFAULT_NON_MUTABLE_EXT_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
+ ref="DEFAULT_NON_MUTABLE_HEARING_AID_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_HEADSET">
+ <point>1,-5400</point>
+ <point>33,-4200</point>
+ <point>66,-3000</point>
+ <point>100,-1800</point>
+ </volume>
+ <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_SPEAKER">
+ <point>1,-4500</point>
+ <point>33,-3400</point>
+ <point>66,-2300</point>
+ <point>100,-1200</point>
+ </volume>
+ <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_EARPIECE"
+ ref="DEFAULT_DEVICE_CATEGORY_EARPIECE_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
+ ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
+ ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_HEADSET">
+ <point>0,-4200</point>
+ <point>33,-2800</point>
+ <point>66,-1400</point>
+ <point>100,0</point>
+ </volume>
+ <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_SPEAKER">
+ <point>0,-2400</point>
+ <point>33,-1600</point>
+ <point>66,-800</point>
+ <point>100,0</point>
+ </volume>
+ <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_EARPIECE">
+ <point>0,-4200</point>
+ <point>33,-2800</point>
+ <point>66,-1400</point>
+ <point>100,0</point>
+ </volume>
+ <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
+ ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
+ ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_HEADSET">
+ <point>1,-3000</point>
+ <point>33,-2600</point>
+ <point>66,-2200</point>
+ <point>100,-1800</point>
+ </volume>
+ <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_SPEAKER"
+ ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_EARPIECE"
+ ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
+ ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
+ ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_HEADSET">
+ <point>1,-4800</point>
+ <point>33,-4000</point>
+ <point>66,-3200</point>
+ <point>100,-2400</point>
+ </volume>
+ <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_SPEAKER">
+ <point>1,-5000</point>
+ <point>33,-4200</point>
+ <point>66,-3400</point>
+ <point>100,-2600</point>
+ </volume>
+ <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_EARPIECE"
+ ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
+ ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
+ ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_HEADSET"
+ ref="SILENT_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_SPEAKER"
+ ref="FULL_SCALE_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_EARPIECE"
+ ref="SILENT_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
+ ref="SILENT_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
+ ref="SILENT_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_HEADSET"
+ ref="DEFAULT_NON_MUTABLE_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_SPEAKER"
+ ref="DEFAULT_NON_MUTABLE_SPEAKER_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_EARPIECE"
+ ref="DEFAULT_NON_MUTABLE_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
+ ref="DEFAULT_NON_MUTABLE_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
+ ref="DEFAULT_NON_MUTABLE_HEARING_AID_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_HEADSET"
+ ref="FULL_SCALE_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_SPEAKER"
+ ref="FULL_SCALE_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_EARPIECE"
+ ref="FULL_SCALE_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
+ ref="FULL_SCALE_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
+ ref="FULL_SCALE_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_HEADSET"
+ ref="FULL_SCALE_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_SPEAKER"
+ ref="FULL_SCALE_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_EARPIECE"
+ ref="FULL_SCALE_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
+ ref="FULL_SCALE_VOLUME_CURVE"/>
+ <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
+ ref="FULL_SCALE_VOLUME_CURVE"/>
+</volumes>
+
diff --git a/bluetooth/bdroid_buildcfg.h b/bluetooth/bdroid_buildcfg.h
index 17fcb60..26e881b 100644
--- a/bluetooth/bdroid_buildcfg.h
+++ b/bluetooth/bdroid_buildcfg.h
@@ -21,7 +21,7 @@
#ifndef _BDROID_BUILDCFG_H
#define _BDROID_BUILDCFG_H
-#define BTM_DEF_LOCAL_NAME "ROG Phone 3"
+#define BTM_DEF_LOCAL_NAME "Zenfone 7"
// Disables read remote device feature
#define MAX_ACL_CONNECTIONS 16
#define MAX_L2CAP_CHANNELS 16
diff --git a/device.mk b/device.mk
index 8d0ad99..ca91004 100755
--- a/device.mk
+++ b/device.mk
@@ -32,27 +32,31 @@
# audio
PRODUCT_COPY_FILES += \
- $(LOCAL_PATH)/audio/audio_policy_configuration_ZS661KS.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/audio/audio_policy_configuration.xml \
- $(LOCAL_PATH)/audio/audio_policy_configuration_ZS661KS.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/audio_policy_configuration.xml \
- $(LOCAL_PATH)/audio/audio_policy_volumes_ZS661KS.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/audio_policy_volumes_ZS661KS.xml
+ $(LOCAL_PATH)/audio/audio_policy_configuration_ZS670KS.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/audio/audio_policy_configuration.xml \
+ $(LOCAL_PATH)/audio/audio_policy_configuration_ZS670KS.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/audio_policy_configuration.xml \
+ $(LOCAL_PATH)/audio/audio_policy_volumes_ZS670KS.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/audio_policy_volumes_ZS670KS.xml
# Input
PRODUCT_COPY_FILES += \
- $(LOCAL_PATH)/idc/goodix_ts.idc:system/usr/idc/goodix_ts.idc \
- $(LOCAL_PATH)/idc/goodix_ts_station.idc:system/usr/idc/goodix_ts_station.idc \
- $(LOCAL_PATH)/idc/eGalaxTouch_EXC3200.idc:system/usr/idc/eGalaxTouch_EXC3200.idc \
- $(LOCAL_PATH)/keychars/goodix_ts.kcm:system/usr/keychars/goodix_ts.kcm \
- $(LOCAL_PATH)/keylayout/goodix_ts.kl:system/usr/keylayout/goodix_ts.kl \
+ $(LOCAL_PATH)/idc/fts_ts.idc:system/usr/idc/fts_ts.idc \
+ $(LOCAL_PATH)/keychars/fts_ts.kcm:system/usr/keychars/fts_ts.kcm \
+ $(LOCAL_PATH)/keylayout/fts_ts.kl:system/usr/keylayout/fts_ts.kl \
+ $(LOCAL_PATH)/keylayout/Generic_zf7.kl:system/usr/keylayout/Generic_zf7.kl \
+ $(LOCAL_PATH)/keylayout/goodixfp.kl:system/usr/keylayout/goodixfp.kl \
$(LOCAL_PATH)/keylayout/i-rocks_Bluetooth_Keyboard.kl:system/usr/keylayout/i-rocks_Bluetooth_Keyboard.kl
# Prebuilt
PRODUCT_COPY_FILES += \
- $(call find-copy-subdir-files,*,device/asus/rog3/prebuilt/system,system) \
- $(call find-copy-subdir-files,*,device/asus/rog3/prebuilt/root,root)
+ $(call find-copy-subdir-files,*,device/asus/zenfone7/prebuilt/system,system) \
+ $(call find-copy-subdir-files,*,device/asus/zenfone7/prebuilt/root,recovery/root)
PRODUCT_AAPT_CONFIG := normal
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
+# Ramdisk
+PRODUCT_COPY_FILES += \
+ $(LOCAL_PATH)/fstab.qcom:$(TARGET_COPY_OUT_RAMDISK)/fstab.qcom
+
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += \
$(LOCAL_PATH)
@@ -61,4 +65,4 @@
$(call inherit-product, device/asus/sm8250-common/common.mk)
# Inherit from vendor blobs
-$(call inherit-product, vendor/asus/rog3/rog3-vendor.mk)
\ No newline at end of file
+$(call inherit-product, vendor/asus/zenfone7/zenfone7-vendor.mk)
\ No newline at end of file
diff --git a/extract-files.sh b/extract-files.sh
index 242b524..9dd14df 100755
--- a/extract-files.sh
+++ b/extract-files.sh
@@ -19,7 +19,7 @@
set -e
# Required!
-export DEVICE=rog3
+export DEVICE=zenfone7
export DEVICE_COMMON=sm8250-common
export VENDOR=asus
diff --git a/fstab.qcom b/fstab.qcom
new file mode 100755
index 0000000..5258830
--- /dev/null
+++ b/fstab.qcom
@@ -0,0 +1,55 @@
+# Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted (subject to the limitations in the
+# disclaimer below) provided that the following conditions are met:
+#
+# * Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# * Redistributions in binary form must reproduce the above
+# copyright notice, this list of conditions and the following
+# disclaimer in the documentation and/or other materials provided
+# with the distribution.
+#
+# * Neither the name of The Linux Foundation nor the names of its
+# contributors may be used to endorse or promote products derived
+# from this software without specific prior written permission.
+#
+# NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE
+# GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
+# HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
+# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+# Android fstab file.
+# The filesystem that contains the filesystem checker binary (typically /system) cannot
+# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
+
+#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
+system /system ext4 ro,barrier=1,discard wait,slotselect,avb=vbmeta_system,logical,first_stage_mount,avb_keys=/avb/q-gsi.avbpubkey:/avb/r-gsi.avbpubkey:/avb/s-gsi.avbpubkey
+product /product ext4 ro,barrier=1,discard wait,slotselect,avb=vbmeta_system,logical,first_stage_mount
+vendor /vendor ext4 ro,barrier=1,discard wait,slotselect,avb,logical,first_stage_mount
+odm /odm ext4 ro,barrier=1,discard wait,slotselect,avb,logical,first_stage_mount
+/dev/block/by-name/metadata /metadata ext4 noatime,nosuid,nodev,discard wait,formattable,wrappedkey,first_stage_mount
+/dev/block/bootdevice/by-name/userdata /data f2fs noatime,nosuid,nodev,discard,reserve_root=32768,resgid=1065,fsync_mode=nobarrier latemount,wait,check,formattable,fileencryption=ice,wrappedkey,keydirectory=/metadata/vold/metadata_encryption,quota,reservedsize=128M,sysfs_path=/sys/devices/platform/soc/1d84000.ufshc,checkpoint=fs
+/dev/block/bootdevice/by-name/persist /mnt/vendor/persist ext4 noatime,nosuid,nodev,barrier=1 wait
+/dev/block/bootdevice/by-name/misc /misc emmc defaults defaults
+/devices/platform/soc/8804000.sdhci/mmc_host* /storage/sdcard1 vfat nosuid,nodev wait,voldmanaged=sdcard1:auto
+/devices/platform/soc/1da4000.ufshc_card/host* /storage/sdcard1 vfat nosuid,nodev wait,voldmanaged=sdcard1:auto,encryptable=footer
+/devices/platform/soc/*.ssusb/*.dwc3/xhci-hcd.*.auto* /storage/usbotg vfat nosuid,nodev wait,voldmanaged=usbotg:auto
+/dev/block/bootdevice/by-name/spunvm /mnt/vendor/spunvm vfat rw,noatime,shortname=lower,uid=1000,gid=1000,dmask=007,fmask=007,context=u:object_r:spunvm_file:s0 wait
+/dev/block/bootdevice/by-name/modem /vendor/firmware_mnt vfat ro,shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait,slotselect
+/dev/block/bootdevice/by-name/dsp /vendor/dsp ext4 ro,nosuid,nodev,barrier=1 wait,slotselect
+/dev/block/bootdevice/by-name/bluetooth /vendor/bt_firmware vfat ro,shortname=lower,uid=1002,gid=3002,dmask=227,fmask=337,context=u:object_r:bt_firmware_file:s0 wait,slotselect
+
+/dev/block/bootdevice/by-name/asusfw /mnt/vendor/asusfw ext4 rw,nosuid,noatime,nodev,barrier=1,noauto_da_alloc wait,slotselect
+/dev/block/bootdevice/by-name/xrom /xrom ext4 ro,nosuid,noatime,nodev,barrier=1,noauto_da_alloc wait,slotselect
diff --git a/idc/eGalaxTouch_EXC3200.idc b/idc/eGalaxTouch_EXC3200.idc
deleted file mode 100644
index e303fb9..0000000
--- a/idc/eGalaxTouch_EXC3200.idc
+++ /dev/null
@@ -1,30 +0,0 @@
-# Copyright (C) 2010 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.
-
-#
-# Input Device Calibration File for the EETI touch screen.
-#
-# These calibration values are derived from empirical measurements
-# and may not be appropriate for use with other touch screens.
-# Refer to the input device calibration documentation for more details.
-#
-
-# Basic Parameters
-device.internal = 0
-touch.deviceType = touchScreen
-touch.orientationAware = 1
-touch.wake = 1
-
-# Size
-touch.size.calibration = diameter
diff --git a/idc/goodix_ts.idc b/idc/fts_ts.idc
similarity index 100%
rename from idc/goodix_ts.idc
rename to idc/fts_ts.idc
diff --git a/idc/goodix_ts_station.idc b/idc/goodix_ts_station.idc
deleted file mode 100644
index 75676f2..0000000
--- a/idc/goodix_ts_station.idc
+++ /dev/null
@@ -1,4 +0,0 @@
-device.internal = 0
-touch.deviceType = touchScreen
-touch.orientationAware = 1
-touch.wake = 0
diff --git a/keychars/goodix_ts.kcm b/keychars/fts_ts.kcm
similarity index 100%
rename from keychars/goodix_ts.kcm
rename to keychars/fts_ts.kcm
diff --git a/keylayout/Generic_zf7.kl b/keylayout/Generic_zf7.kl
new file mode 100644
index 0000000..cbedeb1
--- /dev/null
+++ b/keylayout/Generic_zf7.kl
@@ -0,0 +1,443 @@
+# Copyright (C) 2010 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.
+
+#
+# Generic key layout file for full alphabetic US English PC style external keyboards.
+#
+# This file is intentionally very generic and is intended to support a broad range of keyboards.
+# Do not edit the generic key layout to support a specific keyboard; instead, create
+# a new key layout file with the required keyboard configuration.
+#
+
+key 1 ESCAPE
+key 2 1
+key 3 2
+key 4 3
+key 5 4
+key 6 5
+key 7 6
+key 8 7
+key 9 8
+key 10 9
+key 11 0
+key 12 MINUS
+key 13 EQUALS
+key 14 DEL
+key 15 TAB
+key 16 Q
+key 17 W
+key 18 E
+key 19 R
+key 20 T
+key 21 Y
+key 22 U
+key 23 I
+key 24 O
+key 25 P
+key 26 LEFT_BRACKET
+key 27 RIGHT_BRACKET
+key 28 ENTER
+key 29 CTRL_LEFT
+key 30 A
+key 31 S
+key 32 D
+key 33 F
+key 34 G
+key 35 H
+key 36 J
+key 37 K
+key 38 L
+key 39 SEMICOLON
+key 40 APOSTROPHE
+key 41 GRAVE
+key 42 SHIFT_LEFT
+key 43 BACKSLASH
+key 44 Z
+key 45 X
+key 46 C
+key 47 V
+key 48 B
+key 49 N
+key 50 M
+key 51 COMMA
+key 52 PERIOD
+key 53 SLASH
+key 54 SHIFT_RIGHT
+key 55 NUMPAD_MULTIPLY
+key 56 ALT_LEFT
+key 57 SPACE
+key 58 CAPS_LOCK
+key 59 F1
+key 60 F2
+key 61 F3
+key 62 F4
+key 63 F5
+key 64 F6
+key 65 F7
+key 66 F8
+key 67 F9
+key 68 F10
+key 69 NUM_LOCK
+key 70 SCROLL_LOCK
+key 71 NUMPAD_7
+key 72 NUMPAD_8
+key 73 NUMPAD_9
+key 74 NUMPAD_SUBTRACT
+key 75 NUMPAD_4
+key 76 NUMPAD_5
+key 77 NUMPAD_6
+key 78 NUMPAD_ADD
+key 79 NUMPAD_1
+key 80 NUMPAD_2
+key 81 NUMPAD_3
+key 82 NUMPAD_0
+key 83 NUMPAD_DOT
+# key 84 (undefined)
+key 85 ZENKAKU_HANKAKU
+key 86 BACKSLASH
+key 87 F11
+key 88 F12
+key 89 RO
+# key 90 "KEY_KATAKANA"
+# key 91 "KEY_HIRAGANA"
+key 92 HENKAN
+key 93 KATAKANA_HIRAGANA
+key 94 MUHENKAN
+key 95 NUMPAD_COMMA
+key 96 NUMPAD_ENTER
+key 97 CTRL_RIGHT
+key 98 NUMPAD_DIVIDE
+key 99 SYSRQ
+key 100 ALT_RIGHT
+# key 101 "KEY_LINEFEED"
+key 102 MOVE_HOME
+key 103 DPAD_UP
+key 104 PAGE_UP
+key 105 DPAD_LEFT
+key 106 DPAD_RIGHT
+key 107 MOVE_END
+key 108 DPAD_DOWN
+key 109 PAGE_DOWN
+key 110 INSERT
+key 111 FORWARD_DEL
+# key 112 "KEY_MACRO"
+key 113 VOLUME_MUTE
+key 114 VOLUME_DOWN
+key 115 VOLUME_UP
+key 116 ASUS_GOOGLE_ASSISTANT
+key 117 NUMPAD_EQUALS
+# key 118 "KEY_KPPLUSMINUS"
+key 119 BREAK
+# key 120 (undefined)
+key 121 NUMPAD_COMMA
+key 122 KANA
+key 123 EISU
+key 124 YEN
+key 125 META_LEFT
+key 126 META_RIGHT
+key 127 MENU
+key 128 MEDIA_STOP
+# key 129 "KEY_AGAIN"
+# key 130 "KEY_PROPS"
+# key 131 "KEY_UNDO"
+# key 132 "KEY_FRONT"
+key 133 COPY
+# key 134 "KEY_OPEN"
+key 135 PASTE
+# key 136 "KEY_FIND"
+key 137 CUT
+# key 138 "KEY_HELP"
+key 139 MENU
+key 140 CALCULATOR
+# key 141 "KEY_SETUP"
+key 142 SLEEP
+key 143 WAKEUP
+# key 144 "KEY_FILE"
+# key 145 "KEY_SENDFILE"
+# key 146 "KEY_DELETEFILE"
+# key 147 "KEY_XFER"
+# key 148 "KEY_PROG1"
+# key 149 "KEY_PROG2"
+key 150 EXPLORER
+# key 151 "KEY_MSDOS"
+key 152 POWER
+# key 153 "KEY_DIRECTION"
+# key 154 "KEY_CYCLEWINDOWS"
+key 155 ENVELOPE
+key 156 BOOKMARK
+# key 157 "KEY_COMPUTER"
+key 158 BACK
+key 159 FORWARD
+key 160 MEDIA_CLOSE
+key 161 MEDIA_EJECT
+key 162 MEDIA_EJECT
+key 163 MEDIA_NEXT
+key 164 MEDIA_PLAY_PAUSE
+key 165 MEDIA_PREVIOUS
+key 166 MEDIA_STOP
+key 167 MEDIA_RECORD
+key 168 MEDIA_REWIND
+key 169 CALL
+# key 170 "KEY_ISO"
+key 171 MUSIC
+key 172 HOME
+key 173 REFRESH
+# key 174 "KEY_EXIT"
+# key 175 "KEY_MOVE"
+# key 176 "KEY_EDIT"
+key 177 PAGE_UP
+key 178 PAGE_DOWN
+key 179 NUMPAD_LEFT_PAREN
+key 180 NUMPAD_RIGHT_PAREN
+# key 181 "KEY_NEW"
+# key 182 "KEY_REDO"
+# key 183 F13
+# key 184 F14
+# key 185 F15
+# key 186 F16
+# key 187 F17
+# key 188 F18
+# key 189 F19
+# key 190 F20
+# key 191 F21
+# key 192 F22
+# key 193 F23
+# key 194 F24
+# key 195 (undefined)
+# key 196 (undefined)
+# key 197 (undefined)
+# key 198 (undefined)
+# key 199 (undefined)
+key 200 MEDIA_PLAY
+key 201 MEDIA_PAUSE
+# key 202 "KEY_PROG3"
+# key 203 "KEY_PROG4"
+# key 204 (undefined)
+# key 205 "KEY_SUSPEND"
+# key 206 "KEY_CLOSE"
+key 207 MEDIA_PLAY
+key 208 MEDIA_FAST_FORWARD
+# key 209 "KEY_BASSBOOST"
+# key 210 "KEY_PRINT"
+# key 211 "KEY_HP"
+key 212 CAMERA
+key 213 MUSIC
+# key 214 "KEY_QUESTION"
+key 215 ENVELOPE
+# key 216 "KEY_CHAT"
+key 217 SEARCH
+# key 218 "KEY_CONNECT"
+# key 219 "KEY_FINANCE"
+# key 220 "KEY_SPORT"
+# key 221 "KEY_SHOP"
+# key 222 "KEY_ALTERASE"
+# key 223 "KEY_CANCEL"
+key 224 BRIGHTNESS_DOWN
+key 225 BRIGHTNESS_UP
+key 226 HEADSETHOOK
+
+key 256 BUTTON_1
+key 257 BUTTON_2
+key 258 BUTTON_3
+key 259 BUTTON_4
+key 260 BUTTON_5
+key 261 BUTTON_6
+key 262 BUTTON_7
+key 263 BUTTON_8
+key 264 BUTTON_9
+key 265 BUTTON_10
+key 266 BUTTON_11
+key 267 BUTTON_12
+key 268 BUTTON_13
+key 269 BUTTON_14
+key 270 BUTTON_15
+key 271 BUTTON_16
+
+key 288 BUTTON_1
+key 289 BUTTON_2
+key 290 BUTTON_3
+key 291 BUTTON_4
+key 292 BUTTON_5
+key 293 BUTTON_6
+key 294 BUTTON_7
+key 295 BUTTON_8
+key 296 BUTTON_9
+key 297 BUTTON_10
+key 298 BUTTON_11
+key 299 BUTTON_12
+key 300 BUTTON_13
+key 301 BUTTON_14
+key 302 BUTTON_15
+key 303 BUTTON_16
+
+
+key 304 BUTTON_A
+key 305 BUTTON_B
+key 306 BUTTON_C
+key 307 BUTTON_X
+key 308 BUTTON_Y
+key 309 BUTTON_Z
+key 310 BUTTON_L1
+key 311 BUTTON_R1
+key 312 BUTTON_L2
+key 313 BUTTON_R2
+key 314 BUTTON_SELECT
+key 315 BUTTON_START
+key 316 BUTTON_MODE
+key 317 BUTTON_THUMBL
+key 318 BUTTON_THUMBR
+
+
+# key 352 "KEY_OK"
+key 353 DPAD_CENTER
+# key 354 "KEY_GOTO"
+# key 355 "KEY_CLEAR"
+# key 356 "KEY_POWER2"
+# key 357 "KEY_OPTION"
+# key 358 "KEY_INFO"
+# key 359 "KEY_TIME"
+# key 360 "KEY_VENDOR"
+# key 361 "KEY_ARCHIVE"
+key 362 GUIDE
+# key 363 "KEY_CHANNEL"
+# key 364 "KEY_FAVORITES"
+# key 365 "KEY_EPG"
+key 366 DVR
+# key 367 "KEY_MHP"
+# key 368 "KEY_LANGUAGE"
+# key 369 "KEY_TITLE"
+# key 370 "KEY_SUBTITLE"
+# key 371 "KEY_ANGLE"
+# key 372 "KEY_ZOOM"
+# key 373 "KEY_MODE"
+# key 374 "KEY_KEYBOARD"
+# key 375 "KEY_SCREEN"
+# key 376 "KEY_PC"
+key 377 TV
+# key 378 "KEY_TV2"
+# key 379 "KEY_VCR"
+# key 380 "KEY_VCR2"
+# key 381 "KEY_SAT"
+# key 382 "KEY_SAT2"
+# key 383 "KEY_CD"
+# key 384 "KEY_TAPE"
+# key 385 "KEY_RADIO"
+# key 386 "KEY_TUNER"
+# key 387 "KEY_PLAYER"
+# key 388 "KEY_TEXT"
+# key 389 "KEY_DVD"
+# key 390 "KEY_AUX"
+# key 391 "KEY_MP3"
+# key 392 "KEY_AUDIO"
+# key 393 "KEY_VIDEO"
+# key 394 "KEY_DIRECTORY"
+# key 395 "KEY_LIST"
+# key 396 "KEY_MEMO"
+key 397 CALENDAR
+# key 398 "KEY_RED"
+# key 399 "KEY_GREEN"
+# key 400 "KEY_YELLOW"
+# key 401 "KEY_BLUE"
+key 402 CHANNEL_UP
+key 403 CHANNEL_DOWN
+# key 404 "KEY_FIRST"
+# key 405 "KEY_LAST"
+# key 406 "KEY_AB"
+# key 407 "KEY_NEXT"
+# key 408 "KEY_RESTART"
+# key 409 "KEY_SLOW"
+# key 410 "KEY_SHUFFLE"
+# key 411 "KEY_BREAK"
+# key 412 "KEY_PREVIOUS"
+# key 413 "KEY_DIGITS"
+# key 414 "KEY_TEEN"
+# key 415 "KEY_TWEN"
+
+key 429 CONTACTS
+
+# key 448 "KEY_DEL_EOL"
+# key 449 "KEY_DEL_EOS"
+# key 450 "KEY_INS_LINE"
+# key 451 "KEY_DEL_LINE"
+
+
+key 464 FUNCTION
+key 465 ESCAPE FUNCTION
+key 466 F1 FUNCTION
+key 467 F2 FUNCTION
+key 468 F3 FUNCTION
+key 469 F4 FUNCTION
+key 470 F5 FUNCTION
+key 471 F6 FUNCTION
+key 472 F7 FUNCTION
+key 473 F8 FUNCTION
+key 474 F9 FUNCTION
+key 475 F10 FUNCTION
+key 476 F11 FUNCTION
+key 477 F12 FUNCTION
+key 478 1 FUNCTION
+key 479 2 FUNCTION
+key 480 D FUNCTION
+key 481 E FUNCTION
+key 482 F FUNCTION
+key 483 S FUNCTION
+key 484 B FUNCTION
+
+
+# key 497 KEY_BRL_DOT1
+# key 498 KEY_BRL_DOT2
+# key 499 KEY_BRL_DOT3
+# key 500 KEY_BRL_DOT4
+# key 501 KEY_BRL_DOT5
+# key 502 KEY_BRL_DOT6
+# key 503 KEY_BRL_DOT7
+# key 504 KEY_BRL_DOT8
+
+key 522 STAR
+key 523 POUND
+key 580 APP_SWITCH
+key 582 VOICE_ASSIST
+
+# Keys defined by HID usages
+key usage 0x0c006F BRIGHTNESS_UP
+key usage 0x0c0070 BRIGHTNESS_DOWN
+
+# Joystick and game controller axes.
+# Axes that are not mapped will be assigned generic axis numbers by the input subsystem.
+axis 0x00 X
+axis 0x01 Y
+axis 0x02 Z
+axis 0x03 RX
+axis 0x04 RY
+axis 0x05 RZ
+axis 0x06 THROTTLE
+axis 0x07 RUDDER
+axis 0x08 WHEEL
+axis 0x09 GAS
+axis 0x0a BRAKE
+axis 0x10 HAT_X
+axis 0x11 HAT_Y
+
+# LEDs
+led 0x00 NUM_LOCK
+led 0x01 CAPS_LOCK
+led 0x02 SCROLL_LOCK
+led 0x03 COMPOSE
+led 0x04 KANA
+led 0x05 SLEEP
+led 0x06 SUSPEND
+led 0x07 MUTE
+led 0x08 MISC
+led 0x09 MAIL
+led 0x0a CHARGING
diff --git a/keylayout/goodix_ts.kl b/keylayout/fts_ts.kl
similarity index 78%
rename from keylayout/goodix_ts.kl
rename to keylayout/fts_ts.kl
index 5e0b616..60e8827 100644
--- a/keylayout/goodix_ts.kl
+++ b/keylayout/fts_ts.kl
@@ -12,7 +12,3 @@
key 119 GESTURE_PAUSE WAKE VIRTUAL
key 159 GESTURE_FORWARD WAKE VIRTUAL
key 168 GESTURE_REWIND WAKE VIRTUAL
-key 33 FINGERPRINT_EARLYWAKEUP
-key 22 FINGERPRINT_SCREEN_OFF_LEAVE
-key 38 FINGERPRINT_SCREEN_OFF_TAP_IN_IDENTIFY_AREA
-key 24 FINGERPRINT_PARTIAL_FINGER
diff --git a/keylayout/goodixfp.kl b/keylayout/goodixfp.kl
new file mode 100644
index 0000000..15912bf
--- /dev/null
+++ b/keylayout/goodixfp.kl
@@ -0,0 +1 @@
+key 192 FINGERPRINT_EARLYWAKEUP GESTURE
diff --git a/omni_rog3.mk b/omni_zenfone7.mk
similarity index 73%
rename from omni_rog3.mk
rename to omni_zenfone7.mk
index 816047b..a2b201d 100644
--- a/omni_rog3.mk
+++ b/omni_zenfone7.mk
@@ -36,28 +36,28 @@
$(call inherit-product, vendor/omni/config/common.mk)
# Inherit from hardware-specific part of the product configuration
-$(call inherit-product, device/asus/rog3/device.mk)
+$(call inherit-product, device/asus/zenfone7/device.mk)
# Discard inherited values and use our own instead.
-PRODUCT_DEVICE := rog3
-PRODUCT_NAME := omni_rog3
+PRODUCT_DEVICE := zenfone7
+PRODUCT_NAME := omni_zenfone7
PRODUCT_BRAND := asus
-PRODUCT_MODEL := ASUS_I003D
+PRODUCT_MODEL := ASUS_I002D
PRODUCT_MANUFACTURER := asus
PRODUCT_GMS_CLIENTID_BASE := android-asus
-TARGET_DEVICE := WW_I003D
-PRODUCT_SYSTEM_DEVICE := ASUS_I003_1
-PRODUCT_SYSTEM_NAME := WW_I003D
+TARGET_DEVICE := WW_I002D
+PRODUCT_SYSTEM_DEVICE := ASUS_I002
+PRODUCT_SYSTEM_NAME := WW_I002D
OMNI_PRODUCT_PROPERTIES += \
- ro.build.product=ZS661KS
+ ro.build.product=ZS670KS
-VENDOR_RELEASE := 10/QKQ1.200419.002/17.0823.2007.32-0:user/release-keys
-BUILD_FINGERPRINT := asus/WW_I003D/ASUS_I003_1:$(VENDOR_RELEASE)
-OMNI_BUILD_FINGERPRINT := asus/WW_I003D/ASUS_I003_1:$(VENDOR_RELEASE)
-OMNI_PRIVATE_BUILD_DESC := "'QKQ1.200419.002.WW_Phone-17.0823.2007.32-0'"
+VENDOR_RELEASE := 10/QKQ1.200127.002/29.12.18.16_20200910-0:user/release-keys
+BUILD_FINGERPRINT := asus/WW_I002D/ASUS_I002D:$(VENDOR_RELEASE)
+OMNI_BUILD_FINGERPRINT := asus/WW_I002D/ASUS_I002D:$(VENDOR_RELEASE)
+OMNI_PRIVATE_BUILD_DESC := "'QKQ1.200127.002.WW_Phone-16_20200910-0'"
# Security patch level from stock
-PLATFORM_SECURITY_PATCH_OVERRIDE := 2020-07-01
+PLATFORM_SECURITY_PATCH_OVERRIDE := 2020-07-05
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
index da3cf21..c0f8e27 100644
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -21,7 +21,7 @@
<!-- The list of vendor package signatures that should also be considered
platform signatures, specifically for use on devices with a vendor partition. -->
<string-array name="config_vendorPlatformSignatures" translatable="false">
- <item>308203e1308202c9a003020102020900ac08b4b902e81104300d06092a864886f70d01010b0500308186310b3009060355040613025457310f300d06035504080c0654616977616e310f300d06035504070c065461697065693110300e060355040a0c074173757354656b3110300e060355040b0c0750686f6e6542553110300e06035504030c075a533636314b53311f301d06092a864886f70d0109011610737570706f727440617375732e636f6d3020170d3230303130383037303235345a180f32303531303130393037303235345a308186310b3009060355040613025457310f300d06035504080c0654616977616e310f300d06035504070c065461697065693110300e060355040a0c074173757354656b3110300e060355040b0c0750686f6e6542553110300e06035504030c075a533636314b53311f301d06092a864886f70d0109011610737570706f727440617375732e636f6d30820120300d06092a864886f70d01010105000382010d00308201080282010100cc6ee4f00dced3eeefb5b647f8582e196bce357b8852c29f4a66c836f8b457b816f7e4d96f10a02e435321c7464638be90f9de542eceab134d0c9d071d6011b4b519322b877cbd93ec86fedced6c102fc3b5fe87d18988689a8e3ad8f96ba7cea347547a66420790ee8c2d08850c9947abf12aff82c8ac634b7d2dc52e94553b62ea929313c2831d352f92242e1f1cec68f6ad07c1f3e778895ad95bd0c59eac916242d958e7a775740b489018e9e798590cd63193459da7ed865b0abe0334ca3bef5eb457899589f8f3b7b13579b29fea5ca76e62e3aba05d299b9d9fe585361fe909ba2575ce6821dc7aeed6a70ab0cbb2ecf63036a32a472840ef9d8915d9020103a350304e301d0603551d0e041604140970668cd57468b9f8faea33ae8200d8218a6f67301f0603551d230418301680140970668cd57468b9f8faea33ae8200d8218a6f67300c0603551d13040530030101ff300d06092a864886f70d01010b05000382010100aadbf7d21cf431d3ea6e656100e54dae7ba7db0fad919a4c247062f16b67b7b2c116028dd0154cca949685c62bcfffed15832bff756ed38fbbc191f7b3bff43c3d8884c04db00b05981b233e7e940397f70ac45793ba860b32ecf45361ba9199e361b99ec8cc197c57107c16549fa4696d516d0db927bb3956ba4aa141d96696a41f3b7ca06699bab59d2ed60384398a60e65a2202cef71ffa89e5227a632114c8dbb19ef4bd4673bae163bdea27b2dc9321b4d9a67e29abac35488e276be1e18e964ae6511ee83eb79f5724611fa52e63bcd6d4a552836063bbef12930698acfadc2916650f7f75fd818607b5e3247cfff4b683d714e2752501a6c35812d194</item>
+ <item>30820407308202efa003020102020900e7ced1b79c4dd6da300d06092a864886f70d01010b0500308199310b300906035504061302434e3110300e06035504080c074a69616e677375310f300d06035504070c0653757a686f75311e301c060355040a0c154153555354656b20434f4d505554455220494e432e31163014060355040b0c0d4657205226442043656e7465723110300e06035504030c075a533636304b53311d301b06092a864886f70d010901160e61646d696e40617375732e636f6d301e170d3139313131353133323034385a170d3437303430323133323034385a308199310b300906035504061302434e3110300e06035504080c074a69616e677375310f300d06035504070c0653757a686f75311e301c060355040a0c154153555354656b20434f4d505554455220494e432e31163014060355040b0c0d4657205226442043656e7465723110300e06035504030c075a533636304b53311d301b06092a864886f70d010901160e61646d696e40617375732e636f6d30820122300d06092a864886f70d01010105000382010f003082010a0282010100c7498dbe3bcaa4630c76672fadad39c096331cce3132a1bc3c0ed9e37c6a42618dd67db3714d26e6597c3af29258b7b2732c1128ac0fc058356829bd9b571065dc0a80cbbe988b92ffa3be41742328ac322c52d5b607e6942df3f88d158cdf2c1fd9828aaf864cc680076dc80e08dab992056491b1229fd9391f0a4d6b073872b25b073acd60937e778ae5b7733a529a87be3cd86f257cceeb3f8edd6a230c3d9722c8b9c817c099c6795ffa70c9d096f9560615e50756985bb40509861622307892360a2362869e6bcd19d4b6cafefc26938e53f15ed3beeb405db221c52ae44efc882ee815f2552e40b5167c557efba956c8245a78b6b99a318eecbad2b3430203010001a350304e301d0603551d0e04160414ee58f29d7f979b55eed811de502413f9fd7a1794301f0603551d23041830168014ee58f29d7f979b55eed811de502413f9fd7a1794300c0603551d13040530030101ff300d06092a864886f70d01010b0500038201010073e76ecc6a6bce553026cc918b78779a6b785ccf5d5cb32353a87ced9204019b49ad1dd3740618c109ca3e5004005feca847f859b28df09b40276f472b7d874a427a97e47f453179355e98ef240b5db2dad575a0a0f03dadf7b977ed75f5e3afbd4111e260c81ab0c7c8c11199d0c958da967363059c5949785a7379948e372ee9654971294ccb987bc973bc5fa49b9cd7e8eb7d52e3b39110b2a61d16ab7b1854a6d14f8444f93d694c4a97de0f0aa7c7fdd982c1202d267724044715bc7c619f940f340415be33eaf942275d1290e0f72cc3a597b52476ddb795e16dd4020ad81a0662b3df7b575f8c88f7ce43aba188e51bb20626c3c2a05059b361aa19c0</item>
</string-array>
<!-- Array of light sensor lux values to define our levels for auto backlight brightness support.
@@ -85,19 +85,19 @@
array. The brightness values must be non-negative and non-decreasing. This must be
overridden in platform specific overlays -->
<array name="config_autoBrightnessDisplayValuesNits">
- <item>8</item>
+ <item>7</item>
<item>11</item>
<item>35</item>
<item>53</item>
<item>67</item>
- <item>82</item>
- <item>105</item>
+ <item>81</item>
+ <item>104</item>
<item>118</item>
<item>129</item>
<item>138</item>
<item>152</item>
<item>164</item>
- <item>178</item>
+ <item>176</item>
<item>228</item>
<item>263</item>
<item>291</item>
@@ -106,10 +106,10 @@
<item>314</item>
<item>319</item>
<item>399</item>
- <item>480</item>
- <item>558</item>
- <item>639</item>
- <item>1600</item>
+ <item>450</item>
+ <item>450</item>
+ <item>450</item>
+ <item>450</item>
</array>
<!-- An array of floats describing the screen brightness in nits corresponding to the backlight
@@ -120,20 +120,20 @@
This array should be equal in size to config_screenBrightnessBacklight -->
<array name="config_screenBrightnessNits">
- <item>6</item>
- <item>8</item>
+ <item>2</item>
+ <item>7</item>
<item>11</item>
<item>35</item>
<item>53</item>
<item>67</item>
- <item>82</item>
- <item>105</item>
+ <item>81</item>
+ <item>104</item>
<item>118</item>
<item>129</item>
<item>138</item>
<item>152</item>
<item>164</item>
- <item>178</item>
+ <item>176</item>
<item>228</item>
<item>263</item>
<item>291</item>
@@ -141,7 +141,8 @@
<item>311</item>
<item>314</item>
<item>319</item>
- <item>387</item>
+ <item>399</item>
+ <item>450</item>
</array>
<!-- An array describing the screen's backlight values corresponding to the brightness
@@ -149,27 +150,28 @@
This array should be equal in size to config_screenBrightnessBacklight. -->
<integer-array name="config_screenBrightnessBacklight">
+ <item>1</item>
<item>4</item>
- <item>5</item>
- <item>7</item>
- <item>23</item>
- <item>35</item>
- <item>44</item>
- <item>54</item>
- <item>69</item>
+ <item>6</item>
+ <item>20</item>
+ <item>30</item>
+ <item>38</item>
+ <item>46</item>
+ <item>59</item>
+ <item>67</item>
+ <item>73</item>
<item>78</item>
- <item>85</item>
- <item>91</item>
+ <item>86</item>
+ <item>93</item>
<item>100</item>
- <item>108</item>
- <item>117</item>
- <item>150</item>
- <item>173</item>
- <item>192</item>
- <item>200</item>
- <item>205</item>
- <item>207</item>
- <item>210</item>
+ <item>129</item>
+ <item>149</item>
+ <item>165</item>
+ <item>172</item>
+ <item>176</item>
+ <item>178</item>
+ <item>181</item>
+ <item>226</item>
<item>255</item>
</integer-array>
@@ -194,10 +196,4 @@
<integer name="config_autoBrightnessBrighteningLightDebounce">2000</integer>
<integer name="config_autoBrightnessDarkeningLightDebounce">4000</integer>
- <!-- Whether the always on display mode is available. -->
- <bool name="config_dozeAlwaysOnDisplayAvailable">true</bool>
-
- <!-- Control whether the always on display mode is enabled by default. This value will be used
- during initialization when the setting is still null. -->
- <bool name="config_dozeAlwaysOnEnabled">false</bool>
</resources>
\ No newline at end of file
diff --git a/prebuilt/root/init.recovery.qcom.rc b/prebuilt/root/init.recovery.qcom.rc
new file mode 100755
index 0000000..6929e3d
--- /dev/null
+++ b/prebuilt/root/init.recovery.qcom.rc
@@ -0,0 +1,66 @@
+# Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+# * Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# * Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in the
+# documentation and/or other materials provided with the distribution.
+# * Neither the name of The Linux Foundation nor
+# the names of its contributors may be used to endorse or promote
+# products derived from this software without specific prior written
+# permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+
+on init
+ write /sys/class/backlight/panel0-backlight/brightness 200
+
+ mkdir /config
+ mount configfs none /config
+ mkdir /config/usb_gadget/g1 0770 shell shell
+ write /config/usb_gadget/g1/bcdUSB 0x0200
+ write /config/usb_gadget/g1/idVendor 0x0b05
+ write /config/usb_gadget/g1/idProduct 0x4dae
+ mkdir /config/usb_gadget/g1/strings/0x409 0770 shell shell
+ write /config/usb_gadget/g1/strings/0x409/serialnumber ${ro.serialno}
+ write /config/usb_gadget/g1/strings/0x409/manufacturer ${ro.product.manufacturer}
+ write /config/usb_gadget/g1/strings/0x409/product ${ro.product.model}
+ mkdir /config/usb_gadget/g1/functions/ffs.adb
+ write /config/usb_gadget/g1/os_desc/use 1
+ write /config/usb_gadget/g1/os_desc/b_vendor_code 0x1
+ write /config/usb_gadget/g1/os_desc/qw_sign "MSFT100"
+ setprop sys.usb.configfs 1
+
+on property:ro.boot.usbconfigfs=false
+ setprop sys.usb.configfs 0
+
+on property:ro.boot.recover_usb=*
+ write /sys/bus/platform/devices/a600000.ssusb/mode "peripheral"
+
+on property:ro.boot.usbcontroller=*
+ setprop sys.usb.controller ${ro.boot.usbcontroller}
+
+on property:sys.usb.ffs.ready=1
+ mkdir /config/usb_gadget/g1/configs/b.1 0777 shell shell
+ symlink /config/usb_gadget/g1/configs/b.1 /config/usb_gadget/g1/os_desc/b.1
+ mkdir /config/usb_gadget/g1/configs/b.1/strings/0x409 0770 shell shell
+ write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "adb"
+ symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f1
+ write /config/usb_gadget/g1/UDC ${sys.usb.controller}
+
+on fs
+ wait /dev/block/platform/soc/${ro.boot.bootdevice}
+ symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice
diff --git a/prebuilt/root/init.usb.configfs.rc b/prebuilt/root/init.usb.configfs.rc
new file mode 100755
index 0000000..1b7eb4f
--- /dev/null
+++ b/prebuilt/root/init.usb.configfs.rc
@@ -0,0 +1,190 @@
+on property:sys.usb.config=none && property:sys.usb.configfs=1
+ write /config/usb_gadget/g1/UDC "none"
+ stop adbd
+ setprop sys.usb.ffs.ready 0
+ write /config/usb_gadget/g1/bDeviceClass 0
+ write /config/usb_gadget/g1/bDeviceSubClass 0
+ write /config/usb_gadget/g1/bDeviceProtocol 0
+ rm /config/usb_gadget/g1/configs/b.1/f1
+ rm /config/usb_gadget/g1/configs/b.1/f2
+ rm /config/usb_gadget/g1/configs/b.1/f3
+ rm /config/usb_gadget/g1/configs/b.1/f4
+ rm /config/usb_gadget/g1/configs/b.1/f5
+ rmdir /config/usb_gadget/g1/functions/rndis.gs4
+ setprop sys.usb.state ${sys.usb.config}
+
+on property:init.svc.adbd=stopped
+ setprop sys.usb.ffs.ready 0
+
+on property:sys.usb.config=adb && property:sys.usb.configfs=1
+ start adbd
+
+on property:sys.usb.ffs.ready=1 && property:sys.usb.config=adb && property:sys.usb.configfs=1
+ write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "adb"
+ rm /config/usb_gadget/g1/configs/b.1/f1
+ rm /config/usb_gadget/g1/configs/b.1/f2
+ rm /config/usb_gadget/g1/configs/b.1/f3
+ rm /config/usb_gadget/g1/configs/b.1/f4
+ rm /config/usb_gadget/g1/configs/b.1/f5
+ symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f1
+ write /config/usb_gadget/g1/UDC ${sys.usb.controller}
+ setprop sys.usb.state ${sys.usb.config}
+
+on property:sys.usb.config=mtp && property:sys.usb.configfs=1
+ write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "mtp"
+ rm /config/usb_gadget/g1/configs/b.1/f1
+ rm /config/usb_gadget/g1/configs/b.1/f2
+ rm /config/usb_gadget/g1/configs/b.1/f3
+ rm /config/usb_gadget/g1/configs/b.1/f4
+ rm /config/usb_gadget/g1/configs/b.1/f5
+ symlink /config/usb_gadget/g1/functions/mtp.gs0 /config/usb_gadget/g1/configs/b.1/f1
+ write /config/usb_gadget/g1/UDC ${sys.usb.controller}
+ setprop sys.usb.state ${sys.usb.config}
+
+on property:sys.usb.config=mtp,adb && property:sys.usb.configfs=1
+ start adbd
+
+on property:sys.usb.ffs.ready=1 && property:sys.usb.config=mtp,adb && property:sys.usb.configfs=1
+ write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "mtp_adb"
+ rm /config/usb_gadget/g1/configs/b.1/f1
+ rm /config/usb_gadget/g1/configs/b.1/f2
+ rm /config/usb_gadget/g1/configs/b.1/f3
+ rm /config/usb_gadget/g1/configs/b.1/f4
+ rm /config/usb_gadget/g1/configs/b.1/f5
+ symlink /config/usb_gadget/g1/functions/mtp.gs0 /config/usb_gadget/g1/configs/b.1/f1
+ symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f2
+ write /config/usb_gadget/g1/UDC ${sys.usb.controller}
+ setprop sys.usb.state ${sys.usb.config}
+
+on property:sys.usb.config=ptp && property:sys.usb.configfs=1
+ write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "ptp"
+ rm /config/usb_gadget/g1/configs/b.1/f1
+ rm /config/usb_gadget/g1/configs/b.1/f2
+ rm /config/usb_gadget/g1/configs/b.1/f3
+ rm /config/usb_gadget/g1/configs/b.1/f4
+ rm /config/usb_gadget/g1/configs/b.1/f5
+ symlink /config/usb_gadget/g1/functions/ptp.gs1 /config/usb_gadget/g1/configs/b.1/f1
+ write /config/usb_gadget/g1/UDC ${sys.usb.controller}
+ setprop sys.usb.state ${sys.usb.config}
+
+on property:sys.usb.config=ptp,adb && property:sys.usb.configfs=1
+ start adbd
+
+on property:sys.usb.ffs.ready=1 && property:sys.usb.config=ptp,adb && property:sys.usb.configfs=1
+ write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "ptp_adb"
+ rm /config/usb_gadget/g1/configs/b.1/f1
+ rm /config/usb_gadget/g1/configs/b.1/f2
+ rm /config/usb_gadget/g1/configs/b.1/f3
+ rm /config/usb_gadget/g1/configs/b.1/f4
+ rm /config/usb_gadget/g1/configs/b.1/f5
+ symlink /config/usb_gadget/g1/functions/ptp.gs1 /config/usb_gadget/g1/configs/b.1/f1
+ symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f2
+ write /config/usb_gadget/g1/UDC ${sys.usb.controller}
+ setprop sys.usb.state ${sys.usb.config}
+
+on property:sys.usb.config=accessory && property:sys.usb.configfs=1
+ write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "accessory"
+ rm /config/usb_gadget/g1/configs/b.1/f1
+ rm /config/usb_gadget/g1/configs/b.1/f2
+ rm /config/usb_gadget/g1/configs/b.1/f3
+ rm /config/usb_gadget/g1/configs/b.1/f4
+ rm /config/usb_gadget/g1/configs/b.1/f5
+ symlink /config/usb_gadget/g1/functions/accessory.gs2 /config/usb_gadget/g1/configs/b.1/f1
+ write /config/usb_gadget/g1/UDC ${sys.usb.controller}
+ setprop sys.usb.state ${sys.usb.config}
+
+on property:sys.usb.config=accessory,adb && property:sys.usb.configfs=1
+ start adbd
+
+on property:sys.usb.ffs.ready=1 && property:sys.usb.config=accessory,adb && property:sys.usb.configfs=1
+ write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "accessory_adb"
+ rm /config/usb_gadget/g1/configs/b.1/f1
+ rm /config/usb_gadget/g1/configs/b.1/f2
+ rm /config/usb_gadget/g1/configs/b.1/f3
+ rm /config/usb_gadget/g1/configs/b.1/f4
+ rm /config/usb_gadget/g1/configs/b.1/f5
+ symlink /config/usb_gadget/g1/functions/accessory.gs2 /config/usb_gadget/g1/configs/b.1/f1
+ symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f2
+ write /config/usb_gadget/g1/UDC ${sys.usb.controller}
+ setprop sys.usb.state ${sys.usb.config}
+
+on property:sys.usb.config=audio_source && property:sys.usb.configfs=1
+ write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "audiosource"
+ rm /config/usb_gadget/g1/configs/b.1/f1
+ rm /config/usb_gadget/g1/configs/b.1/f2
+ rm /config/usb_gadget/g1/configs/b.1/f3
+ rm /config/usb_gadget/g1/configs/b.1/f4
+ rm /config/usb_gadget/g1/configs/b.1/f5
+ symlink /config/usb_gadget/g1/functions/audio_source.gs3 /config/usb_gadget/g1/configs/b.1/f1
+ write /config/usb_gadget/g1/UDC ${sys.usb.controller}
+ setprop sys.usb.state ${sys.usb.config}
+
+on property:sys.usb.config=audio_source,adb && property:sys.usb.configfs=1
+ start adbd
+
+on property:sys.usb.ffs.ready=1 && property:sys.usb.config=audio_source,adb && property:sys.usb.configfs=1
+ write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "audiosource_adb"
+ rm /config/usb_gadget/g1/configs/b.1/f1
+ rm /config/usb_gadget/g1/configs/b.1/f2
+ rm /config/usb_gadget/g1/configs/b.1/f3
+ rm /config/usb_gadget/g1/configs/b.1/f4
+ rm /config/usb_gadget/g1/configs/b.1/f5
+ symlink /config/usb_gadget/g1/functions/audio_source.gs3 /config/usb_gadget/g1/configs/b.1/f1
+ symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f2
+ write /config/usb_gadget/g1/UDC ${sys.usb.controller}
+ setprop sys.usb.state ${sys.usb.config}
+
+on property:sys.usb.config=accessory,audio_source && property:sys.usb.configfs=1
+ write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "accessory_audiosource"
+ rm /config/usb_gadget/g1/configs/b.1/f1
+ rm /config/usb_gadget/g1/configs/b.1/f2
+ rm /config/usb_gadget/g1/configs/b.1/f3
+ rm /config/usb_gadget/g1/configs/b.1/f4
+ rm /config/usb_gadget/g1/configs/b.1/f5
+ symlink /config/usb_gadget/g1/functions/accessory.gs2 /config/usb_gadget/g1/configs/b.1/f1
+ symlink /config/usb_gadget/g1/functions/audio_source.gs3 /config/usb_gadget/g1/configs/b.1/f2
+ write /config/usb_gadget/g1/UDC ${sys.usb.controller}
+ setprop sys.usb.state ${sys.usb.config}
+
+on property:sys.usb.config=accessory,audio_source,adb && property:sys.usb.configfs=1
+ start adbd
+
+on property:sys.usb.ffs.ready=1 && property:sys.usb.config=accessory,audio_source,adb && property:sys.usb.configfs=1
+ write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "accessory_audiosource_adb"
+ rm /config/usb_gadget/g1/configs/b.1/f1
+ rm /config/usb_gadget/g1/configs/b.1/f2
+ rm /config/usb_gadget/g1/configs/b.1/f3
+ rm /config/usb_gadget/g1/configs/b.1/f4
+ rm /config/usb_gadget/g1/configs/b.1/f5
+ symlink /config/usb_gadget/g1/functions/accessory.gs2 /config/usb_gadget/g1/configs/b.1/f1
+ symlink /config/usb_gadget/g1/functions/audio_source.gs3 /config/usb_gadget/g1/configs/b.1/f2
+ symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f3
+ write /config/usb_gadget/g1/UDC ${sys.usb.controller}
+ setprop sys.usb.state ${sys.usb.config}
+
+on property:sys.usb.config=midi && property:sys.usb.configfs=1
+ write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "midi"
+ rm /config/usb_gadget/g1/configs/b.1/f1
+ rm /config/usb_gadget/g1/configs/b.1/f2
+ rm /config/usb_gadget/g1/configs/b.1/f3
+ rm /config/usb_gadget/g1/configs/b.1/f4
+ rm /config/usb_gadget/g1/configs/b.1/f5
+ symlink /config/usb_gadget/g1/functions/midi.gs5 /config/usb_gadget/g1/configs/b.1/f1
+ write /config/usb_gadget/g1/UDC ${sys.usb.controller}
+ setprop sys.usb.state ${sys.usb.config}
+
+on property:sys.usb.config=midi,adb && property:sys.usb.configfs=1
+ start adbd
+
+on property:sys.usb.ffs.ready=1 && property:sys.usb.config=midi,adb && property:sys.usb.configfs=1
+ write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "midi_adb"
+ rm /config/usb_gadget/g1/configs/b.1/f1
+ rm /config/usb_gadget/g1/configs/b.1/f2
+ rm /config/usb_gadget/g1/configs/b.1/f3
+ rm /config/usb_gadget/g1/configs/b.1/f4
+ rm /config/usb_gadget/g1/configs/b.1/f5
+ symlink /config/usb_gadget/g1/functions/midi.gs5 /config/usb_gadget/g1/configs/b.1/f1
+ symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f2
+ write /config/usb_gadget/g1/UDC ${sys.usb.controller}
+ setprop sys.usb.state ${sys.usb.config}
+
diff --git a/prebuilt/system/etc/permissions/privapp-permissions-ASUS_I002D.xml b/prebuilt/system/etc/permissions/privapp-permissions-ASUS_I002D.xml
new file mode 100644
index 0000000..e93114b
--- /dev/null
+++ b/prebuilt/system/etc/permissions/privapp-permissions-ASUS_I002D.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<permissions>
+ <!-- Additional permissions on top of privapp-permissions-platform.xml -->
+ <privapp-permissions package="com.asus.gamewidget">
+ <permission name="com.asus.permission.MANAGE_APP_ASPECT"/>
+ <permission name="com.asus.permission.HARDWARE_PROPERTIES"/>
+ <permission name="android.permission.MODIFY_PHONE_STATE"/>
+ <permission name="com.asus.permission.TOP_OF_EVERYTHING"/>
+ <permission name="android.permission.CAPTURE_AUDIO_OUTPUT"/>
+ <permission name="android.permission.STATUS_BAR"/>
+ <permission name="android.permission.CONNECTIVITY_INTERNAL"/>
+ <permission name="android.permission.READ_PRIVILEGED_PHONE_STATE"/>
+ <permission name="android.permission.DEVICE_POWER"/>
+ </privapp-permissions>
+
+</permissions>
diff --git a/prebuilt/system/etc/permissions/privapp-permissions-ASUS_I003D.xml b/prebuilt/system/etc/permissions/privapp-permissions-ASUS_I003D.xml
deleted file mode 100644
index d65cb40..0000000
--- a/prebuilt/system/etc/permissions/privapp-permissions-ASUS_I003D.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<permissions>
- <privapp-permissions package="com.asus.gamecenter">
- <permission name="android.permission.PACKAGE_USAGE_STATS"/>
- <permission name="android.permission.READ_PRIVILEGED_PHONE_STATE"/>
- <permission name="android.permission.READ_WIFI_CREDENTIAL"/>
- <permission name="android.permission.WRITE_SECURE_SETTINGS"/>
- <permission name="asus.permission.MANAGE_GAME_FIREWALL"/>
- <permission name="com.asus.permission.HARDWARE_PROPERTIES"/>
- <permission name="com.asus.permission.MANAGE_AURA_LIGHT"/>
- <permission name="android.permission.DEVICE_POWER"/>
- </privapp-permissions>
-
- <!-- Additional permissions on top of privapp-permissions-platform.xml -->
- <privapp-permissions package="com.asus.gamewidget">
- <permission name="com.asus.permission.MANAGE_APP_ASPECT"/>
- <permission name="com.asus.permission.HARDWARE_PROPERTIES"/>
- <permission name="android.permission.MODIFY_PHONE_STATE"/>
- <permission name="com.asus.permission.TOP_OF_EVERYTHING"/>
- <permission name="android.permission.CAPTURE_AUDIO_OUTPUT"/>
- <permission name="android.permission.STATUS_BAR"/>
- <permission name="android.permission.CONNECTIVITY_INTERNAL"/>
- <permission name="android.permission.READ_PRIVILEGED_PHONE_STATE"/>
- <permission name="android.permission.DEVICE_POWER"/>
- </privapp-permissions>
-
-</permissions>
diff --git a/proprietary-files.txt b/proprietary-files.txt
index 59fedb5..ab4585c 100644
--- a/proprietary-files.txt
+++ b/proprietary-files.txt
@@ -2,18 +2,13 @@
-app/FocusAppListener/FocusAppListener.apk;PRESIGNED
-app/GameBroadcasterService/GameBroadcasterService.apk;PRESIGNED
-app/HardwareStub/HardwareStub.apk;PRESIGNED
-etc/hardcore_default.json
-etc/hardcore_X1.json
-etc/hardcore_X2.json
-etc/hardcore_X3.json
-etc/x3_comb.json
etc/permissions/asus.software.gamewidget.zenui.rog3.xml
-etc/permissions/asus.software.zenui.rog.xml
+etc/permissions/asus.software.project.ZS670KS.xml
+etc/permissions/asus.software.zenui.seven.xml
etc/permissions/asus.software.zenui.xml
etc/sysconfig/ims-hiddenapi-package-whitelist.xml
-priv-app/GameBroadcaster/GameBroadcaster.apk;PRESIGNED
priv-app/GameBroadcaster/lib/arm64/libJniModule.so
--priv-app/ROGGameCenter/ROGGameCenter.apk;PRESIGNED
# Camera
lib64/DataSet/arch/DIT_List.cfg
@@ -43,6 +38,9 @@
priv-app/AsusCamera/lib/arm64/libUndistort.so
priv-app/AsusCamera/lib/arm64/libasusundistort.so
priv-app/AsusCamera/lib/arm64/libarcsoft_object_tracking.so
+-priv-app/MotorService/MotorService.apk;PRESIGNED
+priv-app/MotorService/lib/arm64/libAsusMotorDriverHAL.so
+priv-app/MotorService/lib/arm64/libjni_motor.so
# Gallery
-priv-app/AsusGallery/AsusGallery.apk;PRESIGNED
@@ -66,10 +64,12 @@
priv-app/AsusGallery/lib/arm64/librs.blur.so
priv-app/AsusGallery/lib/arm64/libRSSupport.so
priv-app/AsusGallery/lib/arm64/libjni_wide_angle_undistort.so
+priv-app/AsusGallery/lib/arm64/libNvStreamingSdkCore.so
priv-app/AsusGallery/lib/arm64/libgvr.so
priv-app/AsusGallery/lib/arm64/libjni_cvface_api.so
priv-app/AsusGallery/lib/arm64/libcvface_api.so
priv-app/AsusGallery/lib/arm64/libarcsoft_undistort.so
+priv-app/AsusGallery/lib/arm64/libopencv_java3.so
# GalleryBurst
-priv-app/AsusGalleryBurst/AsusGalleryBurst.apk;PRESIGNED
@@ -83,3 +83,57 @@
etc/videoeditor/Graceful.mfim
etc/videoeditor/Happy.mfim
etc/videoeditor/Dynamic.mfim
+
+# Editor seven
+etc/videoeditor7/fx/61B3A8B9-C843-450D-AB93-56FF082FF120.videofx
+etc/videoeditor7/fx/89B2D082-5F47-4A6D-9FD0-9F1BB053F6A7.videofx
+etc/videoeditor7/fx/FE794398-0AA5-4A1C-8189-7A00B516CF0E.videofx
+etc/videoeditor7/fx/7D8A1839-B7D3-4C91-AD7A-8FB920322818.videofx
+etc/videoeditor7/fx/27C20D68-D75E-42F0-BD1A-0927D5B3A20C.videofx
+etc/videoeditor7/fx/394EB525-1B7A-4AA1-BBAD-3FD75527A60C.videofx
+etc/videoeditor7/fx/12BB667E-32CC-4511-BB3E-07BE054A2896.videofx
+etc/videoeditor7/fx/12FCD2E7-1F80-4DFC-A8FD-C820CF754855.videofx
+etc/videoeditor7/fx/52AEDFE9-E76E-4AE5-91C5-6C6466F335E2.videofx
+etc/videoeditor7/fx/576A09D7-766B-427F-AF19-E8BD6B6F2F1B.videofx
+etc/videoeditor7/fx/D71CB384-ECCA-48E6-B791-C15EDB326F56.videofx
+etc/videoeditor7/fx/F17F414B-B1E2-4FB8-BD29-FEFDA43FCB98.videofx
+etc/videoeditor7/fx/BCD1FAAD-D5C5-468F-A4F2-1C2138F485C0.videofx
+etc/videoeditor7/fx/749C7148-F6C7-418A-B177-3493994A5F84.videofx
+etc/videoeditor7/fx/A8A4344D-45DA-460F-A18F-C0E2355FE864.videofx
+etc/videoeditor7/fx/6439CF7E-42D5-4239-8187-358323292FF4.videofx
+etc/videoeditor7/fx/FE91A908-A0C1-424D-A9FF-05386BA49316.videofx
+etc/videoeditor7/fx/2215EC1E-A9EE-4B5C-89CB-BF488178C910.videofx
+etc/videoeditor7/fx/B7F1F498-B310-4E2D-9A75-7D8AFBBC71D8.videofx
+etc/videoeditor7/fx/8615918E-FEB9-47F8-AEAA-B648E61E9314.videofx
+etc/videoeditor7/theme/BA915657-4E49-4EBA-970F-26DBF2E88D60.theme
+etc/videoeditor7/theme/4923FF1B-6459-42C9-BC81-CC641C52F0C1.theme
+etc/videoeditor7/theme/D1DC85A4-3C8F-49D8-8EB4-6E30852EEC19.theme
+etc/videoeditor7/theme/D363C1F8-2D14-4D88-AB9D-1E8AEEF3AEFE.theme
+etc/videoeditor7/theme/249B5FAC-CC0B-4745-AFE2-46B875C80CDA.theme
+etc/videoeditor7/theme/0ABAAB00-D327-4650-A6C3-71252C6B752D.theme
+etc/videoeditor7/theme/3F3E7A79-3D3B-4B0B-B6B5-414C4DB6A283.theme
+etc/videoeditor7/theme/FBDF22EE-8908-4736-BEA9-BC10D3C0574D.theme
+etc/videoeditor7/theme/F2969925-7BA9-4C6D-A91C-6DE327EB9B30.theme
+etc/videoeditor7/theme/F91F37A8-BD10-40B5-A476-56019566D015.theme
+etc/videoeditor7/transition/641DC0DC-FDF9-4DF7-A268-C5F5B0E3293E.videotransition
+etc/videoeditor7/transition/54C93F85-C026-4EBE-80CD-F51C31D5E07D.videotransition
+etc/videoeditor7/transition/EB2B0E57-C3BF-4361-802A-90620C5CCEDE.videotransition
+etc/videoeditor7/transition/0F241EB7-BD8C-491F-BC46-8776FEDA4C97.videotransition
+etc/videoeditor7/transition/9CA48E0E-9523-4408-BEEA-DCCF7B5A4024.videotransition
+etc/videoeditor7/transition/FCC6384D-1459-4C44-B05F-496AFC472A83.videotransition
+etc/videoeditor7/transition/71EB679A-4B0F-4218-8F38-1B4BCBD48266.videotransition
+etc/videoeditor7/transition/3DEFF9D6-C2A4-4A1E-A817-BA90565D1AD4.videotransition
+etc/videoeditor7/transition/ECE4B448-D61B-49CB-BD17-580582703061.videotransition
+etc/videoeditor7/transition/8DD3F560-A587-4C09-9AEC-9DA38AA5D5C5.videotransition
+etc/videoeditor7/transition/D691C32F-D9E5-40B2-9718-C15224D6E121.videotransition
+etc/videoeditor7/transition/0499C962-9CDE-4B0C-A4DC-3F09C5A8D12E.videotransition
+etc/videoeditor7/music/5.mp3
+etc/videoeditor7/music/1.mp3
+etc/videoeditor7/music/3.mp3
+etc/videoeditor7/music/9.mp3
+etc/videoeditor7/music/10.mp3
+etc/videoeditor7/music/2.mp3
+etc/videoeditor7/music/6.mp3
+etc/videoeditor7/music/8.mp3
+etc/videoeditor7/music/4.mp3
+etc/videoeditor7/music/7.mp3
diff --git a/sepolicy/private/file.te b/sepolicy/private/file.te
new file mode 100644
index 0000000..1dc4afc
--- /dev/null
+++ b/sepolicy/private/file.te
@@ -0,0 +1,2 @@
+# rootfs
+type log_file, file_type;
diff --git a/sepolicy/private/file_contexts b/sepolicy/private/file_contexts
new file mode 100644
index 0000000..4fd5d35
--- /dev/null
+++ b/sepolicy/private/file_contexts
@@ -0,0 +1,3 @@
+# Files in rootfs
+/motor_fw1(/.*)? u:object_r:log_file:s0
+/motor_fw2(/.*)? u:object_r:log_file:s0
diff --git a/setup-makefiles.sh b/setup-makefiles.sh
index 2a2a3ec..b94340e 100755
--- a/setup-makefiles.sh
+++ b/setup-makefiles.sh
@@ -20,7 +20,7 @@
set -e
# Required!
-export DEVICE=rog3
+export DEVICE=zenfone7
export DEVICE_COMMON=sm8250-common
export VENDOR=asus
diff --git a/system.prop b/system.prop
index e69de29..aedcc19 100644
--- a/system.prop
+++ b/system.prop
@@ -0,0 +1,58 @@
+#ASUS_BSP Add for Dirac sound effect feature
+ro.vendor.dirac.acs.controller=gef
+ro.vendor.dirac.acs.storeSettings=1
+ro.vendor.dirac.acs.ignore_error=1
+ro.vendor.dirac.gef.int.did=0xF,0x313
+ro.vendor.dirac.gef.ext.did=0xA,0x2D
+ro.vendor.dirac.gef.int.tid=0x10012D00,0x10012D02
+ro.vendor.dirac.gef.int.mid=0x10012DE0,0x10012DE2
+ro.vendor.dirac.gef.ext.mid=0x10012DE1
+ro.vendor.dirac.config=16
+
+#ASUS_BSP_SZ: ZF7 add gfx driver apk
+ro.gfx.driver.0=com.asus.gpudrivers.sm8250.zs670ks.api29
+ro.gfx.driver.1=com.qualcomm.qti.gpudrivers.sm8250.api29
+
+vendor.camera.cam10.crop_region=2:0,0,4032,3024;6:728,546,3304,2478;3:1584,1189,2448,1836
+vendor.camera.cam11.crop_region=4:0,0,4032,3024;7:728,546,3304,2478;5:1584,1189,2448,1836
+vendor.camera.ai_scene_mode=2:1;3:1;4:1;5:1;6:1;7:1;8:0;9:0;10:1;11:1
+vendor.camera.preview_beauty=6:1;7:1;2:1;4:1;3:1;5:1;8:1;9:1;10:1;11:1
+vendor.camera.preview_portrait=6:0;7:0;2:0;4:0;3:0;5:0
+vendor.camera.cam6.video_fps=HD@30,FHD@60,4K@60
+vendor.camera.cam7.video_fps=HD@30,FHD@60,4K@60
+vendor.camera.cam2.video_fps=HD@30,FHD@60,4K@60
+vendor.camera.cam4.video_fps=HD@30,FHD@60,4K@60
+vendor.camera.cam3.video_fps=HD@30,FHD@30
+vendor.camera.cam5.video_fps=HD@30,FHD@30
+vendor.camera.cam10.video_fps=HD@30,FHD@60,4K@60
+vendor.camera.cam11.video_fps=HD@30,FHD@60,4K@60
+vendor.camera.dual_bokeh=6:0;7:0;2:0;4:0;3:0;5:0;8:1;9:1
+vendor.camera.lens_type=6:std;7:std;2:wid;4:wid;3:tel;5:tel;8:vir;9:vir;10:sat;11:sat
+vendor.camera.use_frame_processor=0
+vendor.camera.undistortion.preview=6:0;7:0;2:1;4:1;3:0;5:0;10:1;11:1
+vendor.camera.undistortion.video=6:0;7:0;2:0;4:0;3:0;5:0
+vendor.camera.cam7.preview_fps_range=8,42
+vendor.camera.cam8.preview_fps_range=8,42
+vendor.camera.capture.override_max_digital_zoom=6:8;7:8
+vendor.camera.cam6.stream_list=1P/2Y/1J
+vendor.camera.cam7.stream_list=1P/2Y/1J
+vendor.camera.cam2.stream_list=1P/2Y/1J
+vendor.camera.cam4.stream_list=1P/2Y/1J
+vendor.camera.cam6.exposure_time_range=100000,32000000000
+vendor.camera.cam7.exposure_time_range=100000,32000000000
+vendor.camera.cam2.exposure_time_range=100000,32000000000
+vendor.camera.cam4.exposure_time_range=100000,32000000000
+vendor.camera.cam3.exposure_time_range=100000,16000000000
+vendor.camera.cam5.exposure_time_range=100000,16000000000
+vendor.camera.cam6.eis.sup_list=8K@30,4K@60,4K@30,FHD@60,FHD@30,HD@30
+vendor.camera.cam7.eis.sup_list=8K@30,4K@60,4K@30,FHD@60,FHD@30,HD@30
+vendor.camera.cam2.eis.sup_list=4K@60,4K@30,FHD@60,FHD@30,HD@30
+vendor.camera.cam4.eis.sup_list=4K@60,4K@30,FHD@60,FHD@30,HD@30
+vendor.camera.cam3.eis.sup_list=FHD@60,FHD@30,HD@30
+vendor.camera.cam5.eis.sup_list=FHD@60,FHD@30,HD@30
+vendor.camera.cam10.eis.sup_list=8K@30,4K@60,FHD@60,FHD@30,HD@30
+vendor.camera.cam11.eis.sup_list=8K@30,4K@60,FHD@60,FHD@30,HD@30
+vendor.camera.fovc=6:1;7:1;2:1;4:1;3:1;5:1;10:0;11:0
+vendor.camera.expTimeMax=0
+vendor.camera.night=6:1;7:1;2:1;4:1;3:0;5:0;10:1;11:1
+vendor.camera.atdtest=6:11;2:0;3:0
\ No newline at end of file