├── Android.bp
├── sepolicy
├── vendor
│ ├── atfwd.te
│ ├── logd.te
│ ├── sensors.te
│ ├── healthd.te
│ ├── per_mgr.te
│ ├── esepmdaemon.te
│ ├── hal_keymaster_qti.te
│ ├── hwservice.te
│ ├── persist_file.te
│ ├── rfs_file.te
│ ├── vendor_ssr_setup.te
│ ├── hal_wifi_default.te
│ ├── qtelephony.te
│ ├── webview_zygote.te
│ ├── firmware_file.te
│ ├── hal_memtrack_default.te
│ ├── hal_esepowermanager_qti.te
│ ├── hal_gatekeeper_default.te
│ ├── hal_keymaster_default.te
│ ├── hal_light_default.te
│ ├── hal_power_default.te
│ ├── hal_health_default.te
│ ├── wcnss_filter.te
│ ├── attributes
│ ├── hal_sensorscalibrate_qti_default.te
│ ├── location.te
│ ├── zygote.te
│ ├── qti.te
│ ├── hal_drm_default.te
│ ├── vendor_per_mgr.te
│ ├── fsck.te
│ ├── mediadrmserver.te
│ ├── energyawareness.te
│ ├── netd.te
│ ├── nfc.te
│ ├── cnd.te
│ ├── mediacodec.te
│ ├── vold.te
│ ├── radio.te
│ ├── kernel.te
│ ├── service.te
│ ├── logpersist.te
│ ├── seapp_contexts
│ ├── hal_dms.te
│ ├── ims.te
│ ├── mediaextractor.te
│ ├── time_daemon.te
│ ├── toolbox.te
│ ├── rfs_access.te
│ ├── installd.te
│ ├── netmgrd.te
│ ├── tee.te
│ ├── hal_audio_default.te
│ ├── ueventd.te
│ ├── surfaceflinger.te
│ ├── hal_nfc_default.te
│ ├── hwservicemanager.te
│ ├── bootanim.te
│ ├── device.te
│ ├── qseeproxy.te
│ ├── qti_init_shell.te
│ ├── service_contexts
│ ├── priv_app.te
│ ├── property.te
│ ├── platform_app.te
│ ├── untrusted_app_25.te
│ ├── property_contexts
│ ├── hwservice_contexts
│ ├── init_wifi.te
│ ├── wcnss_service.te
│ ├── mmi_boot.te
│ ├── hal_dms_default.te
│ ├── rmt_storage.te
│ ├── thermal-engine.te
│ ├── fingerprintd.te
│ ├── hal_sensors_default.te
│ ├── isdbt_app.te
│ ├── untrusted_app.te
│ ├── hal_gnss_qti.te
│ ├── hal_camera_default.te
│ ├── system_app.te
│ ├── system_server.te
│ ├── rild.te
│ ├── hal_fingerprint_default.te
│ └── vendor_init.te
└── private
│ └── vendor_init.te
├── configs
├── sensors
│ └── hals.conf
└── gapps-config.txt
├── pocketmode
├── proguard.flags
├── Android.mk
└── src
│ └── org
│ └── lineageos
│ └── pocketmode
│ └── BootCompletedReceiver.java
├── wifi
├── p2p_supplicant_overlay.conf
├── hostapd.deny
├── hostapd.accept
├── wpa_supplicant_overlay.conf
└── wpa_supplicant.conf
├── MotoActions
├── res
│ ├── drawable
│ │ ├── dirac_png.png
│ │ ├── ambient_png.png
│ │ ├── gesture_png.png
│ │ ├── ic_gesture.png
│ │ ├── fpgesture_png.png
│ │ ├── screenoff_png.png
│ │ ├── calibration_png.png
│ │ ├── motoactions_png.png
│ │ ├── ic_settings_doze.xml
│ │ ├── ic_settings_dirac.xml
│ │ ├── ic_preset.xml
│ │ ├── ic_restore.xml
│ │ ├── ic_headphone.xml
│ │ ├── ic_qs_log.xml
│ │ ├── ic_pickup.xml
│ │ ├── ic_hand.xml
│ │ ├── switchbar_background.xml
│ │ ├── ic_settings_kcal.xml
│ │ ├── ic_settings_gesturess.xml
│ │ ├── ic_derp_ambient_foreground.xml
│ │ ├── ic_derp_dirac_foreground.xml
│ │ ├── ic_vibrate.xml
│ │ ├── ic_swipe_left.xml
│ │ ├── ic_swipe_right.xml
│ │ ├── ic_settings_gestures_dashboard.xml
│ │ ├── ic_tap_hold.xml
│ │ ├── ic_derp_kcal_background.xml
│ │ ├── ic_derp_dirac_background.xml
│ │ └── ic_derp_ambient_background.xml
│ ├── values
│ │ ├── attrs.xml
│ │ └── dimens.xml
│ ├── menu
│ │ └── kcal_menu.xml
│ └── xml
│ │ ├── doze_panel_indexable.xml
│ │ ├── screen_off_gesture_panel_indexable.xml
│ │ ├── fp_gesture_panel_indexable.xml
│ │ └── doze_panel.xml
├── Android.mk
└── src
│ └── com
│ └── moto
│ └── actions
│ ├── SensorAction.java
│ ├── actions
│ └── UpdatedStateNotifier.java
│ ├── doze
│ └── ScreenStateNotifier.java
│ ├── util
│ └── NonScrollListView.java
│ ├── dirac
│ ├── DiracTileService.java
│ └── DiracActivity.java
│ ├── ActionsPreferenceActivity.java
│ ├── GestureSettingsActivity.java
│ ├── DozeSettingsActivity.java
│ └── FPGestureSettingsActivity.java
├── power
├── android.hardware.power@1.2-service.rc
└── Android.mk
├── usb
├── android.hardware.usb@1.0-service.sanders.rc
└── Android.bp
├── gps
├── android
│ ├── android.hardware.gnss@1.1-service-qti.rc
│ └── service.cpp
├── Android.mk
├── Makefile.am
├── core
│ └── loc-core.pc.in
├── gnsspps
│ ├── gnsspps.pc.in
│ ├── Android.mk
│ └── Makefile.am
├── utils
│ └── gps-utils.pc.in
├── location
│ ├── location-api.pc.in
│ ├── Android.mk
│ └── Makefile.am
├── loc-hal.pc.in
├── build
│ └── target_specific_features.mk
├── pla
│ └── Android.mk
├── gnss
│ ├── Makefile.am
│ └── Android.mk
└── etc
│ └── apdr.conf
├── seccomp_policy
├── mediaextractor.policy
└── mediacodec.policy
├── light
├── android.hardware.light@2.0-service.sanders.rc
└── Android.bp
├── thermal-engine
└── Android.mk
├── rootdir
└── etc
│ ├── init.qcom.ril.sh
│ ├── init.safailnet.rc
│ ├── wlan_carrier_bin.sh
│ ├── init.mmi.laser.sh
│ └── init.mmi.boot.sh
├── overlay
├── frameworks
│ └── base
│ │ ├── packages
│ │ ├── SystemUI
│ │ │ ├── res-keyguard
│ │ │ │ ├── values
│ │ │ │ │ ├── strings.xml
│ │ │ │ │ └── config.xml
│ │ │ │ ├── values-en-rAU
│ │ │ │ │ └── strings.xml
│ │ │ │ ├── values-en-rCA
│ │ │ │ │ └── strings.xml
│ │ │ │ ├── values-en-rGB
│ │ │ │ │ └── strings.xml
│ │ │ │ └── values-en-rIN
│ │ │ │ │ └── strings.xml
│ │ │ └── res
│ │ │ │ ├── values
│ │ │ │ └── strings.xml
│ │ │ │ ├── values-en-rAU
│ │ │ │ └── strings.xml
│ │ │ │ ├── values-en-rCA
│ │ │ │ └── strings.xml
│ │ │ │ ├── values-en-rGB
│ │ │ │ └── strings.xml
│ │ │ │ ├── values-en-rIN
│ │ │ │ └── strings.xml
│ │ │ │ └── values-sw372dp
│ │ │ │ └── dimens.xml
│ │ ├── SettingsProvider
│ │ │ └── res
│ │ │ │ └── values
│ │ │ │ └── defaults.xml
│ │ └── SettingsLib
│ │ │ └── res
│ │ │ └── values
│ │ │ └── arrays.xml
│ │ └── core
│ │ └── res
│ │ └── res
│ │ ├── values-mcc404-mnc01
│ │ └── config.xml
│ │ ├── values-mcc302-mnc221
│ │ └── config.xml
│ │ ├── values-mcc302-mnc640
│ │ └── config.xml
│ │ ├── values
│ │ ├── dimens.xml
│ │ └── strings.xml
│ │ ├── values-mcc505-mnc02
│ │ └── config.xml
│ │ ├── values-mcc505-mnc03
│ │ └── config.xml
│ │ ├── values-mcc505-mnc07
│ │ └── config.xml
│ │ ├── values-mcc505-mnc90
│ │ └── config.xml
│ │ ├── values-mcc262-mnc01
│ │ ├── strings.xml
│ │ └── config.xml
│ │ ├── values-mcc405-mnc840
│ │ ├── strings.xml
│ │ └── config.xml
│ │ ├── values-mcc405-mnc855
│ │ ├── strings.xml
│ │ └── config.xml
│ │ ├── values-mcc405-mnc856
│ │ ├── strings.xml
│ │ └── config.xml
│ │ ├── values-mcc405-mnc857
│ │ ├── strings.xml
│ │ └── config.xml
│ │ ├── values-mcc405-mnc858
│ │ ├── strings.xml
│ │ └── config.xml
│ │ ├── values-mcc405-mnc859
│ │ ├── strings.xml
│ │ └── config.xml
│ │ ├── values-mcc405-mnc860
│ │ ├── strings.xml
│ │ └── config.xml
│ │ ├── values-mcc405-mnc861
│ │ ├── strings.xml
│ │ └── config.xml
│ │ ├── values-mcc405-mnc862
│ │ ├── strings.xml
│ │ └── config.xml
│ │ ├── values-mcc405-mnc863
│ │ ├── strings.xml
│ │ └── config.xml
│ │ ├── values-mcc405-mnc864
│ │ ├── strings.xml
│ │ └── config.xml
│ │ ├── values-mcc405-mnc865
│ │ ├── strings.xml
│ │ └── config.xml
│ │ ├── values-mcc405-mnc866
│ │ ├── strings.xml
│ │ └── config.xml
│ │ ├── values-mcc405-mnc867
│ │ ├── strings.xml
│ │ └── config.xml
│ │ ├── values-mcc405-mnc868
│ │ ├── strings.xml
│ │ └── config.xml
│ │ ├── values-mcc405-mnc869
│ │ ├── strings.xml
│ │ └── config.xml
│ │ ├── values-mcc405-mnc870
│ │ ├── strings.xml
│ │ └── config.xml
│ │ ├── values-mcc405-mnc871
│ │ ├── strings.xml
│ │ └── config.xml
│ │ ├── values-mcc405-mnc872
│ │ ├── strings.xml
│ │ └── config.xml
│ │ ├── values-mcc405-mnc873
│ │ ├── strings.xml
│ │ └── config.xml
│ │ ├── values-mcc405-mnc874
│ │ ├── strings.xml
│ │ └── config.xml
│ │ ├── values-mcc234-mnc15
│ │ └── config.xml
│ │ ├── values-mcc262-mnc07
│ │ └── config.xml
│ │ ├── values-mcc262-mnc08
│ │ └── config.xml
│ │ ├── values-mcc405-mnc854
│ │ └── config.xml
│ │ ├── values-mcc505-mnc01
│ │ └── config.xml
│ │ ├── values-mcc505-mnc11
│ │ └── config.xml
│ │ ├── values-mcc505-mnc71
│ │ └── config.xml
│ │ └── values-mcc505-mnc72
│ │ └── config.xml
└── packages
│ └── apps
│ ├── Settings
│ └── res
│ │ └── values
│ │ ├── bools.xml
│ │ ├── dimens.xml
│ │ └── config.xml
│ ├── Dialer
│ └── java
│ │ └── com
│ │ └── android
│ │ └── dialer
│ │ └── callrecord
│ │ └── res
│ │ └── values
│ │ └── config.xml
│ ├── DocumentsUI
│ └── res
│ │ └── values
│ │ └── config.xml
│ ├── Nfc
│ └── res
│ │ └── values
│ │ └── config.xml
│ ├── CellBroadcastReceiver
│ └── res
│ │ └── values
│ │ └── config.xml
│ └── Snap
│ └── res
│ └── values
│ └── config.xml
├── libshims
├── gpu_mapper_shim.cpp
└── camera_msm8953_shim.cpp
├── idc
└── uinput-fpc.idc
├── keylayout
└── uinput-fpc.kl
├── AndroidProducts.mk
├── README.md
├── include
└── surround_rec_interface.h
├── changelog.sh
├── thermal
└── Android.mk
├── audio
└── audio_ext_spkr.conf
├── bluetooth
└── bdroid_buildcfg.h
├── releasetools
└── releasetools.py
└── setup-makefiles.sh
/Android.bp:
--------------------------------------------------------------------------------
1 | subdirs = [
2 | "usb",
3 | ]
4 |
--------------------------------------------------------------------------------
/sepolicy/vendor/atfwd.te:
--------------------------------------------------------------------------------
1 | allow atfwd sysfs:file read;
2 |
--------------------------------------------------------------------------------
/configs/sensors/hals.conf:
--------------------------------------------------------------------------------
1 | sensors.ssc.so
2 | sensors.rp.so
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/logd.te:
--------------------------------------------------------------------------------
1 | allow logd unlabeled:dir search;
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/sensors.te:
--------------------------------------------------------------------------------
1 | allow sensors sysfs:file { read };
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/healthd.te:
--------------------------------------------------------------------------------
1 | allow healthd sysfs:file { open getattr read };
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/per_mgr.te:
--------------------------------------------------------------------------------
1 | allow vendor_per_mgr self:capability net_raw;
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/esepmdaemon.te:
--------------------------------------------------------------------------------
1 | # binder_call(esepmdaemon, servicemanager);
2 |
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_keymaster_qti.te:
--------------------------------------------------------------------------------
1 | allow hal_keymaster_qti system_file:file read;
--------------------------------------------------------------------------------
/sepolicy/vendor/hwservice.te:
--------------------------------------------------------------------------------
1 | type hal_dms_hwservice, hwservice_manager_type;
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/persist_file.te:
--------------------------------------------------------------------------------
1 | allow persist_file self:filesystem associate;
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/rfs_file.te:
--------------------------------------------------------------------------------
1 | allow rfs_file persist_file:filesystem associate;
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vendor_ssr_setup.te:
--------------------------------------------------------------------------------
1 | allow vendor_ssr_setup sysfs:file read;
2 |
--------------------------------------------------------------------------------
/configs/gapps-config.txt:
--------------------------------------------------------------------------------
1 | PackageInstallerGoogle # Exclude Google Package Installer
2 |
--------------------------------------------------------------------------------
/pocketmode/proguard.flags:
--------------------------------------------------------------------------------
1 | -keep class org.lineageos.pocketmode.* {
2 | *;
3 | }
4 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_wifi_default.te:
--------------------------------------------------------------------------------
1 | allow hal_wifi_default unlabeled:dir search;
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/qtelephony.te:
--------------------------------------------------------------------------------
1 | allow qtelephony radio_service:service_manager find;
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/webview_zygote.te:
--------------------------------------------------------------------------------
1 | allow webview_zygote theme_data_file:dir search;
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/firmware_file.te:
--------------------------------------------------------------------------------
1 | allow firmware_file rootfs:filesystem associate;
2 |
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_memtrack_default.te:
--------------------------------------------------------------------------------
1 | allow hal_memtrack_default sysfs_kgsl:lnk_file read;
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_esepowermanager_qti.te:
--------------------------------------------------------------------------------
1 | allow hal_esepowermanager_qti unlabeled:dir search;
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_gatekeeper_default.te:
--------------------------------------------------------------------------------
1 | get_prop(hal_gatekeeper_default, tee_listener_prop)
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_keymaster_default.te:
--------------------------------------------------------------------------------
1 | get_prop(hal_keymaster_default, tee_listener_prop)
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_light_default.te:
--------------------------------------------------------------------------------
1 | allow hal_light_default sysfs_leds:file rw_file_perms;
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_power_default.te:
--------------------------------------------------------------------------------
1 | allow hal_power_default sysfs:file rw_file_perms;
2 |
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_health_default.te:
--------------------------------------------------------------------------------
1 | allow hal_health_default sysfs:file { open getattr read };
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/wcnss_filter.te:
--------------------------------------------------------------------------------
1 | type wcnss_filter, domain;
2 | get_prop(wcnss_filter, diag_prop);
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/attributes:
--------------------------------------------------------------------------------
1 | attribute hal_dms;
2 | attribute hal_dms_client;
3 | attribute hal_dms_server;
4 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_sensorscalibrate_qti_default.te:
--------------------------------------------------------------------------------
1 | allow hal_sensorscalibrate_qti_default sysfs:file read;
2 |
--------------------------------------------------------------------------------
/wifi/p2p_supplicant_overlay.conf:
--------------------------------------------------------------------------------
1 | disable_scan_offload=1
2 | p2p_no_group_iface=1
3 | persistent_reconnect=1
4 |
--------------------------------------------------------------------------------
/sepolicy/private/vendor_init.te:
--------------------------------------------------------------------------------
1 | allow vendor_init dpmd_data_file:dir { add_name create search setattr write };
2 |
--------------------------------------------------------------------------------
/wifi/hostapd.deny:
--------------------------------------------------------------------------------
1 | # List of MAC addresses that are not allowed to authenticate (IEEE 802.11)
2 | # with the AP.
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/location.te:
--------------------------------------------------------------------------------
1 | allow location wcnss_prop:file { getattr open read };
2 | allow location sysfs:file read;
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/zygote.te:
--------------------------------------------------------------------------------
1 | allow zygote self:capability sys_nice;
2 | allow zygote proc_cmdline:file { getattr open read };
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/qti.te:
--------------------------------------------------------------------------------
1 | get_prop(qti, diag_prop)
2 | allow qti diag_device:chr_file { read write };
3 | allow qti sysfs:file read;
4 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_drm_default.te:
--------------------------------------------------------------------------------
1 | allow hal_drm_default firmware_file:lnk_file read;
2 | allow hal_drm_default debug_prop:file read;
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vendor_per_mgr.te:
--------------------------------------------------------------------------------
1 | allow vendor_per_mgr unlabeled:dir search;
2 | allow vendor_per_mgr unlabeled:file { open read };
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/fsck.te:
--------------------------------------------------------------------------------
1 | # allow fsck block_device:blk_file { read write };
2 | allow fsck fsck:capability { dac_override dac_read_search };
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/mediadrmserver.te:
--------------------------------------------------------------------------------
1 | allow mediadrmserver firmware_file:dir search;
2 | allow mediadrmserver firmware_file:file r_file_perms;
3 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/dirac_png.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sanders/ten/MotoActions/res/drawable/dirac_png.png
--------------------------------------------------------------------------------
/sepolicy/vendor/energyawareness.te:
--------------------------------------------------------------------------------
1 | allow energyawareness sysfs_uio:file r_file_perms;
2 | allow energyawareness sysfs_rmt_storage:file r_file_perms;
3 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ambient_png.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sanders/ten/MotoActions/res/drawable/ambient_png.png
--------------------------------------------------------------------------------
/MotoActions/res/drawable/gesture_png.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sanders/ten/MotoActions/res/drawable/gesture_png.png
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_gesture.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sanders/ten/MotoActions/res/drawable/ic_gesture.png
--------------------------------------------------------------------------------
/MotoActions/res/drawable/fpgesture_png.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sanders/ten/MotoActions/res/drawable/fpgesture_png.png
--------------------------------------------------------------------------------
/MotoActions/res/drawable/screenoff_png.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sanders/ten/MotoActions/res/drawable/screenoff_png.png
--------------------------------------------------------------------------------
/sepolicy/vendor/netd.te:
--------------------------------------------------------------------------------
1 | #============= netd ==============
2 | allow netd device:file write;
3 | allow netd untrusted_app_25:unix_stream_socket { read write };
4 |
--------------------------------------------------------------------------------
/sepolicy/vendor/nfc.te:
--------------------------------------------------------------------------------
1 | allow nfc nfc_vendor_data_file:dir { add_name read search write };
2 | allow nfc nfc_vendor_data_file:file { create open read write };
3 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/calibration_png.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sanders/ten/MotoActions/res/drawable/calibration_png.png
--------------------------------------------------------------------------------
/MotoActions/res/drawable/motoactions_png.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sanders/ten/MotoActions/res/drawable/motoactions_png.png
--------------------------------------------------------------------------------
/sepolicy/vendor/cnd.te:
--------------------------------------------------------------------------------
1 | allow cnd diag_device:chr_file { read write };
2 | allow cnd self:capability { chown dac_override fsetid net_raw };
3 | allow cnd sysfs:file read;
4 |
--------------------------------------------------------------------------------
/sepolicy/vendor/mediacodec.te:
--------------------------------------------------------------------------------
1 | allow mediacodec firmware_file:file { open read };
2 | allow mediacodec unlabeled:dir search;
3 | allow mediacodec unlabeled:file { open read };
4 |
--------------------------------------------------------------------------------
/power/android.hardware.power@1.2-service.rc:
--------------------------------------------------------------------------------
1 | service vendor.power-hal-1-2 /vendor/bin/hw/android.hardware.power@1.2-service
2 | class hal
3 | user system
4 | group system
5 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vold.te:
--------------------------------------------------------------------------------
1 | allow vold persist_file:dir { ioctl open read };
2 | allow vold metadata_block_device:blk_file { rw_file_perms };
3 |
4 | get_prop(vold, tee_listener_prop)
5 |
--------------------------------------------------------------------------------
/usb/android.hardware.usb@1.0-service.sanders.rc:
--------------------------------------------------------------------------------
1 | service usb-hal-1-0 /vendor/bin/hw/android.hardware.usb@1.0-service.sanders
2 | class hal
3 | user system
4 | group system
5 |
--------------------------------------------------------------------------------
/sepolicy/vendor/radio.te:
--------------------------------------------------------------------------------
1 | allow radio system_app_data_file:dir getattr;
2 | allow radio qmuxd_socket:sock_file write;
3 |
4 | allow radio vendor_file:file { execute getattr open read };
5 |
--------------------------------------------------------------------------------
/gps/android/android.hardware.gnss@1.1-service-qti.rc:
--------------------------------------------------------------------------------
1 | service gnss_service /vendor/bin/hw/android.hardware.gnss@1.0-service-qti
2 | class hal
3 | user gps
4 | group system gps radio
5 |
--------------------------------------------------------------------------------
/sepolicy/vendor/kernel.te:
--------------------------------------------------------------------------------
1 | allow kernel hw_block_device:blk_file rw_file_perms;
2 | allow kernel vfat:file open;
3 | allow kernel self:socket create;
4 | allow kernel unlabeled:file { open read };
5 |
--------------------------------------------------------------------------------
/seccomp_policy/mediaextractor.policy:
--------------------------------------------------------------------------------
1 | # device specific syscalls.
2 | # extension of services/mediaextractor/minijail/seccomp_policy/mediaextractor-seccomp-arm.policy
3 | readlinkat: 1
4 | pread64: 1
5 | mremap: 1
6 |
--------------------------------------------------------------------------------
/sepolicy/vendor/service.te:
--------------------------------------------------------------------------------
1 | type qseeproxy_service_old, service_manager_type;
2 | type per_mgr_service_old, service_manager_type;
3 | type camera_bgproc_service, service_manager_type;
4 |
--------------------------------------------------------------------------------
/light/android.hardware.light@2.0-service.sanders.rc:
--------------------------------------------------------------------------------
1 | service vendor.light-hal-2-0 /vendor/bin/hw/android.hardware.light@2.0-service.sanders
2 | class hal
3 | user system
4 | group system
5 | shutdown critical
6 |
--------------------------------------------------------------------------------
/gps/Android.mk:
--------------------------------------------------------------------------------
1 | ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),)
2 | LOCAL_PATH := $(call my-dir)
3 | include $(LOCAL_PATH)/build/target_specific_features.mk
4 |
5 | include $(call all-makefiles-under,$(LOCAL_PATH))
6 | endif
7 |
--------------------------------------------------------------------------------
/thermal-engine/Android.mk:
--------------------------------------------------------------------------------
1 | LOCAL_PATH:= $(call my-dir)
2 |
3 | include $(CLEAR_VARS)
4 |
5 | LOCAL_MODULE:=thermal-engine
6 |
7 | LOCAL_EXPORT_C_INCLUDE_DIRS:=$(LOCAL_PATH)
8 |
9 | include $(BUILD_HEADER_LIBRARY)
10 |
--------------------------------------------------------------------------------
/sepolicy/vendor/logpersist.te:
--------------------------------------------------------------------------------
1 | allow logpersist self:capability { dac_override dac_read_search };
2 | allow logpersist cache_file:dir { add_name open read search write };
3 | allow logpersist cache_file:file { append create getattr open };
4 |
--------------------------------------------------------------------------------
/sepolicy/vendor/seapp_contexts:
--------------------------------------------------------------------------------
1 | user=_app seinfo=platform name=com.motorola.dtv domain=isdbt_app type=app_data_file levelFrom=user
2 | user=_app seinfo=platform name=com.motorola.dtvservice domain=isdbt_app type=app_data_file levelFrom=user
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_dms.te:
--------------------------------------------------------------------------------
1 | binder_call(hal_dms_client, hal_dms_server)
2 | binder_call(hal_dms_server, hal_dms_client)
3 |
4 | add_hwservice(hal_dms_server, hal_dms_hwservice)
5 | allow hal_dms_client hal_dms_hwservice:hwservice_manager find;
6 |
--------------------------------------------------------------------------------
/gps/Makefile.am:
--------------------------------------------------------------------------------
1 | # Makefile.am - Automake script for gps loc_api
2 | #
3 |
4 | ACLOCAL_AMFLAGS = -I m4
5 |
6 | SUBDIRS = gnss
7 |
8 | pkgconfigdir = $(libdir)/pkgconfig
9 | pkgconfig_DATA = loc-hal.pc
10 | EXTRA_DIST = $(pkgconfig_DATA)
11 |
--------------------------------------------------------------------------------
/rootdir/etc/init.qcom.ril.sh:
--------------------------------------------------------------------------------
1 | #!/system/bin/sh
2 | export PATH=/system/xbin:$PATH
3 |
4 | multisim=`getprop persist.radio.multisim.config`
5 |
6 | if [ "$multisim" = "dsds" ] || [ "$multisim" = "dsda" ]; then
7 | start vendor.ril-daemon2
8 | fi
9 |
--------------------------------------------------------------------------------
/sepolicy/vendor/ims.te:
--------------------------------------------------------------------------------
1 | allow ims debug_prop:property_service set;
2 | get_prop(ims, debug_prop);
3 | set_prop(ims, debug_prop)
4 | allow ims self:capability net_raw;
5 | allow ims diag_device:chr_file { read write };
6 | allow ims sysfs:file read;
7 |
--------------------------------------------------------------------------------
/sepolicy/vendor/mediaextractor.te:
--------------------------------------------------------------------------------
1 | allow mediaextractor fuse:file r_file_perms;
2 | allow mediaextractor system_server:fifo_file { write append };
3 | allow mediaextractor sdcardfs:file r_file_perms;
4 | allow mediaextractor vfat:file r_file_perms;
5 |
--------------------------------------------------------------------------------
/wifi/hostapd.accept:
--------------------------------------------------------------------------------
1 | # List of MAC addresses that are allowed to authenticate (IEEE 802.11)
2 | # with the AP. Optional VLAN ID can be assigned for clients based on the
3 | # MAC address if dynamic VLANs (hostapd.conf dynamic_vlan option) are used.
4 |
--------------------------------------------------------------------------------
/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 | interworking=1
7 | hs20=1
8 | auto_interworking=0
9 | bss_no_flush_when_down=1
10 |
--------------------------------------------------------------------------------
/wifi/wpa_supplicant.conf:
--------------------------------------------------------------------------------
1 | update_config=1
2 | ctrl_interface=wlan0
3 | eapol_version=1
4 | ap_scan=1
5 | fast_reauth=1
6 | p2p_add_cli_chan=1
7 | p2p_no_group_iface=1
8 | config_methods=virtual_display virtual_push_button
9 | disable_scan_offload=1
10 |
--------------------------------------------------------------------------------
/sepolicy/vendor/time_daemon.te:
--------------------------------------------------------------------------------
1 | get_prop(time_daemon, diag_prop);
2 |
3 | allow time_daemon persist_file:file { open read write };
4 |
5 | allow time_daemon sysfs:file { open read };
6 |
7 | allow time_daemon time_daemon:capability { dac_override dac_read_search };
8 |
--------------------------------------------------------------------------------
/gps/core/loc-core.pc.in:
--------------------------------------------------------------------------------
1 | prefix=@prefix@
2 | exec_prefix=@exec_prefix@
3 | libdir=@libdir@
4 | includedir=@includedir@
5 |
6 | Name: loc-core
7 | Description: QTI GPS Loc Core
8 | Version: @VERSION@
9 | Libs: -L${libdir} -lloc_core
10 | Cflags: -I${includedir}/loc-core
11 |
--------------------------------------------------------------------------------
/gps/gnsspps/gnsspps.pc.in:
--------------------------------------------------------------------------------
1 | prefix=@prefix@
2 | exec_prefix=@exec_prefix@
3 | libdir=@libdir@
4 | includedir=@includedir@
5 |
6 | Name: gnsspps
7 | Description: QTI GPS gnsspps
8 | Version: @VERSION
9 | Libs: -L${libdir} -lgnsspps
10 | Cflags: -I${includedir}/gnsspps
11 |
--------------------------------------------------------------------------------
/gps/utils/gps-utils.pc.in:
--------------------------------------------------------------------------------
1 | prefix=@prefix@
2 | exec_prefix=@exec_prefix@
3 | libdir=@libdir@
4 | includedir=@includedir@
5 |
6 | Name: gps-utils
7 | Description: QTI GPS Location utils
8 | Version: @VERSION
9 | Libs: -L${libdir} -lgps_utils
10 | Cflags: -I${includedir}/gps-utils
11 |
--------------------------------------------------------------------------------
/gps/location/location-api.pc.in:
--------------------------------------------------------------------------------
1 | prefix=@prefix@
2 | exec_prefix=@exec_prefix@
3 | libdir=@libdir@
4 | includedir=@includedir@
5 |
6 | Name: location-api
7 | Description: Location API
8 | Version: @VERSION
9 | Libs: -L${libdir} -llocation_api
10 | Cflags: -I${includedir}/location-api
11 |
--------------------------------------------------------------------------------
/sepolicy/vendor/toolbox.te:
--------------------------------------------------------------------------------
1 | set_prop(toolbox, diag_prop);
2 | set_prop(toolbox, hw_rev_prop);
3 | set_prop(toolbox, touch_prop);
4 | allow toolbox init:fifo_file { write getattr read ioctl };
5 |
6 | allow toolbox radio_data_file:file rw_file_perms;
7 | allow toolbox firmware_file:file getattr;
--------------------------------------------------------------------------------
/MotoActions/res/values/attrs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/rootdir/etc/init.safailnet.rc:
--------------------------------------------------------------------------------
1 | # Safetynet bypass
2 | # Inspired in magisk source code, by topjohnwu
3 | # Ported to ramdisk by jhenrique09
4 |
5 | on property:sys.boot_completed=1
6 | # selinux nodes, hide permissive state
7 | chmod 0640 /sys/fs/selinux/enforce
8 | chmod 0440 /sys/fs/selinux/policy
9 |
--------------------------------------------------------------------------------
/sepolicy/vendor/rfs_access.te:
--------------------------------------------------------------------------------
1 | allow rfs_access persist_file:file { getattr open read rename setattr unlink write };
2 | allow rfs_access vendor_tombstone_data_file:dir search;
3 | allow rfs_access self:capability { dac_override dac_read_search net_raw };
4 | allow rfs_access unlabeled:file { getattr setattr };
5 |
--------------------------------------------------------------------------------
/gps/loc-hal.pc.in:
--------------------------------------------------------------------------------
1 | prefix=@prefix@
2 | exec_prefix=@exec_prefix@
3 | libdir=@libdir@
4 | includedir=@includedir@
5 |
6 | Name: loc-hal
7 | Description: QTI GPS Loc HAL
8 | Version: @VERSION
9 | Libs: -L${libdir} -lgnss
10 | Cflags: -I${includedir} -I${includedir}/utils -I${includedir}/core -I${includedir}/loc-hal
11 |
--------------------------------------------------------------------------------
/sepolicy/vendor/installd.te:
--------------------------------------------------------------------------------
1 | allow installd firmware_file:filesystem quotaget;
2 | allow installd fsg_file:filesystem quotaget;
3 | allow installd persist_file:filesystem quotaget;
4 | allow installd adb_data_file:dir search;
5 | allow installd adb_data_file:file { getattr open read };
6 | allow installd device:file write;
7 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SystemUI/res-keyguard/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | %s • Turbo Charging
6 |
7 |
--------------------------------------------------------------------------------
/sepolicy/vendor/netmgrd.te:
--------------------------------------------------------------------------------
1 | allow netmgrd toolbox_exec:file { getattr read open };
2 | allow netmgrd init:unix_stream_socket connectto;
3 | allow netmgrd property_socket:sock_file write;
4 | allow netmgrd system_file:file { execute lock };
5 | allow netmgrd default_prop:property_service set;
6 | allow netmgrd sysfs:file read;
7 |
--------------------------------------------------------------------------------
/sepolicy/vendor/tee.te:
--------------------------------------------------------------------------------
1 | allow tee persist_file:file r_file_perms;
2 |
3 | set_prop(tee, tee_listener_prop)
4 |
5 | allow tee persist_file:dir r_dir_perms;
6 | allow tee fingerprintd_data_file:dir create_dir_perms;
7 | allow tee fingerprintd_data_file:file create_file_perms;
8 | allow tee system_data_file:dir { r_dir_perms read };
9 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SystemUI/res-keyguard/values-en-rAU/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | %s • Turbo Charging
6 |
7 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SystemUI/res-keyguard/values-en-rCA/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | %s • Turbo Charging
6 |
7 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SystemUI/res-keyguard/values-en-rGB/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | %s • Turbo Charging
6 |
7 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SystemUI/res-keyguard/values-en-rIN/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | %s • Turbo Charging
6 |
7 |
--------------------------------------------------------------------------------
/seccomp_policy/mediacodec.policy:
--------------------------------------------------------------------------------
1 | # device specific syscalls
2 | # extension of services/mediacodec/minijail/seccomp_policy/mediacodec-seccomp-arm.policy
3 | pselect6: 1
4 | eventfd2: 1
5 | sendto: 1
6 | recvfrom: 1
7 | _llseek: 1
8 | sysinfo: 1
9 | getcwd: 1
10 | getdents64: 1
11 | inotify_init1: 1
12 | inotify_add_watch: 1
13 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_audio_default.te:
--------------------------------------------------------------------------------
1 | allow hal_audio_default sysfs:dir {open read };
2 |
3 | # Dolby
4 | allow hal_audio_default hal_dms_default:binder { transfer call };
5 | allow hal_audio_default hal_dms_hwservice:hwservice_manager find;
6 |
7 | # Dirac
8 | get_prop(hal_audio_default, dirac_prop)
9 | set_prop(hal_audio_default, dirac_prop)
10 |
11 |
--------------------------------------------------------------------------------
/sepolicy/vendor/ueventd.te:
--------------------------------------------------------------------------------
1 | allow ueventd sysfs_mmi_fp:file w_file_perms;
2 |
3 | allow ueventd synaptics_rmi_device:chr_file { rw_file_perms relabelfrom relabelto};
4 | allow ueventd sysfs_fpc:file rw_file_perms;
5 | allow ueventd sysfs_sensors:file rw_file_perms;
6 | allow ueventd unlabeled:dir search;
7 | allow ueventd unlabeled:file { getattr open read };
8 |
--------------------------------------------------------------------------------
/sepolicy/vendor/surfaceflinger.te:
--------------------------------------------------------------------------------
1 | get_prop(surfaceflinger, diag_prop);
2 | allow surfaceflinger perfd_data_file:sock_file write;
3 | allow surfaceflinger diag_device:chr_file { read write };
4 | allow surfaceflinger hal_perf_hwservice:hwservice_manager find;
5 | allow surfaceflinger hal_perf_default:binder { call };
6 |
7 | binder_call(surfaceflinger, hwservicemanager)
8 |
9 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_nfc_default.te:
--------------------------------------------------------------------------------
1 | #allow hal_nfc_default default_android_hwservice:hwservice_manager { add find };
2 | add_hwservice(hal_nfc_default, hal_nfc_hwservice);
3 | add_hwservice(hal_nfc_default, hal_secure_element_hwservice);
4 | allow hal_nfc_default nfc_vendor_data_file:dir { add_name create search write };
5 | allow hal_nfc_default nfc_vendor_data_file:file create;
6 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hwservicemanager.te:
--------------------------------------------------------------------------------
1 | #allow hwservicemanager init:binder call;
2 | allow hwservicemanager init:dir search;
3 | allow hwservicemanager init:file { open read };
4 | allow hwservicemanager init:process getattr;
5 |
6 | binder_use(hwservicemanager);
7 |
8 | binder_call(hwservicemanager, hal_power_default);
9 | binder_call(hwservicemanager, hal_usb_default);
10 |
--------------------------------------------------------------------------------
/sepolicy/vendor/bootanim.te:
--------------------------------------------------------------------------------
1 | allow bootanim hwservicemanager:binder call;
2 |
3 | # TODO(b/62954877). On Android Wear, bootanim reads the time
4 | # during boot to display. It currently gets that time from a file
5 | # in /data/system. This should be moved. In the meantime, suppress
6 | # this denial on wahoo since this functionality is not used.
7 | dontaudit bootanim system_data_file:dir read;
8 |
--------------------------------------------------------------------------------
/MotoActions/res/menu/kcal_menu.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
--------------------------------------------------------------------------------
/sepolicy/vendor/device.te:
--------------------------------------------------------------------------------
1 | type adspd_device, dev_type;
2 | type amps_raw_device, dev_type;
3 | type compass_device, dev_type;
4 | type haptics_device, dev_type;
5 | type hob_device, dev_type;
6 | type hw_block_device, dev_type;
7 | type graphics_fb_device, dev_type;
8 | type synaptics_rmi_device, dev_type;
9 | type shwi_device, dev_type;
10 | type isdbt_device, dev_type;
11 | type utags_block_device, dev_type;
12 |
--------------------------------------------------------------------------------
/sepolicy/vendor/qseeproxy.te:
--------------------------------------------------------------------------------
1 | # binder_call(qseeproxy, servicemanager);
2 | allow qseeproxy self:process getattr;
3 | allow qseeproxy default_android_service:service_manager { add };
4 | # allow qseeproxy qseeproxy_service_old:service_manager { add find };
5 | add_service(qseeproxy, qseeproxy_service);
6 | allow qseeproxy binder_device:chr_file { ioctl open read write };
7 | allow qseeproxy servicemanager:binder { call transfer };
8 |
--------------------------------------------------------------------------------
/sepolicy/vendor/qti_init_shell.te:
--------------------------------------------------------------------------------
1 | set_prop(qti_init_shell, hw_rev_prop);
2 | allow qti_init_shell hci_attach_dev:chr_file { read write open ioctl };
3 |
4 | allow qti_init_shell kmsg_device:chr_file write;
5 | allow qti_init_shell sysfs_wcnsscore:file write;
6 |
7 | allow qti_init_shell kmsg_device:chr_file open;
8 | allow qti_init_shell self:capability dac_override;
9 | allow qti_init_shell vendor_file:system module_load;
10 |
--------------------------------------------------------------------------------
/libshims/gpu_mapper_shim.cpp:
--------------------------------------------------------------------------------
1 | #include
2 |
3 | namespace android {
4 | extern "C" void _ZN7android13GraphicBuffer4lockEjPPvPiS3_(uint32_t inUsage, void** vaddr, int32_t* outBytesPerPixel, int32_t* outBytesPerStride);
5 |
6 | extern "C" void _ZN7android13GraphicBuffer4lockEjPPv(uint32_t inUsage, void** vaddr) {
7 | _ZN7android13GraphicBuffer4lockEjPPvPiS3_(inUsage, vaddr, nullptr, nullptr);
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/sepolicy/vendor/service_contexts:
--------------------------------------------------------------------------------
1 | com.qualcomm.qti.qseeproxy u:object_r:qseeproxy_service:s0
2 | vendor.qcom.PeripheralManager u:object_r:per_mgr_service_old:s0
3 | media.camera_bgproc u:object_r:camera_bgproc_service:s0
4 | com.fingerprints.extension::IFingerprintSensorTest u:object_r:hal_fingerprint_hwservice:s0
5 |
--------------------------------------------------------------------------------
/libshims/camera_msm8953_shim.cpp:
--------------------------------------------------------------------------------
1 | #include
2 |
3 | namespace android {
4 | extern "C" void _ZN7android13GraphicBuffer4lockEjPPvPiS3_(uint32_t inUsage, void** vaddr, int32_t* outBytesPerPixel, int32_t* outBytesPerStride);
5 |
6 | extern "C" void _ZN7android13GraphicBuffer4lockEjPPv(uint32_t inUsage, void** vaddr) {
7 | _ZN7android13GraphicBuffer4lockEjPPvPiS3_(inUsage, vaddr, nullptr, nullptr);
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/sepolicy/vendor/priv_app.te:
--------------------------------------------------------------------------------
1 | allow priv_app adb_data_file:dir search;
2 | allow priv_app device:dir r_dir_perms;
3 | allow priv_app persist_file:filesystem getattr;
4 | allow priv_app proc_interrupts:file { open read getattr };
5 | allow priv_app proc_modules:file { open read getattr };
6 | get_prop(priv_app, adspd_prop);
7 | allow priv_app sysfs:dir open;
8 | allow priv_app mnt_vendor_file:dir search;
9 | allow priv_app sysfs:file { getattr open read };
10 |
--------------------------------------------------------------------------------
/sepolicy/vendor/property.te:
--------------------------------------------------------------------------------
1 | type adspd_prop, property_type;
2 | type motosh_prop, property_type;
3 | type hw_rev_prop, property_type;
4 | type touch_prop, property_type;
5 | type diag_prop, property_type;
6 | type thermal_prop, property_type;
7 | type qti_telephony_prop, property_type;
8 | type tee_listener_prop, property_type;
9 | type wcnss_prop, property_type;
10 | type dirac_prop, property_type;
11 |
12 | # Dolby
13 | type vendor_dolby_loglevel_prop, property_type;
14 |
--------------------------------------------------------------------------------
/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 = 0
16 |
17 |
--------------------------------------------------------------------------------
/sepolicy/vendor/platform_app.te:
--------------------------------------------------------------------------------
1 | binder_call(platform_app, hal_sensors_default);
2 |
3 | allow platform_app rootfs:dir getattr;
4 |
5 | allow platform_app init:unix_stream_socket { read write };
6 | allow platform_app hal_sensors_default:unix_stream_socket { read write };
7 | allow platform_app vendor_file:file getattr;
8 |
9 | allow platform_app hal_dms_hwservice:hwservice_manager find;
10 | allow platform_app hal_dms_default:binder { call transfer };
11 | allow platform_app sysfs_kgsl:lnk_file read;
12 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_settings_doze.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/keylayout/uinput-fpc.kl:
--------------------------------------------------------------------------------
1 | #
2 | # FPC1020 Touch sensor driver
3 | #
4 | # Copyright (c) 2013,2014 Fingerprint Cards AB
5 | #
6 | # This program is free software; you can redistribute it and/or
7 | # modify it under the terms of the GNU General Public License Version 2
8 | # as published by the Free Software Foundation.
9 | #
10 |
11 | # fpc1020 "finger present"
12 | key 616 HOME VIRTUAL
13 | key 617 VOICE_ASSIST VIRTUAL
14 | key 620 APP_SWITCH VIRTUAL
15 | key 621 BACK VIRTUAL
16 |
--------------------------------------------------------------------------------
/sepolicy/vendor/untrusted_app_25.te:
--------------------------------------------------------------------------------
1 | #allow untrusted_app_25 hal_memtrack_hwservice:hwservice_manager find;
2 | #allow untrusted_app_25 proc:file read;
3 | #allow untrusted_app_25 qti_debugfs:file read;
4 |
5 | allow untrusted_app_25 init:unix_stream_socket { read write };
6 |
7 | allow untrusted_app_25 self:udp_socket ioctl;
8 | allow untrusted_app_25 vold_exec:file read;
9 |
10 | allow untrusted_app_25 device:dir read;
11 | allow untrusted_app_25 rootfs:dir { open read };
12 | allow untrusted_app_25 unlabeled:dir getattr;
13 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_settings_dirac.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_preset.xml:
--------------------------------------------------------------------------------
1 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/sepolicy/vendor/property_contexts:
--------------------------------------------------------------------------------
1 | hw.aov.disable_hotword u:object_r:adspd_prop:s0
2 | hw.aov.hotword_dsp_path u:object_r:adspd_prop:s0
3 | hw.motosh.booted u:object_r:motosh_prop:s0
4 | ro.boot.hardware.revision u:object_r:hw_rev_prop:s0
5 | hw.touch.status u:object_r:touch_prop:s0
6 | sys.listeners.registered u:object_r:tee_listener_prop:s0
7 | persist.audio.dirac. u:object_r:dirac_prop:s0
8 | persist.vendor.dolby.loglevel u:object_r:vendor_dolby_loglevel_prop:s0
9 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hwservice_contexts:
--------------------------------------------------------------------------------
1 | vendor.nxp.nxpese::INxpEse u:object_r:hal_secure_element_hwservice:s0
2 | vendor.nxp.nxpnfc::INxpNfc u:object_r:hal_nfc_hwservice:s0
3 |
4 | motorola.hardware.camera.provider::ICameraProvider u:object_r:hal_camera_hwservice:s0
5 | motorola.hardware.mods_camera.provider::ICameraProvider u:object_r:hal_camera_hwservice:s0
6 |
7 | vendor.dolby.hardware.dms::IDms u:object_r:hal_dms_hwservice:s0
8 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SystemUI/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | %2$s • Turbo Charging (%1$s until full)
7 |
8 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SystemUI/res/values-en-rAU/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | %2$s • Turbo Charging (%1$s until full)
8 |
9 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SystemUI/res/values-en-rCA/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | %2$s • Turbo Charging (%1$s until full)
8 |
9 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SystemUI/res/values-en-rGB/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | %2$s • Turbo Charging (%1$s until full)
8 |
9 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SystemUI/res/values-en-rIN/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | %2$s • Turbo Charging (%1$s until full)
8 |
9 |
--------------------------------------------------------------------------------
/sepolicy/vendor/init_wifi.te:
--------------------------------------------------------------------------------
1 | type init_wifi, domain, binder_in_vendor_violators;
2 | type init_wifi_exec, exec_type, vendor_file_type, file_type;
3 | init_daemon_domain(init_wifi)
4 |
5 | binder_use(init_wifi)
6 | binder_service(init_wifi)
7 | binder_call(init_wifi, system_server)
8 |
9 | # shell scripts need to execute /system/bin/sh
10 | allow init_wifi vendor_shell_exec:file rx_file_perms;
11 | allow init_wifi vendor_toolbox_exec:file rx_file_perms;
12 | allow init_wifi vendor_shell_exec:file entrypoint;
13 |
14 | allow init_wifi sysfs_wcnsscore:file rw_file_perms;
15 |
--------------------------------------------------------------------------------
/sepolicy/vendor/wcnss_service.te:
--------------------------------------------------------------------------------
1 | # binder_call(wcnss_service, servicemanager);
2 | set_prop(wcnss_service, wifi_prop);
3 | get_prop(wcnss_service, diag_prop);
4 | # allow wcnss_service toolbox_exec:file { execute getattr execute_no_trans read open };
5 | # allow wcnss_service shell_exec:file { execute getattr execute_no_trans read open };
6 | allowxperm wcnss_service self:udp_socket ioctl priv_sock_ioctls;
7 |
8 | # allow wcnss_service per_mgr_service_old:service_manager find;
9 |
10 | allow wcnss_service unlabeled:dir search;
11 | allow wcnss_service unlabeled:file { open read };
12 |
--------------------------------------------------------------------------------
/sepolicy/vendor/mmi_boot.te:
--------------------------------------------------------------------------------
1 | type mmi_boot, domain, binder_in_vendor_violators;
2 | type mmi_boot_exec, exec_type, vendor_file_type, file_type;
3 | init_daemon_domain(mmi_boot)
4 |
5 | binder_use(mmi_boot)
6 | binder_service(mmi_boot)
7 | binder_call(mmi_boot, system_server)
8 |
9 | # shell scripts need to execute /system/bin/sh
10 | allow mmi_boot vendor_shell_exec:file rx_file_perms;
11 | allow mmi_boot vendor_toolbox_exec:file rx_file_perms;
12 | allow mmi_boot vendor_shell_exec:file entrypoint;
13 |
14 | allow mmi_boot sysfs_socinfo:file write;
15 |
16 | set_prop(mmi_boot, hw_rev_prop);
17 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_restore.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/gps/build/target_specific_features.mk:
--------------------------------------------------------------------------------
1 | GNSS_CFLAGS := \
2 | -Werror \
3 | -Wno-error=unused-parameter \
4 | -Wno-error=format \
5 | -Wno-error=macro-redefined \
6 | -Wno-error=reorder \
7 | -Wno-error=missing-braces \
8 | -Wno-error=self-assign \
9 | -Wno-error=enum-conversion \
10 | -Wno-error=logical-op-parentheses \
11 | -Wno-error=null-arithmetic \
12 | -Wno-error=null-conversion \
13 | -Wno-error=parentheses-equality \
14 | -Wno-error=undefined-bool-conversion \
15 | -Wno-error=tautological-compare \
16 | -Wno-error=switch \
17 | -Wno-error=date-time
18 |
--------------------------------------------------------------------------------
/MotoActions/Android.mk:
--------------------------------------------------------------------------------
1 | LOCAL_PATH:= $(call my-dir)
2 | include $(CLEAR_VARS)
3 |
4 | LOCAL_MODULE_TAGS := optional
5 |
6 | LOCAL_SRC_FILES := $(call all-java-files-under, src)
7 |
8 | LOCAL_PACKAGE_NAME := MotoActions
9 | LOCAL_PRIVATE_PLATFORM_APIS := true
10 | LOCAL_CERTIFICATE := platform
11 | LOCAL_PRIVILEGED_MODULE := true
12 | LOCAL_USE_AAPT2 := true
13 |
14 | LOCAL_PROGUARD_FLAG_FILES := proguard.flags
15 |
16 | LOCAL_RESOURCE_DIR := \
17 | $(LOCAL_PATH)/res \
18 | $(TOP)/packages/resources/devicesettings/res
19 |
20 | LOCAL_PROGUARD_ENABLED := disabled
21 |
22 | include frameworks/base/packages/SettingsLib/common.mk
23 |
24 | include $(BUILD_PACKAGE)
25 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_headphone.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
10 |
11 | />
12 |
13 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_dms_default.te:
--------------------------------------------------------------------------------
1 | type hal_dms_default, domain;
2 | hal_server_domain(hal_dms_default, hal_dms)
3 |
4 | type hal_dms_default_exec, exec_type, vendor_file_type, file_type;
5 | init_daemon_domain(hal_dms_default)
6 |
7 | allow hal_dms_default hal_audio_default:binder call;
8 | allow hal_dms_default platform_app:binder call;
9 | allow hal_dms_default vendor_data_file:file { rw_file_perms create };
10 | allow hal_dms_default vendor_data_file:dir { rw_file_perms add_name };
11 |
12 | allow hal_dms_default vendor_media_data_file:dir { add_name remove_name read write search open };
13 | allow hal_dms_default vendor_media_data_file:file { read write open create ioctl getattr lock unlink };
14 |
--------------------------------------------------------------------------------
/sepolicy/vendor/rmt_storage.te:
--------------------------------------------------------------------------------
1 | allow rmt_storage sysfs_rmt_storage:file rw_file_perms;
2 | allow rmt_storage sysfs_rmt_storage:dir { search open };
3 | allow rmt_storage sysfs_uio:file r_file_perms;
4 | allow rmt_storage sysfs_uio:dir { read open search };
5 | allow rmt_storage sysfs_uio:lnk_file { read };
6 | allow rmt_storage debugfs_rmt_storage:dir search;
7 | allow rmt_storage debugfs_rmt_storage:file w_file_perms;
8 |
9 | allow rmt_storage fsg_file:file { open read };
10 | allow rmt_storage fsg_file:dir search;
11 | allow rmt_storage fsg_file:lnk_file read;
12 |
13 | allow rmt_storage self:capability dac_override;
14 | allow rmt_storage unlabeled:dir search;
15 | allow rmt_storage unlabeled:file { open read };
--------------------------------------------------------------------------------
/pocketmode/Android.mk:
--------------------------------------------------------------------------------
1 | LOCAL_PATH:= $(call my-dir)
2 | include $(CLEAR_VARS)
3 |
4 | LOCAL_MODULE_TAGS := optional
5 |
6 | LOCAL_SRC_FILES := $(call all-java-files-under, src)
7 |
8 | LOCAL_PACKAGE_NAME := MotoPocketMode
9 | LOCAL_PRIVATE_PLATFORM_APIS := true
10 | LOCAL_CERTIFICATE := platform
11 | LOCAL_PRIVILEGED_MODULE := true
12 |
13 | LOCAL_STATIC_ANDROID_LIBRARIES := \
14 | android-support-v4 \
15 | android-support-v7-appcompat \
16 | android-support-v7-preference \
17 | android-support-v7-recyclerview \
18 | android-support-v14-preference
19 |
20 | LOCAL_PROGUARD_FLAG_FILES := proguard.flags
21 |
22 | include $(BUILD_PACKAGE)
23 |
24 | include $(call all-makefiles-under,$(LOCAL_PATH))
25 |
--------------------------------------------------------------------------------
/sepolicy/vendor/thermal-engine.te:
--------------------------------------------------------------------------------
1 | get_prop(thermal-engine, diag_prop)
2 | allow thermal-engine socket_device:sock_file { create setattr };
3 | allow thermal-engine sysfs_rmt_storage:dir search;
4 | allow thermal-engine sysfs_rmt_storage:file r_file_perms;
5 | allow thermal-engine sysfs_uio:file r_file_perms;
6 | allow thermal-engine sysfs_uio:dir { read open search };
7 | allow thermal-engine sysfs_uio:lnk_file { read };
8 | allow thermal-engine sysfs_vadc_dev:lnk_file { read open };
9 |
10 | allow thermal-engine self:capability { dac_override dac_read_search };
11 | allow thermal-engine sysfs_vadc_dev:dir search;
12 | allow thermal-engine sysfs:file { read write getattr };
13 | allow thermal-engine sysfs:dir read;
14 |
--------------------------------------------------------------------------------
/rootdir/etc/wlan_carrier_bin.sh:
--------------------------------------------------------------------------------
1 | #!/vendor/bin/sh
2 | carrier=`getprop ro.boot.carrier`
3 |
4 | case "$carrier" in
5 | "retbr" | "timbr" | "tefbr" | "oibr" | "amxbr" | "niibr")
6 | echo -n wlan/prima/WCNSS_qcom_wlan_nv_Brazil.bin > /sys/module/wcnsscore/parameters/nv_file
7 | ;;
8 | "perar" | "retar" | "tefar" | "amxar")
9 | echo -n wlan/prima/WCNSS_qcom_wlan_nv_Argentina.bin > /sys/module/wcnsscore/parameters/nv_file
10 | ;;
11 | "retin" | "amzin")
12 | echo -n wlan/prima/WCNSS_qcom_wlan_nv_India.bin > /sys/module/wcnsscore/parameters/nv_file
13 | ;;
14 | * )
15 | echo -n wlan/prima/WCNSS_qcom_wlan_nv.bin > /sys/module/wcnsscore/parameters/nv_file
16 | ;;
17 | esac
18 |
--------------------------------------------------------------------------------
/AndroidProducts.mk:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (C) 2017-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 | PRODUCT_MAKEFILES := \
17 | $(LOCAL_DIR)/superior_sanders.mk
18 |
19 | COMMON_LUNCH_CHOICES := \
20 | superior_sanders-userdebug
21 |
--------------------------------------------------------------------------------
/sepolicy/vendor/fingerprintd.te:
--------------------------------------------------------------------------------
1 | allow fingerprintd firmware_file:dir search;
2 | allow fingerprintd firmware_file:file { getattr open read };
3 | allow fingerprintd fingerprintd_data_file:dir { add_name getattr remove_name write };
4 | allow fingerprintd fingerprintd_data_file:file { append create getattr open setattr unlink };
5 | allow fingerprintd fingerprintd_data_file:sock_file { create unlink };
6 | allow fingerprintd sysfs_mmi_fp:dir { open read search };
7 | allow fingerprintd sysfs_mmi_fp:file rw_file_perms;
8 | allow fingerprintd system_data_file:sock_file unlink;
9 | allow fingerprintd sysfs_fpc:dir r_dir_perms;
10 | allow fingerprintd sysfs_fpc:file rw_file_perms;
11 | allow fingerprintd tee_device:chr_file { ioctl open read write };
12 | allow fingerprintd uhid_device:chr_file rw_file_perms;
13 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_qs_log.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
10 |
13 |
14 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_pickup.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/MotoActions/src/com/moto/actions/SensorAction.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015 The CyanogenMod Project
3 | * Copyright (c) 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 com.moto.actions;
19 |
20 | public interface SensorAction {
21 | void action();
22 | }
23 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_sensors_default.te:
--------------------------------------------------------------------------------
1 | binder_call(hal_sensors_default, hwservicemanager)
2 | # binder_call(hal_sensors_default, servicemanager)
3 |
4 | binder_call(hal_sensors_default, mm-qcamerad)
5 | binder_call(hal_sensors_default, system_server)
6 |
7 | binder_call(hal_sensors_default, system_app)
8 | binder_call(hal_sensors_default, priv_app)
9 | binder_call(hal_sensors_default, platform_app)
10 |
11 | allow hal_sensors_default sensors_device:chr_file { ioctl open read };
12 | allow hal_sensors_default sysfs:file { open read write };
13 | allow hal_sensors_default system_data_file:file { getattr read };
14 |
15 | allow hal_sensors_default proc_net:file { getattr open read };
16 | allow hal_sensors_default sysfs_capsense:dir search;
17 | allow hal_sensors_default sysfs_capsense:file { open write };
18 |
19 | allow hal_sensors_default sysfs:dir { open read };
20 |
--------------------------------------------------------------------------------
/overlay/packages/apps/Settings/res/values/bools.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
15 |
16 | true
17 |
18 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | Device Tree for Moto G5S Plus (sanders)
2 | ===========================================
3 |
4 | The Motorola Moto G5S Plus (codenamed _"sanders"_) is a mid-range smartphone from Motorola mobility.
5 | It was announced on August 2017.
6 |
7 | Basic | Spec Sheet
8 | -------:|:-------------------------
9 | CPU | Octa-core 2.0 GHz Cortex-A53
10 | Chipset | Qualcomm MSM8953 Snapdragon 625
11 | GPU | Adreno 506
12 | Memory | 4 GB RAM
13 | Shipped Android Version | 7.0.0
14 | Storage | 32 GB
15 | MicroSD | Up to 256 GB
16 | Battery | Li-Ion 3000mAh battery
17 | Display | 1080 x 1920 pixels, 5.2 inches (~402 ppi pixel density)
18 | Camera | Dual 13 MP, f/2.0, autofocus, dual-LED (dual tone) flash, 2150 x 1440 pixels
19 |
20 | Copyright 2017 - The LineageOS Project.
21 |
22 | 
23 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc404-mnc01/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 | false
22 |
23 |
--------------------------------------------------------------------------------
/MotoActions/src/com/moto/actions/actions/UpdatedStateNotifier.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015 The CyanogenMod Project
3 | * Copyright (c) 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 com.moto.actions.actions;
19 |
20 | public interface UpdatedStateNotifier {
21 | void updateState();
22 | }
23 |
--------------------------------------------------------------------------------
/gps/gnsspps/Android.mk:
--------------------------------------------------------------------------------
1 | ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),)
2 | LOCAL_PATH := $(call my-dir)
3 |
4 | include $(CLEAR_VARS)
5 |
6 | LOCAL_MODULE := libgnsspps
7 | LOCAL_MODULE_PATH_32 := $(TARGET_OUT_VENDOR)/lib
8 | LOCAL_MODULE_PATH_64 := $(TARGET_OUT_VENDOR)/lib64
9 | LOCAL_MODULE_TAGS := optional
10 |
11 | LOCAL_SHARED_LIBRARIES := \
12 | libutils \
13 | libcutils \
14 | libgps.utils \
15 | liblog
16 |
17 | LOCAL_SRC_FILES += \
18 | gnsspps.c
19 |
20 | LOCAL_CFLAGS += \
21 | -fno-short-enums \
22 | -D_ANDROID_
23 |
24 | ## Includes
25 | LOCAL_HEADER_LIBRARIES := \
26 | libgps.utils_headers \
27 | libloc_pla_headers
28 | LOCAL_CFLAGS += $(GNSS_CFLAGS)
29 | include $(BUILD_SHARED_LIBRARY)
30 |
31 | include $(CLEAR_VARS)
32 | LOCAL_MODULE := libgnsspps_headers
33 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
34 | include $(BUILD_HEADER_LIBRARY)
35 |
36 | endif
37 |
--------------------------------------------------------------------------------
/MotoActions/src/com/moto/actions/doze/ScreenStateNotifier.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015 The CyanogenMod Project
3 | * Copyright (c) 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 com.moto.actions.doze;
19 |
20 | public interface ScreenStateNotifier {
21 | void screenTurnedOn();
22 | void screenTurnedOff();
23 | }
24 |
--------------------------------------------------------------------------------
/sepolicy/vendor/isdbt_app.te:
--------------------------------------------------------------------------------
1 | type isdbt_app, domain, mlstrustedsubject;
2 |
3 | app_domain(isdbt_app)
4 | binder_use(isdbt_app)
5 |
6 | allow isdbt_app isdbt_device:chr_file rw_file_perms;
7 | allow isdbt_app media_rw_data_file:dir { rw_dir_perms create getattr rmdir search };
8 | allow isdbt_app { accessibility_service activity_service appops_service connectivity_service content_service display_service graphicsstats_service input_method_service input_service location_service mount_service network_management_service radio_service registry_service surfaceflinger_service textservices_service uimode_service vibrator_service wifi_service audio_service audioserver_service media_router_service notification_service autofill_service mediametrics_service mediaserver_service media_session_service mediametrics_service batterystats_service power_service user_service }:service_manager find;
9 | allow isdbt_app telecom_service:service_manager find;
10 |
--------------------------------------------------------------------------------
/overlay/packages/apps/Dialer/java/com/android/dialer/callrecord/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
15 | true
16 | 4
17 |
18 |
--------------------------------------------------------------------------------
/sepolicy/vendor/untrusted_app.te:
--------------------------------------------------------------------------------
1 | #get_prop(untrusted_app, camera_prop);
2 | #get_prop(untrusted_app_25, camera_prop);
3 | #allow untrusted_app sysfs_zram:dir { search read };
4 | #allow untrusted_app sysfs_zram:file { open read getattr };
5 |
6 | #allow untrusted_app firmware_file:dir read;
7 | #allow untrusted_app fsg_file:dir read;
8 |
9 | allow untrusted_app proc_zoneinfo:file { getattr open read };
10 | allow untrusted_app proc_qtaguid_stat:file { getattr open read };
11 | allow untrusted_app hal_memtrack_hwservice:hwservice_manager find;
12 | allow untrusted_app bluetooth_prop:file read;
13 | allow untrusted_app debugfs_trace_marker:file getattr;
14 | allow untrusted_app proc:file read;
15 | allow untrusted_app proc_version:file read;
16 | allow untrusted_app serialno_prop:file read;
17 | allow untrusted_app sysfs_net:dir search;
18 | allow untrusted_app hal_memtrack_default:binder call;
19 | allow untrusted_app sysfs_switch:dir search;
20 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SystemUI/res/values-sw372dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 | 0dp
20 | 0dp
21 |
22 |
--------------------------------------------------------------------------------
/overlay/packages/apps/DocumentsUI/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 | true
20 |
21 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_hand.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_gnss_qti.te:
--------------------------------------------------------------------------------
1 | get_prop(hal_gnss_qti, diag_prop);
2 | allow hal_gnss_qti debug_prop:file read;
3 | allow hal_gnss_qti property_socket:sock_file write;
4 |
5 | # Most HALs are not allowed to use network sockets. Qcom library
6 | # libqdi is used across multiple processes which are clients of
7 | # netmgrd including the GNSS HAL. libqdi first attempts to get the network
8 | # interface using an IOCTL on a UDP INET socket, which isn't allowed here.
9 | # If that fails, it falls back to using libc's if_nameindex() which requires
10 | # a netlink route socket, which HALs may use. Due to the initial
11 | # attempt to use a UDP socket, we still see a selinux denial,
12 | # but it is safe to ignore.
13 | # TODO (b/37730994) Remove udp_socket requirement from
14 | # libqdi and have all its clients use netlink route
15 | # sockets.
16 | # Taken from device/google/wahoo
17 | dontaudit hal_gnss_qti self:udp_socket create;
18 | allow hal_gnss_qti sysfs:file read;
19 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc302-mnc221/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | - XTRA_SERVER_1=http://xtrapath1.izatcloud.net/xtra3grc.bin
5 | - XTRA_SERVER_2=http://xtrapath2.izatcloud.net/xtra3grc.bin
6 | - XTRA_SERVER_3=http://xtrapath3.izatcloud.net/xtra3grc.bin
7 | - NTP_SERVER=north-america.pool.ntp.org
8 | - SUPL_MODE=0
9 | - SUPL_HOST=NONE
10 | - SUPL_PORT=7275
11 | - SUPL_VER=0x20000
12 | - LPP_PROFILE=2
13 | - NMEA_PROVIDER=0
14 | - A_GLONASS_POS_PROTOCOL_SELECT=0
15 | - ERR_ESTIMATE=0
16 | - INTERMEDIATE_POS=0
17 | - GPS_LOCK=0
18 | - SUPL_ES=0
19 |
20 |
21 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc302-mnc640/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | - XTRA_SERVER_1=http://xtrapath1.izatcloud.net/xtra3grc.bin
5 | - XTRA_SERVER_2=http://xtrapath2.izatcloud.net/xtra3grc.bin
6 | - XTRA_SERVER_3=http://xtrapath3.izatcloud.net/xtra3grc.bin
7 | - NTP_SERVER=north-america.pool.ntp.org
8 | - SUPL_MODE=0
9 | - SUPL_HOST=NONE
10 | - SUPL_PORT=7275
11 | - SUPL_VER=0x20000
12 | - LPP_PROFILE=2
13 | - NMEA_PROVIDER=0
14 | - A_GLONASS_POS_PROTOCOL_SELECT=0
15 | - ERR_ESTIMATE=0
16 | - INTERMEDIATE_POS=0
17 | - GPS_LOCK=0
18 | - SUPL_ES=0
19 |
20 |
21 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/switchbar_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/include/surround_rec_interface.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Extrapolated / reversed header for SSR
3 | */
4 |
5 | #ifndef _SURROUND_REC_INTERFACE_H_
6 | #define _SURROUND_REC_INTERFACE_H_
7 |
8 | typedef char *get_param(void *arg);
9 | typedef void set_param(void *arg, const char *arg1);
10 |
11 | typedef struct get_param_data {
12 | const char *name;
13 | get_param *get_param_fn;
14 | } get_param_data_t;
15 |
16 | typedef struct set_param_data {
17 | const char *name;
18 | set_param *set_param_fn;
19 | } set_param_data_t;
20 |
21 | const get_param_data_t* surround_rec_get_get_param_data(void);
22 |
23 | const set_param_data_t* surround_rec_get_set_param_data(void);
24 |
25 | int surround_rec_init(void **arg, int arg1, int arg2, int arg3,
26 | int arg4, const char *arg5);
27 |
28 | void surround_rec_deinit(void *arg);
29 |
30 | void surround_rec_process(void *arg, const int16_t *arg1, int16_t *arg2);
31 |
32 | #endif /* #ifndef _SURROUND_REC_INTERFACE_H_ */
33 |
--------------------------------------------------------------------------------
/gps/pla/Android.mk:
--------------------------------------------------------------------------------
1 | GNSS_CFLAGS := \
2 | -Werror \
3 | -Wno-error=unused-parameter \
4 | -Wno-error=format \
5 | -Wno-error=macro-redefined \
6 | -Wno-error=reorder \
7 | -Wno-error=missing-braces \
8 | -Wno-error=self-assign \
9 | -Wno-error=enum-conversion \
10 | -Wno-error=logical-op-parentheses \
11 | -Wno-error=null-arithmetic \
12 | -Wno-error=null-conversion \
13 | -Wno-error=parentheses-equality \
14 | -Wno-error=undefined-bool-conversion \
15 | -Wno-error=tautological-compare \
16 | -Wno-error=switch \
17 | -Wno-error=date-time
18 |
19 | ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),)
20 | ifneq ($(BUILD_TINY_ANDROID),true)
21 |
22 | LOCAL_PATH := $(call my-dir)
23 |
24 | include $(CLEAR_VARS)
25 | LOCAL_MODULE := libloc_pla_headers
26 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/android
27 | include $(BUILD_HEADER_LIBRARY)
28 |
29 | endif # not BUILD_TINY_ANDROID
30 | endif # BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE
31 |
--------------------------------------------------------------------------------
/overlay/packages/apps/Settings/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 | 5dp
21 | - 95%
22 |
23 |
24 |
--------------------------------------------------------------------------------
/overlay/packages/apps/Nfc/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 | - XT1802
16 | - XT1803
17 | - XT1804
18 | - XT1806
19 |
20 |
21 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_camera_default.te:
--------------------------------------------------------------------------------
1 | allow hal_camera_default gpu_device:dir r_dir_perms;
2 | allow hal_camera_default gpu_device:file r_file_perms;
3 | allow hal_camera_default hal_configstore_ISurfaceFlingerConfigs:hwservice_manager find;
4 | allow hal_camera_default hal_configstore_default:binder call;
5 | allow hal_camera_default gpu_device:dir r_dir_perms;
6 | allow hal_camera_default gpu_device:file r_file_perms;
7 | allow hal_camera_default hal_configstore_ISurfaceFlingerConfigs:hwservice_manager find;
8 | allow hal_camera_default hal_configstore_default:binder call;
9 | allow hal_camera_default unlabeled:file {open getattr read };
10 | allow hal_camera_default camera_data_file:sock_file write;
11 | allow hal_camera_default persist_file:file { rw_file_perms setattr };
12 | allow hal_camera_default hal_graphics_allocator_hwservice:hwservice_manager { find };
13 | allow hal_camera_default system_server:unix_stream_socket { read write };
14 | allow hal_camera_default sysfs:file { read open getattr };
15 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 | 8.0dip
20 | 4.0dip
21 | 1000.0dip
22 |
23 |
--------------------------------------------------------------------------------
/gps/gnss/Makefile.am:
--------------------------------------------------------------------------------
1 | AM_CFLAGS = \
2 | $(LOCPLA_CFLAGS) \
3 | $(LOCHAL_CFLAGS) \
4 | $(GPSUTILS_CFLAGS) \
5 | $(LOCCORE_CFLAGS) \
6 | -I./ \
7 | -I../utils \
8 | -I$(WORKSPACE)/hardware/qcom/gps/core/data-items \
9 | -I../location \
10 | -std=c++11
11 |
12 | libgnss_la_SOURCES = \
13 | location_gnss.cpp \
14 | GnssAdapter.cpp \
15 | XtraSystemStatusObserver.cpp \
16 | Agps.cpp
17 |
18 | if USE_GLIB
19 | libgnss_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@
20 | libgnss_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread @GLIB_LIBS@ -shared -avoid-version
21 | libgnss_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
22 | else
23 | libgnss_la_CFLAGS = $(AM_CFLAGS)
24 | libgnss_la_LDFLAGS = -Wl,-z,defs -lpthread -shared -version-info 1:0:0
25 | libgnss_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
26 | endif
27 |
28 | libgnss_la_LIBADD = -lstdc++ $(GPSUTILS_LIBS) $(LOCCORE_LIBS)
29 |
30 | #Create and Install libraries
31 | lib_LTLIBRARIES = libgnss.la
32 |
--------------------------------------------------------------------------------
/gps/location/Android.mk:
--------------------------------------------------------------------------------
1 | ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),)
2 | ifneq ($(BUILD_TINY_ANDROID),true)
3 |
4 | LOCAL_PATH := $(call my-dir)
5 |
6 | include $(CLEAR_VARS)
7 |
8 | LOCAL_MODULE := liblocation_api
9 | LOCAL_VENDOR_MODULE := true
10 | LOCAL_MODULE_TAGS := optional
11 |
12 | LOCAL_SHARED_LIBRARIES := \
13 | libutils \
14 | libcutils \
15 | libgps.utils \
16 | libdl \
17 | liblog
18 |
19 | LOCAL_SRC_FILES += \
20 | LocationAPI.cpp \
21 | LocationAPIClientBase.cpp
22 |
23 | LOCAL_CFLAGS += \
24 | -fno-short-enums
25 |
26 | LOCAL_HEADER_LIBRARIES := \
27 | libloc_pla_headers \
28 | libgps.utils_headers
29 |
30 | LOCAL_PRELINK_MODULE := false
31 |
32 | LOCAL_CFLAGS += $(GNSS_CFLAGS)
33 | include $(BUILD_SHARED_LIBRARY)
34 |
35 | include $(CLEAR_VARS)
36 | LOCAL_MODULE := liblocation_api_headers
37 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
38 | include $(BUILD_HEADER_LIBRARY)
39 |
40 | endif # not BUILD_TINY_ANDROID
41 | endif # BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE
42 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc505-mnc02/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 | false
24 |
25 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc505-mnc03/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 | false
24 |
25 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc505-mnc07/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 | false
24 |
25 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc505-mnc90/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 | false
24 |
25 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc262-mnc01/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 | WLAN preferred
22 |
23 | - %s
24 | - WLAN Call
25 |
26 |
27 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc840/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 |
23 | Wi-Fi Calling
24 |
25 |
26 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc855/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 |
23 | Wi-Fi Calling
24 |
25 |
26 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc856/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 |
23 | Wi-Fi Calling
24 |
25 |
26 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc857/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 |
23 | Wi-Fi Calling
24 |
25 |
26 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc858/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 |
23 | Wi-Fi Calling
24 |
25 |
26 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc859/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 |
23 | Wi-Fi Calling
24 |
25 |
26 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc860/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 |
23 | Wi-Fi Calling
24 |
25 |
26 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc861/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 |
23 | Wi-Fi Calling
24 |
25 |
26 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc862/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 |
23 | Wi-Fi Calling
24 |
25 |
26 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc863/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 |
23 | Wi-Fi Calling
24 |
25 |
26 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc864/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 |
23 | Wi-Fi Calling
24 |
25 |
26 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc865/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 |
23 | Wi-Fi Calling
24 |
25 |
26 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc866/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 |
23 | Wi-Fi Calling
24 |
25 |
26 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc867/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 |
23 | Wi-Fi Calling
24 |
25 |
26 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc868/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 |
23 | Wi-Fi Calling
24 |
25 |
26 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc869/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 |
23 | Wi-Fi Calling
24 |
25 |
26 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc870/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 |
23 | Wi-Fi Calling
24 |
25 |
26 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc871/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 |
23 | Wi-Fi Calling
24 |
25 |
26 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc872/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 |
23 | Wi-Fi Calling
24 |
25 |
26 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc873/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 |
23 | Wi-Fi Calling
24 |
25 |
26 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc874/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 |
23 | Wi-Fi Calling
24 |
25 |
26 |
--------------------------------------------------------------------------------
/sepolicy/vendor/system_app.te:
--------------------------------------------------------------------------------
1 | allow system_app proc_touchpanel:dir search;
2 | allow system_app sysfs_vibrator:file rw_file_perms;
3 | allow system_app sysfs_vibrator:dir search;
4 | allow system_app sysfs_graphics:file rw_file_perms;
5 | allow system_app sysfs_graphics:dir search;
6 | allow system_app proc_touchpanel:file rw_file_perms;
7 | allow system_app sysfs_fpc:file rw_file_perms;
8 | allow system_app fuse_device:filesystem getattr;
9 |
10 | allow system_app init:unix_stream_socket { read write };
11 | allow system_app sysfs_homebutton:file write;
12 | allow system_app sysfs_screen_off_gestures:file write;
13 | allow system_app sysfs_fpc_proximity:file { rw_file_perms };
14 |
15 | get_prop(system_app, diag_prop);
16 | binder_call(system_app, qtitetherservice_service);
17 | binder_call(system_app, wificond);
18 |
19 | allow system_app hidl_base_hwservice:hwservice_manager add;
20 | allow system_app sysfs_homebutton:dir search;
21 | allow system_app sysfs_homebutton:file { getattr open };
22 | allow system_app hal_atfwd_hwservice:hwservice_manager add;
23 |
--------------------------------------------------------------------------------
/gps/gnsspps/Makefile.am:
--------------------------------------------------------------------------------
1 | AM_CFLAGS = \
2 | $(LOCPLA_CFLAGS) \
3 | $(GPSUTILS_CFLAGS) \
4 | -I$(WORKSPACE)/system/core/include \
5 | -I./
6 |
7 | ACLOCAL_AMFLAGS = -I m4
8 |
9 | libgnsspps_la_SOURCES = \
10 | gnsspps.c
11 |
12 | if USE_GLIB
13 | libgnsspps_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@
14 | libgnsspps_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0
15 | libgnsspps_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
16 | else
17 | libgnsspps_la_CFLAGS = $(AM_CFLAGS)
18 | libgnsspps_la_LDFLAGS = -Wl,-z,defs -lpthread -shared -version-info 1:0:0
19 | libgnsspps_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
20 | endif
21 |
22 | libgnsspps_la_LIBADD = -lstdc++ $(GPSUTILS_LIBS)
23 |
24 | library_include_HEADERS = \
25 | gnsspps.h
26 |
27 | #Create and Install libraries
28 | lib_LTLIBRARIES = libgnsspps.la
29 |
30 | library_includedir = $(pkgincludedir)
31 | pkgconfigdir = $(libdir)/pkgconfig
32 | pkgconfig_DATA = gnsspps.pc
33 | EXTRA_DIST = $(pkgconfig_DATA)
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 | true
22 |
23 |
24 | false
25 |
26 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_settings_kcal.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc234-mnc15/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 | - 121
25 |
26 |
27 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc262-mnc01/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 | - 3311
25 |
26 |
27 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc262-mnc07/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 | - +491793000333
25 |
26 |
27 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc262-mnc08/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 | - +491793000333
25 |
26 |
27 |
--------------------------------------------------------------------------------
/power/Android.mk:
--------------------------------------------------------------------------------
1 | LOCAL_PATH := $(call my-dir)
2 |
3 | # HAL module implemenation stored in
4 | # hw/..so
5 | include $(CLEAR_VARS)
6 |
7 | LOCAL_MODULE_RELATIVE_PATH := hw
8 | LOCAL_SHARED_LIBRARIES := liblog libcutils libdl libxml2 libbase libhidlbase libhidltransport libutils android.hardware.power@1.2
9 | LOCAL_HEADER_LIBRARIES += libutils_headers
10 | LOCAL_HEADER_LIBRARIES += libhardware_headers
11 | LOCAL_SRC_FILES := power-common.c metadata-parser.c utils.c list.c hint-data.c powerhintparser.c service.cpp Power.cpp
12 | LOCAL_C_INCLUDES := external/libxml2/include \
13 | external/icu/icu4c/source/common
14 |
15 | LOCAL_SRC_FILES += power-8953.c
16 |
17 | ifeq ($(TARGET_USES_INTERACTION_BOOST),true)
18 | LOCAL_CFLAGS += -DINTERACTION_BOOST
19 | endif
20 |
21 | LOCAL_MODULE := android.hardware.power@1.2-service
22 | LOCAL_INIT_RC := android.hardware.power@1.2-service.rc
23 | LOCAL_MODULE_TAGS := optional
24 | LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-variable
25 | LOCAL_VENDOR_MODULE := true
26 | include $(BUILD_EXECUTABLE)
27 |
28 |
--------------------------------------------------------------------------------
/changelog.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | export Changelog=$PWD/Changelog.txt
4 |
5 | if [ -z $CHGLOGDUR ];
6 | then
7 | CHGLOGDUR="10"
8 | fi
9 |
10 | if [ $CHGLOGDUR -gt 30 ];
11 | then
12 | echo "Duration greater than 30 is not allowed, resetting to 10"
13 | CHGLOGDUR="10"
14 | fi
15 |
16 | if [ -f $Changelog ];
17 | then
18 | rm -f $Changelog
19 | fi
20 |
21 | touch $Changelog
22 |
23 | echo "Generating changelog..."
24 |
25 | for i in $(seq $CHGLOGDUR);
26 | do
27 | export After_Date=`date --date="$i days ago" +%m-%d-%Y`
28 | k=$(expr $i - 1)
29 | export Until_Date=`date --date="$k days ago" +%m-%d-%Y`
30 |
31 | # Line with after --- until was too long for a small ListView
32 | echo '=======================' >> $Changelog;
33 | echo " "$Until_Date >> $Changelog;
34 | echo '=======================' >> $Changelog;
35 | echo >> $Changelog;
36 |
37 | # Cycle through every repo to find commits between 2 dates
38 | repo forall -pc 'git log --oneline --after=$After_Date --until=$Until_Date' >> $Changelog
39 | echo >> $Changelog;
40 | done
41 |
42 | sed -i 's/project/ */g' $Changelog
43 |
--------------------------------------------------------------------------------
/thermal/Android.mk:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2015 The Android Open Source Project
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | LOCAL_PATH := $(call my-dir)
16 |
17 | include $(CLEAR_VARS)
18 |
19 | LOCAL_MODULE := thermal.$(TARGET_BOARD_PLATFORM)
20 | LOCAL_MODULE_RELATIVE_PATH := hw
21 | LOCAL_PROPRIETARY_MODULE := true
22 |
23 | LOCAL_SRC_FILES := thermal.c
24 | LOCAL_SRC_FILES += thermal-8953.c
25 |
26 | LOCAL_SHARED_LIBRARIES := liblog libcutils
27 | LOCAL_MODULE_TAGS := optional
28 | LOCAL_CFLAGS := -Wno-unused-parameter
29 |
30 | include $(BUILD_SHARED_LIBRARY)
31 |
--------------------------------------------------------------------------------
/gps/gnss/Android.mk:
--------------------------------------------------------------------------------
1 | ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),)
2 | ifneq ($(BUILD_TINY_ANDROID),true)
3 |
4 | LOCAL_PATH := $(call my-dir)
5 |
6 | include $(CLEAR_VARS)
7 |
8 | LOCAL_MODULE := libgnss
9 | LOCAL_VENDOR_MODULE := true
10 | LOCAL_MODULE_TAGS := optional
11 |
12 | LOCAL_SHARED_LIBRARIES := \
13 | libutils \
14 | libcutils \
15 | libdl \
16 | liblog \
17 | libloc_core \
18 | libgps.utils
19 |
20 | LOCAL_SRC_FILES += \
21 | location_gnss.cpp \
22 | GnssAdapter.cpp \
23 | Agps.cpp \
24 | XtraSystemStatusObserver.cpp
25 |
26 | LOCAL_CFLAGS += \
27 | -fno-short-enums \
28 |
29 | ifeq ($(TARGET_BUILD_VARIANT),user)
30 | LOCAL_CFLAGS += -DTARGET_BUILD_VARIANT_USER
31 | endif
32 |
33 | LOCAL_HEADER_LIBRARIES := \
34 | libgps.utils_headers \
35 | libloc_core_headers \
36 | libloc_pla_headers \
37 | liblocation_api_headers
38 |
39 | LOCAL_CFLAGS += $(GNSS_CFLAGS)
40 |
41 | LOCAL_PRELINK_MODULE := false
42 |
43 | include $(BUILD_SHARED_LIBRARY)
44 |
45 | endif # not BUILD_TINY_ANDROID
46 | endif # BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE
47 |
--------------------------------------------------------------------------------
/audio/audio_ext_spkr.conf:
--------------------------------------------------------------------------------
1 | global_config {
2 | name Sanders
3 | sonification_pad 21
4 | sonification_prox_timeout_sec 5
5 | force_ring_ramp true
6 | }
7 |
8 | ring {
9 | #dB to attenuate playback to meet safety level at each volume step
10 | #16 steps total, 15...0. In case of truncated list, last attenuation
11 | #given will be applied to all lower volume steps
12 | attenuation 35,33,30,28,26,23,21,19,16,14,11,9,7,3,0,0
13 | knee_step 16
14 | }
15 |
16 | voice {
17 | #dB to attenuate playback to meet safety level at each volume step
18 | #16 steps total, 15...0. In case of truncated list, last attenuation
19 | #given will be applied to all lower volume steps
20 | attenuation 32,29,29,26,26,23,23,20,20,17,17,14,14,11,11,11
21 | knee_step 16
22 | }
23 |
24 | media {
25 | #dB to attenuate playback to meet safety level at each volume step
26 | #16 steps total, 15...0. In case of truncated list, last attenuation
27 | #given will be applied to all lower volume steps
28 | attenuation 35,33,30,28,26,23,21,19,16,14,11,9,7,3,0,0
29 | knee_step 16
30 | }
31 |
--------------------------------------------------------------------------------
/MotoActions/src/com/moto/actions/util/NonScrollListView.java:
--------------------------------------------------------------------------------
1 | package com.moto.actions.util;
2 |
3 | import android.content.Context;
4 | import android.util.AttributeSet;
5 | import android.view.View;
6 | import android.view.ViewGroup;
7 | import android.widget.ListView;
8 |
9 | public class NonScrollListView extends ListView {
10 |
11 | public NonScrollListView(Context context) {
12 | super(context);
13 | }
14 | public NonScrollListView(Context context, AttributeSet attrs) {
15 | super(context, attrs);
16 | }
17 | public NonScrollListView(Context context, AttributeSet attrs, int defStyle) {
18 | super(context, attrs, defStyle);
19 | }
20 | @Override
21 | public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
22 | int heightMeasureSpec_custom = View.MeasureSpec.makeMeasureSpec(
23 | Integer.MAX_VALUE >> 2, View.MeasureSpec.AT_MOST);
24 | super.onMeasure(widthMeasureSpec, heightMeasureSpec_custom);
25 | ViewGroup.LayoutParams params = getLayoutParams();
26 | params.height = getMeasuredHeight();
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/bluetooth/bdroid_buildcfg.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2016 The CyanogenMod 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 | #ifndef _BDROID_BUILDCFG_H
18 | #define _BDROID_BUILDCFG_H
19 |
20 | #define BTM_DEF_LOCAL_NAME "Moto G5S Plus"
21 | #define BLUETOOTH_QTI_SW TRUE
22 | #define MAX_ACL_CONNECTIONS 16
23 | #define MAX_L2CAP_CHANNELS 16
24 | #define BLE_VND_INCLUDED TRUE
25 | #define BT_CLEAN_TURN_ON_DISABLED TRUE
26 | #define BTM_WBS_INCLUDED TRUE
27 | #define BTIF_HF_WBS_PREFERRED TRUE
28 | #define BTM_SCO_ENHANCED_SYNC_ENABLED FALSE
29 | #endif
30 |
--------------------------------------------------------------------------------
/overlay/packages/apps/Settings/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 |
16 | true
17 |
18 |
24 | 1
25 |
26 |
27 |
--------------------------------------------------------------------------------
/sepolicy/vendor/system_server.te:
--------------------------------------------------------------------------------
1 | binder_call(system_server, rild);
2 |
3 | allow system_server sysfs_homebutton:file rw_file_perms;
4 | allow system_server sysfs_homebutton:dir r_dir_perms;
5 | allow system_server rild:binder transfer;
6 | allow system_server sysfs_capsense:dir search;
7 | allow system_server sysfs_capsense:file rw_file_perms;
8 | allow system_server init:unix_stream_socket { read };
9 |
10 | allow system_server qti_debugfs:file { getattr open read };
11 | allow system_server init:unix_stream_socket write;
12 |
13 | allow system_server sensors_device:chr_file { ioctl open read };
14 |
15 | allow system_server vendor_file:file { execute getattr read };
16 | allow system_server sysfs:file getattr;
17 | allow system_server thermal_service:service_manager find;
18 | allow system_server adb_data_file:dir { getattr open read search };
19 | allow system_server sysfs:file{ open read };
20 | allow system_server vendor_file:file open;
21 | allow system_server adb_data_file:file { getattr open read };
22 | allow system_server dalvikcache_data_file:file { execute write };
23 |
24 | allow system_server persist_camera_prop:file read;
25 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc840/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 |
25 | - LPP_PROFILE=2
26 |
27 |
28 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc854/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 |
25 | - LPP_PROFILE=2
26 |
27 |
28 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc855/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 |
25 | - LPP_PROFILE=2
26 |
27 |
28 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc856/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 |
25 | - LPP_PROFILE=2
26 |
27 |
28 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc857/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 |
25 | - LPP_PROFILE=2
26 |
27 |
28 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc858/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 |
25 | - LPP_PROFILE=2
26 |
27 |
28 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc859/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 |
25 | - LPP_PROFILE=2
26 |
27 |
28 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc860/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 |
25 | - LPP_PROFILE=2
26 |
27 |
28 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc861/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 |
25 | - LPP_PROFILE=2
26 |
27 |
28 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc862/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 |
25 | - LPP_PROFILE=2
26 |
27 |
28 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc863/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 |
25 | - LPP_PROFILE=2
26 |
27 |
28 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc864/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 |
25 | - LPP_PROFILE=2
26 |
27 |
28 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc865/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 |
25 | - LPP_PROFILE=2
26 |
27 |
28 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc866/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 |
25 | - LPP_PROFILE=2
26 |
27 |
28 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc867/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 |
25 | - LPP_PROFILE=2
26 |
27 |
28 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc868/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 |
25 | - LPP_PROFILE=2
26 |
27 |
28 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc869/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 |
25 | - LPP_PROFILE=2
26 |
27 |
28 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc870/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 |
25 | - LPP_PROFILE=2
26 |
27 |
28 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc871/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 |
25 | - LPP_PROFILE=2
26 |
27 |
28 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc872/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 |
25 | - LPP_PROFILE=2
26 |
27 |
28 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc873/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 |
25 | - LPP_PROFILE=2
26 |
27 |
28 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc405-mnc874/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 |
25 | - LPP_PROFILE=2
26 |
27 |
28 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_settings_gesturess.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc505-mnc01/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 | - +61101
25 |
26 |
27 | false
28 |
29 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc505-mnc11/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 | - +61101
25 |
26 |
27 | false
28 |
29 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc505-mnc71/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 | - +61101
25 |
26 |
27 | false
28 |
29 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc505-mnc72/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 | - +61101
25 |
26 |
27 | false
28 |
29 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_derp_ambient_foreground.xml:
--------------------------------------------------------------------------------
1 |
16 |
17 |
18 |
23 |
25 |
26 |
--------------------------------------------------------------------------------
/MotoActions/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 | 48dp
20 |
21 |
22 | 36dp
23 |
24 |
25 | 12dp
26 |
27 |
--------------------------------------------------------------------------------
/gps/android/service.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
3 | * Not a Contribution
4 | */
5 | /*
6 | * Copyright (C) 2016 The Android Open Source Project
7 | *
8 | * Licensed under the Apache License, Version 2.0 (the "License");
9 | * you may not use this file except in compliance with the License.
10 | * You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing, software
15 | * distributed under the License is distributed on an "AS IS" BASIS,
16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 | * See the License for the specific language governing permissions and
18 | * limitations under the License.
19 | */
20 |
21 | #define LOG_TAG "android.hardware.gnss@1.1-service-qti"
22 |
23 | #include
24 | #include
25 |
26 | using android::hardware::gnss::V1_0::IGnss;
27 | using android::hardware::defaultPassthroughServiceImplementation;
28 |
29 | int main() {
30 | return defaultPassthroughServiceImplementation();
31 | }
32 |
--------------------------------------------------------------------------------
/usb/Android.bp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (C) 2017 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 | cc_binary {
16 | name: "android.hardware.usb@1.0-service.sanders",
17 | relative_install_path: "hw",
18 | init_rc: ["android.hardware.usb@1.0-service.sanders.rc"],
19 | srcs: ["service.cpp", "Usb.cpp"],
20 | shared_libs: [
21 | "libbase",
22 | "libcutils",
23 | "libhidlbase",
24 | "libhidltransport",
25 | "libhwbinder",
26 | "libutils",
27 | "libhardware",
28 | "android.hardware.usb@1.0",
29 | ],
30 | proprietary: true,
31 | }
32 |
--------------------------------------------------------------------------------
/sepolicy/vendor/rild.te:
--------------------------------------------------------------------------------
1 | binder_call(rild, audioserver_service);
2 | binder_call(rild, system_server);
3 | set_prop(rild, diag_prop);
4 | set_prop(rild, system_radio_prop)
5 | allow rild fsg_file:file { getattr open read };
6 | allow rild fsg_file:dir { search open read };
7 | allow rild fsg_file:lnk_file read;
8 |
9 | allow rild rild_exec:file execute_no_trans;
10 | allow rild fwk_sensor_hwservice:hwservice_manager find;
11 |
12 | allow rild cutback_data_file:sock_file { create setattr unlink write };
13 | allow rild cutback_data_file:dir { add_name open read remove_name search write };
14 | allow rild unlabeled:dir { getattr search };
15 | allow rild vendor_file:file execute_no_trans;
16 | allow rild proc:file { open read };
17 | allow rild unlabeled:file { getattr open read };
18 | allow rild unlabeled:dir { getattr open read };
19 | allow rild mnt_vendor_file:dir search;
20 | allow rild vendor_toolbox_exec:file execute_no_trans;
21 | allow rild mnt_vendor_file:file { open read write };
22 | allow rild unlabeled:lnk_file read;
23 | allow rild qcom_ims_prop:property_service { set };
24 |
25 | dontaudit rild tombstone_data_file:dir { search };
26 | dontaudit rild vendor_file:file { ioctl };
27 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 | Moto G5s Plus
25 |
26 |
--------------------------------------------------------------------------------
/light/Android.bp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (C) 2017 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 | cc_binary {
17 | relative_install_path: "hw",
18 | defaults: ["hidl_defaults"],
19 | name: "android.hardware.light@2.0-service.sanders",
20 | proprietary: true,
21 | init_rc: ["android.hardware.light@2.0-service.sanders.rc"],
22 | srcs: ["service.cpp", "Light.cpp"],
23 | shared_libs: [
24 | "libhardware",
25 | "libhidlbase",
26 | "libhidltransport",
27 | "liblog",
28 | "libhwbinder",
29 | "libutils",
30 | "android.hardware.light@2.0",
31 | ],
32 | }
33 |
--------------------------------------------------------------------------------
/gps/location/Makefile.am:
--------------------------------------------------------------------------------
1 | ACLOCAL_AMFLAGS = -I m4
2 |
3 | AM_CFLAGS = \
4 | -I./ \
5 | -I../utils \
6 | $(LOCPLA_CFLAGS) \
7 | $(GPSUTILS_CFLAGS) \
8 | -std=c++11
9 |
10 | liblocation_api_la_SOURCES = \
11 | LocationAPI.cpp \
12 | LocationAPIClientBase.cpp
13 |
14 | if USE_GLIB
15 | liblocation_api_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@
16 | liblocation_api_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0
17 | liblocation_api_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
18 | else
19 | liblocation_api_la_CFLAGS = $(AM_CFLAGS)
20 | liblocation_api_la_LDFLAGS = -Wl,-z,defs -lpthread -shared -version-info 1:0:0
21 | liblocation_api_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
22 | endif
23 |
24 | liblocation_api_la_LIBADD = -lstdc++ -ldl $(GPSUTILS_LIBS)
25 |
26 | library_include_HEADERS = \
27 | LocationAPI.h \
28 | LocationAPIClientBase.h \
29 | location_interface.h
30 |
31 | #Create and Install libraries
32 | lib_LTLIBRARIES = liblocation_api.la
33 |
34 | library_includedir = $(pkgincludedir)
35 |
36 | pkgconfigdir = $(libdir)/pkgconfig
37 | pkgconfig_DATA = location-api.pc
38 | EXTRA_DIST = $(pkgconfig_DATA)
39 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SettingsLib/res/values/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
21 |
22 |
23 |
25 |
26 | - 0
27 | - -1
28 | - -1
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_derp_dirac_foreground.xml:
--------------------------------------------------------------------------------
1 |
17 |
18 |
19 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/rootdir/etc/init.mmi.laser.sh:
--------------------------------------------------------------------------------
1 | #!/vendor/bin/sh
2 | scriptname=${0##*/}
3 | dbg_on=1
4 | debug()
5 | {
6 | [ $dbg_on ] && echo "Debug: $*"
7 | }
8 |
9 | notice()
10 | {
11 | echo "$*"
12 | echo "$scriptname: $*" > /dev/kmsg
13 | }
14 |
15 | error_and_leave()
16 | {
17 | local err_msg
18 | local err_code=$1
19 | case $err_code in
20 | 1) err_msg="Error: No response";;
21 | 2) err_msg="Error: in factory mode";;
22 | 3) err_msg="Error: calibration file not exist";;
23 | 4) err_msg="Error: the calibration sys file not show up";;
24 | esac
25 | notice "$err_msg"
26 | exit $err_code
27 | }
28 |
29 | bootmode=`getprop ro.bootmode`
30 | if [ $bootmode == "mot-factory" ]
31 | then
32 | error_and_leave 2
33 | fi
34 |
35 | laser_offset_path=/sys/kernel/range/offset
36 | laser_offset_string=$(ls $laser_offset_path)
37 | [ -z "$laser_offset_string" ] && error_and_leave 4
38 |
39 | cal_offset_path=/persist/camera/focus/offset_cal
40 | cal_offset_string=$(ls $cal_offset_path)
41 | [ -z "$cal_offset_string" ] && error_and_leave 3
42 |
43 | offset_cal=$(cat $cal_offset_path)
44 | debug "offset cal value [$offset_cal]"
45 |
46 | debug "set cal value to kernel"
47 | echo $offset_cal > $laser_offset_path
48 | notice "laser cal data update success"
49 |
--------------------------------------------------------------------------------
/gps/etc/apdr.conf:
--------------------------------------------------------------------------------
1 | # AP DR SENSOR Configuration file
2 | #
3 | # SENSOR_SERVICE options are one of below
4 | # accel,gyro,vehicle_accel,vehicle_gyro,pedometer,vehicle_odometry,accel_temp,
5 | # gyro_temp,baro,mag_calib,mag_uncalib,amd,rmd.
6 | #
7 | # SENSOR_PROVIDER options is one of -- default,native,ssc,samlite.
8 | #
9 | # SENSOR_RATE = 1~100 (Hz)
10 | #
11 | # SENSOR_SAMPLES = 1~N
12 | #
13 | # SENSOR_STATISTIC_ENABLED
14 | # bit 0: Diag Print Enabled
15 | # bit 1: Adb Print Enabled
16 | # SENSOR_STATISTIC_PRINT_COUNT
17 | # Skip Number of Print
18 | #
19 |
20 | SENSOR_SERVICE = accel
21 | SENSOR_PROVIDER = native
22 | SENSOR_RATE = 100
23 | SENSOR_SAMPLES = 1
24 | SENSOR_STATISTIC_ENABLED = 3
25 | SENSOR_STATISTIC_PRINT_COUNT = 50
26 |
27 | SENSOR_SERVICE = vehicle_accel
28 | SENSOR_PROVIDER = native
29 | SENSOR_RATE = 10
30 | SENSOR_SAMPLES = 1
31 | SENSOR_STATISTIC_ENABLED = 3
32 | SENSOR_STATISTIC_PRINT_COUNT = 50
33 |
34 | SENSOR_SERVICE = gyro
35 | SENSOR_PROVIDER = native
36 | SENSOR_RATE = 100
37 | SENSOR_SAMPLES = 1
38 | SENSOR_STATISTIC_ENABLED = 3
39 | SENSOR_STATISTIC_PRINT_COUNT = 50
40 |
41 | GNSS_POS_STATISTIC_ENABLED = 3
42 | GNSS_POS_STATISTIC_PRNTCNT = 10
43 | GNSS_MSR_STATISTIC_ENABLED = 3
44 | GNSS_MSR_STATISTIC_PRNTCNT = 10
45 |
46 |
--------------------------------------------------------------------------------
/MotoActions/src/com/moto/actions/dirac/DiracTileService.java:
--------------------------------------------------------------------------------
1 | package com.moto.actions.dirac;
2 |
3 | import android.service.quicksettings.Tile;
4 | import android.service.quicksettings.TileService;
5 |
6 | public class DiracTileService extends TileService {
7 |
8 | private DiracUtils mDiracUtils;
9 |
10 | @Override
11 | public void onStartListening() {
12 |
13 | mDiracUtils = new DiracUtils(getApplicationContext());
14 |
15 | boolean enhancerEnabled = mDiracUtils.isDiracEnabled();
16 |
17 | Tile tile = getQsTile();
18 | if (enhancerEnabled) {
19 | tile.setState(Tile.STATE_ACTIVE);
20 | } else {
21 | tile.setState(Tile.STATE_INACTIVE);
22 | }
23 |
24 | tile.updateTile();
25 |
26 | super.onStartListening();
27 |
28 | }
29 |
30 | @Override
31 | public void onClick() {
32 | Tile tile = getQsTile();
33 | if (mDiracUtils.isDiracEnabled()) {
34 | mDiracUtils.setEnabled(false);
35 | tile.setState(Tile.STATE_INACTIVE);
36 | } else {
37 | mDiracUtils.setEnabled(true);
38 | tile.setState(Tile.STATE_ACTIVE);
39 | }
40 | tile.updateTile();
41 | super.onClick();
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/MotoActions/src/com/moto/actions/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 com.moto.actions.dirac;
18 |
19 | import android.os.Bundle;
20 | import android.preference.PreferenceActivity;
21 |
22 | public class DiracActivity extends PreferenceActivity {
23 |
24 | private static final String TAG_DIRAC = "dirac";
25 |
26 | @Override
27 | protected void onCreate(Bundle savedInstanceState) {
28 | super.onCreate(savedInstanceState);
29 |
30 | getFragmentManager().beginTransaction().replace(android.R.id.content,
31 | new DiracSettingsFragment(), TAG_DIRAC).commit();
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_vibrate.xml:
--------------------------------------------------------------------------------
1 |
13 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/pocketmode/src/org/lineageos/pocketmode/BootCompletedReceiver.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2016 The CyanogenMod 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.pocketmode;
18 |
19 | import android.content.BroadcastReceiver;
20 | import android.content.Context;
21 | import android.content.Intent;
22 | import android.util.Log;
23 |
24 | public class BootCompletedReceiver extends BroadcastReceiver {
25 |
26 | private static final String TAG = "MotoPocketMode";
27 |
28 | @Override
29 | public void onReceive(final Context context, Intent intent) {
30 | Log.d(TAG, "Starting");
31 | context.startService(new Intent(context, PocketModeService.class));
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/releasetools/releasetools.py:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2016 The CyanogenMod Project
2 | # Copyright (C) 2017 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 | def IncrementalOTA_InstallEnd(info):
18 | ReplaceDeviceConfig(info)
19 |
20 | def FullOTA_InstallEnd(info):
21 | ReplaceDeviceConfig(info)
22 |
23 | def ReplaceDeviceConfig(info):
24 | info.script.Mount("/vendor")
25 | info.script.Mount("/system")
26 | info.script.AppendExtra('ui_print("Checking DTV, NFC and compass support");')
27 | info.script.AppendExtra('ui_print("Moving gapps config file...");')
28 | info.script.AppendExtra('run_program("/sbin/sh", "/vendor/bin/check_features.sh");')
29 | info.script.Unmount("/vendor")
30 | info.script.Unmount("/system")
31 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_fingerprint_default.te:
--------------------------------------------------------------------------------
1 | allow hal_fingerprint_default sysfs_fpc:file rw_file_perms;
2 | allow hal_fingerprint_default sysfs_fpc:dir r_dir_perms;
3 | allow hal_fingerprint_default fpc_data_file:dir rw_dir_perms;
4 | allow hal_fingerprint_default tee_device:chr_file rw_file_perms;
5 | allow hal_fingerprint_default firmware_file:dir search;
6 | allow hal_fingerprint_default firmware_file:file r_file_perms;
7 | allow hal_fingerprint_default sysfs_graphics:dir r_dir_perms;
8 | allow hal_fingerprint_default sysfs_graphics:file r_file_perms;
9 | allow hal_fingerprint_default sysfs_leds:dir r_dir_perms;
10 | allow hal_fingerprint_default sysfs_leds:file r_file_perms;
11 | allow hal_fingerprint_default uhid_device:chr_file rw_file_perms;
12 |
13 | allow hal_fingerprint_default default_android_hwservice:hwservice_manager { add };
14 | allow hal_fingerprint_default unlabeled:dir search;
15 | allow hal_fingerprint_default unlabeled:file { getattr open read };
16 | allow hal_fingerprint_default fingerprintd_data_file:dir { add_name getattr remove_name search write };
17 | allow hal_fingerprint_default system_data_file:dir { add_name getattr create write };
18 | allow hal_fingerprint_default system_data_file:file create;
19 | allow hal_fingerprint_default fingerprintd_data_file:file { getattr rename unlink };
20 |
--------------------------------------------------------------------------------
/MotoActions/res/xml/doze_panel_indexable.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
21 |
22 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/MotoActions/res/xml/screen_off_gesture_panel_indexable.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
20 |
21 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SystemUI/res-keyguard/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 |
23 |
24 | 2000000
25 |
26 |
27 | 5500000
28 |
29 |
--------------------------------------------------------------------------------
/MotoActions/res/xml/fp_gesture_panel_indexable.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
21 |
22 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/MotoActions/src/com/moto/actions/ActionsPreferenceActivity.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2016 The CyanogenMod 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 com.moto.actions;
18 |
19 | import android.os.Bundle;
20 | import android.preference.PreferenceActivity;
21 |
22 | public class ActionsPreferenceActivity extends PreferenceActivity {
23 |
24 | @Override
25 | protected void onCreate(Bundle savedInstanceState) {
26 | super.onCreate(savedInstanceState);
27 |
28 | if (getActionBar() != null) {
29 | getActionBar().setDisplayHomeAsUpEnabled(true);
30 | }
31 |
32 | getFragmentManager().beginTransaction()
33 | .replace(android.R.id.content, new ActionsPreferenceFragment()).commit();
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/MotoActions/src/com/moto/actions/GestureSettingsActivity.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2016 The CyanogenMod 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 com.moto.actions;
18 |
19 | import android.os.Bundle;
20 |
21 | import android.preference.PreferenceActivity;
22 |
23 | public class GestureSettingsActivity extends PreferenceActivity {
24 |
25 | @Override
26 | protected void onCreate(Bundle savedInstanceState) {
27 | super.onCreate(savedInstanceState);
28 |
29 | if (getActionBar() != null) {
30 | getActionBar().setDisplayHomeAsUpEnabled(true);
31 | }
32 |
33 | getFragmentManager().beginTransaction()
34 | .replace(android.R.id.content, new GestureSettingsFragment()).commit();
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_swipe_left.xml:
--------------------------------------------------------------------------------
1 |
13 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_swipe_right.xml:
--------------------------------------------------------------------------------
1 |
13 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/setup-makefiles.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #
3 | # Copyright (C) 2016 The CyanogenMod 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 | set -e
19 |
20 | # Required!
21 | DEVICE=sanders
22 | VENDOR=motorola
23 |
24 | # Load extractutils and do some sanity checks
25 | MY_DIR="${BASH_SOURCE%/*}"
26 | if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi
27 |
28 | CM_ROOT="$MY_DIR"/../../..
29 |
30 | HELPER="$CM_ROOT"/vendor/cm/build/tools/extract_utils.sh
31 | if [ ! -f "$HELPER" ]; then
32 | echo "Unable to find helper script at $HELPER"
33 | exit 1
34 | fi
35 | . "$HELPER"
36 |
37 | # Initialize the helper
38 | setup_vendor "$DEVICE" "$VENDOR" "$CM_ROOT"
39 |
40 | # Copyright headers and guards
41 | write_headers
42 |
43 | # The standard blobs
44 | write_makefiles "$MY_DIR"/proprietary-files.txt
45 |
46 | # We are done!
47 | write_footers
48 |
--------------------------------------------------------------------------------
/MotoActions/src/com/moto/actions/DozeSettingsActivity.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2016 The CyanogenMod 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 com.moto.actions;
18 |
19 | import android.os.Bundle;
20 | import android.preference.PreferenceActivity;
21 |
22 | public class DozeSettingsActivity extends PreferenceActivity {
23 |
24 | @Override
25 | protected void onCreate(Bundle savedInstanceState) {
26 | super.onCreate(savedInstanceState);
27 | if (getActionBar() != null) {
28 | getActionBar().setDisplayHomeAsUpEnabled(true);
29 | getActionBar().setTitle(R.string.ambient_display_title);
30 | }
31 |
32 | getFragmentManager().beginTransaction()
33 | .replace(android.R.id.content, new DozeSettingsFragment()).commit();
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_settings_gestures_dashboard.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
22 |
30 |
31 |
--------------------------------------------------------------------------------
/overlay/packages/apps/CellBroadcastReceiver/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 | true
23 |
24 | true
25 |
26 | true
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/MotoActions/src/com/moto/actions/FPGestureSettingsActivity.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2016 The CyanogenMod 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 com.moto.actions;
18 |
19 | import android.os.Bundle;
20 |
21 | import android.preference.PreferenceActivity;
22 |
23 | public class FPGestureSettingsActivity extends PreferenceActivity {
24 |
25 | @Override
26 | protected void onCreate(Bundle savedInstanceState) {
27 | super.onCreate(savedInstanceState);
28 |
29 | if (getActionBar() != null) {
30 | getActionBar().setDisplayHomeAsUpEnabled(true);
31 | getActionBar().setTitle(R.string.fingerprint_gestures_title);
32 | }
33 |
34 | getFragmentManager().beginTransaction()
35 | .replace(android.R.id.content, new FPGestureSettingsFragment()).commit();
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/rootdir/etc/init.mmi.boot.sh:
--------------------------------------------------------------------------------
1 | #!/vendor/bin/sh
2 |
3 | PATH=/sbin:/vendor/bin
4 | export PATH
5 |
6 | scriptname=${0##*/}
7 |
8 | # We take this from cpuinfo because hex "letters" are lowercase there - (lolwhat)
9 | cinfo=`getprop ro.boot.hwrev`
10 | hw=${cinfo#???}
11 |
12 | # Now "cook" the value so it can be matched against devtree names
13 | m2=${hw%?}
14 | minor2=${hw#$m2}
15 | m1=${m2%?}
16 | minor1=${m2#$m1}
17 | if [ "$minor2" == "0" ]; then
18 | minor2=""
19 | if [ "$minor1" == "0" ]; then
20 | minor1=""
21 | fi
22 | fi
23 |
24 | rev="p${hw%??}$minor1$minor2"
25 | rev2=`echo $rev | tr '[:upper:]' '[:lower:]'`
26 |
27 | setprop ro.boot.hardware.revision $rev2
28 | unset hw cinfo m1 m2 minor1 minor2
29 |
30 | # Let kernel know our image version/variant/crm_version
31 | if [ -f /sys/devices/soc0/select_image ]; then
32 | image_version="10:"
33 | image_version+=`getprop ro.build.id`
34 | image_version+=":"
35 | image_version+=`getprop ro.build.version.incremental`
36 | image_variant=`getprop ro.product.name`
37 | image_variant+="-"
38 | image_variant+=`getprop ro.build.type`
39 | oem_version=`getprop ro.build.version.codename`
40 | echo 10 > /sys/devices/soc0/select_image
41 | echo $image_version > /sys/devices/soc0/image_version
42 | echo $image_variant > /sys/devices/soc0/image_variant
43 | echo $oem_version > /sys/devices/soc0/image_crm_version
44 | fi
45 |
46 | insmod /vendor/lib/modules/isdbt.ko
47 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_tap_hold.xml:
--------------------------------------------------------------------------------
1 |
13 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/overlay/packages/apps/Snap/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 |
20 | false
21 |
22 |
23 | false
24 |
25 |
26 | true
27 |
28 |
29 | true
30 |
31 |
33 | 1280x960
34 |
35 |
36 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_derp_kcal_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 | -
19 |
23 |
24 |
30 |
31 |
--------------------------------------------------------------------------------
/MotoActions/res/xml/doze_panel.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
19 |
20 |
26 |
27 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vendor_init.te:
--------------------------------------------------------------------------------
1 | allow vendor_init camera_data_file:dir { create setattr };
2 | allow vendor_init media_rw_data_file:file { getattr relabelfrom };
3 | allow vendor_init media_rw_data_file:dir setattr;
4 | allow vendor_init rootfs:dir { add_name write };
5 | allow vendor_init system_data_file:dir { add_name create setattr write };
6 | allow vendor_init time_data_file:dir setattr;
7 | allow vendor_init adsprpcd_file:lnk_file create;
8 | allow vendor_init firmware_file:lnk_file create;
9 | allow vendor_init tombstone_data_file:dir { add_name create search setattr write };
10 | allow vendor_init cutback_data_file:dir { create setattr };
11 | allow vendor_init dbvc_data_file:dir { create setattr };
12 | allow vendor_init moodle_data_file:dir { create setattr };
13 | allow vendor_init sds_data_file:dir { create setattr };
14 | allow vendor_init wapi_supplicant_data_file:dir { create setattr };
15 | allow vendor_init fingerprintd_data_file:dir { create setattr };
16 | allow vendor_init adspd_data_file:dir setattr;
17 | allow vendor_init usermodehelper:file write;
18 | allow vendor_init netmgr_data_file:dir { create setattr };
19 | allow vendor_init time_data_file:dir create;
20 | allow vendor_init adspd_data_file:dir create;
21 |
22 | allow vendor_init persist_camera_file:dir { setattr search };
23 | allow vendor_init persist_modem_file:dir setattr;
24 | allow vendor_init persist_audio_file:dir setattr;
25 | allow vendor_init pds_public_file:dir { setattr search };
26 | allow vendor_init unlabeled:file write;
27 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_derp_dirac_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 | -
19 |
23 |
24 |
30 |
31 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_derp_ambient_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 | -
19 |
23 |
24 |
30 |
31 |
--------------------------------------------------------------------------------