Compare commits
359 Commits
2379aef5ef
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
9e1fb030ea
|
|||
|
bd9abc151e
|
|||
|
7112909778
|
|||
|
d320968228
|
|||
|
45131ecf57
|
|||
|
2e2c89d43a
|
|||
|
a51df49649
|
|||
|
cb576a9de2
|
|||
|
16ef215f3f
|
|||
|
|
f1855ffc92 | ||
|
|
b834dbf989 | ||
|
|
7a59061fc9 | ||
|
|
b639b8ee63 | ||
|
|
6960beee5e | ||
|
|
89249d182f | ||
|
|
e43b0bf74a | ||
|
|
a8ac8dfb69 | ||
|
|
f7e2cd8caa | ||
|
|
0ce10a4d61 | ||
|
|
3d1ed602ff | ||
|
|
caee89e14d | ||
|
|
5feee184df | ||
|
|
9d6fa4fd29 | ||
|
|
c85c62bf43 | ||
|
|
b03a8b8652 | ||
|
|
d730ccc408 | ||
|
|
455d2793a7 | ||
|
|
50b670a59f | ||
|
|
e189c2d214 | ||
| 2e22c3def2 | |||
| 9c971370ec | |||
| 70836b68ff | |||
| 62411f5096 | |||
| 0201c2e708 | |||
| 760e9725ba | |||
| b110ccbedd | |||
| 1423d93346 | |||
| 0727551599 | |||
| 93ba6658ef | |||
| 30c58bca72 | |||
| f12d9a3cc4 | |||
| c8b7a6a2b5 | |||
| b2f3b1291c | |||
| 690c629f3d | |||
| 81961dcb45 | |||
| a422dba30a | |||
|
|
32642e4fb1 | ||
| 2deaea05cc | |||
| 258760e5b4 | |||
| 475a5d1b81 | |||
| 3a64b059b0 | |||
| 643c10487b | |||
| 6197aef279 | |||
| 775859c093 | |||
| f01a294f8b | |||
| da00ba147f | |||
| c89c3338aa | |||
| 56e2cb3805 | |||
| 2f6ce0d6f4 | |||
| 057e1929c7 | |||
| 078190f709 | |||
| f4bb9f0a0e | |||
| dd9d263b0c | |||
| 8957b37398 | |||
| ff8f6f2d40 | |||
| 03478237ab | |||
| 9dfdf12476 | |||
| 1aef0e72d8 | |||
| 5e7196ad00 | |||
| 9106bb8298 | |||
| a42a912813 | |||
| ef7a81d855 | |||
| 2091f04cb8 | |||
| 9a986ce1ba | |||
| 31192243cd | |||
| edf29455a4 | |||
| c833df947b | |||
| 458967231b | |||
| 2a2f2b3836 | |||
| 99c253e95f | |||
| 2b316448a4 | |||
| 628f1c044a | |||
| dccfb91aaa | |||
| 5e5986adbe | |||
| 75b1c94ac0 | |||
| e966a43bb4 | |||
| c1989c98be | |||
| 037f1e4eed | |||
| 5b5b0ef363 | |||
| 777629d45a | |||
| bb6521101d | |||
| 6230019780 | |||
| 8b8b05d186 | |||
| ad0324cbc9 | |||
| 1e93888091 | |||
| aafee81383 | |||
| f14bb5bccc | |||
| c7b5572475 | |||
| 9bb121e779 | |||
| 4201de603d | |||
| 1f11ec1790 | |||
| 0a2a61a17e | |||
| 236fba01d4 | |||
| ba66dfed8e | |||
| a89a273a58 | |||
| 2102d14be2 | |||
| 506cd71762 | |||
| 1ebc6eba2e | |||
| 9ae1054585 | |||
| d4c2b906f2 | |||
| 826e2f5417 | |||
| 5ec4733eb6 | |||
| 71fe9ef399 | |||
| 1fa7442cdf | |||
| 0dbe62166e | |||
| b62ca0be34 | |||
| 5d1877ba3d | |||
| 1a008f94d1 | |||
| b6fb6bc757 | |||
| c89fde7530 | |||
| d17d970b25 | |||
| 962b8b8279 | |||
| 5809e9c00c | |||
| fff6e4bcdc | |||
| ee32499165 | |||
| de07a5f47a | |||
| c1a7b24957 | |||
| 15a0804406 | |||
| e84b9b8fd8 | |||
| 17ee052d7f | |||
| a550b93d23 | |||
| 59ebba0cc0 | |||
| 8bf26c5805 | |||
| 6c8d19eb4c | |||
| 07c100e2e2 | |||
| f51ef42f95 | |||
| 33b216d183 | |||
| e3402261ce | |||
| 0bfc6f5d2d | |||
| f346b68b55 | |||
| 75f924f404 | |||
| 16843a287f | |||
| d5888cd972 | |||
| 87edffbd6f | |||
| 9dab723855 | |||
| 63f21cf183 | |||
| 899df863b6 | |||
| db6396d11f | |||
| 1fd7d39a2c | |||
| 4aea05214e | |||
| 8e96c847fa | |||
| e8b5df6796 | |||
| 1cdb5581e4 | |||
| b3414933ee | |||
| 29f47b6fe9 | |||
| d58c7292a4 | |||
| c1ebc5eee4 | |||
| c59139d2ee | |||
| 31177e8bc5 | |||
| c5a104d961 | |||
| 3dae521ca0 | |||
| 158e456dd3 | |||
| f85ea79aab | |||
| 5ac05c85f1 | |||
| a53b31c013 | |||
| a55a0f7782 | |||
| 9d8235ddce | |||
| 5a699f16b1 | |||
| 7f8cf84bc8 | |||
| dd0ad19fe1 | |||
| a6f3e693b2 | |||
| c407944745 | |||
| 2bd1fcd5ab | |||
| d4cfe8ebbf | |||
| c0aea88245 | |||
| f0acf831b3 | |||
| f0e66109df | |||
| abeacac18c | |||
| b5fec06508 | |||
| 037cb82411 | |||
| 7e970cd195 | |||
| cb0674e7be | |||
| 9c32e71fb3 | |||
| 7e08ec70ca | |||
| de07ffd6e9 | |||
| 2499a98a0e | |||
| 766911e7b4 | |||
| 44bb9bb1c8 | |||
| de31afbd2e | |||
| b63c8ba30a | |||
| 571ac60d75 | |||
| 0a354eca48 | |||
| ffca430c04 | |||
| cd29747a85 | |||
| ed80ef57de | |||
| be685be826 | |||
| 366298d67e | |||
| 864bc5f159 | |||
| 8bf1e081cd | |||
| 12ba48106e | |||
| f1f99918b0 | |||
| 4a32bb90dd | |||
| ac6f31f828 | |||
| 834c397861 | |||
| 35e2b1e8ac | |||
| cffb2de42c | |||
| 2b9f40d4c8 | |||
| 527400f497 | |||
| a3bd9d37be | |||
| 1f86ba1f18 | |||
| ea40c54ccd | |||
| b5b7ac1cb6 | |||
| 96607d69be | |||
| 7c4cab5bd0 | |||
| df2a683e3d | |||
| 350ce6d465 | |||
| 62c5a61dc0 | |||
| 06e294ab84 | |||
| 924d433c0d | |||
| 9dd44b3878 | |||
| f6d23fdb19 | |||
| 91fdc811eb | |||
| 65101a13e2 | |||
| 16c4f0e5e6 | |||
| ba030790d5 | |||
| 691c8b5665 | |||
| 916deadd0e | |||
| ba9294954a | |||
| 933845c74f | |||
| 31aa41db3d | |||
| 8b968208d3 | |||
| 6899b8625d | |||
| 944d90d5a6 | |||
| 1eb2f4dbdd | |||
| fc1daeb64c | |||
| b571606e76 | |||
| 670e2df365 | |||
| d769483c2e | |||
| 756aee0ef9 | |||
| 7326e1f3b3 | |||
| 9cb38ea22f | |||
| 8b087ce8d9 | |||
| 8cd32a9e1a | |||
| 264ccf677b | |||
| 108455a391 | |||
| 0c1ca8abe8 | |||
| 37440670a7 | |||
| 183ff7a9b2 | |||
| 2dee349210 | |||
| ca802689ed | |||
| 70444f6b5c | |||
| e93ca5ba90 | |||
| c2ba184e1d | |||
| b6411393a7 | |||
| bdc1e9b858 | |||
| e7fda32d11 | |||
| 60a0ac2e64 | |||
| e05d9b2963 | |||
| c386a7517f | |||
| 862424eb05 | |||
| 7398eaeeaa | |||
| f5e2fc1326 | |||
| b3b2aa4b5b | |||
| 3378b0f495 | |||
| 200d571277 | |||
| 79d6451c3f | |||
| 2b1685c3cc | |||
| 684ba7d140 | |||
| b71ce4bea9 | |||
| db560185a5 | |||
| 5cab73f2a4 | |||
| fb4715ae8d | |||
| fe42919ce1 | |||
| 2080d60914 | |||
| 28f942cbf5 | |||
| aa8ae5f4a4 | |||
| cc567f89b6 | |||
| 2332cae4df | |||
| 6237f916a9 | |||
| 4029a63ff3 | |||
| bd5c2bb93c | |||
| 53e33845e6 | |||
| d6f577e92e | |||
| 7c9a796255 | |||
| ec9fe4d6b7 | |||
| d9a71f213d | |||
| 80bbc11e97 | |||
| c63b302f34 | |||
| e578bcf66c | |||
| d5d521c890 | |||
| c8eb75fec5 | |||
| 5de0d8a2b8 | |||
| 1c97f26330 | |||
| 606d9655aa | |||
| 5e2e6a25e7 | |||
| df3187ef08 | |||
| fc1cf6260b | |||
| 8451fbeb72 | |||
| 0fb9e1366a | |||
| ce947dd678 | |||
| 2c610f1809 | |||
| 7d8c05c144 | |||
| 5778931e3f | |||
| 84ac5a093e | |||
| ef46fe6e72 | |||
| 8fd7cd2945 | |||
| c940437ea4 | |||
| 0bdb545552 | |||
| 70424241b0 | |||
| 46ebf66cb6 | |||
| 96731a97b3 | |||
| 86a8d6a6d6 | |||
| aecaa2bc01 | |||
| 5fe425a738 | |||
| 73dc7e2e75 | |||
| 982b55c01c | |||
| b880c49f4c | |||
| e11e0ffaf6 | |||
| 3a71f31dbe | |||
| 103c35c7a0 | |||
| a03f779b30 | |||
| b363ae4c58 | |||
| b54fea945f | |||
| abc979c40c | |||
| 74e7659db1 | |||
| 0d28432b40 | |||
| cd8e27c54c | |||
| cc2cc92ff9 | |||
| 82d5d1e7f4 | |||
| e41f064f2d | |||
| ee7d8501d2 | |||
| 6540a2df69 | |||
| e1d31fd291 | |||
| 19f14de64c | |||
| ae52e9267f | |||
| f654758d52 | |||
| 1b08a72527 | |||
| ca8c6c2ffb | |||
| 3c6bbbb817 | |||
| 6cde865498 | |||
| e0185b8d22 | |||
| 152c8f2995 | |||
| 9f223667db | |||
| 2473f0cd0b | |||
| 4761320c1f | |||
| a6af50051e | |||
| 8ca28d075b | |||
| 772d06125a | |||
| 2d3ce424ae | |||
| 4a30c0539c | |||
| 1380595362 | |||
| 3655c460a9 | |||
| fa57d6ed9d | |||
| c597a1ad1d | |||
| af77342914 | |||
| 88c03f6bcd | |||
| 161868053f | |||
| ae7b387e12 | |||
| 1b56ad2b87 |
@@ -1,2 +0,0 @@
|
||||
PRODUCT_MAKEFILES := \
|
||||
$(LOCAL_DIR)/cat_s22.mk
|
||||
@@ -1,27 +0,0 @@
|
||||
include build/make/target/board/BoardConfigGsiCommon.mk
|
||||
|
||||
TARGET_ARCH := arm
|
||||
TARGET_ARCH_VARIANT := armv7-a-neon
|
||||
TARGET_CPU_VARIANT := generic
|
||||
TARGET_CPU_ABI := armeabi-v7a
|
||||
TARGET_CPU_ABI2 := armeabi
|
||||
|
||||
# TODO(b/111434759, b/111287060) SoC specific hacks
|
||||
#BOARD_ROOT_EXTRA_SYMLINKS += /vendor/lib/dsp:/dsp
|
||||
#BOARD_ROOT_EXTRA_SYMLINKS += /mnt/vendor/persist:/persist
|
||||
#BOARD_ROOT_EXTRA_SYMLINKS += /vendor/firmware_mnt:/firmware
|
||||
|
||||
# TODO(b/36764215): remove this setting when the generic system image
|
||||
# no longer has QCOM-specific directories under /.
|
||||
#BOARD_SEPOLICY_DIRS += build/make/target/board/generic_arm64/sepolicy
|
||||
BOARD_SEPOLICY_DIRS += device/wephone/cat/sepolicy
|
||||
|
||||
TARGET_ENABLE_MEDIADRM_64 :=
|
||||
|
||||
TARGET_SYSTEM_PROP := device/wephone/cat/system.prop $(TARGET_SYSTEM_PROP)
|
||||
|
||||
ifeq ($(BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE),)
|
||||
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648
|
||||
else
|
||||
BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE := 33554432
|
||||
endif
|
||||
@@ -1,2 +0,0 @@
|
||||
allow system_server sysfs_board_properties:dir search;
|
||||
allow system_server sysfs_board_properties:file r_file_perms;
|
||||
@@ -1,3 +0,0 @@
|
||||
#11-14 21:15:02.748 477 477 I auditd : type=1400 audit(0.0:104): avc: denied { search } for comm="BootAnimation" name="dri" dev="tmpfs" ino=1108 scontext=u:r:bootanim:s0 tcontext=u:object_r:gpu_device:s0 tclass=dir permissive=0
|
||||
#Seen on some MTK devices
|
||||
allow bootanim gpu_device:dir r_dir_perms;
|
||||
@@ -1,22 +0,0 @@
|
||||
/system/bin/phh-su u:object_r:phhsu_exec:s0
|
||||
/system/bin/vndk-detect u:object_r:vndk_detect_exec:s0
|
||||
/system/etc/usb_audio_policy_configuration.xml u:object_r:vendor_configs_file:s0
|
||||
/system/bin/rw-system.sh u:object_r:phhsu_exec:s0
|
||||
/system/bin/phh-on-boot.sh u:object_r:phhsu_exec:s0
|
||||
/system/bin/phh-on-data.sh u:object_r:phhsu_exec:s0
|
||||
/system/bin/asus-motor u:object_r:phhsu_exec:s0
|
||||
|
||||
#/system/bin/fsck\.exfat u:object_r:fsck_exec:s0
|
||||
/system/bin/fsck\.ntfs u:object_r:fsck_exec:s0
|
||||
|
||||
/bt_firmware(/.*)? u:object_r:bt_firmware_file:s0
|
||||
|
||||
/sec_storage(/.*)? u:object_r:teecd_data_file:s0
|
||||
/dev/dsm u:object_r:dmd_device:s0
|
||||
|
||||
/system/bin/hw/android.hardware.biometrics.fingerprint@2.1-service.oppo.compat u:object_r:hal_fingerprint_oppo_compat_exec:s0
|
||||
/system/bin/hw/android.hardware.biometrics.fingerprint@2.1-service.oplus.compat u:object_r:hal_fingerprint_oppo_compat_exec:s0
|
||||
|
||||
/efs u:object_r:efs_file:s0
|
||||
|
||||
/dev/smcinvoke u:object_r:smcinvoke_device:s0
|
||||
@@ -1 +0,0 @@
|
||||
genfscon sysfs /board_properties u:object_r:sysfs_board_properties:s0
|
||||
@@ -1,9 +0,0 @@
|
||||
hal_client_domain(hal_fingerprint_oppo_compat, hal_fingerprint)
|
||||
hal_server_domain(hal_fingerprint_oppo_compat, hal_fingerprint)
|
||||
|
||||
type hal_fingerprint_oppo_compat_exec, exec_type, vendor_file_type, file_type;
|
||||
init_daemon_domain(hal_fingerprint_oppo_compat)
|
||||
|
||||
|
||||
type hal_fingerprint_oppo, domain;
|
||||
allow hal_fingerprint_oppo vendor_default_prop:property_service { set };
|
||||
@@ -1 +0,0 @@
|
||||
allow priv_app overlay_service:service_manager find;
|
||||
@@ -1,4 +0,0 @@
|
||||
type hostapd, domain;
|
||||
|
||||
allow hostapd wifi_data_file:dir create_dir_perms;
|
||||
allow hostapd wifi_data_file:file create_file_perms;
|
||||
@@ -1,13 +0,0 @@
|
||||
#This is in Android 8.0, but not 8.1
|
||||
domain_trans(init, rootfs, adbd)
|
||||
|
||||
#This is used on Huawei devices to f2fs data partition
|
||||
allow init userdata_block_device:blk_file relabelto;
|
||||
allow init userdata_block_device:lnk_file relabelto;
|
||||
|
||||
allow vendor_init vendor_init:capability { sys_module };
|
||||
|
||||
allow init system_file:lnk_file create_file_perms;
|
||||
|
||||
#fix adb in some cases
|
||||
allow init adbd_exec:lnk_file read;
|
||||
@@ -1 +0,0 @@
|
||||
allow lmkd self:capability sys_ptrace;
|
||||
@@ -1,18 +0,0 @@
|
||||
type proc_ged, file_type;
|
||||
allowxperm domain proc_ged:file ioctl { 0x6700-0x67ff };
|
||||
|
||||
allow init mnt_product_file:dir mounton;
|
||||
|
||||
type mtk_hal_audio, domain;
|
||||
typeattribute mtk_hal_audio hal_broadcastradio_client;
|
||||
|
||||
type mtk_hal_power, domain;
|
||||
allow mtk_hal_power system_data_root_file:file create_file_perms;
|
||||
allow zygote ashmem_device:chr_file execute;
|
||||
|
||||
attribute hal_mms_server;
|
||||
binder_call({appdomain -isolated_app}, hal_mms_server)
|
||||
binder_call(hal_mms_server, {appdomain -isolated_app})
|
||||
|
||||
type mtk_hal_mms_hwservice, hwservice_manager_type;
|
||||
allow { appdomain -isolated_app } mtk_hal_mms_hwservice:hwservice_manager find;
|
||||
@@ -1,10 +0,0 @@
|
||||
qti.ims.ext u:object_r:radio_service:s0
|
||||
# SPRD IMS
|
||||
ims_ex u:object_r:radio_service:s0
|
||||
ims_ut_ex u:object_r:radio_service:s0
|
||||
ims_doze_manager u:object_r:radio_service:s0
|
||||
irit u:object_r:radio_service:s0
|
||||
|
||||
# MTK IMS
|
||||
mwis u:object_r:radio_service:s0
|
||||
mtkIms u:object_r:radio_service:s0
|
||||
@@ -1,151 +0,0 @@
|
||||
type phhsu_daemon, domain, mlstrustedsubject;
|
||||
type phhsu_exec, exec_type, file_type;
|
||||
type phhsu_daemon_tmpfs, file_type;
|
||||
|
||||
typeattribute phhsu_daemon coredomain;
|
||||
permissive phhsu_daemon;
|
||||
|
||||
tmpfs_domain(phhsu_daemon);
|
||||
domain_auto_trans(init, phhsu_exec, phhsu_daemon);
|
||||
file_type_auto_trans(phhsu_daemon, device, phhsu_daemon);
|
||||
|
||||
allow { appdomain shell } phhsu_daemon:unix_stream_socket { connectto write read };
|
||||
allow { appdomain shell } phhsu_daemon:sock_file { write read };
|
||||
allow { appdomain shell } phhsu_exec:file { getattr read open execute execute_no_trans };
|
||||
|
||||
create_pty(shell)
|
||||
allowxperm shell devpts:chr_file ioctl { TCSETSF TCGETS unpriv_tty_ioctls };
|
||||
allowxperm { phhsu_daemon untrusted_app untrusted_app_27 } untrusted_app_all_devpts:chr_file ioctl { TCSETSF TCGETS unpriv_tty_ioctls };
|
||||
|
||||
allow servicemanager phhsu_daemon:dir { search read };
|
||||
allow servicemanager phhsu_daemon:file { open read };
|
||||
allow servicemanager phhsu_daemon:process { getattr };
|
||||
allow servicemanager phhsu_daemon:binder { call transfer };
|
||||
|
||||
typeattribute phhsu_daemon mlstrustedobject;
|
||||
typeattribute phhsu_daemon mlstrustedsubject;
|
||||
|
||||
allow shell su_exec:file getattr;
|
||||
typeattribute su mlstrustedsubject;
|
||||
|
||||
allow phhsu_daemon { system_api_service app_api_service system_server_service }:service_manager find;
|
||||
|
||||
allow system_server phhsu_daemon:fifo_file { read write getattr };
|
||||
allow system_server phhsu_daemon:fd use;
|
||||
allow system_server phhsu_daemon:binder { call transfer };
|
||||
allow system_server shell_devpts:chr_file { read write };
|
||||
|
||||
# Add su to various domains
|
||||
net_domain(phhsu_daemon)
|
||||
|
||||
hwbinder_use(phhsu_daemon)
|
||||
|
||||
allow domain untrusted_app_all_devpts:chr_file { getattr read write };
|
||||
allow phhsu_daemon untrusted_app_all_devpts:chr_file { getattr read write open ioctl };
|
||||
allow phhsu_daemon untrusted_app_all:fifo_file { getattr read write open ioctl };
|
||||
allow phhsu_daemon zygote_exec:file { execute read open execute_no_trans getattr };
|
||||
|
||||
allow appdomain phhsu_daemon:dir { search };
|
||||
|
||||
allow phhsu_daemon self:global_capability_class_set { sys_resource sys_ptrace };
|
||||
|
||||
allow phhsu_daemon self:dir rw_dir_perms;
|
||||
allow phhsu_daemon self:file { rwx_file_perms create rename setattr unlink };
|
||||
allow phhsu_daemon self:lnk_file { r_file_perms execmod };
|
||||
|
||||
allow phhsu_daemon adbd_exec:file { getattr read };
|
||||
allow phhsu_daemon { rootfs same_process_hal_file system_file tmpfs }:file { mounton getattr };
|
||||
allow phhsu_daemon self:capability { sys_admin chown setuid setgid net_raw dac_override dac_read_search kill fowner mknod };
|
||||
allow phhsu_daemon self:capability2 { syslog };
|
||||
allow phhsu_daemon shell_exec:file rx_file_perms;
|
||||
allow phhsu_daemon system_file:file { rx_file_perms entrypoint };
|
||||
allow phhsu_daemon kmsg_device:chr_file { ioctl w_file_perms };
|
||||
allow phhsu_daemon toolbox_exec:file rx_file_perms;
|
||||
allow phhsu_daemon system_block_device:{ lnk_file file } r_file_perms;
|
||||
|
||||
allow { phhsu_daemon shell } domain:dir rw_dir_perms;
|
||||
allow { phhsu_daemon shell } domain:file rw_file_perms;
|
||||
allow { phhsu_daemon shell } domain:lnk_file rw_file_perms;
|
||||
allow { phhsu_daemon shell } rootfs:file { rwx_file_perms create rename setattr unlink };
|
||||
allow { phhsu_daemon shell } rootfs:dir rw_dir_perms;
|
||||
allow phhsu_daemon asec_apk_file:dir rw_dir_perms;
|
||||
|
||||
allow phhsu_daemon shell_devpts:chr_file rw_file_perms;
|
||||
|
||||
allow phhsu_daemon app_data_file:dir rw_dir_perms;
|
||||
allow phhsu_daemon app_data_file:file { rwx_file_perms create rename setattr unlink };
|
||||
allow phhsu_daemon dalvikcache_data_file:dir rw_dir_perms;
|
||||
allow phhsu_daemon dalvikcache_data_file:file { rwx_file_perms create rename setattr unlink };
|
||||
allow phhsu_daemon dalvikcache_data_file:lnk_file { r_file_perms execmod };
|
||||
allow phhsu_daemon system_data_file:file { rwx_file_perms create rename setattr unlink };
|
||||
allow phhsu_daemon system_data_file:dir rw_dir_perms;
|
||||
allow phhsu_daemon system_data_file:file { rwx_file_perms create rename setattr unlink };
|
||||
allow phhsu_daemon system_file:dir rw_dir_perms;
|
||||
allow phhsu_daemon system_file:file { rwx_file_perms create rename setattr unlink };
|
||||
allow phhsu_daemon init:unix_stream_socket { connectto };
|
||||
allow phhsu_daemon self:process { ptrace setexec execmem setfscreate };
|
||||
allow phhsu_daemon app_data_file:file { rwx_file_perms create rename setattr unlink };
|
||||
allow phhsu_daemon app_data_file:dir rw_dir_perms;
|
||||
allow phhsu_daemon ashmem_device:chr_file { execute };
|
||||
allow phhsu_daemon dex2oat_exec:file rx_file_perms;
|
||||
|
||||
|
||||
allow phhsu_daemon phhsu_daemon_tmpfs:file rwx_file_perms;
|
||||
|
||||
allow phhsu_daemon { proc_type dev_type exec_type file_type sysfs_type fs_type phhsu_daemon }:file { rwx_file_perms create mounton setattr getattr relabelto relabelfrom unlink rename };
|
||||
allow phhsu_daemon { proc_type dev_type exec_type file_type sysfs_type fs_type phhsu_daemon }:lnk_file { rw_file_perms create mounton setattr getattr relabelto relabelfrom unlink rename};
|
||||
allow phhsu_daemon { proc_type dev_type exec_type file_type sysfs_type fs_type phhsu_daemon }:dir { rw_dir_perms create mounton setattr getattr relabelto relabelfrom unlink rename};
|
||||
allow phhsu_daemon { proc_type dev_type exec_type file_type sysfs_type fs_type phhsu_daemon }:chr_file { rwx_file_perms unlink rename ioctl};
|
||||
allow phhsu_daemon { proc_type dev_type exec_type file_type sysfs_type fs_type phhsu_daemon }:blk_file { rw_file_perms create unlink rename ioctl};
|
||||
|
||||
allow phhsu_daemon device:file rwx_file_perms;
|
||||
allow phhsu_daemon device:dir rw_dir_perms;
|
||||
|
||||
allow phhsu_daemon domain:process { ptrace signal signull getattr };
|
||||
allow phhsu_daemon selinuxfs:file rwx_file_perms;
|
||||
allow domain phhsu_daemon:process { sigchld };
|
||||
allow phhsu_daemon domain:binder { call transfer };
|
||||
allow phhsu_daemon kernel:system { syslog_read syslog_mod };
|
||||
allow phhsu_daemon kernel:security { setenforce compute_av };
|
||||
allow phhsu_daemon domain:unix_stream_socket { getattr };
|
||||
|
||||
allow phhsu_daemon logdr_socket:sock_file write;
|
||||
allow phhsu_daemon logd:unix_stream_socket connectto;
|
||||
|
||||
allow phhsu_daemon property_type:property_service { set };
|
||||
allow phhsu_daemon property_socket:sock_file { write };
|
||||
allow phhsu_daemon property_type:file rw_file_perms;
|
||||
allow phhsu_daemon { hwservicemanager hwservice_manager_type }:hwservice_manager { list add find };
|
||||
allow phhsu_daemon domain:unix_dgram_socket rw_socket_perms;
|
||||
|
||||
allow phhsu_daemon tombstoned_intercept_socket:sock_file { write };
|
||||
allow phhsu_daemon tombstoned:unix_stream_socket { connectto };
|
||||
|
||||
allow phhsu_daemon { property_data_file data_file_type tmpfs }:file create_file_perms;
|
||||
allow phhsu_daemon { property_data_file data_file_type tmpfs }:dir create_dir_perms;
|
||||
|
||||
allow phhsu_daemon { tmpfs fs_type }:filesystem { mount remount unmount associate };
|
||||
|
||||
allow phhsu_daemon phhsu_daemon:file relabelfrom;
|
||||
|
||||
allow phhsu_daemon properties_device:dir { map };
|
||||
allow phhsu_daemon { tmpfs }:dir { mounton };
|
||||
allow phhsu_daemon { file_type shell_data_file system_file}:file { relabelto relabelfrom} ;
|
||||
|
||||
allow phhsu_daemon domain:fd { use };
|
||||
allow phhsu_daemon domain:unix_stream_socket { connectto ioctl getattr getopt read write shutdown };
|
||||
allow phhsu_daemon self:netlink_kobject_uevent_socket create_socket_perms;
|
||||
allow phhsu_daemon self:{ netlink_tcpdiag_socket } { create_socket_perms nlmsg_write nlmsg_read };
|
||||
allow phhsu_daemon self:{ netlink_selinux_socket } { create_socket_perms };
|
||||
|
||||
allow phhsu_daemon file_type:file create_file_perms;
|
||||
allow phhsu_daemon file_type:dir create_dir_perms;
|
||||
|
||||
allow phhsu_daemon domain:process { transition };
|
||||
|
||||
|
||||
# 05-09 00:05:30.149 18450 18450 W lprename: type=1400 audit(0.0:40923): avc: denied { ioctl } for path="/dev/block/sda25" dev="tmpfs" ino=19441 ioctlcmd=0x1278 scontext=u:r:phhsu_daemon:s0 tcontext=u:object_r:super_block_device:s0 tclass=blk_file permissive=0
|
||||
# 06-06 12:59:53.775 30150 30150 I auditd : type=1400 audit(0.0:35585): avc: denied { ioctl } for comm="blockdev" path="/dev/block/dm-3" dev="tmpfs" ino=12687 ioctlcmd=0x125d scontext=u:r:phhsu_daemon:s0 tcontext=u:object_r:dm_device:s0 tclass=blk_file permissive=0
|
||||
|
||||
allowxperm phhsu_daemon { file_type block_device }:blk_file ioctl { 0-0xffff };
|
||||
allowxperm phhsu_daemon { system_block_device super_block_device dm_device }:blk_file ioctl { 0x1278-0x127a 0x125d };
|
||||
@@ -1,27 +0,0 @@
|
||||
type vndk_detect, coredomain, domain;
|
||||
type vndk_detect_exec, exec_type, file_type;
|
||||
|
||||
init_daemon_domain(vndk_detect);
|
||||
allow vndk_detect sepolicy_file:file r_file_perms;
|
||||
set_prop(vndk_detect,system_prop);
|
||||
set_prop(vndk_detect,debug_prop);
|
||||
|
||||
allow vndk_detect shell_exec:file rx_file_perms;
|
||||
allow vndk_detect toolbox_exec:file rx_file_perms;
|
||||
#/system/bin/grep
|
||||
allow vndk_detect system_file:file rx_file_perms;
|
||||
|
||||
#mount -o bind /system/bin/adbd /sbin/adbd
|
||||
allow vndk_detect adbd_exec:file { getattr read };
|
||||
allow vndk_detect rootfs:file { mounton getattr };
|
||||
allow vndk_detect self:capability { sys_admin };
|
||||
|
||||
#mount -o bind /system/etc/usb_audio_policy_configuration.xml /vendor/etc/usb_audio_policy_configuration.xml
|
||||
allow init vendor_configs_file:file { getattr mounton };
|
||||
|
||||
#/sys/module/five
|
||||
allow vndk_detect sysfs:file r_file_perms;
|
||||
allow vndk_detect sysfs:dir r_dir_perms;
|
||||
|
||||
#/proc/filesystems
|
||||
allow vndk_detect proc_filesystems:file r_file_perms;
|
||||
@@ -1,2 +0,0 @@
|
||||
allow vold system_data_file:lnk_file { unlink };
|
||||
allow mediaextractor sdcard_type:file read;
|
||||
2
cats22flip/AndroidProducts.mk
Normal file
@@ -0,0 +1,2 @@
|
||||
PRODUCT_MAKEFILES := \
|
||||
$(LOCAL_DIR)/cats22flip.mk
|
||||
1
cats22flip/board-base.mk
Normal file
@@ -0,0 +1 @@
|
||||
TARGET_SYSTEM_PROP := device/wephone/cats22flip/system.prop $(TARGET_SYSTEM_PROP)
|
||||
8
cats22flip/cat/BoardConfig.mk
Normal file
@@ -0,0 +1,8 @@
|
||||
include build/make/target/board/generic/BoardConfig.mk
|
||||
include device/wephone/cats22flip/board-base.mk
|
||||
|
||||
ifeq ($(BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE),)
|
||||
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1572864000
|
||||
endif
|
||||
|
||||
TARGET_USES_64_BIT_BINDER := true
|
||||
42
cats22flip/cats22flip.mk
Normal file
@@ -0,0 +1,42 @@
|
||||
TARGET_GAPPS_ARCH := arm
|
||||
|
||||
include build/make/target/product/aosp_arm.mk
|
||||
include build/make/target/product/gsi_release.mk
|
||||
|
||||
PRODUCT_NAME := cats22flip
|
||||
PRODUCT_DEVICE := cat
|
||||
PRODUCT_BRAND := wephone
|
||||
PRODUCT_MODEL := weOs | v14.0.1 | Nehemiah
|
||||
|
||||
# This is for a device
|
||||
PRODUCT_CHARACTERISTICS := device
|
||||
|
||||
PRODUCT_PACKAGE_OVERLAYS += device/wephone/cats22flip/overlay
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/wephone/cats22flip/files/qpnp_pon.kl:$(TARGET_COPY_OUT_SYSTEM)/usr/keylayout/qpnp_pon.kl \
|
||||
device/wephone/cats22flip/files/soc_matrix_keypad.kl:$(TARGET_COPY_OUT_SYSTEM)/usr/keylayout/soc_matrix_keypad.kl \
|
||||
device/wephone/cats22flip/files/soc_matrix_keypad.kcm:$(TARGET_COPY_OUT_SYSTEM)/usr/keychars/soc_matrix_keypad.kcm
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
BromiteSystemWebView \
|
||||
Conversations \
|
||||
Davx5 \
|
||||
DeskClock \
|
||||
Etar \
|
||||
ExactCalculator \
|
||||
Gallery2 \
|
||||
K-9Mail \
|
||||
Linphone \
|
||||
Nextcloud \
|
||||
NextcloudNotes \
|
||||
OpenDocumentReader \
|
||||
Wireguard
|
||||
|
||||
PRODUCT_PACKAGES -= \
|
||||
EasterEgg \
|
||||
webview \
|
||||
libwebviewchromium_loader \
|
||||
libwebviewchromium_plat_support \
|
||||
CtsShimPrebuilt \
|
||||
CtsShimPrivPrebuilt
|
||||
2
cats22flip/files/qpnp_pon.kl
Normal file
@@ -0,0 +1,2 @@
|
||||
key 114 VOLUME_DOWN WAKE
|
||||
key 116 POWER
|
||||
17
cats22flip/files/soc_matrix_keypad.kcm
Normal file
@@ -0,0 +1,17 @@
|
||||
type FULL
|
||||
|
||||
key BUTTON_1 {
|
||||
base: fallback DPAD_UP
|
||||
}
|
||||
|
||||
key BUTTON_2 {
|
||||
base: fallback DPAD_LEFT
|
||||
}
|
||||
|
||||
key BUTTON_3 {
|
||||
base: fallback DPAD_RIGHT
|
||||
}
|
||||
|
||||
key BUTTON_4 {
|
||||
base: fallback DPAD_DOWN
|
||||
}
|
||||
52
cats22flip/files/soc_matrix_keypad.kl
Normal file
@@ -0,0 +1,52 @@
|
||||
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
|
||||
|
||||
# CLEAR
|
||||
key 14 DEL
|
||||
|
||||
# DPAD CENTER
|
||||
key 28 ENTER
|
||||
|
||||
# DPAD UP
|
||||
key 103 BUTTON_1
|
||||
|
||||
# DPAD LEFT
|
||||
key 105 BUTTON_2
|
||||
|
||||
# DPAD RIGHT
|
||||
key 106 BUTTON_3
|
||||
|
||||
# DPAD DOWN
|
||||
key 108 BUTTON_4
|
||||
|
||||
# BACK
|
||||
key 158 BACK
|
||||
|
||||
# CALL
|
||||
key 169 CALL
|
||||
|
||||
# HOME
|
||||
key 172 HOME
|
||||
|
||||
# FUNCTION
|
||||
key 248 SYM
|
||||
|
||||
# APP SWITCH
|
||||
key 580 APP_SWITCH
|
||||
|
||||
# STAR
|
||||
key 522 STAR
|
||||
|
||||
# POUND
|
||||
key 523 POUND
|
||||
|
||||
# SIDE BUTTON
|
||||
key 525 CTRL_LEFT
|
||||
|
Before Width: | Height: | Size: 2.1 MiB After Width: | Height: | Size: 2.1 MiB |
60
cats22flip/patches/button_backlights.patch
Normal file
@@ -0,0 +1,60 @@
|
||||
diff --git a/services/core/java/com/android/server/display/DisplayPowerController.java b/services/core/java/com/android/server/display/DisplayPowerController.java
|
||||
index 7c0f4197363..16758ba496e 100644
|
||||
--- a/services/core/java/com/android/server/display/DisplayPowerController.java
|
||||
+++ b/services/core/java/com/android/server/display/DisplayPowerController.java
|
||||
@@ -63,7 +63,12 @@ import com.android.server.display.whitebalance.DisplayWhiteBalanceFactory;
|
||||
import com.android.server.display.whitebalance.DisplayWhiteBalanceSettings;
|
||||
import com.android.server.policy.WindowManagerPolicy;
|
||||
|
||||
+import java.io.BufferedWriter;
|
||||
+import java.io.File;
|
||||
+import java.io.FileWriter;
|
||||
+import java.io.IOException;
|
||||
import java.io.PrintWriter;
|
||||
+import java.io.Writer;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -561,6 +566,18 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
|
||||
mDisplayWhiteBalanceController = displayWhiteBalanceController;
|
||||
}
|
||||
|
||||
+ private void changeKeyboardBacklightState(String value) {
|
||||
+ try {
|
||||
+ File outputFile = new File("/sys/class/leds/keyboard_light/", "brightness");
|
||||
+ Writer writer = new BufferedWriter(new FileWriter(outputFile));
|
||||
+
|
||||
+ writer.write(value);
|
||||
+ writer.close();
|
||||
+ } catch (IOException e) {
|
||||
+ Slog.d("NEHEMIAH", "Sorry, failed to change the value of the keyboard backlight");
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
private Sensor findDisplayLightSensor(String sensorType) {
|
||||
if (!TextUtils.isEmpty(sensorType)) {
|
||||
List<Sensor> sensors = mSensorManager.getSensorList(Sensor.TYPE_ALL);
|
||||
@@ -1154,6 +1171,7 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
|
||||
&& mReportedScreenStateToPolicy == REPORTED_TO_POLICY_SCREEN_TURNING_ON) {
|
||||
setReportedScreenState(REPORTED_TO_POLICY_SCREEN_ON);
|
||||
mWindowManagerPolicy.screenTurnedOn();
|
||||
+ changeKeyboardBacklightState("255");
|
||||
}
|
||||
|
||||
// Grab a wake lock if we have unfinished business.
|
||||
@@ -1310,6 +1328,7 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
|
||||
setReportedScreenState(REPORTED_TO_POLICY_SCREEN_OFF);
|
||||
unblockScreenOn();
|
||||
mWindowManagerPolicy.screenTurnedOff();
|
||||
+ changeKeyboardBacklightState("0");
|
||||
} else if (!isOff
|
||||
&& mReportedScreenStateToPolicy == REPORTED_TO_POLICY_SCREEN_TURNING_OFF) {
|
||||
|
||||
@@ -1317,6 +1336,7 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
|
||||
// Complete the full state transition on -> turningOff -> off.
|
||||
unblockScreenOff();
|
||||
mWindowManagerPolicy.screenTurnedOff();
|
||||
+ changeKeyboardBacklightState("0");
|
||||
setReportedScreenState(REPORTED_TO_POLICY_SCREEN_OFF);
|
||||
}
|
||||
if (!isOff && mReportedScreenStateToPolicy == REPORTED_TO_POLICY_SCREEN_OFF) {
|
||||
0
cats22flip/system.prop
Normal file
2
cm17/AndroidProducts.mk
Normal file
@@ -0,0 +1,2 @@
|
||||
PRODUCT_MAKEFILES := \
|
||||
$(LOCAL_DIR)/cm17.mk
|
||||
@@ -1,12 +1,6 @@
|
||||
#
|
||||
# All components inherited here go to system image
|
||||
#
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/mainline_system.mk)
|
||||
|
||||
# Enable mainline checking
|
||||
# PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := relaxed
|
||||
|
||||
#
|
||||
# All components inherited here go to system_ext image
|
||||
#
|
||||
@@ -21,38 +15,42 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_product.mk)
|
||||
#
|
||||
# Special settings for GSI releasing
|
||||
#
|
||||
# ifeq (aosp_arm64,$(TARGET_PRODUCT))
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_release.mk)
|
||||
# endif
|
||||
|
||||
|
||||
PRODUCT_NAME := duoqin_f21pro
|
||||
PRODUCT_DEVICE := duoqin
|
||||
PRODUCT_BRAND := generic
|
||||
PRODUCT_MODEL := F21pro - wePhone
|
||||
|
||||
# This is for a device
|
||||
PRODUCT_CHARACTERISTICS := device
|
||||
|
||||
PRODUCT_PACKAGE_OVERLAYS += device/nehemiah/wephone/overlay
|
||||
PRODUCT_NAME := cm17
|
||||
PRODUCT_DEVICE := cm17
|
||||
PRODUCT_BRAND := Android
|
||||
PRODUCT_MODEL := AOSP on ARM64
|
||||
PRODUCT_AAPT_CONFIG := normal
|
||||
PRODUCT_AAPT_PREF_CONFIG := xhdpi
|
||||
|
||||
PRODUCT_PACKAGE_OVERLAYS += device/wephone/cm17/overlay
|
||||
|
||||
# Use a more decent APN config
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/wephone/duoqin/files/mtk-kpd.idc:$(TARGET_COPY_OUT_SYSTEM)/usr/idc/mtk-kpd.idc \
|
||||
device/wephone/duoqin/files/mtk-kpd.kcm:$(TARGET_COPY_OUT_SYSTEM)/usr/keychars/mtk-kpd.kcm \
|
||||
device/wephone/duoqin/files/mtk-kpd.kl:$(TARGET_COPY_OUT_SYSTEM)/usr/keylayout/mtk-kpd.kl
|
||||
device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml
|
||||
|
||||
ifneq (,$(wildcard external/exfat))
|
||||
PRODUCT_PACKAGES += \
|
||||
mkfs.exfat \
|
||||
fsck.exfat
|
||||
endif
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
BromiteSystemWebView \
|
||||
Conversations \
|
||||
Davx5 \
|
||||
TrichromeWebView \
|
||||
Contacts \
|
||||
DeskClock \
|
||||
Etar \
|
||||
ExactCalculator \
|
||||
DeskClock \
|
||||
FDroid \
|
||||
Linphone \
|
||||
Nextcloud \
|
||||
Wireguard
|
||||
Gallery2
|
||||
|
||||
|
||||
PRODUCT_PACKAGES -= \
|
||||
EasterEgg \
|
||||
webview \
|
||||
libwebviewchromium_loader \
|
||||
libwebviewchromium_plat_support
|
||||
libwebviewchromium_plat_support
|
||||
@@ -1,5 +1,3 @@
|
||||
include build/make/target/board/BoardConfigGsiCommon.mk
|
||||
|
||||
TARGET_ARCH := arm64
|
||||
TARGET_ARCH_VARIANT := armv8-a
|
||||
TARGET_CPU_ABI := arm64-v8a
|
||||
@@ -12,20 +10,22 @@ TARGET_2ND_CPU_ABI := armeabi-v7a
|
||||
TARGET_2ND_CPU_ABI2 := armeabi
|
||||
TARGET_2ND_CPU_VARIANT := generic
|
||||
|
||||
# TODO(b/111434759, b/111287060) SoC specific hacks
|
||||
include build/make/target/board/BoardConfigGsiCommon.mk
|
||||
|
||||
# TODO(jiyong) These might be SoC specific.
|
||||
BOARD_ROOT_EXTRA_SYMLINKS += /vendor/lib/dsp:/dsp
|
||||
BOARD_ROOT_EXTRA_SYMLINKS += /mnt/vendor/persist:/persist
|
||||
BOARD_ROOT_EXTRA_SYMLINKS += /vendor/firmware_mnt:/firmware
|
||||
|
||||
# TODO(b/36764215): remove this setting when the generic system image
|
||||
# no longer has QCOM-specific directories under /.
|
||||
BOARD_SEPOLICY_DIRS += build/make/target/board/generic_arm64/sepolicy
|
||||
|
||||
|
||||
TARGET_SYSTEM_PROP := device/nehemiah/wephone/system.prop $(TARGET_SYSTEM_PROP)
|
||||
TARGET_EXFAT_DRIVER := exfat
|
||||
TARGET_SYSTEM_PROP := device/wephone/ttp/system.prop $(TARGET_SYSTEM_PROP)
|
||||
|
||||
ifeq ($(BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE),)
|
||||
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648
|
||||
else
|
||||
BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE := 33554432
|
||||
endif
|
||||
|
||||
TARGET_USES_64_BIT_BINDER := true
|
||||
|
Before Width: | Height: | Size: 2.1 MiB After Width: | Height: | Size: 2.1 MiB |
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright 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.
|
||||
-->
|
||||
|
||||
<webviewproviders>
|
||||
<!-- The default WebView implementation -->
|
||||
<webviewprovider description="Vanadium" packageName="app.vanadium.webview" availableByDefault="true">
|
||||
</webviewprovider>
|
||||
</webviewproviders>
|
||||
12242
cm17/patches/boot_image.patch
Normal file
@@ -3,3 +3,9 @@ persist.bluetooth.bluetooth_audio_hal.disabled=true
|
||||
persist.sys.bt.unsupport.features=00000000
|
||||
persist.sys.bt.unsupport.states=00000000
|
||||
persist.sys.bt.unsupport.stdfeatures=000001
|
||||
qemu.hw.mainkeys=1
|
||||
hw.lcd.width = 716
|
||||
hw.lcd.height = 720
|
||||
hw.lcd.depth = 24
|
||||
hw.lcd.density = 220
|
||||
ro.sf.lcd_density=220
|
||||
@@ -1,3 +0,0 @@
|
||||
PRODUCT_MAKEFILES := \
|
||||
$(LOCAL_DIR)/duoqin_f21pro.mk \
|
||||
$(LOCAL_DIR)/duoqin_f22pro.mk
|
||||
@@ -1,71 +0,0 @@
|
||||
# $(call inherit-product, vendor/hardware_overlay/overlay.mk)
|
||||
|
||||
#
|
||||
# All components inherited here go to system image
|
||||
#
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/generic_system.mk)
|
||||
|
||||
# Enable mainline checking
|
||||
# PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := true
|
||||
|
||||
#
|
||||
# All components inherited here go to system_ext image
|
||||
#
|
||||
$(call inherit-product, device/nehemiah/wephone/gsi_system_ext.mk)
|
||||
|
||||
#
|
||||
# All components inherited here go to product image
|
||||
#
|
||||
$(call inherit-product, device/generic/common/gsi_product.mk)
|
||||
|
||||
#
|
||||
# All components inherited here go to boot image
|
||||
#
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/board/generic_arm64/device.mk)
|
||||
|
||||
#
|
||||
# Special settings for GSI releasing
|
||||
#
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_release.mk)
|
||||
|
||||
PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS := false
|
||||
|
||||
PRODUCT_NAME := duoqin-f22pro
|
||||
PRODUCT_DEVICE := duoqin
|
||||
PRODUCT_BRAND := wePhone
|
||||
PRODUCT_MODEL := F22pro wePhone
|
||||
|
||||
PRODUCT_CHARACTERISTICS := device
|
||||
|
||||
PRODUCT_PACKAGE_OVERLAYS += device/nehemiah/wephone/overlay
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/nehemiah/wephone/files/mtk-kpd.idc:$(TARGET_COPY_OUT_SYSTEM)/usr/idc/mtk-kpd.idc \
|
||||
device/nehemiah/wephone/files/mtk-kpd.kcm:$(TARGET_COPY_OUT_SYSTEM)/usr/keychars/mtk-kpd.kcm \
|
||||
device/nehemiah/wephone/files/mtk-kpd.kl:$(TARGET_COPY_OUT_SYSTEM)/usr/keylayout/mtk-kpd.kl
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/nehemiah/wephone/files/f22pro-animation.zip:$(TARGET_COPY_OUT_SYSTEM)/media/bootanimation.zip \
|
||||
device/nehemiah/wephone/files/privapp-permissions-app.lawnchair.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-app.lawnchair.xml \
|
||||
device/nehemiah/wephone/files/privapp-permissions-net.mezimmah.wkt9.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-net.mezimmah.wkt9.xml
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
mkfs.exfat \
|
||||
fsck.exfat
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
BromiteSystemWebView \
|
||||
Contacts \
|
||||
Conversations \
|
||||
Davx5 \
|
||||
Etar \
|
||||
ExactCalculator \
|
||||
DeskClock \
|
||||
FDroid \
|
||||
Gallery2 \
|
||||
Lawnchair \
|
||||
Lawnicons \
|
||||
Linphone \
|
||||
Nextcloud \
|
||||
Wireguard
|
||||
@@ -1 +0,0 @@
|
||||
type NUMERIC
|
||||
@@ -1,38 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<permissions>
|
||||
<privapp-permissions package="app.lawnchair">
|
||||
<permission name="android.permission.INTERNET"/>
|
||||
<permission name="android.permission.PACKAGE_USAGE_STATS"/>
|
||||
<permission name="android.permission.FOREGROUND_SERVICE"/>
|
||||
<permission name="com.google.android.apps.nexuslauncher.permission.QSB"/>
|
||||
<permission name="android.permission.BROADCAST_CLOSE_SYSTEM_DIALOGS"/>
|
||||
<permission name="android.permission.CONTROL_REMOTE_APP_TRANSITION_ANIMATIONS"/>
|
||||
<permission name="android.permission.VIBRATE"/>
|
||||
<permission name="android.permission.QUERY_ALL_PACKAGES"/>
|
||||
<permission name="android.permission.START_TASKS_FROM_RECENTS"/>
|
||||
<permission name="android.permission.REMOVE_TASKS"/>
|
||||
<permission name="android.permission.WRITE_SECURE_SETTINGS"/>
|
||||
<permission name="android.permission.MANAGE_ACTIVITY_TASKS"/>
|
||||
<permission name="android.permission.STATUS_BAR"/>
|
||||
<permission name="android.permission.STOP_APP_SWITCHES"/>
|
||||
<permission name="android.permission.SET_ORIENTATION"/>
|
||||
<permission name="android.permission.READ_FRAME_BUFFER"/>
|
||||
<permission name="android.permission.MANAGE_ACCESSIBILITY"/>
|
||||
<permission name="android.permission.MONITOR_INPUT"/>
|
||||
<permission name="android.permission.ALLOW_SLIPPERY_TOUCHES"/>
|
||||
<permission name="android.permission.SYSTEM_APPLICATION_OVERLAY"/>
|
||||
<permission name="android.permission.CALL_PHONE"/>
|
||||
<permission name="android.permission.SET_WALLPAPER"/>
|
||||
<permission name="android.permission.SET_WALLPAPER_HINTS"/>
|
||||
<permission name="android.permission.BIND_APPWIDGET"/>
|
||||
<permission name="android.permission.READ_EXTERNAL_STORAGE"/>
|
||||
<permission name="android.permission.RECEIVE_BOOT_COMPLETED"/>
|
||||
<permission name="android.permission.REQUEST_DELETE_PACKAGES"/>
|
||||
<permission name="android.permission.READ_DEVICE_CONFIG"/>
|
||||
<permission name="android.permission.EXPAND_STATUS_BAR"/>
|
||||
<permission name="android.permission.ROTATE_SURFACE_FLINGER"/>
|
||||
<permission name="app.lawnchair.permission.READ_SETTINGS"/>
|
||||
<permission name="app.lawnchair.permission.WRITE_SETTINGS"/>
|
||||
<permission name="app.lawnchair.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION"/>
|
||||
</privapp-permissions>
|
||||
</permissions>
|
||||
@@ -1,9 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<permissions>
|
||||
<privapp-permissions package="net.mezimmah.wkt9">
|
||||
<permission name="android.permission.INTERNET"/>
|
||||
<permission name="android.permission.RECORD_AUDIO"/>
|
||||
<permission name="android.permission.POST_NOTIFICATIONS"/>
|
||||
<permission name="android.permission.CONTROL_DEVICE_LIGHTS"/>
|
||||
</privapp-permissions>
|
||||
</permissions>
|
||||
@@ -1,35 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2021 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.
|
||||
#
|
||||
|
||||
# This makefile contains the system_ext partition contents for CTS on
|
||||
# GSI compliance testing. Only add something here for this purpose.
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/media_system_ext.mk)
|
||||
|
||||
# handheld packages
|
||||
PRODUCT_PACKAGES += \
|
||||
Launcher3QuickStep \
|
||||
Provision \
|
||||
Settings \
|
||||
StorageManager \
|
||||
SystemUI
|
||||
|
||||
# telephony packages
|
||||
PRODUCT_PACKAGES += \
|
||||
CarrierConfig
|
||||
|
||||
# Install a copy of the debug policy in GSI.
|
||||
#PRODUCT_INSTALL_DEBUG_POLICY_TO_SYSTEM_EXT := true
|
||||
#PRODUCT_PACKAGES += system_ext_userdebug_plat_sepolicy.cil
|
||||
2
jelly_star/AndroidProducts.mk
Normal file
@@ -0,0 +1,2 @@
|
||||
PRODUCT_MAKEFILES := \
|
||||
$(LOCAL_DIR)/jelly_star.mk
|
||||
@@ -7,33 +7,44 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/mainline_system.mk)
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_system_ext.mk)
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_system_ext.mk)
|
||||
|
||||
|
||||
# Enable mainline checking
|
||||
#PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := relaxed
|
||||
|
||||
#
|
||||
# All components inherited here go to product image
|
||||
#
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_product.mk)
|
||||
#$(call inherit-product, device/generic/common/mgsi/mgsi_product.mk)
|
||||
|
||||
#
|
||||
# Special settings for GSI releasing
|
||||
#
|
||||
# ifeq (aosp_arm64,$(TARGET_PRODUCT))
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_release.mk)
|
||||
|
||||
BOARD_PLAT_PRIVATE_SEPOLICY_DIR += device/wephone/cat/sepolicy
|
||||
|
||||
# Don't build super.img.
|
||||
#PRODUCT_BUILD_SUPER_PARTITION := false
|
||||
|
||||
#PRODUCT_SOONG_NAMESPACES += device/generic/goldfish
|
||||
|
||||
PRODUCT_NAME := cat_s22
|
||||
PRODUCT_DEVICE := cat_s22
|
||||
PRODUCT_BRAND := Android
|
||||
PRODUCT_MODEL := Minimal GSI on arm32
|
||||
# endif
|
||||
|
||||
PRODUCT_CHARACTERISTICS := device
|
||||
|
||||
PRODUCT_PACKAGE_OVERLAYS += device/wephone/cat/overlay
|
||||
PRODUCT_NAME := jelly_star
|
||||
PRODUCT_DEVICE := jelly_star
|
||||
PRODUCT_BRAND := Android
|
||||
PRODUCT_MODEL := AOSP on Unihertz Jelly Star
|
||||
PRODUCT_AAPT_CONFIG := normal
|
||||
PRODUCT_AAPT_PREF_CONFIG := xhdpi
|
||||
|
||||
PRODUCT_PACKAGE_OVERLAYS += device/wephone/ttp/overlay
|
||||
|
||||
# Use a more decent APN config
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml
|
||||
|
||||
ifneq (,$(wildcard external/exfat))
|
||||
PRODUCT_PACKAGES += \
|
||||
mkfs.exfat \
|
||||
fsck.exfat
|
||||
endif
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
TrichromeWebView
|
||||
|
||||
PRODUCT_PACKAGES -= \
|
||||
EasterEgg \
|
||||
webview \
|
||||
libwebviewchromium_loader \
|
||||
libwebviewchromium_plat_support
|
||||
29
jelly_star/jelly_star/BoardConfig.mk
Normal file
@@ -0,0 +1,29 @@
|
||||
TARGET_ARCH := arm64
|
||||
TARGET_ARCH_VARIANT := armv8-a
|
||||
TARGET_CPU_ABI := arm64-v8a
|
||||
TARGET_CPU_ABI2 :=
|
||||
TARGET_CPU_VARIANT := generic
|
||||
|
||||
TARGET_2ND_ARCH := arm
|
||||
TARGET_2ND_ARCH_VARIANT := armv8-a
|
||||
TARGET_2ND_CPU_ABI := armeabi-v7a
|
||||
TARGET_2ND_CPU_ABI2 := armeabi
|
||||
TARGET_2ND_CPU_VARIANT := generic
|
||||
|
||||
include build/make/target/board/BoardConfigGsiCommon.mk
|
||||
|
||||
# TODO(jiyong) These might be SoC specific.
|
||||
BOARD_ROOT_EXTRA_SYMLINKS += /vendor/lib/dsp:/dsp
|
||||
|
||||
# TODO(b/36764215): remove this setting when the generic system image
|
||||
# no longer has QCOM-specific directories under /.
|
||||
BOARD_SEPOLICY_DIRS += build/make/target/board/generic_arm64/sepolicy
|
||||
|
||||
TARGET_EXFAT_DRIVER := exfat
|
||||
TARGET_SYSTEM_PROP := device/wephone/ttp/system.prop $(TARGET_SYSTEM_PROP)
|
||||
|
||||
ifeq ($(BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE),)
|
||||
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648
|
||||
else
|
||||
BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE := 33554432
|
||||
endif
|
||||
|
After Width: | Height: | Size: 2.1 MiB |
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<webviewproviders>
|
||||
<!-- The default WebView implementation -->
|
||||
<webviewprovider description="Vanadium" packageName="app.vanadium.webview" availableByDefault="true">
|
||||
</webviewprovider>
|
||||
</webviewproviders>
|
||||
11
jelly_star/system.prop
Normal file
@@ -0,0 +1,11 @@
|
||||
# Fixed Bluetooth audio
|
||||
persist.bluetooth.bluetooth_audio_hal.disabled=true
|
||||
persist.sys.bt.unsupport.features=00000000
|
||||
persist.sys.bt.unsupport.states=00000000
|
||||
persist.sys.bt.unsupport.stdfeatures=000001
|
||||
qemu.hw.mainkeys=1
|
||||
hw.lcd.width = 480
|
||||
hw.lcd.height = 854
|
||||
hw.lcd.depth = 24
|
||||
hw.lcd.density = 220
|
||||
ro.sf.lcd_density=220
|
||||
16659
patches/boot_image.patch
Normal file
12
patches/calendar_test.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
diff --git a/build/tasks/tests/platform_test_list.mk b/build/tasks/tests/platform_test_list.mk
|
||||
index 5c5f70fa7..4669e2b44 100644
|
||||
--- a/build/tasks/tests/platform_test_list.mk
|
||||
+++ b/build/tasks/tests/platform_test_list.mk
|
||||
@@ -20,7 +20,6 @@ platform_tests += \
|
||||
BootHelperApp \
|
||||
BusinessCard \
|
||||
CalculatorFunctionalTests \
|
||||
- CalendarTests \
|
||||
camera_client_test \
|
||||
camera_metadata_tests \
|
||||
CellBroadcastReceiverTests \
|
||||
13
patches/qsb_on_first_screen.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git a/src/com/android/launcher3/config/FeatureFlags.java b/src/com/android/launcher3/config/FeatureFlags.java
|
||||
index 33beacd4c0..bd2400ecbc 100644
|
||||
--- a/src/com/android/launcher3/config/FeatureFlags.java
|
||||
+++ b/src/com/android/launcher3/config/FeatureFlags.java
|
||||
@@ -52,7 +52,7 @@ public final class FeatureFlags {
|
||||
* Enable moving the QSB on the 0th screen of the workspace. This is not a configuration feature
|
||||
* and should be modified at a project level.
|
||||
*/
|
||||
- public static final boolean QSB_ON_FIRST_SCREEN = BuildConfig.QSB_ON_FIRST_SCREEN;
|
||||
+ public static final boolean QSB_ON_FIRST_SCREEN = false;
|
||||
|
||||
/**
|
||||
* Feature flag to handle define config changes dynamically instead of killing the process.
|
||||
2
qinf21pro/AndroidProducts.mk
Normal file
@@ -0,0 +1,2 @@
|
||||
PRODUCT_MAKEFILES := \
|
||||
$(LOCAL_DIR)/qinf21pro.mk
|
||||
1
qinf21pro/files/Vendor_0001_Product_0001_Version_0100.kl
Normal file
@@ -0,0 +1 @@
|
||||
key 139 DEL
|
||||
92
qinf21pro/files/mtk-kpd.kcm
Normal file
@@ -0,0 +1,92 @@
|
||||
type FULL
|
||||
|
||||
key BUTTON_X {
|
||||
base: fallback BACK
|
||||
fn: fallback HOME
|
||||
ctrl: fallback APP_SWITCH
|
||||
}
|
||||
|
||||
key BUTTON_Y {
|
||||
base: fallback CALL
|
||||
ctrl: fallback SYM
|
||||
}
|
||||
|
||||
key BUTTON_Z {
|
||||
base: fallback ENTER
|
||||
fn: fallback VOLUME_MUTE
|
||||
ctrl: fallback SYSRQ
|
||||
}
|
||||
|
||||
key BUTTON_1 {
|
||||
base: fallback DPAD_UP
|
||||
fn: fallback VOLUME_UP
|
||||
}
|
||||
|
||||
key BUTTON_2 {
|
||||
base: fallback DPAD_LEFT
|
||||
fn: fallback BRIGHTNESS_DOWN
|
||||
}
|
||||
|
||||
key BUTTON_3 {
|
||||
base: fallback DPAD_RIGHT
|
||||
fn: fallback BRIGHTNESS_UP
|
||||
}
|
||||
|
||||
key BUTTON_4 {
|
||||
base: fallback DPAD_DOWN
|
||||
fn: fallback VOLUME_DOWN
|
||||
}
|
||||
|
||||
key 0 {
|
||||
label: '0'
|
||||
base: '0'
|
||||
fn: '\n'
|
||||
ctrl: '\t'
|
||||
}
|
||||
|
||||
key 1 {
|
||||
label: '1'
|
||||
base: '1'
|
||||
}
|
||||
|
||||
key 2 {
|
||||
label: '2'
|
||||
base: '2'
|
||||
}
|
||||
|
||||
key 3 {
|
||||
label: '3'
|
||||
base: '3'
|
||||
}
|
||||
|
||||
key 4 {
|
||||
label: '4'
|
||||
base: '4'
|
||||
}
|
||||
|
||||
key 5 {
|
||||
label: '5'
|
||||
base: '5'
|
||||
}
|
||||
|
||||
key 6 {
|
||||
label: '6'
|
||||
base: '6'
|
||||
}
|
||||
|
||||
key 7 {
|
||||
label: '7'
|
||||
base: '7'
|
||||
fn: '*'
|
||||
}
|
||||
|
||||
key 8 {
|
||||
label: '8'
|
||||
base: '8'
|
||||
}
|
||||
|
||||
key 9 {
|
||||
label: '9'
|
||||
base: '9'
|
||||
ctrl: '#'
|
||||
}
|
||||
37
qinf21pro/files/mtk-kpd.kl
Normal file
@@ -0,0 +1,37 @@
|
||||
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
|
||||
|
||||
# DPAD UP
|
||||
key 103 BUTTON_1
|
||||
|
||||
# DPAD LEFT
|
||||
key 105 BUTTON_2
|
||||
|
||||
# DPAD RIGHT
|
||||
key 106 BUTTON_3
|
||||
|
||||
# DPAD DOWN
|
||||
key 108 BUTTON_4
|
||||
|
||||
# BACK
|
||||
key 158 BUTTON_X
|
||||
|
||||
# CALL
|
||||
key 231 BUTTON_Y
|
||||
|
||||
# DPAD CENTER
|
||||
key 352 BUTTON_Z
|
||||
|
||||
# STAR
|
||||
key 227 FUNCTION
|
||||
|
||||
# POUND
|
||||
key 523 CTRL_RIGHT
|
||||
6
qinf21pro/files/mtk-pmic-keys.idc
Normal file
@@ -0,0 +1,6 @@
|
||||
touch.deviceType = touchScreen
|
||||
touch.orientationAware = 1
|
||||
|
||||
device.internal = 1
|
||||
keyboard.layout = mtk-pmic-keys
|
||||
keyboard.characterMap = mtk-pmic-keys
|
||||
1
qinf21pro/files/mtk-pmic-keys.kcm
Normal file
@@ -0,0 +1 @@
|
||||
type SPECIAL_FUNCTION
|
||||
1
qinf21pro/files/mtk-pmic-keys.kl
Normal file
@@ -0,0 +1 @@
|
||||
key 116 POWER
|
||||
|
After Width: | Height: | Size: 2.1 MiB |
@@ -0,0 +1,56 @@
|
||||
<?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>
|
||||
<item>"wifi_br0"</item>
|
||||
<item>"wigig0"</item>
|
||||
</string-array>
|
||||
|
||||
<string-array translatable="false" name="config_tether_bluetooth_regexs">
|
||||
<item>bnep\\d</item>
|
||||
<item>"bt-pan"</item>
|
||||
</string-array>
|
||||
|
||||
<bool name="config_enableAutoPowerModes">true</bool>
|
||||
<bool name="config_intrusiveNotificationLed">true</bool>
|
||||
<string name="config_icon_mask" translatable="false">"M50 0C77.6 0 100 22.4 100 50C100 77.6 77.6 100 50 100C22.4 100 0 77.6 0 50C0 22.4 22.4 0 50 0Z"</string>
|
||||
<bool name="config_useRoundIcon">true</bool>
|
||||
|
||||
<string name="config_wallpaperCropperPackage">com.android.wallpaperpicker</string>
|
||||
<bool name="config_unplugTurnsOnScreen">true</bool>
|
||||
<integer name="config_multiuserMaximumUsers">5</integer>
|
||||
<bool name="config_enableMultiUserUI">true</bool>
|
||||
|
||||
<string name="config_dozeComponent">com.android.systemui/com.android.systemui.doze.DozeService</string>
|
||||
<bool name="config_swipe_up_gesture_setting_available">true</bool>
|
||||
<bool name="config_smart_battery_available">true</bool>
|
||||
<dimen name="config_dialogCornerRadius">8.0dip</dimen>
|
||||
<dimen name="config_buttonCornerRadius">4.0dip</dimen>
|
||||
|
||||
<bool name="config_cellBroadcastAppLinks">true</bool>
|
||||
|
||||
<array name="config_availableColorModes">
|
||||
<!-- ColorDisplayManager.COLOR_MODE_NATURAL -->
|
||||
<item>0</item>
|
||||
<!-- ColorDisplayManager.COLOR_MODE_BOOSTED -->
|
||||
<item>1</item>
|
||||
<!-- ColorDisplayManager.COLOR_MODE_SATURATED -->
|
||||
<item>2</item>
|
||||
<!-- ColorDisplayManager.COLOR_MODE_AUTOMATIC -->
|
||||
<item>3</item>
|
||||
</array>
|
||||
|
||||
<bool name="config_supportAudioSourceUnprocessed">true</bool>
|
||||
|
||||
<string name="config_displayLightSensorType" translatable="false">android.sensor.light</string>
|
||||
|
||||
<integer name="config_defaultNightMode">2</integer>
|
||||
|
||||
<bool name="config_useDevInputEventForAudioJack">true</bool>
|
||||
</resources>
|
||||
12242
qinf21pro/patches/boot_image.patch
Normal file
25
qinf21pro/patches/launcher3.patch
Normal file
@@ -0,0 +1,25 @@
|
||||
diff --git a/res/layout/search_container_all_apps.xml b/res/layout/search_container_all_apps.xml
|
||||
index e1646ba43..850d86ccc 100644
|
||||
--- a/res/layout/search_container_all_apps.xml
|
||||
+++ b/res/layout/search_container_all_apps.xml
|
||||
@@ -34,4 +34,5 @@
|
||||
android:singleLine="true"
|
||||
android:textColor="?android:attr/textColorSecondary"
|
||||
android:textColorHint="@drawable/all_apps_search_hint"
|
||||
- android:textSize="16sp" />
|
||||
\ No newline at end of file
|
||||
+ android:textSize="16sp"
|
||||
+ android:visibility="gone" />
|
||||
diff --git a/src/com/android/launcher3/config/FeatureFlags.java b/src/com/android/launcher3/config/FeatureFlags.java
|
||||
index 88a9abaf8..d4a65f05b 100644
|
||||
--- a/src/com/android/launcher3/config/FeatureFlags.java
|
||||
+++ b/src/com/android/launcher3/config/FeatureFlags.java
|
||||
@@ -52,7 +52,7 @@ public final class FeatureFlags {
|
||||
* Enable moving the QSB on the 0th screen of the workspace. This is not a configuration feature
|
||||
* and should be modified at a project level.
|
||||
*/
|
||||
- public static final boolean QSB_ON_FIRST_SCREEN = true;
|
||||
+ public static final boolean QSB_ON_FIRST_SCREEN = false;
|
||||
|
||||
/**
|
||||
* Feature flag to handle define config changes dynamically instead of killing the process.
|
||||
59
qinf21pro/qinf21pro.mk
Normal file
@@ -0,0 +1,59 @@
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/mainline_system.mk)
|
||||
|
||||
#
|
||||
# All components inherited here go to system_ext image
|
||||
#
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_system_ext.mk)
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_system_ext.mk)
|
||||
|
||||
#
|
||||
# All components inherited here go to product image
|
||||
#
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_product.mk)
|
||||
|
||||
#
|
||||
# Special settings for GSI releasing
|
||||
#
|
||||
# ifeq (aosp_arm64,$(TARGET_PRODUCT))
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_release.mk)
|
||||
# endif
|
||||
|
||||
PRODUCT_CHARACTERISTICS := device
|
||||
|
||||
PRODUCT_NAME := qinf21pro
|
||||
PRODUCT_DEVICE := qinf21pro
|
||||
PRODUCT_BRAND := Android
|
||||
PRODUCT_MODEL := DuoQin F21 pro WePhone
|
||||
PRODUCT_AAPT_CONFIG := normal
|
||||
PRODUCT_AAPT_PREF_CONFIG := xhdpi
|
||||
|
||||
PRODUCT_PACKAGE_OVERLAYS += device/wephone/ttp/overlay
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/wephone/qinf21pro/files/mtk-kpd.idc:$(TARGET_COPY_OUT_SYSTEM)/usr/idc/mtk-kpd.idc \
|
||||
device/wephone/qinf21pro/files/mtk-kpd.kcm:$(TARGET_COPY_OUT_SYSTEM)/usr/keychars/mtk-kpd.kcm \
|
||||
device/wephone/qinf21pro/files/mtk-kpd.kl:$(TARGET_COPY_OUT_SYSTEM)/usr/keylayout/mtk-kpd.kl \
|
||||
device/wephone/qinf21pro/files/mtk-pmic-keys.idc:$(TARGET_COPY_OUT_SYSTEM)/usr/idc/mtk-pmic-keys.idc \
|
||||
device/wephone/qinf21pro/files/mtk-pmic-keys.kcm:$(TARGET_COPY_OUT_SYSTEM)/usr/keychars/mtk-pmic-keys.kcm \
|
||||
device/wephone/qinf21pro/files/mtk-pmic-keys.kl:$(TARGET_COPY_OUT_SYSTEM)/usr/keylayout/mtk-pmic-keys.kl \
|
||||
device/wephone/qinf21pro/files/Vendor_0001_Product_0001_Version_0100.kl:$(TARGET_COPY_OUT_SYSTEM)/usr/keylayout/Vendor_0001_Product_0001_Version_0100.kl
|
||||
|
||||
# Use a more decent APN config
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml
|
||||
|
||||
ifneq (,$(wildcard external/exfat))
|
||||
PRODUCT_PACKAGES += \
|
||||
mkfs.exfat \
|
||||
fsck.exfat
|
||||
endif
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
Contacts \
|
||||
DeskClock \
|
||||
Etar \
|
||||
Gallery2 \
|
||||
TrichromeWebView \
|
||||
WKT9
|
||||
|
||||
29
qinf21pro/qinf21pro/BoardConfig.mk
Normal file
@@ -0,0 +1,29 @@
|
||||
TARGET_ARCH := arm64
|
||||
TARGET_ARCH_VARIANT := armv8-a
|
||||
TARGET_CPU_ABI := arm64-v8a
|
||||
TARGET_CPU_ABI2 :=
|
||||
TARGET_CPU_VARIANT := generic
|
||||
|
||||
TARGET_2ND_ARCH := arm
|
||||
TARGET_2ND_ARCH_VARIANT := armv8-a
|
||||
TARGET_2ND_CPU_ABI := armeabi-v7a
|
||||
TARGET_2ND_CPU_ABI2 := armeabi
|
||||
TARGET_2ND_CPU_VARIANT := generic
|
||||
|
||||
include build/make/target/board/BoardConfigGsiCommon.mk
|
||||
|
||||
# TODO(jiyong) These might be SoC specific.
|
||||
BOARD_ROOT_EXTRA_SYMLINKS += /vendor/lib/dsp:/dsp
|
||||
|
||||
# TODO(b/36764215): remove this setting when the generic system image
|
||||
# no longer has QCOM-specific directories under /.
|
||||
BOARD_SEPOLICY_DIRS += build/make/target/board/generic_arm64/sepolicy
|
||||
|
||||
TARGET_EXFAT_DRIVER := exfat
|
||||
TARGET_SYSTEM_PROP := device/wephone/ttp/system.prop $(TARGET_SYSTEM_PROP)
|
||||
|
||||
ifeq ($(BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE),)
|
||||
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648
|
||||
else
|
||||
BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE := 33554432
|
||||
endif
|
||||
10
qinf21pro/system.prop
Normal file
@@ -0,0 +1,10 @@
|
||||
# Fixed Bluetooth audio
|
||||
persist.bluetooth.bluetooth_audio_hal.disabled=true
|
||||
persist.sys.bt.unsupport.features=00000000
|
||||
persist.sys.bt.unsupport.states=00000000
|
||||
persist.sys.bt.unsupport.stdfeatures=000001
|
||||
# VoLTE properties
|
||||
persist.dbg.vt_avail_ovr=1
|
||||
persist.dbg.volte_avail_ovr=1
|
||||
persist.dbg.wfc_avail_ovr=1
|
||||
persist.dbg.allow_ims_off=1
|
||||
2
qinf22pro/AndroidProducts.mk
Normal file
@@ -0,0 +1,2 @@
|
||||
PRODUCT_MAKEFILES := \
|
||||
$(LOCAL_DIR)/qinf22pro.mk
|
||||
1
qinf22pro/board-base.mk
Normal file
@@ -0,0 +1 @@
|
||||
TARGET_SYSTEM_PROP := device/wephone/qinf22pro/system.prop $(TARGET_SYSTEM_PROP)
|
||||
6
qinf22pro/files/mtk-kpd.idc
Normal file
@@ -0,0 +1,6 @@
|
||||
touch.deviceType = touchScreen
|
||||
touch.orientationAware = 1
|
||||
|
||||
device.internal = 1
|
||||
keyboard.layout = mtk-kpd
|
||||
keyboard.characterMap = mtk-kpd
|
||||
92
qinf22pro/files/mtk-kpd.kcm
Normal file
@@ -0,0 +1,92 @@
|
||||
type FULL
|
||||
|
||||
key BUTTON_X {
|
||||
base: fallback BACK
|
||||
fn: fallback HOME
|
||||
ctrl: fallback APP_SWITCH
|
||||
}
|
||||
|
||||
key BUTTON_Y {
|
||||
base: fallback CALL
|
||||
ctrl: fallback SYM
|
||||
}
|
||||
|
||||
key BUTTON_Z {
|
||||
base: fallback ENTER
|
||||
fn: fallback VOLUME_MUTE
|
||||
ctrl: fallback SYSRQ
|
||||
}
|
||||
|
||||
key BUTTON_1 {
|
||||
base: fallback DPAD_UP
|
||||
fn: fallback VOLUME_UP
|
||||
}
|
||||
|
||||
key BUTTON_2 {
|
||||
base: fallback DPAD_LEFT
|
||||
fn: fallback BRIGHTNESS_DOWN
|
||||
}
|
||||
|
||||
key BUTTON_3 {
|
||||
base: fallback DPAD_RIGHT
|
||||
fn: fallback BRIGHTNESS_UP
|
||||
}
|
||||
|
||||
key BUTTON_4 {
|
||||
base: fallback DPAD_DOWN
|
||||
fn: fallback VOLUME_DOWN
|
||||
}
|
||||
|
||||
key 0 {
|
||||
label: '0'
|
||||
base: '0'
|
||||
fn: '\n'
|
||||
ctrl: '\t'
|
||||
}
|
||||
|
||||
key 1 {
|
||||
label: '1'
|
||||
base: '1'
|
||||
}
|
||||
|
||||
key 2 {
|
||||
label: '2'
|
||||
base: '2'
|
||||
}
|
||||
|
||||
key 3 {
|
||||
label: '3'
|
||||
base: '3'
|
||||
}
|
||||
|
||||
key 4 {
|
||||
label: '4'
|
||||
base: '4'
|
||||
}
|
||||
|
||||
key 5 {
|
||||
label: '5'
|
||||
base: '5'
|
||||
}
|
||||
|
||||
key 6 {
|
||||
label: '6'
|
||||
base: '6'
|
||||
}
|
||||
|
||||
key 7 {
|
||||
label: '7'
|
||||
base: '7'
|
||||
fn: '*'
|
||||
}
|
||||
|
||||
key 8 {
|
||||
label: '8'
|
||||
base: '8'
|
||||
}
|
||||
|
||||
key 9 {
|
||||
label: '9'
|
||||
base: '9'
|
||||
ctrl: '#'
|
||||
}
|
||||
49
qinf22pro/files/mtk-kpd.kl
Normal file
@@ -0,0 +1,49 @@
|
||||
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
|
||||
|
||||
# DPAD UP
|
||||
key 103 BUTTON_1
|
||||
|
||||
# DPAD LEFT
|
||||
key 105 BUTTON_2
|
||||
|
||||
# DPAD RIGHT
|
||||
key 106 BUTTON_3
|
||||
|
||||
# DPAD DOWN
|
||||
key 108 BUTTON_4
|
||||
|
||||
# Power button
|
||||
key 116 POWER
|
||||
|
||||
# BACK
|
||||
key 158 BUTTON_X
|
||||
|
||||
# CALL
|
||||
key 169 BUTTON_Y
|
||||
|
||||
# DPAD CENTER
|
||||
key 353 BUTTON_Z
|
||||
|
||||
# STAR
|
||||
key 522 FUNCTION
|
||||
|
||||
# POUND
|
||||
key 523 CTRL_RIGHT
|
||||
|
||||
# VOL DOWN
|
||||
key 114 VOLUME_DOWN
|
||||
|
||||
# VOL UP
|
||||
key 115 VOLUME_UP
|
||||
|
||||
# DELETE
|
||||
key 139 DEL
|
||||
|
After Width: | Height: | Size: 2.1 MiB |
@@ -0,0 +1,56 @@
|
||||
<?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>
|
||||
<item>"wifi_br0"</item>
|
||||
<item>"wigig0"</item>
|
||||
</string-array>
|
||||
|
||||
<string-array translatable="false" name="config_tether_bluetooth_regexs">
|
||||
<item>bnep\\d</item>
|
||||
<item>"bt-pan"</item>
|
||||
</string-array>
|
||||
|
||||
<bool name="config_enableAutoPowerModes">true</bool>
|
||||
<bool name="config_intrusiveNotificationLed">true</bool>
|
||||
<string name="config_icon_mask" translatable="false">"M50 0C77.6 0 100 22.4 100 50C100 77.6 77.6 100 50 100C22.4 100 0 77.6 0 50C0 22.4 22.4 0 50 0Z"</string>
|
||||
<bool name="config_useRoundIcon">true</bool>
|
||||
|
||||
<string name="config_wallpaperCropperPackage">com.android.wallpaperpicker</string>
|
||||
<bool name="config_unplugTurnsOnScreen">true</bool>
|
||||
<integer name="config_multiuserMaximumUsers">5</integer>
|
||||
<bool name="config_enableMultiUserUI">true</bool>
|
||||
|
||||
<string name="config_dozeComponent">com.android.systemui/com.android.systemui.doze.DozeService</string>
|
||||
<bool name="config_swipe_up_gesture_setting_available">true</bool>
|
||||
<bool name="config_smart_battery_available">true</bool>
|
||||
<dimen name="config_dialogCornerRadius">8.0dip</dimen>
|
||||
<dimen name="config_buttonCornerRadius">4.0dip</dimen>
|
||||
|
||||
<bool name="config_cellBroadcastAppLinks">true</bool>
|
||||
|
||||
<array name="config_availableColorModes">
|
||||
<!-- ColorDisplayManager.COLOR_MODE_NATURAL -->
|
||||
<item>0</item>
|
||||
<!-- ColorDisplayManager.COLOR_MODE_BOOSTED -->
|
||||
<item>1</item>
|
||||
<!-- ColorDisplayManager.COLOR_MODE_SATURATED -->
|
||||
<item>2</item>
|
||||
<!-- ColorDisplayManager.COLOR_MODE_AUTOMATIC -->
|
||||
<item>3</item>
|
||||
</array>
|
||||
|
||||
<bool name="config_supportAudioSourceUnprocessed">true</bool>
|
||||
|
||||
<string name="config_displayLightSensorType" translatable="false">android.sensor.light</string>
|
||||
|
||||
<integer name="config_defaultNightMode">2</integer>
|
||||
|
||||
<bool name="config_useDevInputEventForAudioJack">true</bool>
|
||||
</resources>
|
||||
26020
qinf22pro/patches/bootlogo.patch
Normal file
@@ -1,8 +1,8 @@
|
||||
diff --git a/services/core/java/com/android/server/display/DisplayPowerController.java b/services/core/java/com/android/server/display/DisplayPowerController.java
|
||||
index 1224902aa7be..68855ebf06b9 100644
|
||||
index 6a57e4070f65..ae544b5e9d56 100644
|
||||
--- a/services/core/java/com/android/server/display/DisplayPowerController.java
|
||||
+++ b/services/core/java/com/android/server/display/DisplayPowerController.java
|
||||
@@ -70,6 +70,10 @@ import com.android.server.display.whitebalance.DisplayWhiteBalanceFactory;
|
||||
@@ -75,6 +75,10 @@ import com.android.server.display.whitebalance.DisplayWhiteBalanceFactory;
|
||||
import com.android.server.display.whitebalance.DisplayWhiteBalanceSettings;
|
||||
import com.android.server.policy.WindowManagerPolicy;
|
||||
|
||||
@@ -11,9 +11,9 @@ index 1224902aa7be..68855ebf06b9 100644
|
||||
+import com.android.server.lights.LogicalLight;
|
||||
+
|
||||
import java.io.PrintWriter;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
@@ -276,6 +280,10 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
|
||||
@@ -294,6 +298,10 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
|
||||
// Must only be accessed on the handler thread.
|
||||
private DisplayPowerState mPowerState;
|
||||
|
||||
@@ -24,7 +24,7 @@ index 1224902aa7be..68855ebf06b9 100644
|
||||
// True if the device should wait for negative proximity sensor before
|
||||
// waking up the screen. This is set to false as soon as a negative
|
||||
// proximity sensor measurement is observed or when the device is forced to
|
||||
@@ -817,6 +825,9 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
|
||||
@@ -895,6 +903,9 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
|
||||
mPowerState = new DisplayPowerState(mBlanker,
|
||||
mColorFadeEnabled ? new ColorFade(mDisplayId) : null, mDisplayId, displayState);
|
||||
|
||||
@@ -34,27 +34,27 @@ index 1224902aa7be..68855ebf06b9 100644
|
||||
if (mColorFadeEnabled) {
|
||||
mColorFadeOnAnimator = ObjectAnimator.ofFloat(
|
||||
mPowerState, DisplayPowerState.COLOR_FADE_LEVEL, 0.0f, 1.0f);
|
||||
@@ -1452,6 +1463,7 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
|
||||
@@ -1677,6 +1688,7 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
|
||||
&& mReportedScreenStateToPolicy == REPORTED_TO_POLICY_SCREEN_TURNING_ON) {
|
||||
setReportedScreenState(REPORTED_TO_POLICY_SCREEN_ON);
|
||||
mWindowManagerPolicy.screenTurnedOn(mDisplayId);
|
||||
+ mButtonsLight.setBrightness(PowerManager.BRIGHTNESS_MAX);
|
||||
+ mButtonsLight.setBrightness(PowerManager.BRIGHTNESS_MAX);
|
||||
}
|
||||
|
||||
// Grab a wake lock if we have unfinished business.
|
||||
@@ -1652,6 +1664,7 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
|
||||
@@ -1926,6 +1938,7 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
|
||||
setReportedScreenState(REPORTED_TO_POLICY_SCREEN_OFF);
|
||||
unblockScreenOn();
|
||||
mWindowManagerPolicy.screenTurnedOff(mDisplayId);
|
||||
+ mButtonsLight.setBrightness(PowerManager.BRIGHTNESS_OFF_FLOAT);
|
||||
+ mButtonsLight.setBrightness(PowerManager.BRIGHTNESS_OFF_FLOAT);
|
||||
} else if (!isOff
|
||||
&& mReportedScreenStateToPolicy == REPORTED_TO_POLICY_SCREEN_TURNING_OFF) {
|
||||
|
||||
@@ -1659,6 +1672,7 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
|
||||
@@ -1933,6 +1946,7 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
|
||||
// Complete the full state transition on -> turningOff -> off.
|
||||
unblockScreenOff();
|
||||
mWindowManagerPolicy.screenTurnedOff(mDisplayId);
|
||||
+ mButtonsLight.setBrightness(PowerManager.BRIGHTNESS_OFF_FLOAT);
|
||||
+ mButtonsLight.setBrightness(PowerManager.BRIGHTNESS_OFF_FLOAT);
|
||||
setReportedScreenState(REPORTED_TO_POLICY_SCREEN_OFF);
|
||||
}
|
||||
if (!isOff
|
||||
11
qinf22pro/patches/qsb.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
diff --git a/src_build_config/com/android/launcher3/BuildConfig.java b/src_build_config/com/android/launcher3/BuildConfig.java
|
||||
index 9a81d3f54c..8c83bcc372 100644
|
||||
--- a/src_build_config/com/android/launcher3/BuildConfig.java
|
||||
+++ b/src_build_config/com/android/launcher3/BuildConfig.java
|
||||
@@ -23,5 +23,5 @@ public final class BuildConfig {
|
||||
* Flag to state if the QSB is on the first screen and placed on the top,
|
||||
* this can be overwritten in other launchers with a different value, if needed.
|
||||
*/
|
||||
- public static final boolean QSB_ON_FIRST_SCREEN = true;
|
||||
+ public static final boolean QSB_ON_FIRST_SCREEN = false;
|
||||
}
|
||||
48
qinf22pro/qinf22pro.mk
Normal file
@@ -0,0 +1,48 @@
|
||||
TARGET_GAPPS_ARCH := arm64
|
||||
|
||||
include device/generic/common/gsi_arm64.mk
|
||||
|
||||
PRODUCT_NAME := qinf22pro
|
||||
PRODUCT_DEVICE := qinf22pro
|
||||
PRODUCT_BRAND := wephone
|
||||
PRODUCT_MODEL := weOs | v13.0.1 | Chanowk
|
||||
|
||||
PRODUCT_INSTALL_DEBUG_POLICY_TO_SYSTEM_EXT :=
|
||||
PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS :=
|
||||
PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS := false
|
||||
PRODUCT_BROKEN_VERIFY_USES_LIBRARIES := true
|
||||
QSB_ON_FIRST_SCREEN := false
|
||||
|
||||
# This is for a device
|
||||
PRODUCT_CHARACTERISTICS := device
|
||||
|
||||
PRODUCT_PACKAGE_OVERLAYS += device/wephone/qinf22pro/overlay
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/wephone/qinf22pro/files/mtk-kpd.idc:$(TARGET_COPY_OUT_SYSTEM)/usr/idc/mtk-kpd.idc \
|
||||
device/wephone/qinf22pro/files/mtk-kpd.kcm:$(TARGET_COPY_OUT_SYSTEM)/usr/keychars/mtk-kpd.kcm \
|
||||
device/wephone/qinf22pro/files/mtk-kpd.kl:$(TARGET_COPY_OUT_SYSTEM)/usr/keylayout/mtk-kpd.kl
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
BromiteSystemWebView \
|
||||
Conversations \
|
||||
Davx5 \
|
||||
DeskClock \
|
||||
Etar \
|
||||
ExactCalculator \
|
||||
Gallery2 \
|
||||
K-9Mail \
|
||||
Linphone \
|
||||
Nextcloud \
|
||||
NextcloudNotes \
|
||||
OpenDocumentReader \
|
||||
Wireguard \
|
||||
WKT9
|
||||
|
||||
PRODUCT_PACKAGES -= \
|
||||
EasterEgg \
|
||||
webview \
|
||||
libwebviewchromium_loader \
|
||||
libwebviewchromium_plat_support \
|
||||
CtsShimPrebuilt \
|
||||
CtsShimPrivPrebuilt
|
||||
2
qinf22pro/qinf22pro/BoardConfig.mk
Normal file
@@ -0,0 +1,2 @@
|
||||
include build/make/target/board/generic_arm64/BoardConfig.mk
|
||||
include device/wephone/qinf22pro/board-base.mk
|
||||
2
tryout/AndroidProducts.mk
Normal file
@@ -0,0 +1,2 @@
|
||||
PRODUCT_MAKEFILES := \
|
||||
$(LOCAL_DIR)/tryout.mk
|
||||
1
tryout/board-base.mk
Normal file
@@ -0,0 +1 @@
|
||||
TARGET_SYSTEM_PROP := device/wephone/qinf21pro/system.prop $(TARGET_SYSTEM_PROP)
|
||||
30
tryout/tryout.mk
Normal file
@@ -0,0 +1,30 @@
|
||||
#Use a more decent APN config
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml
|
||||
|
||||
TARGET_GAPPS_ARCH := arm64
|
||||
|
||||
include build/make/target/product/aosp_arm64_ab.mk
|
||||
|
||||
PRODUCT_NAME := tryout
|
||||
PRODUCT_DEVICE := tryout
|
||||
PRODUCT_BRAND := wePhone
|
||||
PRODUCT_SYSTEM_BRAND := wePhone
|
||||
PRODUCT_MODEL := weOs | Tryout | Nehemiah
|
||||
|
||||
# Overwrite the inherited "emulator" characteristics
|
||||
PRODUCT_CHARACTERISTICS := device
|
||||
|
||||
PRODUCT_PACKAGE_OVERLAYS += device/wephone/qinf21pro/overlay
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/wephone/qinf21pro/files/mtk-kpd.idc:$(TARGET_COPY_OUT_SYSTEM)/usr/idc/mtk-kpd.idc \
|
||||
device/wephone/qinf21pro/files/mtk-kpd.kcm:$(TARGET_COPY_OUT_SYSTEM)/usr/keychars/mtk-kpd.kcm \
|
||||
device/wephone/qinf21pro/files/mtk-kpd.kl:$(TARGET_COPY_OUT_SYSTEM)/usr/keylayout/mtk-kpd.kl \
|
||||
device/wephone/qinf21pro/files/mtk-pmic-keys.idc:$(TARGET_COPY_OUT_SYSTEM)/usr/idc/mtk-pmic-keys.idc \
|
||||
device/wephone/qinf21pro/files/mtk-pmic-keys.kcm:$(TARGET_COPY_OUT_SYSTEM)/usr/keychars/mtk-pmic-keys.kcm \
|
||||
device/wephone/qinf21pro/files/mtk-pmic-keys.kl:$(TARGET_COPY_OUT_SYSTEM)/usr/keylayout/mtk-pmic-keys.kl \
|
||||
device/wephone/qinf21pro/files/Vendor_0001_Product_0001_Version_0100.kl:$(TARGET_COPY_OUT_SYSTEM)/usr/keylayout/Vendor_0001_Product_0001_Version_0100.kl
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
ImsMtkR
|
||||
8
tryout/tryout/BoardConfig.mk
Normal file
@@ -0,0 +1,8 @@
|
||||
include build/make/target/board/generic_arm64_ab/BoardConfig.mk
|
||||
include device/wephone/tryout/board-base.mk
|
||||
|
||||
ifeq ($(BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE),)
|
||||
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648
|
||||
else
|
||||
BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE := 33554432
|
||||
endif
|
||||
2
ttp/AndroidProducts.mk
Normal file
@@ -0,0 +1,2 @@
|
||||
PRODUCT_MAKEFILES := \
|
||||
$(LOCAL_DIR)/ttp.mk
|
||||
14
ttp/files/aw9523-key.idc
Normal file
@@ -0,0 +1,14 @@
|
||||
# Agold add for A61 by guotuo
|
||||
|
||||
device.internal = 1
|
||||
|
||||
touch.deviceType = touchScreen
|
||||
touch.orientationAware = 1
|
||||
|
||||
keyboard.layout = aw9523-key.kl
|
||||
keyboard.characterMap = aw9523-key
|
||||
keyboard.orientationAware = 1
|
||||
keyboard.builtIn = 1
|
||||
|
||||
cursor.mode = navigation
|
||||
cursor.orientationAware = 1
|
||||
240
ttp/files/aw9523-key.kcm
Normal file
@@ -0,0 +1,240 @@
|
||||
# Agold add for A61 by guotuo
|
||||
|
||||
type ALPHA
|
||||
|
||||
key A {
|
||||
label: 'A'
|
||||
base: 'a'
|
||||
shift, capslock: 'A'
|
||||
alt: '@'
|
||||
shift+alt, capslock+alt: none
|
||||
}
|
||||
|
||||
key B {
|
||||
label: 'B'
|
||||
base: 'b'
|
||||
shift, capslock: 'B'
|
||||
alt: '.'
|
||||
shift+alt, capslock+alt: none
|
||||
}
|
||||
|
||||
key C {
|
||||
label: 'C'
|
||||
number: '8'
|
||||
base: 'c'
|
||||
shift, capslock: 'C'
|
||||
alt: '8'
|
||||
shift+alt, capslock+alt: none
|
||||
}
|
||||
|
||||
key D {
|
||||
label: 'D'
|
||||
number: '5'
|
||||
base: 'd'
|
||||
shift, capslock: 'D'
|
||||
alt: '5'
|
||||
shift+alt, capslock+alt: none
|
||||
}
|
||||
|
||||
key E {
|
||||
label: 'E'
|
||||
number: '2'
|
||||
base: 'e'
|
||||
shift, capslock: 'E'
|
||||
alt: '2'
|
||||
shift+alt, capslock+alt: none
|
||||
}
|
||||
|
||||
key F {
|
||||
label: 'F'
|
||||
number: '6'
|
||||
base: 'f'
|
||||
shift, capslock: 'F'
|
||||
alt: '6'
|
||||
shift+alt, capslock+alt: none
|
||||
}
|
||||
|
||||
key G {
|
||||
label: 'G'
|
||||
base: 'g'
|
||||
shift, capslock: 'G'
|
||||
alt: '*'
|
||||
shift+alt, capslock+alt: none
|
||||
}
|
||||
|
||||
key H {
|
||||
label: 'H'
|
||||
base: 'h'
|
||||
shift, capslock: 'H'
|
||||
alt: '#'
|
||||
shift+alt, capslock+alt: none
|
||||
}
|
||||
|
||||
key I {
|
||||
label: 'I'
|
||||
base: 'i'
|
||||
shift, capslock: 'I'
|
||||
alt: '_'
|
||||
shift+alt, capslock+alt: none
|
||||
}
|
||||
|
||||
key J {
|
||||
label: 'J'
|
||||
base: 'j'
|
||||
shift, capslock: 'J'
|
||||
alt: '+'
|
||||
shift+alt, capslock+alt: none
|
||||
}
|
||||
|
||||
key K {
|
||||
label: 'K'
|
||||
base: 'k'
|
||||
shift, capslock: 'K'
|
||||
alt: '"'
|
||||
shift+alt, capslock+alt: none
|
||||
}
|
||||
|
||||
key L {
|
||||
label: 'L'
|
||||
base: 'l'
|
||||
shift, capslock: 'L'
|
||||
alt: '\''
|
||||
shift+alt, capslock+alt: none
|
||||
}
|
||||
|
||||
key M {
|
||||
label: 'M'
|
||||
base: 'm'
|
||||
shift, capslock: 'M'
|
||||
alt: '?'
|
||||
shift+alt, capslock+alt: none
|
||||
}
|
||||
|
||||
key N {
|
||||
label: 'N'
|
||||
base: 'n'
|
||||
shift, capslock: 'N'
|
||||
alt: ','
|
||||
shift+alt, capslock+alt: none
|
||||
}
|
||||
|
||||
key O {
|
||||
label: 'O'
|
||||
base: 'o'
|
||||
shift, capslock: 'O'
|
||||
alt: '/'
|
||||
shift+alt, capslock+alt: none
|
||||
}
|
||||
|
||||
key P {
|
||||
label: 'P'
|
||||
base: 'p'
|
||||
shift, capslock: 'P'
|
||||
alt: ':'
|
||||
shift+alt, capslock+alt: none
|
||||
}
|
||||
|
||||
key Q {
|
||||
label: 'Q'
|
||||
number: '0'
|
||||
base: 'q'
|
||||
shift, capslock: 'Q'
|
||||
alt: '0'
|
||||
shift+alt, capslock+alt: none
|
||||
}
|
||||
|
||||
key R {
|
||||
label: 'R'
|
||||
number: '3'
|
||||
base: 'r'
|
||||
shift, capslock: 'R'
|
||||
alt: '3'
|
||||
shift+alt, capslock+alt: none
|
||||
}
|
||||
|
||||
key S {
|
||||
label: 'S'
|
||||
number: '4'
|
||||
base: 's'
|
||||
shift, capslock: 'S'
|
||||
alt: '4'
|
||||
shift+alt, capslock+alt: none
|
||||
}
|
||||
|
||||
key T {
|
||||
label: 'T'
|
||||
base: 't'
|
||||
shift, capslock: 'T'
|
||||
alt: '('
|
||||
shift+alt, capslock+alt: none
|
||||
}
|
||||
|
||||
key U {
|
||||
label: 'U'
|
||||
base: 'u'
|
||||
shift, capslock: 'U'
|
||||
alt: '-'
|
||||
shift+alt, capslock+alt: none
|
||||
}
|
||||
|
||||
key V {
|
||||
label: 'V'
|
||||
number: '9'
|
||||
base: 'v'
|
||||
shift, capslock: 'V'
|
||||
alt: '9'
|
||||
shift+alt, capslock+alt: none
|
||||
}
|
||||
|
||||
key W {
|
||||
label: 'W'
|
||||
number: '1'
|
||||
base: 'w'
|
||||
shift, capslock: 'W'
|
||||
alt: '1'
|
||||
shift+alt, capslock+alt: none
|
||||
}
|
||||
|
||||
key X {
|
||||
label: 'X'
|
||||
number: '7'
|
||||
base: 'x'
|
||||
shift, capslock: 'X'
|
||||
alt: '7'
|
||||
shift+alt, capslock+alt: none
|
||||
}
|
||||
|
||||
key Y {
|
||||
label: 'Y'
|
||||
base: 'y'
|
||||
shift, capslock: 'Y'
|
||||
alt: ')'
|
||||
shift+alt, capslock+alt: none
|
||||
}
|
||||
|
||||
key Z {
|
||||
label: 'Z'
|
||||
base: 'z'
|
||||
shift, capslock: 'Z'
|
||||
alt: '!'
|
||||
shift+alt, capslock+alt: none
|
||||
}
|
||||
|
||||
key SPACE {
|
||||
label: ' '
|
||||
number: ' '
|
||||
base: ' '
|
||||
shift: ' '
|
||||
alt: '\uef01'
|
||||
shift+alt: '\uef01'
|
||||
}
|
||||
|
||||
key ENTER {
|
||||
label: '\n'
|
||||
number: '\n'
|
||||
base: '\n'
|
||||
shift: '\n'
|
||||
alt: '\n'
|
||||
shift+alt: '\n'
|
||||
}
|
||||
|
||||
@@ -21,11 +21,9 @@ key 127 SYM
|
||||
key 217 SEARCH
|
||||
key 228 POUND
|
||||
key 227 STAR
|
||||
key 522 STAR
|
||||
key 231 CALL
|
||||
key 61 CALL
|
||||
key 232 DPAD_CENTER
|
||||
key 353 DPAD_CENTER
|
||||
key 108 DPAD_DOWN
|
||||
key 103 DPAD_UP
|
||||
key 102 HOME
|
||||
@@ -96,5 +94,12 @@ key 163 MEDIA_NEXT
|
||||
key 165 MEDIA_PREVIOUS
|
||||
key 168 MEDIA_REWIND
|
||||
key 159 MEDIA_FAST_FORWARD
|
||||
key 352 DPAD_CENTER
|
||||
key 523 POUND
|
||||
|
||||
# agold add
|
||||
key 249 FUNC1
|
||||
key 250 FUNC2
|
||||
# add for a83 function key
|
||||
key 183 FUNC1
|
||||
|
||||
key 580 APP_SWITCH
|
||||
|
||||
1
ttp/files/excluded-input-devices.xml
Normal file
@@ -0,0 +1 @@
|
||||
<devices><device name="mtk-pad"/></devices>
|
||||
3
ttp/files/fingerprint_key.kl
Normal file
@@ -0,0 +1,3 @@
|
||||
# Key layout for Unihertz devices with fingerprint sensor
|
||||
# For Atom {,L,XL}: fingerprint sensor as home
|
||||
key 172 HOME VIRTUAL
|
||||
31
ttp/files/mtk-kpd.idc
Normal file
@@ -0,0 +1,31 @@
|
||||
# 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.
|
||||
|
||||
#
|
||||
# Emulator keyboard configuration file #2.
|
||||
#
|
||||
|
||||
touch.deviceType = touchScreen
|
||||
touch.orientationAware = 1
|
||||
|
||||
keyboard.layout = mtk-kpd
|
||||
keyboard.characterMap = qwerty
|
||||
keyboard.orientationAware = 1
|
||||
|
||||
# AGOLD zhangyongjiang modify from 1 to 0 for a66/a83.
|
||||
keyboard.builtIn = 0
|
||||
|
||||
cursor.mode = navigation
|
||||
cursor.orientationAware = 1
|
||||
|
||||
13
ttp/files/mtk-kpd.kl
Normal file
@@ -0,0 +1,13 @@
|
||||
# Keylayout for Unihertz devices with a dedicated PTT button
|
||||
# Volume buttons
|
||||
key 115 VOLUME_UP
|
||||
key 114 VOLUME_DOWN
|
||||
|
||||
# Power button
|
||||
key 116 POWER
|
||||
|
||||
# PTT - Remap to camera by default
|
||||
# CAMERA is delivered to apps, so remapping via
|
||||
# third-party apps is possible
|
||||
key 249 CAMERA
|
||||
key 250 CAMERA
|
||||
22
ttp/files/mtk-pad.idc
Normal file
@@ -0,0 +1,22 @@
|
||||
# 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.
|
||||
|
||||
#
|
||||
# Emulator keyboard configuration file #2.
|
||||
#
|
||||
|
||||
touch.deviceType = touchPad
|
||||
touch.orientationAware = 1
|
||||
|
||||
|
||||
6
ttp/files/mtk-tpd.kl
Normal file
@@ -0,0 +1,6 @@
|
||||
# Keylayout for Unihertz devices with capacitive keys
|
||||
# Capacitive navigation
|
||||
key 172 HOME VIRTUAL
|
||||
key 580 APP_SWITCH VIRTUAL
|
||||
key 158 BACK VIRTUAL
|
||||
|
||||
|
After Width: | Height: | Size: 2.1 MiB |
56
ttp/overlay/frameworks/base/core/res/res/values/config.xml
Normal file
@@ -0,0 +1,56 @@
|
||||
<?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>
|
||||
<item>"wifi_br0"</item>
|
||||
<item>"wigig0"</item>
|
||||
</string-array>
|
||||
|
||||
<string-array translatable="false" name="config_tether_bluetooth_regexs">
|
||||
<item>bnep\\d</item>
|
||||
<item>"bt-pan"</item>
|
||||
</string-array>
|
||||
|
||||
<bool name="config_enableAutoPowerModes">true</bool>
|
||||
<bool name="config_intrusiveNotificationLed">true</bool>
|
||||
<string name="config_icon_mask" translatable="false">"M50 0C77.6 0 100 22.4 100 50C100 77.6 77.6 100 50 100C22.4 100 0 77.6 0 50C0 22.4 22.4 0 50 0Z"</string>
|
||||
<bool name="config_useRoundIcon">true</bool>
|
||||
|
||||
<string name="config_wallpaperCropperPackage">com.android.wallpaperpicker</string>
|
||||
<bool name="config_unplugTurnsOnScreen">true</bool>
|
||||
<integer name="config_multiuserMaximumUsers">5</integer>
|
||||
<bool name="config_enableMultiUserUI">true</bool>
|
||||
|
||||
<string name="config_dozeComponent">com.android.systemui/com.android.systemui.doze.DozeService</string>
|
||||
<bool name="config_swipe_up_gesture_setting_available">true</bool>
|
||||
<bool name="config_smart_battery_available">true</bool>
|
||||
<dimen name="config_dialogCornerRadius">8.0dip</dimen>
|
||||
<dimen name="config_buttonCornerRadius">4.0dip</dimen>
|
||||
|
||||
<bool name="config_cellBroadcastAppLinks">true</bool>
|
||||
|
||||
<array name="config_availableColorModes">
|
||||
<!-- ColorDisplayManager.COLOR_MODE_NATURAL -->
|
||||
<item>0</item>
|
||||
<!-- ColorDisplayManager.COLOR_MODE_BOOSTED -->
|
||||
<item>1</item>
|
||||
<!-- ColorDisplayManager.COLOR_MODE_SATURATED -->
|
||||
<item>2</item>
|
||||
<!-- ColorDisplayManager.COLOR_MODE_AUTOMATIC -->
|
||||
<item>3</item>
|
||||
</array>
|
||||
|
||||
<bool name="config_supportAudioSourceUnprocessed">true</bool>
|
||||
|
||||
<string name="config_displayLightSensorType" translatable="false">android.sensor.light</string>
|
||||
|
||||
<integer name="config_defaultNightMode">2</integer>
|
||||
|
||||
<bool name="config_useDevInputEventForAudioJack">true</bool>
|
||||
</resources>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright 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.
|
||||
-->
|
||||
|
||||
<webviewproviders>
|
||||
<!-- The default WebView implementation -->
|
||||
<webviewprovider description="Vanadium" packageName="app.vanadium.webview" availableByDefault="true">
|
||||
</webviewprovider>
|
||||
</webviewproviders>
|
||||