First Batch

master
Aeris 4 years ago
commit 78bae1c62d

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -0,0 +1,6 @@
# Steps to unpack kernel image
1. Download Image
2. Unpack zip
3. Unpack tar.md5 (rename to tar)
4. binwalk -e on boot.img

@ -0,0 +1,9 @@
#
# ADDITIONAL_DEFAULT_PROPERTIES
#
persist.security.ams.enforcing=1
ro.secure=1
ro.allow.mock.location=0
ro.debuggable=0
ro.adb.secure=1
persist.sys.usb.config=mtp

@ -0,0 +1,583 @@
#line 1 "vendor/samsung/common/sepolicy/nsa/file_contexts"
###########################################
# Root
/ u:object_r:rootfs:s0
# Data files
/adb_keys u:object_r:adb_keys_file:s0
/default.prop u:object_r:rootfs:s0
/fstab\..* u:object_r:rootfs:s0
/init\..* u:object_r:rootfs:s0
/res(/.*)? u:object_r:rootfs:s0
/ueventd\..* u:object_r:rootfs:s0
# Executables
/charger u:object_r:rootfs:s0
/init u:object_r:rootfs:s0
/sbin(/.*)? u:object_r:rootfs:s0
# Empty directories
/lost\+found u:object_r:rootfs:s0
/proc u:object_r:rootfs:s0
# SELinux policy files
/file_contexts u:object_r:rootfs:s0
/property_contexts u:object_r:rootfs:s0
/seapp_contexts u:object_r:rootfs:s0
/sepolicy u:object_r:rootfs:s0
##########################
# Devices
#
/dev(/.*)? u:object_r:device:s0
/dev/accelerometer u:object_r:sensors_device:s0
/dev/alarm u:object_r:alarm_device:s0
/dev/android_adb.* u:object_r:adb_device:s0
/dev/ashmem u:object_r:ashmem_device:s0
/dev/audio.* u:object_r:audio_device:s0
/dev/binder u:object_r:binder_device:s0
/dev/block(/.*)? u:object_r:block_device:s0
/dev/block/loop[0-9]* u:object_r:loop_device:s0
/dev/block/ram[0-9]* u:object_r:ram_device:s0
/dev/bus/usb(.*)? u:object_r:usb_device:s0
/dev/cam u:object_r:camera_device:s0
/dev/console u:object_r:console_device:s0
/dev/cpuctl(/.*)? u:object_r:cpuctl_device:s0
/dev/device-mapper u:object_r:dm_device:s0
/dev/eac u:object_r:audio_device:s0
/dev/fscklogs(/.*)? u:object_r:fscklogs:s0
/dev/full u:object_r:full_device:s0
/dev/fuse u:object_r:fuse_device:s0
/dev/graphics(/.*)? u:object_r:graphics_device:s0
/dev/hw_random u:object_r:hw_random_device:s0
/dev/input(/.*) u:object_r:input_device:s0
/dev/iio:device[0-9]+ u:object_r:iio_device:s0
/dev/ion u:object_r:ion_device:s0
/dev/kmem u:object_r:kmem_device:s0
/dev/log(/.*)? u:object_r:log_device:s0
/dev/mem u:object_r:kmem_device:s0
/dev/modem.* u:object_r:radio_device:s0
/dev/mpu u:object_r:gps_device:s0
/dev/mpuirq u:object_r:gps_device:s0
/dev/mtd(/.*)? u:object_r:mtd_device:s0
/dev/mtp_usb u:object_r:mtp_device:s0
/dev/pn544 u:object_r:nfc_device:s0
/dev/ppp u:object_r:ppp_device:s0
/dev/ptmx u:object_r:ptmx_device:s0
/dev/qemu_.* u:object_r:qemu_device:s0
/dev/kmsg u:object_r:kmsg_device:s0
/dev/null u:object_r:null_device:s0
/dev/nvmap u:object_r:nv_device:s0
/dev/nvhost-.* u:object_r:nv_device:s0
/dev/random u:object_r:random_device:s0
/dev/rpmsg-omx[0-9] u:object_r:rpmsg_device:s0
/dev/rproc_user u:object_r:rpmsg_device:s0
/dev/snd(/.*)? u:object_r:audio_device:s0
/dev/snd/pcmC[0-9]*D[0-9]*c u:object_r:audio_capture_device:s0
/dev/socket(/.*)? u:object_r:socket_device:s0
/dev/socket/adbd u:object_r:adbd_socket:s0
/dev/socket/bluetooth u:object_r:bluetooth_socket:s0
/dev/socket/dnsproxyd u:object_r:dnsproxyd_socket:s0
/dev/socket/gps u:object_r:gps_socket:s0
/dev/socket/installd u:object_r:installd_socket:s0
/dev/socket/keystore u:object_r:keystore_socket:s0
/dev/socket/mdns u:object_r:mdns_socket:s0
/dev/socket/netd u:object_r:netd_socket:s0
/dev/socket/property_service u:object_r:property_socket:s0
/dev/socket/qemud u:object_r:qemud_socket:s0
/dev/socket/racoon u:object_r:racoon_socket:s0
/dev/socket/rild u:object_r:rild_socket:s0
/dev/socket/rild-debug u:object_r:rild_debug_socket:s0
/dev/socket/vold u:object_r:vold_socket:s0
/dev/socket/wpa_eth[0-9] u:object_r:wpa_socket:s0
/dev/socket/wpa_wlan[0-9] u:object_r:wpa_socket:s0
/dev/socket/zygote u:object_r:zygote_socket:s0
/dev/spdif_out.* u:object_r:audio_device:s0
/dev/tegra.* u:object_r:video_device:s0
/dev/tf_driver u:object_r:tee_device:s0
/dev/tty u:object_r:owntty_device:s0
/dev/tty[0-9]* u:object_r:tty_device:s0
/dev/ttyS[0-9]* u:object_r:serial_device:s0
/dev/tun u:object_r:tun_device:s0
/dev/uhid u:object_r:uhid_device:s0
/dev/uinput u:object_r:uhid_device:s0
/dev/urandom u:object_r:urandom_device:s0
/dev/usb_accessory u:object_r:usbaccessory_device:s0
/dev/vcs[0-9a-z]* u:object_r:vcs_device:s0
/dev/video[0-9]* u:object_r:video_device:s0
/dev/video4[0-9] u:object_r:camera_device:s0
/dev/watchdog u:object_r:watchdog_device:s0
/dev/xt_qtaguid u:object_r:qtaguid_device:s0
/dev/zero u:object_r:zero_device:s0
/dev/__kmsg__ u:object_r:klog_device:s0
/dev/__properties__ u:object_r:properties_device:s0
#############################
# System files
#
/system(/.*)? u:object_r:system_file:s0
/system/bin/auditd u:object_r:auditd_exec:s0
/system/bin/mksh u:object_r:shell_exec:s0
/system/bin/sh -- u:object_r:shell_exec:s0
/system/bin/run-as -- u:object_r:runas_exec:s0
/system/bin/app_process u:object_r:zygote_exec:s0
/system/bin/servicemanager u:object_r:servicemanager_exec:s0
/system/bin/surfaceflinger u:object_r:surfaceflinger_exec:s0
/system/bin/drmserver u:object_r:drmserver_exec:s0
/system/bin/vold u:object_r:vold_exec:s0
/system/bin/netd u:object_r:netd_exec:s0
/system/bin/rild u:object_r:rild_exec:s0
/system/bin/mediaserver u:object_r:mediaserver_exec:s0
/system/bin/installd u:object_r:installd_exec:s0
/system/bin/keystore u:object_r:keystore_exec:s0
/system/bin/debuggerd u:object_r:debuggerd_exec:s0
/system/bin/wpa_supplicant u:object_r:wpa_exec:s0
/system/bin/qemud u:object_r:qemud_exec:s0
/system/bin/sdcard u:object_r:sdcardd_exec:s0
/system/bin/dhcpcd u:object_r:dhcp_exec:s0
/system/bin/mtpd u:object_r:mtp_exec:s0
/system/bin/pppd u:object_r:ppp_exec:s0
/system/bin/tf_daemon u:object_r:tee_exec:s0
/system/bin/racoon u:object_r:racoon_exec:s0
/system/etc/ppp(/.*)? u:object_r:ppp_system_file:s0
/system/etc/dhcpcd(/.*)? u:object_r:dhcp_system_file:s0
/system/xbin/su u:object_r:su_exec:s0
/system/vendor/bin/gpsd u:object_r:gpsd_exec:s0
/system/bin/ping u:object_r:ping_exec:s0
/system/bin/dnsmasq u:object_r:dnsmasq_exec:s0
/system/bin/hostapd u:object_r:hostapd_exec:s0
/system/bin/clatd u:object_r:clatd_exec:s0
#############################
# Vendor files
#
/vendor(/.*)? u:object_r:system_file:s0
/vendor/bin/gpsd u:object_r:gpsd_exec:s0
#############################
# Data files
#
/data(/.*)? u:object_r:system_data_file:s0
/data/backup(/.*)? u:object_r:backup_data_file:s0
/data/secure/backup(/.*)? u:object_r:backup_data_file:s0
/data/security(/.*)? u:object_r:security_file:s0
/data/drm(/.*)? u:object_r:drm_data_file:s0
/data/gps(/.*)? u:object_r:gps_data_file:s0
/data/dalvik-cache(/.*)? u:object_r:dalvikcache_data_file:s0
/data/anr(/.*)? u:object_r:anr_data_file:s0
/data/app(/.*)? u:object_r:apk_data_file:s0
/data/app/vmdl.*\.tmp u:object_r:apk_tmp_file:s0
/data/app-private(/.*)? u:object_r:apk_private_data_file:s0
/data/app-private/vmdl.*\.tmp u:object_r:apk_private_tmp_file:s0
/data/tombstones(/.*)? u:object_r:tombstone_data_file:s0
/data/local/tmp(/.*)? u:object_r:shell_data_file:s0
# Misc data
/data/misc/audio(/.*)? u:object_r:audio_data_file:s0
/data/misc/audit(/.*)? u:object_r:audit_log:s0
/data/misc/bluetooth(/.*)? u:object_r:bluetooth_data_file:s0
/data/misc/bluedroid(/.*)? u:object_r:bluetooth_data_file:s0
/data/misc/keystore(/.*)? u:object_r:keystore_data_file:s0
/data/misc/media(/.*)? u:object_r:media_data_file:s0
/data/misc/vpn(/.*)? u:object_r:vpn_data_file:s0
/data/misc/systemkeys(/.*)? u:object_r:systemkeys_data_file:s0
/data/misc/wifi(/.*)? u:object_r:wifi_data_file:s0
/data/misc/camera(/.*)? u:object_r:camera_data_file:s0
/data/misc/dhcp(/.*)? u:object_r:dhcp_data_file:s0
/data/misc/adb(/.*)? u:object_r:adb_keys_file:s0
# App sandboxes
/data/data/.* u:object_r:app_data_file:s0
# Wallpaper file.
/data/data/com.android.settings/files/wallpaper u:object_r:wallpaper_file:s0
# Wallpaper file for other users
/data/system/users/[0-9]+/wallpaper u:object_r:wallpaper_file:s0
# Downloaded files
/data/data/com.android.providers.downloads/cache u:object_r:download_file:s0
#############################
# efs files
#
/efs(/.*)? u:object_r:efs_file:s0
#############################
# Cache files
#
/cache(/.*)? u:object_r:cache_file:s0
/cache/.*\.data u:object_r:cache_backup_file:s0
/cache/.*\.restore u:object_r:cache_backup_file:s0
# LocalTransport (backup) uses this directory
/cache/backup(/.*)? u:object_r:cache_backup_file:s0
#############################
# sysfs files
#
/sys/qemu_trace(/.*)? -- u:object_r:sysfs_writable:s0
/sys/devices/platform/nfc-power/nfc_power -- u:object_r:sysfs_nfc_power_writable:s0
/sys/class/rfkill/rfkill[0-9]*/state -- u:object_r:sysfs_bluetooth_writable:s0
/sys/class/rfkill/rfkill[0-9]*/type -- u:object_r:sysfs_bluetooth_writable:s0
/sys/devices/system/cpu(/.*)? u:object_r:sysfs_devices_system_cpu:s0
/sys/power/wake_lock -- u:object_r:sysfs_wake_lock:s0
/sys/power/wake_unlock -- u:object_r:sysfs_wake_lock:s0
#############################
# asec containers
/mnt/asec(/.*)? u:object_r:asec_apk_file:s0
/data/app-asec(/.*)? u:object_r:asec_image_file:s0
#line 1 "vendor/samsung/common/sepolicy/file_contexts"
#############################
# Carrier file
# carrier folder for Sprint(Qualcomm and SLSI)
/carrier(/.*)? u:object_r:carrier_file:s0
#############################
# Device node
#
/dev/android_ssusbcon(/.*)? u:object_r:usb_device:s0
/dev/.secure_storage(/.*)? u:object_r:secure_storage_device:s0
/dev/__kmsg u:object_r:klog_device:s0
#remove it because of conflict with NSA
#/dev/__properties__ u:object_r:prop_device:s0
/dev/batch_io u:object_r:io_device:s0
/dev/bcm2079x u:object_r:nfc_device:s0
/dev/block/platform/dw_mmc.* u:object_r:dw_mmc_device:s0
/dev/block/platform/msm_sdcc.1/by-name/param u:object_r:emmcblk_device:s0
/dev/block/vnswap0 u:object_r:swap_device:s0
/dev/bus/usb(/.*)? u:object_r:usb_bus:s0
/dev/diag u:object_r:diag_device:s0
/dev/dumpstate u:object_r:dumpstate_device:s0
/dev/i2c.* u:object_r:i2c_device:s0
## Knox Sensitive data protection, DEK engine driver access
/dev/dek_evt u:object_r:knox_dar_device:s0
/dev/dek_kek u:object_r:knox_dar_device:s0
/dev/dek_log u:object_r:knox_dar_device:s0
/dev/dek_req u:object_r:knox_dar_device:s0
/dev/sdp_mm u:object_r:knox_dar_device:s0
/dev/media[0-3]* u:object_r:camera_device:s0
/dev/mobicore u:object_r:mobicore_device:s0
/dev/mobicore-user u:object_r:mobicore-user_device:s0
/dev/pipes(/.*)? u:object_r:system_fifo:s0
/dev/pn547 u:object_r:nfc_device:s0
#fix build error - duplicate definition
#/dev/pn544 u:object_r:nfc_device:s0
/dev/pvrsrvkm u:object_r:powervr_device:s0
/dev/sec-nfc u:object_r:nfc_device:s0
/dev/shtc1_sensor u:object_r:sensor_device:s0
/dev/socket/charon u:object_r:charon_socket:s0
/dev/socket/dumpstate u:object_r:dumpstate_socket:s0
/dev/socket/cs_socket u:object_r:cs_socket:s0
/dev/socket/msockets(/.*)? u:object_r:msockets_socket:s0
/dev/socket/mtpd u:object_r:mtpd_socket:s0
/dev/socket/dir_enc_report u:object_r:vold_socket:s0
/dev/socket/drsd u:object_r:drsd_socket:s0
/dev/socket/epm u:object_r:epm_socket:s0
/dev/socket/ppm u:object_r:epm_socket:s0
/dev/socket/rild[0-9]* u:object_r:rild_socket:s0
/dev/socket/rild-debug[0-9]* u:object_r:rild_debug_socket:s0
/dev/ssp_sensorhub u:object_r:input_device:s0
/dev/timerirq u:object_r:timerirq_device:s0
/dev/ttyGS[0-9]* u:object_r:usb_serial_device:s0
/dev/ttyUSB[0-9]* u:object_r:usb_device:s0
/dev/tzic u:object_r:tzic_device:s0
/dev/usb(/.*)? u:object_r:usb_device:s0
/dev/usb.* u:object_r:usb_device:s0
/dev/usb/tty.* u:object_r:usb_device:s0
/dev/usb_mtp_gadget.* u:object_r:mtp_device:s0
/dev/validity(/.*)? u:object_r:validity_device:s0
/dev/vfsspi u:object_r:vfsspi_device:s0
/dev/block/mmcblk0p[0-9]* u:object_r:emmcblk_device:s0
/dev/block/mmcblk[0-9]* u:object_r:emmcblk_device:s0
/dev/block/mmcblk1p.* u:object_r:emmcblk_device:s0
/dev/block/mmcblk1p1 u:object_r:emmcblk_device:s0
####################################
# sysfs files
#
/sys(/.*)? u:object_r:sysfs:s0
/sys/class/power_supply/battery/music -- u:object_r:sysfs_music_power_writable:s0
/sys/class/devfreq/exynos5-busfreq-mif(/.*)? -- u:object_r:sysfs_exynos_writable:s0
/sys/class/lcd(/.*)? -- u:object_r:sysfs_lcd_writable:s0
#############################
# System files
#
/system/bin/actlmand u:object_r:actlmand_exec:s0
/system/bin/androidshmservice u:object_r:androidshmservice_exec:s0
/system/bin/apaservice u:object_r:apaservice_exec:s0
/system/bin/at_distributor u:object_r:at_distributor_exec:s0
/system/bin/bintvoutservice u:object_r:bintvoutservice_exec:s0
/system/bin/bootanimation u:object_r:bootanimation_exec:s0
/system/bin/bootchecker u:object_r:bootchecker_exec:s0
/system/bin/bugreport u:object_r:bugreport_exec:s0
/system/bin/cellgeofenced u:object_r:cellgeofenced_exec:s0
/system/bin/charon u:object_r:charon_exec:s0
/system/bin/connfwexe u:object_r:connfwexe_exec:s0
/system/bin/createsystemfile u:object_r:createsystemfile_exec:s0
/system/bin/cs u:object_r:cs_exec:s0
/system/bin/ddexe u:object_r:ddexe_exec:s0
/system/bin/diag_uart_log u:object_r:diag_uart_log_exec:s0
/system/bin/drsd u:object_r:drsd_exec:s0
/system/bin/dttexe u:object_r:dttexe_exec:s0
/system/bin/dumpstate u:object_r:dumpstate_exec:s0
/system/bin/dumpsys u:object_r:dumpsys_exec:s0
/system/bin/edmaudit u:object_r:edmaudit_exec:s0
/system/bin/epmd u:object_r:epmd_exec:s0
/system/bin/gpu_snapshotd u:object_r:gpu_snapshotd_exec:s0
/system/bin/gsiff_daemon u:object_r:gsiff_daemon_exec:s0
/system/bin/icd u:object_r:icd_exec:s0
/system/bin/immvibed u:object_r:immvibed_exec:s0
/system/bin/imsqmidaemon u:object_r:imsqmidaemon_exec:s0
/system/bin/insthk u:object_r:insthk_exec:s0
/system/bin/ipruleset u:object_r:ipruleset_exec:s0
/system/bin/IPSecService u:object_r:IPSecService_exec:s0
/system/bin/jackservice u:object_r:jackservice_exec:s0
/system/bin/kiesexe u:object_r:kiesexe_exec:s0
/system/bin/logwrapper u:object_r:logwrapper_exec:s0
/system/bin/mdnsd u:object_r:mdnsd_exec:s0
/system/bin/mdm_helper u:object_r:mdm_helper_exec:s0
/system/bin/mdm_helper_proxy u:object_r:mdm_helper_proxy_exec:s0
/system/bin/netmgrd u:object_r:netmgrd_exec:s0
/system/bin/npsmobex u:object_r:mobexdaemon_exec:s0
/system/bin/nqs u:object_r:nqs_exec:s0
/system/bin/p2p_supplicant u:object_r:p2p_supplicant_exec:s0
/system/bin/ptt_socket_app u:object_r:ptt_socket_app_exec:s0
/system/bin/prepare_param.sh u:object_r:prepare_param_sh_file:s0
/system/bin/rfs_access u:object_r:rfs_access_exec:s0
/system/bin/samsungpowersoundplay u:object_r:samsungpowersoundplay_exec:s0
/system/bin/sec-ril u:object_r:sec-ril_exec:s0
/system/bin/secure_storage_daemon u:object_r:secure_storage_exec:s0
/system/bin/sensorhubservice u:object_r:sensorhubservice_exec:s0
/system/bin/selinux-network.sh u:object_r:selinux_net_exec:s0
/system/bin/ss_conn_daemon u:object_r:ss_conn_daemon_exec:s0
/system/bin/sshd u:object_r:sshd_exec:s0
/system/bin/sysmon u:object_r:sysmon_exec:s0
/system/bin/tima_dump_log u:object_r:tima_dump_exec:s0
/system/bin/vcsFPService u:object_r:vcsFPService_exec:s0
/system/bin/vfmService u:object_r:vcsFPService_exec:s0
/system/bin/wcnss_service u:object_r:wcnss_service_exec:s0
/system/bin/wpa_supplicant_real u:object_r:wpa_exec:s0
/system/bin/sysprof u:object_r:sysprof_exec:s0
/system/etc/install-recovery.sh u:object_r:flash_recovery_sh_file:s0
/system/lib(/.*)? u:object_r:system_library_file:s0
/system/etc/event-log-tags u:object_r:event_log_tags_file:s0
#############################
# EFS file
#
/efs/bluetooth(/.*)? u:object_r:bluetooth_efs_file:s0
/efs/imei(/.*)? u:object_r:imei_efs_file:s0
/efs/FactoryApp(/.*)? u:object_r:app_efs_file:s0
/efs/wifi(/.*)? u:object_r:wifi_efs_file:s0
#############################
# DATA file
#
/data/data/.drm(/.*)? u:object_r:drm_data_file:s0
/data/data/imsqmisocket u:object_r:system_data_file:s0
/data/app-lib(/.*)? u:object_r:app_library_file:s0
/data/bcmnfc(/.*)? u:object_r:nfc_data_file:s0
/data/log(/.*)? u:object_r:dumplog_data_file:s0
/data/media(/.*)? u:object_r:media_data_file:s0
/data/media.tmp(/.*)? u:object_r:media_data_file:s0
/data/media/obb(/.*)? u:object_r:obb_apk_file:s0
#fix build error - duplicate definition
#/data/misc/audio(/.*)? u:object_r:audio_data_file:s0
/data/misc/radio(/.*)? u:object_r:radio_data_file:s0
/data/system/users(/.*)/wallpaper u:object_r:wallpaper_file:s0
/data/.container_[1-9](/.*)? u:object_r:container_app_data_backend:s0
/data/container(/.*)? u:object_r:container_app_data_backend:s0
/data/clipboard/knox(/.*)? u:object_r:knox_clipboard_file:s0
/data/clipboard1[0-9][0-9](/.*)? u:object_r:knox_clipboard_file:s0
/data/knox(/.*)? u:object_r:container_app_data_backend:s0
/data/system/container(/.*)? u:object_r:security_file:s0
/data/sc(/.*)? u:object_r:smartcard_data_file:s0
# personalpage path is not used by (hyojin45.son)
# /data/personalpage(/.*)? u:object_r:personal_page_file:s0
# new path for personalpage is privatemode.K is first model for personalpage.
/data/privatemode(/.*)? u:object_r:personal_page_file:s0
/data/KEqvTaYEYkuJr1Mn+t-SwFvbgYo_(/.*)? u:object_r:tima_keystore_file:s0
/data/misc/tima(/.*)? u:object_r:tima_log:s0
/data/data/com.android.shell(/.*)? u:object_r:shell_data_file:s0
#############################
# MISC partition file
#
/hidden(/.*)? u:object_r:hidden_file:s0
/persdata(/.*)? u:object_r:persdata_data_file:s0
/persist(/.*)? u:object_r:persist_data_file:s0
/preload(/.*)? u:object_r:hidden_file:s0
/tombstone(/.*)? u:object_r:tombstone_data_file:s0
/tombstones(/.*)? u:object_r:tombstones_data_file:s0
#############################
# MNT
#
/mnt/obb(/.*)? u:object_r:obb_apk_file:s0
/mnt/secure/asec(/.*)? u:object_r:asec_apk_file:s0
/mnt/secure/staging(/.*)? u:object_r:asec_image_file:s0
#line 1 "vendor/samsung/common/sepolicy/qcom_common/file_contexts"
#############################
# Device node
#
/dev/adsprpc-smd u:object_r:adsprpc_device:s0
/dev/android_mbim u:object_r:android_mbim:s0
/dev/android_rndis_qc u:object_r:radio_device:s0
/dev/audience_a2220 u:object_r:audio_device:s0
/dev/block/mmcblk0rpmb u:object_r:mmcblk0rpmb_device:s0
/dev/block/platform/msm_sdcc.1/by-name/fsg u:object_r:fsg_device:s0
/dev/block/platform/msm_sdcc.1/by-name/m9kefs[0-3]* u:object_r:emmcblk_device:s0
/dev/block/platform/msm_sdcc.1/by-name/modem u:object_r:modem_device:s0
/dev/block/platform/msm_sdcc.1/by-name/modemst[1-2]* u:object_r:emmcblk_device:s0
/dev/block/platform/msm_sdcc.1/by-name/ssd u:object_r:emmcblk_device:s0
/dev/btlock u:object_r:hci_attach_dev:s0
#ciq_bridge PLM
/dev/ciq_bridge u:object_r:ciqbridge_device:s0
/dev/cpu_dma_latency u:object_r:cpu_dma_latency_device:s0
/dev/dun u:object_r:dun_device:s0
/dev/efs_bridge u:object_r:radio_device:s0
/dev/efs_hsic_bridge u:object_r:radio_device:s0
/dev/gemini0 u:object_r:camera_device:s0
/dev/genlock u:object_r:genlock:s0
/dev/gsm_ipc0 u:object_r:radio_device:s0
/dev/gsm_boot0 u:object_r:radio_device:s0
/dev/gsm_multi_pdp u:object_r:radio_device:s0
/dev/gsm_rfs0 u:object_r:radio_device:s0
/dev/hsicctl[0-3]* u:object_r:qmuxd_device:s0
#fix build error - duplicate definition
#/dev/hw_random u:object_r:hw_random_device:s0
/dev/kgsl-[0-9a-z]* u:object_r:kgsl_device:s0
/dev/ks_bridge u:object_r:radio_device:s0
/dev/ks_hsic_bridge u:object_r:radio_device:s0
/dev/mdm u:object_r:radio_device:s0
/dev/mhl_dev u:object_r:mhl_device:s0
/dev/msm_aac u:object_r:audio_device:s0
/dev/msm_aac_in u:object_r:audio_device:s0
/dev/msm_acdb u:object_r:audio_device:s0
/dev/msm_amrnb u:object_r:audio_device:s0
/dev/msm_amrnb_in u:object_r:audio_device:s0
/dev/msm_amrwb u:object_r:audio_device:s0
/dev/msm_amrwb_in u:object_r:audio_device:s0
/dev/msm_amrwbplus u:object_r:audio_device:s0
/dev/msm_camera(/.*)? u:object_r:camera_device:s0
/dev/msm_dsps u:object_r:input_device:s0
/dev/msm_evrc u:object_r:audio_device:s0
/dev/msm_evrc_in u:object_r:audio_device:s0
/dev/msm_mp3 u:object_r:audio_device:s0
/dev/msm_multi_aac u:object_r:audio_device:s0
/dev/msm_qcelp u:object_r:audio_device:s0
/dev/msm_qcelp_in u:object_r:audio_device:s0
/dev/msm_rotator u:object_r:graphics_device:s0
/dev/msm_rtac u:object_r:audio_device:s0
/dev/msm_sps u:object_r:input_device:s0
/dev/msm_vidc_.* u:object_r:audio_device:s0
/dev/msm_wma u:object_r:audio_device:s0
/dev/msm_wmapro u:object_r:audio_device:s0
/dev/msm_wma_pro u:object_r:audio_device:s0
/dev/network_latency u:object_r:radio_device:s0
/dev/network_throughput u:object_r:radio_device:s0
/dev/nmea u:object_r:radio_device:s0
/dev/pmem_audio u:object_r:audio_device:s0
/dev/qmi[0-9]* u:object_r:radio_device:s0
/dev/qseecom u:object_r:qseecom_device:s0
/dev/ramdump_dsps u:object_r:ramdump_device:s0
/dev/ramdump_riva u:object_r:ramdump_device:s0
/dev/ramdump_smem-dsps u:object_r:ramdump_device:s0
/dev/rfkill u:object_r:rfkill_device:s0
/dev/rmnet_mux_ctrl u:object_r:radio_device:s0
/dev/rtc[0-9]* u:object_r:clock_device:s0
/dev/smd[0-9]* u:object_r:smd_device:s0
/dev/smd_cxm_qmi u:object_r:smd_cxm_qmi:s0
/dev/smd_pkt_loopback u:object_r:smd_pkt_loopback:s0
/dev/smd_sns_adsp u:object_r:smd_sns_adsp:s0
/dev/smd_sns_dsps u:object_r:smd_sns_dsps:s0
/dev/smdcntl[0-9]* u:object_r:smd_cntl:s0
/dev/smem_log u:object_r:log_device:s0
/dev/socket/audio u:object_r:audio_socket:s0
/dev/socket/hdmid u:object_r:hdmi_socket:s0
#remove it because already defined in new version of NSA release
#/dev/socket/mdns u:object_r:mdns_socket:s0
/dev/socket/mpctl u:object_r:mpctl_socket:s0
/dev/socket/mpdecision(/.*)? u:object_r:mpdecision_socket:s0
/dev/socket/pps u:object_r:pps_socket:s0
/dev/socket/qmux_audio u:object_r:qmux_audio_socket:s0
/dev/socket/qmux_bluetooth(/.*)? u:object_r:qmux_bluetooth_socket:s0
/dev/socket/qmux_gps u:object_r:qmux_gps_socket:s0
/dev/socket/qmux_radio u:object_r:qmux_radio_socket:s0
/dev/socket/radio u:object_r:radio_socket:s0
/dev/tspdrv u:object_r:tspdrv_device:s0
/dev/ttyHS[0-9]* u:object_r:bluetooth_serial_device:s0
/dev/ttyHSL[0-9]* u:object_r:radio_device:s0
/dev/usf1 u:object_r:usf_device:s0
/dev/umts_ipc0 u:object_r:radio_device:s0
/dev/v4l-subdev[0-9]* u:object_r:camera_device:s0
/dev/wcnss_wlan u:object_r:wifi_device:s0
/dev/jpeg[0-2]* u:object_r:camera_device:s0
/dev/radio0 u:object_r:fm_radio_device:s0
#############################
# DATA file
#
/data/misc/gpsone_d(/.*)? u:object_r:gps_data_file:s0
/data/misc/location(/.*)? u:object_r:gps_data_file:s0
/data/time(/.*)? u:object_r:time_data_file:s0
#############################
# EFS file
#
/efs/drm(/.*)? u:object_r:drm_efs_file:s0
#############################
# System files
#
/system/bin/ATFWD-daemon u:object_r:ATFWD-daemon_exec:s0
/system/bin/adsprpcd u:object_r:adsprpcd_exec:s0
/system/bin/audiod u:object_r:audiod_exec:s0
/system/bin/charger_monitor u:object_r:charger_monitor_exec:s0
/system/bin/cnd u:object_r:cnd_exec:s0
/system/bin/efsks u:object_r:efsks_exec:s0
/system/bin/geomagneticd u:object_r:geomagneticd_exec:s0
/system/bin/gpsone_daemon u:object_r:gpsone_daemon_exec:s0
/system/bin/ks u:object_r:ks_exec:s0
/system/bin/location-mq u:object_r:location-mq_exec:s0
/system/bin/lowi-server u:object_r:lowi-server_exec:s0
/system/bin/mcDriverDaemon u:object_r:mobicoredaemon_exec:s0
/system/bin/mcDriverDaemonQC u:object_r:mobicoredaemon_exec:s0
/system/bin/mm-pp-daemon u:object_r:mm-pp-daemon_exec:s0
/system/bin/mm-qcamera-daemon u:object_r:mm-qcamera-daemon_exec:s0
/system/bin/mpdecision u:object_r:mpdecision_exec:s0
/system/bin/qcks u:object_r:qcks_exec:s0
/system/bin/qcom-system-daemon u:object_r:qcom-system-daemon_exec:s0
/system/bin/qmuxd u:object_r:qmuxd_exec:s0
/system/bin/qosmgr u:object_r:qosmgr_exec:s0
/system/bin/qrngd u:object_r:qrngd_exec:s0
/system/bin/qseecomd u:object_r:qseecomd_exec:s0
/system/bin/quipc_igsn u:object_r:quipc_igsn_exec:s0
/system/bin/quipc_main u:object_r:quipc_main_exec:s0
/system/bin/rmt_storage u:object_r:rmt_storage_exec:s0
/system/bin/scranton_RD u:object_r:playready_exec:s0
/system/bin/secstarter u:object_r:secstarter_exec:s0
/system/bin/smdexe u:object_r:smdexe_exec:s0
/system/bin/ssr_diag u:object_r:ssr_diag_exec:s0
/system/bin/thermal-engine u:object_r:thermald_exec:s0
/system/bin/thermald u:object_r:thermald_exec:s0
/system/bin/time_daemon u:object_r:time_daemon_exec:s0
/system/bin/wiperiface u:object_r:wiperiface_exec:s0
#line 1 "vendor/samsung/common/sepolicy/vmware/file_contexts"
# VMware daemon
/system/bin/mvpd u:object_r:vmwared_exec:s0
# Vmware device
/dev/mvpkm u:object_r:vmware_device:s0
# VMWare sysfs
/sys/hypervisor(/.*) u:object_r:sysfs_vmware_writable:s0
#line 1 "vendor/samsung/common/sepolicy/qcom_common/carrier_spr/file_contexts"
#### Kineto for secsprextension/java/com/oem/smartwifisupport
/dev/socket/cfiat u:object_r:cfiat_socket:s0
/dev/socket/kipc u:object_r:kipc_socket:s0
#############################
# ItsOn file
#
/system/vendor/itson(/.*)? u:object_r:sprintitson_file:s0
#/vendor/app(/.*)? u:object_r:sprintitson_file:s0
/carrier/itson(/.*)? u:object_r:sprintitson_file:s0
/system/vendor/itson/itson-bootstrapper.sh u:object_r:itsonbs_exec:s0

