├── camera ├── MODULE_LICENSE_BSD ├── QCamera │ ├── HAL │ │ ├── test │ │ │ └── Android.mk │ │ └── Android.mk │ ├── HAL2 │ │ ├── test │ │ │ └── Android.mk │ │ └── Android.mk │ ├── Android.mk │ └── stack │ │ ├── mm-camera-interface │ │ └── src │ │ │ └── mm_camera_interface.c │ │ └── Android.mk ├── common.mk ├── mm-image-codec │ ├── Android.mk │ └── qomx_core │ │ └── Android.mk ├── QCamera2 │ └── stack │ │ └── Android.mk └── Android.mk ├── self-extractors ├── Android.mk ├── PROLOGUE ├── moto │ ├── COPYRIGHT │ └── staging │ │ └── BoardConfigPartial.mk ├── broadcom │ ├── COPYRIGHT │ └── staging │ │ ├── BoardConfigPartial.mk │ │ └── device-partial.mk ├── qcom │ ├── COPYRIGHT │ └── staging │ │ └── BoardConfigPartial.mk ├── PART3 ├── PART1 ├── PART2 └── root │ ├── BoardConfigVendor.mk │ └── device-vendor.mk ├── liblight ├── MODULE_LICENSE_APACHE2 └── Android.mk ├── board-info.txt ├── egl.cfg ├── overlay ├── packages │ ├── apps │ │ ├── Phone │ │ ├── Settings │ │ │ └── res │ │ │ │ ├── values │ │ │ │ └── bool.xml │ │ │ │ └── values-mcc302-mnc610 │ │ │ │ └── arrays.xml │ │ ├── CellBroadcastReceiver │ │ │ └── res │ │ │ │ └── values-mcc302-mnc610 │ │ │ │ └── config.xml │ │ ├── OmniGears │ │ │ └── res │ │ │ │ └── values │ │ │ │ └── config.xml │ │ └── OmniClock │ │ │ └── res │ │ │ └── values │ │ │ └── config.xml │ └── services │ │ └── Telephony │ │ └── res │ │ └── values-mcc310-mnc120 │ │ └── strings.xml └── frameworks │ └── base │ ├── core │ └── res │ │ └── res │ │ ├── drawable-nodpi │ │ └── default_wallpaper.png │ │ ├── values-mcc302-mnc610 │ │ └── config.xml │ │ ├── values-mcc214-mnc01 │ │ └── config.xml │ │ ├── values-mcc268-mnc01 │ │ └── config.xml │ │ ├── values-mcc330-mnc110 │ │ └── config.xml │ │ ├── values-mcc334-mnc020 │ │ └── config.xml │ │ ├── values-mcc334-mnc03 │ │ └── config.xml │ │ ├── values-mcc334-mnc050 │ │ └── config.xml │ │ ├── values-mcc334-mnc090 │ │ └── config.xml │ │ ├── values-mcc334-mnc30 │ │ └── config.xml │ │ ├── values-mcc370-mnc02 │ │ └── config.xml │ │ ├── values-mcc706-mnc01 │ │ └── config.xml │ │ ├── values-mcc712-mnc03 │ │ └── config.xml │ │ ├── values-mcc714-mnc03 │ │ └── config.xml │ │ ├── values-mcc716-mnc06 │ │ └── config.xml │ │ ├── values-mcc716-mnc10 │ │ └── config.xml │ │ ├── values-mcc716-mnc17 │ │ └── config.xml │ │ ├── values-mcc722-mnc02 │ │ └── config.xml │ │ ├── values-mcc722-mnc07 │ │ └── config.xml │ │ ├── values-mcc722-mnc310 │ │ └── config.xml │ │ ├── values-mcc722-mnc34 │ │ └── config.xml │ │ ├── values-mcc722-mnc340 │ │ └── config.xml │ │ ├── values-mcc722-mnc341 │ │ └── config.xml │ │ ├── values-mcc722-mnc36 │ │ └── config.xml │ │ ├── values-mcc724-mnc02 │ │ └── config.xml │ │ ├── values-mcc724-mnc03 │ │ └── config.xml │ │ ├── values-mcc724-mnc04 │ │ └── config.xml │ │ ├── values-mcc724-mnc05 │ │ └── config.xml │ │ ├── values-mcc724-mnc06 │ │ └── config.xml │ │ ├── values-mcc724-mnc10 │ │ └── config.xml │ │ ├── values-mcc724-mnc11 │ │ └── config.xml │ │ ├── values-mcc724-mnc16 │ │ └── config.xml │ │ ├── values-mcc724-mnc23 │ │ └── config.xml │ │ ├── values-mcc724-mnc24 │ │ └── config.xml │ │ ├── values-mcc724-mnc31 │ │ └── config.xml │ │ ├── values-mcc724-mnc39 │ │ └── config.xml │ │ ├── values-mcc730-mnc01 │ │ └── config.xml │ │ ├── values-mcc730-mnc02 │ │ └── config.xml │ │ ├── values-mcc730-mnc09 │ │ └── config.xml │ │ ├── values-mcc730-mnc10 │ │ └── config.xml │ │ ├── values-mcc732-mnc101 │ │ └── config.xml │ │ ├── values-mcc732-mnc103 │ │ └── config.xml │ │ ├── values-mcc732-mnc111 │ │ └── config.xml │ │ ├── values-mcc732-mnc12 │ │ └── config.xml │ │ ├── values-mcc732-mnc123 │ │ └── config.xml │ │ ├── values-mcc732-mnc130 │ │ └── config.xml │ │ ├── values-mcc734-mnc04 │ │ └── config.xml │ │ ├── values-mcc740-mnc01 │ │ └── config.xml │ │ ├── values-mcc744-mnc02 │ │ └── config.xml │ │ ├── values-mcc748-mnc10 │ │ └── config.xml │ │ └── xml │ │ └── storage_list.xml │ └── packages │ ├── SystemUI │ └── res │ │ ├── values-mcc310-mnc010 │ │ └── config.xml │ │ ├── values-mcc310-mnc120 │ │ └── config.xml │ │ ├── values-mcc311-mnc490 │ │ └── config.xml │ │ ├── values-mcc311-mnc870 │ │ └── config.xml │ │ ├── values-mcc202 │ │ └── config.xml │ │ ├── values-mcc204 │ │ └── config.xml │ │ ├── values-mcc206 │ │ └── config.xml │ │ ├── values-mcc208 │ │ └── config.xml │ │ ├── values-mcc214 │ │ └── config.xml │ │ ├── values-mcc222 │ │ └── config.xml │ │ ├── values-mcc226 │ │ └── config.xml │ │ ├── values-mcc228 │ │ └── config.xml │ │ ├── values-mcc234 │ │ └── config.xml │ │ ├── values-mcc238 │ │ └── config.xml │ │ ├── values-mcc240 │ │ └── config.xml │ │ ├── values-mcc242 │ │ └── config.xml │ │ ├── values-mcc244 │ │ └── config.xml │ │ ├── values-mcc505 │ │ └── config.xml │ │ ├── values-mcc530 │ │ └── config.xml │ │ ├── values-mcc216-mnc01 │ │ └── config.xml │ │ ├── values-mcc216-mnc70 │ │ └── config.xml │ │ ├── values-mcc230-mnc02 │ │ └── config.xml │ │ ├── values-mcc230-mnc03 │ │ └── config.xml │ │ ├── values-mcc231-mnc01 │ │ └── config.xml │ │ ├── values-mcc231-mnc02 │ │ └── config.xml │ │ ├── values-mcc231-mnc06 │ │ └── config.xml │ │ ├── values-mcc232-mnc01 │ │ └── config.xml │ │ ├── values-mcc232-mnc05 │ │ └── config.xml │ │ ├── values-mcc232-mnc07 │ │ └── config.xml │ │ ├── values-mcc232-mnc10 │ │ └── config.xml │ │ ├── values-mcc232-mnc11 │ │ └── config.xml │ │ ├── values-mcc260-mnc02 │ │ └── config.xml │ │ ├── values-mcc260-mnc03 │ │ └── config.xml │ │ ├── values-mcc262-mnc02 │ │ └── config.xml │ │ ├── values-mcc262-mnc03 │ │ └── config.xml │ │ ├── values-mcc262-mnc07 │ │ └── config.xml │ │ ├── values-mcc268-mnc01 │ │ └── config.xml │ │ ├── values-mcc268-mnc03 │ │ └── config.xml │ │ ├── values-mcc268-mnc06 │ │ └── config.xml │ │ ├── values-mcc293-mnc40 │ │ └── config.xml │ │ ├── values-mcc293-mnc41 │ │ └── config.xml │ │ ├── values-mcc293-mnc70 │ │ └── config.xml │ │ ├── values-mcc537-mnc03 │ │ └── config.xml │ │ ├── values-mcc724-mnc02 │ │ └── config.xml │ │ ├── values-mcc724-mnc03 │ │ └── config.xml │ │ ├── values-mcc724-mnc04 │ │ └── config.xml │ │ ├── values-mcc724-mnc05 │ │ └── config.xml │ │ ├── values-mcc724-mnc06 │ │ └── config.xml │ │ ├── values-mcc724-mnc10 │ │ └── config.xml │ │ ├── values-mcc724-mnc11 │ │ └── config.xml │ │ ├── values-mcc724-mnc16 │ │ └── config.xml │ │ ├── values-mcc724-mnc23 │ │ └── config.xml │ │ ├── values-mcc724-mnc31 │ │ └── config.xml │ │ └── values-mcc334-mnc020 │ │ └── config.xml │ └── SettingsProvider │ └── res │ └── values │ └── defaults.xml ├── sepolicy ├── kernel.te ├── fsck.te ├── domain.te ├── wpa.te ├── service.te ├── netd.te ├── mediadrmserver.te ├── property.te ├── genfs_contexts ├── cameraserver.te ├── priv_app.te ├── app.te ├── bluetooth.te ├── property_contexts ├── perfprofd.te ├── ueventd.te ├── service_contexts ├── bluetooth_loader.te ├── init.te ├── irsc_util.te ├── platform_app.te ├── system_server.te ├── system_app.te ├── cnd.te ├── untrusted_app.te ├── te_macros ├── time.te ├── bridge.te ├── device.te ├── atfwd.te ├── tee.te ├── radio.te ├── mmi_touch_sh.te ├── tcmd.te ├── adspd.te ├── gsiffd.te ├── ss_ramdump.te ├── audioserver.te ├── mediaserver.te ├── qmux.te ├── thermald.te ├── camera.te └── rild.te ├── dataservices ├── Android.mk └── rmnetctl │ ├── Android.mk │ ├── cli │ └── Android.mk │ └── src │ └── Android.mk ├── qcril.db ├── twrp.mk ├── verity └── images │ ├── verity_red_1.png │ └── verity_red_2.png ├── bluetooth ├── BCM4356A2_001.003.015.0038.0059_ORC.hcd ├── BCM4356A2_001.003.015.0054.0155_ORC.hcd ├── BCM4356A2_001.003.015.0064.0173_ORC.hcd ├── BCM4356A2_001.003.015.0068.0182_ORC.hcd ├── BCM4356A2_001.003.015.0071.0190_ORC.hcd ├── BCM4356A2_001.003.015.0077.0214_ORC.hcd └── bdroid_buildcfg.h ├── init.shamu.diag.rc.user ├── init.shamu.diag.rc.userdebug ├── apq8084-taiko-tfa9890_stereo_co_Button_Jack.kl ├── ShamuLayout ├── Android.mk ├── AndroidManifest.xml ├── res │ ├── values │ │ ├── grid.xml │ │ └── strings.xml │ ├── values-am │ │ └── strings.xml │ ├── values-ja │ │ └── strings.xml │ ├── values-ko │ │ └── strings.xml │ ├── values-zh-rCN │ │ └── strings.xml │ ├── values-zh-rHK │ │ └── strings.xml │ ├── values-zh-rTW │ │ └── strings.xml │ ├── values-af │ │ └── strings.xml │ ├── values-fa │ │ └── strings.xml │ ├── values-in │ │ └── strings.xml │ ├── values-lo-rLA │ │ └── strings.xml │ ├── values-da │ │ └── strings.xml │ ├── values-et-rEE │ │ └── strings.xml │ ├── values-fi │ │ └── strings.xml │ ├── values-gu-rIN │ │ └── strings.xml │ ├── values-hi │ │ └── strings.xml │ ├── values-iw │ │ └── strings.xml │ ├── values-ms-rMY │ │ └── strings.xml │ ├── values-nb │ │ └── strings.xml │ ├── values-nl │ │ └── strings.xml │ └── values-pa-rIN │ │ └── strings.xml └── src │ └── com │ └── google │ └── android │ └── launcher │ └── layouts │ └── shamu │ └── PartnerCustomizationReceiver.java ├── sec_config ├── cryptfs_hw └── Android.mk ├── vendorsetup.sh ├── AndroidProducts.mk ├── omni_system.prop ├── omni.dependencies ├── BoardConfigOmni.mk ├── dumpstate └── Android.mk ├── power └── Android.mk ├── bdAddrLoader └── Android.mk ├── overlay_bt └── packages │ └── apps │ └── Bluetooth │ └── res │ └── values │ └── config.xml ├── factory-images └── generate-factory-images-package.sh ├── thermal └── Android.mk ├── bluetooth_extra └── bdroid_buildcfg.h ├── atmel_mxt_ts.idc ├── bt_shamu.mk ├── omni_shamu.mk └── voice_processing └── Android.mk /camera/MODULE_LICENSE_BSD: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /self-extractors/Android.mk: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /liblight/MODULE_LICENSE_APACHE2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /board-info.txt: -------------------------------------------------------------------------------- 1 | require board=shamu 2 | -------------------------------------------------------------------------------- /egl.cfg: -------------------------------------------------------------------------------- 1 | 0 0 android 2 | 0 1 adreno 3 | -------------------------------------------------------------------------------- /camera/QCamera/HAL/test/Android.mk: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /camera/QCamera/HAL2/test/Android.mk: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /overlay/packages/apps/Phone: -------------------------------------------------------------------------------- 1 | ../services/Telephony -------------------------------------------------------------------------------- /self-extractors/PROLOGUE: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | -------------------------------------------------------------------------------- /self-extractors/moto/COPYRIGHT: -------------------------------------------------------------------------------- 1 | # (C) Motorola, Inc. 2 | -------------------------------------------------------------------------------- /camera/common.mk: -------------------------------------------------------------------------------- 1 | common_deps := 2 | kernel_includes := 3 | 4 | -------------------------------------------------------------------------------- /sepolicy/kernel.te: -------------------------------------------------------------------------------- 1 | allow kernel self:capability net_admin; 2 | -------------------------------------------------------------------------------- /self-extractors/broadcom/COPYRIGHT: -------------------------------------------------------------------------------- 1 | # (C) Broadcom Corporation 2 | -------------------------------------------------------------------------------- /self-extractors/qcom/COPYRIGHT: -------------------------------------------------------------------------------- 1 | # (C) Qualcomm Technologies, Inc. 2 | -------------------------------------------------------------------------------- /dataservices/Android.mk: -------------------------------------------------------------------------------- 1 | include $(call all-subdir-makefiles) 2 | 3 | -------------------------------------------------------------------------------- /dataservices/rmnetctl/Android.mk: -------------------------------------------------------------------------------- 1 | include $(call all-subdir-makefiles) 2 | 3 | -------------------------------------------------------------------------------- /sepolicy/fsck.te: -------------------------------------------------------------------------------- 1 | allow fsck persist_block_device:blk_file rw_file_perms; 2 | -------------------------------------------------------------------------------- /qcril.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnirom/android_device_moto_shamu/HEAD/qcril.db -------------------------------------------------------------------------------- /sepolicy/domain.te: -------------------------------------------------------------------------------- 1 | userdebug_or_eng(` 2 | allow domain diag_device:chr_file rw_file_perms; 3 | ') 4 | -------------------------------------------------------------------------------- /camera/QCamera/Android.mk: -------------------------------------------------------------------------------- 1 | ifeq ($(TARGET_ARCH),arm) 2 | # include $(call all-subdir-makefiles) 3 | endif 4 | -------------------------------------------------------------------------------- /sepolicy/wpa.te: -------------------------------------------------------------------------------- 1 | # permission for wpa socket which IMS use to communicate 2 | allow wpa ims:unix_dgram_socket sendto; 3 | -------------------------------------------------------------------------------- /twrp.mk: -------------------------------------------------------------------------------- 1 | # TWRP fstab 2 | PRODUCT_COPY_FILES += \ 3 | device/moto/shamu/recovery/twrp.fstab:recovery/root/etc/twrp.fstab 4 | -------------------------------------------------------------------------------- /verity/images/verity_red_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnirom/android_device_moto_shamu/HEAD/verity/images/verity_red_1.png -------------------------------------------------------------------------------- /verity/images/verity_red_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnirom/android_device_moto_shamu/HEAD/verity/images/verity_red_2.png -------------------------------------------------------------------------------- /sepolicy/service.te: -------------------------------------------------------------------------------- 1 | type atfwd_service, service_manager_type; 2 | type cne_service, service_manager_type; 3 | -------------------------------------------------------------------------------- /sepolicy/netd.te: -------------------------------------------------------------------------------- 1 | # Triggers a sys_module denial, but kernel does not have CONFIG_MODULES set 2 | dontaudit netd self:capability sys_module; 3 | -------------------------------------------------------------------------------- /camera/QCamera/HAL/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(LOCAL_PATH)/core/Android.mk 3 | #include $(LOCAL_PATH)/test/Android.mk 4 | -------------------------------------------------------------------------------- /camera/QCamera/HAL2/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(LOCAL_PATH)/core/Android.mk 3 | #include $(LOCAL_PATH)/test/Android.mk 4 | -------------------------------------------------------------------------------- /camera/mm-image-codec/Android.mk: -------------------------------------------------------------------------------- 1 | ifeq ($(TARGET_ARCH),$(filter $(TARGET_ARCH),arm arm64)) 2 | include $(call all-subdir-makefiles) 3 | endif 4 | -------------------------------------------------------------------------------- /sepolicy/mediadrmserver.te: -------------------------------------------------------------------------------- 1 | allow mediadrmserver mpdecision_socket:dir r_dir_perms; 2 | unix_socket_send(mediadrmserver, mpdecision, mpdecision) 3 | -------------------------------------------------------------------------------- /bluetooth/BCM4356A2_001.003.015.0038.0059_ORC.hcd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnirom/android_device_moto_shamu/HEAD/bluetooth/BCM4356A2_001.003.015.0038.0059_ORC.hcd -------------------------------------------------------------------------------- /bluetooth/BCM4356A2_001.003.015.0054.0155_ORC.hcd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnirom/android_device_moto_shamu/HEAD/bluetooth/BCM4356A2_001.003.015.0054.0155_ORC.hcd -------------------------------------------------------------------------------- /bluetooth/BCM4356A2_001.003.015.0064.0173_ORC.hcd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnirom/android_device_moto_shamu/HEAD/bluetooth/BCM4356A2_001.003.015.0064.0173_ORC.hcd -------------------------------------------------------------------------------- /bluetooth/BCM4356A2_001.003.015.0068.0182_ORC.hcd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnirom/android_device_moto_shamu/HEAD/bluetooth/BCM4356A2_001.003.015.0068.0182_ORC.hcd -------------------------------------------------------------------------------- /bluetooth/BCM4356A2_001.003.015.0071.0190_ORC.hcd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnirom/android_device_moto_shamu/HEAD/bluetooth/BCM4356A2_001.003.015.0071.0190_ORC.hcd -------------------------------------------------------------------------------- /bluetooth/BCM4356A2_001.003.015.0077.0214_ORC.hcd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnirom/android_device_moto_shamu/HEAD/bluetooth/BCM4356A2_001.003.015.0077.0214_ORC.hcd -------------------------------------------------------------------------------- /sepolicy/property.te: -------------------------------------------------------------------------------- 1 | type qcom_ims_prop, property_type; 2 | type qcom_netmgrd_prop, property_type; 3 | type ctl_mpdecision, property_type; 4 | type rcs_prop, property_type; 5 | -------------------------------------------------------------------------------- /sepolicy/genfs_contexts: -------------------------------------------------------------------------------- 1 | genfscon proc /bluetooth/sleep/lpm u:object_r:proc_bluetooth_writable:s0 2 | genfscon proc /bluetooth/sleep/btwrite u:object_r:proc_bluetooth_writable:s0 3 | -------------------------------------------------------------------------------- /sepolicy/cameraserver.te: -------------------------------------------------------------------------------- 1 | unix_socket_send(cameraserver, camera, camera) 2 | allow cameraserver mpdecision_socket:dir r_dir_perms; 3 | unix_socket_send(cameraserver, mpdecision, mpdecision) 4 | -------------------------------------------------------------------------------- /camera/QCamera/stack/mm-camera-interface/src/mm_camera_interface.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnirom/android_device_moto_shamu/HEAD/camera/QCamera/stack/mm-camera-interface/src/mm_camera_interface.c -------------------------------------------------------------------------------- /init.shamu.diag.rc.user: -------------------------------------------------------------------------------- 1 | # This file gets copied as /init.shamu.diag.rc 2 | on property:ro.bootmode=normal 3 | rm /dev/diag 4 | write /sys/module/diag_bridge/parameters/default_auto_susp_enabled 1 5 | -------------------------------------------------------------------------------- /sepolicy/priv_app.te: -------------------------------------------------------------------------------- 1 | # Motorola AoV solution 2 | unix_socket_connect(priv_app, adspd, adspd) 3 | 4 | allow priv_app adspd_data_file:dir r_dir_perms; 5 | allow priv_app adspd_data_file:file r_file_perms; 6 | -------------------------------------------------------------------------------- /sepolicy/app.te: -------------------------------------------------------------------------------- 1 | # Only allow gpu ioctl commands that have been demonstrated to be necessary. 2 | allowxperm { appdomain -isolated_app } gpu_device:chr_file 3 | ioctl { gpu_used_ioctls unpriv_tty_ioctls }; 4 | -------------------------------------------------------------------------------- /init.shamu.diag.rc.userdebug: -------------------------------------------------------------------------------- 1 | # This file gets copied as /init.shamu.diag.rc 2 | 3 | on post-fs-data 4 | # Modem logging collection 5 | mkdir /data/diag_logs 0777 system system 6 | chmod 666 /dev/diag 7 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/drawable-nodpi/default_wallpaper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnirom/android_device_moto_shamu/HEAD/overlay/frameworks/base/core/res/res/drawable-nodpi/default_wallpaper.png -------------------------------------------------------------------------------- /sepolicy/bluetooth.te: -------------------------------------------------------------------------------- 1 | # Write to /sys/class/rfkill/rfkill0/state 2 | # TODO: label it sysfs_bluetooth_writable instead 3 | allow bluetooth sysfs:file rw_file_perms; 4 | allow bluetooth sysfs_usb:file w_file_perms; 5 | -------------------------------------------------------------------------------- /sepolicy/property_contexts: -------------------------------------------------------------------------------- 1 | sys.ims. u:object_r:qcom_ims_prop:s0 2 | net.r_rmnet u:object_r:qcom_netmgrd_prop:s0 3 | ctl.mpdecision u:object_r:ctl_mpdecision:s0 4 | rcs. u:object_r:rcs_prop:s0 5 | -------------------------------------------------------------------------------- /sepolicy/perfprofd.te: -------------------------------------------------------------------------------- 1 | userdebug_or_eng(` 2 | # perfprofd disables mpdecision temporarily via setprop ctl.stop, 3 | # then re-enables afterwards with setprop ctl.start 4 | set_prop(perfprofd, ctl_mpdecision) 5 | ') 6 | -------------------------------------------------------------------------------- /apq8084-taiko-tfa9890_stereo_co_Button_Jack.kl: -------------------------------------------------------------------------------- 1 | key 582 VOICE_ASSIST 2 | key 226 HEADSETHOOK 3 | key 257 HEADSETHOOK 4 | key 258 HEADSETHOOK 5 | key 259 HEADSETHOOK 6 | key 114 VOLUME_DOWN 7 | key 115 VOLUME_UP 8 | -------------------------------------------------------------------------------- /camera/QCamera/stack/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(LOCAL_PATH)/mm-camera-interface/Android.mk 3 | include $(LOCAL_PATH)/mm-jpeg-interface/Android.mk 4 | include $(LOCAL_PATH)/mm-camera-test/Android.mk 5 | -------------------------------------------------------------------------------- /self-extractors/PART3: -------------------------------------------------------------------------------- 1 | 2 | if test $? != 0 3 | then 4 | echo 5 | echo ERROR: Couldn\'t extract files. 1>&2 6 | exit 3 7 | else 8 | echo 9 | echo Files extracted successfully. 10 | fi 11 | exit 0 12 | 13 | -------------------------------------------------------------------------------- /sepolicy/ueventd.te: -------------------------------------------------------------------------------- 1 | allow ueventd { firmware_file }:dir r_dir_perms; 2 | allow ueventd { firmware_file }:file r_file_perms; 3 | allow ueventd sysfs_mmi_touch:file w_file_perms; 4 | allow ueventd sysfs_mmi_touch:dir search; 5 | -------------------------------------------------------------------------------- /sepolicy/service_contexts: -------------------------------------------------------------------------------- 1 | rcs u:object_r:radio_service:s0 2 | AtCmdFwd u:object_r:atfwd_service:s0 3 | cneservice u:object_r:cne_service:s0 4 | -------------------------------------------------------------------------------- /sepolicy/bluetooth_loader.te: -------------------------------------------------------------------------------- 1 | type bluetooth_loader, domain, domain_deprecated; 2 | type bluetooth_loader_exec, exec_type, file_type; 3 | 4 | # Started by init 5 | init_daemon_domain(bluetooth_loader) 6 | 7 | set_prop(bluetooth_loader, bluetooth_prop) 8 | -------------------------------------------------------------------------------- /sepolicy/init.te: -------------------------------------------------------------------------------- 1 | allow init diag_device:chr_file unlink; 2 | allow init tmpfs:lnk_file create_file_perms; 3 | allow init userdata_block_device:blk_file rw_file_perms; 4 | allow init cache_block_device:blk_file rw_file_perms; 5 | allow init debugfs:file write; 6 | -------------------------------------------------------------------------------- /sepolicy/irsc_util.te: -------------------------------------------------------------------------------- 1 | # IPC Router Security Configuration Tool 2 | type irsc_util, domain, domain_deprecated; 3 | type irsc_util_exec, exec_type, file_type; 4 | 5 | # Started by init 6 | init_daemon_domain(irsc_util) 7 | 8 | allow irsc_util self:socket create_socket_perms; 9 | -------------------------------------------------------------------------------- /camera/QCamera2/stack/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(LOCAL_PATH)/mm-camera-interface/Android.mk 3 | include $(LOCAL_PATH)/mm-jpeg-interface/Android.mk 4 | include $(LOCAL_PATH)/mm-jpeg-interface/test/Android.mk 5 | include $(LOCAL_PATH)/mm-camera-test/Android.mk 6 | -------------------------------------------------------------------------------- /ShamuLayout/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 := ShamuLayout 9 | 10 | LOCAL_SDK_VERSION := current 11 | 12 | include $(BUILD_PACKAGE) 13 | -------------------------------------------------------------------------------- /self-extractors/PART1: -------------------------------------------------------------------------------- 1 | # 2 | # Usage is subject to the enclosed license agreement 3 | 4 | echo 5 | echo The license for this software will now be displayed. 6 | echo You must agree to this license before using this software. 7 | echo 8 | echo -n Press Enter to view the license 9 | read dummy 10 | echo 11 | 12 | more << __EOF__ 13 | -------------------------------------------------------------------------------- /sepolicy/platform_app.te: -------------------------------------------------------------------------------- 1 | userdebug_or_eng(` 2 | # qxdmlogger access to /data/diag_logs. 3 | allow platform_app diag_logs:dir rw_dir_perms; 4 | allow platform_app diag_logs:file create_file_perms; 5 | ') 6 | 7 | allow platform_app time:unix_stream_socket connectto; 8 | 9 | unix_socket_connect(platform_app, adspd, adspd) 10 | 11 | # NFC Tile 12 | allow platform_app nfc_service:service_manager find; 13 | -------------------------------------------------------------------------------- /self-extractors/PART2: -------------------------------------------------------------------------------- 1 | __EOF__ 2 | 3 | if test $? != 0 4 | then 5 | echo ERROR: Couldn\'t display license file 1>&2 6 | exit 1 7 | fi 8 | 9 | echo 10 | 11 | echo -n Type \"I ACCEPT\" if you agree to the terms of the license:\ 12 | read typed 13 | 14 | if test "$typed" != I\ ACCEPT 15 | then 16 | echo 17 | echo You didn\'t accept the license. Extraction aborted. 18 | exit 2 19 | fi 20 | 21 | echo 22 | 23 | -------------------------------------------------------------------------------- /sepolicy/system_server.te: -------------------------------------------------------------------------------- 1 | # Grant access to Qualcomm MSM Interface (QMI) radio sockets to system services 2 | # (e.g., LocationManager) 3 | qmux_socket(system_server) 4 | 5 | allow system_server mpdecision_socket:dir r_dir_perms; 6 | unix_socket_send(system_server, mpdecision, mpdecision) 7 | 8 | unix_socket_connect(system_server, sensors, sensors) 9 | allow system_server sensors_socket:sock_file r_file_perms; 10 | -------------------------------------------------------------------------------- /sepolicy/system_app.te: -------------------------------------------------------------------------------- 1 | allow system_app time:unix_stream_socket connectto; 2 | 3 | allow system_app atfwd_service:service_manager add; 4 | 5 | allow system_app cne_service:service_manager add; 6 | 7 | userdebug_or_eng(` 8 | #qxdmlogger access to /data/diag_logs. 9 | allow system_app diag_logs:dir rw_dir_perms; 10 | allow system_app diag_logs:file create_file_perms; 11 | ') 12 | 13 | unix_socket_connect(system_app, cnd, cnd) 14 | -------------------------------------------------------------------------------- /sepolicy/cnd.te: -------------------------------------------------------------------------------- 1 | #permissive cnd; 2 | type cnd, domain, domain_deprecated; 3 | type cnd_exec, exec_type, file_type; 4 | 5 | # cnd is started by init, type transit from init domain to cnd domain 6 | init_daemon_domain(cnd) 7 | # associate netdomain as an attribute of cnd domain 8 | net_domain(cnd) 9 | 10 | allow cnd self:capability { net_raw setuid setgid }; 11 | 12 | allow cnd netmgrd:dir search; 13 | allow cnd netmgrd:file r_file_perms; 14 | -------------------------------------------------------------------------------- /dataservices/rmnetctl/cli/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | 5 | LOCAL_SRC_FILES := rmnetcli.c 6 | LOCAL_CFLAGS := -Wall -Werror 7 | 8 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/../inc 9 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/../src 10 | LOCAL_C_INCLUDES += $(LOCAL_PATH) 11 | 12 | LOCAL_MODULE := rmnetcli 13 | LOCAL_MODULE_TAGS := optional 14 | 15 | LOCAL_SHARED_LIBRARIES := librmnetctl 16 | include $(BUILD_EXECUTABLE) 17 | -------------------------------------------------------------------------------- /dataservices/rmnetctl/src/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | LOCAL_COPY_HEADERS_TO := dataservices/rmnetctl 5 | LOCAL_COPY_HEADERS := ../inc/librmnetctl.h 6 | 7 | LOCAL_SRC_FILES := librmnetctl.c 8 | LOCAL_CFLAGS := -Wall -Werror 9 | 10 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/../inc 11 | LOCAL_C_INCLUDES += $(LOCAL_PATH) 12 | 13 | 14 | LOCAL_MODULE := librmnetctl 15 | LOCAL_MODULE_TAGS := optional 16 | 17 | include $(BUILD_SHARED_LIBRARY) 18 | -------------------------------------------------------------------------------- /sec_config: -------------------------------------------------------------------------------- 1 | /* IPC Security Config */ 2 | /* :: */ 3 | 16:4294967295:1000 4 | 501:4294967295:1001 5 | /* Allow QMID service to aquire net_raw permission */ 6 | 3:4294967295:1001:3004 7 | 2:4294967295:1001:3004 8 | 42:4294967295:1001:3004 9 | 18:4294967295:1001:3004 10 | 9:4294967295:1001:3004 11 | 1:4294967295:1001:3004 12 | /* Allow MOTEX service to be used by radio processes and net_raw processes */ 13 | 228:4294967295:1001:3004 14 | -------------------------------------------------------------------------------- /sepolicy/untrusted_app.te: -------------------------------------------------------------------------------- 1 | # Motorola AoV solution 2 | unix_socket_connect(untrusted_app, adspd, adspd) 3 | 4 | # b/17630431: The unix_socket_connect line above needs to be 5 | # deleted. Generate audit entries to see if these permissions 6 | # are actually being used. 7 | # auditallow untrusted_app adspd_socket:sock_file write; 8 | # auditallow untrusted_app adspd:unix_stream_socket connectto; 9 | 10 | allow untrusted_app adspd_data_file:dir r_dir_perms; 11 | allow untrusted_app adspd_data_file:file r_file_perms; 12 | -------------------------------------------------------------------------------- /sepolicy/te_macros: -------------------------------------------------------------------------------- 1 | ##################################### 2 | # qmux_socket(clientdomain) 3 | # Allow client domain to connecto and send 4 | # via a local socket to the qmux domain. 5 | # Also allow the client domain to remove 6 | # its own socket. 7 | define(`qmux_socket', ` 8 | type $1_qmuxd_socket, file_type; 9 | file_type_auto_trans($1, qmuxd_socket, $1_qmuxd_socket) 10 | allow $1 qmuxd_socket:dir remove_name; 11 | unix_socket_connect($1, qmuxd, qmux) 12 | allow qmux $1_qmuxd_socket:sock_file { getattr unlink }; 13 | ') 14 | -------------------------------------------------------------------------------- /sepolicy/time.te: -------------------------------------------------------------------------------- 1 | type time, domain, domain_deprecated; 2 | type time_exec, exec_type, file_type; 3 | 4 | # Started by init 5 | init_daemon_domain(time) 6 | 7 | allow time shared_log_device:chr_file rw_file_perms; 8 | allow time alarm_device:chr_file rw_file_perms; 9 | 10 | # Is r_file_perms sufficient for /dev/rtc0 ? 11 | allow time rtc_device:chr_file r_file_perms; 12 | 13 | allow time time_data_file:dir rw_dir_perms; 14 | allow time time_data_file:file create_file_perms; 15 | 16 | allow time self:socket *; 17 | allow time self:capability { setuid setgid }; 18 | -------------------------------------------------------------------------------- /sepolicy/bridge.te: -------------------------------------------------------------------------------- 1 | # Bridge Manager (radio process) 2 | type bridge, domain, domain_deprecated; 3 | type bridge_exec, exec_type, file_type; 4 | 5 | # Started by init 6 | init_daemon_domain(bridge) 7 | 8 | # Uevent for usb connection 9 | allow bridge self:netlink_kobject_uevent_socket { create bind read }; 10 | 11 | # Talk to qmuxd (qmux_radio) 12 | qmux_socket(bridge) 13 | 14 | # Alert the RmNet SMD & SDIO function driver of the correct transport. 15 | # (/sys/class/android_usb/f_rmnet_smd_sdio/transport) 16 | allow bridge sysfs_rmnet:file { open read write getattr }; -------------------------------------------------------------------------------- /sepolicy/device.te: -------------------------------------------------------------------------------- 1 | type adspd_device, dev_type; 2 | type diag_device, dev_type, mlstrustedobject; 3 | 4 | # eMMC rpmb - necessarily drm? 5 | type drm_block_device, dev_type; 6 | 7 | type efs_block_device, dev_type; 8 | type mdm_helper_device, dev_type; 9 | type ramdump_device, dev_type; 10 | type modem_hob_block_device, dev_type; 11 | type cid_block_device, dev_type; 12 | type persist_block_device, dev_type; 13 | 14 | type power_control_device, dev_type; 15 | type shared_log_device, dev_type; 16 | 17 | # Thermal engine 18 | type thermal_engine_device, dev_type; 19 | -------------------------------------------------------------------------------- /sepolicy/atfwd.te: -------------------------------------------------------------------------------- 1 | type atfwd, domain, domain_deprecated; 2 | type atfwd_exec, exec_type, file_type; 3 | 4 | # Started by init 5 | init_daemon_domain(atfwd) 6 | 7 | # Creates/Talks to qmuxd via the qmux_radio socket. 8 | allow atfwd qmuxd_socket:dir rw_dir_perms; 9 | allow atfwd qmuxd_socket:sock_file create_file_perms; 10 | allow atfwd qmux:unix_stream_socket connectto; 11 | 12 | #Allow IPC binding with ServiceManager & System apps 13 | binder_use(atfwd); 14 | binder_call(atfwd, system_app); 15 | binder_call(atfwd, servicemanager); 16 | 17 | allow atfwd atfwd_service:service_manager find; 18 | -------------------------------------------------------------------------------- /ShamuLayout/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /sepolicy/tee.te: -------------------------------------------------------------------------------- 1 | allow tee drm_block_device:blk_file rw_file_perms; 2 | 3 | # tee starts as root, and drops privileges 4 | allow tee self:capability { setuid setgid }; 5 | 6 | # Need to directly minipulate certain block devices 7 | # for anti-rollback protection 8 | allow tee block_device:dir search; 9 | allow tee self:capability sys_rawio; 10 | allow tee drm_block_device:blk_file rw_file_perms; 11 | 12 | allow tee persist_file:dir r_dir_perms; 13 | r_dir_file(tee, persist_data_file) 14 | # Write to drm related pieces of persist partition 15 | allow tee persist_drm_file:dir create_dir_perms; 16 | allow tee persist_drm_file:file create_file_perms; 17 | -------------------------------------------------------------------------------- /sepolicy/radio.te: -------------------------------------------------------------------------------- 1 | # Talk to qmuxd (/dev/socket/qmux_radio) 2 | qmux_socket(radio) 3 | 4 | # Grant access to qmux socket that is created by rild 5 | allow radio rild_qmuxd_socket:sock_file rw_file_perms; 6 | 7 | # Grant access to ims socket that is created by ims_qmid, ims_datad 8 | allow radio ims_socket:sock_file write; 9 | 10 | allow radio persist_file:dir search; 11 | allow radio persist_hiddenmenu_file:dir rw_dir_perms; 12 | allow radio persist_hiddenmenu_file:file create_file_perms; 13 | 14 | # Connect to ims service. 15 | allow radio ims:unix_stream_socket connectto; 16 | 17 | # Access RCS properties 18 | allow radio rcs_prop:property_service set; 19 | -------------------------------------------------------------------------------- /sepolicy/mmi_touch_sh.te: -------------------------------------------------------------------------------- 1 | type mmi_touch_sh, domain, domain_deprecated; 2 | type mmi_touch_sh_exec, exec_type, file_type; 3 | 4 | # Started by init 5 | init_daemon_domain(mmi_touch_sh) 6 | 7 | # shell scripts need to execute /system/bin/sh and toolbox 8 | allow mmi_touch_sh shell_exec:file rx_file_perms; 9 | allow mmi_touch_sh toolbox_exec:file rx_file_perms; 10 | 11 | # Logs to /dev/kmsg 12 | allow mmi_touch_sh kmsg_device:chr_file w_file_perms; 13 | 14 | # Write to /sys/path/to/firmware/forcereflash 15 | # Read from /sys/path/to/firmware/poweron (and others) 16 | allow mmi_touch_sh sysfs_mmi_touch:file rw_file_perms; 17 | allow mmi_touch_sh sysfs_mmi_touch:dir search; 18 | -------------------------------------------------------------------------------- /self-extractors/moto/staging/BoardConfigPartial.mk: -------------------------------------------------------------------------------- 1 | # Copyright 2013 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | -------------------------------------------------------------------------------- /self-extractors/qcom/staging/BoardConfigPartial.mk: -------------------------------------------------------------------------------- 1 | # Copyright 2013 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | -------------------------------------------------------------------------------- /self-extractors/broadcom/staging/BoardConfigPartial.mk: -------------------------------------------------------------------------------- 1 | # Copyright 2013 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | -------------------------------------------------------------------------------- /cryptfs_hw/Android.mk: -------------------------------------------------------------------------------- 1 | ifeq ($(TARGET_HW_DISK_ENCRYPTION),true) 2 | LOCAL_PATH:= $(call my-dir) 3 | include $(CLEAR_VARS) 4 | 5 | LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_SHARED_LIBRARIES) 6 | 7 | sourceFiles := \ 8 | cryptfs_hw.c 9 | 10 | commonSharedLibraries := \ 11 | libcutils \ 12 | libutils \ 13 | libdl 14 | 15 | LOCAL_C_INCLUDES := $(commonIncludes) 16 | LOCAL_SRC_FILES := $(sourceFiles) 17 | 18 | LOCAL_MODULE_TAGS := optional 19 | LOCAL_MODULE:= libcryptfs_hw 20 | LOCAL_SHARED_LIBRARIES := $(commonSharedLibraries) 21 | 22 | LOCAL_MODULE_OWNER := qcom 23 | 24 | include $(BUILD_SHARED_LIBRARY) 25 | endif 26 | -------------------------------------------------------------------------------- /vendorsetup.sh: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2014 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 | add_lunch_combo omni_shamu-userdebug 18 | -------------------------------------------------------------------------------- /camera/Android.mk: -------------------------------------------------------------------------------- 1 | ifeq ($(strip $(USE_DEVICE_SPECIFIC_CAMERA)),true) 2 | 3 | MM_V4L2_DRIVER_LIST += msm8960 4 | MM_V4L2_DRIVER_LIST += msm8974 5 | MM_V4L2_DRIVER_LIST += msm8916 6 | MM_V4L2_DRIVER_LIST += msm8226 7 | MM_V4L2_DRIVER_LIST += msm8610 8 | MM_V4L2_DRIVER_LIST += apq8084 9 | MM_V4L2_DRIVER_LIST += mpq8092 10 | MM_V4L2_DRIVER_LIST += msm_bronze 11 | MM_V4L2_DRIVER_LIST += msm8916 12 | MM_V4L2_DRIVER_LIST += msm8994 13 | MM_V4L2_DRIVER_LIST += msm8084 14 | 15 | ifneq (,$(filter $(MM_V4L2_DRIVER_LIST),$(TARGET_BOARD_PLATFORM))) 16 | ifneq ($(USE_CAMERA_STUB),true) 17 | ifneq ($(BUILD_TINY_ANDROID),true) 18 | include $(call all-subdir-makefiles) 19 | endif 20 | endif 21 | endif 22 | 23 | endif 24 | -------------------------------------------------------------------------------- /AndroidProducts.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2014 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 | PRODUCT_MAKEFILES := \ 18 | $(LOCAL_DIR)/omni_shamu.mk 19 | -------------------------------------------------------------------------------- /omni_system.prop: -------------------------------------------------------------------------------- 1 | # show SELinux state in About Phone 2 | ro.build.selinux=1 3 | 4 | media.aac_51_output_enabled 5 | 6 | persist.rcs.supported=0 7 | persist.radio.sib16_support=1 8 | 9 | persist.data.qmi.adb_logmask 10 | 11 | persist.data.iwlan.enable=true 12 | persist.radio.ignore_ims_wlan=1 13 | 14 | persist.radio.data_con_rprt=1 15 | 16 | drm.service.enabled=true 17 | 18 | ro.facelock.black_timeout=700 19 | ro.facelock.det_timeout=2500 20 | ro.facelock.rec_timeout=3500 21 | ro.facelock.est_max_time=600 22 | 23 | fmas.spkr_6ch=35,20,110 24 | fmas.spkr_2ch=35,25 25 | fmas.spkr_angles=10 26 | fmas.spkr_sgain=0 27 | 28 | persist.radio.alt_mbn_name=tmo_alt.mbn 29 | 30 | ro.com.android.prov_mobiledata=false 31 | 32 | net.tethering.noprovisioning=true 33 | -------------------------------------------------------------------------------- /omni.dependencies: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "remote": "omnirom", 4 | "repository": "android_kernel_moto_shamu", 5 | "target_path": "kernel/moto/shamu", 6 | "revision": "android-7.1" 7 | }, 8 | { 9 | "remote": "omnirom", 10 | "repository": "android_hardware_qcom_gps", 11 | "target_path": "hardware/qcom/gps", 12 | "revision": "android-7.1" 13 | }, 14 | { 15 | "remote": "omnirom", 16 | "repository": "android_hardware_qcom_camera", 17 | "target_path": "hardware/qcom/camera", 18 | "revision": "android-7.1" 19 | }, 20 | { 21 | "remote": "omnirom", 22 | "repository": "android_packages_apps_SnapdragonCamera", 23 | "target_path": "packages/apps/SnapdragonCamera", 24 | "revision": "android-7.1" 25 | } 26 | ] 27 | -------------------------------------------------------------------------------- /sepolicy/tcmd.te: -------------------------------------------------------------------------------- 1 | 2 | type tcmd, domain, domain_deprecated; 3 | type tcmd_exec, exec_type, file_type; 4 | 5 | init_daemon_domain(tcmd) 6 | 7 | # Uses network sockets. 8 | net_domain(tcmd) 9 | 10 | # Allow restart, fastboot, power off 11 | set_prop(tcmd, powerctl_prop) 12 | 13 | # Uses /dev/ttydiag2 14 | allow tcmd diag_device:chr_file rw_file_perms; 15 | 16 | # Uses raw socket 17 | allow tcmd self:capability net_raw; 18 | 19 | # To allow read telephony.db 20 | allow tcmd radio_data_file:dir r_dir_perms; 21 | allow tcmd radio_data_file:file r_file_perms; 22 | 23 | # To allow read/write /persist 24 | allow tcmd persist_file:dir search; 25 | allow tcmd persist_hiddenmenu_file:dir rw_dir_perms; 26 | allow tcmd persist_hiddenmenu_file:file create_file_perms; 27 | -------------------------------------------------------------------------------- /sepolicy/adspd.te: -------------------------------------------------------------------------------- 1 | type adspd, domain, domain_deprecated, mlstrustedsubject; 2 | type adspd_exec, file_type, exec_type; 3 | 4 | init_daemon_domain(adspd) 5 | 6 | #Access /dev/ttyHS3 7 | allow adspd adspd_device:chr_file rw_file_perms; 8 | 9 | #Access /dev/input/event4 - headphone jack 10 | allow adspd input_device:dir search; 11 | allow adspd input_device:chr_file rw_file_perms; 12 | 13 | # /data/adspd 14 | allow adspd adspd_data_file:file create_file_perms; 15 | allow adspd adspd_data_file:dir rw_dir_perms; 16 | 17 | # For now, allow writes to all of /sys. 18 | # TODO: scope down this access. 19 | allow adspd sysfs:file write; 20 | 21 | allow adspd sysfs_usb:file write; 22 | 23 | allow adspd sysfs_mmi_touch:dir search; 24 | allow adspd sysfs_mmi_touch:file r_file_perms; 25 | -------------------------------------------------------------------------------- /sepolicy/gsiffd.te: -------------------------------------------------------------------------------- 1 | type gsiffd, domain, domain_deprecated; 2 | type gsiffd_exec, exec_type, file_type; 3 | 4 | # Started by init 5 | init_daemon_domain(gsiffd) 6 | 7 | # Write to /data/misc/location/gsiff/ 8 | allow gsiffd gsiffd_data_file:dir rw_dir_perms; 9 | allow gsiffd gsiffd_data_file:fifo_file create_file_perms; 10 | 11 | # Write to /data/misc/location/quipc/ 12 | allow gsiffd quipc_data_file:dir rw_dir_perms; 13 | allow gsiffd quipc_data_file:sock_file create_file_perms; 14 | 15 | # Create sockets 16 | allow gsiffd self:socket create_socket_perms; 17 | 18 | # Talk to qmux 19 | qmux_socket(gsiffd) 20 | 21 | # Run stat on /dev/sensors 22 | allow gsiffd sensors_device:chr_file getattr; 23 | 24 | # Talk to the sensors daemon 25 | unix_socket_connect(gsiffd, sensors, sensors) 26 | -------------------------------------------------------------------------------- /sepolicy/ss_ramdump.te: -------------------------------------------------------------------------------- 1 | type ss_ramdump, domain, domain_deprecated; 2 | type ss_ramdump_exec, exec_type, file_type; 3 | 4 | # Started by init 5 | init_daemon_domain(ss_ramdump) 6 | 7 | # read the contents of the /dev directory 8 | allow ss_ramdump device:dir r_dir_perms; 9 | 10 | userdebug_or_eng(` 11 | # Read /dev/ramdump_* character devices 12 | allow ss_ramdump ramdump_device:chr_file r_file_perms; 13 | 14 | # Create files in /data/tombstones, for example 15 | # /data/tombstones/ramdump_venus.elf 16 | allow ss_ramdump tombstone_data_file:dir rw_dir_perms; 17 | allow ss_ramdump tombstone_data_file:file rw_file_perms; 18 | 19 | # Needed to allow UID=root to access /data/tombstones, 20 | # which is owned by UID=system 21 | allow ss_ramdump self:capability dac_override; 22 | ') 23 | -------------------------------------------------------------------------------- /BoardConfigOmni.mk: -------------------------------------------------------------------------------- 1 | # Inline kernel building 2 | TARGET_KERNEL_CONFIG := shamu_defconfig 3 | TARGET_KERNEL_SOURCE := kernel/moto/shamu 4 | BOARD_KERNEL_IMAGE_NAME := zImage-dtb 5 | KERNEL_TOOLCHAIN_PREFIX := arm-eabi- 6 | KERNEL_TOOLCHAIN := $(ANDROID_BUILD_TOP)/prebuilts/gcc/$(HOST_OS)-x86/arm/arm-eabi-4.8/bin 7 | 8 | # Include additional properties in separate system.prop 9 | TARGET_SYSTEM_PROP := device/moto/shamu/omni_system.prop 10 | 11 | # Enable sound trigger for hotword detection 12 | BOARD_SUPPORTS_SOUND_TRIGGER := true 13 | 14 | # TWRP 15 | TW_THEME := portrait_hdpi 16 | TW_INCLUDE_L_CRYPTO := true 17 | BOARD_HAS_NO_REAL_SDCARD := true 18 | RECOVERY_GRAPHICS_USE_LINELENGTH := true 19 | TARGET_RECOVERY_PIXEL_FORMAT := "RGB_565" 20 | TW_SCREEN_BLANK_ON_BOOT := true 21 | BOARD_SUPPRESS_SECURE_ERASE := true 22 | -------------------------------------------------------------------------------- /sepolicy/audioserver.te: -------------------------------------------------------------------------------- 1 | # Grant access to Qualcomm MSM Interface (QMI) audio sockets to audioserver 2 | qmux_socket(audioserver) 3 | 4 | # Permit audioserver to create sockets with no specific SELinux class. 5 | # TODO: Investigate the specific type of socket. 6 | allow audioserver self:socket create_socket_perms; 7 | 8 | allow audioserver mpdecision_socket:dir r_dir_perms; 9 | unix_socket_send(audioserver, mpdecision, mpdecision) 10 | 11 | binder_call(audioserver, rild) 12 | 13 | unix_socket_connect(audioserver, adspd, adspd) 14 | allow audioserver audio_cutback_data_file:dir search; 15 | allow audioserver audio_cutback_data_file:sock_file write; 16 | 17 | # access files in /sys 18 | r_dir_file(audioserver, sysfs) 19 | # connect to rild for phone calls 20 | allow audioserver rild:unix_stream_socket connectto; 21 | -------------------------------------------------------------------------------- /sepolicy/mediaserver.te: -------------------------------------------------------------------------------- 1 | # Grant access to Qualcomm MSM Interface (QMI) audio sockets to mediaserver 2 | qmux_socket(mediaserver) 3 | 4 | # Permit mediaserver to create sockets with no specific SELinux class. 5 | # TODO: Investigate the specific type of socket. 6 | allow mediaserver self:socket create_socket_perms; 7 | 8 | allow mediaserver mpdecision_socket:dir r_dir_perms; 9 | unix_socket_send(mediaserver, mpdecision, mpdecision) 10 | 11 | binder_call(mediaserver, rild) 12 | 13 | unix_socket_send(mediaserver, camera, camera) 14 | unix_socket_connect(mediaserver, adspd, adspd) 15 | allow mediaserver audio_cutback_data_file:dir search; 16 | allow mediaserver audio_cutback_data_file:sock_file write; 17 | 18 | # needed for widevine classic 19 | allow mediaserver tee_device:chr_file { ioctl open read write }; 20 | 21 | -------------------------------------------------------------------------------- /self-extractors/root/BoardConfigVendor.mk: -------------------------------------------------------------------------------- 1 | # Copyright 2014 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | LOCAL_STEM := shamu/BoardConfigPartial.mk 16 | 17 | -include vendor/broadcom/$(LOCAL_STEM) 18 | -include vendor/moto/$(LOCAL_STEM) 19 | -include vendor/qcom/$(LOCAL_STEM) 20 | -------------------------------------------------------------------------------- /bluetooth/bdroid_buildcfg.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 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 | #ifndef _BDROID_BUILDCFG_H 18 | #define _BDROID_BUILDCFG_H 19 | 20 | #define BTM_WBS_INCLUDED TRUE 21 | #define BTIF_HF_WBS_PREFERRED TRUE 22 | #define BLE_VND_INCLUDED TRUE 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /camera/mm-image-codec/qomx_core/Android.mk: -------------------------------------------------------------------------------- 1 | OMX_CORE_PATH := $(call my-dir) 2 | 3 | # ------------------------------------------------------------------------------ 4 | # Make the shared library (libqomx_core) 5 | # ------------------------------------------------------------------------------ 6 | 7 | include $(CLEAR_VARS) 8 | LOCAL_PATH := $(OMX_CORE_PATH) 9 | LOCAL_MODULE_TAGS := optional 10 | 11 | omx_core_defines:= -Werror \ 12 | -g -O0 13 | 14 | LOCAL_CFLAGS := $(omx_core_defines) 15 | 16 | OMX_HEADER_DIR := frameworks/native/include/media/openmax 17 | 18 | LOCAL_C_INCLUDES := $(OMX_HEADER_DIR) 19 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/../qexif 20 | 21 | LOCAL_SRC_FILES := qomx_core.c 22 | 23 | LOCAL_MODULE := libqomx_core 24 | LOCAL_SHARED_LIBRARIES := libcutils libdl 25 | 26 | LOCAL_32_BIT_ONLY := true 27 | include $(BUILD_SHARED_LIBRARY) 28 | -------------------------------------------------------------------------------- /ShamuLayout/res/values/grid.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 4 18 | 6 19 | 20 | -------------------------------------------------------------------------------- /overlay/packages/apps/Settings/res/values/bool.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | false 20 | 21 | -------------------------------------------------------------------------------- /overlay/packages/services/Telephony/res/values-mcc310-mnc120/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | Carrier settings 19 | 20 | -------------------------------------------------------------------------------- /overlay/packages/apps/CellBroadcastReceiver/res/values-mcc302-mnc610/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | false 20 | 21 | -------------------------------------------------------------------------------- /dumpstate/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2014 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | LOCAL_PATH:= $(call my-dir) 16 | include $(CLEAR_VARS) 17 | 18 | LOCAL_C_INCLUDES := frameworks/native/cmds/dumpstate 19 | 20 | LOCAL_SRC_FILES := dumpstate.cpp 21 | 22 | LOCAL_MODULE := libdumpstate.shamu 23 | 24 | LOCAL_MODULE_TAGS := optional 25 | 26 | include $(BUILD_STATIC_LIBRARY) 27 | -------------------------------------------------------------------------------- /power/Android.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2014 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 | LOCAL_PATH:= $(call my-dir) 18 | 19 | include $(CLEAR_VARS) 20 | LOCAL_MODULE_RELATIVE_PATH := hw 21 | LOCAL_SRC_FILES := power_shamu.c 22 | LOCAL_SHARED_LIBRARIES := liblog libcutils 23 | LOCAL_MODULE_TAGS := optional 24 | LOCAL_MODULE := power.shamu 25 | include $(BUILD_SHARED_LIBRARY) 26 | -------------------------------------------------------------------------------- /bdAddrLoader/Android.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2013 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 | LOCAL_PATH:= $(call my-dir) 18 | 19 | include $(CLEAR_VARS) 20 | LOCAL_SRC_FILES := addrloader.c 21 | LOCAL_SHARED_LIBRARIES := libcutils liblog 22 | LOCAL_MODULE_TAGS := optional 23 | LOCAL_MODULE_OWNER := motorola 24 | LOCAL_MODULE := bdAddrLoader 25 | include $(BUILD_EXECUTABLE) 26 | -------------------------------------------------------------------------------- /overlay_bt/packages/apps/Bluetooth/res/values/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 15 | 16 | true 17 | true 18 | true 19 | 20 | -------------------------------------------------------------------------------- /sepolicy/qmux.te: -------------------------------------------------------------------------------- 1 | # Qualcomm Management Interface Multiplexer 2 | type qmux, domain, domain_deprecated; 3 | type qmux_exec, exec_type, file_type; 4 | 5 | # Started by init 6 | init_daemon_domain(qmux) 7 | 8 | # Create sockets under each /dev/socket/qmux_* directory. 9 | allow qmux qmuxd_socket:dir w_dir_perms; 10 | allow qmux qmuxd_socket:sock_file { create setattr getattr unlink }; 11 | 12 | # /dev/hsicctl* node access 13 | allow qmux radio_device:chr_file rw_file_perms; 14 | 15 | wakelock_use(qmux) 16 | 17 | # Access to /sys/devices/virtual/smdpkt/smdcntl*/open_timeout 18 | allow qmux sysfs_smdcntl_open_timeout:file rw_file_perms; 19 | # TODO constrain further, by labeling /sys/devices/virtual/hsicctl/hsicctl0/modem_file 20 | # e.g. allow qmux sysfs_hsicctl_modem_wait:file rw_file_perms; 21 | allow qmux sysfs:file rw_file_perms; 22 | allow qmux sysfs_usb:file w_file_perms; 23 | 24 | # qmux currently runs as root: b/16988307 25 | allow qmux self:capability { dac_override }; -------------------------------------------------------------------------------- /overlay/packages/apps/OmniGears/res/values/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 0,1,2,3 20 | 21 | -------------------------------------------------------------------------------- /self-extractors/root/device-vendor.mk: -------------------------------------------------------------------------------- 1 | # Copyright 2014 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | PRODUCT_PACKAGES += \ 16 | BuaContactAdapter 17 | 18 | LOCAL_STEM := shamu/device-partial.mk 19 | 20 | $(call inherit-product-if-exists, vendor/broadcom/$(LOCAL_STEM)) 21 | $(call inherit-product-if-exists, vendor/moto/$(LOCAL_STEM)) 22 | $(call inherit-product-if-exists, vendor/qcom/$(LOCAL_STEM)) 23 | -------------------------------------------------------------------------------- /factory-images/generate-factory-images-package.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Copyright 2014 The Android Open Source 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 | source ../../../common/clear-factory-images-variables.sh 18 | BUILD=1433121 19 | DEVICE=shamu 20 | PRODUCT=shamu 21 | VERSION=lrw73l 22 | SRCPREFIX=signed- 23 | BOOTLOADER=moto-apq8084-70.39 24 | RADIO=d4.0-9625-02.48 25 | source ../../../common/generate-factory-images-common.sh 26 | -------------------------------------------------------------------------------- /self-extractors/broadcom/staging/device-partial.mk: -------------------------------------------------------------------------------- 1 | # Copyright 2014 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | # Broadcom blob(s) necessary for Shamu hardware 16 | PRODUCT_COPY_FILES := \ 17 | vendor/broadcom/shamu/proprietary/bcm20795_firmware.ncd:system/vendor/firmware/bcm20795_firmware.ncd:broadcom \ 18 | vendor/broadcom/shamu/proprietary/bcm4354A2.hcd:system/vendor/firmware/bcm4354A2.hcd:broadcom \ 19 | 20 | -------------------------------------------------------------------------------- /thermal/Android.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2015 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 | LOCAL_PATH:= $(call my-dir) 18 | 19 | include $(CLEAR_VARS) 20 | LOCAL_CFLAGS := -Wno-unused-parameter 21 | LOCAL_MODULE_RELATIVE_PATH := hw 22 | LOCAL_SRC_FILES := thermal.c 23 | LOCAL_SHARED_LIBRARIES := liblog libcutils 24 | LOCAL_MODULE_TAGS := optional 25 | LOCAL_MODULE := thermal.shamu 26 | include $(BUILD_SHARED_LIBRARY) 27 | -------------------------------------------------------------------------------- /liblight/Android.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2014 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 | LOCAL_PATH:= $(call my-dir) 17 | 18 | include $(CLEAR_VARS) 19 | 20 | LOCAL_SRC_FILES := lights.c 21 | LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw 22 | LOCAL_SHARED_LIBRARIES := liblog 23 | LOCAL_MODULE := lights.shamu 24 | LOCAL_MODULE_TAGS := optional 25 | LOCAL_CFLAGS += -Wno-unused-parameter -Werror 26 | 27 | include $(BUILD_SHARED_LIBRARY) 28 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc302-mnc610/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | false 20 | 21 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc214-mnc01/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc268-mnc01/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc330-mnc110/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc334-mnc020/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc334-mnc03/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc334-mnc050/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc334-mnc090/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc334-mnc30/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc370-mnc02/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc706-mnc01/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc712-mnc03/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc714-mnc03/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc716-mnc06/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc716-mnc10/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc716-mnc17/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc722-mnc02/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc722-mnc07/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc722-mnc310/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc722-mnc34/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc722-mnc340/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc722-mnc341/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc722-mnc36/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc724-mnc02/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc724-mnc03/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc724-mnc04/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc724-mnc05/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc724-mnc06/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc724-mnc10/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc724-mnc11/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc724-mnc16/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc724-mnc23/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc724-mnc24/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc724-mnc31/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc724-mnc39/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc730-mnc01/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc730-mnc02/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc730-mnc09/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc730-mnc10/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc732-mnc101/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc732-mnc103/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc732-mnc111/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc732-mnc12/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc732-mnc123/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc732-mnc130/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc734-mnc04/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc740-mnc01/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc744-mnc02/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc748-mnc10/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /bluetooth_extra/bdroid_buildcfg.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015 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 | #ifndef _BDROID_BUILDCFG_H 18 | #define _BDROID_BUILDCFG_H 19 | 20 | #define BTM_WBS_INCLUDED TRUE 21 | #define BTIF_HF_WBS_PREFERRED TRUE 22 | #define BLE_VND_INCLUDED TRUE 23 | 24 | /* Handsfree device */ 25 | #define BTA_DM_COD {0x20, 0x04, 0x08} 26 | 27 | /* Enable A2DP sink */ 28 | #define BTA_AV_SINK_INCLUDED TRUE 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /overlay/packages/apps/OmniClock/res/values/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | 20 | 21 | true 22 | 23 | -------------------------------------------------------------------------------- /ShamuLayout/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | Nexus 6 Home Screen 19 | Google 20 | Create 21 | Play 22 | 23 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc310-mnc010/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc310-mnc120/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc311-mnc490/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc311-mnc870/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | -------------------------------------------------------------------------------- /atmel_mxt_ts.idc: -------------------------------------------------------------------------------- 1 | # Copyright 2014 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | # 16 | # Input Device Calibration File for the Shamu touch screen. 17 | # 18 | 19 | device.internal = 1 20 | 21 | touch.deviceType = touchScreen 22 | touch.orientationAware = 1 23 | 24 | touch.size.calibration = area 25 | touch.size.scale = 86.016 26 | touch.size.bias = -44.539 27 | touch.size.isSummed = 0 28 | 29 | touch.pressure.calibration = amplitude 30 | touch.pressure.scale = 0.0125 31 | 32 | touch.orientation.calibration = none 33 | -------------------------------------------------------------------------------- /bt_shamu.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2015 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 | $(call inherit-product, device/moto/shamu/aosp_shamu.mk) 18 | 19 | # Add overlay to enable extra Bluetooth profiles 20 | DEVICE_PACKAGE_OVERLAYS += \ 21 | device/moto/shamu/overlay_bt 22 | 23 | PRODUCT_NAME := bt_shamu 24 | PRODUCT_DEVICE := shamu 25 | PRODUCT_BRAND := Android 26 | PRODUCT_MODEL := BT Shamu 27 | PRODUCT_MANUFACTURER := motorola 28 | PRODUCT_RESTRICT_VENDOR_FILES := true 29 | 30 | AUDIO_FEATURE_ENABLED_HFP := true 31 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc202/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc204/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc206/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc208/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc214/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc222/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc226/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc228/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc234/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc238/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc240/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc242/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc244/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc505/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc530/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc216-mnc01/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc216-mnc70/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc230-mnc02/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc230-mnc03/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc231-mnc01/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc231-mnc02/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc231-mnc06/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc232-mnc01/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc232-mnc05/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc232-mnc07/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc232-mnc10/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc232-mnc11/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc260-mnc02/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc260-mnc03/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc262-mnc02/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc262-mnc03/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc262-mnc07/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc268-mnc01/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc268-mnc03/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc268-mnc06/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc293-mnc40/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc293-mnc41/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc293-mnc70/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc537-mnc03/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc724-mnc02/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc724-mnc03/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc724-mnc04/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc724-mnc05/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc724-mnc06/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc724-mnc10/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc724-mnc11/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc724-mnc16/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc724-mnc23/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc724-mnc31/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-mcc334-mnc020/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | true 25 | 26 | 27 | -------------------------------------------------------------------------------- /omni_shamu.mk: -------------------------------------------------------------------------------- 1 | # Include omni board-specific configurations 2 | include device/moto/shamu/BoardConfigOmni.mk 3 | 4 | # Inherit base AOSP device configuration 5 | $(call inherit-product, device/moto/shamu/aosp_shamu.mk) 6 | 7 | # Override product naming for Omni 8 | PRODUCT_NAME := omni_shamu 9 | PRODUCT_BRAND := google 10 | PRODUCT_MODEL := Nexus 6 11 | PRODUCT_MANUFACTURER := motorola 12 | PRODUCT_RESTRICT_VENDOR_FILES := false 13 | 14 | PRODUCT_BUILD_PROP_OVERRIDES += \ 15 | BUILD_FINGERPRINT="google/shamu/shamu:7.1.1/N6F27H/4072753:user/release-keys" \ 16 | PRIVATE_BUILD_DESC="shamu-user 7.1.1 N6F27H 4072753 release-keys" 17 | 18 | # Inherit OmniROM parts 19 | $(call inherit-product, vendor/omni/config/gsm.mk) 20 | $(call inherit-product, vendor/omni/config/common.mk) 21 | 22 | # Inherit proprietary bits 23 | $(call inherit-product-if-exists, vendor/motorola/shamu/device-vendor.mk) 24 | 25 | # Inherit TWRP configuration 26 | include device/moto/shamu/twrp.mk 27 | 28 | # include libxml2 29 | PRODUCT_PACKAGES += \ 30 | librmnetctl \ 31 | libxml2 32 | 33 | # SnapdragonCamera 34 | PRODUCT_PACKAGES += \ 35 | SnapdragonCamera 36 | -------------------------------------------------------------------------------- /sepolicy/thermald.te: -------------------------------------------------------------------------------- 1 | # Temperature sensor daemon (root process) 2 | type thermald, domain, domain_deprecated; 3 | type thermald_exec, exec_type, file_type; 4 | 5 | # Started by init 6 | init_daemon_domain(thermald) 7 | 8 | allow thermald shared_log_device:chr_file rw_file_perms; 9 | 10 | allow thermald self:capability { dac_override fsetid chown }; 11 | 12 | # Access to /dev/msm_thermal_query 13 | allow thermald thermal_engine_device:chr_file rw_file_perms; 14 | 15 | # Talk to qmuxd (/dev/socket/qmux_radio) 16 | qmux_socket(thermald) 17 | 18 | # Create and access to /dev/socket/thermal-.* 19 | type_transition thermald socket_device:sock_file thermald_socket; 20 | allow thermald socket_device:dir w_dir_perms; 21 | allow thermald thermald_socket:sock_file create_file_perms; 22 | 23 | allow thermald self:socket create_socket_perms; 24 | 25 | # Writes to /sys/module/msm_thermal/core_control/cpus_offlined 26 | allow thermald sysfs_mpdecision:file rw_file_perms; 27 | 28 | # TODO specify specific labels for /sys/ files 29 | allow thermald sysfs:file write; 30 | allow thermald sysfs_usb:file write; 31 | allow thermald sysfs_batteryinfo:file r_file_perms; 32 | -------------------------------------------------------------------------------- /voice_processing/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright 2013 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | ifneq ($(filter shamu, $(TARGET_DEVICE)),) 16 | 17 | LOCAL_PATH:= $(call my-dir) 18 | 19 | include $(CLEAR_VARS) 20 | 21 | LOCAL_SRC_FILES := \ 22 | voice_processing_descriptors.c 23 | 24 | LOCAL_C_INCLUDES += \ 25 | $(call include-path-for, audio-effects) 26 | 27 | LOCAL_MODULE := libqcomvoiceprocessingdescriptors 28 | 29 | LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/soundfx 30 | 31 | LOCAL_MODULE_TAGS := optional 32 | 33 | include $(BUILD_SHARED_LIBRARY) 34 | 35 | endif -------------------------------------------------------------------------------- /overlay/packages/apps/Settings/res/values-mcc302-mnc610/arrays.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | IPv4 21 | 22 | 23 | 24 | IP 25 | 26 | 27 | -------------------------------------------------------------------------------- /ShamuLayout/src/com/google/android/launcher/layouts/shamu/PartnerCustomizationReceiver.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2014 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 | package com.google.android.launcher.layouts.shamu; 18 | 19 | import android.content.BroadcastReceiver; 20 | import android.content.Context; 21 | import android.content.Intent; 22 | 23 | public class PartnerCustomizationReceiver extends BroadcastReceiver { 24 | 25 | public PartnerCustomizationReceiver() { 26 | } 27 | 28 | public void onReceive(Context context, Intent intent) { 29 | } 30 | } -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/xml/storage_list.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 22 | 23 | 24 | 28 | 29 | -------------------------------------------------------------------------------- /sepolicy/camera.te: -------------------------------------------------------------------------------- 1 | # Qualcomm MSM camera 2 | type camera, domain, domain_deprecated; 3 | type camera_exec, exec_type, file_type; 4 | 5 | # Started by init 6 | init_daemon_domain(camera) 7 | 8 | # Interact with other media devices 9 | allow camera video_device:dir search; 10 | allow camera { gpu_device video_device }:chr_file rw_file_perms; 11 | allow camera { audioserver cameraserver surfaceflinger mediaserver }:fd use; 12 | 13 | # Connect to sensor socket (/dev/sensor/sensor_ctl_socket) 14 | unix_socket_connect(camera, sensors, sensors) 15 | allow camera sensors_socket:sock_file read; 16 | 17 | allow camera sensors_device:chr_file rw_file_perms; 18 | 19 | allow camera self:capability { sys_nice }; 20 | 21 | # Create front and back camera sockets (/data/cam_socket[23]) 22 | # TODO: create these sockets elsewhere, apps shouldn't be putting sockets 23 | # directly under /data. 24 | type_transition camera system_data_file:sock_file camera_socket "cam_socket2"; 25 | type_transition camera system_data_file:sock_file camera_socket "cam_socket3"; 26 | allow camera camera_socket:sock_file { create unlink }; 27 | allow camera system_data_file:dir w_dir_perms; 28 | allow camera system_data_file:sock_file unlink; 29 | -------------------------------------------------------------------------------- /sepolicy/rild.te: -------------------------------------------------------------------------------- 1 | binder_call(rild, audioserver) 2 | binder_call(rild, mediaserver) 3 | binder_use(rild) 4 | binder_service(rild) 5 | 6 | # Grant access to Qualcomm MSM Interface (QMI) radio sockets to RILD 7 | qmux_socket(rild) 8 | 9 | allow rild persist_file:dir search; 10 | allow rild persist_modem_file:dir rw_dir_perms; 11 | allow rild persist_modem_file:file create_file_perms; 12 | 13 | allow rild time:unix_stream_socket connectto; 14 | allow rild sysfs_capsense_update:file { getattr w_file_perms}; 15 | allow rild sysfs_sar_wifi:file { getattr w_file_perms}; 16 | 17 | allow rild audio_cutback_data_file:dir rw_dir_perms; 18 | allow rild audio_cutback_data_file:sock_file create_file_perms; 19 | # why? 20 | allow rild audio_cutback_data_file:dir setattr; 21 | 22 | # rild needs to parse through /proc to obtain pid of netmgrd 23 | r_dir_file(rild, netmgrd) 24 | # b/18352920 suppress denials until the procfs lookup is removed 25 | dontaudit rild domain:dir r_dir_perms; 26 | 27 | # Allow permissions for FSG 28 | allow rild fsg_file:dir search; 29 | allow rild fsg_file:file r_file_perms; 30 | 31 | allow rild audioserver_service:service_manager find; 32 | allow rild mediaserver_service:service_manager find; 33 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ShamuLayout/res/values-am/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | "Nexus 6 መነሻ ማያ" 20 | "Google" 21 | "ፍጠር" 22 | "Play" 23 | 24 | -------------------------------------------------------------------------------- /ShamuLayout/res/values-ja/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | "Nexus 6ホーム画面" 20 | "Google" 21 | "作成" 22 | "Play" 23 | 24 | -------------------------------------------------------------------------------- /ShamuLayout/res/values-ko/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | "Nexus 6 메인 스크린" 20 | "Google" 21 | "만들기" 22 | "Play" 23 | 24 | -------------------------------------------------------------------------------- /ShamuLayout/res/values-zh-rCN/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | "Nexus 6主屏幕" 20 | "Google" 21 | "创建" 22 | "Play" 23 | 24 | -------------------------------------------------------------------------------- /ShamuLayout/res/values-zh-rHK/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | "Nexus 6 主畫面" 20 | "Google" 21 | "建立" 22 | "Play" 23 | 24 | -------------------------------------------------------------------------------- /ShamuLayout/res/values-zh-rTW/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | "Nexus 6 主螢幕" 20 | "Google" 21 | "建立" 22 | "Play" 23 | 24 | -------------------------------------------------------------------------------- /ShamuLayout/res/values-af/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | "Nexus 6-tuisskerm" 20 | "Google" 21 | "Skep" 22 | "Play" 23 | 24 | -------------------------------------------------------------------------------- /ShamuLayout/res/values-fa/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | "‏صفحه اصلی Nexus 6" 20 | "Google" 21 | "ایجاد" 22 | "Play" 23 | 24 | -------------------------------------------------------------------------------- /ShamuLayout/res/values-in/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | "Layar Utama Nexus 6" 20 | "Google" 21 | "Buat" 22 | "Play" 23 | 24 | -------------------------------------------------------------------------------- /ShamuLayout/res/values-lo-rLA/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | "ໜ້າຫຼັກ Nexus 6" 20 | "Google" 21 | "ສ້າງ" 22 | "Play" 23 | 24 | -------------------------------------------------------------------------------- /ShamuLayout/res/values-da/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | "Startskærm på Nexus 6" 20 | "Google" 21 | "Opret" 22 | "Play" 23 | 24 | -------------------------------------------------------------------------------- /ShamuLayout/res/values-et-rEE/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | "Nexus 6 avaekraan" 20 | "Google" 21 | "Loomine" 22 | "Play" 23 | 24 | -------------------------------------------------------------------------------- /ShamuLayout/res/values-fi/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | "Nexus 6:n aloitusruutu" 20 | "Google" 21 | "Luo" 22 | "Play" 23 | 24 | -------------------------------------------------------------------------------- /ShamuLayout/res/values-gu-rIN/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | "Nexus 6 હોમ સ્ક્રીન" 20 | "Google" 21 | "બનાવો" 22 | "Play" 23 | 24 | -------------------------------------------------------------------------------- /ShamuLayout/res/values-hi/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | "Nexus 6 होम स्क्रीन" 20 | "Google" 21 | "बनाएं" 22 | "Play" 23 | 24 | -------------------------------------------------------------------------------- /ShamuLayout/res/values-iw/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | "‏מסך דף הבית של Nexus 6" 20 | "Google" 21 | "צור" 22 | "Play" 23 | 24 | -------------------------------------------------------------------------------- /ShamuLayout/res/values-ms-rMY/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | "Skrin Utama Nexus 6" 20 | "Google" 21 | "Buat" 22 | "Play" 23 | 24 | -------------------------------------------------------------------------------- /ShamuLayout/res/values-nb/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | "Nexus 6-startsiden" 20 | "Google" 21 | "Opprett" 22 | "Play" 23 | 24 | -------------------------------------------------------------------------------- /ShamuLayout/res/values-nl/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | "Nexus 6-startscherm" 20 | "Google" 21 | "Maken" 22 | "Play" 23 | 24 | -------------------------------------------------------------------------------- /ShamuLayout/res/values-pa-rIN/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | "Nexus 6 ਹੋਮ ਸਕ੍ਰੀਨ" 20 | "Google" 21 | "ਬਣਾਓ" 22 | "Play" 23 | 24 | --------------------------------------------------------------------------------