├── sepolicy
├── public
│ ├── property.te
│ ├── devicesettings_app.te
│ └── attributes
├── vendor
│ ├── recovery.te
│ ├── uevent.te
│ ├── gpuservice.te
│ ├── shell.te
│ ├── cdsprpcd.te
│ ├── priv_app.te
│ ├── traceur_app.te
│ ├── mediaprovider.te
│ ├── uncrypt.te
│ ├── untrusted_app_27.te
│ ├── untrusted_app_29.te
│ ├── vendor_power_off_alarm.te
│ ├── rild.te
│ ├── domain.te
│ ├── hal_ir_default.te
│ ├── radio.te
│ ├── sensors.te
│ ├── adsprpcd.te
│ ├── hwservice.te
│ ├── toolbox.te
│ ├── vold.te
│ ├── device.te
│ ├── hal_bootctl_default.te
│ ├── hal_health_default.te
│ ├── isolated_app.te
│ ├── hal_light_default.te
│ ├── vendor_vppservice.te
│ ├── hal_bluetooth_default.te
│ ├── hal_mlipay.te
│ ├── hal_neuralnetworks_default.te
│ ├── vendor_hal_drm_widevine.te
│ ├── surfaceflinger.te
│ ├── kernel.te
│ ├── property.te
│ ├── system_server.te
│ ├── vendor_hal_capabilityconfigstore_qti_default.te
│ ├── vendor_mdm_helper.te
│ ├── tee.te
│ ├── thermal-engine.te
│ ├── hal_power_stats_default.te
│ ├── platform_app.te
│ ├── untrusted_app.te
│ ├── init.te
│ ├── app.te
│ ├── vendor_wcnss_service.te
│ ├── hal_mlipay_default.te
│ ├── hal_audio_default.te
│ ├── vendor_init.te
│ ├── vendor_qti_init_shell.te
│ ├── hwservice_contexts
│ ├── vendor_hal_perf_default.te
│ ├── hal_power_default.te
│ ├── hal_sensors_default.te
│ ├── system_app.te
│ ├── file.te
│ ├── hal_camera_default.te
│ ├── mi_thermald.te
│ ├── hal_fingerprint_default.te
│ ├── batterysecret.te
│ ├── dontaudit.te
│ └── property_contexts
└── private
│ ├── system_server.te
│ ├── updater_app.te
│ ├── vendor_wfd_app.te
│ ├── mediaserver.te
│ ├── dontaudit.te
│ ├── seapp_contexts
│ ├── untrusted_app.te
│ ├── system_suspend.te
│ ├── system_app.te
│ ├── property_contexts
│ └── devicesettings_app.te
├── configs
├── board-info.txt
├── hals.conf
├── props
│ ├── odm.prop
│ ├── product.prop
│ ├── system_ext.prop
│ └── system.prop
├── wifi
│ ├── p2p_supplicant_overlay.conf
│ └── wpa_supplicant_overlay.conf
├── public.libraries.txt
├── input
│ ├── keylayout
│ │ ├── uinput-fpc.kl
│ │ ├── uinput-goodix.kl
│ │ ├── gpio-keys.kl
│ │ └── sm6150-idp-snd-card_Button_Jack.kl
│ └── idc
│ │ ├── uinput-fpc.idc
│ │ └── uinput-goodix.idc
├── displayconfig
│ └── display_id_0.xml
├── display
│ └── display_id_4630946736638489729.xml
├── media
│ └── media_codecs_vendor_audio.xml
├── camera
│ └── camxoverridesettings.txt
├── perf
│ └── msm_irqbalance.conf
├── excluded-input-devices.xml
└── vintf
│ └── compatibility_matrix.xml
├── Android.bp
├── parts
├── proguard.flags
├── res
│ ├── raw
│ │ └── clear_speaker_sound.mp3
│ ├── drawable
│ │ ├── ic_doze_aod.xml
│ │ ├── ic_doze_wake.xml
│ │ ├── ic_doze_pickup.xml
│ │ ├── ic_speaker_cleaner_icon.xml
│ │ ├── ic_doze_hand.xml
│ │ ├── ic_thermal_dialer.xml
│ │ ├── ic_doze_pocket.xml
│ │ ├── ic_thermal_camera.xml
│ │ ├── ic_thermal_benchmark.xml
│ │ ├── ic_thermal_browser.xml
│ │ ├── ic_thermal_gaming.xml
│ │ ├── ic_thermal_default.xml
│ │ ├── ic_thermal_settings.xml
│ │ └── ic_thermal_streaming.xml
│ ├── xml
│ │ ├── clear_speaker_settings.xml
│ │ ├── dirac_settings.xml
│ │ └── doze_settings.xml
│ ├── layout
│ │ ├── thermal_layout.xml
│ │ └── thermal_list_item.xml
│ ├── values
│ │ └── styles.xml
│ ├── values-zh-rCN
│ │ └── strings.xml
│ ├── values-zh-rHK
│ │ └── strings.xml
│ ├── values-zh-rSG
│ │ └── strings.xml
│ ├── values-zh-rTW
│ │ └── strings.xml
│ ├── values-ko-rKR
│ │ └── strings.xml
│ ├── values-ja-rJP
│ │ └── strings.xml
│ ├── values-ar-rSA
│ │ └── strings.xml
│ ├── values-iw-rIL
│ │ └── strings.xml
│ ├── values-ur-rIN
│ │ └── strings.xml
│ ├── values-ur-rPK
│ │ └── strings.xml
│ ├── values-cs-rCZ
│ │ └── strings.xml
│ ├── values-fi-rFI
│ │ └── strings.xml
│ ├── values-hi-rIN
│ │ └── strings.xml
│ ├── values-mr-rIN
│ │ └── strings.xml
│ ├── values-bn-rBD
│ │ └── strings.xml
│ ├── values-km-rKH
│ │ └── strings.xml
│ ├── values-vi-rVN
│ │ └── strings.xml
│ ├── values-gu-rIN
│ │ └── strings.xml
│ ├── values-pa-rIN
│ │ └── strings.xml
│ ├── values-as-rIN
│ │ └── strings.xml
│ └── values-ms-rMY
│ │ └── strings.xml
├── Android.bp
└── src
│ └── org
│ └── lineageos
│ └── settings
│ ├── dirac
│ ├── DiracActivity.java
│ └── DiracSound.java
│ ├── doze
│ ├── DozeSettingsActivity.java
│ └── PickupSensor.java
│ ├── BootCompletedReceiver.java
│ ├── thermal
│ └── ThermalActivity.java
│ └── speaker
│ └── ClearSpeakerActivity.java
├── overlay
├── WifiMojito
│ ├── Android.bp
│ ├── res
│ │ └── values
│ │ │ ├── integers.xml
│ │ │ └── strings.xml
│ └── AndroidManifest.xml
├── BoostFrameworkOverlay
│ ├── Android.bp
│ ├── res
│ │ └── values
│ │ │ └── config.xml
│ └── AndroidManifest.xml
├── DialerMojito
│ ├── Android.bp
│ ├── AndroidManifest.xml
│ └── res
│ │ └── values
│ │ └── config.xml
├── SettingsMojito
│ ├── Android.bp
│ └── AndroidManifest.xml
├── SystemUIMojito
│ ├── Android.bp
│ ├── AndroidManifest.xml
│ └── res
│ │ ├── drawable
│ │ ├── rounded_corner_bottom.xml
│ │ └── rounded_corner_top.xml
│ │ └── values
│ │ └── dimens.xml
├── TelephonyMojito
│ ├── Android.bp
│ ├── AndroidManifest.xml
│ └── res
│ │ └── values
│ │ └── config.xml
├── FrameworksMojito
│ ├── Android.bp
│ ├── AndroidManifest.xml
│ └── res
│ │ └── values
│ │ └── dimens.xml
├── CarrierConfigMojito
│ ├── Android.bp
│ └── AndroidManifest.xml
└── SettingsProviderMojito
│ ├── Android.bp
│ ├── AndroidManifest.xml
│ └── res
│ └── values
│ └── defaults.xml
├── rro_overlays
└── ApertureMojito
│ ├── Android.bp
│ ├── AndroidManifest.xml
│ └── res
│ └── values
│ └── config.xml
├── .editorconfig
├── rootdir
├── etc
│ ├── init.mojito.perf.rc
│ └── init.recovery.qcom.rc
└── bin
│ ├── init.qcom.early_boot.sh
│ └── init.qcom.sh
├── AndroidProducts.mk
├── init
└── Android.bp
├── bootctrl
└── Android.bp
├── releasetools.py
├── setup-makefiles.sh
├── superior_mojito.mk
├── gpt-utils
└── Android.bp
├── superior.dependencies
├── README.md
└── extract-files.sh
/sepolicy/public/property.te:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/configs/board-info.txt:
--------------------------------------------------------------------------------
1 | require board=mojito|sunny
2 |
--------------------------------------------------------------------------------
/configs/hals.conf:
--------------------------------------------------------------------------------
1 | sensors.elliptic@2.0.so
2 | sensors.ssc.so
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/recovery.te:
--------------------------------------------------------------------------------
1 | allow recovery pstorefs:dir r_dir_perms;
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/uevent.te:
--------------------------------------------------------------------------------
1 | allow ueventd self:capability sys_nice;
2 |
--------------------------------------------------------------------------------
/sepolicy/public/devicesettings_app.te:
--------------------------------------------------------------------------------
1 | type devicesettings_app, domain;
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/gpuservice.te:
--------------------------------------------------------------------------------
1 | get_prop(gpuservice, graphics_config_prop)
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/shell.te:
--------------------------------------------------------------------------------
1 | allow shell zygote:unix_stream_socket { getopt };
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/cdsprpcd.te:
--------------------------------------------------------------------------------
1 | r_dir_file(vendor_cdsprpcd, public_adsprpcd_file)
2 |
--------------------------------------------------------------------------------
/configs/props/odm.prop:
--------------------------------------------------------------------------------
1 | # QC framework value-adds
2 | ro.vendor.qti.va_odm.support=1
3 |
--------------------------------------------------------------------------------
/sepolicy/private/system_server.te:
--------------------------------------------------------------------------------
1 | get_prop(system_server, vendor_wfd_sys_debug_prop)
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/priv_app.te:
--------------------------------------------------------------------------------
1 | allow priv_app zygote:unix_stream_socket { getopt };
2 |
--------------------------------------------------------------------------------
/sepolicy/private/updater_app.te:
--------------------------------------------------------------------------------
1 | allow updater_app zygote:unix_stream_socket { getopt };
2 |
--------------------------------------------------------------------------------
/sepolicy/private/vendor_wfd_app.te:
--------------------------------------------------------------------------------
1 | get_prop(vendor_wfd_app, vendor_wfd_sys_debug_prop)
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/traceur_app.te:
--------------------------------------------------------------------------------
1 | allow traceur_app zygote:unix_stream_socket { getopt };
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/mediaprovider.te:
--------------------------------------------------------------------------------
1 | allow mediaprovider zygote:unix_stream_socket { getopt };
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/uncrypt.te:
--------------------------------------------------------------------------------
1 | # OTA with encrypted f2fs
2 | allow uncrypt self:capability sys_admin;
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/untrusted_app_27.te:
--------------------------------------------------------------------------------
1 | allow untrusted_app_27 zygote:unix_stream_socket { getopt };
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/untrusted_app_29.te:
--------------------------------------------------------------------------------
1 | allow untrusted_app_29 zygote:unix_stream_socket { getopt };
2 |
--------------------------------------------------------------------------------
/sepolicy/private/mediaserver.te:
--------------------------------------------------------------------------------
1 | dontaudit mediaserver package_native_service:service_manager { find };
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vendor_power_off_alarm.te:
--------------------------------------------------------------------------------
1 | allow vendor_power_off_alarm kmsg_device:chr_file { getattr };
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/rild.te:
--------------------------------------------------------------------------------
1 | set_prop(rild, vendor_deviceid_prop)
2 | get_prop(rild, vendor_pd_locater_dbg_prop)
3 |
--------------------------------------------------------------------------------
/sepolicy/public/attributes:
--------------------------------------------------------------------------------
1 | attribute hal_mlipay;
2 | attribute hal_mlipay_client;
3 | attribute hal_mlipay_server;
4 |
--------------------------------------------------------------------------------
/sepolicy/vendor/domain.te:
--------------------------------------------------------------------------------
1 | # Allow apps to get aux camera prop
2 | get_prop(domain, vendor_persist_camera_prop)
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_ir_default.te:
--------------------------------------------------------------------------------
1 | allow hal_ir_default lirc_device:{
2 | chr_file
3 | file
4 | } rw_file_perms;
5 |
--------------------------------------------------------------------------------
/sepolicy/vendor/radio.te:
--------------------------------------------------------------------------------
1 | get_prop(radio, vendor_audio_prop)
2 |
3 | allow radio zygote:unix_stream_socket { getopt };
4 |
--------------------------------------------------------------------------------
/sepolicy/private/dontaudit.te:
--------------------------------------------------------------------------------
1 | # please don't kill yourself unless it's allowed
2 | dontaudit linkerconfig self:capability kill;
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/sensors.te:
--------------------------------------------------------------------------------
1 | # Allow sensors to access backlight sysfs state
2 | r_dir_file(vendor_sensors, vendor_sysfs_graphics)
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/adsprpcd.te:
--------------------------------------------------------------------------------
1 | r_dir_file(vendor_adsprpcd, public_adsprpcd_file)
2 | r_dir_file(vendor_adsprpcd, vendor_sysfs_graphics)
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hwservice.te:
--------------------------------------------------------------------------------
1 | type hal_mlipay_hwservice, hwservice_manager_type;
2 | type hal_vpp_hwservice, hwservice_manager_type;
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/toolbox.te:
--------------------------------------------------------------------------------
1 | allow toolbox per_boot_file:dir create_dir_perms;
2 | allow toolbox per_boot_file:file create_file_perms;
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vold.te:
--------------------------------------------------------------------------------
1 | # Allow vold to set read_ahead_kb on /data partition
2 | allow vold vendor_sysfs_scsi_host:file w_file_perms;
3 |
--------------------------------------------------------------------------------
/Android.bp:
--------------------------------------------------------------------------------
1 | soong_namespace {
2 | imports: [
3 | "hardware/qcom-caf/bootctrl",
4 | "hardware/xiaomi",
5 | ],
6 | }
7 |
--------------------------------------------------------------------------------
/sepolicy/private/seapp_contexts:
--------------------------------------------------------------------------------
1 | user=system seinfo=platform name=org.lineageos.settings domain=devicesettings_app type=system_app_data_file
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/device.te:
--------------------------------------------------------------------------------
1 | type fingerprint_device, dev_type;
2 |
3 | type lirc_device, dev_type;
4 |
5 | type sound_device, dev_type;
6 |
--------------------------------------------------------------------------------
/parts/proguard.flags:
--------------------------------------------------------------------------------
1 | -keep class org.lineageos.settings.dirac.* {
2 | *;
3 | }
4 |
5 | -keep class org.lineageos.settings.doze.* {
6 | *;
7 | }
8 |
--------------------------------------------------------------------------------
/parts/res/raw/clear_speaker_sound.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_xiaomi_mojito/thirteen/parts/res/raw/clear_speaker_sound.mp3
--------------------------------------------------------------------------------
/configs/wifi/p2p_supplicant_overlay.conf:
--------------------------------------------------------------------------------
1 | disable_scan_offload=1
2 | p2p_no_group_iface=1
3 | persistent_reconnect=1
4 | bss_max_count=400
5 | p2p_go_intent=14
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_bootctl_default.te:
--------------------------------------------------------------------------------
1 | # Edit the attributes stored in the GPT.
2 | allow hal_bootctl_default vendor_uefi_block_device:blk_file getattr;
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_health_default.te:
--------------------------------------------------------------------------------
1 | allow hal_health_default sysfs_wakeup:dir r_dir_perms;
2 | allow hal_health_default sysfs_wakeup:file r_file_perms;
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/isolated_app.te:
--------------------------------------------------------------------------------
1 | allow isolated_app app_data_file:file setattr;
2 | dontaudit isolated_app content_capture_service:service_manager find;
3 |
--------------------------------------------------------------------------------
/sepolicy/private/untrusted_app.te:
--------------------------------------------------------------------------------
1 | allow untrusted_app zygote:unix_stream_socket { getopt };
2 | allow untrusted_app window_service:service_manager { find };
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_light_default.te:
--------------------------------------------------------------------------------
1 | allow hal_light_default {
2 | sysfs_leds
3 | }:file rw_file_perms;
4 |
5 | r_dir_file(hal_light_default, sysfs_leds)
6 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vendor_vppservice.te:
--------------------------------------------------------------------------------
1 | allow vendor_vppservice hal_vpp_hwservice:hwservice_manager { add };
2 |
3 | r_dir_file(vendor_vppservice, public_adsprpcd_file)
4 |
--------------------------------------------------------------------------------
/overlay/WifiMojito/Android.bp:
--------------------------------------------------------------------------------
1 | runtime_resource_overlay {
2 | name: "WifiMojito",
3 | theme: "WifiMojito",
4 | sdk_version: "current",
5 | vendor: true,
6 | }
7 |
--------------------------------------------------------------------------------
/rro_overlays/ApertureMojito/Android.bp:
--------------------------------------------------------------------------------
1 | runtime_resource_overlay {
2 | name: "ApertureMojito",
3 | sdk_version: "current",
4 | system_ext_specific: true,
5 | }
6 |
--------------------------------------------------------------------------------
/overlay/BoostFrameworkOverlay/Android.bp:
--------------------------------------------------------------------------------
1 | runtime_resource_overlay {
2 | name: "BoostFrameworkOverlay",
3 | product_specific: true,
4 | sdk_version: "current",
5 | }
6 |
--------------------------------------------------------------------------------
/overlay/DialerMojito/Android.bp:
--------------------------------------------------------------------------------
1 | runtime_resource_overlay {
2 | name: "DialerMojito",
3 | theme: "DialerMojito",
4 | sdk_version: "current",
5 | vendor: true,
6 | }
7 |
--------------------------------------------------------------------------------
/overlay/BoostFrameworkOverlay/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | true
5 |
6 |
7 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_bluetooth_default.te:
--------------------------------------------------------------------------------
1 | # Allow hal_bluetooth_default to read files in vendor_wifi_vendor_data_file
2 | r_dir_file(hal_bluetooth_default, vendor_wifi_vendor_data_file)
3 |
--------------------------------------------------------------------------------
/overlay/SettingsMojito/Android.bp:
--------------------------------------------------------------------------------
1 | runtime_resource_overlay {
2 | name: "SettingsMojito",
3 | theme: "SettingsMojito",
4 | sdk_version: "current",
5 | vendor: true,
6 | }
7 |
--------------------------------------------------------------------------------
/overlay/SystemUIMojito/Android.bp:
--------------------------------------------------------------------------------
1 | runtime_resource_overlay {
2 | name: "SystemUIMojito",
3 | theme: "SystemUIMojito",
4 | sdk_version: "current",
5 | vendor: true,
6 | }
7 |
--------------------------------------------------------------------------------
/overlay/TelephonyMojito/Android.bp:
--------------------------------------------------------------------------------
1 | runtime_resource_overlay {
2 | name: "TelephonyMojito",
3 | theme: "TelephonyMojito",
4 | sdk_version: "current",
5 | vendor: true,
6 | }
7 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_mlipay.te:
--------------------------------------------------------------------------------
1 | # HwBinder IPC from client to server
2 | binder_call(hal_mlipay_client, hal_mlipay_server)
3 |
4 | hal_attribute_hwservice(hal_mlipay, hal_mlipay_hwservice)
5 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_neuralnetworks_default.te:
--------------------------------------------------------------------------------
1 | r_dir_file(vendor_hal_neuralnetworks_default, public_adsprpcd_file)
2 |
3 | get_prop(vendor_hal_neuralnetworks_default, vendor_adsprpc_prop)
4 |
--------------------------------------------------------------------------------
/overlay/FrameworksMojito/Android.bp:
--------------------------------------------------------------------------------
1 | runtime_resource_overlay {
2 | name: "FrameworksMojito",
3 | theme: "FrameworksMojito",
4 | sdk_version: "current",
5 | vendor: true,
6 | }
7 |
--------------------------------------------------------------------------------
/overlay/CarrierConfigMojito/Android.bp:
--------------------------------------------------------------------------------
1 | runtime_resource_overlay {
2 | name: "CarrierConfigMojito",
3 | theme: "CarrierConfigMojito",
4 | sdk_version: "current",
5 | vendor: true,
6 | }
7 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vendor_hal_drm_widevine.te:
--------------------------------------------------------------------------------
1 | # Allow the widwevine to read the drm firmware
2 | allow vendor_hal_drm_widevine vfat:dir r_dir_perms;
3 | allow vendor_hal_drm_widevine vfat:file r_file_perms;
4 |
--------------------------------------------------------------------------------
/overlay/SettingsProviderMojito/Android.bp:
--------------------------------------------------------------------------------
1 | runtime_resource_overlay {
2 | name: "SettingsProviderMojito",
3 | theme: "SettingsProviderMojito",
4 | sdk_version: "current",
5 | vendor: true,
6 | }
7 |
--------------------------------------------------------------------------------
/sepolicy/vendor/surfaceflinger.te:
--------------------------------------------------------------------------------
1 | # Allow surfaceflinger to search firmware directory and file
2 | allow surfaceflinger vendor_firmware_file:dir r_dir_perms;
3 | dontaudit surfaceflinger vendor_firmware_file:file r_file_perms;
4 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | end_of_line = lf
5 | insert_final_newline = true
6 | indent_style = space
7 | indent_size = 4
8 | charset = utf-8
9 | # To avoid editing too much in commits
10 | trim_trailing_whitespace = false
11 |
12 |
--------------------------------------------------------------------------------
/sepolicy/vendor/kernel.te:
--------------------------------------------------------------------------------
1 | allow kernel per_boot_file:file r_file_perms;
2 | # For diag over socket
3 | userdebug_or_eng(`
4 | allow kernel self:qipcrtr_socket create;
5 | ')
6 | # Ignore the socket if it fails to create
7 | dontaudit kernel self:qipcrtr_socket create;
8 |
--------------------------------------------------------------------------------
/sepolicy/vendor/property.te:
--------------------------------------------------------------------------------
1 | vendor_internal_prop(vendor_device_prop)
2 |
3 | vendor_internal_prop(vendor_thermal_normal_prop)
4 |
5 | # Fingerprint
6 | vendor_restricted_prop(vendor_fingerprint_prop)
7 |
8 | # IMEI
9 | vendor_internal_prop(vendor_deviceid_prop)
10 |
--------------------------------------------------------------------------------
/sepolicy/vendor/system_server.te:
--------------------------------------------------------------------------------
1 | allow system_server vendor_sysfs_battery_supply:file r_file_perms;
2 | allow system_server proc_last_kmsg:file r_file_perms;
3 | allow system_server app_zygote:process getpgid;
4 |
5 | get_prop(system_server, vendor_persist_camera_prop)
6 |
--------------------------------------------------------------------------------
/overlay/WifiMojito/res/values/integers.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 32
5 |
6 |
--------------------------------------------------------------------------------
/sepolicy/private/system_suspend.te:
--------------------------------------------------------------------------------
1 | # allow system_suspend to read sysfs directory
2 | allow system_suspend sysfs:dir r_dir_perms;
3 |
4 | allow system_suspend sysfs:dir { open read };
5 | allow system_suspend sysfs:file { getattr };
6 | dontaudit system_suspend sysfs:file { open read };
7 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vendor_hal_capabilityconfigstore_qti_default.te:
--------------------------------------------------------------------------------
1 | # Allow vendor_hal_capabilityconfigstore_qti_default to read, open, map and get attributes in vendor_cap_configstore_dbg_prop
2 | allow vendor_hal_capabilityconfigstore_qti_default vendor_cap_configstore_dbg_prop:file { getattr map open read };
3 |
--------------------------------------------------------------------------------
/configs/wifi/wpa_supplicant_overlay.conf:
--------------------------------------------------------------------------------
1 | disable_scan_offload=1
2 | p2p_disabled=1
3 | tdls_external_control=1
4 | wowlan_triggers=magic_pkt
5 | bss_max_count=512
6 | bss_no_flush_when_down=1
7 | interworking=1
8 | config_methods=virtual_display virtual_push_button keypad
9 | driver_param="no_rrm=1"
10 |
--------------------------------------------------------------------------------
/rootdir/etc/init.mojito.perf.rc:
--------------------------------------------------------------------------------
1 | on property:vendor.post_boot.parsed=1
2 | # IRQ Tuning
3 | # IRQ 70: msm_drm0
4 | # IRQ 222: kgsl_3d0_irq
5 | write /proc/irq/70/smp_affinity_list 2
6 | write /proc/irq/222/smp_affinity_list 1
7 |
8 | # Disable multiple kswapd threads
9 | write /proc/sys/vm/kswapd_threads 1
10 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vendor_mdm_helper.te:
--------------------------------------------------------------------------------
1 | allow vendor_mdm_helper vendor_mba_debug_dev:blk_file r_file_perms;
2 | allow vendor_mdm_helper vendor_custom_ab_block_device:blk_file r_file_perms;
3 | allow vendor_mdm_helper vendor_tombstone_data_file:fifo_file rw_file_perms;
4 |
5 | get_prop(vendor_mdm_helper, vendor_ssr_prop)
6 |
--------------------------------------------------------------------------------
/sepolicy/private/system_app.te:
--------------------------------------------------------------------------------
1 | # Suspend
2 | dontaudit system_app system_suspend_control_service:service_manager { find };
3 | dontaudit system_app system_suspend_control_internal_service:service_manager { find };
4 | dontaudit system_app tracingproxy_service:service_manager { find };
5 |
6 | hal_client_domain(system_app, hal_mlipay)
7 |
--------------------------------------------------------------------------------
/AndroidProducts.mk:
--------------------------------------------------------------------------------
1 |
2 | #
3 | # Copyright (C) 2021 The LineageOS Project
4 | #
5 | # SPDX-License-Identifier: Apache-2.0
6 | #
7 |
8 | PRODUCT_MAKEFILES := \
9 | $(LOCAL_DIR)/superior_mojito.mk
10 |
11 | COMMON_LUNCH_CHOICES := \
12 | superior_mojito-user \
13 | superior_mojito-userdebug \
14 | superior_mojito-eng
15 |
--------------------------------------------------------------------------------
/sepolicy/vendor/tee.te:
--------------------------------------------------------------------------------
1 | typeattribute tee data_between_core_and_vendor_violators;
2 |
3 | allow tee fingerprint_data_file:dir create_dir_perms;
4 | allow tee {
5 | fingerprint_data_file
6 | mnt_vendor_file
7 | }:file create_file_perms;
8 |
9 | allow tee mnt_vendor_file:dir rw_dir_perms;
10 | allow tee tmpfs:dir r_dir_perms;
11 |
--------------------------------------------------------------------------------
/sepolicy/vendor/thermal-engine.te:
--------------------------------------------------------------------------------
1 | allow vendor_thermal-engine {
2 | sysfs_msm_subsys
3 | thermal_data_file
4 | }:dir r_dir_perms;
5 |
6 | # Rule for vendor_thermal-engine to access init process
7 | unix_socket_connect(vendor_thermal-engine, property, init);
8 |
9 | set_prop(vendor_thermal-engine, vendor_thermal_normal_prop)
10 |
--------------------------------------------------------------------------------
/init/Android.bp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (C) 2022 The PixelExperience Project
3 | //
4 | // SPDX-License-Identifier: Apache-2.0
5 | //
6 |
7 | cc_library_static {
8 | name: "libinit_mojito",
9 | recovery_available: true,
10 | shared_libs: ["libbase"],
11 | srcs: ["init_mojito.cpp"],
12 | include_dirs: ["system/core/init"]
13 | }
14 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_power_stats_default.te:
--------------------------------------------------------------------------------
1 | allow hal_power_stats_default sysfs:dir r_dir_perms;
2 | allow hal_power_stats_default sysfs:file r_file_perms;
3 | allow hal_power_stats_default vendor_sysfs_iio:dir r_dir_perms;
4 | allow hal_power_stats_default vendor_sysfs_iio:file r_file_perms;
5 | allow hal_power_stats_default vendor_sysfs_iio:lnk_file read;
6 |
--------------------------------------------------------------------------------
/sepolicy/vendor/platform_app.te:
--------------------------------------------------------------------------------
1 | allow platform_app cgroup:file { read };
2 | allow platform_app vendor_hal_soter_hwservice:hwservice_manager find;
3 | binder_call(platform_app, vendor_hal_soter_qti)
4 |
5 | get_prop(platform_app, audio_config_prop)
6 | get_prop(platform_app, vendor_audio_prop)
7 |
8 | allow platform_app zygote:unix_stream_socket { getopt };
9 |
--------------------------------------------------------------------------------
/configs/props/product.prop:
--------------------------------------------------------------------------------
1 | # Audio
2 | audio.offload.min.duration.secs=30
3 | audio.sys.offload.pstimeout.secs=3
4 | ro.config.vc_call_vol_steps=10
5 |
6 | # Radio
7 | persist.vendor.qti.telephony.vt_cam_interface=2
8 | persist.vendor.radio.report_codec=1
9 | persist.vendor.radio.vdp_on_ims_cap=1
10 | ro.telephony.block_binder_thread_on_incoming_calls=false
11 |
--------------------------------------------------------------------------------
/overlay/FrameworksMojito/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
9 |
10 |
--------------------------------------------------------------------------------
/configs/public.libraries.txt:
--------------------------------------------------------------------------------
1 | libqti-perfd-client.so
2 | libadsprpc.so
3 | libalAILDC.so
4 | libalCFR.so
5 | libalhLDC.so
6 | libcdsprpc.so
7 | libHalSuperSensorServer.so
8 | libOpenCL.so
9 | libnpu.so
10 | libhta_hexagon_runtime.so
11 | unnhal-acc-hta.so
12 | libsdsprpc.so
13 | libSuperSensorCPU.so
14 | libSuperSensor.so
15 | libVDClearShot.so
16 | libVDSuperPhotoAPI.so
17 |
--------------------------------------------------------------------------------
/overlay/DialerMojito/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
10 |
11 |
--------------------------------------------------------------------------------
/overlay/TelephonyMojito/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
10 |
11 |
--------------------------------------------------------------------------------
/overlay/SettingsMojito/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
10 |
11 |
--------------------------------------------------------------------------------
/overlay/SystemUIMojito/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
10 |
11 |
--------------------------------------------------------------------------------
/configs/input/keylayout/uinput-fpc.kl:
--------------------------------------------------------------------------------
1 | #
2 | # FPC 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 |
11 | #key 304 HOME VIRTUAL
12 |
--------------------------------------------------------------------------------
/overlay/BoostFrameworkOverlay/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
11 |
12 |
--------------------------------------------------------------------------------
/configs/input/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 |
11 | #key 102 HOME VIRTUAL
12 |
--------------------------------------------------------------------------------
/overlay/SettingsProviderMojito/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
10 |
11 |
--------------------------------------------------------------------------------
/sepolicy/vendor/untrusted_app.te:
--------------------------------------------------------------------------------
1 | allow untrusted_app app_data_file:file { execute };
2 | allow untrusted_app zygote:unix_stream_socket { getopt };
3 |
4 | allow untrusted_app {
5 | proc_pressure_mem
6 | proc_zoneinfo
7 | }:file { read };
8 |
9 | allow untrusted_app proc_zoneinfo:file r_file_perms;
10 |
11 | get_prop(untrusted_app, vendor_persist_camera_prop)
12 | get_prop(untrusted_app, virtual_ab_prop)
13 |
--------------------------------------------------------------------------------
/configs/input/keylayout/gpio-keys.kl:
--------------------------------------------------------------------------------
1 | #
2 | # Gpio driver
3 | #
4 | # Copyright (c) 2013,2014 The Linux Foundation. All rights reserved
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 115 VOLUME_UP
12 | key 114 VOLUME_DOWN
13 | key 102 HOME
14 | key 528 FOCUS
15 | key 766 CAMERA
16 |
--------------------------------------------------------------------------------
/sepolicy/vendor/init.te:
--------------------------------------------------------------------------------
1 | allow init same_process_hal_file:file execute;
2 |
3 | allow init proc_last_kmsg:file {
4 | r_file_perms
5 | setattr
6 | };
7 |
8 | allow init adsprpcd_file:file mounton;
9 |
10 | allow init per_boot_file:file ioctl;
11 | allowxperm init per_boot_file:file ioctl { F2FS_IOC_SET_PIN_FILE };
12 |
13 | # Allow init to set read_ahead_kb and discard_max_bytes on /data partition
14 | allow init vendor_sysfs_scsi_host:file w_file_perms;
15 |
--------------------------------------------------------------------------------
/sepolicy/vendor/app.te:
--------------------------------------------------------------------------------
1 | allow { appdomain -isolated_app } adsprpcd_file:dir r_dir_perms;
2 | allow { appdomain -isolated_app } public_adsprpcd_file:file r_file_perms;
3 | allow { appdomain -isolated_app } vendor_xdsp_device:chr_file r_file_perms;
4 |
5 | get_prop({ appdomain -isolated_app }, vendor_fingerprint_prop)
6 | get_prop({ appdomain -isolated_app }, vendor_tee_listener_prop)
7 | get_prop(appdomain, vendor_camera_prop)
8 | get_prop(appdomain, vendor_persist_camera_prop)
9 |
--------------------------------------------------------------------------------
/rro_overlays/ApertureMojito/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
8 |
9 |
13 |
14 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vendor_wcnss_service.te:
--------------------------------------------------------------------------------
1 | # allow nv_mac to create /mnt/vendor/persist/wlan_mac.bin
2 | allow vendor_wcnss_service mnt_vendor_file:dir search;
3 | allow vendor_wcnss_service mnt_vendor_file:file create_file_perms;
4 | allow vendor_wcnss_service vendor_wifi_vendor_wpa_socket:dir { search };
5 | allow vendor_wcnss_service vendor_wifi_vendor_wpa_socket:dir create_dir_perms;
6 | allow vendor_wcnss_service vendor_wifi_vendor_wpa_socket:sock_file create_file_perms;
7 |
8 | get_prop(vendor_wcnss_service, vendor_bluetooth_prop)
9 |
--------------------------------------------------------------------------------
/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 {
9 | ion_device
10 | tee_device
11 | }:chr_file rw_file_perms;
12 |
13 | r_dir_file(hal_mlipay_default, firmware_file)
14 |
15 | get_prop(hal_mlipay_default, vendor_fingerprint_prop)
16 | set_prop(hal_mlipay_default, vendor_tee_listener_prop)
17 |
--------------------------------------------------------------------------------
/parts/Android.bp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (C) 2017-2020 The LineageOS Project
3 | //
4 | // SPDX-License-Identifier: Apache-2.0
5 | //
6 |
7 | android_app {
8 | name: "XiaomiParts",
9 |
10 | srcs: ["src/**/*.java"],
11 |
12 | certificate: "platform",
13 | platform_apis: true,
14 | privileged: true,
15 |
16 | static_libs: [
17 | "org.lineageos.settings.resources",
18 | "SettingsLib",
19 | ],
20 |
21 | optimize: {
22 | proguard_flags_files: ["proguard.flags"],
23 | },
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/parts/res/drawable/ic_doze_aod.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/parts/res/drawable/ic_doze_wake.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_audio_default.te:
--------------------------------------------------------------------------------
1 | # For interfacing with PowerHAL
2 | hal_client_domain(hal_audio_default, hal_power)
3 |
4 | # Allow hal_audio_default to read vendor_persist_audio_file
5 | r_dir_file(hal_audio_default, vendor_persist_audio_file)
6 |
7 | r_dir_file(hal_audio_default, sysfs)
8 |
9 | binder_call(hal_audio_default, system_suspend_server)
10 |
11 | set_prop(hal_audio_default, vendor_audio_prop)
12 |
13 | allow hal_audio_default audio_socket:sock_file rw_file_perms;
14 | allow hal_audio_default system_suspend_hwservice:hwservice_manager find;
15 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vendor_init.te:
--------------------------------------------------------------------------------
1 | set_prop(vendor_init, vendor_alarm_boot_prop)
2 | set_prop(vendor_init, vendor_video_prop)
3 |
4 | allow vendor_init {
5 | proc_dirty
6 | proc
7 | }:file w_file_perms;
8 |
9 | allow vendor_init block_device:lnk_file setattr;
10 | allow vendor_init vendor_camera_prop:property_service set;
11 | allow vendor_init proc_sched:file write;
12 |
13 | allow vendor_init input_device:chr_file { create setattr unlink rw_file_perms };
14 |
15 | # Allow vendor_init to set vendor_camera_prop
16 | set_prop(vendor_init, vendor_camera_prop)
17 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vendor_qti_init_shell.te:
--------------------------------------------------------------------------------
1 | allow vendor_qti_init_shell configfs:dir create_dir_perms;
2 | allow vendor_qti_init_shell configfs:file create_file_perms;
3 | allow vendor_qti_init_shell configfs:lnk_file create_file_perms;
4 | allow vendor_qti_init_shell ctl_stop_prop:property_service set;
5 | allow vendor_qti_init_shell sysfs_wakeup:file setattr;
6 |
7 | # allow init.mi.btmac.sh to read hex-encoded mac address and set it
8 | allow vendor_qti_init_shell vendor_bluetooth_prop:property_service set;
9 | allow vendor_qti_init_shell vendor_wifi_vendor_data_file:dir search;
10 | allow vendor_qti_init_shell vendor_wifi_vendor_data_file:file r_file_perms;
11 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hwservice_contexts:
--------------------------------------------------------------------------------
1 | # Fingerprint
2 | com.fingerprints.extension::IFingerprintNavigation u:object_r:hal_fingerprint_hwservice:s0
3 | com.fingerprints.extension::IFingerprintSensorTest u:object_r:hal_fingerprint_hwservice:s0
4 | vendor.goodix.hardware.biometrics.fingerprint::IGoodixFingerprintDaemon u:object_r:hal_fingerprint_hwservice:s0
5 | vendor.goodix.hardware.interfaces.biometrics.fingerprint::IGoodixFingerprintDaemon u:object_r:hal_fingerprint_hwservice:s0
6 |
7 | # Mlipay
8 | vendor.xiaomi.hardware.mlipay::IMlipayService u:object_r:hal_mlipay_hwservice:s0
9 |
--------------------------------------------------------------------------------
/parts/res/xml/clear_speaker_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
11 |
12 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vendor_hal_perf_default.te:
--------------------------------------------------------------------------------
1 | allow vendor_hal_perf_default hal_audio_default:dir r_dir_perms;
2 | allow vendor_hal_perf_default hal_audio_default:file r_file_perms;
3 | allow vendor_hal_perf_default hal_fingerprint_default:dir r_dir_perms;
4 | allow vendor_hal_perf_default hal_fingerprint_default:file r_file_perms;
5 | allow vendor_hal_perf_default hal_camera_default:dir r_dir_perms;
6 | allow vendor_hal_perf_default hal_camera_default:file { read open };
7 | allow vendor_hal_perf_default hal_graphics_composer_default:dir r_dir_perms;
8 | allow vendor_hal_perf_default hal_graphics_composer_default:file r_file_perms;
9 | allow vendor_hal_perf_default sysfs_msm_subsys:dir search;
10 | allow vendor_hal_perf_default sysfs:file r_file_perms;
11 |
12 | r_dir_file(vendor_hal_perf_default, system_server)
13 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_power_default.te:
--------------------------------------------------------------------------------
1 | # Allow hal_power_default to write to dt2w nodes
2 | allow hal_power_default input_device:dir r_dir_perms;
3 | allow hal_power_default input_device:chr_file rw_file_perms;
4 |
5 | r_dir_file(hal_power_default, input_device)
6 |
7 | allow hal_power_default sysfs_msm_subsys:dir search;
8 | allow hal_power_default sysfs_touchpanel:dir search;
9 |
10 | allow hal_power_default {
11 | cgroup
12 | proc
13 | sysfs_devices_system_cpu
14 | vendor_sysfs_graphics
15 | vendor_sysfs_kgsl
16 | sysfs_msm_subsys
17 | sysfs_touchpanel
18 | vendor_sysfs_scsi_host
19 | }:{
20 | file
21 | lnk_file
22 | } rw_file_perms;
23 |
24 | # Rule for hal_power_default to access graphics composer process
25 | unix_socket_connect(hal_power_default, vendor_pps, hal_graphics_composer_default);
26 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_sensors_default.te:
--------------------------------------------------------------------------------
1 | unix_socket_connect(hal_sensors_default, audio, hal_audio_default)
2 |
3 | hal_client_domain(hal_sensors_default, hal_audio)
4 | binder_call(hal_sensors_default, hal_audio_default)
5 |
6 | allow hal_sensors_default audio_socket:sock_file rw_file_perms;
7 | allow hal_sensors_default socket_device:sock_file rw_file_perms;
8 | allow hal_sensors_default iio_device:chr_file rw_file_perms;
9 | allow hal_sensors_default sensors_device:chr_file rw_file_perms;
10 | allow hal_sensors_default vendor_sysfs_iio:dir r_dir_perms;
11 | allow hal_sensors_default vendor_sysfs_iio:file rw_file_perms;
12 |
13 | allow hal_sensors_default hal_audio_hwservice:hwservice_manager find;
14 | allow hal_sensors_default hal_sensors_default:qipcrtr_socket { ioctl };
15 |
16 | get_prop(hal_sensors_default, vendor_adsprpc_prop)
17 |
--------------------------------------------------------------------------------
/sepolicy/vendor/system_app.te:
--------------------------------------------------------------------------------
1 | allow system_app vendor_sysfs_battery_supply:dir { search };
2 | allow system_app vendor_sysfs_battery_supply:file { read };
3 | allow system_app vendor_sysfs_battery_supply:file { open };
4 | allow system_app vendor_sysfs_battery_supply:file { getattr };
5 | allow system_app proc_pagetypeinfo:file r_file_perms;
6 | allow system_app sysfs_thermal:file rw_file_perms;
7 | allow system_app sysfs_zram:dir r_dir_perms;
8 | allow system_app sysfs_zram:file r_file_perms;
9 |
10 | r_dir_file(system_app, vendor_sysfs_battery_supply)
11 |
12 | get_prop(system_app, vendor_persist_camera_prop)
13 |
14 | # Battery Health
15 | allow system_app sysfs_battery_supply:dir { search };
16 | allow system_app sysfs_battery_supply:file { read open getattr };
17 |
18 | # Zygote
19 | allow system_app zygote:unix_stream_socket { getopt };
20 |
--------------------------------------------------------------------------------
/configs/input/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 |
17 | touch.deviceType = touchScreen
18 | touch.orientationAware = 1
19 | touch.filter.level = 0
20 | touch.size.calibration = diameter
21 | touch.size.scale = 1
22 | touch.size.bias = 0
23 | touch.size.isSummed = 0
24 | touch.gestureMode = pointer
25 | touch.pressure.calibration = physical
26 | touch.pressure.scale = 0.00000125
27 | touch.distance.calibration = none
28 |
--------------------------------------------------------------------------------
/sepolicy/vendor/file.te:
--------------------------------------------------------------------------------
1 | type audio_socket, file_type;
2 |
3 | type avb_file, file_type;
4 |
5 | type camera_persist_file, file_type, vendor_persist_type;
6 |
7 | type fingerprint_data_file, data_file_type, core_data_file_type, file_type;
8 |
9 | type goodix_fingerprint_data_file, data_file_type, file_type, core_data_file_type;
10 |
11 | type per_boot_file, file_type, data_file_type, core_data_file_type;
12 |
13 | type persist_subsys_file, vendor_persist_type, file_type;
14 |
15 | type proc_last_kmsg, fs_type, proc_type;
16 |
17 | type public_adsprpcd_file, file_type;
18 |
19 | type sysfs_msm_boot, fs_type, sysfs_type;
20 |
21 | type sysfs_msm_subsys, fs_type, sysfs_type;
22 |
23 | type sysfs_touchpanel, fs_type, sysfs_type;
24 |
25 | type thermal_data_file, file_type, data_file_type;
26 |
27 | type vendor_sysfs_iio, fs_type, sysfs_type;
28 |
--------------------------------------------------------------------------------
/configs/input/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 |
17 | touch.deviceType = touchScreen
18 | touch.orientationAware = 1
19 | touch.filter.level = 0
20 | touch.size.calibration = diameter
21 | touch.size.scale = 1
22 | touch.size.bias = 0
23 | touch.size.isSummed = 0
24 | touch.gestureMode = pointer
25 | touch.pressure.calibration = physical
26 | touch.pressure.scale = 0.00000125
27 | touch.distance.calibration = none
28 |
--------------------------------------------------------------------------------
/parts/res/drawable/ic_doze_pickup.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_camera_default.te:
--------------------------------------------------------------------------------
1 | # For interfacing with PowerHAL
2 | hal_client_domain(hal_camera_default, hal_power)
3 |
4 | # Allow hal_camera_default to read to vendor_sysfs_kgsl
5 | r_dir_file(hal_camera_default, vendor_sysfs_kgsl)
6 |
7 | # Allow hal_camera_default to read to mnt/vendor/persist/camera
8 | r_dir_file(hal_camera_default, camera_persist_file)
9 | r_dir_file(hal_camera_default, mnt_vendor_file)
10 | r_dir_file(hal_camera_default, vendor_persist_sensors_file)
11 |
12 | allow hal_camera_default proc_stat:file read;
13 |
14 | set_prop(hal_camera_default, vendor_camera_prop)
15 |
16 | allow hal_camera_default socket_device:sock_file write;
17 | allow hal_camera_default proc_stat:file { open };
18 |
19 | allow hal_camera_default public_adsprpcd_file:file r_file_perms;
20 | allow hal_camera_default vendor_xdsp_device:chr_file r_file_perms;
21 |
--------------------------------------------------------------------------------
/overlay/SettingsProviderMojito/res/values/defaults.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 | true
21 |
22 |
--------------------------------------------------------------------------------
/overlay/DialerMojito/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
15 | true
16 | 4
17 |
18 |
--------------------------------------------------------------------------------
/bootctrl/Android.bp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (C) 2018 The Android Open Source 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_shared {
18 | name: "android.hardware.boot@1.2-impl-qti",
19 | stem: "android.hardware.boot@1.0-impl-1.2-qti",
20 | defaults: ["android.hardware.boot@1.2-impl-qti_defaults"],
21 | static_libs: ["libgptutils.mojito"],
22 | }
23 |
--------------------------------------------------------------------------------
/parts/res/drawable/ic_speaker_cleaner_icon.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
11 |
14 |
--------------------------------------------------------------------------------
/releasetools.py:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (C) 2020-2021 The LineageOS Project
3 | #
4 | # SPDX-License-Identifier: Apache-2.0
5 | #
6 |
7 | import common
8 | import re
9 |
10 | def FullOTA_InstallEnd(info):
11 | OTA_InstallEnd(info)
12 | return
13 |
14 | def IncrementalOTA_InstallEnd(info):
15 | OTA_InstallEnd(info)
16 | return
17 |
18 | def AddImage(info, basename, dest):
19 | name = basename
20 | data = info.input_zip.read("IMAGES/" + basename)
21 | common.ZipWriteStr(info.output_zip, name, data)
22 | info.script.AppendExtra('package_extract_file("%s", "%s");' % (name, dest))
23 |
24 | def OTA_InstallEnd(info):
25 | info.script.Print("Patching firmware images...")
26 | AddImage(info, "dtbo.img", "/dev/block/bootdevice/by-name/dtbo")
27 | AddImage(info, "vbmeta.img", "/dev/block/bootdevice/by-name/vbmeta")
28 | AddImage(info, "vbmeta_system.img", "/dev/block/bootdevice/by-name/vbmeta_system")
29 | return
30 |
--------------------------------------------------------------------------------
/sepolicy/private/property_contexts:
--------------------------------------------------------------------------------
1 | # Camera
2 | persist.wa. u:object_r:exported_default_prop:s0
3 | ro.camera.req.fmq. u:object_r:exported_default_prop:s0
4 | ro.camera.res.fmq. u:object_r:exported_default_prop:s0
5 |
6 | # Global
7 | ro.boot.hwc u:object_r:exported_default_prop:s0
8 | ro.build.flavor u:object_r:build_prop:s0
9 | ro.carrier.name u:object_r:exported_default_prop:s0
10 | ro.product.marketname u:object_r:build_prop:s0
11 | ro.product.mod_device u:object_r:build_prop:s0
12 |
13 | # HW
14 | ro.hardware.chipname u:object_r:exported_default_prop:s0
15 |
16 | # MIUI
17 | ro.cust.test u:object_r:exported_system_prop:s0
18 | ro.miui. u:object_r:exported_system_prop:s0
19 | ro.fota.oem u:object_r:exported_system_prop:s0
20 |
21 | # WiFi Display
22 | persist.vendor.setWFDInfo. u:object_r:vendor_wfd_sys_debug_prop:s0
23 |
24 |
--------------------------------------------------------------------------------
/parts/res/drawable/ic_doze_hand.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/overlay/WifiMojito/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 |
9 |
10 |
12 | 524288,1048576,5505024,262144,524288,4194304
13 |
14 |
15 | Redmi Note 10
16 |
17 |
--------------------------------------------------------------------------------
/parts/res/layout/thermal_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
19 |
--------------------------------------------------------------------------------
/setup-makefiles.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #
3 | # Copyright (C) 2016 The CyanogenMod Project
4 | # Copyright (C) 2017-2021 The LineageOS Project
5 | #
6 | # SPDX-License-Identifier: Apache-2.0
7 | #
8 |
9 | set -e
10 |
11 | DEVICE=mojito
12 | VENDOR=xiaomi
13 | INITIAL_COPYRIGHT_YEAR=2021
14 |
15 | # Load extract_utils and do some sanity checks
16 | MY_DIR="${BASH_SOURCE%/*}"
17 | if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi
18 |
19 | ANDROID_ROOT="${MY_DIR}/../../.."
20 |
21 | HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh"
22 | if [ ! -f "${HELPER}" ]; then
23 | echo "Unable to find helper script at ${HELPER}"
24 | exit 1
25 | fi
26 | source "${HELPER}"
27 |
28 | # Initialize the helper for common
29 | setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}"
30 |
31 | # Copyright headers and guards
32 | write_headers "${DEVICE}"
33 |
34 | # The standard common blobs
35 | write_makefiles "${MY_DIR}/proprietary-files.txt" true
36 |
37 | # Finish
38 | write_footers
39 |
--------------------------------------------------------------------------------
/parts/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/superior_mojito.mk:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (C) 2021 The LineageOS Project
3 | #
4 | # SPDX-License-Identifier: Apache-2.0
5 | #
6 |
7 | # Inherit from those products. Most specific first.
8 | $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
9 | $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
10 |
11 | # Inherit from mojito device
12 | $(call inherit-product, device/xiaomi/mojito/device.mk)
13 |
14 | # Inherit some common SuperiorOS ROM stuff.
15 | $(call inherit-product, vendor/superior/config/common.mk)
16 | SUPERIOR_OFFICIAL := true
17 |
18 | # Product Specifics
19 | PRODUCT_NAME := superior_mojito
20 | PRODUCT_DEVICE := mojito
21 | PRODUCT_BRAND := Redmi
22 | PRODUCT_MODEL := Redmi Note 10
23 | PRODUCT_MANUFACTURER := Xiaomi
24 |
25 | # Some Build Flags
26 | TARGET_BOOT_ANIMATION_RES := 1080
27 | TARGET_FACE_UNLOCK_SUPPORTED := true
28 | TARGET_INCLUDE_PIXEL_CHARGER := true
29 |
30 | # Exclude AudioFx from build
31 | TARGET_EXCLUDES_AUDIOFX := true
32 |
33 | PRODUCT_GMS_CLIENTID_BASE := android-xiaomi
34 |
--------------------------------------------------------------------------------
/configs/displayconfig/display_id_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
17 |
18 |
19 |
20 |
21 | 0.0
22 | 2.0
23 |
24 |
25 | 1.0
26 | 450.0
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/sepolicy/vendor/mi_thermald.te:
--------------------------------------------------------------------------------
1 | type mi_thermald, domain;
2 | type mi_thermald_exec, exec_type, vendor_file_type, file_type;
3 |
4 | init_daemon_domain(mi_thermald)
5 |
6 | allow mi_thermald self:capability { chown fowner fsetid };
7 |
8 | # Allow mi_thermald to read thermal_data_file
9 | allow mi_thermald thermal_data_file:dir rw_dir_perms;
10 | allow mi_thermald thermal_data_file:file create_file_perms;
11 | allow mi_thermald sysfs:dir { open read };
12 | allow mi_thermald sysfs:file { open read };
13 |
14 | r_dir_file(mi_thermald, vendor_sysfs_battery_supply)
15 | r_dir_file(mi_thermald, sysfs_devices_system_cpu)
16 | r_dir_file(mi_thermald, vendor_sysfs_graphics)
17 | r_dir_file(mi_thermald, vendor_sysfs_kgsl)
18 | r_dir_file(mi_thermald, sysfs_leds)
19 | r_dir_file(mi_thermald, sysfs_thermal)
20 |
21 | # Allow mi_thermald to read and write to sysfs_*
22 | allow mi_thermald {
23 | vendor_sysfs_battery_supply
24 | sysfs_devices_system_cpu
25 | vendor_sysfs_kgsl
26 | sysfs_thermal
27 | }:{
28 | file
29 | lnk_file
30 | } rw_file_perms;
31 |
32 | set_prop(mi_thermald, vendor_thermal_normal_prop)
33 |
--------------------------------------------------------------------------------
/rro_overlays/ApertureMojito/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 | true
15 |
16 |
17 |
18 | - 2
19 | - 5
20 | - 6
21 | - 7
22 |
23 |
24 |
--------------------------------------------------------------------------------
/parts/res/drawable/ic_thermal_dialer.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
12 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/parts/res/drawable/ic_doze_pocket.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/configs/display/display_id_4630946736638489729.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
15 | 0.5
16 | 0.5
17 | 0.04
18 | 0.05
19 |
20 |
--------------------------------------------------------------------------------
/sepolicy/private/devicesettings_app.te:
--------------------------------------------------------------------------------
1 | typeattribute devicesettings_app mlstrustedsubject;
2 |
3 | app_domain(devicesettings_app)
4 |
5 | # Allow devicesettings_app to find *_service
6 | allow devicesettings_app {
7 | activity_service
8 | activity_task_service
9 | app_api_service
10 | audio_service
11 | audioserver_service
12 | autofill_service
13 | cameraserver_service
14 | drmserver_service
15 | media_session_service
16 | mediaextractor_service
17 | mediametrics_service
18 | mediaserver_service
19 | surfaceflinger_service
20 | }:service_manager find;
21 |
22 | # Allow devicesettings_app read and write /data/data subdirectory
23 | allow devicesettings_app system_app_data_file:dir create_dir_perms;
24 | allow devicesettings_app system_app_data_file:{ file lnk_file } create_file_perms;
25 |
26 | # Allow binder communication with gpuservice
27 | binder_call(devicesettings_app, gpuservice)
28 |
29 | # Allow devicesettings_app to read and write to cgroup/sysfs_leds/sysfs_thermal
30 | allow devicesettings_app sysfs_leds:dir search;
31 | allow devicesettings_app {
32 | cgroup
33 | sysfs_leds
34 | sysfs_thermal
35 | }:{ file lnk_file } rw_file_perms;
36 |
--------------------------------------------------------------------------------
/configs/media/media_codecs_vendor_audio.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/overlay/CarrierConfigMojito/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
21 |
22 |
26 |
27 |
--------------------------------------------------------------------------------
/gpt-utils/Android.bp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (C) 2018 The Android Open Source 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 |
18 | cc_library {
19 | name: "libgptutils.mojito",
20 | vendor: true,
21 | recovery_available: true,
22 | shared_libs: [
23 | "libcutils",
24 | "liblog",
25 | "libz",
26 | ],
27 | cflags: [
28 | "-Wall",
29 | "-Werror",
30 | ],
31 | srcs: [
32 | "gpt-utils.cpp",
33 | "recovery-ufs-bsg.cpp",
34 | ],
35 | owner: "qti",
36 | header_libs: [
37 | "generated_kernel_headers",
38 | ],
39 | export_include_dirs: ["."],
40 | }
41 |
--------------------------------------------------------------------------------
/overlay/SystemUIMojito/res/drawable/rounded_corner_bottom.xml:
--------------------------------------------------------------------------------
1 |
11 |
16 |
17 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/overlay/WifiMojito/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
21 |
22 |
27 |
28 |
--------------------------------------------------------------------------------
/overlay/SystemUIMojito/res/drawable/rounded_corner_top.xml:
--------------------------------------------------------------------------------
1 |
11 |
16 |
17 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/parts/res/drawable/ic_thermal_camera.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
12 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/parts/src/org/lineageos/settings/dirac/DiracActivity.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2018 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 | package org.lineageos.settings.dirac;
18 |
19 | import android.os.Bundle;
20 |
21 | import com.android.settingslib.collapsingtoolbar.CollapsingToolbarBaseActivity;
22 | import com.android.settingslib.widget.R;
23 |
24 | public class DiracActivity extends CollapsingToolbarBaseActivity {
25 |
26 | private static final String TAG_DIRAC = "dirac";
27 |
28 | @Override
29 | protected void onCreate(Bundle savedInstanceState) {
30 | super.onCreate(savedInstanceState);
31 |
32 | getFragmentManager().beginTransaction().replace(R.id.content_frame,
33 | new DiracSettingsFragment(), TAG_DIRAC).commit();
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/overlay/TelephonyMojito/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 |
21 |
22 |
23 | org.codeaurora.ims
24 |
25 |
26 | vendor.qti.imsrcs
27 |
28 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_fingerprint_default.te:
--------------------------------------------------------------------------------
1 | typeattribute hal_fingerprint_default data_between_core_and_vendor_violators;
2 | allow hal_fingerprint_default goodix_fingerprint_data_file:dir create_dir_perms;
3 | allow hal_fingerprint_default goodix_fingerprint_data_file:file create_file_perms;
4 |
5 | allow hal_fingerprint_default fingerprint_data_file:dir rw_dir_perms;
6 | allow hal_fingerprint_default fingerprint_data_file:file create_file_perms;
7 |
8 | allow hal_fingerprint_default {
9 | fingerprint_device
10 | input_device
11 | tee_device
12 | uhid_device
13 | }: chr_file rw_file_perms;
14 |
15 | allow hal_fingerprint_default self:netlink_socket create_socket_perms_no_ioctl;
16 |
17 | allow hal_fingerprint_default {
18 | input_device
19 | vendor_sysfs_graphics
20 | sysfs_msm_subsys
21 | }: dir r_dir_perms;
22 |
23 | allow hal_fingerprint_default {
24 | vendor_sysfs_fingerprint
25 | vendor_sysfs_graphics
26 | sysfs_msm_subsys
27 | }: file rw_file_perms;
28 |
29 | r_dir_file(hal_fingerprint_default, firmware_file)
30 |
31 | set_prop(hal_fingerprint_default, vendor_fingerprint_prop)
32 |
33 | allow hal_fingerprint_default vendor_hal_perf_hwservice:hwservice_manager find;
34 | binder_call(hal_fingerprint_default vendor_hal_perf_default)
35 |
36 | allow hal_fingerprint_default vendor_sysfs_spss:dir { search };
37 | allow hal_fingerprint_default vendor_sysfs_spss:file { open read };
38 |
--------------------------------------------------------------------------------
/sepolicy/vendor/batterysecret.te:
--------------------------------------------------------------------------------
1 | type batterysecret, domain;
2 | type batterysecret_exec, exec_type, vendor_file_type, file_type;
3 |
4 | init_daemon_domain(batterysecret)
5 |
6 | r_dir_file(batterysecret, cgroup)
7 | r_dir_file(batterysecret, mnt_vendor_file)
8 | r_dir_file(batterysecret, vendor_sysfs_battery_supply)
9 | r_dir_file(batterysecret, sysfs_batteryinfo)
10 | r_dir_file(batterysecret, sysfs_type)
11 | r_dir_file(batterysecret, vendor_sysfs_usb_supply)
12 | r_dir_file(batterysecret, vendor_sysfs_usbpd_device)
13 |
14 | allow batterysecret {
15 | mnt_vendor_file
16 | persist_subsys_file
17 | rootfs
18 | }:dir rw_dir_perms;
19 |
20 | allow batterysecret {
21 | persist_subsys_file
22 | vendor_sysfs_battery_supply
23 | sysfs_usb
24 | vendor_sysfs_usb_supply
25 | vendor_sysfs_usbpd_device
26 | }:file w_file_perms;
27 |
28 | allow batterysecret kmsg_device:chr_file rw_file_perms;
29 |
30 | allow batterysecret self:netlink_kobject_uevent_socket create_socket_perms_no_ioctl;
31 |
32 | allow batterysecret self:global_capability_class_set {
33 | sys_tty_config
34 | sys_boot
35 | };
36 |
37 | allow batterysecret self:capability {
38 | chown
39 | fsetid
40 | };
41 |
42 | allow batterysecret {
43 | system_suspend_hwservice
44 | hidl_manager_hwservice
45 | }:hwservice_manager find;
46 |
47 | binder_call(batterysecret, system_suspend_server)
48 |
49 | wakelock_use(batterysecret)
50 |
--------------------------------------------------------------------------------
/sepolicy/vendor/dontaudit.te:
--------------------------------------------------------------------------------
1 | # please don't kill yourself unless it's allowed
2 | dontaudit { fsck toolbox vdc zygote } self:capability kill;
3 |
4 | # We never apply OTAs when GSI is running
5 | dontaudit hal_bootctl_default gsi_metadata_file:dir search;
6 |
7 | # too noisy, and shouldn't even be granted by default unless necessary
8 | dontaudit { gmscore_app hal_camera_default } property_type:file r_file_perms;
9 | dontaudit {
10 | vendor_hal_neuralnetworks_default
11 | vendor_qti_init_shell
12 | } default_prop:file r_file_perms;
13 |
14 | # why would a script want to access rootfs?
15 | dontaudit vendor_wcnss_service rootfs:dir { open read };
16 |
17 | # untrusted_app shouldn't be allowed to read SELinux status
18 | dontaudit untrusted_app_all selinuxfs:file read;
19 |
20 | # all other no-context attempt by apps (as spotted on iQIYI)
21 | dontaudit untrusted_app_all sysfs_net:dir search;
22 |
23 | # Apps are no longer allowed open access to /dev/ashmem, unless they
24 | # target API level < Q.
25 | dontaudit untrusted_app ashmem_device:chr_file open;
26 |
27 | dontaudit {
28 | hal_audio_default
29 | hal_graphics_composer_default
30 | hal_sensors_default
31 | rild
32 | vendor_adpl
33 | vendor_cnd
34 | vendor_dpmd
35 | vendor_hal_imsrtp
36 | vendor_hal_rcsservice
37 | vendor_ims
38 | vendor_netmgrd
39 | vendor_qti
40 | vendor_sensors_qti
41 | } vendor_diag_device:chr_file rw_file_perms;
42 |
--------------------------------------------------------------------------------
/parts/res/drawable/ic_thermal_benchmark.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
12 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/parts/src/org/lineageos/settings/doze/DozeSettingsActivity.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2015-2016 The CyanogenMod Project
3 | * 2017 The LineageOS Project
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License");
6 | * you may not use this file except in compliance with the License.
7 | * You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.lineageos.settings.doze;
19 |
20 | import android.os.Bundle;
21 |
22 | import com.android.settingslib.collapsingtoolbar.CollapsingToolbarBaseActivity;
23 | import com.android.settingslib.widget.R;
24 |
25 | public class DozeSettingsActivity extends CollapsingToolbarBaseActivity {
26 | private static final String TAG_DOZE = "doze";
27 |
28 | @Override
29 | protected void onCreate(Bundle savedInstanceState) {
30 | super.onCreate(savedInstanceState);
31 |
32 | getFragmentManager()
33 | .beginTransaction()
34 | .replace(R.id.content_frame, new DozeSettingsFragment(), TAG_DOZE)
35 | .commit();
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/superior.dependencies:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "repository": "device_xiaomi_mojito",
4 | "target_path": "device/xiaomi/mojito",
5 | "branch": "thirteen",
6 | "remote": "SuperiorOS-Devices"
7 | },
8 | {
9 | "repository": "vendor_xiaomi_mojito",
10 | "target_path": "vendor/xiaomi/mojito",
11 | "branch": "thirteen",
12 | "remote": "SuperiorOS-Devices"
13 | },
14 | {
15 | "repository": "kernel_xiaomi_mojito",
16 | "target_path": "kernel/xiaomi/mojito",
17 | "branch": "inline-rom",
18 | "remote": "SuperiorOS-Devices"
19 | },
20 | {
21 | "repository": "romgharti/vendor-xiaomi-mojito-miuicamera",
22 | "target_path": "vendor/xiaomi/mojito-miuicamera",
23 | "branch":"12.1-13-noprebuiltlibcam",
24 | "remote":"gitlab"
25 | },
26 | {
27 | "repository": "Joker-V2/prebuilts_clang_host_linux-x86_clang-r498229",
28 | "target_path": "prebuilts/clang/host/linux-x86/clang-r498229",
29 | "branch":"master",
30 | "remote":"gitlab"
31 | },
32 | {
33 | "repository": "hardware_xiaomi",
34 | "target_path": "hardware/xiaomi",
35 | "branch": "mojito"
36 | },
37 | {
38 | "repository": "android_packages_resources_devicesettings",
39 | "target_path": "packages/resources/devicesettings",
40 | "branch": "thirteen",
41 | "remote": "SuperiorOS-Devices"
42 | }
43 | ]
44 |
--------------------------------------------------------------------------------
/configs/camera/camxoverridesettings.txt:
--------------------------------------------------------------------------------
1 | #multiCameraEnable=TRUE
2 | logInfoMask=0x0
3 | overrideLogLevels=0x1
4 | logConfigMask=0x0
5 | logWarningMask=0x0
6 | logVerboseMask=0x0
7 | logDRQEnable=0x0
8 | logMetaEnable=0x0
9 | logRequestMapping=0x0
10 | systemLogEnable=TRUE
11 | logCoreCfgMask=0
12 | enableAsciiLogging=FALSE
13 | enableTxtLogging=0
14 | traceGroupsEnable=0
15 | enable3ADebugData=FALSE
16 | enableTuningMetadata=FALSE
17 | #enableSensorHWSync=TRUE
18 | #multiCameraFrameSync=1
19 | #enableSensorFpsMatch=TRUE
20 | #exportSecureCamera=TRUE
21 | #enableNCSService=TRUE
22 | #disablePDAF=FALSE
23 | #disableFocusIndication=1
24 | #advanceFeatureMask=0x7E7
25 | #isBeautyMakeupSupported=TRUE
26 | #isVideoBeautifierSupported=TRUE
27 | #exposeFullSizeForQCFA=FALSE
28 | #useFeatureForQCFA=1
29 | enableICAInGrid=1
30 | #forceDisableUBWCOnIfeIpeLink=0
31 | #enableInternalHALPixelStreamConfig=TRUE
32 | #iseispreviewSupported=TRUE
33 | enableBubbleRecovery=FALSE
34 | #minReprocessInputWidth=4000
35 | #minReprocessInputHeight=3000
36 | #fovcEnable=1
37 | #tintlessEnable=TRUE
38 | #sessionFallbackWaitTime=1000
39 | #ismfnrbokehsupported=TRUE
40 | #enableOfflineNoiseReprocess=1
41 | #enableDualIFE=1
42 | #isVideoLogformatSupported=TRUE
43 | #isColorEnhancementSupported=TRUE
44 | #isVideoMimovieSupported=TRUE
45 | #isVideoFilterSupported=TRUE
46 | #ifeClockFrequencyMHz=0xFFFFFFFF
47 | #ifeExternalBandwidthMBytes=0xFFFFFFFF
48 | #ifeCamnocBandwidthMBytes=0xFFFFFFFF
49 | #is3rdLightWeightSupported=TRUE
50 | #traceErrorEnable=FALSE
51 |
--------------------------------------------------------------------------------
/parts/src/org/lineageos/settings/BootCompletedReceiver.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2015 The CyanogenMod Project
3 | * 2017-2020 The LineageOS Project
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License");
6 | * you may not use this file except in compliance with the License.
7 | * You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.lineageos.settings;
19 |
20 | import android.content.BroadcastReceiver;
21 | import android.content.Context;
22 | import android.content.Intent;
23 | import android.util.Log;
24 |
25 | import org.lineageos.settings.dirac.DiracUtils;
26 | import org.lineageos.settings.doze.DozeUtils;
27 | import org.lineageos.settings.thermal.ThermalUtils;
28 |
29 | public class BootCompletedReceiver extends BroadcastReceiver {
30 | private static final boolean DEBUG = false;
31 | private static final String TAG = "XiaomiParts";
32 |
33 | @Override
34 | public void onReceive(final Context context, Intent intent) {
35 | if (DEBUG)
36 | Log.d(TAG, "Received boot completed intent");
37 | DiracUtils.initialize(context);
38 | DozeUtils.checkDozeService(context);
39 | ThermalUtils.startService(context);
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/parts/src/org/lineageos/settings/thermal/ThermalActivity.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2020-2021 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 | package org.lineageos.settings.thermal;
18 |
19 | import android.os.Bundle;
20 | import android.view.MenuItem;
21 |
22 | import com.android.settingslib.collapsingtoolbar.CollapsingToolbarBaseActivity;
23 | import com.android.settingslib.widget.R;
24 |
25 | public class ThermalActivity extends CollapsingToolbarBaseActivity {
26 |
27 | private static final String TAG_THERMAL = "thermal";
28 |
29 | @Override
30 | protected void onCreate(Bundle savedInstanceState) {
31 | super.onCreate(savedInstanceState);
32 | getFragmentManager().beginTransaction().replace(R.id.content_frame,
33 | new ThermalSettingsFragment(), TAG_THERMAL).commit();
34 | }
35 |
36 | @Override
37 | public boolean onOptionsItemSelected(MenuItem item) {
38 | if (item.getItemId() == android.R.id.home) {
39 | onBackPressed();
40 | return true;
41 | }
42 | return false;
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ## Device Configuration for Xiaomi Redmi Note 10
2 |
3 | The Xiaomi Redmi Note 10 (codenamed _"mojito/sunny"_) is a mid range smartphone from Xiaomi.
4 |
5 | Redmi Note 10 was announced and released in March 2021.
6 |
7 | ## Device specifications
8 |
9 | | Device | Xiaomi Redmi Note 10 |
10 | | -----------: | :-------------------------------------------------- |
11 | | SoC | Qualcomm SDM678 Snapdragon 678 |
12 | | CPU | 2x2.2 GHz Kryo 460 Gold & 6x1.7 GHz Kryo 460 Silver |
13 | | GPU | Adreno 612 |
14 | | Memory | 4GB/6GB RAM (LPDDR4X) |
15 | | Shipped Android version | 11.0 with MIUI 12 |
16 | | Storage | 64GB/128GB UFS 2.2 flash storage |
17 | | Battery | Non-removable Li-Po 5000 mAh |
18 | | Dimensions | 160.5 x 74.5 x 8.3 mm |
19 | | Display | 1080 x 2400 pixels, 20:9 ratio 6.43" inch |
20 | | Type | Super AMOLED, 450 nits (typ), 1100 nits (peak) |
21 | | Rear camera 1 | 48 MP, f/1.8, 26mm (wide), 1/2.0", 0.8µm, PDAF |
22 | | Rear camera 2 | 8 MP, f/2.2, 118˚ (ultrawide), 1/4.0", 1.12µm |
23 | | Rear camera 3 | 2 MP, f/2.4, (macro) |
24 | | Rear camera 4 | 2 MP, f/2.4, (depth) |
25 | | Front camera | 13 MP, f/2.5, (wide), 1/3.06", 1.12µm |
26 |
27 | ## Device picture
28 |
29 | 
30 |
--------------------------------------------------------------------------------
/configs/input/keylayout/sm6150-idp-snd-card_Button_Jack.kl:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2014, The Linux Foundation. All rights reserved.
2 | #
3 | # Redistribution and use in source and binary forms, with or without
4 | # modification, are permitted provided that the following conditions are
5 | # met:
6 | # * Redistributions of source code must retain the above copyright
7 | # notice, this list of conditions and the following disclaimer.
8 | # * Redistributions in binary form must reproduce the above
9 | # copyright notice, this list of conditions and the following
10 | # disclaimer in the documentation and/or other materials provided
11 | # with the distribution.
12 | # * Neither the name of The Linux Foundation nor the names of its
13 | # contributors may be used to endorse or promote products derived
14 | # from this software without specific prior written permission.
15 | #
16 | # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
17 | # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
18 | # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
19 | # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
20 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
23 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
25 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
26 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 |
28 | key 226 HEADSETHOOK
29 | key 257 VOLUME_UP
30 | key 258 VOLUME_DOWN
31 |
--------------------------------------------------------------------------------
/configs/perf/msm_irqbalance.conf:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2017, The Linux Foundation. All rights reserved.
2 | #
3 | # Redistribution and use in source and binary forms, with or without
4 | # modification, are permitted provided that the following conditions are
5 | # met:
6 | # * Redistributions of source code must retain the above copyright
7 | # notice, this list of conditions and the following disclaimer.
8 | # * Redistributions in binary form must reproduce the above
9 | # copyright notice, this list of conditions and the following
10 | # disclaimer in the documentation and/or other materials provided
11 | # with the distribution.
12 | # * Neither the name of The Linux Foundation nor the names of its
13 | # contributors may be used to endorse or promote products derived
14 | # from this software without specific prior written permission.
15 | #
16 | # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
17 | # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
18 | # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
19 | # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
20 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
23 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
25 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
26 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | #
28 | #
29 |
30 | PRIO=1,1,0,0,0,0,0,0
31 | #arch_timer, arm-pmu, arch_mem_timer, msm_drm, kgsl-3d0
32 | IGNORED_IRQ=19,21,38,115,332
33 |
--------------------------------------------------------------------------------
/sepolicy/vendor/property_contexts:
--------------------------------------------------------------------------------
1 | # Camera
2 | persist.camera. u:object_r:vendor_camera_prop:s0
3 | persist.vendor.camera u:object_r:vendor_camera_prop:s0
4 | vendor.camera. u:object_r:vendor_camera_prop:s0
5 | ro.vendor.camera. u:object_r:vendor_camera_prop:s0
6 |
7 | # Fingerprint
8 | persist.vendor.fpc. u:object_r:vendor_fingerprint_prop:s0
9 | persist.vendor.sys.fp. u:object_r:vendor_fingerprint_prop:s0
10 | ro.hardware.fp u:object_r:vendor_fingerprint_prop:s0
11 | vendor.fps_hal. u:object_r:vendor_fingerprint_prop:s0
12 | vendor.sys.fp u:object_r:vendor_fingerprint_prop:s0
13 | ro.boot.fpsensor u:object_r:vendor_fingerprint_prop:s0
14 |
15 | # Global
16 | ro.boot.factorybuild u:object_r:vendor_public_vendor_default_prop:s0
17 | ro.boot.hwversion u:object_r:vendor_public_vendor_default_prop:s0
18 |
19 | # IMEI
20 | persist.vendor.radio.imei u:object_r:vendor_deviceid_prop:s0
21 | persist.vendor.radio.meid u:object_r:vendor_deviceid_prop:s0
22 | ro.vendor.oem.imei u:object_r:vendor_deviceid_prop:s0
23 | ro.vendor.oem.meid u:object_r:vendor_deviceid_prop:s0
24 |
25 | # Mlipay
26 | persist.vendor.sys.pay u:object_r:vendor_tee_listener_prop:s0
27 |
28 | # RIL
29 | ro.vendor.ril u:object_r:vendor_public_vendor_default_prop:s0
30 |
31 | # Thermal
32 | vendor.sys.thermal. u:object_r:vendor_thermal_normal_prop:s0
33 |
--------------------------------------------------------------------------------
/extract-files.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #
3 | # Copyright (C) 2016 The CyanogenMod Project
4 | # Copyright (C) 2017-2021 The LineageOS Project
5 | #
6 | # SPDX-License-Identifier: Apache-2.0
7 | #
8 |
9 | set -e
10 |
11 | DEVICE=mojito
12 | VENDOR=xiaomi
13 |
14 | export DEVICE_BRINGUP_YEAR=2021
15 |
16 | # Load extract_utils and do some sanity checks
17 | MY_DIR="${BASH_SOURCE%/*}"
18 | if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi
19 |
20 | ANDROID_ROOT="${MY_DIR}"/../../..
21 |
22 | HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh"
23 | if [ ! -f "${HELPER}" ]; then
24 | echo "Unable to find helper script at ${HELPER}"
25 | exit 1
26 | fi
27 | source "${HELPER}"
28 |
29 | # Default to sanitizing the vendor folder before extraction
30 | CLEAN_VENDOR=true
31 |
32 | SECTION=
33 | KANG=
34 |
35 | while [ "${#}" -gt 0 ]; do
36 | case "${1}" in
37 | -n | --no-cleanup )
38 | CLEAN_VENDOR=false
39 | ;;
40 | -k | --kang )
41 | KANG="--kang"
42 | ;;
43 | -s | --section )
44 | SECTION="${2}"; shift
45 | CLEAN_VENDOR=false
46 | ;;
47 | * )
48 | SRC="${1}"
49 | ;;
50 | esac
51 | shift
52 | done
53 |
54 | if [ -z "${SRC}" ]; then
55 | SRC="adb"
56 | fi
57 |
58 | function blob_fixup() {
59 | case "${1}" in
60 | vendor/lib64/camera/components/com.qti.node.watermark.so)
61 | ${PATCHELF} --add-needed "libpiex_shim.so" "${2}"
62 | ;;
63 | vendor/bin/mi_thermald)
64 | sed -i 's/%d\/on/%d\/../g' "${2}"
65 | ;;
66 | esac
67 | }
68 |
69 | # Initialize the helper for common device
70 | setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" true "${CLEAN_VENDOR}"
71 |
72 | extract "${MY_DIR}/proprietary-files.txt" "${SRC}" \
73 | "${KANG}" --section "${SECTION}"
74 |
75 | "${MY_DIR}/setup-makefiles.sh"
76 |
--------------------------------------------------------------------------------
/configs/props/system_ext.prop:
--------------------------------------------------------------------------------
1 | # Audio
2 | persist.audio.fluence.speaker=true
3 | persist.audio.fluence.voicecall=true
4 | persist.audio.fluence.voicerec=false
5 | ro.qc.sdk.audio.fluencetype=none
6 | ro.qc.sdk.audio.ssr=false
7 | tunnel.audio.encode=true
8 | use.voice.path.for.pcm.voip=true
9 |
10 | # Bluetooth
11 | bluetooth.hardware.power.idle_cur_ma=36
12 | bluetooth.hardware.power.operating_voltage_mv=3700
13 | bluetooth.hardware.power.rx_cur_ma=20
14 | bluetooth.hardware.power.tx_cur_ma=3
15 | bluetooth.profile.a2dp.source.enabled?=true
16 | bluetooth.profile.avrcp.target.enabled?=true
17 | bluetooth.profile.bas.client.enabled?=true
18 | bluetooth.profile.gatt.enabled?=true
19 | bluetooth.profile.hfp.ag.enabled?=true
20 | bluetooth.profile.hid.device.enabled?=true
21 | bluetooth.profile.hid.host.enabled?=true
22 | bluetooth.profile.map.server.enabled?=true
23 | bluetooth.profile.opp.enabled?=true
24 | bluetooth.profile.pan.nap.enabled?=true
25 | bluetooth.profile.pan.panu.enabled?=true
26 | bluetooth.profile.pbap.server.enabled?=true
27 | bluetooth.profile.sap.server.enabled?=true
28 |
29 | # Display
30 | dev.pm.dyn_samplingrate=1
31 | ro.display.type=oled
32 |
33 | # DPM
34 | persist.vendor.dpm.feature=11
35 | persist.vendor.dpm.nsrm.bkg.evt=3955
36 | persist.vendor.dpm.loglevel=0
37 | persist.vendor.dpmhalservice.enable=1
38 |
39 | # FUSE
40 | persist.fuse_sdcard=true
41 |
42 | # GPS
43 | persist.sys.gps.fence=true
44 | persist.sys.gps.polaris=true
45 |
46 | # Media
47 | av.offload.enable=true
48 | qcom.hw.aac.encoder=true
49 |
50 | # Multi-gen LRU
51 | persist.device_config.mglru_native.lru_gen_config=all
52 |
53 | # Printk
54 | persist.vendor.console.silent.config=1
55 |
56 | # Telephony
57 | ro.telephony.handle_audio_direction_changes_between_call_state_changes=false
58 | ro.telephony.sim_slots.count=2
59 | telephony.active_modems.max_count=2
60 |
61 | # Time Service
62 | persist.timed.enable=true
63 |
64 | # WFD
65 | persist.debug.wfd.enable=1
66 | persist.sys.wfd.virtual=0
67 |
--------------------------------------------------------------------------------
/parts/src/org/lineageos/settings/speaker/ClearSpeakerActivity.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2020 Paranoid Android
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 | package org.lineageos.settings.speaker;
18 |
19 | import android.app.Activity;
20 | import android.app.Fragment;
21 | import android.os.Bundle;
22 | import android.view.MenuItem;
23 |
24 | import com.android.settingslib.collapsingtoolbar.CollapsingToolbarBaseActivity;
25 | import com.android.settingslib.widget.R;
26 |
27 | public class ClearSpeakerActivity extends CollapsingToolbarBaseActivity {
28 |
29 | @Override
30 | protected void onCreate(Bundle savedInstanceState) {
31 | super.onCreate(savedInstanceState);
32 |
33 |
34 | Fragment fragment = getFragmentManager().findFragmentById(R.id.content_frame);
35 | ClearSpeakerFragment clearSpeakerFragment;
36 | if (fragment == null) {
37 | clearSpeakerFragment = new ClearSpeakerFragment();
38 | getFragmentManager().beginTransaction()
39 | .add(R.id.content_frame, clearSpeakerFragment)
40 | .commit();
41 | }
42 | }
43 |
44 | @Override
45 | public boolean onOptionsItemSelected(MenuItem item) {
46 | if (item.getItemId() == android.R.id.home) {
47 | finishAfterTransition();
48 | return true;
49 | }
50 | return super.onOptionsItemSelected(item);
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/rootdir/bin/init.qcom.early_boot.sh:
--------------------------------------------------------------------------------
1 | #!/vendor/bin/sh
2 | # Copyright (c) 2012-2013,2016,2018-2020 The Linux Foundation. All rights reserved.
3 | #
4 | # Redistribution and use in source and binary forms, with or without
5 | # modification, are permitted provided that the following conditions are met:
6 | # * Redistributions of source code must retain the above copyright
7 | # notice, this list of conditions and the following disclaimer.
8 | # * Redistributions in binary form must reproduce the above copyright
9 | # notice, this list of conditions and the following disclaimer in the
10 | # documentation and/or other materials provided with the distribution.
11 | # * Neither the name of The Linux Foundation nor
12 | # the names of its contributors may be used to endorse or promote
13 | # products derived from this software without specific prior written
14 | # permission.
15 | #
16 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 | # IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19 | # NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
20 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
21 | # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
22 | # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
23 | # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
25 | # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
26 | # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | #
28 |
29 | export PATH=/vendor/bin
30 |
31 | # Allow system_graphics group to access pmic secure_mode node
32 | set_perms /sys/class/lcd_bias/secure_mode system.graphics 0660
33 | set_perms /sys/class/leds/wled/secure_mode system.graphics 0660
34 |
--------------------------------------------------------------------------------
/parts/res/drawable/ic_thermal_browser.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
11 |
12 |
--------------------------------------------------------------------------------
/overlay/FrameworksMojito/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 |
23 | 119px
24 |
25 |
29 | 22px
30 |
31 |
32 | 108.0px
33 | @dimen/status_bar_height_default
34 | 45dp
35 |
36 |
37 | 55px
38 |
39 |
42 | @dimen/status_bar_height_default
43 |
44 |
--------------------------------------------------------------------------------
/parts/res/xml/dirac_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
20 |
21 |
25 |
26 |
33 |
34 |
41 |
42 |
43 |
46 |
47 |
52 |
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/configs/excluded-input-devices.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/parts/res/drawable/ic_thermal_gaming.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
12 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/parts/res/drawable/ic_thermal_default.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
12 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/parts/res/drawable/ic_thermal_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
12 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/parts/res/drawable/ic_thermal_streaming.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
12 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/rootdir/etc/init.recovery.qcom.rc:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
2 | #
3 | # Redistribution and use in source and binary forms, with or without
4 | # modification, are permitted provided that the following conditions are met:
5 | # * Redistributions of source code must retain the above copyright
6 | # notice, this list of conditions and the following disclaimer.
7 | # * Redistributions in binary form must reproduce the above copyright
8 | # notice, this list of conditions and the following disclaimer in the
9 | # documentation and/or other materials provided with the distribution.
10 | # * Neither the name of The Linux Foundation nor
11 | # the names of its contributors may be used to endorse or promote
12 | # products derived from this software without specific prior written
13 | # permission.
14 | #
15 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 | # IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 | # NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
19 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
20 | # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
21 | # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
22 | # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
23 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
24 | # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
25 | # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | #
27 |
28 | on init
29 | # Mount binderfs
30 | mkdir /dev/binderfs
31 | mount binder binder /dev/binderfs stats=global
32 | chmod 0755 /dev/binderfs
33 |
34 | symlink /dev/binderfs/binder /dev/binder
35 | symlink /dev/binderfs/hwbinder /dev/hwbinder
36 | symlink /dev/binderfs/vndbinder /dev/vndbinder
37 |
38 | chmod 0666 /dev/binderfs/hwbinder
39 | chmod 0666 /dev/binderfs/binder
40 | chmod 0666 /dev/binderfs/vndbinder
41 |
42 | write /sys/class/backlight/panel0-backlight/brightness 200
43 |
44 | setprop sys.usb.configfs 1
45 |
46 | on property:ro.boot.usbconfigfs=false
47 | setprop sys.usb.configfs 0
48 |
49 | on property:ro.boot.usbcontroller=*
50 | setprop sys.usb.controller ${ro.boot.usbcontroller}
51 | write /sys/class/udc/${ro.boot.usbcontroller}/device/../mode peripheral
52 |
53 | on fs
54 | wait /dev/block/platform/soc/${ro.boot.bootdevice}
55 | symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice
56 |
--------------------------------------------------------------------------------
/parts/src/org/lineageos/settings/dirac/DiracSound.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2018 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 | package org.lineageos.settings.dirac;
18 |
19 | import android.media.audiofx.AudioEffect;
20 |
21 | import java.util.UUID;
22 |
23 | public class DiracSound extends AudioEffect {
24 |
25 | private static final int DIRACSOUND_PARAM_HEADSET_TYPE = 1;
26 | private static final int DIRACSOUND_PARAM_EQ_LEVEL = 2;
27 | private static final int DIRACSOUND_PARAM_MUSIC = 4;
28 | private static final int DIRACSOUND_PARAM_HIFI = 8;
29 |
30 | private static final UUID EFFECT_TYPE_DIRACSOUND =
31 | UUID.fromString("5b8e36a5-144a-4c38-b1d7-0002a5d5c51b");
32 | private static final String TAG = "DiracSound";
33 |
34 | public DiracSound(int priority, int audioSession) {
35 | super(EFFECT_TYPE_NULL, EFFECT_TYPE_DIRACSOUND, priority, audioSession);
36 | }
37 |
38 | public void setMusic(int enable) throws IllegalStateException,
39 | IllegalArgumentException, UnsupportedOperationException {
40 | checkStatus(setParameter(DIRACSOUND_PARAM_MUSIC, enable));
41 | }
42 |
43 | public int getMusic() throws IllegalStateException,
44 | IllegalArgumentException, UnsupportedOperationException {
45 | int[] value = new int[1];
46 | checkStatus(getParameter(DIRACSOUND_PARAM_MUSIC, value));
47 | return value[0];
48 | }
49 |
50 | public void setHeadsetType(int type) throws IllegalStateException,
51 | IllegalArgumentException, UnsupportedOperationException {
52 | checkStatus(setParameter(DIRACSOUND_PARAM_HEADSET_TYPE, type));
53 | }
54 |
55 | public void setLevel(int band, float level) throws IllegalStateException,
56 | IllegalArgumentException, UnsupportedOperationException {
57 | checkStatus(setParameter(new int[]{DIRACSOUND_PARAM_EQ_LEVEL, band},
58 | String.valueOf(level).getBytes()));
59 | }
60 |
61 | public void setHifiMode(int mode) throws IllegalStateException,
62 | IllegalArgumentException, UnsupportedOperationException {
63 | checkStatus(setParameter(DIRACSOUND_PARAM_HIFI, mode));
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/parts/res/layout/thermal_list_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
23 |
24 |
31 |
32 |
37 |
38 |
49 |
50 |
54 |
55 |
56 |
57 |
64 |
65 |
--------------------------------------------------------------------------------
/configs/vintf/compatibility_matrix.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | android.frameworks.schedulerservice
4 | 1.0
5 |
6 | ISchedulingPolicyService
7 | default
8 |
9 |
10 |
11 | android.frameworks.sensorservice
12 | 1.0
13 |
14 | ISensorManager
15 | default
16 |
17 |
18 |
19 | android.hidl.allocator
20 | 1.0
21 |
22 | IAllocator
23 | ashmem
24 |
25 |
26 |
27 | android.hidl.manager
28 | 1.0
29 |
30 | IServiceManager
31 | default
32 |
33 |
34 |
35 | android.hidl.memory
36 | 1.0
37 |
38 | IMapper
39 | ashmem
40 |
41 |
42 |
43 | android.hidl.token
44 | 1.0
45 |
46 | ITokenManager
47 | default
48 |
49 |
50 |
51 | android.system.wifi.keystore
52 | 1.0
53 |
54 | IKeystore
55 | default
56 |
57 |
58 |
59 | vendor.qti.hardware.qccsyshal
60 | 1.0
61 |
62 | IQccsyshal
63 | qccsyshal
64 |
65 |
66 |
67 | vendor.qti.hardware.sigma_miracast
68 | 1.0
69 |
70 | Isigma_miracast
71 | sigmahal
72 |
73 |
74 |
75 | vendor.qti.hardware.wifi.keystore
76 | 1.0
77 |
78 | IKeystoreExt
79 | default
80 |
81 |
82 |
83 |
--------------------------------------------------------------------------------
/overlay/SystemUIMojito/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 | 156px
20 | @dimen/config_rounded_mask_size
21 | @dimen/config_rounded_mask_size
22 |
23 |
24 | 1025px
25 |
26 |
27 | 1025px
28 |
29 |
30 | 1080px
31 |
32 |
33 | 1150px
34 | 950px
35 |
36 |
38 | 85.0dip
39 |
40 |
41 | 1.5dp
42 |
43 |
44 | 8dp
45 |
46 |
47 | 8dp
48 |
49 |
50 | -1dp
51 |
52 |
53 | @*android:dimen/status_bar_height
54 |
55 |
56 | 7.5dp
57 |
58 |
59 | 20dp
60 |
61 |
--------------------------------------------------------------------------------
/parts/res/xml/doze_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
21 |
22 |
26 |
27 |
34 |
35 |
41 |
42 |
45 |
46 |
52 |
53 |
54 |
55 |
58 |
59 |
65 |
66 |
72 |
73 |
74 |
75 |
76 |
--------------------------------------------------------------------------------
/rootdir/bin/init.qcom.sh:
--------------------------------------------------------------------------------
1 | #! /vendor/bin/sh
2 |
3 | # Copyright (c) 2009-2016, The Linux Foundation. All rights reserved.
4 | #
5 | # Redistribution and use in source and binary forms, with or without
6 | # modification, are permitted provided that the following conditions are met:
7 | # * Redistributions of source code must retain the above copyright
8 | # notice, this list of conditions and the following disclaimer.
9 | # * Redistributions in binary form must reproduce the above copyright
10 | # notice, this list of conditions and the following disclaimer in the
11 | # documentation and/or other materials provided with the distribution.
12 | # * Neither the name of The Linux Foundation nor
13 | # the names of its contributors may be used to endorse or promote
14 | # products derived from this software without specific prior written
15 | # permission.
16 | #
17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 | # IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20 | # NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
22 | # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
23 | # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
24 | # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
25 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
26 | # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
27 | # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | #
29 |
30 | #
31 | # Make modem config folder and copy firmware config to that folder for RIL
32 | #
33 | if [ -f /data/vendor/modem_config/ver_info.txt ]; then
34 | prev_version_info=`cat /data/vendor/modem_config/ver_info.txt`
35 | else
36 | prev_version_info=""
37 | fi
38 |
39 | cur_version_info=`cat /vendor/firmware_mnt/verinfo/ver_info.txt`
40 | if [ ! -f /vendor/firmware_mnt/verinfo/ver_info.txt -o "$prev_version_info" != "$cur_version_info" ]; then
41 | # add W for group recursively before delete
42 | chmod g+w -R /data/vendor/modem_config/*
43 | rm -rf /data/vendor/modem_config/*
44 | # preserve the read only mode for all subdir and files
45 | cp --preserve=m -dr /vendor/firmware_mnt/image/modem_pr/mcfg/configs/* /data/vendor/modem_config
46 | cp --preserve=m -d /vendor/firmware_mnt/verinfo/ver_info.txt /data/vendor/modem_config/
47 | cp --preserve=m -d /vendor/firmware_mnt/image/modem_pr/mbn_ota.txt /data/vendor/modem_config/
48 | # the group must be root, otherwise this script could not add "W" for group recursively
49 | chown -hR radio.root /data/vendor/modem_config/*
50 | fi
51 | chmod g-w /data/vendor/modem_config
52 | setprop ro.vendor.ril.mbn_copy_completed 1
53 | pm disable com.google.android.gms/.chimera.GmsIntentOperationService
54 |
55 | # Remove settings cache, avoids derps after dirty flash
56 | rm -rf /data/system/package_cache
57 |
--------------------------------------------------------------------------------
/parts/res/values-zh-rCN/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
18 |
19 |
20 | 使用米音提升音质
21 | 米音
22 | 耳机类型设置
23 | 请选择预设效果
24 |
25 | 无
26 | 灵动耳塞式
27 | 灵悦入耳式
28 | 小米活塞1
29 | 通用耳塞式
30 | 通用入耳式
31 | 小米活塞简装版
32 | 小米活塞2
33 | 小米活塞标准版
34 | 小米头戴式
35 | 小米活塞青春版
36 | 小米活塞炫彩版
37 | 小米圈铁
38 | 小米胶囊
39 | 小米圈铁Pro
40 | 小米头戴轻松版
41 | 小米降噪 typeC
42 | 小米降噪 3.5mm
43 | 小米半入耳式
44 | 小米圈铁2
45 | 小米耳机基本款
46 | 小米耳机
47 |
48 | 无
49 | 摇滚
50 | 爵士
51 | 流行
52 | 古典
53 | 嘻哈
54 | 布鲁斯
55 | 电子音乐
56 | 乡村
57 | 舞曲
58 | 金属
59 |
60 |
--------------------------------------------------------------------------------
/parts/res/values-zh-rHK/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
18 |
19 |
20 | 使用米音提升音質
21 | 米音
22 | 耳機類型設定
23 | 請選擇預設等化器
24 |
25 | 無
26 | 靈動耳塞式
27 | 靈悅入耳式
28 | 小米活塞1
29 | 通用耳塞式
30 | 通用入耳式
31 | 小米活塞簡裝版
32 | 小米活塞2
33 | 小米活塞標準版
34 | 小米頭戴式
35 | 小米活塞青春版
36 | 小米活塞耳機炫彩版
37 | 小米圈鐵耳機
38 | 小米膠囊
39 | 小米圈鐵耳機Pro
40 | 小米頭戴式耳機輕鬆版
41 | 小米降噪耳機 typeC
42 | 小米降噪耳機 3.5mm
43 | 小米半入耳式
44 | 小米圈鐵耳機2
45 | 小米耳機基本款
46 | 小米耳機
47 |
48 | 無
49 | 搖滾
50 | 爵士
51 | 流行
52 | 古典
53 | 嘻哈
54 | 布魯斯
55 | 電子音樂
56 | 鄉村
57 | 舞曲
58 | 金屬
59 |
60 |
--------------------------------------------------------------------------------
/parts/res/values-zh-rSG/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
18 |
19 |
20 | 使用米音提升音質
21 | 米音
22 | 耳機類型設定
23 | 請選擇預設等化器
24 |
25 | 無
26 | 靈動耳塞式
27 | 靈悅入耳式
28 | 小米活塞1
29 | 通用耳塞式
30 | 通用入耳式
31 | 小米活塞簡裝版
32 | 小米活塞2
33 | 小米活塞標準版
34 | 小米頭戴式
35 | 小米活塞青春版
36 | 小米活塞耳機炫彩版
37 | 小米圈鐵耳機
38 | 小米膠囊
39 | 小米圈鐵耳機Pro
40 | 小米頭戴式耳機輕鬆版
41 | 小米降噪耳機 typeC
42 | 小米降噪耳機 3.5mm
43 | 小米半入耳式
44 | 小米圈鐵耳機2
45 | 小米耳機基本款
46 | 小米耳機
47 |
48 | 無
49 | 搖滾
50 | 爵士
51 | 流行
52 | 古典
53 | 嘻哈
54 | 布魯斯
55 | 電子音樂
56 | 鄉村
57 | 舞曲
58 | 金屬
59 |
60 |
--------------------------------------------------------------------------------
/parts/res/values-zh-rTW/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
18 |
19 |
20 | 使用米音提升音質
21 | 米音
22 | 耳機類型設定
23 | 請選擇預設等化器
24 |
25 | 無
26 | 靈動耳塞式
27 | 靈悅入耳式
28 | 小米活塞1
29 | 通用耳塞式
30 | 通用入耳式
31 | 小米活塞簡裝版
32 | 小米活塞2
33 | 小米活塞標準版
34 | 小米頭戴式
35 | 小米活塞青春版
36 | 小米活塞耳機炫彩版
37 | 小米圈鐵耳機
38 | 小米膠囊
39 | 小米圈鐵耳機Pro
40 | 小米頭戴式耳機輕鬆版
41 | 小米降噪耳機 typeC
42 | 小米降噪耳機 3.5mm
43 | 小米半入耳式
44 | 小米圈鐵耳機2
45 | 小米耳機基本款
46 | 小米耳機
47 |
48 | 無
49 | 搖滾
50 | 爵士
51 | 流行
52 | 古典
53 | 嘻哈
54 | 布魯斯
55 | 電子音樂
56 | 鄉村
57 | 舞曲
58 | 金屬
59 |
60 |
--------------------------------------------------------------------------------
/parts/res/values-ko-rKR/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
18 |
19 |
20 | Mi 사운드 강화
21 | 음질 최적화
22 | 헤드폰 유형 선택
23 | 프리셋 선택
24 |
25 | 기본
26 | Mi 이어버드
27 | Mi 인이어 (2013)
28 | Mi 피스톤 1
29 | 일반
30 | 일반 이어폰
31 | 기본 에디션
32 | Mi 피스톤 2
33 | 표준 에디션
34 | Mi 헤드폰
35 | 청소년 에디션
36 | 컬러 에디션
37 | Mi 이어폰
38 | Mi 캡슐
39 | Mi 인이어 프로
40 | Mi Comfort
41 | Mi 노이즈 캔슬링 Type-C
42 | Mi 노이즈 캔슬링 3.5mm
43 | Mi 하프 인이어
44 | Mi 인이어 2
45 | Mi 이어폰 베이직
46 | Mi 이어폰
47 |
48 | 기본
49 | 락
50 | 재즈
51 | 팝
52 | 클래식
53 | 힙합
54 | 블루스
55 | 일렉트로닉
56 | 컨트리
57 | 댄스
58 | 메탈
59 |
60 |
--------------------------------------------------------------------------------
/parts/res/values-ja-rJP/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
18 |
19 |
20 | Mi サウンドエンハンサー
21 | オーディオ品質を最適化
22 | ヘッドフォンの種類を選択
23 | プリセットを選択してください
24 |
25 | デフォルト
26 | Mi イヤーバッド
27 | Mi インイヤー (2013)
28 | Mi ピストン 1
29 | 一般
30 | 一般的なインイヤー型
31 | ベーシック版
32 | Mi ピストン 2
33 | スタンダード版
34 | Mi ヘッドフォン
35 | 青春版
36 | カラー版
37 | Mi インイヤー
38 | Mi カプセル
39 | Mi インイヤー Pro
40 | Mi コンフォート
41 | Mi ノイズキャンセリング Type-C
42 | Mi ノイズキャンセリング 3.5mm
43 | Mi ハーフインイヤー
44 | Mi インイヤー2
45 | Mi イヤフォン ベーシック
46 | Mi イヤホン
47 |
48 | デフォルト
49 | ロック
50 | ジャズ
51 | ポップ
52 | クラシック
53 | ヒップホップ
54 | ブルース
55 | エレクトロニック
56 | カントリー
57 | ダンス
58 | メタル
59 |
60 |
--------------------------------------------------------------------------------
/parts/src/org/lineageos/settings/doze/PickupSensor.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2015 The CyanogenMod Project
3 | * 2017-2018 The LineageOS Project
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License");
6 | * you may not use this file except in compliance with the License.
7 | * You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.lineageos.settings.doze;
19 |
20 | import android.content.Context;
21 | import android.hardware.Sensor;
22 | import android.hardware.SensorEvent;
23 | import android.hardware.SensorEventListener;
24 | import android.hardware.SensorManager;
25 | import android.os.SystemClock;
26 | import android.util.Log;
27 |
28 | import java.util.concurrent.ExecutorService;
29 | import java.util.concurrent.Executors;
30 | import java.util.concurrent.Future;
31 |
32 | public class PickupSensor implements SensorEventListener {
33 | private static final boolean DEBUG = false;
34 | private static final String TAG = "PickupSensor";
35 |
36 | private static final int MIN_PULSE_INTERVAL_MS = 2500;
37 |
38 | private SensorManager mSensorManager;
39 | private Sensor mSensor;
40 | private Context mContext;
41 | private ExecutorService mExecutorService;
42 |
43 | private long mEntryTimestamp;
44 |
45 | public PickupSensor(Context context) {
46 | mContext = context;
47 | mSensorManager = mContext.getSystemService(SensorManager.class);
48 | mSensor = DozeUtils.getSensor(mSensorManager, "xiaomi.sensor.pickup");
49 | mExecutorService = Executors.newSingleThreadExecutor();
50 | }
51 |
52 | private Future> submit(Runnable runnable) { return mExecutorService.submit(runnable); }
53 |
54 | @Override
55 | public void onSensorChanged(SensorEvent event) {
56 | if (DEBUG)
57 | Log.d(TAG, "Got sensor event: " + event.values[0]);
58 |
59 | long delta = SystemClock.elapsedRealtime() - mEntryTimestamp;
60 | if (delta < MIN_PULSE_INTERVAL_MS) {
61 | return;
62 | }
63 |
64 | mEntryTimestamp = SystemClock.elapsedRealtime();
65 |
66 | if (event.values[0] == 1) {
67 | DozeUtils.wakeOrLaunchDozePulse(mContext);
68 | }
69 | }
70 |
71 | @Override
72 | public void onAccuracyChanged(Sensor sensor, int accuracy) {
73 | /* Empty */
74 | }
75 |
76 | protected void enable() {
77 | if (DEBUG)
78 | Log.d(TAG, "Enabling");
79 | submit(() -> {
80 | mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_NORMAL);
81 | mEntryTimestamp = SystemClock.elapsedRealtime();
82 | });
83 | }
84 |
85 | protected void disable() {
86 | if (DEBUG)
87 | Log.d(TAG, "Disabling");
88 | submit(() -> { mSensorManager.unregisterListener(this, mSensor); });
89 | }
90 | }
91 |
--------------------------------------------------------------------------------
/parts/res/values-ar-rSA/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
18 |
19 |
20 | محسن صوت Mi
21 | تحسين جودة الصوت
22 | اختيار نوع سماعة الرأس
23 | اختر إعداد
24 |
25 | الافتراضي
26 | Mi Earbuds
27 | Mi In-Ear (2013)
28 | Mi Piston-1
29 | عام
30 | عامة In-Ear
31 | إصدار رئيسي
32 | Mi Piston-2
33 | إصدار قياسي
34 | سماعات رأس Mi
35 | إصدار شبابي
36 | إصدار اللون
37 | Mi In-Ear
38 | Mi Capsule
39 | Mi In-Ear Pro
40 | Mi Comfort
41 | إلغاء الضوضاء Mi Type-C
42 | إلغاء الضوضاء Mi 3.5mm
43 | Mi Half In-Ear
44 | Mi In-Ear 2
45 | Mi Earphones Basic
46 | Mi Earphones
47 |
48 | الافتراضي
49 | روك
50 | جاز
51 | بوب
52 | كلاسيك
53 | هيب هوب
54 | إيقاع
55 | الكتروني
56 | الريف
57 | رقص
58 | معدن
59 |
60 |
--------------------------------------------------------------------------------
/parts/res/values-iw-rIL/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
18 |
19 |
20 | מגבר צלילים Mi
21 | ייעול איכות השמע
22 | בחר סוג אוזניות
23 | בחירת הגדרה
24 |
25 | ברירת מחדל
26 | Mi Earbuds
27 | Mi In-Ear (2013)
28 | Mi Piston-1
29 | כללי
30 | In-Ear כללי
31 | מהדורה בסיסית
32 | Mi Piston-2
33 | מהודרה רגילה
34 | אוזניות Mi
35 | מהדורת נוער
36 | מהדורת צבע
37 | Mi In-Ear
38 | קפסולת Mi
39 | Mi In-Ear Pro
40 | Mi Comfort
41 | ביטול רעשים של Mi Type-C
42 | ביטול רעשים של Mi 3.5 מ\"מ
43 | Mi Half in Ear
44 | Mi In-Ear 2
45 | Mi מיקרופון בסיסי
46 | אוזניות Mi
47 |
48 | ברירת מחדל
49 | רוק
50 | ג\'אז
51 | פופ
52 | קלאסית
53 | היפ הופ
54 | בלוז
55 | אלקטרונית
56 | קאנטרי
57 | דאנס
58 | מטאל
59 |
60 |
--------------------------------------------------------------------------------
/parts/res/values-ur-rIN/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
18 |
19 |
20 | Mi ساؤنڈ انہینسر
21 | آڈیو کے معیار کو بہتر بنائيں
22 | ہیڈفون ی؛قسم منتخب کریں
23 | پری سیٹ منتخب کریں
24 |
25 | ڈیفالٹ
26 | Mi ایربڈز
27 | Mi ان-ایئر (2013)
28 | Mi پسٹن -1
29 | عمومی
30 | عمومی ان-ایر
31 | بنیادی ایڈیشن
32 | Mi پسٹن -2
33 | معیاری ایڈیشن
34 | Mi ہیڈ فونز
35 | یوتھ ایڈیشن
36 | کلر ایڈشن
37 | Mi اِن-ایر
38 | Mi کیپسول
39 | Mi ان-ایر پرو
40 | Mi Comfort
41 | Mi شور منسوخی ٹائپ-C
42 | Mi شور منسوخی 3.5mm
43 | Mi ہاف ان ایئر
44 | Mi ان-ایئر 2
45 | Mi ایئرفون بیسک
46 | Mi ایئر فونز
47 |
48 | ڈیفالٹ
49 | راک
50 | جاز
51 | پاپ
52 | کلاسیکی
53 | ہِپ ہاپ
54 | بلیوز
55 | الیکٹرونک
56 | ملک
57 | رقص
58 | دھات
59 |
60 |
--------------------------------------------------------------------------------
/parts/res/values-ur-rPK/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
18 |
19 |
20 | Mi ساؤنڈ انہینسر
21 | آڈیو کے معیار کو بہتر بنائيں
22 | ہیڈفون ی؛قسم منتخب کریں
23 | پری سیٹ منتخب کریں
24 |
25 | ڈیفالٹ
26 | Mi ایربڈز
27 | Mi ان-ایئر (2013)
28 | Mi پسٹن -1
29 | عمومی
30 | عمومی ان-ایر
31 | بنیادی ایڈیشن
32 | Mi پسٹن -2
33 | معیاری ایڈیشن
34 | Mi ہیڈ فونز
35 | یوتھ ایڈیشن
36 | کلر ایڈشن
37 | Mi اِن-ایر
38 | Mi کیپسول
39 | Mi ان-ایر پرو
40 | Mi Comfort
41 | Mi شور منسوخی ٹائپ-C
42 | Mi شور منسوخی 3.5mm
43 | Mi ہاف ان ایئر
44 | Mi ان-ایئر 2
45 | Mi ایئرفون بیسک
46 | Mi ایئر فونز
47 |
48 | ڈیفالٹ
49 | راک
50 | جاز
51 | پاپ
52 | کلاسیکی
53 | ہِپ ہاپ
54 | بلیوز
55 | الیکٹرونک
56 | ملک
57 | رقص
58 | دھات
59 |
60 |
--------------------------------------------------------------------------------
/parts/res/values-cs-rCZ/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
18 |
19 |
20 | Vylepšení Mi Sound
21 | Optimalizovat kvalitu zvuku
22 | Typ sluchátek
23 | Zvolit přednastavené
24 |
25 | Výchozí
26 | Mi pecky
27 | Mi špunty (2013)
28 | Mi Piston-1
29 | Obyčejná
30 | Běžné špunty
31 | Základní edice
32 | Mi Piston-2
33 | Standardní edice
34 | Mi sluchátka
35 | Pro mladé
36 | Barevná edice
37 | Mi špunty
38 | Mi kapsle
39 | Mi špunty Pro
40 | Mi Komfort
41 | Mi Rušení hluku Typ-C
42 | Mi Rušení hluku 3,5 mm
43 | Mi Half In-Ear
44 | Mi In-Ear 2
45 | Mi Earphones Basic
46 | Mi Earphones
47 |
48 | Výchozí
49 | Rock
50 | Jazz
51 | Pop
52 | Klasická
53 | Hip Hop
54 | Blues
55 | Elektronická
56 | Country
57 | Taneční
58 | Metal
59 |
60 |
--------------------------------------------------------------------------------
/parts/res/values-fi-rFI/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
18 |
19 |
20 | Mi Sound Enhancer
21 | Optimoi äänenlaatua
22 | Valitse kuuloke tyyppi
23 | Valitse esiasetus
24 |
25 | Oletus
26 | Mi Earbuds
27 | Mi In-Ear (2013)
28 | Mi Piston-1
29 | Yleinen
30 | Yleinen kuuloke
31 | Perusversio
32 | Mi Piston-2
33 | Vakioversio
34 | Mi-kuulokkeet
35 | Youth Edition
36 | Color Edition
37 | Mi In-Ear
38 | Mi Capsule
39 | Mi In-Ear Pro
40 | Mi Comfort
41 | Mi Melunvaimennus Type-C
42 | Mi Melunvaimennus 3,5 mm
43 | Mi Half In-Ear
44 | Mi In-Ear 2
45 | Mi Earphones Basic
46 | Mi Earphones
47 |
48 | Oletus
49 | Rock
50 | Jazz
51 | Pop
52 | Klassinen
53 | Hip Hop
54 | Blues
55 | Electronic
56 | Kantri
57 | Dance
58 | Metalli
59 |
60 |
--------------------------------------------------------------------------------
/parts/res/values-hi-rIN/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
18 |
19 |
20 | Mi ध्वनि एन्हांसर
21 | ऑडियो गुणवत्ता ऑप्टिमाइज़ करें
22 | हेडफोन प्रकार चुनें
23 | पूर्व निर्धारित चुनें
24 |
25 | डिफ़ॉल्ट
26 | Mi इयरबड्स
27 | Mi इन-ईयर (2013)
28 | Mi पिस्टन-1
29 | सामान्य
30 | सामान्य इन-इयर
31 | मूल संस्करण
32 | Mi पिस्टन-2
33 | मानक संस्करण
34 | Mi हेडफोन्स
35 | युवा संस्करण
36 | रंग संस्करण
37 | Mi इन-इयर
38 | Mi कैपसूल
39 | Mi इन-ईयर प्रो
40 | Mi आराम
41 | Mi नॉइज कैंसलिंग टाइप-C
42 | Mi नॉइज कैंसलिंग 3.5mm
43 | Mi हाल्फ इन ईयर
44 | Mi इन-ईयर 2
45 | Mi ईयरफ़ोन बेसिक
46 | Mi ईयरफ़ोन्स
47 |
48 | डिफ़ॉल्ट
49 | रॉक
50 | जैज़
51 | पॉप
52 | क्लॅसिकल
53 | हिप हॉप
54 | ब्लूज़
55 | इलेक्ट्रॉनिक
56 | कंट्री
57 | डांस
58 | मेटल
59 |
60 |
--------------------------------------------------------------------------------
/parts/res/values-mr-rIN/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
18 |
19 |
20 | Mi ध्वनी वर्धक
21 | अॉडिओ गुणवत्ता अनुकूल करा
22 | हेडफोन प्रकार निवडा
23 | एखादे प्रिसेट निवडा
24 |
25 | डिफॉल्ट
26 | Mi इअरबड्स
27 | Mi In-Ear(2013)
28 | Mi पिस्टन-1
29 | सामान्य
30 | सामान्य इन-इअर
31 | मूळ अावृत्ती
32 | Mi पिस्टन-2
33 | मानक आवृत्ती
34 | Mi हेडफोन्स
35 | यूथ एडिशन
36 | रंग आवृत्ति
37 | Mi इन-इअर
38 | Mi कॅप्सूल
39 | Mi इन इअर प्रो
40 | Mi कम्फर्ट
41 | Mi गोंगाट थांबवणे प्रकार-सी
42 | Mi गोंगाट थांबवणे 3.5mm
43 | Mi हाल्फ इन-इयर
44 | कान 2 मध्ये Mi
45 | Mi इयरफोन्स बेसिक
46 | Mi इयरफोन्स
47 |
48 | डिफॉल्ट
49 | रॉक
50 | जाझ
51 | पॉप
52 | क्लासिकल
53 | हिप हॉप
54 | ब्लूज
55 | इलेक्ट्रॉनिक
56 | कंट्री
57 | डान्स
58 | मेटल
59 |
60 |
--------------------------------------------------------------------------------
/parts/res/values-bn-rBD/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
18 |
19 |
20 | Mi সাউন্ড বিবর্ধক
21 | অডিওয়ের গুণমান অপ্টিমাইজ করুন
22 | হেডফোনের প্রকার চয়ন করুন
23 | একটি প্রিসেট বাছুন
24 |
25 | ডিফল্ট
26 | Mi ইয়ারবাড
27 | Mi ইন- ইয়ার(2013)
28 | Mi পিসটন-১
29 | সাধারণ
30 | সাধারণত কানে
31 | বেসিক সংস্করণ
32 | Mi পিসটন-২
33 | আদর্শ সংস্করণ
34 | Mi হেডফোন
35 | যুবা সংস্করণ
36 | রঙ সম্পাদক
37 | Mi ইন-ইয়ার
38 | Mi ক্যাপসুল
39 | Mi ইন ইয়ার প্রো
40 | Mi কমফর্ট
41 | Mi কোলাহল বাতিল টাইপ-C
42 | Mi কোলাহল বাতিল (3.5মি. মি.)
43 | Mi হাফ ইন ইয়ার
44 | Mi ইন-ইয়ার 2
45 | Mi ইয়ারফোন বেসিক
46 | Mi ইয়েরফোন
47 |
48 | ডিফল্ট
49 | রক
50 | জ্যাজ
51 | পপ
52 | ক্লাসিকাল
53 | হিপ হপ
54 | ব্লুজ
55 | ইলেক্ট্রনিক
56 | কান্ট্রি
57 | নাচ
58 | মেটাল
59 |
60 |
--------------------------------------------------------------------------------
/parts/res/values-km-rKH/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
18 |
19 |
20 | Mi Sound Enhancer
21 | បង្កើនប្រសិទ្ធភាពគុណភាពសម្លេង
22 | ជ្រើសប្រភេទកាស
23 | ជ្រើសកំណត់ជាមុន
24 |
25 | លំនាំដើម
26 | Mi Earbuds
27 | Mi In-Ear (2013)
28 | Mi Piston-1
29 | ទូទៅ
30 | General In-Ear
31 | Basic Edition
32 | Mi Piston-2
33 | Standard Edition
34 | កាស Mi ទាំងឡាយ
35 | Youth Edition
36 | Color Edition
37 | Mi In-Ear
38 | Mi Capsule
39 | Mi In-Ear Pro
40 | Mi Comfort
41 | ការលុបសម្លេងMi ប្រភេទ -C
42 | ការលុបសម្លេងMi 3.5mm
43 | Mi Half In-Ear
44 | Mi In-Ear ២
45 | មូលដ្ឋានកាសMi
46 | កាស Mi
47 |
48 | លំនាំដើម
49 | ចង្វាក់រ៉ុក
50 | ហ្សាស
51 | ប៉ប់
52 | បុរាណ
53 | ហ៊ីបហប់
54 | Blues
55 | អេឡិចត្រូនិក
56 | បែបជនបទ
57 | រាំ
58 | តន្ត្រីលោហៈ
59 |
60 |
--------------------------------------------------------------------------------
/parts/res/values-vi-rVN/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
18 |
19 |
20 | Tăng cường Mi Sound
21 | Tối ưu chất lượng âm thanh
22 | Chọn loại tai nghe
23 | Chọn hiệu chỉnh sẵn có
24 |
25 | Mặc định
26 | Mi Earbud
27 | Mi In-Ear (2013)
28 | Mi Piston-1
29 | Thường
30 | In-Ear thường
31 | Cơ bản
32 | Mi piston-2
33 | Tiêu chuẩn
34 | Tai nghe Mi
35 | Phiên bản trẻ
36 | Phiên bản sắc màu
37 | Mi In-Ear
38 | Mi Capsule
39 | Mi In-Ear Pro
40 | Mi Comfort
41 | Khử tiếng ồn Mi Type-C
42 | Khử tiếng ồn Mi 3.5mm
43 | Mi Half In-Ear
44 | Mi In-Ear 2
45 | Mi Earphones Basic
46 | Tai nghe Mi
47 |
48 | Mặc định
49 | Rock
50 | Jazz
51 | Pop
52 | Cổ điển
53 | Hip Hop
54 | Blue
55 | Điện tử
56 | Quê hương
57 | Khiêu vũ
58 | Kim loại
59 |
60 |
--------------------------------------------------------------------------------
/parts/res/values-gu-rIN/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
18 |
19 |
20 | Mi સાઉન્ડ એન્હાંસર
21 | ઑડિયો ગુણવત્તા ઑપ્ટિમાઇઝ કરો
22 | હેડફોન પ્રકાર પસંદ કરો
23 | પ્રીસેટ પસંદ કરો
24 |
25 | ડિફૉલ્ટ
26 | Mi ઇયરબડ
27 | Mi ઇન-ઇઅર (2013)
28 | માઇલ પિસ્ટન 1
29 | સામાન્ય
30 | સામાન્ય ઇન-ઇયર
31 | મૂળભૂત આવૃત્તિ
32 | માઇલ પિસ્ટન 2
33 | સ્ટાન્ડર્ડ આવૃત્તિ
34 | માઇલ હેડફોન
35 | યુવા આવૃત્તિ
36 | રંગ આવૃત્તિ
37 | Mi ઇન-ઇયર
38 | Mi કેપ્સ્યુલ
39 | Mi ઇન-ઇઅર પ્રો
40 | Mi આરામ
41 | Mi Noise Cancelling Type-C
42 | Mi Noise Cancelling 3.5mm
43 | Mi Half In-Ear
44 | Mi ઇન-ઇઅર 2
45 | Mi ઇયરફોન બેઝિક
46 | Mi ઇયરફોન
47 |
48 | ડિફૉલ્ટ
49 | રૉક
50 | જૅઝ
51 | પૉપ
52 | ક્લાસિકલ
53 | હિપ હોપ
54 | બ્લૂઝ
55 | ઇલેક્ટ્રોનિક
56 | દેશ
57 | નૃત્ય
58 | મેટલ
59 |
60 |
--------------------------------------------------------------------------------
/parts/res/values-pa-rIN/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
18 |
19 |
20 | Mi ਧੁਨੀ ਵਰਧਕ
21 | ਆਡੀਓ ਗੁਣਵੱਤਾ ਅਨੁਕੂਲਿਤ ਕਰੋ
22 | ਹੈੱਡਫ਼ੋਨਾਂ ਦੀ ਕਿਸਮ ਚੁਣੋ
23 | ਇੱਕ ਪ੍ਰੀਸੈੱਟ ਚੁਣੋ
24 |
25 | ਪੂਰਵ-ਨਿਰਧਾਰਤ
26 | Mi ਈਅਰਬਡਸ
27 | Mi ਇਨ-ਈਅਰ (2013)
28 | Mi ਪਿਸਟਨ-1
29 | ਸਧਾਰਨ
30 | ਸਧਾਰਨ ਇਨ-ਈਅਰ
31 | ਮੂਲ ਸੰਸਕਰਨ
32 | Mi ਪਿਸਟਨ-2
33 | ਸਟੈਂਡਰਡ ਸੰਸਕਰਨ
34 | Mi ਹੈੱਡਫ਼ੋਨਸ
35 | ਯੂਥ ਸੰਸਕਰਨ
36 | ਰੰਗ ਸੰਸਕਰਨ
37 | Mi ਇਨ-ਈਅਰ
38 | Mi ਕੈਪਸੂਲ
39 | Mi ਇਨ-ਈਅਰ ਪ੍ਰੋ
40 | Mi ਕਮਫ਼ਰਟ
41 | Mi ਸ਼ੋਰ ਰੱਦ ਕੀਤਾ ਜਾ ਰਿਹਾ ਹੈ ਕਿਸਮ-C
42 | Mi ਸ਼ੋਰ ਰੱਦ ਕੀਤਾ ਜਾ ਰਿਹਾ ਹੈ 3.5ਮਿ.ਮਿ.
43 | Mi ਹਾਫ਼ ਇਨ ਈਅਰ
44 | Mi ਇਨ-ਈਅਰ 2
45 | Mi ਈਅਰਫ਼ੋਨ ਬੇਸਿਕ
46 | Mi ਈਅਰਫ਼ੋਨ
47 |
48 | ਪੂਰਵ-ਨਿਰਧਾਰਤ
49 | ਰੌਕ
50 | ਜੈਜ਼
51 | ਪੌਪ
52 | ਸ਼ਾਸਤਰੀ
53 | ਹਿਪ ਹੌਪ
54 | ਬਲੂਜ਼
55 | ਇਲੈਕਟ੍ਰੋਨਿਕ
56 | ਦੇਸ਼
57 | ਡਾਂਸ
58 | ਮੈਟਲ
59 |
60 |
--------------------------------------------------------------------------------
/configs/props/system.prop:
--------------------------------------------------------------------------------
1 | #ADB
2 | ro.adb.secure.recovery=0
3 |
4 | # Bluetooth
5 | persist.vendor.btstack.enable.twsplus=true
6 | persist.vendor.btstack.enable.twsplussho=true
7 | persist.vendor.bt.a2dp.aac_whitelist=false
8 | persist.vendor.btstack.enable.lpa=true
9 | persist.vendor.bt.a2dp.hal.implementation=true
10 |
11 | # Camera
12 | log.tag.CHIUSECASE=ERROR
13 |
14 | # Charger
15 | ro.charger.enable_suspend=true
16 |
17 | # CNE
18 | persist.vendor.cne.feature=1
19 |
20 | # Disable async MTE on system_server
21 | arm64.memtag.process.system_server=off
22 |
23 | # Display
24 | debug.force_no_blanking=true
25 | debug.sf.enable_hwc_vds=1
26 | debug.sf.enable_planner_prediction=false
27 | debug.sf.latch_unsignaled=1
28 | debug.sf.enable_transaction_tracing=false
29 | debug.sf.predict_hwc_composition_strategy=0
30 | ro.surface_flinger.has_wide_color_display=true
31 | ro.surface_flinger.has_HDR_display=true
32 | ro.surface_flinger.start_graphics_allocator_service=true
33 | ro.surface_flinger.use_color_management=true
34 | ro.surface_flinger.wcg_composition_dataspace=143261696
35 | sys.displayfeature_hidl=true
36 |
37 | # FUSE passthrough
38 | persist.sys.fuse.passthrough.enable=true
39 |
40 | # FRP
41 | ro.frp.pst=/dev/block/bootdevice/by-name/frp
42 |
43 | # LMKD
44 | ro.config.low_ram=false
45 | ro.lmk.log_stats=true
46 | ro.lmk.use_minfree_levels=true
47 |
48 | # Logs
49 | persist.log.tag.AnalyticsService=S
50 | persist.log.tag.KernelCpuUidActiveTimeReader=S
51 | persist.log.tag.Tracer=S
52 | persist.log.tag.NearbySharing=S
53 | persist.log.tag.IntervalStats=S
54 | persist.log.tag.CompatibilityChangeReporter=S
55 | persist.log.tag.SQLiteLog=S
56 | persist.log.tag.wificond=S
57 | persist.log.tag.b/223498680=S
58 | persist.log.tag.TrafficStats=S
59 | persist.log.tag.ContrastColorUtil=S
60 |
61 | # Media
62 | media.aac_51_output_enabled=true
63 | media.stagefright.enable-aac=true
64 | media.stagefright.enable-fma2dp=true
65 | media.stagefright.enable-http=true
66 | media.stagefright.enable-player=true
67 | media.stagefright.enable-qcp=true
68 | media.stagefright.enable-scan=true
69 | media.stagefright.thumbnail.prefer_hw_codecs=true
70 | mmp.enable.3g2=true
71 | mm.enable.smoothstreaming=true
72 | persist.mm.enable.prefetch=true
73 | media.settings.xml=/vendor/etc/media_profiles_vendor.xml
74 | vendor.mm.enable.qcom_parser=16777199
75 |
76 | # Netflix
77 | ro.netflix.channel=497730f0-ad4b-11e7-95a4-c7ad113ce187
78 | ro.netflix.signup=1
79 |
80 | # Radio
81 | DEVICE_PROVISIONED=1
82 | persist.data.df.dev_name=rmnet_usb0
83 | persist.radio.apm_sim_not_pwdn=1
84 | persist.radio.NO_STAPA=1
85 | persist.radio.VT_CAM_INTERFACE=1
86 | persist.radio.VT_HYBRID_ENABLE=1
87 | persist.radio.atfwd.start=false
88 | persist.radio.multisim.config=dsds
89 | ril.subscription.types=NV,RUIM
90 | rild.libpath=/vendor/lib64/libril-qc-hal-qmi.so
91 | ro.telephony.default_cdma_sub=0
92 | telephony.lteOnCdmaDevice=1
93 |
94 | # RIL Powersaving
95 | persist.radio.add_power_save=1
96 | pm.sleep_mode=1
97 | ro.ril.disable.power.collapse=0
98 | ro.ril.fast.dormancy.rule=1
99 | ro.ril.fast.dormancy.timeout=3
100 | ro.mot.eri.losalert.delay=1000
101 | ro.vold.umsdirtyratio=20
102 | power.saving.mode=1
103 |
104 | # Storage.xml moment
105 | persist.sys.binary_xml=false
106 |
107 | # Disable Skia tracing by default
108 | debug.hwui.skia_atrace_enabled=false
109 |
--------------------------------------------------------------------------------
/parts/res/values-as-rIN/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
18 |
19 |
20 | Mi ধ্বনি পৰিবৰ্ধক
21 | অডিঅ\' গুণমান অনুকূলিত কৰক
22 | হেডফোনৰ প্ৰকাৰ পচন্দ কৰক
23 | এটা প্ৰিছেট পচন্দ কৰক
24 |
25 | ডিফ\'ল্ট
26 | Mi ইয়েৰবাড
27 | Mi ইন-ইয়েৰ (2013)
28 | Mi পিষ্টন-1
29 | সাধাৰণ
30 | সাধাৰণ ইন-ইয়েৰ
31 | প্ৰাথমিক সংস্কৰণ
32 | Mi পিষ্টন-2
33 | মান্য সংস্কৰণ
34 | Mi হেডফোন
35 | যুৱ সংস্কৰণ
36 | ৰঙীণ সংস্কৰণ
37 | Mi ইন-ইয়েৰ
38 | Mi কেপচুল
39 | Mi ইন-ইয়েৰ প্ৰ\'
40 | Mi আৰাম
41 | Mi কোলাহল বাতিলকৰণ টাইপ-C
42 | Mi কোলাহল বাতিলকৰণ 3.5মি.মি.
43 | Mi হাফ ইন ইয়েৰ
44 | Mi ইন-ইয়েৰ 2
45 | Mi ইয়েৰফোন বেছিক
46 | Mi ইয়েৰফোন
47 |
48 | ডিফ\'ল্ট
49 | ৰক
50 | জাজ
51 | পপ
52 | ক্লাছিকেল
53 | হিপ হপ
54 | ব্লুজ
55 | ইলেকট্ৰনিক
56 | কাণ্ট্ৰি
57 | নৃত্য
58 | মেটেল
59 |
60 |
--------------------------------------------------------------------------------
/parts/res/values-ms-rMY/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
18 |
19 |
20 | Penambah Bunyi Mi
21 | Optimumkan kualiti audio
22 | Pilih jenis fon kepala
23 | Memilih pratetap
24 |
25 | Lalai
26 | Bud telinga Mi
27 | Mi In-Ear (2013)
28 | Mi piston-1
29 | Umum
30 | General In-Ear
31 | Edisi asas
32 | Piston-2 Mi
33 | Edisi biasa
34 | Mi Headphone
35 | Edisi Remaja
36 | Edisi Warna
37 | Mi di telinga
38 | Mi Capsule
39 | Mi In-Ear Pro
40 | Mi Comfort
41 | Pembatalan Bunyi Bising Mi Type-C
42 | Pembatalan Bunyi Bising Mi 3.5mm
43 | Mi Half In-Ear
44 | Mi In-Ear 2
45 | Mi Earphones Basic
46 | Mi Earphones
47 |
48 | Lalai
49 | Rock
50 | Jazz
51 | Pop
52 | Klasik
53 | Hip Hop
54 | Blues
55 | Elektronik
56 | Negara
57 | Tarian
58 | Metal
59 |
60 |
--------------------------------------------------------------------------------