@ -0,0 +1,20 @@
# Android fstab file.
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
#TODO: Add 'check' as fs_mgr_flags with data partition.
# Currently we dont have e2fsck compiled. So fs check would failed.
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,errors=panic wait
/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 nosuid,nodev,noatime,noauto_da_alloc,discard,journal_async_commit,errors=panic wait,check,encryptable=footer
#
/devices/platform/msm_sdcc.2/mmc_host/mmc2,/devices/platform/msm_sdcc.3/mmc_host/mmc1 auto vfat default voldmanaged=extSdCard:auto,noemulatedsd
/devices/platform/msm_hsusb_host/usb*sda auto vfat default voldmanaged=UsbDriveA:auto
/devices/platform/msm_hsusb_host/usb*sdb auto vfat default voldmanaged=UsbDriveB:auto
/devices/platform/msm_hsusb_host/usb*sdc auto vfat default voldmanaged=UsbDriveC:auto
/devices/platform/msm_hsusb_host/usb*sdd auto vfat default voldmanaged=UsbDriveD:auto
/devices/platform/msm_hsusb_host/usb*sde auto vfat default voldmanaged=UsbDriveE:auto
/devices/platform/msm_hsusb_host/usb*sdf auto vfat default voldmanaged=UsbDriveF:auto

