├── sepolicy ├── public │ └── attributes └── vendor │ ├── init.te │ ├── device.te │ ├── system_server.te │ ├── hwservice.te │ ├── app.te │ ├── hal_mlipay.te │ ├── property.te │ ├── hal_power_default.te │ ├── genfs_contexts │ ├── hwservice_contexts │ ├── property_contexts │ ├── hal_mlipay_default.te │ ├── file_contexts │ └── hal_fingerprint_default.te ├── configs ├── thermal │ ├── thermal-engine.conf │ ├── thermal-engine-map.conf │ ├── thermal-engine-normal.conf │ └── thermal-engine-camera.conf ├── keylayout │ ├── uinput-fpc.kl │ └── uinput-goodix.kl ├── idc │ ├── uinput-fpc.idc │ └── uinput-goodix.idc ├── hidl │ ├── manifest_willow.xml │ └── manifest.xml └── audio │ ├── listen_platform_info.xml │ └── graphite_ipc_platform_info.xml ├── system.prop ├── XiaomiParts ├── res │ ├── drawable │ │ ├── preview.jpg │ │ ├── ic_preset.xml │ │ ├── action_reset.xml │ │ ├── ic_dirac.xml │ │ ├── ic_headphones.xml │ │ ├── ic_doze.xml │ │ ├── ic_flip.xml │ │ ├── ic_mi.xml │ │ ├── ic_usb_fastcharge.xml │ │ ├── action_presets.xml │ │ ├── ic_color.xml │ │ └── ic_speaker_cleaner_icon.xml │ ├── raw │ │ └── clear_speaker_sound.mp3 │ ├── menu │ │ └── menu_reset.xml │ ├── values │ │ ├── attrs.xml │ │ ├── colors.xml │ │ └── styles.xml │ ├── layout │ │ ├── activity_kcal.xml │ │ └── custom_seekbar_preference_dialog.xml │ └── xml │ │ └── clear_speaker_settings.xml ├── src │ └── org │ │ └── lineageos │ │ └── settings │ │ └── device │ │ ├── DiracService.java │ │ ├── preferences │ │ ├── SecureSettingCustomSeekBarPreference.java │ │ ├── VibrationSeekBarPreference.java │ │ ├── SecureSettingsStore.java │ │ ├── SecureSettingListPreference.java │ │ └── SecureSettingSwitchPreference.java │ │ ├── DeviceSettingsActivity.java │ │ ├── speaker │ │ └── ClearSpeakerActivity.java │ │ ├── DiracUtils.java │ │ ├── kcal │ │ ├── Utils.java │ │ ├── PresetDialog.java │ │ └── KCalSettingsActivity.java │ │ ├── Fastcharge.java │ │ ├── DiracSound.java │ │ └── BootReceiver.java └── Android.mk ├── overlay ├── packages │ └── apps │ │ └── overlays │ │ ├── NotchBarKiller │ │ ├── res │ │ │ └── values │ │ │ │ ├── strings.xml │ │ │ │ └── config.xml │ │ ├── Android.mk │ │ └── AndroidManifest.xml │ │ └── NoCutoutOverlay │ │ ├── Android.mk │ │ ├── res │ │ ├── values-am │ │ │ └── strings.xml │ │ ├── values-ar │ │ │ └── strings.xml │ │ ├── values-bn │ │ │ └── strings.xml │ │ ├── values-ca │ │ │ └── strings.xml │ │ ├── values-cs │ │ │ └── strings.xml │ │ ├── values-da │ │ │ └── strings.xml │ │ ├── values-et │ │ │ └── strings.xml │ │ ├── values-is │ │ │ └── strings.xml │ │ ├── values-iw │ │ │ └── strings.xml │ │ ├── values-ja │ │ │ └── strings.xml │ │ ├── values-km │ │ │ └── strings.xml │ │ ├── values-ko │ │ │ └── strings.xml │ │ ├── values-mn │ │ │ └── strings.xml │ │ ├── values-mr │ │ │ └── strings.xml │ │ ├── values-nb │ │ │ └── strings.xml │ │ ├── values-pa │ │ │ └── strings.xml │ │ ├── values-pl │ │ │ └── strings.xml │ │ ├── values-sk │ │ │ └── strings.xml │ │ ├── values-sq │ │ │ └── strings.xml │ │ ├── values-sv │ │ │ └── strings.xml │ │ ├── values-sw │ │ │ └── strings.xml │ │ ├── values-ta │ │ │ └── strings.xml │ │ ├── values-th │ │ │ └── strings.xml │ │ ├── values-tl │ │ │ └── strings.xml │ │ ├── values-tr │ │ │ └── strings.xml │ │ ├── values-vi │ │ │ └── strings.xml │ │ ├── values-zu │ │ │ └── strings.xml │ │ ├── values-af │ │ │ └── strings.xml │ │ ├── values-as │ │ │ └── strings.xml │ │ ├── values-az │ │ │ └── strings.xml │ │ ├── values-be │ │ │ └── strings.xml │ │ ├── values-bg │ │ │ └── strings.xml │ │ ├── values-bs │ │ │ └── strings.xml │ │ ├── values-de │ │ │ └── strings.xml │ │ ├── values-el │ │ │ └── strings.xml │ │ ├── values-en-rAU │ │ │ └── strings.xml │ │ ├── values-en-rCA │ │ │ └── strings.xml │ │ ├── values-en-rGB │ │ │ └── strings.xml │ │ ├── values-en-rIN │ │ │ └── strings.xml │ │ ├── values-es │ │ │ └── strings.xml │ │ ├── values-eu │ │ │ └── strings.xml │ │ ├── values-fa │ │ │ └── strings.xml │ │ ├── values-fi │ │ │ └── strings.xml │ │ ├── values-fr │ │ │ └── strings.xml │ │ ├── values-gl │ │ │ └── strings.xml │ │ ├── values-gu │ │ │ └── strings.xml │ │ ├── values-hi │ │ │ └── strings.xml │ │ ├── values-hr │ │ │ └── strings.xml │ │ ├── values-hu │ │ │ └── strings.xml │ │ ├── values-hy │ │ │ └── strings.xml │ │ ├── values-it │ │ │ └── strings.xml │ │ ├── values-ka │ │ │ └── strings.xml │ │ ├── values-kk │ │ │ └── strings.xml │ │ ├── values-kn │ │ │ └── strings.xml │ │ ├── values-ky │ │ │ └── strings.xml │ │ ├── values-lo │ │ │ └── strings.xml │ │ ├── values-lt │ │ │ └── strings.xml │ │ ├── values-lv │ │ │ └── strings.xml │ │ ├── values-mk │ │ │ └── strings.xml │ │ ├── values-ml │ │ │ └── strings.xml │ │ ├── values-my │ │ │ └── strings.xml │ │ ├── values-nl │ │ │ └── strings.xml │ │ ├── values-or │ │ │ └── strings.xml │ │ ├── values-pt │ │ │ └── strings.xml │ │ ├── values-ro │ │ │ └── strings.xml │ │ ├── values-ru │ │ │ └── strings.xml │ │ ├── values-si │ │ │ └── strings.xml │ │ ├── values-sl │ │ │ └── strings.xml │ │ ├── values-sr │ │ │ └── strings.xml │ │ ├── values-te │ │ │ └── strings.xml │ │ ├── values-uk │ │ │ └── strings.xml │ │ ├── values-ur │ │ │ └── strings.xml │ │ ├── values-uz │ │ │ └── strings.xml │ │ ├── values-zh-rCN │ │ │ └── strings.xml │ │ ├── values-zh-rHK │ │ │ └── strings.xml │ │ ├── values-zh-rTW │ │ │ └── strings.xml │ │ ├── values-b+sr+Latn │ │ │ └── strings.xml │ │ ├── values-es-rUS │ │ │ └── strings.xml │ │ ├── values-fr-rCA │ │ │ └── strings.xml │ │ ├── values-in │ │ │ └── strings.xml │ │ ├── values-ms │ │ │ └── strings.xml │ │ ├── values-ne │ │ │ └── strings.xml │ │ ├── values-pt-rBR │ │ │ └── strings.xml │ │ ├── values-pt-rPT │ │ │ └── strings.xml │ │ ├── values-land │ │ │ └── config.xml │ │ ├── values │ │ │ ├── strings.xml │ │ │ └── config.xml │ │ └── values-en-rXC │ │ │ └── strings.xml │ │ └── AndroidManifest.xml └── frameworks │ └── base │ ├── packages │ └── SystemUI │ │ └── res │ │ ├── values │ │ └── dimens.xml │ │ └── drawable │ │ └── rounded.xml │ └── core │ └── res │ └── res │ ├── values │ ├── strings.xml │ └── dimens.xml │ └── xml │ └── power_profile.xml ├── AndroidBoard.mk ├── AndroidProducts.mk ├── power ├── Android.mk └── power-mode.cpp ├── extract-files.sh ├── setup-makefiles.sh ├── ifaa ├── src │ └── org │ │ └── ifaa │ │ └── android │ │ └── manager │ │ ├── IFAAManagerV2.java │ │ ├── IFAAManagerV4.java │ │ ├── IFAAManagerFactory.java │ │ ├── IIFAAService.aidl │ │ ├── IFAAManagerV3.java │ │ └── IFAAManager.java └── Android.bp ├── Android.mk ├── fingerprint ├── android.hardware.biometrics.fingerprint@2.1-service.ginkgo.rc ├── Android.bp └── service.cpp ├── superior.dependencies ├── rootdir ├── Android.mk └── etc │ └── init.xiaomi_parts.rc ├── init └── Android.bp ├── releasetools.py ├── superior_ginkgo.mk ├── BoardConfig.mk ├── update-sha1sums.py └── README.md /sepolicy/public/attributes: -------------------------------------------------------------------------------- 1 | hal_attribute_lineage(mlipay) 2 | -------------------------------------------------------------------------------- /sepolicy/vendor/init.te: -------------------------------------------------------------------------------- 1 | set_prop(init, vendor_camera_prop) 2 | -------------------------------------------------------------------------------- /sepolicy/vendor/device.te: -------------------------------------------------------------------------------- 1 | type fingerprint_device, dev_type; 2 | -------------------------------------------------------------------------------- /sepolicy/vendor/system_server.te: -------------------------------------------------------------------------------- 1 | get_prop(system_server, vendor_fp_prop) 2 | -------------------------------------------------------------------------------- /sepolicy/vendor/hwservice.te: -------------------------------------------------------------------------------- 1 | type hal_mlipay_hwservice, hwservice_manager_type; 2 | -------------------------------------------------------------------------------- /configs/thermal/thermal-engine.conf: -------------------------------------------------------------------------------- 1 | # File empty by default. 2 | # Replace contents of this file with custom configuration. 3 | -------------------------------------------------------------------------------- /sepolicy/vendor/app.te: -------------------------------------------------------------------------------- 1 | get_prop({ appdomain -isolated_app }, ifaa_prop) 2 | get_prop({ appdomain -isolated_app }, vendor_fp_prop) 3 | -------------------------------------------------------------------------------- /system.prop: -------------------------------------------------------------------------------- 1 | # Audio 2 | audio.sys.noisy.broadcast.delay=600 3 | audio.sys.offload.pstimeout.secs=3 4 | 5 | # NFC 6 | ro.se.type=HCE,UICC 7 | -------------------------------------------------------------------------------- /sepolicy/vendor/hal_mlipay.te: -------------------------------------------------------------------------------- 1 | binder_call(hal_mlipay_client, hal_mlipay_server) 2 | 3 | add_hwservice(hal_mlipay_server, hal_mlipay_hwservice) 4 | -------------------------------------------------------------------------------- /XiaomiParts/res/drawable/preview.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SuperiorOS-Devices/device_xiaomi_ginkgo/eleven/XiaomiParts/res/drawable/preview.jpg -------------------------------------------------------------------------------- /XiaomiParts/res/raw/clear_speaker_sound.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SuperiorOS-Devices/device_xiaomi_ginkgo/eleven/XiaomiParts/res/raw/clear_speaker_sound.mp3 -------------------------------------------------------------------------------- /sepolicy/vendor/property.te: -------------------------------------------------------------------------------- 1 | # Mlipay 2 | type ifaa_prop, property_type; 3 | 4 | # Fingerprint 5 | type vendor_fp_prop, property_type; 6 | 7 | # Dirac 8 | type dirac_prop, property_type; 9 | -------------------------------------------------------------------------------- /overlay/packages/apps/overlays/NotchBarKiller/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Notch Bar Killer 3 | 4 | -------------------------------------------------------------------------------- /AndroidBoard.mk: -------------------------------------------------------------------------------- 1 | DEVICE_PATH := device/xiaomi/ginkgo 2 | 3 | # copy kernel headers to the build tree 4 | $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr: $(wildcard $(DEVICE_PATH)/kernel-headers/*) 5 | rm -rf $@ 6 | cp -a $(DEVICE_PATH)/kernel-headers/. $@ 7 | -------------------------------------------------------------------------------- /sepolicy/vendor/hal_power_default.te: -------------------------------------------------------------------------------- 1 | allow hal_power_default sysfs_touchpanel:dir search; 2 | allow hal_power_default sysfs_touchpanel:file rw_file_perms; 3 | allow hal_power_default sysfs_battery_saver:dir r_dir_perms; 4 | allow hal_power_default sysfs_battery_saver:file rw_file_perms; 5 | -------------------------------------------------------------------------------- /AndroidProducts.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2020 The Android Open Source Project 3 | # 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | 7 | PRODUCT_MAKEFILES := \ 8 | $(LOCAL_DIR)/superior_ginkgo.mk 9 | 10 | COMMON_LUNCH_CHOICES := \ 11 | superior_ginkgo-user \ 12 | superior_ginkgo-userdebug \ 13 | superior_ginkgo-eng 14 | -------------------------------------------------------------------------------- /overlay/packages/apps/overlays/NoCutoutOverlay/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | 5 | LOCAL_MODULE_TAGS := optional 6 | LOCAL_CERTIFICATE := platform 7 | LOCAL_PACKAGE_NAME := NoCutoutOverlay 8 | LOCAL_SDK_VERSION := current 9 | LOCAL_PRIVILEGED_MODULE := false 10 | 11 | include $(BUILD_PACKAGE) 12 | -------------------------------------------------------------------------------- /overlay/packages/apps/overlays/NotchBarKiller/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | 5 | LOCAL_MODULE_TAGS := optional 6 | LOCAL_CERTIFICATE := platform 7 | LOCAL_PACKAGE_NAME := NotchBarKiller 8 | LOCAL_SDK_VERSION := current 9 | LOCAL_PRIVILEGED_MODULE := false 10 | 11 | include $(BUILD_PACKAGE) 12 | -------------------------------------------------------------------------------- /power/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | LOCAL_C_INCLUDES := vendor/qcom/opensource/power 5 | LOCAL_SHARED_LIBRARIES := liblog libutils 6 | LOCAL_HEADER_LIBRARIES += libhardware_headers 7 | LOCAL_SRC_FILES := power-ginkgo.c 8 | LOCAL_MODULE := libpower_ginkgo 9 | LOCAL_VENDOR_MODULE := true 10 | include $(BUILD_STATIC_LIBRARY) 11 | -------------------------------------------------------------------------------- /extract-files.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Copyright (C) 2018-2019 The LineageOS Project 4 | # Copyright (C) 2020 Paranoid Android 5 | # 6 | # SPDX-License-Identifier: Apache-2.0 7 | # 8 | 9 | set -e 10 | 11 | export DEVICE=ginkgo 12 | export DEVICE_COMMON=trinket-common 13 | export VENDOR=xiaomi 14 | 15 | "./../../${VENDOR}/${DEVICE_COMMON}/extract-files.sh" "$@" 16 | 17 | -------------------------------------------------------------------------------- /setup-makefiles.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Copyright (C) 2018-2019 The LineageOS Project 4 | # Copyright (C) 2020 Paranoid Android 5 | # 6 | # SPDX-License-Identifier: Apache-2.0 7 | # 8 | 9 | set -e 10 | 11 | export DEVICE=ginkgo 12 | export DEVICE_COMMON=trinket-common 13 | export VENDOR=xiaomi 14 | 15 | "./../../${VENDOR}/${DEVICE_COMMON}/setup-makefiles.sh" "$@" 16 | -------------------------------------------------------------------------------- /ifaa/src/org/ifaa/android/manager/IFAAManagerV2.java: -------------------------------------------------------------------------------- 1 | package org.ifaa.android.manager; 2 | 3 | import android.compat.annotation.UnsupportedAppUsage; 4 | import android.content.Context; 5 | 6 | public abstract class IFAAManagerV2 extends IFAAManager { 7 | @UnsupportedAppUsage 8 | public abstract byte[] processCmdV2(Context paramContext, byte[] paramArrayOfByte); 9 | } 10 | -------------------------------------------------------------------------------- /ifaa/src/org/ifaa/android/manager/IFAAManagerV4.java: -------------------------------------------------------------------------------- 1 | package org.ifaa.android.manager; 2 | 3 | import android.compat.annotation.UnsupportedAppUsage; 4 | 5 | public abstract class IFAAManagerV4 extends IFAAManagerV3 { 6 | @UnsupportedAppUsage 7 | public abstract int getEnabled(int i); 8 | 9 | @UnsupportedAppUsage 10 | public abstract int[] getIDList(int i); 11 | } 12 | -------------------------------------------------------------------------------- /sepolicy/vendor/genfs_contexts: -------------------------------------------------------------------------------- 1 | genfscon sysfs /touchpanel u:object_r:sysfs_touchpanel:s0 2 | genfscon sysfs /kernel/fast_charge/force_fast_charge u:object_r:sysfs_fcharge:s0 3 | genfscon sysfs /module/battery_saver/parameters/enabled u:object_r:sysfs_battery_saver:s0 4 | 5 | # FPS info 6 | genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/sde-crtc-0/measured_fps u:object_r:sysfs_graphics:s0 7 | -------------------------------------------------------------------------------- /ifaa/src/org/ifaa/android/manager/IFAAManagerFactory.java: -------------------------------------------------------------------------------- 1 | package org.ifaa.android.manager; 2 | 3 | import android.compat.annotation.UnsupportedAppUsage; 4 | import android.content.Context; 5 | 6 | public class IFAAManagerFactory { 7 | @UnsupportedAppUsage 8 | public static IFAAManager getIFAAManager(Context context, int authType) { 9 | return IFAAManagerImpl.getInstance(context); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Android.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2018-2019 The LineageOS Project 3 | # Copyright (C) 2020 Paranoid Android 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | # 7 | 8 | LOCAL_PATH := $(call my-dir) 9 | 10 | ifeq ($(TARGET_DEVICE),ginkgo) 11 | 12 | subdir_makefiles=$(call first-makefiles-under,$(LOCAL_PATH)) 13 | $(foreach mk,$(subdir_makefiles),$(info including $(mk) ...)$(eval include $(mk))) 14 | 15 | endif 16 | -------------------------------------------------------------------------------- /sepolicy/vendor/hwservice_contexts: -------------------------------------------------------------------------------- 1 | # Fingerprint 2 | vendor.goodix.hardware.interfaces.biometrics.fingerprint::IGoodixFingerprintDaemon u:object_r:hal_fingerprint_hwservice:s0 3 | vendor.goodix.hardware.interfaces.biometrics.fingerprint::IGoodixFingerprintDaemonExt u:object_r:hal_fingerprint_hwservice:s0 4 | 5 | # Mlipay 6 | vendor.xiaomi.hardware.mlipay::IMlipayService u:object_r:hal_mlipay_hwservice:s0 7 | -------------------------------------------------------------------------------- /XiaomiParts/res/drawable/ic_preset.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /configs/keylayout/uinput-fpc.kl: -------------------------------------------------------------------------------- 1 | # 2 | # FPC1020 Touch sensor driver 3 | # 4 | # Copyright (c) 2013,2014 Fingerprint Cards AB 5 | # 6 | # This program is free software; you can redistribute it and/or 7 | # modify it under the terms of the GNU General Public License Version 2 8 | # as published by the Free Software Foundation. 9 | # 10 | 11 | #key 96 DPAD_CENTER 12 | #key 102 HOME 13 | #key 105 DPAD_LEFT 14 | #key 106 DPAD_RIGHT 15 | 16 | -------------------------------------------------------------------------------- /configs/idc/uinput-fpc.idc: -------------------------------------------------------------------------------- 1 | # 2 | # FPC1020 Touch sensor driver 3 | # 4 | # Copyright (c) 2013,2014 Fingerprint Cards AB 5 | # 6 | # This program is free software; you can redistribute it and/or 7 | # modify it under the terms of the GNU General Public License Version 2 8 | # as published by the Free Software Foundation. 9 | # 10 | 11 | device.internal = 1 12 | 13 | keyboard.layout = uinput-fpc 14 | keyboard.builtIn = 1 15 | keyboard.orientationAware = 1 16 | -------------------------------------------------------------------------------- /configs/thermal/thermal-engine-map.conf: -------------------------------------------------------------------------------- 1 | [0:thermal-engine-normal.conf] 2 | [1:thermal-engine-high.conf] 3 | [2:thermal-engine-extreme.conf] 4 | [8:thermal-engine-phone.conf] 5 | [9:thermal-engine-sgame.conf] 6 | [10:thermal-engine-nolimits.conf] 7 | [11:thermal-engine-class0.conf] 8 | [12:thermal-engine-camera.conf] 9 | [13:thermal-engine-pubgmhd.conf] 10 | [14:thermal-engine-youtobe.conf] 11 | [15:thermal-engine-arvr.conf] 12 | [16:thermal-engine-tgame.conf] 13 | 14 | -------------------------------------------------------------------------------- /configs/idc/uinput-goodix.idc: -------------------------------------------------------------------------------- 1 | # 2 | # FPC1020 Touch sensor driver 3 | # 4 | # Copyright (c) 2013,2014 Fingerprint Cards AB 5 | # 6 | # This program is free software; you can redistribute it and/or 7 | # modify it under the terms of the GNU General Public License Version 2 8 | # as published by the Free Software Foundation. 9 | # 10 | 11 | device.internal = 1 12 | 13 | keyboard.layout = uinput-gf 14 | keyboard.builtIn = 1 15 | keyboard.orientationAware = 1 16 | -------------------------------------------------------------------------------- /configs/keylayout/uinput-goodix.kl: -------------------------------------------------------------------------------- 1 | # 2 | # Goodix fingerprint sensor driver 3 | # 4 | # Copyright (c) 2013,2014 Fingerprint Cards AB 5 | # 6 | # This program is free software; you can redistribute it and/or 7 | # modify it under the terms of the GNU General Public License Version 2 8 | # as published by the Free Software Foundation. 9 | # 10 | #key 96 DPAD_CENTER 11 | #key 96 DPAD_CENTER 12 | #key 102 HOME 13 | #key 105 DPAD_LEFT 14 | #key 106 DPAD_RIGHT 15 | -------------------------------------------------------------------------------- /XiaomiParts/res/drawable/action_reset.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | -------------------------------------------------------------------------------- /sepolicy/vendor/property_contexts: -------------------------------------------------------------------------------- 1 | # Mlipay 2 | persist.sys.ifaa u:object_r:ifaa_prop:s0 3 | persist.vendor.sys.pay. u:object_r:ifaa_prop:s0 4 | 5 | # Fingerprint 6 | persist.vendor.sys.fp. u:object_r:vendor_fp_prop:s0 7 | persist.vendor.fpc. u:object_r:vendor_fp_prop:s0 8 | persist.sys.fp. u:object_r:vendor_fp_prop:s0 9 | sys.vendor.fp. u:object_r:vendor_fp_prop:s0 10 | 11 | # Dirac 12 | persist.audio.dirac. u:object_r:dirac_prop:s0 13 | -------------------------------------------------------------------------------- /XiaomiParts/res/menu/menu_reset.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 14 | 15 | -------------------------------------------------------------------------------- /XiaomiParts/res/drawable/ic_dirac.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /ifaa/src/org/ifaa/android/manager/IIFAAService.aidl: -------------------------------------------------------------------------------- 1 | package org.ifaa.android.manager; 2 | 3 | interface IIFAAService { 4 | byte[] processCmd_v2(in byte[] param); 5 | int[] getIDList(int bioType); 6 | int faceEnroll(String sessionId, int flags); 7 | int faceUpgrade(int action, String path, int offset, in byte[] data, int data_len); 8 | int faceAuthenticate_v2(String sessionId, int flags); 9 | int faceCancel_v2(String sessionId); 10 | byte[] faceInvokeCommand(in byte[] param); 11 | int faceGetCellinfo(); 12 | } 13 | -------------------------------------------------------------------------------- /XiaomiParts/res/drawable/ic_headphones.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /XiaomiParts/res/drawable/ic_doze.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /fingerprint/android.hardware.biometrics.fingerprint@2.1-service.ginkgo.rc: -------------------------------------------------------------------------------- 1 | on init 2 | chown system system /dev/goodix_fp 3 | 4 | on post-fs-data 5 | mkdir /data/vendor/goodix 0770 system system 6 | mkdir /data/vendor/fpc 0770 system system 7 | 8 | service vendor.fps_hal /vendor/bin/hw/android.hardware.biometrics.fingerprint@2.1-service.ginkgo 9 | # "class hal" causes a race condition on some devices due to files created 10 | # in /data. As a workaround, postpone startup until later in boot once 11 | # /data is mounted. 12 | class late_start 13 | user system 14 | group system input uhid 15 | -------------------------------------------------------------------------------- /XiaomiParts/res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /sepolicy/vendor/hal_mlipay_default.te: -------------------------------------------------------------------------------- 1 | type hal_mlipay_default, domain; 2 | hal_server_domain(hal_mlipay_default, hal_mlipay) 3 | 4 | type hal_mlipay_default_exec, exec_type, vendor_file_type, file_type; 5 | 6 | init_daemon_domain(hal_mlipay_default) 7 | 8 | allow hal_mlipay_default ion_device:chr_file rw_file_perms; 9 | allow hal_mlipay_default tee_device:chr_file rw_file_perms; 10 | r_dir_file(hal_mlipay_default, firmware_file) 11 | 12 | get_prop(hal_mlipay_default, vendor_fp_prop) 13 | set_prop(hal_mlipay_default, vendor_fp_prop) 14 | set_prop(hal_mlipay_default, vendor_tee_listener_prop) 15 | set_prop(hal_mlipay_default, ifaa_prop) 16 | -------------------------------------------------------------------------------- /XiaomiParts/res/drawable/ic_flip.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /superior.dependencies: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "repository": "device_xiaomi_trinket-common", 4 | "target_path": "device/xiaomi/trinket-common" 5 | }, 6 | { 7 | "repository": "vendor_xiaomi_ginkgo-1", 8 | "target_path": "vendor/xiaomi/ginkgo" 9 | }, 10 | { 11 | "repository": "android_vendor_xiaomi_trinket-common", 12 | "target_path": "vendor/xiaomi/trinket-common" 13 | }, 14 | { 15 | "remote": "github", 16 | "repository": "kubersharma001/android_packages_apps_GcamGOPrebuilt", 17 | "target_path": "packages/apps/GcamGOPrebuilt", 18 | "branch": "master" 19 | } 20 | ] 21 | -------------------------------------------------------------------------------- /configs/hidl/manifest_willow.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | android.hardware.nfc 4 | hwbinder 5 | 1.2 6 | 7 | INfc 8 | default 9 | 10 | 11 | 12 | vendor.nxp.hardware.nfc 13 | hwbinder 14 | 2.0 15 | 16 | INqNfc 17 | default 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /sepolicy/vendor/file_contexts: -------------------------------------------------------------------------------- 1 | # Fingerprint 2 | /(vendor|system/vendor)/bin/hw/android\.hardware\.biometrics\.fingerprint@2\.1-service\.ginkgo u:object_r:hal_fingerprint_default_exec:s0 3 | 4 | # Fingerprint devices 5 | /dev/goodix_fp u:object_r:fingerprint_device:s0 6 | 7 | # Mlipay 8 | /(vendor|system/vendor)/bin/mlipayd@1\.1 u:object_r:hal_mlipay_default_exec:s0 9 | 10 | # Vibrator 11 | /sys/devices/platform/soc/1c40000.qcom,spmi/spmi-0/spmi0-03/1c40000.qcom,spmi:qcom,pmi632@3:qcom,vibrator@5700/leds/vibrator/vtg_level u:object_r:vibrator_dev:s0 12 | 13 | -------------------------------------------------------------------------------- /XiaomiParts/res/layout/activity_kcal.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 13 | 14 | 18 | 19 | -------------------------------------------------------------------------------- /XiaomiParts/res/xml/clear_speaker_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 11 | 12 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /XiaomiParts/res/drawable/ic_mi.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /XiaomiParts/res/drawable/ic_usb_fastcharge.xml: -------------------------------------------------------------------------------- 1 | 8 | 14 | 15 | -------------------------------------------------------------------------------- /XiaomiParts/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | #FF6700 18 | 19 | -------------------------------------------------------------------------------- /rootdir/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | LOCAL_MODULE := init.target.rc 5 | LOCAL_MODULE_TAGS := optional 6 | LOCAL_MODULE_CLASS := ETC 7 | LOCAL_SRC_FILES := etc/init.target.rc 8 | LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init/hw 9 | include $(BUILD_PREBUILT) 10 | 11 | include $(CLEAR_VARS) 12 | LOCAL_MODULE := init.xiaomi_parts.rc 13 | LOCAL_MODULE_TAGS := optional 14 | LOCAL_MODULE_CLASS := ETC 15 | LOCAL_SRC_FILES := etc/init.xiaomi_parts.rc 16 | LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init/hw 17 | include $(BUILD_PREBUILT) 18 | 19 | include $(CLEAR_VARS) 20 | LOCAL_MODULE := fstab.qcom 21 | LOCAL_MODULE_TAGS := optional 22 | LOCAL_MODULE_CLASS := ETC 23 | LOCAL_SRC_FILES := etc/fstab.qcom 24 | LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC) 25 | include $(BUILD_PREBUILT) 26 | -------------------------------------------------------------------------------- /XiaomiParts/res/drawable/action_presets.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /sepolicy/vendor/hal_fingerprint_default.te: -------------------------------------------------------------------------------- 1 | allow hal_fingerprint_default fingerprint_device:chr_file rw_file_perms; 2 | allow hal_fingerprint_default fingerprint_data_file:dir create_dir_perms; 3 | allow hal_fingerprint_default fingerprint_data_file:file create_file_perms; 4 | allow hal_fingerprint_default self:netlink_socket create_socket_perms_no_ioctl; 5 | allow hal_fingerprint_default tee_device:chr_file rw_file_perms; 6 | allow hal_fingerprint_default uhid_device:chr_file rw_file_perms; 7 | allow hal_fingerprint_default rootfs:dir { read open }; 8 | allow hal_fingerprint_default mnt_user_file:lnk_file read; 9 | allow hal_fingerprint_default sdcardfs:dir search; 10 | 11 | set_prop(hal_fingerprint_default, vendor_fp_prop) 12 | hal_client_domain(hal_fingerprint_default, vendor_hal_perf) 13 | 14 | # Ignore all logging requests 15 | dontaudit hal_fingerprint storage_file:dir search; 16 | -------------------------------------------------------------------------------- /ifaa/src/org/ifaa/android/manager/IFAAManagerV3.java: -------------------------------------------------------------------------------- 1 | package org.ifaa.android.manager; 2 | 3 | import android.compat.annotation.UnsupportedAppUsage; 4 | 5 | public abstract class IFAAManagerV3 extends IFAAManagerV2 { 6 | @UnsupportedAppUsage 7 | public static final String KEY_FINGERPRINT_FULLVIEW = "org.ifaa.ext.key.CUSTOM_VIEW"; 8 | @UnsupportedAppUsage 9 | public static final String KEY_GET_SENSOR_LOCATION = "org.ifaa.ext.key.GET_SENSOR_LOCATION"; 10 | @UnsupportedAppUsage 11 | public static final String VALUE_FINGERPRINT_DISABLE = "disable"; 12 | @UnsupportedAppUsage 13 | public static final String VLAUE_FINGERPRINT_ENABLE = "enable"; 14 | 15 | @UnsupportedAppUsage 16 | public abstract String getExtInfo(int authType, String keyExtInfo); 17 | 18 | @UnsupportedAppUsage 19 | public abstract void setExtInfo(int authType, String keyExtInfo, String valExtInfo); 20 | } 21 | -------------------------------------------------------------------------------- /ifaa/Android.bp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2017-2020 The LineageOS Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | java_library { 18 | name: "org.ifaa.android.manager", 19 | installable: true, 20 | srcs: [ 21 | "src/**/*.java", 22 | "src/**/I*.aidl", 23 | ], 24 | libs: [ 25 | "unsupportedappusage", 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /XiaomiParts/src/org/lineageos/settings/device/DiracService.java: -------------------------------------------------------------------------------- 1 | package org.lineageos.settings.device; 2 | 3 | import android.app.Service; 4 | import android.content.Intent; 5 | import android.os.IBinder; 6 | import android.util.Log; 7 | 8 | public class DiracService extends Service { 9 | 10 | private final String TAG = this.getClass().getName(); 11 | 12 | static DiracUtils sDiracUtils; 13 | 14 | @Override 15 | public IBinder onBind(Intent arg0) { 16 | return null; 17 | } 18 | 19 | @Override 20 | public int onStartCommand(Intent intent, int flags, int startId) { 21 | sDiracUtils = new DiracUtils(); 22 | sDiracUtils.onBootCompleted(); 23 | Log.d(TAG, "Service started"); 24 | return START_STICKY; 25 | } 26 | 27 | @Override 28 | public void onDestroy() { 29 | super.onDestroy(); 30 | Log.d(TAG, "Service destroyed"); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /XiaomiParts/res/drawable/ic_color.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /init/Android.bp: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (C) 2019 The LineageOS Project 3 | // 4 | // Licensed under the Apache License, Version 2.0 (the "License"); 5 | // you may not use this file except in compliance with the License. 6 | // You may obtain a copy of the License at 7 | // 8 | // http://www.apache.org/licenses/LICENSE-2.0 9 | // 10 | // Unless required by applicable law or agreed to in writing, software 11 | // distributed under the License is distributed on an "AS IS" BASIS, 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | // See the License for the specific language governing permissions and 14 | // limitations under the License. 15 | // 16 | 17 | cc_library_static { 18 | name: "libinit_ginkgo", 19 | recovery_available: true, 20 | srcs: ["init_ginkgo.cpp"], 21 | include_dirs: [ 22 | "system/core/base/include", 23 | "system/core/init" 24 | ], 25 | shared_libs: ["libbase"] 26 | } 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 20 | 36px 21 | 22 | -------------------------------------------------------------------------------- /XiaomiParts/res/drawable/ic_speaker_cleaner_icon.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 11 | 14 | 15 | -------------------------------------------------------------------------------- /XiaomiParts/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 20 | 21 |