├── Android.bp
├── sepolicy
├── vendor
│ ├── app.te
│ ├── hal_cas_default.te
│ ├── ims.te
│ ├── wcnss_service.te
│ ├── hal_imsrtp.te
│ ├── mediacodec.te
│ ├── per_mgr.te
│ ├── netmgrd.te
│ ├── hal_light_default.te
│ ├── fm_app.te
│ ├── hal_memtrack_default.te
│ ├── kernel.te
│ ├── hal_bootctl_default.te
│ ├── hal_graphics_composer_default.te
│ ├── zygote.te
│ ├── bootanim.te
│ ├── healthd.te
│ ├── hal_wifi_default.te
│ ├── fsck.te
│ ├── hal_vibrator_default.te
│ ├── fsck_untrusted.te
│ ├── nfc.te
│ ├── hwservice.te
│ ├── installd.te
│ ├── tee.te
│ ├── vold.te
│ ├── hvdcp.te
│ ├── property.te
│ ├── radio.te
│ ├── init_wifi.te
│ ├── hal_nfc_default.te
│ ├── hal_audio_default.te
│ ├── hal_health_default.te
│ ├── platform_app.te
│ ├── hal_sensors_default.te
│ ├── init.te
│ ├── hal_camera_default.te
│ ├── rmt_storage.te
│ ├── vendor_init.te
│ ├── hal_power_default.te
│ ├── thermal-engine.te
│ ├── qti_init_shell.te
│ ├── rild.te
│ ├── system_server.te
│ ├── hwservice_contexts
│ ├── system_app.te
│ ├── file.te
│ ├── perfd.te
│ └── hal_fingerprint_fpc.te
└── private
│ ├── file.te
│ ├── system_server.te
│ ├── untrusted_app.te
│ ├── app.te
│ ├── file_contexts
│ └── system_app.te
├── MotoActions
├── proguard.flags
├── res
│ ├── drawable
│ │ ├── bell.png
│ │ ├── home.png
│ │ ├── part.png
│ │ ├── tap.png
│ │ ├── deluxe.png
│ │ ├── ic_doze.png
│ │ ├── image1.jpg
│ │ ├── image2.jpg
│ │ ├── image3.jpg
│ │ ├── image4.jpg
│ │ ├── pickup.png
│ │ ├── xiaomi.png
│ │ ├── dirac_png.png
│ │ ├── ambient_png.png
│ │ ├── gesture_png.png
│ │ ├── hand_series.png
│ │ ├── ic_actions.png
│ │ ├── ic_gesture.png
│ │ ├── smartphone.png
│ │ ├── speedometer.png
│ │ ├── fpgesture_png.png
│ │ ├── ic_fpgestures.png
│ │ ├── screenoff_png.png
│ │ ├── calibration_png.png
│ │ ├── ic_devicegestures.png
│ │ ├── motoactions_png.png
│ │ ├── ic_settings_gestures.png
│ │ ├── king.svg
│ │ ├── ic_preset.xml
│ │ ├── dirac_qs_tile_icon.xml
│ │ ├── ic_settings_doze.xml
│ │ ├── ic_headphone.xml
│ │ ├── ic_restore.xml
│ │ ├── ic_qs_log.xml
│ │ ├── ic_pickup.xml
│ │ ├── ic_hand.xml
│ │ ├── switchbar_background.xml
│ │ ├── image_layout.xml
│ │ ├── ic_vibrate.xml
│ │ ├── ic_settings_kcal.xml
│ │ ├── ic_swipe_left.xml
│ │ ├── ic_swipe_right.xml
│ │ ├── ic_settings_gestures_dashboard.xml
│ │ ├── ic_tap_hold.xml
│ │ ├── ic_settings_dirac.xml
│ │ ├── ic_settings_gesturess.xml
│ │ ├── ic_settings_gestures.xml
│ │ ├── ic_settings_screen_off_gestures.xml
│ │ ├── ic_tap.xml
│ │ └── ic_settings_spectrum.xml
│ ├── values
│ │ ├── attrs.xml
│ │ ├── colors.xml
│ │ └── dimens.xml
│ ├── menu
│ │ └── kcal_menu.xml
│ ├── color
│ │ ├── flip.xml
│ │ ├── chop.xml
│ │ ├── pick.xml
│ │ ├── pick2.xml
│ │ ├── pick3.xml
│ │ └── quick.xml
│ ├── layout
│ │ ├── display_cal.xml
│ │ ├── gesture.xml
│ │ ├── actions.xml
│ │ ├── doze.xml
│ │ └── fp_gesture.xml
│ └── xml
│ │ ├── doze_panel_indexable.xml
│ │ ├── fp_gesture_panel_indexable.xml
│ │ ├── screen_off_gesture_panel_indexable.xml
│ │ └── doze_panel.xml
├── Android.bp
├── src
│ └── com
│ │ └── moto
│ │ └── actions
│ │ ├── SensorAction.java
│ │ ├── actions
│ │ └── UpdatedStateNotifier.java
│ │ ├── doze
│ │ ├── ScreenStateNotifier.java
│ │ └── ScreenReceiver.java
│ │ ├── util
│ │ └── NonScrollListView.java
│ │ ├── ActionsPreferenceActivity.java
│ │ ├── GestureSettingsActivity.java
│ │ ├── DozeSettingsActivity.java
│ │ ├── FPGestureSettingsActivity.java
│ │ ├── GestureSettingsFragment.java
│ │ ├── ActionsPreferenceFragment.java
│ │ └── SuTask.java
└── res-common
│ └── values-en-rUS
│ └── custom_strings.xml
├── pocketmode
├── proguard.flags
├── Android.mk
└── src
│ └── org
│ └── lineageos
│ └── pocketmode
│ └── Startup.java
├── wifi
├── p2p_supplicant_overlay.conf
├── wifi_concurrency_cfg.txt
└── wpa_supplicant_overlay.conf
├── location
├── gps_vendor_product.mk
├── loc_sll_if
│ ├── Android.mk
│ └── if
│ │ └── Android.mk
├── Android.mk
├── gnsspps
│ ├── gnsspps.pc.in
│ ├── Android.mk
│ └── Makefile.am
├── izat_api
│ └── Android.mk
├── client_api_testapp
│ ├── location_client_api_testapp.pc.in
│ └── Makefile.am
├── client_api
│ ├── location-client-api.pc.in
│ └── README
├── loc_net_iface
│ ├── loc-net-iface.pc.in
│ └── Makefile.am
├── location_hal_daemon
│ ├── location-hal-daemon.pc.in
│ └── Makefile.am
├── build
│ └── target_specific_features.mk
└── synergy_loc_api
│ └── Android.mk
├── rro_overlays
├── WifiOverlay
│ ├── Android.bp
│ └── AndroidManifest.xml
├── TetheringOverlay
│ ├── Android.bp
│ ├── AndroidManifest.xml
│ └── res
│ │ └── values
│ │ └── config.xml
└── CarrierConfigOverlay
│ ├── Android.bp
│ └── AndroidManifest.xml
├── configs
├── msm_irqbalance.conf
├── msm_irqbalance_sdm630.conf
├── public.libraries.txt
├── sprint_apns.xml
├── android.hardware.camera.ar.xml
├── component-overrides.xml
├── boost_apns.xml
└── lm
│ └── AdaptLaunchFeature.xml
├── gps
├── android
│ ├── 2.0
│ │ └── android.hardware.gnss@2.0-service-qti.rc
│ ├── 1.0
│ │ ├── android.hardware.gnss@1.0-service-qti.rc
│ │ └── android.hardware.gnss@1.0-service-qti.xml
│ ├── 1.1
│ │ ├── android.hardware.gnss@1.1-service-qti.rc
│ │ └── android.hardware.gnss@1.1-service-qti.xml
│ ├── Android.mk
│ └── utils
│ │ └── Android.mk
├── Android.mk
├── Makefile.am
├── gps_vendor_board.mk
├── core
│ ├── loc-core.pc.in
│ └── Android.mk
├── utils
│ ├── gps-utils.pc.in
│ └── Android.mk
├── location
│ ├── location-api.pc.in
│ ├── Android.mk
│ └── Makefile.am
├── batching
│ ├── location-batching.pc.in
│ ├── Android.mk
│ └── Makefile.am
├── geofence
│ ├── location-geofence.pc.in
│ ├── Android.mk
│ └── Makefile.am
├── loc-hal.pc.in
├── gps_vendor_product.mk
├── pla
│ └── Android.mk
├── gnss
│ ├── Makefile.am
│ └── Android.mk
└── etc
│ ├── apdr.conf
│ ├── Android.mk
│ └── lowi.conf
├── seccomp
├── mediaextractor-seccomp.policy
└── mediacodec-seccomp.policy
├── thermal
├── android.hardware.thermal@1.1-service.sdm660.rc
└── Android.bp
├── recovery
└── root
│ ├── init.recovery.sdm660.rc
│ ├── init.recovery.qcom.rc
│ └── init.recovery.qcom.usb.rc
├── soong
├── main.go
├── Android.bp
└── init.go
├── README.md
├── power-libperfmgr
├── libperfmgr
│ ├── TEST_MAPPING
│ └── include
│ │ └── perfmgr
│ │ ├── PropertyNode.h
│ │ └── FileNode.h
└── hidl
│ ├── android.hardware.power@1.3-service.moto_sdm660.xml
│ └── android.hardware.power@1.3-service.moto_sdm660-libperfmgr.rc
├── 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
│ │ └── SettingsProvider
│ │ │ └── res
│ │ │ └── values
│ │ │ └── defaults.xml
│ │ └── core
│ │ └── res
│ │ └── res
│ │ ├── values-land
│ │ └── dimens.xml
│ │ ├── values-mcc204-mnc04
│ │ └── config.xml
│ │ ├── values-mcc310-mnc004
│ │ └── config.xml
│ │ └── values-mcc310-mnc410
│ │ └── config.xml
├── packages
│ ├── apps
│ │ ├── Dialer
│ │ │ └── java
│ │ │ │ └── com
│ │ │ │ └── android
│ │ │ │ └── dialer
│ │ │ │ └── callrecord
│ │ │ │ └── res
│ │ │ │ └── values
│ │ │ │ └── config.xml
│ │ ├── Snap
│ │ │ └── res
│ │ │ │ └── values
│ │ │ │ ├── cm_strings.xml
│ │ │ │ ├── qcomstrings.xml
│ │ │ │ └── config.xml
│ │ └── Settings
│ │ │ └── res
│ │ │ └── values
│ │ │ ├── arrays.xml
│ │ │ └── config.xml
│ └── services
│ │ └── Telephony
│ │ └── res
│ │ ├── values-mcc310-mnc120
│ │ └── config.xml
│ │ └── values
│ │ └── config.xml
└── lineage-sdk
│ └── packages
│ └── LineageSettingsProvider
│ └── res
│ └── values
│ └── defaults.xml
├── lineage.dependencies
├── keymaster_3.xml
├── keymaster_4.xml
├── light
├── android.hardware.light@2.0-service.sdm660.xml
├── Android.bp
├── android.hardware.light@2.0-service.sdm660.rc
├── service.cpp
└── Light.h
├── libshims
├── Android.bp
├── jstring.h
└── Android.mk
├── rootdir
└── bin
│ └── wlan_carrier_bin.sh
├── init
├── DeviceLibinit.cpp
├── DeviceLibinit.h
└── Android.bp
├── odm_manifest_qcril.xml
├── setup-makefiles.sh
├── libhidl
└── Android.mk
└── mot_aids.fs
/Android.bp:
--------------------------------------------------------------------------------
1 | soong_namespace {
2 | }
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/app.te:
--------------------------------------------------------------------------------
1 | get_prop(appdomain, exported_camera_prop)
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_cas_default.te:
--------------------------------------------------------------------------------
1 | vndbinder_use(hal_cas_default)
2 |
--------------------------------------------------------------------------------
/MotoActions/proguard.flags:
--------------------------------------------------------------------------------
1 | -keep class com.moto.actions.* {
2 | *;
3 | }
4 |
--------------------------------------------------------------------------------
/sepolicy/vendor/ims.te:
--------------------------------------------------------------------------------
1 | dontaudit ims diag_device:chr_file rw_file_perms;
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/wcnss_service.te:
--------------------------------------------------------------------------------
1 | get_prop(wcnss_service, moto_boot_prop)
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_imsrtp.te:
--------------------------------------------------------------------------------
1 | allow hal_imsrtp diag_device:chr_file { read write };
--------------------------------------------------------------------------------
/sepolicy/vendor/mediacodec.te:
--------------------------------------------------------------------------------
1 | unix_socket_connect(mediacodec, perfd, perfd)
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/per_mgr.te:
--------------------------------------------------------------------------------
1 | allow vendor_per_mgr self:capability { net_raw };
2 |
--------------------------------------------------------------------------------
/pocketmode/proguard.flags:
--------------------------------------------------------------------------------
1 | -keep class org.lineageos.pocketmode.* {
2 | *;
3 | }
4 |
--------------------------------------------------------------------------------
/sepolicy/vendor/netmgrd.te:
--------------------------------------------------------------------------------
1 | allow netmgrd diag_device:chr_file {open read write };
2 |
--------------------------------------------------------------------------------
/sepolicy/private/file.te:
--------------------------------------------------------------------------------
1 | # Fingerprint
2 | type sysfs_fps_proximity, sysfs_type, fs_type;
3 |
--------------------------------------------------------------------------------
/sepolicy/private/system_server.te:
--------------------------------------------------------------------------------
1 | get_prop(system_server, vendor_persist_camera_prop)
2 |
--------------------------------------------------------------------------------
/sepolicy/private/untrusted_app.te:
--------------------------------------------------------------------------------
1 | get_prop(untrusted_app, vendor_persist_camera_prop)
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_light_default.te:
--------------------------------------------------------------------------------
1 | allow hal_light_default sysfs_leds:file rw_file_perms;
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/fm_app.te:
--------------------------------------------------------------------------------
1 | # FM2 app (com.caf.fmradio)
2 | get_prop(vendor_fm_app, vendor_fm_prop)
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_memtrack_default.te:
--------------------------------------------------------------------------------
1 | allow hal_memtrack_default sysfs_kgsl:lnk_file read;
2 |
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/kernel.te:
--------------------------------------------------------------------------------
1 | r_dir_file(kernel, debugfs_wlan)
2 | allow kernel self:socket create;
3 |
--------------------------------------------------------------------------------
/wifi/p2p_supplicant_overlay.conf:
--------------------------------------------------------------------------------
1 | disable_scan_offload=1
2 | p2p_no_group_iface=1
3 | persistent_reconnect=1
4 |
--------------------------------------------------------------------------------
/wifi/wifi_concurrency_cfg.txt:
--------------------------------------------------------------------------------
1 | ENABLE_STA_SAP_CONCURRENCY:1
2 | SAP_INTERFACE_NAME:softap0
3 | SAP_CHANNEL:6
4 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_bootctl_default.te:
--------------------------------------------------------------------------------
1 | allow hal_bootctl_default modem_efs_partition_device:blk_file getattr;
2 |
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_graphics_composer_default.te:
--------------------------------------------------------------------------------
1 | allow hal_graphics_composer_default sysfs_graphics:file r_file_perms;
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/zygote.te:
--------------------------------------------------------------------------------
1 | get_prop(zygote, exported_camera_prop)
2 | dontaudit zygote proc_cmdline:file r_file_perms;
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/bootanim.te:
--------------------------------------------------------------------------------
1 | allow bootanim sysfs_kgsl:dir search;
2 | get_prop(bootanim, userspace_reboot_exported_prop)
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/healthd.te:
--------------------------------------------------------------------------------
1 | allow healthd sysfs_healthd:dir r_dir_perms;
2 | allow healthd sysfs_healthd:file rw_file_perms;
3 |
--------------------------------------------------------------------------------
/sepolicy/private/app.te:
--------------------------------------------------------------------------------
1 | # Allow appdomain to get vendor_persist_camera_prop
2 | get_prop(appdomain, vendor_persist_camera_prop)
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_wifi_default.te:
--------------------------------------------------------------------------------
1 | allow hal_wifi_default sysfs_wifi:file w_file_perms;
2 | allow hal_wifi_default proc_net:file w_file_perms;
3 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/bell.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sdm660-common/eleven/MotoActions/res/drawable/bell.png
--------------------------------------------------------------------------------
/MotoActions/res/drawable/home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sdm660-common/eleven/MotoActions/res/drawable/home.png
--------------------------------------------------------------------------------
/MotoActions/res/drawable/part.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sdm660-common/eleven/MotoActions/res/drawable/part.png
--------------------------------------------------------------------------------
/MotoActions/res/drawable/tap.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sdm660-common/eleven/MotoActions/res/drawable/tap.png
--------------------------------------------------------------------------------
/sepolicy/vendor/fsck.te:
--------------------------------------------------------------------------------
1 | allow fsck modem_block_device:blk_file rw_file_perms;
2 | dontaudit fsck self:capability { dac_override dac_read_search };
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_vibrator_default.te:
--------------------------------------------------------------------------------
1 | r_dir_file(hal_vibrator_default, sysfs_leds)
2 | allow hal_vibrator_default sysfs_leds:file rw_file_perms;
3 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/deluxe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sdm660-common/eleven/MotoActions/res/drawable/deluxe.png
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_doze.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sdm660-common/eleven/MotoActions/res/drawable/ic_doze.png
--------------------------------------------------------------------------------
/MotoActions/res/drawable/image1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sdm660-common/eleven/MotoActions/res/drawable/image1.jpg
--------------------------------------------------------------------------------
/MotoActions/res/drawable/image2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sdm660-common/eleven/MotoActions/res/drawable/image2.jpg
--------------------------------------------------------------------------------
/MotoActions/res/drawable/image3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sdm660-common/eleven/MotoActions/res/drawable/image3.jpg
--------------------------------------------------------------------------------
/MotoActions/res/drawable/image4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sdm660-common/eleven/MotoActions/res/drawable/image4.jpg
--------------------------------------------------------------------------------
/MotoActions/res/drawable/pickup.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sdm660-common/eleven/MotoActions/res/drawable/pickup.png
--------------------------------------------------------------------------------
/MotoActions/res/drawable/xiaomi.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sdm660-common/eleven/MotoActions/res/drawable/xiaomi.png
--------------------------------------------------------------------------------
/sepolicy/private/file_contexts:
--------------------------------------------------------------------------------
1 | # Fingerprint
2 | /sys/devices/soc/soc:fpc_fpc1020/proximity_state u:object_r:sysfs_fps_proximity:s0
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/fsck_untrusted.te:
--------------------------------------------------------------------------------
1 | r_dir_file(fsck_untrusted, sysfs_dm)
2 |
3 | # /data/media
4 | allow fsck_untrusted media_rw_data_file:dir getattr;
5 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/dirac_png.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sdm660-common/eleven/MotoActions/res/drawable/dirac_png.png
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ambient_png.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sdm660-common/eleven/MotoActions/res/drawable/ambient_png.png
--------------------------------------------------------------------------------
/MotoActions/res/drawable/gesture_png.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sdm660-common/eleven/MotoActions/res/drawable/gesture_png.png
--------------------------------------------------------------------------------
/MotoActions/res/drawable/hand_series.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sdm660-common/eleven/MotoActions/res/drawable/hand_series.png
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_actions.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sdm660-common/eleven/MotoActions/res/drawable/ic_actions.png
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_gesture.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sdm660-common/eleven/MotoActions/res/drawable/ic_gesture.png
--------------------------------------------------------------------------------
/MotoActions/res/drawable/smartphone.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sdm660-common/eleven/MotoActions/res/drawable/smartphone.png
--------------------------------------------------------------------------------
/MotoActions/res/drawable/speedometer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sdm660-common/eleven/MotoActions/res/drawable/speedometer.png
--------------------------------------------------------------------------------
/sepolicy/vendor/nfc.te:
--------------------------------------------------------------------------------
1 | allow nfc nfc_vendor_data_file:dir rw_dir_perms;
2 | allow nfc nfc_vendor_data_file:file create_file_perms;
3 | get_prop(nfc, moto_boot_prop)
4 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/fpgesture_png.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sdm660-common/eleven/MotoActions/res/drawable/fpgesture_png.png
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_fpgestures.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sdm660-common/eleven/MotoActions/res/drawable/ic_fpgestures.png
--------------------------------------------------------------------------------
/MotoActions/res/drawable/screenoff_png.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sdm660-common/eleven/MotoActions/res/drawable/screenoff_png.png
--------------------------------------------------------------------------------
/MotoActions/res/drawable/calibration_png.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sdm660-common/eleven/MotoActions/res/drawable/calibration_png.png
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_devicegestures.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sdm660-common/eleven/MotoActions/res/drawable/ic_devicegestures.png
--------------------------------------------------------------------------------
/MotoActions/res/drawable/motoactions_png.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sdm660-common/eleven/MotoActions/res/drawable/motoactions_png.png
--------------------------------------------------------------------------------
/location/gps_vendor_product.mk:
--------------------------------------------------------------------------------
1 | # vendor opensource packages
2 | PRODUCT_PACKAGES += libloc_api_v02
3 | PRODUCT_PACKAGES += libgnsspps
4 | PRODUCT_PACKAGES += libsynergy_loc_api
5 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_settings_gestures.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_motorola_sdm660-common/eleven/MotoActions/res/drawable/ic_settings_gestures.png
--------------------------------------------------------------------------------
/location/loc_sll_if/Android.mk:
--------------------------------------------------------------------------------
1 | ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),)
2 | LOCAL_PATH := $(call my-dir)
3 |
4 | include $(call all-makefiles-under,$(LOCAL_PATH))
5 | endif
6 |
--------------------------------------------------------------------------------
/rro_overlays/WifiOverlay/Android.bp:
--------------------------------------------------------------------------------
1 | runtime_resource_overlay {
2 | name: "WifiOverlay",
3 | resource_dirs: ["res"],
4 | sdk_version: "current",
5 | proprietary: true
6 | }
7 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hwservice.te:
--------------------------------------------------------------------------------
1 | type fpc_extension_service, hwservice_manager_type;
2 |
3 | type nxpese_hwservice, hwservice_manager_type;
4 | type nxpnfc_hwservice, hwservice_manager_type;
5 |
--------------------------------------------------------------------------------
/configs/msm_irqbalance.conf:
--------------------------------------------------------------------------------
1 | PRIO=1,1,0,0,0,0,0,0
2 | #arch_timer, arm-pmu, arch_mem_timer, glink-smem-rpm, mpm irqs
3 | IGNORED_IRQ=19,22,39,200,203
4 | #WLAN irqs
5 | BLACKLIST_IRQ=446,455,456
6 |
--------------------------------------------------------------------------------
/gps/android/2.0/android.hardware.gnss@2.0-service-qti.rc:
--------------------------------------------------------------------------------
1 | service gnss_service /vendor/bin/hw/android.hardware.gnss@2.0-service-qti
2 | class hal
3 | user gps
4 | group system gps radio
5 |
--------------------------------------------------------------------------------
/seccomp/mediaextractor-seccomp.policy:
--------------------------------------------------------------------------------
1 | # device specific syscalls.
2 | # extension of services/mediaextractor/minijail/seccomp_policy/mediaextractor-seccomp-arm.policy
3 | readlinkat: 1
4 | pread64: 1
5 |
--------------------------------------------------------------------------------
/sepolicy/vendor/installd.te:
--------------------------------------------------------------------------------
1 | allow installd bt_firmware_file:filesystem quotaget;
2 | allow installd firmware_file:filesystem quotaget;
3 | allow installd fsg_firmware_file:filesystem quotaget;
4 |
5 |
--------------------------------------------------------------------------------
/configs/msm_irqbalance_sdm630.conf:
--------------------------------------------------------------------------------
1 | PRIO=1,1,1,1,0,0,0,0
2 | #arch_timer, arm-pmu, arch_mem_timer, glink-smem-rpm, mpm irqs
3 | IGNORED_IRQ=19,22,39,200,203
4 | #WLAN irqs
5 | BLACKLIST_IRQ=446,455,456
6 |
--------------------------------------------------------------------------------
/rro_overlays/TetheringOverlay/Android.bp:
--------------------------------------------------------------------------------
1 | runtime_resource_overlay {
2 | name: "TetheringConfigOverlay",
3 | resource_dirs: ["res"],
4 | sdk_version: "current",
5 | proprietary: true
6 | }
7 |
--------------------------------------------------------------------------------
/sepolicy/vendor/tee.te:
--------------------------------------------------------------------------------
1 | typeattribute tee data_between_core_and_vendor_violators;
2 |
3 | allow tee fingerprintd_data_file:dir rw_dir_perms;
4 | allow tee fingerprintd_data_file:file create_file_perms;
5 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vold.te:
--------------------------------------------------------------------------------
1 | #============= vold ==============
2 | allow vold system_data_file:file { ioctl open };
3 |
4 | # For setting read_ahead_kb
5 | allow vold sysfs_mmc_host:file create_file_perms;
6 |
--------------------------------------------------------------------------------
/thermal/android.hardware.thermal@1.1-service.sdm660.rc:
--------------------------------------------------------------------------------
1 | service vendor.thermal-hal-1-1 /vendor/bin/hw/android.hardware.thermal@1.1-service.sdm660
2 | class hal
3 | user nobody
4 | group nobody
5 |
--------------------------------------------------------------------------------
/gps/android/1.0/android.hardware.gnss@1.0-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 vendor_qti_diag
5 |
--------------------------------------------------------------------------------
/gps/android/1.1/android.hardware.gnss@1.1-service-qti.rc:
--------------------------------------------------------------------------------
1 | service gnss_service /vendor/bin/hw/android.hardware.gnss@1.1-service-qti
2 | class hal
3 | user gps
4 | group system gps radio vendor_qti_diag
5 |
--------------------------------------------------------------------------------
/recovery/root/init.recovery.sdm660.rc:
--------------------------------------------------------------------------------
1 | import /init.recovery.usb.rc
2 |
3 | on fs
4 | wait /dev/block/platform/soc/c0c4000.sdhci
5 | symlink /dev/block/platform/soc/c0c4000.sdhci /dev/block/bootdevice
6 |
7 |
--------------------------------------------------------------------------------
/soong/main.go:
--------------------------------------------------------------------------------
1 | package sdm660
2 |
3 | import (
4 | "android/soong/android"
5 | )
6 |
7 | func init() {
8 | android.RegisterModuleType("motorola_sdm660_init_library_static", initLibraryFactory)
9 | }
10 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | Copyright 2018 - The LineageOS Project
2 |
3 | Device configuration for Motorola SDM660 Devices
4 | ======================================
5 |
6 | Supported devices :
7 |
8 | Payton, Evert, Chef, Beckham, Lake
9 |
--------------------------------------------------------------------------------
/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 | include $(call all-makefiles-under,$(LOCAL_PATH))
5 | endif
6 |
--------------------------------------------------------------------------------
/location/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 | include $(call all-makefiles-under,$(LOCAL_PATH))
5 | endif
--------------------------------------------------------------------------------
/sepolicy/vendor/hvdcp.te:
--------------------------------------------------------------------------------
1 | allow hvdcp sysfs_batteryinfo:dir r_dir_perms;
2 | allow hvdcp sysfs_batteryinfo:file r_file_perms;
3 | allow hvdcp sysfs_healthd:dir r_dir_perms;
4 | allow hvdcp sysfs_healthd:file r_file_perms;
5 |
--------------------------------------------------------------------------------
/sepolicy/vendor/property.te:
--------------------------------------------------------------------------------
1 | type power_prop, property_type;
2 | type moto_boot_prop, property_type;
3 | type hwrev_prop, property_type;
4 | type vendor_power_prop, property_type;
5 | type qemu_hw_mainkeys_prop, property_type;
6 |
--------------------------------------------------------------------------------
/sepolicy/vendor/radio.te:
--------------------------------------------------------------------------------
1 | binder_call(radio, cnd)
2 |
3 | allow radio hal_datafactory_hwservice:hwservice_manager find;
4 | allow radio hal_iwlan_hwservice:hwservice_manager find;
5 |
6 | get_prop(radio, vendor_qcom_ims_prop)
7 |
--------------------------------------------------------------------------------
/power-libperfmgr/libperfmgr/TEST_MAPPING:
--------------------------------------------------------------------------------
1 | {
2 | "presubmit": [
3 | {
4 | "name": "libperfmgr_test"
5 | }
6 | ],
7 | "pts-experimental": [
8 | {
9 | "name": "libperfmgr_test"
10 | }
11 | ]
12 | }
13 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/sepolicy/private/system_app.te:
--------------------------------------------------------------------------------
1 | get_prop(system_app, vendor_persist_camera_prop)
2 | binder_call(system_app, storaged)
3 | binder_call(system_app, system_suspend)
4 |
5 | # Allow PocketMode to work
6 | allow system_app sysfs_fps_proximity:file rw_file_perms;
7 |
--------------------------------------------------------------------------------
/rro_overlays/CarrierConfigOverlay/Android.bp:
--------------------------------------------------------------------------------
1 | runtime_resource_overlay {
2 | name: "CarrierConfigOverlay",
3 | theme: "CarrierConfigOverlay",
4 | sdk_version: "current",
5 | product_specific: true,
6 | aaptflags: ["--keep-raw-values"],
7 | }
8 |
--------------------------------------------------------------------------------
/sepolicy/vendor/init_wifi.te:
--------------------------------------------------------------------------------
1 | type init_wifi, domain;
2 | type init_wifi_exec, exec_type, vendor_file_type, file_type;
3 | init_daemon_domain(init_wifi)
4 |
5 | allow init_wifi sysfs:file { open write };
6 | allow init_wifi vendor_toolbox_exec:file execute_no_trans;
7 |
--------------------------------------------------------------------------------
/gps/gps_vendor_board.mk:
--------------------------------------------------------------------------------
1 | # Flags from BoardConfigVendor.mk
2 | ifneq ($(TARGET_USES_QMAA),true)
3 | BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := default
4 | else ifneq ($(TARGET_USES_QMAA_OVERRIDE_GPS),false)
5 | BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := default
6 | endif
7 |
8 |
--------------------------------------------------------------------------------
/wifi/wpa_supplicant_overlay.conf:
--------------------------------------------------------------------------------
1 | disable_scan_offload=1
2 | p2p_disabled=1
3 | tdls_external_control=1
4 | pmf=1
5 | bss_max_count=512
6 | interworking=1
7 | hs20=1
8 | auto_interworking=0
9 | bss_no_flush_when_down=1
10 | driver_param=use_p2p_group_interface=1
11 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/location/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 |
--------------------------------------------------------------------------------
/gps/batching/location-batching.pc.in:
--------------------------------------------------------------------------------
1 | prefix=@prefix@
2 | exec_prefix=@exec_prefix@
3 | libdir=@libdir@
4 | includedir=@includedir@
5 |
6 | Name: location-batching
7 | Description: QTI GPS Batching
8 | Version: @VERSION
9 | Libs: -L${libdir} -lbatching
10 | Cflags: -I${includedir}/location-batching
11 |
--------------------------------------------------------------------------------
/MotoActions/res/values/attrs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/gps/geofence/location-geofence.pc.in:
--------------------------------------------------------------------------------
1 | prefix=@prefix@
2 | exec_prefix=@exec_prefix@
3 | libdir=@libdir@
4 | includedir=@includedir@
5 |
6 | Name: location-geofence
7 | Description: QTI GPS Geofence
8 | Version: @VERSION
9 | Libs: -L${libdir} -lgeofencing
10 | Cflags: -I${includedir}/location-geofence
11 |
--------------------------------------------------------------------------------
/location/izat_api/Android.mk:
--------------------------------------------------------------------------------
1 | ifneq ($(BUILD_TINY_ANDROID),true)
2 |
3 | LOCAL_PATH := $(call my-dir)
4 |
5 | include $(CLEAR_VARS)
6 | LOCAL_MODULE := izat_remote_api_headers
7 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
8 | include $(BUILD_HEADER_LIBRARY)
9 |
10 | endif # not BUILD_TINY_ANDROID
11 |
--------------------------------------------------------------------------------
/recovery/root/init.recovery.qcom.rc:
--------------------------------------------------------------------------------
1 | import /init.recovery.qcom.usb.rc
2 | import /init.recovery.${ro.boot.device}.rc
3 |
4 | on fs
5 | wait /dev/block/platform/soc/c0c4000.sdhci
6 | symlink /dev/block/platform/soc/c0c4000.sdhci /dev/block/bootdevice
7 |
8 | setprop ro.build.system_root_image true
9 |
--------------------------------------------------------------------------------
/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/hal_nfc_default.te:
--------------------------------------------------------------------------------
1 | allow hal_nfc_default nfc_vendor_data_file:dir rw_dir_perms;
2 | allow hal_nfc_default nfc_vendor_data_file:file create_file_perms;
3 |
4 | allow hal_nfc_default nxpese_hwservice:hwservice_manager { add find };
5 | allow hal_nfc_default nxpnfc_hwservice:hwservice_manager { add find };
6 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SystemUI/res-keyguard/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | %s • Turbo Charging
6 |
7 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_audio_default.te:
--------------------------------------------------------------------------------
1 | unix_socket_connect(hal_audio_default, perfd, perfd)
2 |
3 | allow hal_audio_default persist_audio_file:dir rw_dir_perms;
4 | allow hal_audio_default persist_audio_file:file create_file_perms;
5 | allow hal_audio_default sysfs:dir { open read };
6 |
7 | r_dir_file(hal_audio_server, sysfs_input)
8 |
--------------------------------------------------------------------------------
/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/mediacodec-seccomp.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 |
--------------------------------------------------------------------------------
/location/client_api_testapp/location_client_api_testapp.pc.in:
--------------------------------------------------------------------------------
1 | prefix=@prefix@
2 | exec_prefix=@exec_prefix@
3 | libdir=@libdir@
4 | includedir=@includedir@
5 |
6 | Name: location_client_api_testapp
7 | Description: location_client_api_tesetapp
8 | Version: @VERSION@
9 | Libs: -L${libdir} -llocation_client_api
10 | Cflags: -I${includedir}
--------------------------------------------------------------------------------
/location/client_api/location-client-api.pc.in:
--------------------------------------------------------------------------------
1 | prefix=@prefix@
2 | exec_prefix=@exec_prefix@
3 | libdir=@libdir@
4 | includedir=@includedir@
5 |
6 | Name: location-client-api
7 | Description: location client api library
8 | Version: @VERSION@
9 | Libs: -L${libdir} -llocation_client_api
10 | Cflags: -I${includedir} -I${includedir}/location-client-api
--------------------------------------------------------------------------------
/location/loc_net_iface/loc-net-iface.pc.in:
--------------------------------------------------------------------------------
1 | prefix=@prefix@
2 | exec_prefix=@exec_prefix@
3 | libdir=@libdir@
4 | includedir=@includedir@
5 |
6 | Name: loc-net-iface
7 | Description: GPS Loc Net Iface
8 | Version: @VERSION
9 | Libs: -L${libdir} -lloc_net_iface
10 | Cflags: -I${includedir} -I${includedir}/loc-net-iface -I${includedir}/loc-net-iface/le
11 |
--------------------------------------------------------------------------------
/lineage.dependencies:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "repository": "android_kernel_motorola_msm8998",
4 | "target_path": "kernel/motorola/msm8998"
5 | },
6 | {
7 | "repository": "android_external_bson",
8 | "target_path": "external/bson"
9 | },
10 | {
11 | "repository": "android_system_qcom",
12 | "target_path": "system/qcom"
13 | }
14 | ]
15 |
--------------------------------------------------------------------------------
/location/loc_sll_if/if/Android.mk:
--------------------------------------------------------------------------------
1 | ifneq ($(BUILD_TINY_ANDROID),true)
2 | LOCAL_PATH := $(call my-dir)
3 |
4 | include $(CLEAR_VARS)
5 |
6 | LOCAL_MODULE_OWNER:=qti
7 | LOCAL_MODULE:= loc_sll_if_headers
8 | LOCAL_VENDOR_MODULE := true
9 |
10 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
11 | include $(BUILD_HEADER_LIBRARY)
12 |
13 | endif #BUILD_TINY_ANDROID
14 |
--------------------------------------------------------------------------------
/location/location_hal_daemon/location-hal-daemon.pc.in:
--------------------------------------------------------------------------------
1 | prefix=@prefix@
2 | exec_prefix=@exec_prefix@
3 | libdir=@libdir@
4 | includedir=@includedir@
5 |
6 | Name: location-hal-daemon
7 | Description: location hal daemon service
8 | Version: @VERSION@
9 | Libs: -L${libdir} -llocation-hal-daemon
10 | Cflags: -I${includedir} -I${includedir}/location-hal-daemon
11 |
--------------------------------------------------------------------------------
/location/client_api/README:
--------------------------------------------------------------------------------
1 | Location Client Api doc
2 |
3 | 1. Steps to generate doxygen Api doc:
4 | run
5 | mkclientapidoc.sh [output-path]
6 | default output-path is docs/
7 | default doxgen configuration file is LocationClientApiDoxygen.conf
8 |
9 | 2. below file will be generated:
10 | html/
11 | -HTML output, where the html/index.html is the home page.
12 |
--------------------------------------------------------------------------------
/configs/public.libraries.txt:
--------------------------------------------------------------------------------
1 | libqti-perfd-client.so
2 | libadsprpc.so
3 | libcdsprpc.so
4 | libsdsprpc.so
5 | libfastcvopt.so
6 | liblistenjni.so
7 | liblistensoundmodel2.so
8 | libOpenCL.so
9 | libnpu.so
10 | libhta_controller.so
11 | libhta_hexagon_runtime.so
12 | unnhal-acc-hta.so
13 | libadspd.so
14 | libprotobuf-cpp-full.so
15 | libprotobuf-cpp-lite.so
16 | libmcf-qc-fd-offline.so
17 |
--------------------------------------------------------------------------------
/keymaster_3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | android.hardware.keymaster
4 | hwbinder
5 | 3.0
6 |
7 | IKeymasterDevice
8 | default
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/keymaster_4.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | android.hardware.keymaster
4 | hwbinder
5 | 4.0
6 |
7 | IKeymasterDevice
8 | default
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/MotoActions/res/menu/kcal_menu.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
--------------------------------------------------------------------------------
/light/android.hardware.light@2.0-service.sdm660.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | android.hardware.light
4 | hwbinder
5 | 2.0
6 |
7 | ILight
8 | default
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_health_default.te:
--------------------------------------------------------------------------------
1 | allow hal_health_default sysfs_batteryinfo:file rw_file_perms;
2 |
3 | allow hal_health_default mnt_vendor_file:file { getattr open read };
4 | allow hal_health_default mnt_vendor_file:dir { search write };
5 | allow hal_health_default sysfs:file { getattr open read };
6 | allow hal_health_default sysfs_healthd:dir r_dir_perms;
7 | allow hal_health_default sysfs_healthd:file rw_file_perms;
8 |
--------------------------------------------------------------------------------
/power-libperfmgr/hidl/android.hardware.power@1.3-service.moto_sdm660.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | android.hardware.power
4 | hwbinder
5 | 1.3
6 |
7 | IPower
8 | default
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/king.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/sepolicy/vendor/platform_app.te:
--------------------------------------------------------------------------------
1 | allow platform_app sysfs_kgsl:dir search;
2 | allow platform_app sysfs_kgsl:file { getattr open read };
3 | allow platform_app sysfs_healthd:dir r_dir_perms;
4 | allow platform_app sysfs_healthd:file rw_file_perms;
5 | get_prop(platform_app, moto_boot_prop)
6 | allow platform_app sysfs_fps:file { getattr open read };
7 | allow platform_app sysfs_graphics:dir search;
8 | get_prop(platform_app, qemu_hw_mainkeys_prop)
9 |
--------------------------------------------------------------------------------
/soong/Android.bp:
--------------------------------------------------------------------------------
1 | bootstrap_go_package {
2 | name: "soong-motorola-sdm660-plugins",
3 | pkgPath: "device/motorola/sdm660-common",
4 | deps: [
5 | "blueprint",
6 | "blueprint-pathtools",
7 | "soong",
8 | "soong-android",
9 | "soong-cc",
10 | "soong-genrule",
11 | ],
12 | srcs: [
13 | "init.go",
14 | "main.go",
15 | ],
16 | pluginFor: ["soong_build"],
17 | }
18 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_preset.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/MotoActions/res/color/flip.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/MotoActions/res/color/chop.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/MotoActions/res/color/pick.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/MotoActions/res/color/pick2.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/MotoActions/res/color/pick3.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/MotoActions/res/color/quick.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/libshims/Android.bp:
--------------------------------------------------------------------------------
1 | // Memset
2 | cc_library {
3 | name: "libmemset_shim",
4 | vendor: true,
5 | target: {
6 | android_arm: {
7 | srcs: ["memset32.S"],
8 | sanitize: {
9 | misc_undefined: ["integer"],
10 | },
11 | },
12 | android_arm64: {
13 | srcs: ["android_memset.S"],
14 | sanitize: {
15 | misc_undefined: ["integer"],
16 | },
17 | },
18 | },
19 | }
20 |
--------------------------------------------------------------------------------
/gps/android/Android.mk:
--------------------------------------------------------------------------------
1 | LOCAL_PATH := $(call my-dir)
2 | ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),)
3 | include $(CLEAR_VARS)
4 | DIR_LIST := $(LOCAL_PATH)
5 | include $(DIR_LIST)/utils/Android.mk
6 | ifeq ($(GNSS_HIDL_VERSION),2.0)
7 | include $(DIR_LIST)/2.0/Android.mk
8 | else
9 | ifeq ($(GNSS_HIDL_VERSION),1.1)
10 | include $(DIR_LIST)/1.1/Android.mk
11 | else
12 | include $(DIR_LIST)/1.0/Android.mk
13 | endif #GNSS HIDL 1.1
14 | endif #GNSS HIDL 2.0
15 | endif #BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE
16 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/dirac_qs_tile_icon.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/rro_overlays/TetheringOverlay/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
11 |
12 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_settings_doze.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_sensors_default.te:
--------------------------------------------------------------------------------
1 | r_dir_file(hal_sensors_default, sysfs_input)
2 | r_dir_file(hal_sensors_default, sysfs_sensor)
3 | allow hal_sensors_default { sysfs_input sysfs_sensor }:file rw_file_perms;
4 | allow hal_sensors_default self:netlink_kobject_uevent_socket { setopt bind };
5 | allow hal_sensors_default debugfs:dir { open read };
6 | allow hal_sensors_default self:netlink_kobject_uevent_socket { create read };
7 | allow hal_sensors_default sysfs:dir { open read };
8 | allow hal_sensors_default sysfs:file { getattr open read write };
9 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/sepolicy/vendor/init.te:
--------------------------------------------------------------------------------
1 | allow init fsg_firmware_file:dir { mounton };
2 | allow init socket_device:sock_file { create setattr unlink };
3 | allow init fsg_firmware_file:filesystem { relabelfrom mount };
4 | allow init vendor_file:file execute;
5 | #TODO: This should not be needed and needs to be cleaned.
6 | allow fsg_firmware_file self:filesystem associate;
7 | allow init mnt_product_file:dir mounton;
8 |
9 | allow init bt_firmware_file:filesystem getattr;
10 | allow init firmware_file:filesystem getattr;
11 | allow init fsg_firmware_file:filesystem getattr;
12 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_headphone.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_restore.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/configs/sprint_apns.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_camera_default.te:
--------------------------------------------------------------------------------
1 | r_dir_file(hal_camera_default, persist_camera_file)
2 | allow hal_camera_default sysfs_battery_supply:dir search;
3 | allow hal_camera_default sysfs_battery_supply:file { getattr open read };
4 | allow hal_camera_default mnt_vendor_file:file { rw_file_perms setattr };
5 | allow hal_camera_default vendor_data_file:dir read;
6 | allow hal_camera_default camera_prop:property_service set;
7 | allow hal_camera_default sysfs_healthd:dir search;
8 |
9 | get_prop(hal_camera_default, moto_boot_prop)
10 | set_prop(hal_camera_default, camera_prop)
11 | set_prop(hal_camera_default, vendor_video_prop)
12 |
--------------------------------------------------------------------------------
/location/build/target_specific_features.mk:
--------------------------------------------------------------------------------
1 | GNSS_CFLAGS := \
2 | -Werror \
3 | -Wno-error=unused-parameter \
4 | -Wno-error=macro-redefined \
5 | -Wno-error=reorder \
6 | -Wno-error=missing-braces \
7 | -Wno-error=self-assign \
8 | -Wno-error=enum-conversion \
9 | -Wno-error=logical-op-parentheses \
10 | -Wno-error=null-arithmetic \
11 | -Wno-error=null-conversion \
12 | -Wno-error=parentheses-equality \
13 | -Wno-error=undefined-bool-conversion \
14 | -Wno-error=tautological-compare \
15 | -Wno-error=switch \
16 | -Wno-error=date-time
17 |
18 | LOCAL_SANITIZE := integer_overflow
19 |
--------------------------------------------------------------------------------
/sepolicy/vendor/rmt_storage.te:
--------------------------------------------------------------------------------
1 | allow rmt_storage {
2 | modem_efs_partition_device
3 | ssd_device
4 | }:blk_file rw_file_perms;
5 |
6 | r_dir_file(rmt_storage fsg_firmware_file)
7 | r_dir_file(rmt_storage, persist_file)
8 |
9 | allow rmt_storage debugfs_rmts:dir r_dir_perms;
10 | allow rmt_storage debugfs_rmts:file rw_file_perms;
11 |
12 | allow rmt_storage persist_rfs_file:dir search;
13 | allow rmt_storage persist_rfs_file:file rw_file_perms;
14 | allow rmt_storage mnt_vendor_file:dir search;
15 | get_prop(rmt_storage, vendor_radio_prop)
16 |
17 | get_prop(rmt_storage, moto_boot_prop)
18 | allow rmt_storage sysfs_data:file r_file_perms;
19 |
--------------------------------------------------------------------------------
/gps/gps_vendor_product.mk:
--------------------------------------------------------------------------------
1 | # HAL packages
2 | PRODUCT_PACKAGES += android.hardware.gnss@1.0-impl-qti
3 | PRODUCT_PACKAGES += android.hardware.gnss@1.0-service-qti
4 | PRODUCT_PACKAGES += android.hardware.gnss@1.1-impl-qti
5 | PRODUCT_PACKAGES += android.hardware.gnss@1.1-service-qti
6 | PRODUCT_PACKAGES += android.hardware.gnss@2.0-impl-qti
7 | PRODUCT_PACKAGES += android.hardware.gnss@2.0-service-qti
8 | PRODUCT_PACKAGES += gps.conf
9 | PRODUCT_PACKAGES += libloc_core
10 | PRODUCT_PACKAGES += libgnss
11 | PRODUCT_PACKAGES += liblocation_api
12 | PRODUCT_PACKAGES += libgps.utils
13 | PRODUCT_PACKAGES += libbatching
14 | PRODUCT_PACKAGES += libgeofencing
15 |
--------------------------------------------------------------------------------
/rootdir/bin/wlan_carrier_bin.sh:
--------------------------------------------------------------------------------
1 | #!/vendor/bin/sh
2 | carrier=`getprop ro.carrier`
3 |
4 | case "$carrier" in
5 | "retbr" | "timbr" | "tefbr" | "oibr" | "amxbr" | "niibr")
6 | echo -n bdwlan30_bra.bin > /sys/module/cnss_pci/parameters/regulatory_file
7 | ;;
8 | "perar" | "retar" | "tefar" | "amxar")
9 | echo -n bdwlan30_arg.bin > /sys/module/cnss_pci/parameters/regulatory_file
10 | ;;
11 | "retin" | "amzin")
12 | echo -n bdwlan30_ind.bin > /sys/module/cnss_pci/parameters/regulatory_file
13 | ;;
14 | * )
15 | echo -n bdwlan30.bin > /sys/module/cnss_pci/parameters/regulatory_file
16 | ;;
17 | esac
18 |
--------------------------------------------------------------------------------
/MotoActions/Android.bp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (C) 2017-2021 The LineageOS Project
3 | //
4 | // SPDX-License-Identifier: Apache-2.0
5 | //
6 |
7 | android_app {
8 | name: "MotoActions",
9 | defaults: [
10 | "SettingsLibDefaults",
11 | ],
12 |
13 | srcs: ["src/**/*.java"],
14 | resource_dirs: ["res", "res-common"],
15 | certificate: "platform",
16 | platform_apis: true,
17 | system_ext_specific: true,
18 | privileged: true,
19 |
20 | static_libs: [
21 | "androidx.core_core",
22 | "androidx.preference_preference",
23 | ],
24 |
25 | optimize: {
26 | proguard_flags_files: ["proguard.flags"],
27 | },
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vendor_init.te:
--------------------------------------------------------------------------------
1 | typeattribute vendor_init data_between_core_and_vendor_violators;
2 |
3 | allow vendor_init {
4 | dhcp_data_file
5 | media_rw_data_file
6 | system_data_file
7 | tombstone_data_file
8 | wifi_data_file
9 | camera_data_file
10 | fingerprint_data_file
11 | }:dir { create search getattr open read setattr ioctl write add_name remove_name rmdir relabelfrom };
12 |
13 | allow vendor_init proc_uid_cpupower:file write;
14 |
15 | get_prop(vendor_init, moto_boot_prop)
16 | set_prop(vendor_init, moto_boot_prop)
17 | set_prop(vendor_init, vendor_fm_prop)
18 | set_prop(vendor_init, vendor_power_prop)
19 |
20 | allow vendor_init system_fps_data_file:dir create_dir_perms;
21 |
--------------------------------------------------------------------------------
/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_CERTIFICATE := platform
10 | LOCAL_PRIVATE_PLATFORM_APIS := true
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/hal_power_default.te:
--------------------------------------------------------------------------------
1 | r_dir_file(hal_power_default, debugfs_wlan)
2 | r_dir_file(hal_power_default, sysfs_graphics)
3 | r_dir_file(hal_power_default, sysfs_input)
4 | r_dir_file(hal_power_default, sysfs_sensor)
5 | unix_socket_connect(hal_power_default, perfd, perfd)
6 |
7 | r_dir_file(hal_power_default, debugfs_rpm)
8 | r_dir_file(hal_power_default, sysfs_graphics)
9 |
10 | allow hal_power_default device_latency:chr_file rw_file_perms;
11 | allow hal_power_default { sysfs_devfreq sysfs_kgsl }:dir search;
12 | allow hal_power_default { sysfs_devfreq sysfs_kgsl }:{ file lnk_file } rw_file_perms;
13 | allow hal_power_default sysfs_devices_system_cpu:file rw_file_perms;
14 |
15 | set_prop(hal_power_default, vendor_power_prop)
16 |
--------------------------------------------------------------------------------
/sepolicy/vendor/thermal-engine.te:
--------------------------------------------------------------------------------
1 | typeattribute thermal-engine data_between_core_and_vendor_violators;
2 |
3 | # Allow thermal-engine to read files in /sys
4 | r_dir_file(thermal-engine, sysfs)
5 |
6 | allow thermal-engine sysfs_healthd:dir search;
7 | allow thermal-engine sysfs_healthd:file rw_file_perms;
8 |
9 | allow thermal-engine self:capability { chown fowner };
10 |
11 | get_prop(thermal-engine, moto_boot_prop)
12 | allow thermal-engine { proc_stat proc_loadavg }:file r_file_perms;
13 |
14 | allow thermal-engine sysfs_hwmon:dir r_dir_perms;
15 | allow thermal-engine sysfs_hwmon:file rw_file_perms;
16 | allow thermal-engine sysfs_devfreq:dir r_dir_perms;
17 | allow thermal-engine sysfs_devfreq:file rw_file_perms;
18 | r_dir_file(thermal-engine sysfs_socinfo)
19 |
--------------------------------------------------------------------------------
/MotoActions/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 | #06A097
15 |
16 |
--------------------------------------------------------------------------------
/init/DeviceLibinit.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2020 The LineageOS Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #ifndef TARGET_PROVIDES_DEVICE_LIBINIT
18 | #include
19 |
20 | void vendor_load_device_properties() { }
21 | #endif
22 |
--------------------------------------------------------------------------------
/odm_manifest_qcril.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | android.hardware.radio
4 | hwbinder
5 | 1.2
6 |
7 | ISap
8 | slot1
9 | slot2
10 |
11 | @1.4::IRadio/slot1
12 | @1.4::IRadio/slot2
13 |
14 |
15 | android.hardware.radio.config
16 | hwbinder
17 | 1.1
18 |
19 | IRadioConfig
20 | default
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/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/qti_init_shell.te:
--------------------------------------------------------------------------------
1 | allow qti_init_shell { sysfs_input sysfs_sensor }:file { rw_file_perms setattr };
2 | allow qti_init_shell persist_camera_file:file r_file_perms;
3 | allow qti_init_shell kmsg_device:chr_file { open write };
4 | allow qti_init_shell sysfs:file { rw_file_perms setattr };
5 | allow qti_init_shell vendor_radio_data_file:dir rw_dir_perms;
6 | allow qti_init_shell vendor_radio_data_file:file create_file_perms;
7 |
8 | get_prop(qti_init_shell, moto_boot_prop)
9 | get_prop(qti_init_shell, vendor_radio_prop)
10 | set_prop(qti_init_shell, exported2_default_prop)
11 | set_prop(qti_init_shell, qemu_hw_mainkeys_prop)
12 |
13 | # Silence qemu.hw.mainkeys denial that we don't need
14 | dontaudit qti_init_shell default_prop:property_service set;
15 |
16 | # Silence DAC denials
17 | dontaudit qti_init_shell self:capability { dac_override dac_read_search };
18 |
--------------------------------------------------------------------------------
/init/DeviceLibinit.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2020 The LineageOS Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #include
18 |
19 | #ifndef __DEVICE_LIBINIT__H__
20 | #define __DEVICE_LIBINIT__H__
21 |
22 | void vendor_load_device_properties();
23 |
24 | #endif /* __DEVICE_LIBINIT__H__ */
25 |
--------------------------------------------------------------------------------
/gps/android/utils/Android.mk:
--------------------------------------------------------------------------------
1 | LOCAL_PATH := $(call my-dir)
2 | include $(CLEAR_VARS)
3 |
4 | LOCAL_MODULE := liblocbatterylistener
5 | LOCAL_VENDOR_MODULE := true
6 |
7 | LOCAL_CFLAGS += $(GNSS_CFLAGS)
8 |
9 | LOCAL_C_INCLUDES += \
10 | $(LOCAL_PATH) \
11 |
12 | LOCAL_SRC_FILES:= \
13 | battery_listener.cpp
14 | LOCAL_SHARED_LIBRARIES := \
15 | liblog \
16 | libhidlbase \
17 | libcutils \
18 | libutils \
19 | android.hardware.health@1.0 \
20 | android.hardware.health@2.0 \
21 | android.hardware.power@1.2 \
22 | libbase
23 |
24 | LOCAL_STATIC_LIBRARIES := libhealthhalutils
25 | LOCAL_CFLAGS += -DBATTERY_LISTENER_ENABLED
26 |
27 | include $(BUILD_STATIC_LIBRARY)
28 |
29 | include $(CLEAR_VARS)
30 | LOCAL_MODULE := liblocbatterylistener_headers
31 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
32 |
33 | include $(BUILD_HEADER_LIBRARY)
34 |
35 |
36 |
--------------------------------------------------------------------------------
/configs/android.hardware.camera.ar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/overlay/packages/apps/Dialer/java/com/android/dialer/callrecord/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 | true
19 |
20 |
--------------------------------------------------------------------------------
/gps/batching/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 := libbatching
9 | LOCAL_VENDOR_MODULE := true
10 | LOCAL_MODULE_TAGS := optional
11 |
12 | LOCAL_SHARED_LIBRARIES := \
13 | libutils \
14 | libcutils \
15 | liblog \
16 | libloc_core \
17 | libgps.utils \
18 | libdl
19 |
20 | LOCAL_SRC_FILES += \
21 | location_batching.cpp \
22 | BatchingAdapter.cpp
23 |
24 | LOCAL_HEADER_LIBRARIES := \
25 | libgps.utils_headers \
26 | libloc_core_headers \
27 | libloc_pla_headers \
28 | liblocation_api_headers
29 |
30 | LOCAL_PRELINK_MODULE := false
31 |
32 | LOCAL_CFLAGS += $(GNSS_CFLAGS)
33 | include $(BUILD_SHARED_LIBRARY)
34 |
35 | endif # not BUILD_TINY_ANDROID
36 | endif # BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE
37 |
--------------------------------------------------------------------------------
/sepolicy/vendor/rild.te:
--------------------------------------------------------------------------------
1 | allow rild vendor_file:file rx_file_perms;
2 | allow rild persist_mdm_file:dir search;
3 | allow rild persist_mdm_file:file rw_file_perms;
4 | allow rild fwk_sensor_hwservice:hwservice_manager find;
5 | allow rild system_server:binder { call transfer };
6 | allow rild mnt_vendor_file:dir search;
7 | allow rild mnt_vendor_file:file rw_file_perms;
8 | allow rild proc:file r_file_perms;
9 | allow rild input_device:dir { open read };
10 | allow rild vendor_radio_data_file:dir rw_dir_perms;
11 | allow rild vendor_radio_data_file:file rw_file_perms;
12 | allow rild vendor_radio_data_file:sock_file create_file_perms;
13 | get_prop(rild, moto_boot_prop)
14 | get_prop(rild, vendor_radio_prop)
15 | get_prop(rild, wifi_prop)
16 |
17 | binder_call(rild, qtidataservices_app)
18 |
19 | dontaudit rild diag_device:chr_file rw_file_perms;
20 |
21 | get_prop(rild, vendor_pd_locater_dbg_prop)
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/geofence/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 := libgeofencing
9 | LOCAL_VENDOR_MODULE := true
10 | LOCAL_MODULE_TAGS := optional
11 |
12 | LOCAL_SRC_FILES:= \
13 | GeofenceAdapter.cpp \
14 | location_geofence.cpp
15 |
16 | LOCAL_SHARED_LIBRARIES := \
17 | libutils \
18 | libcutils \
19 | libgps.utils \
20 | liblog \
21 | libloc_core
22 |
23 | LOCAL_HEADER_LIBRARIES := \
24 | libgps.utils_headers \
25 | libloc_core_headers \
26 | libloc_pla_headers \
27 | liblocation_api_headers
28 |
29 | LOCAL_PRELINK_MODULE := false
30 | LOCAL_CFLAGS += $(GNSS_CFLAGS)
31 | include $(BUILD_SHARED_LIBRARY)
32 |
33 | endif # not BUILD_TINY_ANDROID
34 | endif # BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE
35 |
36 |
--------------------------------------------------------------------------------
/location/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 |
--------------------------------------------------------------------------------
/power-libperfmgr/hidl/android.hardware.power@1.3-service.moto_sdm660-libperfmgr.rc:
--------------------------------------------------------------------------------
1 | service vendor.power-hal-1-3 /vendor/bin/hw/android.hardware.power@1.3-service.moto_sdm660-libperfmgr
2 | class hal
3 | user root
4 | group system
5 | priority -20
6 | interface android.hardware.power@1.0::IPower default
7 | interface android.hardware.power@1.1::IPower default
8 | interface android.hardware.power@1.2::IPower default
9 | interface android.hardware.power@1.3::IPower default
10 |
11 | # restart powerHAL when framework died
12 | on property:init.svc.zygote=restarting && property:vendor.powerhal.state=*
13 | setprop vendor.powerhal.state ""
14 | setprop vendor.powerhal.audio ""
15 | setprop vendor.powerhal.rendering ""
16 | restart vendor.power-hal-1-3
17 |
18 | # initialize powerHAL when boot is completed
19 | on property:sys.boot_completed=1
20 | setprop vendor.powerhal.init 1
21 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_hand.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/gps/pla/Android.mk:
--------------------------------------------------------------------------------
1 | GNSS_CFLAGS := \
2 | -Werror \
3 | -Wno-error=unused-parameter \
4 | -Wno-error=macro-redefined \
5 | -Wno-error=reorder \
6 | -Wno-error=missing-braces \
7 | -Wno-error=self-assign \
8 | -Wno-error=enum-conversion \
9 | -Wno-error=logical-op-parentheses \
10 | -Wno-error=null-arithmetic \
11 | -Wno-error=null-conversion \
12 | -Wno-error=parentheses-equality \
13 | -Wno-error=undefined-bool-conversion \
14 | -Wno-error=tautological-compare \
15 | -Wno-error=switch \
16 | -Wno-error=date-time
17 |
18 | ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),)
19 | ifneq ($(BUILD_TINY_ANDROID),true)
20 |
21 | LOCAL_PATH := $(call my-dir)
22 |
23 | include $(CLEAR_VARS)
24 | LOCAL_MODULE := libloc_pla_headers
25 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/android
26 | include $(BUILD_HEADER_LIBRARY)
27 |
28 | endif # not BUILD_TINY_ANDROID
29 | endif # BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE
30 |
--------------------------------------------------------------------------------
/sepolicy/vendor/system_server.te:
--------------------------------------------------------------------------------
1 | binder_call(system_server,rild);
2 |
3 | allow system_server sysfs_vibrator:file read;
4 | allow system_server fpc_extension_service:hwservice_manager find;
5 | allow system_server vendor_keylayout_file:dir r_dir_perms;
6 | allow system_server vendor_keylayout_file:file r_file_perms;
7 | allow system_server vendor_idc_file:dir r_dir_perms;
8 | allow system_server vendor_idc_file:file r_file_perms;
9 |
10 | get_prop(system_server, qemu_hw_mainkeys_prop)
11 | get_prop(system_server, exported_camera_prop)
12 | get_prop(system_server, userspace_reboot_config_prop)
13 | get_prop(system_server, userspace_reboot_exported_prop)
14 | allow system_server sysfs_homebutton:file rw_file_perms;
15 | allow system_server sysfs_homebutton:dir r_dir_perms;
16 | # Smart_charging
17 | allow system_server sysfs_healthd:file rw_file_perms;
18 | get_prop(system_server, userspace_reboot_config_prop)
19 | get_prop(system_server, userspace_reboot_exported_prop)
20 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-land/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 | 24dp
23 |
24 |
--------------------------------------------------------------------------------
/overlay/lineage-sdk/packages/LineageSettingsProvider/res/values/defaults.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 | 1
20 |
21 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/switchbar_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hwservice_contexts:
--------------------------------------------------------------------------------
1 | com.fingerprints.extension::IFingerprintAuthenticator u:object_r:fpc_extension_service:s0
2 | com.fingerprints.extension::IFingerprintCalibration u:object_r:fpc_extension_service:s0
3 | com.fingerprints.extension::IFingerprintEngineering u:object_r:fpc_extension_service:s0
4 | com.fingerprints.extension::IFingerprintNavigation u:object_r:fpc_extension_service:s0
5 | com.fingerprints.extension::IFingerprintSensorTest u:object_r:fpc_extension_service:s0
6 | vendor.egistec.hardware.fingerprint::IBiometricsFingerprintEts u:object_r:fpc_extension_service:s0
7 |
8 | vendor.nxp.nxpese::INxpEse u:object_r:nxpese_hwservice:s0
9 | vendor.nxp.nxpnfc::INxpNfc u:object_r:nxpnfc_hwservice:s0
10 |
--------------------------------------------------------------------------------
/sepolicy/vendor/system_app.te:
--------------------------------------------------------------------------------
1 | binder_call(system_app, wificond)
2 |
3 | allow system_app proc_pagetypeinfo:file r_file_perms;
4 | allow system_app proc_vmallocinfo:file r_file_perms;
5 | allow system_app sysfs_zram:dir search;
6 | allow system_app sysfs_zram:file r_file_perms;
7 |
8 | dontaudit system_app {
9 | apex_service
10 | system_suspend_control_service
11 | }:service_manager find;
12 |
13 | allow system_app sysfs_fingerprint:dir search;
14 | get_prop(system_app, vendor_fm_prop)
15 |
16 | allow system_app sysfs_homebutton:file write;
17 | allow system_app sysfs_homebutton:dir search;
18 | allow system_app sysfs_homebutton:file { getattr open };
19 | allow system_app sysfs_battery_supply:dir { search };
20 | allow system_app sysfs_battery_supply:file { read };
21 | allow system_app sysfs_battery_supply:file { open };
22 | allow system_app sysfs_battery_supply:file { getattr };
23 | allow system_app sysfs:file { write };
24 | allow system_app sysfs:file { open };
25 | allow system_app sysfs:file { getattr };
26 |
--------------------------------------------------------------------------------
/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++1y
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++ -ldl $(GPSUTILS_LIBS) $(LOCCORE_LIBS)
29 |
30 | #Create and Install libraries
31 | lib_LTLIBRARIES = libgnss.la
32 |
--------------------------------------------------------------------------------
/overlay/packages/apps/Snap/res/values/cm_strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 | Burst
20 | ClearShot
21 |
22 |
23 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc204-mnc04/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 | false
24 |
25 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc310-mnc004/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 | false
24 |
25 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/location/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 |
--------------------------------------------------------------------------------
/MotoActions/res/layout/display_cal.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
13 |
14 |
20 |
21 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/init/Android.bp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (C) 2019 The LineageOS Project
3 | //
4 | // Licensed under the Apache License, Version 2.0 (the "License");
5 | // you may not use this file except in compliance with the License.
6 | // You may obtain a copy of the License at
7 | //
8 | // http://www.apache.org/licenses/LICENSE-2.0
9 | //
10 | // Unless required by applicable law or agreed to in writing, software
11 | // distributed under the License is distributed on an "AS IS" BASIS,
12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | // See the License for the specific language governing permissions and
14 | // limitations under the License.
15 | //
16 |
17 | motorola_sdm660_init_library_static {
18 | name: "libinit_sdm660",
19 | recovery_available: true,
20 | srcs: [
21 | "init_sdm660.cpp",
22 | "DeviceLibinit.cpp"
23 | ],
24 | include_dirs: [
25 | "system/core/base/include",
26 | "system/core/init",
27 | "device/motorola/sdm660-common"
28 | ],
29 | shared_libs: [
30 | "libbase",
31 | ]
32 | }
33 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/overlay/packages/services/Telephony/res/values-mcc310-mnc120/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
19 |
20 | com.android.sdm.plugins.sprintdm
21 | com.android.sdm.plugins.sprintdm.SprintCarrierSettingsActivity
22 |
23 |
--------------------------------------------------------------------------------
/configs/component-overrides.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/recovery/root/init.recovery.qcom.usb.rc:
--------------------------------------------------------------------------------
1 | on init
2 | mount configfs none /config
3 | mkdir /config/usb_gadget/g1 0770 shell shell
4 | write /config/usb_gadget/g1/idVendor 0x18d1
5 | write /config/usb_gadget/g1/idProduct 0xd001
6 | mkdir /config/usb_gadget/g1/strings/0x409 0770
7 | write /config/usb_gadget/g1/strings/0x409/serialnumber ${ro.serialno}
8 | write /config/usb_gadget/g1/strings/0x409/manufacturer ${ro.product.manufacturer}
9 | write /config/usb_gadget/g1/strings/0x409/product ${ro.product.model}
10 | mkdir /config/usb_gadget/g1/functions/ffs.adb
11 | write /config/usb_gadget/g1/os_desc/use 1
12 | setprop sys.usb.configfs 1
13 |
14 | on property:sys.usb.ffs.ready=1
15 | mkdir /config/usb_gadget/g1/configs/b.1 0777 shell shell
16 | symlink /config/usb_gadget/g1/configs/b.1 /config/usb_gadget/g1/os_desc/b.1
17 | mkdir /config/usb_gadget/g1/configs/b.1/strings/0x409 0770 shell shell
18 | write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "adb"
19 | symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f1
20 | write /config/usb_gadget/g1/UDC "a800000.dwc3"
21 |
--------------------------------------------------------------------------------
/overlay/packages/apps/Settings/res/values/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
21 |
22 |
23 |
25 |
26 | - 0
27 | - -1
28 | - -1
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/thermal/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.thermal@1.1-service.sdm660",
20 | proprietary: true,
21 | init_rc: ["android.hardware.thermal@1.1-service.sdm660.rc"],
22 | srcs: ["service.cpp", "Thermal.cpp", "thermal-helper.cpp"],
23 | shared_libs: [
24 | "libbase",
25 | "libhardware",
26 | "libhidlbase",
27 | "liblog",
28 | "libutils",
29 | "android.hardware.thermal@1.1",
30 | ],
31 | }
32 |
--------------------------------------------------------------------------------
/sepolicy/vendor/file.te:
--------------------------------------------------------------------------------
1 | type debugfs_rmts, debugfs_type, fs_type;
2 | type debugfs_rpm, debugfs_type, fs_type;
3 | type debugfs_wlan, debugfs_type, fs_type;
4 | type fsg_firmware_file, file_type, contextmount_type, vendor_file_type;
5 | type perfd_socket, file_type;
6 | type persist_audio_file, file_type, vendor_persist_type;
7 | type persist_camera_file, file_type;
8 | type persist_mdm_file, file_type, vendor_persist_type;
9 | type sysfs_fingerprint, sysfs_type, fs_type;
10 | type fingerprint_data_file, data_file_type, file_type;
11 | type fingerprint_socket, data_file_type, file_type;
12 | type sysfs_hwmon, sysfs_type, fs_type;
13 | type sysfs_input, sysfs_type, fs_type;
14 | type sysfs_sensor, sysfs_type, fs_type;
15 | type sysfs_wifi, sysfs_type, fs_type;
16 | type system_fps_data_file, file_type, data_file_type, core_data_file_type;
17 |
18 | # charge_only_mode
19 | type chargeonly_data_file, file_type, data_file_type;
20 | type persist_chargeonly_file, file_type, data_file_type;
21 |
22 | # Healthd
23 | type sysfs_healthd, fs_type, sysfs_type, mlstrustedobject;
24 |
25 | # Homebutton
26 | type sysfs_homebutton, fs_type, sysfs_type, mlstrustedobject;
27 |
28 | # FPS Info
29 | type sysfs_fps, sysfs_type, fs_type;
30 |
--------------------------------------------------------------------------------
/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.sdm660",
20 | proprietary: true,
21 | init_rc: ["android.hardware.light@2.0-service.sdm660.rc"],
22 | vintf_fragments: ["android.hardware.light@2.0-service.sdm660.xml"],
23 | srcs: ["service.cpp", "Light.cpp"],
24 | shared_libs: [
25 | "libhardware",
26 | "libhidlbase",
27 | "liblog",
28 | "libutils",
29 | "android.hardware.light@2.0",
30 | ],
31 | }
32 |
--------------------------------------------------------------------------------
/rro_overlays/CarrierConfigOverlay/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
21 |
22 |
26 |
27 |
--------------------------------------------------------------------------------
/overlay/packages/apps/Settings/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 | true
21 |
22 |
23 | /sys/class/power_supply/bms/charge_full
24 | /sys/class/power_supply/bms/charge_now_raw
25 | /sys/class/power_supply/bms/cycle_count
26 |
27 |
28 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 | true
22 |
23 |
24 | 82
25 |
26 |
27 | 30000
28 |
29 |
30 |
--------------------------------------------------------------------------------
/rro_overlays/TetheringOverlay/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 |
26 | false
27 |
28 |
29 |
--------------------------------------------------------------------------------
/light/android.hardware.light@2.0-service.sdm660.rc:
--------------------------------------------------------------------------------
1 | service vendor.light-hal-2-0 /vendor/bin/hw/android.hardware.light@2.0-service.sdm660
2 | class hal
3 | user system
4 | group system
5 |
6 | on boot
7 | # Change ownership and permission for leds backlight
8 | chmod 0664 /sys/class/leds/lcd-backlight/brightness
9 | chown system system /sys/class/leds/charging/brightness
10 | chmod 0664 /sys/class/leds/charging/brightness
11 | chown system system /sys/class/leds/charging/blink
12 | chmod 660 /sys/class/leds/charging/blink
13 | chown system system /sys/class/leds/charging/pause_lo
14 | chmod 660 /sys/class/leds/charging/pause_lo
15 | chown system system /sys/class/leds/charging/pause_hi
16 | chmod 660 /sys/class/leds/charging/pause_hi
17 | chown system system /sys/class/leds/charging/blink
18 | chmod 660 /sys/class/leds/charging/blink
19 | chown system system /sys/class/leds/charging/ramp_step_ms
20 | chmod 660 /sys/class/leds/charging/ramp_step_ms
21 | chown system system /sys/class/leds/charging/duty_pcts
22 | chmod 660 /sys/class/leds/charging/duty_pcts
23 | chown system system /sys/class/leds/charging/start_idx
24 | chmod 660 /sys/class/leds/charging/start_idx
25 |
--------------------------------------------------------------------------------
/MotoActions/res/xml/doze_panel_indexable.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
20 |
21 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/libshims/jstring.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2006 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #pragma once
18 |
19 | #include
20 | #include
21 |
22 | #ifdef __cplusplus
23 | extern "C" {
24 | #endif
25 |
26 | #if __STDC_VERSION__ < 201112L && __cplusplus < 201103L
27 | typedef uint16_t char16_t;
28 | #endif
29 | // otherwise char16_t is a keyword with the right semantics
30 |
31 | extern char * strndup16to8 (const char16_t* s, size_t n);
32 | extern size_t strnlen16to8 (const char16_t* s, size_t n);
33 | extern char * strncpy16to8 (char *dest, const char16_t*s, size_t n);
34 |
35 | #ifdef __cplusplus
36 | }
37 | #endif
38 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/image_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
19 |
20 |
26 |
27 |
--------------------------------------------------------------------------------
/rro_overlays/WifiOverlay/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
21 |
22 |
27 |
28 |
--------------------------------------------------------------------------------
/sepolicy/vendor/perfd.te:
--------------------------------------------------------------------------------
1 | type perfd, domain;
2 | type perfd_exec, exec_type, vendor_file_type, file_type;
3 |
4 | init_daemon_domain(perfd)
5 |
6 | # perfd uses kill(pid, 0) to determine if a process exists.
7 | # Determining if a process exists does not require the kill capability
8 | # since a permission denied indicates the process exists.
9 | dontaudit perfd self:capability kill;
10 |
11 | allow perfd mediacodec:process signull;
12 | allow perfd hal_power_default:process signull;
13 |
14 | allow perfd cgroup:file rw_file_perms;
15 |
16 | allow perfd proc:file rw_file_perms;
17 | allow perfd sysfs_scsi_host:file r_file_perms;
18 | r_dir_file(perfd, sysfs_graphics)
19 | r_dir_file(perfd, sysfs_socinfo)
20 |
21 | allow perfd sysfs_devices_system_cpu:file w_file_perms;
22 |
23 | allow perfd perfd_socket:sock_file write;
24 |
25 | allow perfd device_latency:chr_file w_file_perms;
26 |
27 | # wahoo sysfs_msm_subsys is sysfs_devfreq + sysfs_kgsl
28 | r_dir_file(perfd, sysfs_devfreq)
29 | allow perfd sysfs_devfreq:file w_file_perms;
30 |
31 | r_dir_file(perfd, sysfs_kgsl)
32 | allow perfd sysfs_kgsl:file w_file_perms;
33 |
34 | allow perfd sysfs_msm_perf:dir r_dir_perms;
35 | allow perfd sysfs_msm_perf:file rw_file_perms;
36 |
37 | get_prop(perfd, vendor_freq_prop)
38 |
--------------------------------------------------------------------------------
/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 | LocationDataTypes.h \
31 | ILocationAPI.h
32 |
33 | #Create and Install libraries
34 | lib_LTLIBRARIES = liblocation_api.la
35 |
36 | library_includedir = $(pkgincludedir)
37 |
38 | pkgconfigdir = $(libdir)/pkgconfig
39 | pkgconfig_DATA = location-api.pc
40 | EXTRA_DIST = $(pkgconfig_DATA)
41 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_vibrate.xml:
--------------------------------------------------------------------------------
1 |
13 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/MotoActions/res/layout/gesture.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
24 |
25 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/location/synergy_loc_api/Android.mk:
--------------------------------------------------------------------------------
1 | LOCAL_PATH := $(call my-dir)
2 |
3 | include $(CLEAR_VARS)
4 |
5 | LOCAL_MODULE := libsynergy_loc_api
6 | LOCAL_MODULE_PATH_32 := $(TARGET_OUT_VENDOR)/lib
7 | LOCAL_MODULE_PATH_64 := $(TARGET_OUT_VENDOR)/lib64
8 | LOCAL_MODULE_TAGS := optional
9 | LOCAL_VENDOR_MODULE := true
10 |
11 | ifeq ($(TARGET_DEVICE),apq8026_lw)
12 | LOCAL_CFLAGS += -DPDK_FEATURE_SET
13 | else ifeq ($(BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET),true)
14 | LOCAL_CFLAGS += -DPDK_FEATURE_SET
15 | endif
16 |
17 | LOCAL_SHARED_LIBRARIES := \
18 | libutils \
19 | libcutils \
20 | libqmi_cci \
21 | libqmi_common_so \
22 | libloc_core \
23 | libgps.utils \
24 | libdl \
25 | liblog
26 |
27 | LOCAL_SRC_FILES = \
28 | SynergyLocApi.cpp
29 |
30 | LOCAL_CFLAGS += \
31 | -fno-short-enums \
32 | -D_ANDROID_
33 |
34 | ## Includes
35 | LOCAL_HEADER_LIBRARIES := \
36 | libloc_core_headers \
37 | libgps.utils_headers \
38 | libloc_pla_headers \
39 | loc_sll_if_headers \
40 | liblocation_api_headers
41 |
42 | LOCAL_CFLAGS += $(GNSS_CFLAGS)
43 | include $(BUILD_SHARED_LIBRARY)
44 |
45 | include $(CLEAR_VARS)
46 | LOCAL_MODULE := libsynergyloc_api_headers
47 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
48 | include $(BUILD_HEADER_LIBRARY)
49 |
--------------------------------------------------------------------------------
/MotoActions/res/layout/actions.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
24 |
25 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/libshims/Android.mk:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2018 The LineageOS 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 | LOCAL_SRC_FILES := libqsap_shim.c
19 | LOCAL_SHARED_LIBRARIES := libqsap_sdk liblog libcutils libutils
20 | LOCAL_C_INCLUDES := $(TOP)/system/qcom/softap/sdk
21 | LOCAL_MODULE := libqsapshim
22 | LOCAL_MODULE_TAGS := optional
23 | LOCAL_PROPRIETARY_MODULE := true
24 | LOCAL_VENDOR_MODULE := true
25 | include $(BUILD_SHARED_LIBRARY)
26 |
27 | include $(CLEAR_VARS)
28 | LOCAL_SRC_FILES := strdup16to8.cpp
29 | LOCAL_SHARED_LIBRARIES := libcutils
30 | LOCAL_MODULE := libcutils_shim
31 | LOCAL_MODULE_TAGS := optional
32 | LOCAL_VENDOR_MODULE := true
33 | include $(BUILD_SHARED_LIBRARY)
34 |
--------------------------------------------------------------------------------
/MotoActions/res/xml/fp_gesture_panel_indexable.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
20 |
21 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/MotoActions/res/xml/screen_off_gesture_panel_indexable.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
20 |
21 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/location/client_api_testapp/Makefile.am:
--------------------------------------------------------------------------------
1 | AM_CFLAGS = \
2 | -DDEBUG \
3 | -I./ \
4 | $(GPSUTILS_CFLAGS) \
5 | $(LOCUTILS_CFLAGS) \
6 | $(LOCCLIENTAPI_CFLAGS) \
7 | $(LOCHALDAEMON_CFLAGS) \
8 | -std=c++11
9 | # HALDAEMON is requird only for msg.h
10 |
11 | ACLOCAL_AMFLAGS = -I m4
12 | AM_CPPFLAGS = -std=c++11
13 |
14 | requiredlibs = \
15 | $(LOCCLIENTAPI_LIBS)
16 |
17 | h_sources =
18 |
19 | c_sources = \
20 | main.cpp
21 |
22 | location_client_api_testapp_SOURCES = \
23 | $(c_sources) $(h_sources)
24 |
25 | ######################
26 | # Build location_client_api_testapp
27 | ######################
28 |
29 | if USE_GLIB
30 | location_client_api_testapp_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@
31 | location_client_api_testapp_LDFLAGS = -lstdc++ -g -Wl,-z,defs -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0
32 | location_client_api_testapp_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
33 | else
34 | location_client_api_testapp_CFLAGS = $(AM_CFLAGS)
35 | location_client_api_testapp_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread -shared -version-info 1:0:0
36 | location_client_api_testapp_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
37 | endif
38 |
39 | location_client_api_testapp_LDADD = $(requiredlibs) -lstdc++ -lc -ldl
40 |
41 | bin_PROGRAMS = location_client_api_testapp
42 |
43 |
--------------------------------------------------------------------------------
/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/drawable/ic_settings_kcal.xml:
--------------------------------------------------------------------------------
1 |
13 |
19 |
22 |
23 |
--------------------------------------------------------------------------------
/MotoActions/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 |
16 |
17 | 24dp
18 |
19 |
20 | 6dp
21 |
22 |
23 | 12dp
24 |
25 |
26 | 36dp
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 |
--------------------------------------------------------------------------------
/MotoActions/res/layout/doze.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
25 |
26 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/MotoActions/res/layout/fp_gesture.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
25 |
26 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/overlay/packages/apps/Snap/res/values/qcomstrings.xml:
--------------------------------------------------------------------------------
1 |
2 |
23 |
24 |
25 | false
26 | on
27 | enable
28 | 1920x1080
29 |
30 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_settings_gestures_dashboard.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
19 |
27 |
28 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/gps/batching/Makefile.am:
--------------------------------------------------------------------------------
1 | AM_CFLAGS = \
2 | $(GPSUTILS_CFLAGS) \
3 | $(LOCCORE_CFLAGS) \
4 | -I./ \
5 | -std=c++1y \
6 | -D__func__=__PRETTY_FUNCTION__ \
7 | -fno-short-enums
8 |
9 | ACLOCAL_AMFLAGS = -I m4
10 |
11 | requiredlibs = \
12 | $(GPSUTILS_LIBS) \
13 | $(LOCCORE_LIBS) \
14 | -llog
15 |
16 | h_sources = \
17 | BatchingAdapter.h
18 |
19 | libbatching_la_SOURCES = \
20 | location_batching.cpp \
21 | BatchingAdapter.cpp
22 |
23 | if USE_GLIB
24 | libbatching_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@
25 | #libbatching_la_LDFLAGS = -lstdc++ -g -Wl,-z,defs -lpthread $(requiredlibs) @GLIB_LIBS@ -shared -avoid-version
26 | libbatching_la_LDFLAGS = -lstdc++ -g -Wl,-z,defs -lpthread $(requiredlibs) @GLIB_LIBS@ -avoid-version
27 | libbatching_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
28 | else
29 | libbatching_la_CFLAGS = $(AM_CFLAGS)
30 | libbatching_la_LDFLAGS = -Wl,-z,defs -lpthread $(requiredlibs) -shared -version-info 1:0:0
31 | libbatching_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
32 | endif
33 |
34 | library_include_HEADERS = $(h_sources)
35 |
36 | library_includedir = $(pkgincludedir)
37 |
38 | #Create and Install libraries
39 | lib_LTLIBRARIES = libbatching.la
40 |
41 | pkgconfigdir = $(libdir)/pkgconfig
42 | pkgconfig_DATA = location-batching.pc
43 | sysconf_DATA = $(WORKSPACE)/hardware/qcom/gps/etc/flp.conf
44 | EXTRA_DIST = $(pkgconfig_DATA)
45 |
46 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_tap_hold.xml:
--------------------------------------------------------------------------------
1 |
13 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/setup-makefiles.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #
3 | # Copyright (C) 2016 The CyanogenMod Project
4 | # Copyright (C) 2017-2020 The LineageOS Project
5 | #
6 | # SPDX-License-Identifier: Apache-2.0
7 | #
8 |
9 | set -e
10 |
11 | # Load extract_utils and do some sanity checks
12 | MY_DIR="${BASH_SOURCE%/*}"
13 | if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi
14 |
15 | ANDROID_ROOT="${MY_DIR}/../../.."
16 |
17 | HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh"
18 | if [ ! -f "${HELPER}" ]; then
19 | echo "Unable to find helper script at ${HELPER}"
20 | exit 1
21 | fi
22 | source "${HELPER}"
23 |
24 | # Initialize the helper for common
25 | setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${ANDROID_ROOT}" true
26 |
27 | # Warning headers and guards
28 | write_headers "beckham chef evert lake payton"
29 |
30 | # The standard common blobs
31 | write_makefiles "${MY_DIR}/proprietary-files.txt" true
32 |
33 | # Finish
34 | write_footers
35 |
36 | if [ -s "${MY_DIR}/../${DEVICE}/proprietary-files.txt" ]; then
37 | # Reinitialize the helper for device
38 | setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" false
39 |
40 | # Warning headers and guards
41 | write_headers
42 |
43 | # The standard device blobs
44 | write_makefiles "${MY_DIR}/../${DEVICE}/proprietary-files.txt" true
45 |
46 | if [[ ! -z "${USES_MOTCAMERA}" ]]; then
47 | write_motcam_androidmk
48 | fi
49 |
50 | # Finish
51 | write_footers
52 | fi
53 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_settings_dirac.xml:
--------------------------------------------------------------------------------
1 |
13 |
19 |
27 |
28 |
--------------------------------------------------------------------------------
/libhidl/Android.mk:
--------------------------------------------------------------------------------
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 | include $(CLEAR_VARS)
17 | LOCAL_SHARED_LIBRARIES := libhidlbase
18 | LOCAL_MODULE := android.hidl.base@1.0
19 | LOCAL_MODULE_TAGS := optional
20 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES
21 | LOCAL_VENDOR_MODULE := true
22 | include $(BUILD_SHARED_LIBRARY)
23 |
24 | include $(CLEAR_VARS)
25 | LOCAL_SHARED_LIBRARIES := libhidlbase
26 | LOCAL_MODULE := android.hidl.base@1.0_system
27 | LOCAL_INSTALLED_MODULE_STEM := android.hidl.base@1.0.so
28 | LOCAL_MODULE_TAGS := optional
29 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES
30 | include $(BUILD_SHARED_LIBRARY)
31 |
32 | include $(CLEAR_VARS)
33 | LOCAL_SHARED_LIBRARIES := libhidlbase
34 | LOCAL_MODULE := android.hidl.manager@1.0
35 | LOCAL_MODULE_TAGS := optional
36 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES
37 | LOCAL_VENDOR_MODULE := true
38 | include $(BUILD_SHARED_LIBRARY)
39 |
--------------------------------------------------------------------------------
/MotoActions/res/xml/doze_panel.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
19 |
20 |
26 |
27 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/gps/core/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 := libloc_core
9 | LOCAL_VENDOR_MODULE := true
10 | LOCAL_MODULE_TAGS := optional
11 |
12 | LOCAL_SHARED_LIBRARIES := \
13 | liblog \
14 | libutils \
15 | libcutils \
16 | libgps.utils \
17 | libdl \
18 | liblog
19 |
20 | LOCAL_SRC_FILES += \
21 | LocApiBase.cpp \
22 | LocAdapterBase.cpp \
23 | ContextBase.cpp \
24 | LocContext.cpp \
25 | loc_core_log.cpp \
26 | data-items/DataItemsFactoryProxy.cpp \
27 | SystemStatusOsObserver.cpp \
28 | SystemStatus.cpp
29 |
30 | LOCAL_CFLAGS += \
31 | -fno-short-enums \
32 | -D_ANDROID_
33 |
34 | LOCAL_C_INCLUDES:= \
35 | $(LOCAL_PATH)/data-items \
36 | $(LOCAL_PATH)/data-items/common \
37 | $(LOCAL_PATH)/observer \
38 |
39 | LOCAL_HEADER_LIBRARIES := \
40 | libutils_headers \
41 | libgps.utils_headers \
42 | libloc_pla_headers \
43 | liblocation_api_headers
44 |
45 | LOCAL_CFLAGS += $(GNSS_CFLAGS)
46 |
47 | include $(BUILD_SHARED_LIBRARY)
48 |
49 | include $(CLEAR_VARS)
50 | LOCAL_MODULE := libloc_core_headers
51 | LOCAL_EXPORT_C_INCLUDE_DIRS := \
52 | $(LOCAL_PATH) \
53 | $(LOCAL_PATH)/data-items \
54 | $(LOCAL_PATH)/data-items/common \
55 | $(LOCAL_PATH)/observer
56 | include $(BUILD_HEADER_LIBRARY)
57 |
58 | endif # not BUILD_TINY_ANDROID
59 | endif # BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE
60 |
--------------------------------------------------------------------------------
/pocketmode/src/org/lineageos/pocketmode/Startup.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2016 The CyanogenMod Project
3 | * 2017 The LineageOS Project
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License");
6 | * you may not use this file except in compliance with the License.
7 | * You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.lineageos.pocketmode;
19 |
20 | import android.content.BroadcastReceiver;
21 | import android.content.Context;
22 | import android.content.Intent;
23 | import android.os.UserHandle;
24 | import android.util.Log;
25 |
26 | public class Startup extends BroadcastReceiver {
27 |
28 | private static final String TAG = "MotoPocketMode";
29 |
30 | @Override
31 | public void onReceive(Context context, Intent intent) {
32 | final String action = intent.getAction();
33 | if (lineageos.content.Intent.ACTION_INITIALIZE_LINEAGE_HARDWARE.equals(action)) {
34 | Log.d(TAG, "Starting");
35 | context.startServiceAsUser(new Intent(context, PocketModeService.class),
36 | UserHandle.CURRENT);
37 | }
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_settings_gesturess.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
20 |
23 |
26 |
27 |
--------------------------------------------------------------------------------
/configs/boost_apns.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/gps/geofence/Makefile.am:
--------------------------------------------------------------------------------
1 | AM_CFLAGS = -Wundef \
2 | -Wno-trigraphs \
3 | -g -O0 \
4 | -fno-inline \
5 | -fno-short-enums \
6 | -fpic \
7 | ${GPSUTILS_CFLAGS} \
8 | ${LOCCORE_CFLAGS} \
9 | $(LOCPLA_CFLAGS) \
10 | -D__func__=__PRETTY_FUNCTION__ \
11 | -std=c++1y
12 |
13 | AM_CPPFLAGS = $(AM_CFLAGS)
14 |
15 | ACLOCAL_AMFLAGS = -I m4
16 |
17 | requiredlibs = \
18 | ${LOCCORE_LIBS} \
19 | $(GPSUTILS_LIBS) \
20 | -llog
21 |
22 | h_sources = \
23 | GeofenceAdapter.h
24 |
25 | c_sources = \
26 | GeofenceAdapter.cpp \
27 | location_geofence.cpp
28 |
29 | libgeofencing_la_SOURCES = $(c_sources)
30 | if USE_GLIB
31 | libgeofencing_la_CFLAGS = -DUSE_GLIB @GLIB_CFLAGS@ $(AM_CFLAGS)
32 | libgeofencing_la_CPPFLAGS = -DUSE_GLIB @GLIB_CFLAGS@ $(AM_CFLAGS) $(AM_CPPFLAGS)
33 | libgeofencing_la_LDFLAGS = -lstdc++ -Wl,-z,defs @GLIB_LIBS@ $(requiredlibs) -shared -version-info 1:0:0
34 | libgeofencing_la_LIBDADD = $(requiredlibs) -lstdc++ @GLIB_LIBS@
35 | else
36 | libgeofencing_la_CFLAGS = $(AM_CFLAGS)
37 | libgeofencing_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
38 | libgeofencing_la_LDFLAGS = -lstdc++ -Wl,-z,defs $(requiredlibs) -shared -version-info 1:0:0
39 | libgeofencing_la_LIBDADD = $(requiredlibs) -lstdc++
40 | endif
41 |
42 | library_include_HEADERS = $(h_sources)
43 |
44 | library_includedir = $(pkgincludedir)
45 |
46 | lib_LTLIBRARIES = libgeofencing.la
47 |
48 | pkgconfigdir = $(libdir)/pkgconfig
49 | pkgconfig_DATA = location-geofence.pc
50 | EXTRA_DIST = $(pkgconfig_DATA)
51 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_settings_gestures.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
23 |
26 |
29 |
30 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_settings_screen_off_gestures.xml:
--------------------------------------------------------------------------------
1 |
13 |
19 |
22 |
23 |
--------------------------------------------------------------------------------
/light/service.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 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 | #define LOG_TAG "android.hardware.light@2.0-service.sdm660"
18 |
19 | #include
20 |
21 | #include "Light.h"
22 |
23 | using android::hardware::configureRpcThreadpool;
24 | using android::hardware::joinRpcThreadpool;
25 |
26 | using android::hardware::light::V2_0::ILight;
27 | using android::hardware::light::V2_0::implementation::Light;
28 |
29 | using android::OK;
30 | using android::sp;
31 | using android::status_t;
32 |
33 | int main() {
34 | android::sp service = new Light();
35 |
36 | configureRpcThreadpool(1, true);
37 |
38 | status_t status = service->registerAsService();
39 | if (status != OK) {
40 | ALOGE("Cannot register Light HAL service.");
41 | return 1;
42 | }
43 |
44 | ALOGI("Light HAL service ready.");
45 |
46 | joinRpcThreadpool();
47 |
48 | ALOGI("Light HAL service failed to join thread pool.");
49 | return 1;
50 | }
51 |
--------------------------------------------------------------------------------
/MotoActions/src/com/moto/actions/GestureSettingsFragment.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 androidx.preference.PreferenceFragment;
21 | import android.view.LayoutInflater;
22 | import android.view.View;
23 | import android.view.ViewGroup;
24 |
25 | public class GestureSettingsFragment extends PreferenceFragment {
26 |
27 | @Override
28 | public View onCreateView(LayoutInflater inflater, ViewGroup container,
29 | Bundle savedInstanceState) {
30 | final View view = LayoutInflater.from(getContext()).inflate(R.layout.gesture, container, false);
31 | ((ViewGroup) view).addView(super.onCreateView(inflater, container, savedInstanceState));
32 | return view;
33 | }
34 |
35 | @Override
36 | public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
37 | addPreferencesFromResource(R.xml.actions_panel);
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/soong/init.go:
--------------------------------------------------------------------------------
1 | package sdm660
2 |
3 | import (
4 | "android/soong/android"
5 | "android/soong/cc"
6 | "strings"
7 | )
8 |
9 | func initFlags(ctx android.BaseContext) []string {
10 | var cflags []string
11 |
12 | var config = ctx.AConfig().VendorConfig("MOTOROLA_SDM660_INIT")
13 | var lib = strings.TrimSpace(config.String("DEVICE_LIB"))
14 |
15 | if len(strings.TrimSpace(lib)) != 0 {
16 | cflags = append(cflags, "-DTARGET_PROVIDES_DEVICE_LIBINIT")
17 | }
18 | return cflags
19 | }
20 |
21 | func initStaticLibs(ctx android.BaseContext) []string {
22 | var staticlibs []string
23 |
24 | var config = ctx.AConfig().VendorConfig("MOTOROLA_SDM660_INIT")
25 | var lib = strings.TrimSpace(config.String("DEVICE_LIB"))
26 |
27 | if len(strings.TrimSpace(lib)) != 0 {
28 | staticlibs = append(staticlibs, lib)
29 | }
30 | return staticlibs
31 | }
32 |
33 | func initLibrary(ctx android.LoadHookContext) {
34 | type props struct {
35 | Target struct {
36 | Android struct {
37 | Cflags []string
38 | Whole_static_libs []string
39 | }
40 | }
41 | }
42 |
43 | p := &props{}
44 | p.Target.Android.Cflags = initFlags(ctx)
45 | p.Target.Android.Whole_static_libs = initStaticLibs(ctx)
46 | ctx.AppendProperties(p)
47 | }
48 |
49 | func initLibraryFactory() android.Module {
50 | module, library := cc.NewLibrary(android.HostAndDeviceSupported)
51 | library.BuildOnlyStatic()
52 | newMod := module.Init()
53 | android.AddLoadHook(newMod, initLibrary)
54 | return newMod
55 | }
56 |
--------------------------------------------------------------------------------
/gps/utils/Android.mk:
--------------------------------------------------------------------------------
1 | ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),)
2 | ifneq ($(BUILD_TINY_ANDROID),true)
3 | #Compile this library only for builds with the latest modem image
4 |
5 | LOCAL_PATH := $(call my-dir)
6 |
7 | include $(CLEAR_VARS)
8 |
9 |
10 | ## Libs
11 | LOCAL_SHARED_LIBRARIES := \
12 | libdl \
13 | libutils \
14 | libcutils \
15 | liblog \
16 | libprocessgroup
17 |
18 | LOCAL_SRC_FILES += \
19 | loc_log.cpp \
20 | loc_cfg.cpp \
21 | msg_q.c \
22 | linked_list.c \
23 | loc_target.cpp \
24 | LocHeap.cpp \
25 | LocTimer.cpp \
26 | LocThread.cpp \
27 | MsgTask.cpp \
28 | loc_misc_utils.cpp \
29 | loc_nmea.cpp \
30 | LocIpc.cpp
31 |
32 | # Flag -std=c++11 is not accepted by compiler when LOCAL_CLANG is set to true
33 | LOCAL_CFLAGS += \
34 | -fno-short-enums \
35 | -D_ANDROID_
36 |
37 | ifeq ($(TARGET_BUILD_VARIANT),user)
38 | LOCAL_CFLAGS += -DTARGET_BUILD_VARIANT_USER
39 | endif
40 |
41 | LOCAL_LDFLAGS += -Wl,--export-dynamic
42 |
43 | ## Includes
44 | LOCAL_HEADER_LIBRARIES := \
45 | libutils_headers \
46 | libloc_pla_headers \
47 | liblocation_api_headers
48 |
49 | LOCAL_MODULE := libgps.utils
50 | LOCAL_VENDOR_MODULE := true
51 | LOCAL_MODULE_TAGS := optional
52 |
53 | LOCAL_PRELINK_MODULE := false
54 |
55 | LOCAL_CFLAGS += $(GNSS_CFLAGS)
56 |
57 | include $(BUILD_SHARED_LIBRARY)
58 |
59 | include $(CLEAR_VARS)
60 | LOCAL_MODULE := libgps.utils_headers
61 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
62 | include $(BUILD_HEADER_LIBRARY)
63 |
64 | endif # not BUILD_TINY_ANDROID
65 | endif # BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE
66 |
--------------------------------------------------------------------------------
/MotoActions/src/com/moto/actions/ActionsPreferenceFragment.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2015-2016 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 | import android.os.Bundle;
21 | import androidx.preference.PreferenceFragment;
22 | import android.view.LayoutInflater;
23 | import android.view.View;
24 | import android.view.ViewGroup;
25 |
26 | public class ActionsPreferenceFragment extends PreferenceFragment {
27 |
28 | @Override
29 | public View onCreateView(LayoutInflater inflater, ViewGroup container,
30 | Bundle savedInstanceState) {
31 | final View view = LayoutInflater.from(getContext()).inflate(R.layout.actions, container, false);
32 | ((ViewGroup) view).addView(super.onCreateView(inflater, container, savedInstanceState));
33 | return view;
34 | }
35 |
36 | @Override
37 | public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
38 | addPreferencesFromResource(R.xml.main_panel);
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/power-libperfmgr/libperfmgr/include/perfmgr/PropertyNode.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2017 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specic language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #ifndef ANDROID_LIBPERFMGR_PROPERTYNODE_H_
18 | #define ANDROID_LIBPERFMGR_PROPERTYNODE_H_
19 |
20 | #include
21 | #include
22 | #include
23 |
24 | #include "perfmgr/Node.h"
25 |
26 | namespace android {
27 | namespace perfmgr {
28 |
29 | // PropertyNode represents managed system properties
30 | class PropertyNode : public Node {
31 | public:
32 | PropertyNode(std::string name, std::string node_path,
33 | std::vector req_sorted,
34 | std::size_t default_val_index, bool reset_on_init);
35 |
36 | std::chrono::milliseconds Update(bool log_error) override;
37 |
38 | void DumpToFd(int fd) const override;
39 |
40 | private:
41 | PropertyNode(const Node& other) = delete;
42 | PropertyNode& operator=(Node const&) = delete;
43 | };
44 |
45 | } // namespace perfmgr
46 | } // namespace android
47 |
48 | #endif // ANDROID_LIBPERFMGR_PROPERTYNODE_H_
49 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_tap.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
20 |
23 |
24 |
--------------------------------------------------------------------------------
/overlay/packages/services/Telephony/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
19 |
20 |
21 | true
22 |
23 | false
24 |
25 | true
26 |
27 |
28 | org.codeaurora.ims
29 |
30 |
31 | org.codeaurora.ims
32 |
33 |
--------------------------------------------------------------------------------
/location/loc_net_iface/Makefile.am:
--------------------------------------------------------------------------------
1 | AM_CFLAGS = \
2 | -I./ \
3 | -I./le \
4 | $(LOCPLA_CFLAGS) \
5 | $(LOCCORE_CFLAGS) \
6 | $(LOCHAL_CFLAGS) \
7 | $(GPSUTILS_CFLAGS) \
8 | $(QMIF_CFLAGS) \
9 | $(QMI_CFLAGS) \
10 | $(DATA_CFLAGS) \
11 | $(DSUTILS_CFLAGS) \
12 | $(DATAITEMS_CFLAGS)
13 |
14 | ACLOCAL_AMFLAGS = -I m4
15 |
16 | AM_CPPFLAGS = -std=c++11
17 |
18 | libloc_net_iface_la_SOURCES = \
19 | LocNetIfaceBase.cpp \
20 | LocNetIfaceAgps.cpp \
21 | le/LocNetIface.cpp
22 |
23 | if USE_GLIB
24 | libloc_net_iface_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@
25 | libloc_net_iface_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0
26 | libloc_net_iface_la_LDFLAGS += -Wl,--export-dynamic
27 | libloc_net_iface_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
28 | else
29 | libloc_net_iface_la_CFLAGS = $(AM_CFLAGS)
30 | libloc_net_iface_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread -shared -version-info 1:0:0
31 | libloc_net_iface_la_LDFLAGS += -Wl,--export-dynamic
32 | libloc_net_iface_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
33 | endif
34 |
35 | libloc_net_iface_la_LIBADD = -lstdc++ $(QMIF_LIBS) -lqmiservices
36 | libloc_net_iface_la_LIBADD += $(GPSUTILS_LIBS) $(LOCHAL_LIBS) $(DATAITEMS_LIBS)
37 | libloc_net_iface_la_LIBADD += -lqcmap_client -ldsi_netctrl
38 |
39 | library_include_HEADERS = \
40 | LocNetIfaceBase.h \
41 | LocNetIfaceAgps.h \
42 | le/LocNetIface.h
43 |
44 | #Create and Install libraries
45 | lib_LTLIBRARIES = libloc_net_iface.la
46 |
47 | library_includedir = $(pkgincludedir)
48 | pkgconfigdir = $(libdir)/pkgconfig
49 | pkgconfig_DATA = loc-net-iface.pc
50 | EXTRA_DIST = $(pkgconfig_DATA)
51 |
--------------------------------------------------------------------------------
/mot_aids.fs:
--------------------------------------------------------------------------------
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 | [AID_VENDOR_MOT_ACCY]
17 | value: 5000
18 |
19 | [AID_VENDOR_MOT_PWRIC]
20 | value: 5001
21 |
22 | [AID_VENDOR_MOT_USB]
23 | value: 5002
24 |
25 | [AID_VENDOR_MOT_DRM]
26 | value: 5003
27 |
28 | [AID_VENDOR_MOT_TCMD]
29 | value: 5004
30 |
31 | [AID_VENDOR_MOT_SEC_RTC]
32 | value: 5005
33 |
34 | [AID_VENDOR_MOT_TOMBSTONE]
35 | value: 5006
36 |
37 | [AID_VENDOR_MOT_TPAPI]
38 | value: 5007
39 |
40 | [AID_VENDOR_MOT_SECCLKD]
41 | value: 5008
42 |
43 | [AID_VENDOR_MOT_WHISPER]
44 | value: 5009
45 |
46 | [AID_VENDOR_MOT_CAIF]
47 | value: 5010
48 |
49 | [AID_VENDOR_MOT_DLNA]
50 | value: 5011
51 |
52 | [AID_VENDOR_MOT_ATVC]
53 | value: 5012
54 |
55 | [AID_VENDOR_MOT_DBVC]
56 | value: 5014
57 |
58 | [AID_VENDOR_FINGERP]
59 | value: 5015
60 |
61 | [AID_VENDOR_MOT_ESDFS]
62 | value: 5016
63 |
64 | [AID_VENDOR_POWER]
65 | value: 5017
66 |
67 | [AID_VENDOR_ITSON]
68 | value: 5018
69 |
70 | [AID_VENDOR_MOT_DTV]
71 | value: 5019
72 |
73 | [AID_VENDOR_MOT_MOD]
74 | value: 5020
75 |
76 | [AID_VENDOR_MOT_SHARED]
77 | value: 5323
78 |
79 | [AID_VENDOR_MOT_COMMON]
80 | value: 5341
81 |
--------------------------------------------------------------------------------
/MotoActions/src/com/moto/actions/SuTask.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2017 AICP
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.content.Context;
20 | import android.os.AsyncTask;
21 | import android.widget.Toast;
22 |
23 | import com.moto.actions.R;
24 |
25 | public abstract class SuTask extends AsyncTask {
26 | private Context mContext;
27 |
28 | public SuTask(Context context) {
29 | super();
30 | mContext = context;
31 | }
32 |
33 | abstract protected void sudoInBackground(Params... params)
34 | throws SuShell.SuDeniedException;
35 |
36 | @Override
37 | protected Boolean doInBackground(Params... params) {
38 | try {
39 | sudoInBackground(params);
40 | return true;
41 | } catch (SuShell.SuDeniedException e) {
42 | return false;
43 | }
44 | }
45 |
46 | @Override
47 | protected void onPostExecute(Boolean result) {
48 | super.onPostExecute(result);
49 | if (!result) {
50 | Toast.makeText(mContext, R.string.cannot_get_su,
51 | Toast.LENGTH_LONG).show();
52 | }
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values-mcc310-mnc410/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 | 3
24 |
25 |
26 | - XTRA_SERVER_1=https://xtrapath1.izatcloud.net/xtra2.bin
27 | - XTRA_SERVER_2=https://xtrapath2.izatcloud.net/xtra2.bin
28 | - XTRA_SERVER_3=https://xtrapath3.izatcloud.net/xtra2.bin
29 | - SUPL_MODE=0
30 | - SUPL_HOST=NONE
31 | - SUPL_PORT=7275
32 | - SUPL_VER=0x20000
33 | - LPP_PROFILE=2
34 | - NMEA_PROVIDER=0
35 | - A_GLONASS_POS_PROTOCOL_SELECT=0
36 | - ERR_ESTIMATE=0
37 | - INTERMEDIATE_POS=0
38 | - SUPL_ES=1
39 | - GPS_LOCK=1
40 |
41 |
42 |
--------------------------------------------------------------------------------
/location/location_hal_daemon/Makefile.am:
--------------------------------------------------------------------------------
1 | AM_CFLAGS = \
2 | -DDEBUG \
3 | -I./ \
4 | $(LOCCORE_CFLAGS) \
5 | $(GPSUTILS_CFLAGS) \
6 | -std=c++11
7 |
8 | if USE_SYSTEMD
9 | AM_CFLAGS += -DINIT_SYSTEM_SYSTEMD
10 | else
11 | AM_CFLAGS += -DINIT_SYSTEM_SYSV
12 | endif
13 |
14 | if USE_FEATURE_AUTOMOTIVE
15 | AM_CFLAGS += -DFEATURE_AUTOMOTIVE
16 | endif
17 |
18 | requiredlibs = \
19 | $(LOCATIONAPI_LIBS) \
20 | $(GPSUTILS_LIBS)
21 |
22 | h_sources = \
23 | LocationApiMsg.h \
24 | LocHalDaemonClientHandler.h \
25 | LocationApiService.h
26 |
27 | c_sources = \
28 | LocHalDaemonClientHandler.cpp \
29 | LocationApiService.cpp \
30 | main.cpp
31 |
32 | if POWERMANAGER_ENABLED
33 | AM_CFLAGS += $(PM_CFLAGS) -DPOWERMANAGER_ENABLED
34 | c_sources += PowerEvtHandler.cpp
35 | requiredlibs += $(PM_LIBS)
36 | endif
37 |
38 | location_hal_daemon_SOURCES = \
39 | $(c_sources) $(h_sources)
40 |
41 | ######################
42 | # Build location_hal_daemon
43 | ######################
44 |
45 | if USE_GLIB
46 | location_hal_daemon_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@
47 | location_hal_daemon_LDFLAGS = -lstdc++ -g -Wl,-z,defs -lpthread @GLIB_LIBS@ -shared
48 | location_hal_daemon_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
49 | else
50 | location_hal_daemon_CFLAGS = $(AM_CFLAGS)
51 | location_hal_daemon_LDFLAGS = -Wl,-z,defs -lpthread -shared
52 | location_hal_daemon_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
53 | endif
54 |
55 | location_hal_daemon_LDADD = $(requiredlibs) -lcutils -ldl
56 |
57 | bin_PROGRAMS = location_hal_daemon
58 |
59 | library_include_HEADERS = $(h_sources)
60 | library_includedir = $(pkgincludedir)
61 |
62 | pkgconfigdir = $(libdir)/pkgconfig
63 | pkgconfig_DATA = location-hal-daemon.pc
64 | EXTRA_DIST = $(pkgconfig_DATA)
65 |
66 |
--------------------------------------------------------------------------------
/gps/etc/Android.mk:
--------------------------------------------------------------------------------
1 |
2 | LOCAL_PATH := $(call my-dir)
3 | include $(CLEAR_VARS)
4 |
5 | LOCAL_MODULE := apdr.conf
6 | LOCAL_MODULE_TAGS := optional
7 | LOCAL_MODULE_CLASS := ETC
8 | LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/etc/
9 | LOCAL_SRC_FILES := apdr.conf
10 |
11 | include $(BUILD_PREBUILT)
12 |
13 | include $(CLEAR_VARS)
14 |
15 | LOCAL_MODULE := flp.conf
16 | LOCAL_MODULE_TAGS := optional
17 | LOCAL_MODULE_CLASS := ETC
18 | LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/etc/
19 | LOCAL_SRC_FILES := flp.conf
20 |
21 | include $(BUILD_PREBUILT)
22 |
23 | include $(CLEAR_VARS)
24 |
25 | LOCAL_MODULE := gps.conf
26 | LOCAL_MODULE_TAGS := optional
27 | LOCAL_MODULE_CLASS := ETC
28 | LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/etc/
29 | LOCAL_SRC_FILES := gps.conf
30 |
31 | include $(BUILD_PREBUILT)
32 |
33 | include $(CLEAR_VARS)
34 |
35 | LOCAL_MODULE := izat.conf
36 | LOCAL_MODULE_TAGS := optional
37 | LOCAL_MODULE_CLASS := ETC
38 | LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/etc/
39 | LOCAL_SRC_FILES := izat.conf
40 |
41 | include $(BUILD_PREBUILT)
42 |
43 | include $(CLEAR_VARS)
44 |
45 | LOCAL_MODULE := lowi.conf
46 | LOCAL_MODULE_TAGS := optional
47 | LOCAL_MODULE_CLASS := ETC
48 | LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/etc/
49 | LOCAL_SRC_FILES := lowi.conf
50 |
51 | include $(BUILD_PREBUILT)
52 |
53 | include $(CLEAR_VARS)
54 |
55 | LOCAL_MODULE := sap.conf
56 | LOCAL_MODULE_TAGS := optional
57 | LOCAL_MODULE_CLASS := ETC
58 | LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/etc/
59 | LOCAL_SRC_FILES := sap.conf
60 |
61 | include $(BUILD_PREBUILT)
62 |
63 | include $(CLEAR_VARS)
64 |
65 | LOCAL_MODULE := xtwifi.conf
66 | LOCAL_MODULE_TAGS := optional
67 | LOCAL_MODULE_CLASS := ETC
68 | LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/etc/
69 | LOCAL_SRC_FILES := xtwifi.conf
70 |
71 | include $(BUILD_PREBUILT)
72 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_fingerprint_fpc.te:
--------------------------------------------------------------------------------
1 | type hal_fingerprint_fpc, domain;
2 | typeattribute hal_fingerprint_fpc data_between_core_and_vendor_violators;
3 |
4 | hal_server_domain(hal_fingerprint_fpc, hal_fingerprint)
5 |
6 | type hal_fingerprint_fpc_exec, exec_type, vendor_file_type, file_type;
7 | init_daemon_domain(hal_fingerprint_fpc)
8 |
9 | hwbinder_use(hal_fingerprint_fpc)
10 | vndbinder_use(hal_fingerprint_fpc)
11 |
12 | # Check if hwservicemanager is ready
13 | get_prop(hal_fingerprint_fpc, hwservicemanager_prop)
14 |
15 | # Add com.fingerprints.extension::IFingerprint* service to hwservicemanager
16 | add_hwservice(hal_fingerprint_fpc, fpc_extension_service)
17 |
18 | r_dir_file(hal_fingerprint_fpc, firmware_file)
19 | r_dir_file(hal_fingerprint_fpc, sysfs_devfreq)
20 |
21 | allow hal_fingerprint_fpc tee_device:chr_file { open read write ioctl };
22 | allow hal_fingerprint_fpc uhid_device:chr_file rw_file_perms;
23 | allow hal_fingerprint_fpc sysfs_fingerprint:dir r_dir_perms;
24 | allow hal_fingerprint_fpc sysfs_fingerprint:file rw_file_perms;
25 |
26 | # Allow hal_fingerprint_fpc to add and find fpc_extension_service
27 | allow hal_fingerprint_fpc fpc_extension_service:hwservice_manager { add find };
28 |
29 | allow hal_fingerprint_fpc fingerprint_data_file:dir rw_dir_perms;
30 | allow hal_fingerprint_fpc fingerprint_data_file:file create_file_perms;
31 |
32 | allow hal_fingerprint_fpc self:netlink_socket create_socket_perms_no_ioctl;
33 |
34 | allow hal_fingerprint_fpc system_fps_data_file:dir { create_dir_perms };
35 | allow hal_fingerprint_fpc system_fps_data_file:file { create_file_perms };
36 |
37 | allow hal_fingerprint_fpc fingerprintd_data_file:dir rw_dir_perms;
38 | allow hal_fingerprint_fpc fingerprintd_data_file:file create_file_perms;
39 |
40 | allow hal_fingerprint_fpc tee_device:chr_file getattr;
41 |
--------------------------------------------------------------------------------
/configs/lm/AdaptLaunchFeature.xml:
--------------------------------------------------------------------------------
1 |
14 |
17 |
18 | AdaptLaunch
19 | libadaptlaunch.so
20 |
21 | 4
22 |
23 | VmRss
24 |
25 |
26 | true
27 | VENDOR_HINT_FIRST_LAUNCH_BOOST
28 | 1
29 |
30 |
31 | false
32 | VENDOR_HINT_TAP_EVENT
33 |
34 |
35 | 120
36 |
37 | VmRss:
38 |
39 |
40 |
41 |
42 | com.king.candycrushsaga
43 | com.tencent.tmgp.sgame
44 | com.tencent.ig
45 |
46 |
47 |
--------------------------------------------------------------------------------
/power-libperfmgr/libperfmgr/include/perfmgr/FileNode.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2017 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specic language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #ifndef ANDROID_LIBPERFMGR_FILENODE_H_
18 | #define ANDROID_LIBPERFMGR_FILENODE_H_
19 |
20 | #include
21 |
22 | #include
23 | #include
24 | #include
25 |
26 | #include "perfmgr/Node.h"
27 |
28 | namespace android {
29 | namespace perfmgr {
30 |
31 | // FileNode represents file
32 | class FileNode : public Node {
33 | public:
34 | FileNode(std::string name, std::string node_path,
35 | std::vector req_sorted, std::size_t default_val_index,
36 | bool reset_on_init, bool hold_fd = false);
37 |
38 | std::chrono::milliseconds Update(bool log_error) override;
39 |
40 | bool GetHoldFd() const;
41 |
42 | void DumpToFd(int fd) const override;
43 |
44 | private:
45 | FileNode(const Node& other) = delete;
46 | FileNode& operator=(Node const&) = delete;
47 |
48 | const bool hold_fd_;
49 | const std::chrono::milliseconds warn_timeout_;
50 | android::base::unique_fd fd_;
51 | };
52 |
53 | } // namespace perfmgr
54 | } // namespace android
55 |
56 | #endif // ANDROID_LIBPERFMGR_FILENODE_H_
57 |
--------------------------------------------------------------------------------
/overlay/packages/apps/Snap/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
19 |
20 |
21 |
22 | false
23 |
24 |
25 | false
26 |
27 |
28 | true
29 |
30 |
31 | true
32 |
33 |
34 | true
35 |
36 |
37 | true
38 |
39 |
40 | true
41 |
42 |
43 |
--------------------------------------------------------------------------------
/MotoActions/res/drawable/ic_settings_spectrum.xml:
--------------------------------------------------------------------------------
1 |
13 |
19 |
31 |
32 |
--------------------------------------------------------------------------------
/MotoActions/res-common/values-en-rUS/custom_strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/gps/etc/lowi.conf:
--------------------------------------------------------------------------------
1 | #*====*====*====*====*====*====*====*====*====*====*====*====*====*====*====*
2 | #
3 | # LOWI Config file
4 | #
5 | # GENERAL DESCRIPTION
6 | # This file contains the config params for LOWI
7 | #
8 | # Copyright (c) 2012-2013 Qualcomm Atheros, Inc.
9 | # All Rights Reserved.
10 | # Qualcomm Atheros Confidential and Proprietary.
11 | #
12 | # Export of this technology or software is regulated by the U.S. Government.
13 | # Diversion contrary to U.S. law prohibited.
14 | #=============================================================================*/
15 |
16 | # X86 ONLY - UBUNTU:
17 | # Copy this file in the same directory where the executable is
18 |
19 | # The RSSI threshold used in the RTT outlier detection in half decibels. Default value recommended by the
20 | # system team currently is -140 (corresponding to -70 dB).
21 | LOWI_RSSI_THRESHOLD_FOR_RTT = -140
22 |
23 | # Number of measurment per AP for RTS/CTS
24 | LOWI_RTS_CTS_NUM_MEAS = 5
25 |
26 | # Maximum Number of Outstanding Requests supported
27 | LOWI_MAX_OUTSTANDING_REQUEST = 255
28 |
29 | # Maximum number of records in Cache
30 | LOWI_MAX_NUM_CACHE_RECORDS = 200
31 |
32 | # Default threshold before issuing another fresh scan (ms)
33 | LOWI_FRESH_SCAN_THRESHOLD = 500
34 |
35 | # Timeout in case no result is reported by the driver (seconds)
36 | LOWI_NO_RESULT_WAIT_TOLERANCE = 10
37 |
38 | # Use Fake Wifi driver. Only valid for engineering builds
39 | LOWI_USE_FAKE_WIFI_DRIVER = 0
40 |
41 | # Use ROME Wifi driver. Only valid for engineering builds
42 | # Will be removed later only for development support
43 | LOWI_USE_ROME_WIFI_DRIVER = 0
44 |
45 | # Use LOWI LP.
46 | # When enabled the Discovery Request will be routed to LOWI-LP
47 | LOWI_USE_LOWI_LP = 1
48 |
49 | # Log level
50 | # EL_LOG_OFF = 0, EL_ERROR = 1, EL_WARNING = 2, EL_INFO = 3, EL_DEBUG = 4, EL_VERBOSE = 5, EL_LOG_ALL = 100
51 | LOWI_LOG_LEVEL = 2
52 |
--------------------------------------------------------------------------------
/light/Light.h:
--------------------------------------------------------------------------------
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 | #ifndef ANDROID_HARDWARE_LIGHT_V2_0_LIGHT_H
17 | #define ANDROID_HARDWARE_LIGHT_V2_0_LIGHT_H
18 |
19 | #include
20 | #include
21 | #include
22 | #include