Binary file not shown.

@ -0,0 +1,147 @@
on boot
# for bluetooth
service hciattach /system/bin/sh /system/etc/init.qcom.bt.sh
class late_start
user bluetooth
group qcom_oncrpc bluetooth net_bt_admin system radio
disabled
oneshot
# for bluetooth rf test.
service bt_dut_cmd /system/bin/qcom_dut
group bluetooth net_bt_admin
class main
disabled
oneshot
service bt_audio_dut_cmd /system/bin/qcom_audio_dut
group bluetooth net_bt_admin
class main
disabled
## LE 2 wired Test
service LE_dut_cmd_on /system/bin/LE_dut --le_enable
group bluetooth net_bt_admin
disabled
oneshot
service LE_dut_cmd_off /system/bin/LE_dut --le_disable
group bluetooth net_bt_admin
disabled
oneshot
## LE Tx Ouput Power
service LE_tx_low /system/bin/LE_dut --tx_low
class main
group bluetooth net_bt_admin
disabled
oneshot
service LE_tx_mid /system/bin/LE_dut --tx_mid
class main
group bluetooth net_bt_admin
disabled
oneshot
service LE_tx_max /system/bin/LE_dut --tx_max
class main
group bluetooth net_bt_admin
disabled
oneshot
## LE Tx Modulation Characteristics
# Payload 0x0F
service LE_tx_M_low /system/bin/LE_dut --tx_m_low
class main
group bluetooth net_bt_admin
disabled
oneshot
service LE_tx_M_mid /system/bin/LE_dut --tx_m_mid
class main
group bluetooth net_bt_admin
disabled
oneshot
service LE_tx_M_max /system/bin/LE_dut --tx_m_max
class main
group bluetooth net_bt_admin
disabled
oneshot
# Payload 0xAA
service LE_tx_M_1_low /system/bin/LE_dut --tx_m_1_low
class main
group bluetooth net_bt_admin
disabled
oneshot
service LE_tx_M_1_mid /system/bin/LE_dut --tx_m_1_mid
class main
group bluetooth net_bt_admin
disabled
oneshot
service LE_tx_M_1_max /system/bin/LE_dut --tx_m_1_max
class main
group bluetooth net_bt_admin
disabled
oneshot
## Carrier Frequency
service LE_tx_C_low /system/bin/LE_dut --tx_c_low
class main
group bluetooth net_bt_admin
disabled
oneshot
service LE_tx_C_mid /system/bin/LE_dut --tx_c_mid
class main
group bluetooth net_bt_admin
disabled
oneshot
service LE_tx_C_max /system/bin/LE_dut --tx_c_max
class main
group bluetooth net_bt_admin
disabled
oneshot
## In-band Emissions
service LE_tx_I_low /system/bin/LE_dut --tx_i_low
class main
group bluetooth net_bt_admin
disabled
oneshot
service LE_tx_I_max /system/bin/LE_dut --tx_i_max
class main
group bluetooth net_bt_admin
disabled
oneshot
## Rx Test
service LE_rx_ready_low /system/bin/LE_dut --rx_low
class main
group bluetooth net_bt_admin
disabled
oneshot
service LE_rx_ready_mid /system/bin/LE_dut --rx_mid
class main
group bluetooth net_bt_admin
disabled
oneshot
service LE_rx_ready_max /system/bin/LE_dut --rx_max
class main
group bluetooth net_bt_admin
disabled
oneshot
service LE_test_end /system/bin/LE_dut --test_end
class main
group bluetooth net_bt_admin
disabled
oneshot

@ -0,0 +1,143 @@
# Copyright (c) 2009-2012, Code Aurora Forum. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of Code Aurora nor
# the names of its contributors may be used to endorse or promote
# products derived from this software without specific prior written
# permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
on init
# Support Preload install apks
mkdir /preload 0771 system system
on fs
wait /dev/block/platform/msm_sdcc.1/by-name/modem
mount vfat /dev/block/platform/msm_sdcc.1/by-name/modem /firmware ro shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337
on boot
# permissions for bluetooth.
setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr"
chown bluetooth net_bt_stack ro.bt.bdaddr_path
chown bluetooth net_bt_stack /dev/ttyHS0
chmod 0660 /dev/ttyHS0
chmod 0660 /sys/class/rfkill/rfkill0/state
chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/state
chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/type
# SSWAP
write /proc/sys/vm/swappiness 130
# bluetooth LPM
chmod 0660 /proc/bluetooth/sleep/lpm
chmod 0220 /proc/bluetooth/sleep/btwrite
chown bluetooth net_bt_stack /proc/bluetooth/sleep/lpm
chown bluetooth net_bt_stack /proc/bluetooth/sleep/btwrite
chmod 0600 /dev/btlock
chown bluetooth bluetooth /dev/btlock
chown radio system /sys/class/sec/switch/usb_sel
chown radio system /sys/class/sec/switch/usb_state
chown radio system /sys/class/sec/switch/uart_sel
chown radio system /sys/class/sec/switch/apo_factory
# Permissions for silent crash service
chown system system /dev/ramdump_modem_fw
chown system system /dev/ramdump_modem_sw
chown system system /dev/ramdump_smem-modem
chown system system /dev/ramdump_kernel_log
chmod 0600 /dev/ramdump_modem_fw
chmod 0600 /dev/ramdump_modem_sw
chmod 0600 /dev/ramdump_smem-modem
# Define TCP buffer sizes for various networks
# ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
setprop net.tcp.buffersize.default 4096,87380,704512,4096,16384,110208
setprop net.tcp.buffersize.wifi 524288,1048576,2097152,262144,524288,1048576
setprop net.tcp.buffersize.lte 524288,1048576,2560000,524288,1048576,2560000
setprop net.tcp.buffersize.umts 4094,87380,704512,4096,16384,110208
setprop net.tcp.buffersize.hspa 4092,87380,704512,4096,16384,262144
setprop net.tcp.buffersize.hsupa 4092,87380,704512,4096,16384,262144
setprop net.tcp.buffersize.hsdpa 4092,87380,704512,4096,16384,110208
setprop net.tcp.buffersize.hspap 4092,87380,704512,4096,16384,262144
setprop net.tcp.buffersize.edge 4093,26280,35040,4096,16384,35040
setprop net.tcp.buffersize.gprs 4092,30000,30000,4096,8760,11680
setprop net.tcp.buffersize.evdo 4094,87380,262144,4096,16384,262144
on fs
#For Absolute Persistence Partition
mkdir /persdata 0755 system system
mkdir /persdata/absolute 0750 system system
# Support Preload install apks
wait /dev/block/platform/msm_sdcc.1/by-name/hidden
mount ext4 /dev/block/platform/msm_sdcc.1/by-name/hidden /preload nosuid nodev ro barrier=1
setprop storage.preload.complete 1
wait /dev/block/platform/msm_sdcc.1/by-name/modem
mount vfat /dev/block/platform/msm_sdcc.1/by-name/modem /firmware ro shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337
wait /dev/block/platform/msm_sdcc.1/by-name/persdata
check_fs /dev/block/platform/msm_sdcc.1/by-name/persdata ext4
mount ext4 /dev/block/platform/msm_sdcc.1/by-name/persdata /persdata/absolute nosuid nodev barrier=1
chown system system /persdata
chmod 0755 /persdata
chown system system /persdata/absolute
chmod 0750 /persdata/absolute
# TVout
service TvoutService_C /system/bin/bintvoutservice
class main
user system
group system
# MM Property
#on property:sys.qseecomd.enable=true
# exec /system/bin/scranton_RD
#InsideSecure VPN Client
service vpnclientpm /system/bin/vpnclientpm -u 1000 -g 1000 \
-O /data/data/com.ipsec.service/vpnclientpm.txt \
-U rmnet,rmnet_usb,wlan,bt-pan,rndis,p2p,eth
socket vpnclientpm seqpacket 0600 system system
disabled
on property:service.vpnclientpm.enable=1
start vpnclientpm
on property:service.vpnclientpm.enable=0
stop vpnclientpm
# SSWAP
service swapon /sbin/sswap -s
class core
user root
group root
seclabel u:r:sswap:s0
oneshot

@ -0,0 +1,40 @@
on early-init
on init
# create Container (KNOX 1.0) mountpoints for KNOX Migration
mkdir /knox_data 0775 root system
mkdir /knox_data/userdata 0775 system system
mkdir /knox_data/appdata 0775 system system
mkdir /mnt/shell/knox-emulated 0700 system system
mkdir /storage/extSdCard 0000 system system
symlink /storage/extSdCard /mnt/extSdCard
symlink /mnt/shell/knox-emulated /storage/knox-emulated
export SECONDARY_STORAGE /storage/extSdCard
on post-fs-data
# create knox filesystem structure
mkdir /data/knox 0771 system system
mkdir /data/knox/data 0771 system system
mkdir /data/knox/sdcard 0771 system system
mkdir /data/knox/ext_sdcard 0771 system system
mkdir /data/knox/app 0771 system system
mkdir /data/knox/tmp 0771 system system
export KNOX_STORAGE /data/knox/ext_sdcard
restorecon /data/knox
on boot
# virtual sdcard daemon running as system (1000)
service knox /system/bin/sdcard /data/knox/sdcard /mnt/shell/knox-emulated 1000 1000
class late_start
oneshot
start knox

@ -0,0 +1,12 @@
# set up the global environment
on init
export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
export LD_LIBRARY_PATH /vendor/lib:/system/lib
export ANDROID_BOOTLOGO 1
export ANDROID_ROOT /system
export ANDROID_ASSETS /system/app
export ANDROID_DATA /data
export ANDROID_STORAGE /storage
export ASEC_MOUNTPOINT /mnt/asec
export LOOP_MOUNTPOINT /mnt/obb
export BOOTCLASSPATH /system/framework/core.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/framework2.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/mms-common.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar:/system/framework/webviewchromium.jar:/system/framework/sec_edm.jar:/system/framework/secocsp.jar:/system/framework/seccamera.jar:/system/framework/scrollpause.jar:/system/framework/stayrotation.jar:/system/framework/smartfaceservice.jar:/system/framework/commonimsinterface.jar:/system/framework/org.codeaurora.Performance.jar

@ -0,0 +1,199 @@
#!/system/bin/sh
# Copyright (c) 2012, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of The Linux Foundation nor
# the names of its contributors may be used to endorse or promote
# products derived from this software without specific prior written
# permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# Set platform variables
target=`getprop ro.board.platform`
soc_hwplatform=`cat /sys/devices/system/soc/soc0/hw_platform` 2> /dev/null
soc_hwid=`cat /sys/devices/system/soc/soc0/id` 2> /dev/null
soc_hwver=`cat /sys/devices/system/soc/soc0/platform_version` 2> /dev/null
# Dynamic Memory Managment (DMM) provides a sys file system to the userspace
# that can be used to plug in/out memory that has been configured as unstable.
# This unstable memory can be in Active or In-Active State.
# Each of which the userspace can request by writing to a sys file.
#
# ro.dev.dmm = 1; Indicates that DMM is enabled in the Android User Space. This
# property is set in the Android system properties file.
#
# If ro.dev.dmm.dpd.start_address is set here then the target has a memory
# configuration that supports DynamicMemoryManagement.
init_DMM()
{
block=-1
case "$target" in
"msm7630_surf" | "msm7630_1x" | "msm7630_fusion" | "msm8960")
;;
*)
return
;;
esac
mem="/sys/devices/system/memory"
op=`cat $mem/movable_start_bytes`
case "$op" in
"0")
log -p i -t DMM DMM Disabled. movable_start_bytes not set: $op
;;
"$mem/movable_start_bytes: No such file or directory ")
log -p i -t DMM DMM Disabled. movable_start_bytes does not exist: $op
;;
*)
log -p i -t DMM DMM available. movable_start_bytes at $op
movable_start_bytes=0x`cat $mem/movable_start_bytes`
block_size_bytes=0x`cat $mem/block_size_bytes`
block=$((#${movable_start_bytes}/${block_size_bytes}))
chown -h system.system $mem/memory$block/state
chown -h system.system $mem/probe
chown -h system.system $mem/active
chown -h system.system $mem/remove
case "$target" in
"msm7630_surf" | "msm7630_1x" | "msm7630_fusion")
echo $movable_start_bytes > $mem/probe
case "$?" in
"0")
log -p i -t DMM $movable_start_bytes to physical hotplug succeeded.
;;
*)
log -p e -t DMM $movable_start_bytes to physical hotplug failed.
return
;;
esac
echo online > $mem/memory$block/state
case "$?" in
"0")
log -p i -t DMM \'echo online\' to logical hotplug succeeded.
;;
*)
log -p e -t DMM \'echo online\' to logical hotplug failed.
return
;;
esac
;;
esac
setprop ro.dev.dmm.dpd.start_address $movable_start_bytes
setprop ro.dev.dmm.dpd.block $block
;;
esac
case "$target" in
"msm8960")
return
;;
esac
# For 7X30 targets:
# ro.dev.dmm.dpd.start_address is set when the target has a 2x256Mb memory
# configuration. This is also used to indicate that the target is capable of
# setting EBI-1 to Deep Power Down or Self Refresh.
op=`cat $mem/low_power_memory_start_bytes`
case "$op" in
"0")
log -p i -t DMM Self-Refresh-Only Disabled. low_power_memory_start_bytes not set:$op
;;
"$mem/low_power_memory_start_bytes No such file or directory ")
log -p i -t DMM Self-Refresh-Only Disabled. low_power_memory_start_bytes does not exist:$op
;;
*)
log -p i -t DMM Self-Refresh-Only available. low_power_memory_start_bytes at $op
;;
esac
}
#
# For controlling console and shell on console on 8960 - perist.serial.enable 8960
# On other target use default ro.debuggable property.
#
serial=`getprop persist.serial.enable`
dserial=`getprop ro.debuggable`
case "$target" in
"msm8960")
case "$serial" in
"0")
echo 0 > /sys/devices/platform/msm_serial_hsl.0/console
;;
"1")
echo 1 > /sys/devices/platform/msm_serial_hsl.0/console
start console
;;
*)
case "$dserial" in
"1")
start console
;;
esac
;;
esac
;;
*)
case "$dserial" in
"1")
start console
;;
esac
;;
esac
#
# Allow persistent faking of bms
# User needs to set fake bms charge in persist.bms.fake_batt_capacity
#
fake_batt_capacity=`getprop persist.bms.fake_batt_capacity`
case "$fake_batt_capacity" in
"") ;; #Do nothing here
* )
case $target in
"msm8960")
echo "$fake_batt_capacity" > /sys/module/pm8921_bms/parameters/bms_fake_battery
;;
esac
esac
case "$target" in
"msm7630_surf" | "msm7630_1x" | "msm7630_fusion")
insmod /system/lib/modules/ss_mfcinit.ko
insmod /system/lib/modules/ss_vencoder.ko
insmod /system/lib/modules/ss_vdecoder.ko
chmod -h 0666 /dev/ss_mfc_reg
chmod -h 0666 /dev/ss_vdec
chmod -h 0666 /dev/ss_venc
init_DMM
;;
"msm8960")
init_DMM
;;
esac

@ -0,0 +1,149 @@
#!/system/bin/sh
# Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of The Linux Foundation nor
# the names of its contributors may be used to endorse or promote
# products derived from this software without specific prior written
# permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
export PATH=/system/bin
# Set platform variables
soc_hwplatform=`cat /sys/devices/system/soc/soc0/hw_platform` 2> /dev/null
soc_hwid=`cat /sys/devices/system/soc/soc0/id` 2> /dev/null
soc_hwver=`cat /sys/devices/system/soc/soc0/platform_version` 2> /dev/null
log -t BOOT -p i "MSM target '$1', SoC '$soc_hwplatform', HwID '$soc_hwid', SoC ver '$soc_hwver'"
case "$1" in
"msm7630_surf" | "msm7630_1x" | "msm7630_fusion")
case "$soc_hwplatform" in
"FFA" | "SVLTE_FFA")
# linking to surf_keypad_qwerty.kcm.bin instead of surf_keypad_numeric.kcm.bin so that
# the UI keyboard works fine.
ln -s /system/usr/keychars/surf_keypad_qwerty.kcm.bin /system/usr/keychars/surf_keypad.kcm.bin
;;
"Fluid")
setprop ro.sf.lcd_density 240
setprop qcom.bt.dev_power_class 2
;;
*)
ln -s /system/usr/keychars/surf_keypad_qwerty.kcm.bin /system/usr/keychars/surf_keypad.kcm.bin
;;
esac
;;
"msm8660")
case "$soc_hwplatform" in
"Fluid")
setprop ro.sf.lcd_density 240
;;
"Dragon")
setprop ro.sound.alsa "WM8903"
;;
esac
;;
"msm8960")
# lcd density is write-once. Hence the separate switch case
case "$soc_hwplatform" in
"Liquid")
if [ "$soc_hwver" == "196608" ]; then # version 0x30000 is 3D sku
setprop ro.sf.hwrotation 90
fi
setprop ro.sf.lcd_density 160
;;
"MTP")
setprop ro.sf.lcd_density 240
;;
*)
case "$soc_hwid" in
"142") #8x30 QRD
setprop ro.sf.lcd_density 320
;;
"109")
setprop ro.sf.lcd_density 160
;;
*)
setprop ro.sf.lcd_density 240
;;
esac
;;
esac
#Set up MSM-specific configuration
case "$soc_hwid" in
87)
#8960
setprop debug.composition.type dyn
;;
153 | 154 | 155 | 156 | 157 | 138 | 179 | 180 | 181)
#8064 V2 PRIME | 8930AB | 8630AB | 8230AB | 8030AB | 8960AB | 8130/AA/AB
setprop debug.composition.type c2d
;;
*)
;;
esac
case "$soc_hwid" in
87 | 116 | 117 | 118 | 119 | 138 | 142 | 143 | 144 | 154 | 155 | 156 | 157 | 179 | 180 | 181)
#Disable subsystem restart for 8x30 and 8960
setprop persist.sys.ssr.restart_level 1
;;
*)
;;
esac
;;
esac
# Setup HDMI related nodes & permissions
# HDMI can be fb1 or fb2
# Loop through the sysfs nodes and determine
# the HDMI(dtv panel)
fb_cnt=0
for file in /sys/class/graphics/fb*
do
value=`cat $file/msm_fb_type`
case "$value" in
"dtv panel")
chown -h system.graphics $file/hpd
chown -h system.graphics $file/vendor_name
chown -h system.graphics $file/product_description
chmod -h 0664 $file/hpd
chmod -h 0664 $file/vendor_name
chmod -h 0664 $file/product_description
chmod -h 0664 $file/video_mode
chmod -h 0664 $file/format_3d
# create symbolic link
ln -s "/dev/graphics/fb"$fb_cnt /dev/graphics/hdmi
# Change owner and group for media server and surface flinger
chown -h system.system $file/format_3d;;
esac
fb_cnt=$(( $fb_cnt + 1))
done
# Set date to a time after 2008
# This is a workaround for Zygote to preload time related classes properly
date -s 20090102.130000

@ -0,0 +1,801 @@
# Copyright (c) 2009-2013, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of The Linux Foundation nor
# the names of its contributors may be used to endorse or promote
# products derived from this software without specific prior written
# permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
import init.qcom.usb.rc
import init.target.rc
import init.ril.rc
on init
# See storage config details at http://source.android.com/tech/storage/
mkdir /mnt/media_rw/extSdCard 0700 media_rw media_rw
mkdir /mnt/media_rw/UsbDriveA 0700 media_rw media_rw
mkdir /mnt/media_rw/UsbDriveB 0700 media_rw media_rw
mkdir /mnt/media_rw/UsbDriveC 0700 media_rw media_rw
mkdir /mnt/media_rw/UsbDriveD 0700 media_rw media_rw
mkdir /mnt/media_rw/UsbDriveE 0700 media_rw media_rw
mkdir /mnt/media_rw/UsbDriveF 0700 media_rw media_rw
# Set permissions for persist partition
mkdir /persist 0771 system system
# See storage config details at http://source.android.com/tech/storage/
mkdir /mnt/shell/emulated 0700 shell shell
mkdir /storage/emulated 0555 root root
export EXTERNAL_STORAGE /storage/emulated/legacy
export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
export EMULATED_STORAGE_TARGET /storage/emulated
# This is no longer supported from KK release.
#export BOOTCLASSPATH ${BOOTCLASSPATH}:/system/framework/qcom.fmradio.jar
# Support legacy paths
symlink /storage/emulated/legacy /sdcard
symlink /storage/emulated/legacy /mnt/sdcard
symlink /storage/emulated/legacy /storage/sdcard0
symlink /mnt/shell/emulated/0 /storage/emulated/legacy
# map "real" external storages paths also in same way. backwards compatibility.
symlink /storage/extSdCard /mnt/extSdCard
symlink /storage/UsbDriveA /mnt/UsbDriveA
symlink /storage/UsbDriveB /mnt/UsbDriveB
symlink /storage/UsbDriveC /mnt/UsbDriveC
symlink /storage/UsbDriveD /mnt/UsbDriveD
symlink /storage/UsbDriveE /mnt/UsbDriveE
symlink /storage/UsbDriveF /mnt/UsbDriveF
export SECONDARY_STORAGE /storage/extSdCard
mkdir /storage/extSdCard 0700 root root
mkdir /storage/UsbDriveA 0700 root root
mkdir /storage/UsbDriveB 0700 root root
mkdir /storage/UsbDriveC 0700 root root
mkdir /storage/UsbDriveD 0700 root root
mkdir /storage/UsbDriveE 0700 root root
mkdir /storage/UsbDriveF 0700 root root
on early-boot
# set RLIMIT_MEMLOCK to 64MB
setrlimit 8 67108864 67108864
# exec /system/bin/sh /init.qcom.early_boot.sh ${ro.board.platform}
# exec /system/bin/sh /init.qcom.syspart_fixup.sh ${ro.board.platform} ${ro.serialno}
setprop qcom.audio.init complete
service modem-sh /system/bin/sh /system/etc/init.qcom.modem_links.sh
class core
user root
oneshot
on boot
chown bluetooth bluetooth /sys/module/bluetooth_power/parameters/power
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
chown bluetooth bluetooth /proc/bluetooth/sleep/proto
chown system system /sys/module/sco/parameters/disable_esco
chown bluetooth bluetooth /sys/module/hci_smd/parameters/hcismd_set
chmod 0660 /sys/module/bluetooth_power/parameters/power
chmod 0660 /sys/module/hci_smd/parameters/hcismd_set
chmod 0660 /sys/class/rfkill/rfkill0/state
chmod 0660 /proc/bluetooth/sleep/proto
chown bluetooth net_bt_stack /dev/ttyHS0
chmod 0660 /dev/ttyHS0
chown bluetooth bluetooth /sys/devices/platform/msm_serial_hs.0/clock
chmod 0660 /sys/devices/platform/msm_serial_hs.0/clock
chmod 0660 /dev/ttyHS2
chown bluetooth bluetooth /dev/ttyHS2
# for BT MAC address
mkdir /efs/bluetooth 0775 radio system
# if already exist
chown radio system /efs/bluetooth
chmod 0775 /efs/bluetooth
#Create QMUX deamon socket area
mkdir /dev/socket/qmux_radio 0770 radio radio
chmod 2770 /dev/socket/qmux_radio
mkdir /dev/socket/qmux_audio 0770 media audio
chmod 2770 /dev/socket/qmux_audio
mkdir /dev/socket/qmux_bluetooth 0770 bluetooth bluetooth
chmod 2770 /dev/socket/qmux_bluetooth
mkdir /dev/socket/qmux_gps 0770 gps gps
chmod 2770 /dev/socket/qmux_gps
setprop wifi.interface wlan0
setprop ro.telephony.call_ring.multiple false
#Set SUID bit for usbhub
#chmod 4755 /system/bin/usbhub
#chmod 755 /system/bin/usbhub_init
#Remove SUID bit for iproute2 ip tool
chmod 0755 /system/bin/ip
chmod 0444 /sys/devices/platform/msm_hsusb/gadget/usb_state
# Change permissions for fps_level nodes
chown system graphics /sys/class/graphics/fb0/msm_fb_fps_level
chown system graphics /sys/class/graphics/fb1/msm_fb_fps_level
chown system graphics /sys/class/graphics/fb2/msm_fb_fps_level
chmod 644 /sys/class/graphics/fb0/msm_fb_fps_level
chmod 400 /sys/class/graphics/fb1/msm_fb_fps_level
chmod 400 /sys/class/graphics/fb2/msm_fb_fps_level
#For bridgemgr daemon to inform the USB driver of the correct transport
chown radio radio /sys/class/android_usb/f_rmnet_smd_sdio/transport
#To allow interfaces to get v6 address when tethering is enabled
write /proc/sys/net/ipv6/conf/rmnet0/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet1/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet2/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet3/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet4/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet5/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet6/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet7/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_sdio0/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_sdio1/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_sdio2/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_sdio3/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_sdio4/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_sdio5/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_sdio6/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_sdio7/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_usb0/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_usb1/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_usb2/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_usb3/accept_ra 2
# To prevent out of order acknowledgements from making
# connection tracking to treat them as not belonging to
# the connection they belong to.
# Otherwise, a weird issue happens in which some long
# connections on high-throughput links get dropped when
# an ack packet comes out of order
write /proc/sys/net/netfilter/nf_conntrack_tcp_be_liberal 1
# import cne init file
# on post-fs
# export LD_PRELOAD /system/lib/libNimsWrap.so
# msm specific files that need to be created on /data
on post-fs-data
# we will remap this as /mnt/sdcard with the sdcard fuse tool
mkdir /data/media 0770 media_rw media_rw
chown media_rw media_rw /data/media
mkdir /data/misc/bluetooth 0770 bluetooth bluetooth
# Create the directories used by the Wireless subsystem
mkdir /data/misc/wifi 0770 wifi system
mkdir /data/misc/wifi/sockets 0770 wifi wifi
mkdir /data/misc/wifi/wpa_supplicant 0770 wifi wifi
mkdir /data/misc/dhcp 0775 dhcp dhcp
chown dhcp dhcp /data/misc/dhcp
# Create the directories used by CnE subsystem
mkdir /data/connectivity 0771 system system
chown system system /data/connectivity
mkdir /data/connectivity/nsrm 0771 system system
chown system system /data/connectivity/nsrm
# for WIFI TRP/TIS
chown system root /data/.psm.info
chmod 0664 /data/.psm.info
# for WIFI Antena Selection
chown system root /data/.ant.info
chmod 0664 /data/.ant.info
# for WIFI Version
write /data/.wifiver.info 0
chown system root /data/.wifiver.info
chmod 0666 /data/.wifiver.info
# for WIFI Cert
chmod 0664 /data/.bustxglom.info
chmod 0664 /data/.roamoff.info
chmod 0664 /data/.frameburst.info
chmod 0664 /data/.txbf.info
# for WIFI MAC address
mkdir /efs/wifi 0775 radio system
chown system wifi /efs/wifi/.mac.info
chmod 0664 /efs/wifi/.mac.info
# Create directory used by audio subsystem
mkdir /data/misc/audio 0770 audio audio
# Mounting of persist is moved to 'on emmc-fs' and 'on fs' sections
# We chown/chmod /persist again so because mount is run as root + defaults
chown system system /persist
chmod 0771 /persist
chmod 0664 /sys/devices/platform/msm_sdcc.1/polling
chmod 0664 /sys/devices/platform/msm_sdcc.2/polling
chmod 0664 /sys/devices/platform/msm_sdcc.3/polling
chmod 0664 /sys/devices/platform/msm_sdcc.4/polling
# Chown polling nodes as needed from UI running on system server
chown system system /sys/devices/platform/msm_sdcc.1/polling
chown system system /sys/devices/platform/msm_sdcc.2/polling
chown system system /sys/devices/platform/msm_sdcc.3/polling
chown system system /sys/devices/platform/msm_sdcc.4/polling
#Create the symlink to qcn wpa_supplicant folder for ar6000 wpa_supplicant
mkdir /data/system 0775 system system
#symlink /data/misc/wifi/wpa_supplicant /data/system/wpa_supplicant
#Create directories for gpsone_daemon services
mkdir /data/misc/gpsone_d 0770 system gps
#Create directories for QuIPS
mkdir /data/misc/quipc 0770 gps system
#Create directories for Location services
mkdir /data/misc/location 0770 gps gps
mkdir /data/misc/location/mq 0770 gps gps
mkdir /data/misc/location/xtwifi 0770 gps gps
#Create directory from IMS services
mkdir /data/shared 0755
chown system system /data/shared
#Create directory for FOTA
mkdir /data/fota 0771
chown system system /data/fota
#Create directory for hostapd
mkdir /data/hostapd 0770 system wifi
# Create /data/time folder for time-services
mkdir /data/time/ 0700 system system
mkdir /data/audio/ 0770 media audio
setprop vold.post_fs_data_done 1
# GPIO DVS
chown radio system /sys/class/secgpio_check/secgpio_check_all/secgpio_ctrl
# Export GPIO56 for fusion targets to enable/disable hub
# service usbhub_init /system/bin/usbhub_init
# class late_start
# user root
# disabled
# oneshot
on property:init.svc.surfaceflinger=stopped
stop ppd
stop hdmid
#on property:ro.board.platform=msm7630_fusion
# start usbhub_init
on property:init.svc.wpa_supplicant=stopped
stop dhcpcd
on property:bluetooth.isEnabled=true
start btwlancoex
write /sys/class/bluetooth/hci0/idle_timeout 7000
on property:bluetooth.sap.status=running
start bt-sap
on property:bluetooth.sap.status=stopped
stop bt-sap
on property:bluetooth.dun.status=running
start bt-dun
on property:bluetooth.dun.status=stopped
stop bt-dun
service qcom-c_core-sh /system/bin/sh /init.qcom.class_core.sh
class core
user root
oneshot
service qcom-ril-sh /system/bin/sh /init.ril.sh
class main
user root
disabled
oneshot
on property:vold.decrypt=trigger_restart_framework
start qcom-ril-sh
start config_bluetooth
service cnd /system/bin/cnd
class late_start
socket cnd stream 660 root inet
service irsc_util /system/bin/logwrapper /system/bin/irsc_util "/etc/sec_config"
class main
user root
oneshot
service rmt_storage /system/bin/rmt_storage
class core
user root
disabled
on property:ro.boot.emmc=true
start rmt_storage
service config_bluetooth /system/bin/sh /system/etc/init.qcom.bt.sh "onboot"
class core
user root
oneshot
service hciattach /system/bin/sh /system/etc/init.qcom.bt.sh
class late_start
user bluetooth
group qcom_oncrpc bluetooth net_bt_admin
disabled
oneshot
on property:bluetooth.hciattach=true
start hciattach
on property:bluetooth.hciattach=false
setprop bluetooth.status off
service hciattach_ath3k /system/bin/sh /system/etc/init.ath3k.bt.sh
class late_start
user bluetooth
group system bluetooth net_bt_admin misc
disabled
oneshot
service bt-dun /system/bin/sh /system/etc/init.qcom.btdun.sh
class late_start
user bluetooth
group bluetooth net_bt_admin inet
disabled
oneshot
service bt-sap /system/bin/sapd 15
user bluetooth
group bluetooth net_bt_admin
class late_start
disabled
oneshot
service bridgemgrd /system/bin/bridgemgrd
class late_start
user radio
group radio qcom_diag
disabled
service port-bridge /system/bin/port-bridge /dev/smd0 /dev/ttyGS0
class late_start
user system
group system inet
disabled
service qmiproxy /system/bin/qmiproxy
class main
user radio
group radio qcom_diag
disabled
# QMUX must be in multiple groups to support external process connections
service qmuxd /system/bin/qmuxd
class main
user radio
group radio audio bluetooth gps qcom_diag
disabled
service netmgrd /system/bin/netmgrd
class main
disabled
service sensors /system/bin/sensors.qcom
class late_start
user root
group root
disabled
on property:ro.use_data_netmgrd=false
# netmgr not supported on specific target
stop netmgrd