diff options
author | Giulio Cervera <giulio.cervera@cyanogenmod.org> | 2014-04-26 16:01:41 +0200 |
---|---|---|
committer | Giulio Cervera <giulio.cervera@cyanogenmod.org> | 2014-04-27 02:10:43 +0200 |
commit | 604472bce94efef6fdeae8cc795507007c4325b3 (patch) | |
tree | 943d9b6467758b3ee51cd3a5a710e50d61aab0eb /rootdir |
Initial Shinano import
based on rhine-common 7e2a33e
Diffstat (limited to 'rootdir')
-rw-r--r-- | rootdir/charger | bin | 0 -> 263944 bytes | |||
-rw-r--r-- | rootdir/fstab.qcom | 16 | ||||
-rw-r--r-- | rootdir/init.qcom.rc | 795 | ||||
-rw-r--r-- | rootdir/init.recovery.qcom.rc | 13 | ||||
-rw-r--r-- | rootdir/sbin/tad_static | bin | 0 -> 79256 bytes | |||
-rw-r--r-- | rootdir/sbin/wait4tad_static | bin | 0 -> 66968 bytes | |||
-rw-r--r-- | rootdir/system/etc/firmware/wlan/prima/WCNSS_cfg.dat | bin | 0 -> 10746 bytes | |||
-rw-r--r-- | rootdir/system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini | 371 | ||||
-rw-r--r-- | rootdir/system/etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin | bin | 0 -> 29816 bytes | |||
-rw-r--r-- | rootdir/system/etc/gps.conf | 75 | ||||
-rw-r--r-- | rootdir/system/etc/init.qcom.bt.sh | 83 | ||||
-rw-r--r-- | rootdir/system/etc/init.qcom.fm.sh | 106 | ||||
-rw-r--r-- | rootdir/system/etc/init.qcom.wifi.sh | 16 | ||||
-rw-r--r-- | rootdir/system/etc/nfcee_access.xml | 14 | ||||
-rw-r--r-- | rootdir/system/etc/nfcee_access_debug.xml | 17 | ||||
-rw-r--r-- | rootdir/system/etc/wifi/p2p_supplicant_overlay.conf | 1 | ||||
-rw-r--r-- | rootdir/system/etc/wifi/wpa_supplicant_overlay.conf | 1 | ||||
-rw-r--r-- | rootdir/system/lib/egl/egl.cfg | 2 | ||||
-rw-r--r-- | rootdir/ueventd.qcom.rc | 158 |
19 files changed, 1668 insertions, 0 deletions
diff --git a/rootdir/charger b/rootdir/charger Binary files differnew file mode 100644 index 0000000..fdcd72d --- /dev/null +++ b/rootdir/charger diff --git a/rootdir/fstab.qcom b/rootdir/fstab.qcom new file mode 100644 index 0000000..1cafb88 --- /dev/null +++ b/rootdir/fstab.qcom @@ -0,0 +1,16 @@ +# Android fstab file. +#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags> +# 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 + +/dev/block/platform/msm_sdcc.1/by-name/boot /boot emmc defaults recoveryonly +/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,barrier=1 wait +/dev/block/platform/msm_sdcc.1/by-name/cache /cache ext4 noatime,nosuid,nodev,barrier=1,data=ordered,nomblk_io_submit,noauto_da_alloc,errors=panic wait,check +/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 noatime,nosuid,nodev,barrier=1,data=ordered,nomblk_io_submit,noauto_da_alloc,errors=panic wait,check,encryptable=footer,length=-16384 +/dev/block/platform/msm_sdcc.1/by-name/apps_log /mnt/idd ext4 noatime,nosuid,nodev,noexec,barrier=0,discard wait + +/dev/block/platform/msm_sdcc.1/by-name/modemst1 /boot/modem_fs1 emmc n/a n/a +/dev/block/platform/msm_sdcc.1/by-name/modemst2 /boot/modem_fs2 emmc n/a n/a + +/devices/msm_sdcc.2/mmc_host auto auto defaults voldmanaged=sdcard1:auto +/devices/platform/xhci-hcd audo auto defaults voldmanaged=usbdisk:auto diff --git a/rootdir/init.qcom.rc b/rootdir/init.qcom.rc new file mode 100644 index 0000000..8150c51 --- /dev/null +++ b/rootdir/init.qcom.rc @@ -0,0 +1,795 @@ +# +# Copyright 2012 The Android Open Source Project +# Copyright (C) 2013 The CyanogenMod Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +import init.device.rc +import init.sony.usb.rc + +on early-init + mount debugfs debugfs /sys/kernel/debug + chown system system /sys/kernel/debug/kgsl/proc + +on init + mkdir /mnt/shell/emulated 0700 shell shell + mkdir /storage/emulated 0555 root root + mkdir /mnt/media_rw/sdcard1 0700 media_rw media_rw + mkdir /mnt/media_rw/usbdisk 0700 media_rw media_rw + mkdir /storage/sdcard1 0775 system system + mkdir /storage/usbdisk 0775 system system + + export EXTERNAL_STORAGE /storage/emulated/legacy + export SECONDARY_STORAGE /storage/sdcard1 + export EMULATED_STORAGE_SOURCE /mnt/shell/emulated + export EMULATED_STORAGE_TARGET /storage/emulated + + # for backwards compatibility + 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 + symlink /storage/sdcard1 /ext_card + symlink /storage/sdcard1 /mnt/ext_card + symlink /storage/usbdisk /usbdisk + symlink /storage/usbdisk /mnt/usbdisk + + mkdir /tmp + mount tmpfs tmpfs /tmp nosuid mode=0755,uid=0,gid=0 + chmod 0664 /proc/rdtag + chown root system /proc/rdtag + + mkdir /dev/bus 0755 root root + mkdir /dev/bus/usb 0755 root root + + # create directory for scd + mkdir /dev/socket/scd 0755 system system + + # Enable ramdumps from subsystems to dump + # Should be initialized during init + write /sys/bus/msm_subsys/devices/subsys0/restart_level "RELATED" + write /sys/bus/msm_subsys/devices/subsys1/restart_level "RELATED" + write /sys/bus/msm_subsys/devices/subsys2/restart_level "RELATED" + write /sys/bus/msm_subsys/devices/subsys3/restart_level "RELATED" + + # Enable panic on out of memory + write /proc/sys/vm/panic_on_oom 2 + + # Create a tmpfs for dynamic network mounting + mkdir /storage/removable/remote 0700 root system + mount tmpfs tmpfs /storage/removable/remote mode=0755,uid=0,gid=0 + + # Set the property to indicate type of virtual display to 0 + # 0 indicates that virtual display is not a Wifi display and that the + # session is not exercised through RemoteDisplay in the android framework + setprop persist.sys.wfd.virtual 0 + +on fs + mkdir /mnt/idd 0751 sony_idd sony_idd + + mount_all ./fstab.qcom + setprop ro.crypto.fuse_sdcard true + + chown sony_idd sony_idd /mnt/idd + chmod 0751 /mnt/idd + + mkdir /lta-label 0555 system system + wait /dev/block/platform/msm_sdcc.1/by-name/LTALabel + mount ext4 /dev/block/platform/msm_sdcc.1/by-name/LTALabel /lta-label nosuid nodev noatime noexec ro barrier=0 + chown system system /lta-label + chmod 0555 /lta-label + + chmod 0755 /data/etc + start tad + exec /sbin/wait4tad_static + exec /system/bin/taimport + + restorecon -R /data/etc + +on early-boot + # set RLIMIT_MEMLOCK to 64MB + setrlimit 8 67108864 67108864 + + write /sys/kernel/boot_adsp/boot 1 + + start ta_qmi_service + start sct_service + + # Run pre_hw_config.sh before entering charge only mode. + exec /system/bin/sh /system/etc/pre_hw_config.sh + + exec /system/bin/sh /system/etc/init.qcom.wifi.sh + +on boot + write /sys/module/qpnp_power_on/parameters/forcecrash_on 1 + exec /system/bin/btnvtool -O + 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 bluetooth bluetooth /sys/module/hci_uart/parameters/ath_lpm + chown bluetooth bluetooth /sys/module/hci_uart/parameters/ath_btwrite + 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 bluetooth /dev/ttyHS0 + chmod 0660 /sys/module/hci_uart/parameters/ath_lpm + chmod 0660 /sys/module/hci_uart/parameters/ath_btwrite + 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 + + # 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 net_bt_stack + chmod 2770 /dev/socket/qmux_bluetooth + mkdir /dev/socket/qmux_gps 0770 gps gps + chmod 2770 /dev/socket/qmux_gps + + setprop ro.telephony.call_ring.multiple false + + # Remove SUID bit for iproute2 ip tool + chmod 0755 /system/bin/ip + + # port-bridge + chmod 0660 /dev/smd0 + chown system system /dev/smd0 + + # BT DUN port-bridge + chmod 0660 /dev/smd7 + chown bluetooth bluetooth /dev/smd7 + + chmod 0444 /sys/devices/platform/msm_hsusb/gadget/usb_state + + # Remove write permissions to video related nodes + chown system graphics /sys/class/graphics/fb1/hpd + chown system system /sys/class/graphics/fb1/hdcp/tp + chown system graphics /sys/class/graphics/fb1/vendor_name + chown system graphics /sys/class/graphics/fb1/product_description + chmod 0664 /sys/class/graphics/fb1/hpd + chmod 0664 /sys/class/graphics/fb1/hdcp/tp + chmod 0664 /sys/class/graphics/fb1/vendor_name + chmod 0664 /sys/class/graphics/fb1/product_description + chmod 0664 /sys/class/graphics/fb1/video_mode + chmod 0664 /sys/class/graphics/fb1/format_3d + + # create symlink for fb1 as HDMI + symlink /dev/graphics/fb1 /dev/graphics/hdmi + + # Change owner and group to get adopter/device ids from MHL driver + chown system system /sys/class/mhl/sii8334/adopter_id + chown system system /sys/class/mhl/sii8334/device_id + + # 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 + + chmod 660 /dev/rtc0 + chown system system /dev/rtc0 + + chown root system /proc/net/ip_conntrack + + # Enable DEBUG_SUSPEND, DEBUG_EXIT_SUSPEND, and DEBUG_WAKEUP + write /sys/module/wakelock/parameters/debug_mask 7 + + #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 + 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 + + # NFC local data and nfcee xml storage + mkdir /data/nfc 0770 nfc nfc + mkdir /data/nfc/param 0770 nfc nfc + + # Set the console loglevel to < KERN_INFO + # Set the default message loglevel to KERN_INFO + write /proc/sys/kernel/printk "6 6 1 7" + +# QCOM Sensors + insmod /system/lib/modules/adsprpc.ko + mkdir /data/system 0775 system system + mkdir /data/system/sensors 0775 system system + mkdir /data/misc/sensors 0775 system system + write /data/system/sensors/settings 1 + chmod 664 /data/system/sensors/settings + chown system /data/system/sensors/settings + start sensors + + chown system /sys/devices/virtual/timed_output/vibrator/vtg_level + +on post-fs + exec /system/bin/chargemon + write /sys/class/power_supply/battery/enable_stop_charging_at_low_battery 1 + + # Change to socket location on libkeyctrl/suntory for /data encryption + mkdir /dev/socket/suntory 0755 system system + +# msm specific files that need to be created on /data +on post-fs-data + mkdir /data/media 0770 media_rw media_rw + + # Create the directories used by the Wireless subsystem + mkdir /data/misc/wifi 0770 wifi wifi + mkdir /data/misc/wifi/sockets 0770 wifi wifi + mkdir /data/misc/wifi/wpa_supplicant 0770 wifi wifi + mkdir /data/misc/dhcp 0770 dhcp dhcp + # to observe dnsmasq.leases file for dhcp information of soft ap. + chown dhcp dhcp /data/misc/dhcp + + # Update WIFI MAC address + mkdir /data/misc/wifi/prima 0775 wifi wifi + exec /system/bin/mac-update + + mkdir /data/credmgr 0700 system system + mkdir /data/tombstones 0755 system system + mkdir /data/tombstones/vendor 0755 system system + mkdir /data/pc 0700 radio radio + mkdir /data/persist 0770 system system + + # Create directory used by audio subsystem + mkdir /data/misc/audio 0770 audio audio + + # IR Blaster + chown system system /dev/ttyHSL2 + chmod 0660 /dev/ttyHSL2 + chown system system /sys/devices/platform/ir_remote_control/enable + chmod 0220 /sys/devices/platform/ir_remote_control/enable + + 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 + + chown system system /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/pwrscale/policy + + # 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 + + # Provide the access to hostapd.conf only to root and group + chmod 0660 /data/hostapd/hostapd.conf + + mkdir /data/audio 0770 media audio + + # Create /data/time folder for time-services + mkdir /data/time 0700 system system + + # Enable Power save functionality for modem + setprop persist.radio.add_power_save 1 + + chown system /dev/block/platform/msm_sdcc.1/by-name + + setprop vold.post_fs_data_done 1 + + rm /data/local/tmp/adreno_config.txt + + # communicate with mpdecision and thermald + mkdir /dev/socket/mpdecision 0770 system system + chmod 2770 /dev/socket/mpdecision + + # Enable Power modes and set the CPU Freq Sampling rates + write /sys/module/lpm_resources/enable_low_power/l2 1 + write /sys/module/lpm_resources/enable_low_power/pxo 1 + write /sys/module/lpm_resources/enable_low_power/vdd_dig 1 + write /sys/module/lpm_resources/enable_low_power/vdd_mem 1 + write /sys/module/msm_pm/modes/cpu0/retention/idle_enabled 1 + write /sys/module/msm_pm/modes/cpu1/retention/idle_enabled 1 + write /sys/module/msm_pm/modes/cpu2/retention/idle_enabled 1 + write /sys/module/msm_pm/modes/cpu3/retention/idle_enabled 1 + write /sys/module/msm_pm/modes/cpu0/power_collapse/suspend_enabled 1 + write /sys/module/msm_pm/modes/cpu1/power_collapse/suspend_enabled 1 + write /sys/module/msm_pm/modes/cpu2/power_collapse/suspend_enabled 1 + write /sys/module/msm_pm/modes/cpu3/power_collapse/suspend_enabled 1 + write /sys/module/msm_pm/modes/cpu0/power_collapse/idle_enabled 1 + write /sys/module/msm_pm/modes/cpu1/power_collapse/idle_enabled 1 + write /sys/module/msm_pm/modes/cpu2/power_collapse/idle_enabled 1 + write /sys/module/msm_pm/modes/cpu3/power_collapse/idle_enabled 1 + write /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/suspend_enabled 1 + write /sys/module/msm_pm/modes/cpu1/standalone_power_collapse/suspend_enabled 1 + write /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/suspend_enabled 1 + write /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/suspend_enabled 1 + write /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/idle_enabled 1 + write /sys/module/msm_pm/modes/cpu1/standalone_power_collapse/idle_enabled 1 + write /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/idle_enabled 1 + write /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/idle_enabled 1 + write /sys/module/msm_thermal/core_control/enabled 0 + write /sys/devices/system/cpu/cpu1/online 1 + write /sys/devices/system/cpu/cpu2/online 1 + write /sys/devices/system/cpu/cpu3/online 1 + + # ondemand + #write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "ondemand" + #write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor "ondemand" + #write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor "ondemand" + #write /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor "ondemand" + #write /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate 50000 + #write /sys/devices/system/cpu/cpufreq/ondemand/up_threshold 90 + #write /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy 1 + #write /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor 4 + #write /sys/devices/system/cpu/cpufreq/ondemand/down_differential 10 + #write /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_multi_core 70 + #write /sys/devices/system/cpu/cpufreq/ondemand/down_differential_multi_core 3 + #write /sys/devices/system/cpu/cpufreq/ondemand/optimal_freq 918000 + #write /sys/devices/system/cpu/cpufreq/ondemand/sync_freq 1026000 + #write /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_any_cpu_load 80 + #chown system /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate + #chown system /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor + #chown system /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy + + # interactive + write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "interactive" + write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor "interactive" + write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor "interactive" + write /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor "interactive" + write /sys/devices/system/cpu/cpufreq/interactive/io_is_busy 1 + write /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay "20000 1400000:40000 1700000:20000" + write /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load 90 + write /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq 1190400 + write /sys/devices/system/cpu/cpufreq/interactive/target_loads "85 1500000:90 1800000:70" + write /sys/devices/system/cpu/cpufreq/interactive/min_sample_time 40000 + write /sys/devices/system/cpu/cpufreq/interactive/sampling_down_factor 100000 + + write /sys/module/cpu_boost/parameters/boost_ms 20 + write /sys/module/cpu_boost/parameters/sync_threshold 1728000 + write /sys/module/cpu_boost/parameters/input_boost_freq 1497600 + write /sys/module/cpu_boost/parameters/input_boost_ms 40 + + write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 300000 + write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 300000 + write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq 300000 + write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq 300000 + chown system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq + chown system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq + write /sys/module/msm_thermal/core_control/enabled 1 + chown root system /sys/devices/system/cpu/mfreq + chmod 220 /sys/devices/system/cpu/mfreq + chown root system /sys/devices/system/cpu/cpu1/online + chown root system /sys/devices/system/cpu/cpu2/online + chown root system /sys/devices/system/cpu/cpu3/online + chmod 664 /sys/devices/system/cpu/cpu1/online + chmod 664 /sys/devices/system/cpu/cpu2/online + chmod 664 /sys/devices/system/cpu/cpu3/online + write /dev/cpuctl/apps/cpu.notify_on_migrate 1 + # set DCVS parameters for CPU + write /sys/module/msm_dcvs/cores/cpu0/slack_time_max_us 40000 + write /sys/module/msm_dcvs/cores/cpu0/slack_time_min_us 40000 + write /sys/module/msm_dcvs/cores/cpu0/em_win_size_min_us 100000 + write /sys/module/msm_dcvs/cores/cpu0/em_win_size_max_us 500000 + write /sys/module/msm_dcvs/cores/cpu0/slack_mode_dynamic 0 + write /sys/module/msm_dcvs/cores/cpu0/disable_pc_threshold 1000000 + write /sys/module/msm_dcvs/cores/cpu1/slack_time_max_us 25000 + write /sys/module/msm_dcvs/cores/cpu1/slack_time_min_us 25000 + write /sys/module/msm_dcvs/cores/cpu1/em_win_size_min_us 100000 + write /sys/module/msm_dcvs/cores/cpu1/em_win_size_max_us 500000 + write /sys/module/msm_dcvs/cores/cpu1/slack_mode_dynamic 0 + write /sys/module/msm_dcvs/cores/cpu1/disable_pc_threshold 1000000 + write /sys/module/msm_dcvs/cores/cpu2/slack_time_max_us 25000 + write /sys/module/msm_dcvs/cores/cpu2/slack_time_min_us 25000 + write /sys/module/msm_dcvs/cores/cpu2/em_win_size_min_us 100000 + write /sys/module/msm_dcvs/cores/cpu2/em_win_size_max_us 500000 + write /sys/module/msm_dcvs/cores/cpu2/slack_mode_dynamic 0 + write /sys/module/msm_dcvs/cores/cpu2/disable_pc_threshold 1000000 + write /sys/module/msm_dcvs/cores/cpu3/slack_time_max_us 25000 + write /sys/module/msm_dcvs/cores/cpu3/slack_time_min_us 25000 + write /sys/module/msm_dcvs/cores/cpu3/em_win_size_min_us 100000 + write /sys/module/msm_dcvs/cores/cpu3/em_win_size_max_us 500000 + write /sys/module/msm_dcvs/cores/cpu3/slack_mode_dynamic 0 + write /sys/module/msm_dcvs/cores/cpu3/disable_pc_threshold 1000000 + # set DCVS parameters for GPU + write /sys/module/msm_dcvs/cores/gpu0/slack_time_max_us 20000 + write /sys/module/msm_dcvs/cores/gpu0/slack_time_min_us 20000 + write /sys/module/msm_dcvs/cores/gpu0/slack_mode_dynamic 0 + # set msm_mpdecision parameters + write /sys/module/msm_mpdecision/slack_time_max_us 45000 + write /sys/module/msm_mpdecision/slack_time_min_us 15000 + write /sys/module/msm_mpdecision/em_win_size_min_us 100000 + write /sys/module/msm_mpdecision/em_win_size_max_us 1000000 + write /sys/module/msm_mpdecision/online_util_pct_min 3 + write /sys/module/msm_mpdecision/online_util_pct_max 25 + write /sys/module/msm_mpdecision/em_max_util_pct 97 + write /sys/module/msm_mpdecision/rq_avg_poll_ms 2 + write /sys/module/msm_mpdecision/mp_em_rounding_point_min 10 + write /sys/module/msm_mpdecision/mp_em_rounding_point_max 85 + write /sys/module/msm_mpdecision/iowait_threshold_pct 50 + # set permissions for the nodes needed by display on/off hook + chown system /sys/module/msm_dcvs/cores/cpu0/slack_time_max_us + chown system /sys/module/msm_dcvs/cores/cpu0/slack_time_min_us + chown system /sys/module/msm_mpdecision/slack_time_max_us + chown system /sys/module/msm_mpdecision/slack_time_min_us + chmod 664 /sys/module/msm_dcvs/cores/cpu0/slack_time_max_us + chmod 664 /sys/module/msm_dcvs/cores/cpu0/slack_time_min_us + chmod 664 /sys/module/msm_mpdecision/slack_time_max_us + chmod 664 /sys/module/msm_mpdecision/slack_time_min_us + + # SONY: Camera + mkdir /data/camera 0770 media camera + chown media camera /sys/devices/sony_camera_0/info + chmod 0770 /sys/devices/sony_camera_0/info + chown media camera /sys/devices/sony_camera_1/info + chmod 0770 /sys/devices/sony_camera_1/info + +on charger + # Enable Power modes and set the CPU Freq Sampling rates + write /sys/module/lpm_resources/enable_low_power/l2 1 + write /sys/module/lpm_resources/enable_low_power/pxo 1 + write /sys/module/lpm_resources/enable_low_power/vdd_dig 1 + write /sys/module/lpm_resources/enable_low_power/vdd_mem 1 + write /sys/module/msm_pm/modes/cpu0/retention/idle_enabled 1 + write /sys/module/msm_pm/modes/cpu0/power_collapse/suspend_enabled 1 + write /sys/module/msm_pm/modes/cpu1/power_collapse/suspend_enabled 1 + write /sys/module/msm_pm/modes/cpu2/power_collapse/suspend_enabled 1 + write /sys/module/msm_pm/modes/cpu3/power_collapse/suspend_enabled 1 + write /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/suspend_enabled 1 + write /sys/module/msm_pm/modes/cpu1/standalone_power_collapse/suspend_enabled 1 + write /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/suspend_enabled 1 + write /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/suspend_enabled 1 + write /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/idle_enabled 1 + write /sys/module/msm_pm/modes/cpu1/standalone_power_collapse/idle_enabled 1 + write /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/idle_enabled 1 + write /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/idle_enabled 1 + write /sys/module/msm_pm/modes/cpu0/power_collapse/idle_enabled 1 + write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "powersave" + write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor "powersave" + write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor "powersave" + write /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor "powersave" + write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 300000 + write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 300000 + write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq 300000 + write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq 300000 + write /sys/devices/system/cpu/cpu1/online 0 + write /sys/devices/system/cpu/cpu2/online 0 + write /sys/devices/system/cpu/cpu3/online 0 + +on property:init.svc.wpa_supplicant=stopped + stop dhcpcd + +# Update WIFI MAC address +service mac-update /system/bin/mac-update + class main + user wifi + oneshot + +service hciattach /system/bin/sh /system/etc/init.qcom.bt.sh + class late_start + user bluetooth + group qcom_oncrpc bluetooth net_bt_admin system net_bt_stack + disabled + oneshot + +on property:bluetooth.hciattach=true + start hciattach + +on property:bluetooth.hciattach=false + setprop bluetooth.status off + +# 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 net_bt_stack + +# SONY: TrimArea Daemon +# Last 2 args: start block(blk size 128k), number of blocks(partitionsize(kb)/128(kb)) +service tad /sbin/tad_static /dev/block/mmcblk0 1,16 + class core + user root + group root + socket tad stream 0660 system system + disabled + +service updatemiscta /system/bin/updatemiscta + class main + user root + oneshot + +service netmgrd /system/bin/netmgrd + class main + +# start GNS/Sensor interface daemon +service gsiff_daemon /system/bin/gsiff_daemon + class late_start + user gps + group gps net_raw misc + +service qrngd /system/bin/qrngd -f + class main + user root + group root + +service qrngp /system/bin/qrngp + class main + user root + group root + oneshot + disabled + +on property:sys.boot_completed=1 + start qrngp + write /sys/block/mmcblk0/bdi/read_ahead_kb 512 + +service qseecomd /system/bin/qseecomd + class core + user root + group root + +service hw_config /system/bin/sh /system/etc/hw_config.sh + class main + user root + oneshot + +service wpa_supplicant /system/bin/wpa_supplicant \ + -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \ + -I/system/etc/wifi/wpa_supplicant_overlay.conf \ + -O/data/misc/wifi/sockets \ + -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0 + # we will start as root and wpa_supplicant will switch to user wifi + # after setting up the capabilities required for WEXT + # user wifi + # group wifi inet keystore + class main + socket wpa_wlan0 dgram 660 wifi wifi + disabled + oneshot + +service p2p_supplicant /system/bin/wpa_supplicant \ + -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \ + -I/system/etc/wifi/p2p_supplicant_overlay.conf -N \ + -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \ + -I/system/etc/wifi/wpa_supplicant_overlay.conf \ + -O/data/misc/wifi/sockets -puse_p2p_group_interface=1 \ + -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0 +# we will start as root and wpa_supplicant will switch to user wifi +# after setting up the capabilities required for WEXT +# user wifi +# group wifi inet keystore + class main + socket wpa_wlan0 dgram 660 wifi wifi + disabled + oneshot + +service dhcpcd_wlan0 /system/bin/dhcpcd -aABDKL + class main + disabled + oneshot + +service dhcpcd_p2p /system/bin/dhcpcd -aABKL + class main + disabled + oneshot + +service iprenew_wlan0 /system/bin/dhcpcd -n + class main + disabled + oneshot + +service iprenew_p2p /system/bin/dhcpcd -n + class main + disabled + oneshot + +service dhcpcd_bt-pan /system/bin/dhcpcd -BKLG + disabled + oneshot + +service iprenew_bt-pan /system/bin/dhcpcd -n + disabled + oneshot + +on property:ro.data.large_tcp_window_size=true + # Adjust socket buffer to enlarge TCP receive window for high bandwidth (e.g. DO-RevB) + write /proc/sys/net/ipv4/tcp_adv_win_scale 2 + +# virtual sdcard daemon running as media_rw (1023) +service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emulated + class late_start + +service fuse_sdcard1 /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/sdcard1 /storage/sdcard1 + class late_start + disabled + +service fuse_usbdisk /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/usbdisk /storage/usbdisk + class late_start + disabled + +service mpdecision /system/bin/mpdecision --avg_comp + class main + user root + +# Start suntrold +service suntrold /system/bin/suntrold + user system + group system + oneshot + class main + +# bugreport is triggered by holding down volume down, volume up and power +service bugreport /system/bin/dumpstate -d -p -B \ + -o /data/data/com.android.shell/files/bugreports/bugreport + class main + disabled + oneshot + keycodes 114 115 116 + +service fm_dl /system/bin/sh /system/etc/init.qcom.fm.sh + class late_start + user root + group system qcom_oncrpc + disabled + oneshot + +service illumination /system/bin/illumination_service + socket illumination stream 0660 system camera + class main + user root + +service scd /system/bin/scd + class main + user system + group system + +# Secure Config Transfer service +service sct_service /system/bin/sct_service + user root + disabled + +# Trim Area QMI service +service ta_qmi_service /system/bin/ta_qmi_service + user root + disabled + +# Start system_monitor +service system_monitor /system/bin/system_monitor + socket sysmon stream 0660 root system + class core + user root + +service rmt_storage /system/bin/rmt_storage + class core + user root + +service irsc_util /system/bin/irsc_util "/etc/sec_config" + class main + user root + oneshot + +service ppd /system/bin/mm-pp-daemon + class late_start + user system + socket pps stream 0660 system system + group system graphics qcom_diag + disabled + +service qcamerasvr /system/bin/mm-qcamera-daemon + class late_start + user camera + group camera system inet input + +service sensors /system/bin/sensors.qcom + class main + user root + group root + disabled + +service wcnss-service /system/bin/wcnss_service + class late_start + user system + group system wifi + disabled + oneshot + +service time_daemon /system/bin/time_daemon + class late_start + user root + group root radio qcom_diag + +service ptt_socket_app /system/bin/ptt_socket_app + class main + user system + group system + oneshot + +on property:init.svc.surfaceflinger=running + start ppd + +on property:init.svc.surfaceflinger=stopped + stop ppd + +# Powersave +on property:sys.perf.profile=0 + start mpdecision + write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor conservative + write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor conservative + write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor conservative + write /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor conservative + write /sys/class/kgsl/kgsl-3d0/pwrscale/trustzone/governor ondemand + +# Balanced +on property:sys.perf.profile=1 + start mpdecision + write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive + write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor interactive + write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor interactive + write /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor interactive + write /sys/class/kgsl/kgsl-3d0/pwrscale/trustzone/governor ondemand + +# High performance +on property:sys.perf.profile=2 + stop mpdecision + write /sys/devices/system/cpu/cpu0/online 1 + write /sys/devices/system/cpu/cpu1/online 1 + write /sys/devices/system/cpu/cpu2/online 1 + write /sys/devices/system/cpu/cpu3/online 1 + write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor performance + write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor performance + write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor performance + write /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor performance + write /sys/class/kgsl/kgsl-3d0/pwrscale/trustzone/governor performance diff --git a/rootdir/init.recovery.qcom.rc b/rootdir/init.recovery.qcom.rc new file mode 100644 index 0000000..e551aee --- /dev/null +++ b/rootdir/init.recovery.qcom.rc @@ -0,0 +1,13 @@ +on init + + write /sys/class/android_usb/android0/idVendor 0fce + write /sys/class/android_usb/android0/idProduct 6182 + +service remap /sbin/remap.sh + oneshot + disabled + +# Remap boot and FOTA for lk if lk is present +on property:ro.bootloader=lk + start remap + setprop lk.remap 1 diff --git a/rootdir/sbin/tad_static b/rootdir/sbin/tad_static Binary files differnew file mode 100644 index 0000000..b30eb27 --- /dev/null +++ b/rootdir/sbin/tad_static diff --git a/rootdir/sbin/wait4tad_static b/rootdir/sbin/wait4tad_static Binary files differnew file mode 100644 index 0000000..5dc859e --- /dev/null +++ b/rootdir/sbin/wait4tad_static diff --git a/rootdir/system/etc/firmware/wlan/prima/WCNSS_cfg.dat b/rootdir/system/etc/firmware/wlan/prima/WCNSS_cfg.dat Binary files differnew file mode 100644 index 0000000..5685e79 --- /dev/null +++ b/rootdir/system/etc/firmware/wlan/prima/WCNSS_cfg.dat diff --git a/rootdir/system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini b/rootdir/system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini new file mode 100644 index 0000000..9778686 --- /dev/null +++ b/rootdir/system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini @@ -0,0 +1,371 @@ +# This file allows user to override the factory + +# defaults for the WLAN Driver + + +# Enable IMPS or not +gEnableImps=1 + +# Enable/Disable Idle Scan + +gEnableIdleScan=0 + + +# Increase sleep duration (seconds) during IMPS +# 0 implies no periodic wake up from IMPS. Periodic wakeup is +# unnecessary if Idle Scan is disabled. +gImpsModSleepTime=0 + + +# Enable BMPS or not +gEnableBmps=1 + +# Enable suspend or not + +# 1: Enable standby, 2: Enable Deep sleep, 3: Enable Mcast/Bcast Filter + +gEnableSuspend=3 + + +# Phy Mode (auto, b, g, n, etc) +# Valid values are 0-9, with 0 = Auto, 4 = 11n, 9 = 11ac +gDot11Mode=0 + + +# CSR Roaming Enable(1) Disable(0) + +gRoamingTime=0 + + +# Assigned MAC Addresses - This will be used until NV items are in place + +# Each byte of MAC address is represented in Hex format as XX + +Intf0MacAddress=000AF58989FF +Intf1MacAddress=000AF58989FE +Intf2MacAddress=000AF58989FD + +Intf3MacAddress=000AF58989FC + + +# UAPSD service interval for VO,VI, BE, BK traffic + +InfraUapsdVoSrvIntv=0 + +InfraUapsdViSrvIntv=0 + +InfraUapsdBeSrvIntv=0 + +InfraUapsdBkSrvIntv=0 + +# Flag to allow STA send AddTspec even when ACM is Off +gAddTSWhenACMIsOff=1 + +# Make 1x1 the default antenna configuration + +gNumRxAnt=1 + + +# Beacon filtering frequency (unit in beacon intervals) + +gNthBeaconFilter=50 + + +# Enable WAPI or not + +# WAPIIsEnabled=0 + + +# Flags to filter Mcast abd Bcast RX packets. + +# Value 0: No filtering, 1: Filter all Multicast. + +# 2: Filter all Broadcast. 3: Filter all Mcast abd Bcast + +McastBcastFilter=3 + + +#Flag to enable HostARPOffload feature or not + +hostArpOffload=1 + + +#SoftAP Related Parameters + +# AP MAc addr + +gAPMacAddr=000AF589dcab + + +# 802.11n Protection flag + +gEnableApProt=1 + + +#Enable OBSS protection + +gEnableApOBSSProt=1 + + +#Enable/Disable UAPSD for SoftAP + +gEnableApUapsd=0 + + +# Fixed Rate + +gFixedRate=0 + + +# Maximum Tx power + +# gTxPowerCap=30 + + +# Fragmentation Threshold + +# gFragmentationThreshold=2346 + + +# RTS threshold + +RTSThreshold=2347 + + +# Intra-BSS forward + +gDisableIntraBssFwd=0 + + +# WMM Enable/Disable + +WmmIsEnabled=0 + + +# 802.11d support + +g11dSupportEnabled=1 + +# CCX Support and fast transition +CcxEnabled=0 +FastTransitionEnabled=1 +ImplicitQosIsEnabled=0 +gNeighborScanTimerPeriod=200 + +gNeighborLookupThreshold=78 + +gNeighborScanChannelMinTime=20 +gNeighborScanChannelMaxTime=30 + +# Legacy (non-CCX, non-802.11r) Fast Roaming Support +# To enable, set FastRoamEnabled=1 +# To disable, set FastRoamEnabled=0 +FastRoamEnabled=1 + +#Check if the AP to which we are roaming is better than current AP in terms of RSSI. +#Checking is disabled if set to Zero.Otherwise it will use this value as to how better +#the RSSI of the new/roamable AP should be for roaming +RoamRssiDiff=5 + +# SAP Country code + +# Default Country Code is 2 bytes, 3rd byte is optional indoor or out door. + +# Example + +# US Indoor, USI + +# Korea Outdoor, KRO + +# Japan without optional byte, JP + +# France without optional byte, FR + +#gAPCntryCode=USI + + +#Short Guard Interval Enable/disable + +gShortGI20Mhz=1 + +gShortGI40Mhz=1 + + +#Auto Shutdown Value in seconds. A value of 0 means Auto shutoff is disabled + +gAPAutoShutOff=0 + + +# SAP auto channel selection configuration + +# 0 = disable auto channel selection + +# 1 = enable auto channel selection, channel provided by supplicant will be ignored + +gApAutoChannelSelection=0 + + +# Listen Energy Detect Mode Configuration + +# Valid values 0-128 + +# 128 means disable Energy Detect feature + +# 0-9 are threshold code and 7 is recommended value from system if feature is to be enabled. + +# 10-128 are reserved. + +# The EDET threshold mapping is as follows in 3dB step: + +# 0 = -60 dBm + +# 1 = -63 dBm + +# 2 = -66 dBm + +# ... + +# 7 = -81 dBm + +# 8 = -84 dBm + +# 9 = -87 dBm + +# Note: Any of these settings are valid. Setting 0 would yield the highest power saving (in a noisy environment) at the cost of more range. The range impact is approximately #calculated as: + +# + +# Range Loss (dB) = EDET threshold level (dBm) + 97 dBm. + +# + +gEnablePhyAgcListenMode=128 + + +#Preferred channel to start BT AMP AP mode (0 means, any channel) + +BtAmpPreferredChannel=0 + + +#Preferred band (both or 2.4 only or 5 only) + +BandCapability=0 + + +#Beacon Early Termination (1 = enable the BET feature, 0 = disable) + +enableBeaconEarlyTermination=1 + +beaconEarlyTerminationWakeInterval=11 + + +#Bluetooth Alternate Mac Phy (1 = enable the BT AMP feature, 0 = disable) + +gEnableBtAmp=0 + + +#SOFTAP Channel Range selection + +gAPChannelSelectStartChannel=1 + +gAPChannelSelectEndChannel=11 + + +#SOFTAP Channel Range selection Operating band + +# 0:2.4GHZ 1: LOW-5GHZ 2:MID-5GHZ 3:HIGH-5GHZ 4: 4.9HZ BAND + +gAPChannelSelectOperatingBand=0 + + +#Channel Bonding +gChannelBondingMode5GHz=1 + + +#Enable Keep alive with non-zero period value + +gStaKeepAlivePeriod=30 + + +#Say gGoKeepAlivePeriod(5 seconds) and gGoLinkMonitorPeriod(10 seconds). +#For every 10 seconds DUT sends Qos Null frame(i.e., Keep Alive frame if link is idle for last 10 seconds.) +#For both active and power save clients. + +#Power save clients: DUT set TIM bit from 10th second onwards and till client honors TIM bit. +#If doesn't honor for 5 seconds then Driver remove client. + +#Active clients: DUT send Qos Null frame for 10th seconds onwards if it is not success still DUT try on +#11th second if not tries on 12th and so on till 15th second. Hence before disconnection DUT will send 5 NULL frames. +#Hence in any case DUT will detect client got removed in (10+5) seconds. i.e., (gGoKeepAlivePeriod +gGoLinkMonitorPeriod).. + +#gGoLinkMonitorPeriod/ gApLinkMonitorPeriod is period where link is idle and it is period +#where we send NULL frame. + +#gApLinkMonitorPeriod = 10 + +#gGoLinkMonitorPeriod = 10 + +#gGoKeepAlivePeriod/gApKeepAlivePeriod is time to spend to check whether frame are succeed to send or not. +#Hence total effective detection time is gGoLinkMonitorPeriod+ gGoKeepAlivePeriod/gApLinkMonitorPeriod+ gApKeepAlivePeriod. +#gGoKeepAlivePeriod = 5 + +#gApKeepAlivePeriod = 5 +#If set will start with active scan after driver load, otherwise will start with + +#passive scan to find out the domain + +#gEnableBypass11d=1 + + +#If set to 0, will not scan DFS channels + +gEnableDFSChnlScan=1 + + +gVhtChannelWidth=2 +gEnableLogp=1 + + +# Enable Automatic Tx Power control + +gEnableAutomaticTxPowerControl=1 + +# 0 for OLPC 1 for CLPC and SCPC +gEnableCloseLoop=1 + +#Data Inactivity Timeout when in powersave (in ms) +gDataInactivityTimeout=200 + +# VHT Tx/Rx MCS values +# Valid values are 0,1,2. If commented out, the default value is 0. +# 0=MCS0-7, 1=MCS0-8, 2=MCS0-9 +gVhtRxMCS=2 +gVhtTxMCS=2 + +gEnableLpwrImgTransition=1 + +# Enable Tx beamforming +gTxBFEnable=1 + +# Enable Tx LDPC +#gTxLdpcEnable = 1 for HT mode, 2 for VHT mode,3 for both HT and VHT +gTxLdpcEnable=3 + +#FlexConnect Power Factor +#Default is set to 0 (disable) +gFlexConnectPowerFactor=0 + +# Valid values are 2048,4096,8192 and so on +# Please don't use values other than the ones mentioned above +gMaxMediumTime=4096 + +# 802.11K support +gRrmEnable=1 +gRrmOperChanMax=8 +gRrmNonOperChanMax=8 +gRrmRandIntvl=100 + +END + +# Note: Configuration parser would not read anything past the END marker + diff --git a/rootdir/system/etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin b/rootdir/system/etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin Binary files differnew file mode 100644 index 0000000..a8dd301 --- /dev/null +++ b/rootdir/system/etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin diff --git a/rootdir/system/etc/gps.conf b/rootdir/system/etc/gps.conf new file mode 100644 index 0000000..c07638e --- /dev/null +++ b/rootdir/system/etc/gps.conf @@ -0,0 +1,75 @@ +XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra2.bin +XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra2.bin +XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra2.bin + +# Error Estimate +# _SET = 1 +# _CLEAR = 0 +ERR_ESTIMATE=0 + +#Test +NTP_SERVER=time.gpsonextra.net +#Asia +# NTP_SERVER=asia.pool.ntp.org +#Europe +# NTP_SERVER=europe.pool.ntp.org +#North America +# NTP_SERVER=north-america.pool.ntp.org + +# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info +# 4 - Debug, 5 - Verbose +# If DEBUG_LEVEL is commented, Android's logging levels will be used +DEBUG_LEVEL = 3 + +# Intermediate position report, 1=enable, 0=disable +INTERMEDIATE_POS=0 + +# supl version 2.0 +SUPL_VER=0x20000 + +# GPS Capabilities bit mask +# SCHEDULING = 0x01 +# MSB = 0x02 +# MSA = 0x04 +# ON_DEMAND_TIME = 0x10 +# default = ON_DEMAND_TIME | MSA | MSB | SCHEDULING +CAPABILITIES=0x3 + +# Accuracy threshold for intermediate positions +# less accurate positions are ignored, 0 for passing all positions +# ACCURACY_THRES=5000 + +################################ +##### AGPS server settings ##### +################################ + +# FOR SUPL SUPPORT, set the following +SUPL_HOST=supl.google.com +SUPL_PORT=7275 + +# FOR C2K PDE SUPPORT, set the following +# C2K_HOST=c2k.pde.com or IP +# C2K_PORT=1234 + +#################################### +# LTE Positioning Profile Settings +#################################### +# 0: Enable RRLP on LTE(Default) +# 1: Enable LPP_User_Plane on LTE +# 2: Enable LPP_Control_Plane +# 3: Enable both LPP_User_Plane and LPP_Control_Plane +LPP_PROFILE = 0 + +################################ +# EXTRA SETTINGS +################################ +# NMEA provider (1=Modem Processor, 0=Application Processor) +NMEA_PROVIDER=1 + +################################################## +# Select Positioning Protocol on A-GLONASS system +################################################## +# 0x1: RRC CPlane +# 0x2: RRLP UPlane +# 0x4: LLP Uplane +A_GLONASS_POS_PROTOCOL_SELECT = 0 diff --git a/rootdir/system/etc/init.qcom.bt.sh b/rootdir/system/etc/init.qcom.bt.sh new file mode 100644 index 0000000..84820fb --- /dev/null +++ b/rootdir/system/etc/init.qcom.bt.sh @@ -0,0 +1,83 @@ +#!/system/bin/sh + +BLUETOOTH_SLEEP_PATH=/proc/bluetooth/sleep/proto +LOG_TAG="sony-bluetooth" +LOG_NAME="${0}:" + +loge () +{ + /system/bin/log -t $LOG_TAG -p e "$LOG_NAME $@" +} + +logi () +{ + /system/bin/log -t $LOG_TAG -p i "$LOG_NAME $@" +} + +failed () +{ + loge "$1: exit code $2" + exit $2 +} + +# Note that "hci_qcomm_init -e" prints expressions to set the shell variables +# BTS_DEVICE, BTS_TYPE, BTS_BAUD, and BTS_ADDRESS. + +# BR/EDR & LE power class configurations +POWER_CLASS=`getprop qcom.bt.dev_power_class` +LE_POWER_CLASS=`getprop qcom.bt.le_dev_pwr_class` + +#find the transport type +TRANSPORT=`getprop ro.qualcomm.bt.hci_transport` +logi "Transport : $TRANSPORT" + +#load bd addr +BDADDR=`/system/bin/cat /data/etc/bluetooth_bdaddr` + +setprop bluetooth.status off + +logi "BDADDR: $BDADDR" + +case $POWER_CLASS in + 1) PWR_CLASS="-p 0" ; + logi "Power Class: 1";; + 2) PWR_CLASS="-p 1" ; + logi "Power Class: 2";; + 3) PWR_CLASS="-p 2" ; + logi "Power Class: CUSTOM";; + *) PWR_CLASS=""; + logi "Power Class: Ignored. Default(1) used (1-CLASS1/2-CLASS2/3-CUSTOM)"; + logi "Power Class: To override, Before turning BT ON; setprop qcom.bt.dev_power_class <1 or 2 or 3>";; +esac + +case $LE_POWER_CLASS in + 1) LE_PWR_CLASS="-P 0" ; + logi "LE Power Class: 1";; + 2) LE_PWR_CLASS="-P 1" ; + logi "LE Power Class: 2";; + 3) LE_PWR_CLASS="-P 2" ; + logi "LE Power Class: CUSTOM";; + *) LE_PWR_CLASS="-P 1"; + logi "LE Power Class: Ignored. Default(2) used (1-CLASS1/2-CLASS2/3-CUSTOM)"; + logi "LE Power Class: To override, Before turning BT ON; setprop qcom.bt.le_dev_pwr_class <1 or 2 or 3>";; +esac + +if [ -z "$BDADDR" ] +then + logwrapper /system/bin/hci_qcomm_init -e $PWR_CLASS $LE_PWR_CLASS -vv +else + logwrapper /system/bin/hci_qcomm_init -b $BDADDR -e $PWR_CLASS $LE_PWR_CLASS -vv +fi + +case $? in + 0) logi "Bluetooth QSoC firmware download succeeded, $PWR_CLASS $BDADDR $TRANSPORT";; + *) failed "Bluetooth QSoC firmware download failed" $?; + setprop bluetooth.status off; + exit $?;; +esac + +setprop bluetooth.status on + +logi "start bluetooth smd transport" + +exit 0 diff --git a/rootdir/system/etc/init.qcom.fm.sh b/rootdir/system/etc/init.qcom.fm.sh new file mode 100644 index 0000000..adc7004 --- /dev/null +++ b/rootdir/system/etc/init.qcom.fm.sh @@ -0,0 +1,106 @@ +#!/system/bin/sh +# Copyright (c) 2009-2011, 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. +# + +setprop hw.fm.init 0 + +mode=`getprop hw.fm.mode` +version=`getprop hw.fm.version` +isAnalog=`getprop hw.fm.isAnalog` + +#find the transport type +TRANSPORT=`getprop ro.qualcomm.bt.hci_transport` + +LOG_TAG="qcom-fm" +LOG_NAME="${0}:" + +loge () +{ + /system/bin/log -t $LOG_TAG -p e "$LOG_NAME $@" +} + +logi () +{ + /system/bin/log -t $LOG_TAG -p i "$LOG_NAME $@" +} + +failed () +{ + loge "$1: exit code $2" + exit $2 +} + +logi "In FM shell Script" +logi "mode: $mode" +logi "isAnalog: $isAnalog" +logi "Transport : $TRANSPORT" +logi "Version : $version" + +#$fm_qsoc_patches <fm_chipVersion> <enable/disable WCM> +# +case $mode in + "normal") + case $TRANSPORT in + "smd") + logi "inserting the radio transport module" + insmod /system/lib/modules/radio-iris-transport.ko + ;; + *) + logi "default transport case " + ;; + esac + /system/bin/fm_qsoc_patches $version 0 + ;; + "wa_enable") + /system/bin/fm_qsoc_patches $version 1 + ;; + "wa_disable") + /system/bin/fm_qsoc_patches $version 2 + ;; + "config_dac") + /system/bin/fm_qsoc_patches $version 3 $isAnalog + ;; + *) + logi "Shell: Default case" + /system/bin/fm_qsoc_patches $version 0 + ;; +esac + +exit_code_fm_qsoc_patches=$? + +case $exit_code_fm_qsoc_patches in + 0) + logi "FM QSoC calibration and firmware download succeeded" + ;; + *) + failed "FM QSoC firmware download and/or calibration failed" $exit_code_fm_qsoc_patches + ;; +esac + +setprop hw.fm.init 1 + +exit 0 diff --git a/rootdir/system/etc/init.qcom.wifi.sh b/rootdir/system/etc/init.qcom.wifi.sh new file mode 100644 index 0000000..ea83027 --- /dev/null +++ b/rootdir/system/etc/init.qcom.wifi.sh @@ -0,0 +1,16 @@ +#!/system/bin/sh + +if [ -e /data/misc/wifi/WCNSS_qcom_wlan_cal.bin ]; then + calparm=`ls /sys/module/wcnsscore/parameters/has_calibrated_data` + if [ -e $calparm ] && [ ! -e /data/misc/wifi/WCN_FACTORY ]; then + echo 1 > $calparm + fi +fi + +# There is a device file. Write to the file +# so that the driver knows userspace is +# available for firmware download requests +echo 1 > /dev/wcnss_wlan +echo $serialno > /sys/devices/fb000000.qcom,wcnss-wlan/serial_number + +exit 0 diff --git a/rootdir/system/etc/nfcee_access.xml b/rootdir/system/etc/nfcee_access.xml new file mode 100644 index 0000000..cabad5f --- /dev/null +++ b/rootdir/system/etc/nfcee_access.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <!-- Applications granted NFCEE access on user builds + + See packages/apps/Nfc/etc/sample_nfcee_access.xml for full documentation. + --> + + <!-- Google wallet release signature --> + <signer android:signature="3082044c30820334a003020102020900a8cd17c93da5d990300d06092a864886f70d01010505003077310b3009060355040613025553311330110603550408130a43616c69666f726e6961311630140603550407130d4d6f756e7461696e205669657731143012060355040a130b476f6f676c6520496e632e3110300e060355040b1307416e64726f6964311330110603550403130a476f6f676c65204e4643301e170d3131303332343031303635335a170d3338303830393031303635335a3077310b3009060355040613025553311330110603550408130a43616c69666f726e6961311630140603550407130d4d6f756e7461696e205669657731143012060355040a130b476f6f676c6520496e632e3110300e060355040b1307416e64726f6964311330110603550403130a476f6f676c65204e464330820120300d06092a864886f70d01010105000382010d00308201080282010100c30f88add9b492096a2c586a5a9a80356bfa026958f8ff0c5dfaf59f49268ad870dee821a53e1f5b170fc96245a3c982a7cb4527053be35e34f396d24b2291ec0c528d6e26927465e06875ea621f7ff98c40e3345b204907cc9354743acdaace65565f48ba74cd4121cdc876df3522badb095c20d934c56a3e5c393ee5f0e02f8fe0621f918d1f35a82489252c6fa6b63392a7686b3e48612d06a9cf6f49bff11d5d96289c9dfe14ac5762439697dd29eafdb9810de3263513a905ac8e8eaf20907e46750a5ab7bf9a77262f47b03f5a3c6e6d7b51343f69c7f725f70bcc1b4ad592250b705a86e6e83ee2ae37fe5701bcbdb26feefdfff60f6a5bdfb5b64793020103a381dc3081d9301d0603551d0e041604141ccece0eea4dc1121fc7515f0d0a0c72e08cc96d3081a90603551d230481a130819e80141ccece0eea4dc1121fc7515f0d0a0c72e08cc96da17ba4793077310b3009060355040613025553311330110603550408130a43616c69666f726e6961311630140603550407130d4d6f756e7461696e205669657731143012060355040a130b476f6f676c6520496e632e3110300e060355040b1307416e64726f6964311330110603550403130a476f6f676c65204e4643820900a8cd17c93da5d990300c0603551d13040530030101ff300d06092a864886f70d01010505000382010100a470c728e1d31b06d9af6ae768b565046c57806b9843724931d75d4ca10c321520d33ccfed2aa65462234c9ef9b6f910cc676b99cb7f9895d6c06763574fbb78331275dc5cf38fbaa918d7938c051ffba2ade8f303cde8d9e68a048d1fdb9e7c9f2a49b222c68fff422bf15569b85eeeedb04aa30873dbe64b9c9e74f8f2c2f6c40124aaa8d1780d18512b540add28b3e9581971a4170dd868cf5f31e44712b2c23bb51037d7ef9f87a6e5bdb35e2ceb6bb022636c17a56a96bc7a50258c0bd2ed7b31555a18452e17321a0d52838c82f63f742d74ff79586a5cbb7faf7198a84bcf744310e9e927597f00a23dd00660800c2238d90b2fb372dfdbba75bd852e" /> + + <!-- SoMC platform signature --> + <signer android:signature="3082038e30820276a003020102020103300d06092a864886f70d01010505003065310b3009060355040613025345312f302d060355040a1326536f6e79204572696373736f6e204d6f62696c6520436f6d6d756e69636174696f6e73204142312530230603550403141c536f6e795f4572696373736f6e5f455f43415f546573745f64633730301e170d3030303130313130353830385a170d3335303130313130353830385a3073310b3009060355040613025345312f302d060355040a1326536f6e79204572696373736f6e204d6f62696c6520436f6d6d756e69636174696f6e73204142313330310603550403142a536f6e795f4572696373736f6e5f455f506c6174666f726d5f5369676e696e675f546573745f6463373030820122300d06092a864886f70d01010105000382010f003082010a0282010100c2380e6c1f5e1e45f35a95d16da7aeb6ff0514fe60bc970dbcca245885462259ae3b27a2d61d2f377f6888c87cac7406a0dd36d7ea40f009394fdc2cc42a03f2757531b544a34314ec6c43b6a676f45f96f24f99911e197135ca7dd7ea20e660a9a4f978f434097cba0b7afa1d80e8ae0358a24d9475c98649001ffa659838a57824c6f97c5efd46f6b7decb22d98e2ef19c7d15046e0b6ce5a4b539d0d8d9fe0a1dce8a82e3a56780173f02a99d7d647b0844a9a8df0b80c7fd76a112b5ef4e247b69e89a583664fa6c0ab68d0d087ec01978a554cb72a67c9961744ac4ec605eac92d0fb101497c8ca5c5057f309af5873552d0a3370526223b2efe4004e770203010001a33b3039300f0603551d130101ff04053003020100300e0603551d0f0101ff04040302078030160603551d250101ff040c300a06082b06010505070303300d06092a864886f70d01010505000382010100878daf0080da97a4b7f362c7db516ba8103858eaaeeb4ac2e08e6e6ce7defd257a0058155d5ce1d86907e2837132098d1ed3f2538ae775cee9a2eb411228bb071247614c2cacabcef590245edce4cdf538b76a0ba351b9d69cd87765a0bf0e851205e487bce3481843915acc57467f4ba8e662ae885c662c239757855bb1621513fbbd9849f5355fd6083c9c1953967495b9e7ad97981824168377840fd78cd510b19e5dcd36ca066ab24aaf9774ea084f4245a9c84b1ba21cd17b4de520a7432c24af8f0d8a4c0fe2396469fe7a77d6995875cd97959b247a2a07a789abdf9deea13a2f8db649e84677e454019ef558dd051cbfa5cf21ee5882576b4f9269cf" /> + +</resources> diff --git a/rootdir/system/etc/nfcee_access_debug.xml b/rootdir/system/etc/nfcee_access_debug.xml new file mode 100644 index 0000000..a96a2d1 --- /dev/null +++ b/rootdir/system/etc/nfcee_access_debug.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <!-- Applications granted NFCEE access on userdebug/eng builds + + See packages/apps/Nfc/etc/sample_nfcee_access.xml for full documentation. + --> + + <!-- Google Wallet dev signature --> + <signer android:signature="3082044c30820334a003020102020900de7695041d7650c0300d06092a864886f70d01010505003077310b3009060355040613025553311330110603550408130a43616c69666f726e6961311630140603550407130d4d6f756e7461696e205669657731143012060355040a130b476f6f676c6520496e632e3110300e060355040b1307416e64726f6964311330110603550403130a476f6f676c65204e4643301e170d3131303332343031303332345a170d3338303830393031303332345a3077310b3009060355040613025553311330110603550408130a43616c69666f726e6961311630140603550407130d4d6f756e7461696e205669657731143012060355040a130b476f6f676c6520496e632e3110300e060355040b1307416e64726f6964311330110603550403130a476f6f676c65204e464330820120300d06092a864886f70d01010105000382010d00308201080282010100e6ff3defe92aa10d71eb0fa6408bc036b7e243eeed68a6a4763dc7a52a31757cdac61fe510bb73c716e4000104265b347fcecef4c42bf1e1379dd0a876f028227fbbc1f9bdd5d713b2f6a935a379d2cba9c96f92d2d0787c11f1eb19548008a6a072b34b91836cfa0ae1276780e9007530166986a11c9cef46cef7c704806dde9431fb60284d120ab0e7de1d633f07687d468c51139afffdc6bc9a207ca904b8be1da0aa7b4e97756f43606488be5cae3c68e8bb7942cdf51607c930a2fcda655b75d0759cba89ad06e739bd0ba29b1f404296c2c0a85a847f5ab0d067c6c3ec9c49212042ac63a7e53b546c65b46080b4e3e680e23e1f77cfe7f6de744b1a65020103a381dc3081d9301d0603551d0e04160414a2e89064b05d08865c34db930a9d840050117aec3081a90603551d230481a130819e8014a2e89064b05d08865c34db930a9d840050117aeca17ba4793077310b3009060355040613025553311330110603550408130a43616c69666f726e6961311630140603550407130d4d6f756e7461696e205669657731143012060355040a130b476f6f676c6520496e632e3110300e060355040b1307416e64726f6964311330110603550403130a476f6f676c65204e4643820900de7695041d7650c0300c0603551d13040530030101ff300d06092a864886f70d010105050003820101003771870ce87c3c52ea84899230c6e962d94b4d5f1293c25d88261541fd90b5555d1285cef3b8312c3f5df691a8aae04cb981b305e427fd1d2d9e1987e1d29078f13c8452990f1821980263d8d4bd36519348d8d8ba26d8b99fbf09f5fd3ebb0ea3c2f0c9376f1e1fca76f3a6a405429d081b752a7a90b756e9ab44da41abc8e1e8f88ac2758da743fb73e650719a57840ccb6b7add21b99fc681e456e1872c223d5c074adf55f6abda268c2d8b64ea0a8845eecd968f92b493127e75c753c3ff30cbc678b51c9f52961472f17da20a0dc6274aa2463434c1a9b614df697d8ff5ca8101e7a25c7db3fb055d65569c04b01d389cabba57b3a1703ec2e74a88d334" /> + + <!-- Google wallet release signature --> + <signer android:signature="3082044c30820334a003020102020900a8cd17c93da5d990300d06092a864886f70d01010505003077310b3009060355040613025553311330110603550408130a43616c69666f726e6961311630140603550407130d4d6f756e7461696e205669657731143012060355040a130b476f6f676c6520496e632e3110300e060355040b1307416e64726f6964311330110603550403130a476f6f676c65204e4643301e170d3131303332343031303635335a170d3338303830393031303635335a3077310b3009060355040613025553311330110603550408130a43616c69666f726e6961311630140603550407130d4d6f756e7461696e205669657731143012060355040a130b476f6f676c6520496e632e3110300e060355040b1307416e64726f6964311330110603550403130a476f6f676c65204e464330820120300d06092a864886f70d01010105000382010d00308201080282010100c30f88add9b492096a2c586a5a9a80356bfa026958f8ff0c5dfaf59f49268ad870dee821a53e1f5b170fc96245a3c982a7cb4527053be35e34f396d24b2291ec0c528d6e26927465e06875ea621f7ff98c40e3345b204907cc9354743acdaace65565f48ba74cd4121cdc876df3522badb095c20d934c56a3e5c393ee5f0e02f8fe0621f918d1f35a82489252c6fa6b63392a7686b3e48612d06a9cf6f49bff11d5d96289c9dfe14ac5762439697dd29eafdb9810de3263513a905ac8e8eaf20907e46750a5ab7bf9a77262f47b03f5a3c6e6d7b51343f69c7f725f70bcc1b4ad592250b705a86e6e83ee2ae37fe5701bcbdb26feefdfff60f6a5bdfb5b64793020103a381dc3081d9301d0603551d0e041604141ccece0eea4dc1121fc7515f0d0a0c72e08cc96d3081a90603551d230481a130819e80141ccece0eea4dc1121fc7515f0d0a0c72e08cc96da17ba4793077310b3009060355040613025553311330110603550408130a43616c69666f726e6961311630140603550407130d4d6f756e7461696e205669657731143012060355040a130b476f6f676c6520496e632e3110300e060355040b1307416e64726f6964311330110603550403130a476f6f676c65204e4643820900a8cd17c93da5d990300c0603551d13040530030101ff300d06092a864886f70d01010505000382010100a470c728e1d31b06d9af6ae768b565046c57806b9843724931d75d4ca10c321520d33ccfed2aa65462234c9ef9b6f910cc676b99cb7f9895d6c06763574fbb78331275dc5cf38fbaa918d7938c051ffba2ade8f303cde8d9e68a048d1fdb9e7c9f2a49b222c68fff422bf15569b85eeeedb04aa30873dbe64b9c9e74f8f2c2f6c40124aaa8d1780d18512b540add28b3e9581971a4170dd868cf5f31e44712b2c23bb51037d7ef9f87a6e5bdb35e2ceb6bb022636c17a56a96bc7a50258c0bd2ed7b31555a18452e17321a0d52838c82f63f742d74ff79586a5cbb7faf7198a84bcf744310e9e927597f00a23dd00660800c2238d90b2fb372dfdbba75bd852e" /> + + <!-- Platform dev-keys signature --> + <signer android:signature="308204a830820390a003020102020900bcdfe81405d5c69e300d06092a864886f70d0101050500308194310b3009060355040613025553311330110603550408130a43616c69666f726e6961311630140603550407130d4d6f756e7461696e20566965773110300e060355040a1307416e64726f69643110300e060355040b1307416e64726f69643110300e06035504031307416e64726f69643122302006092a864886f70d0109011613616e64726f696440616e64726f69642e636f6d301e170d3131303931393230303634325a170d3339303230343230303634325a308194310b3009060355040613025553311330110603550408130a43616c69666f726e6961311630140603550407130d4d6f756e7461696e20566965773110300e060355040a1307416e64726f69643110300e060355040b1307416e64726f69643110300e06035504031307416e64726f69643122302006092a864886f70d0109011613616e64726f696440616e64726f69642e636f6d30820120300d06092a864886f70d01010105000382010d00308201080282010100ef7a8a34d8151d0479a239903261fe5026c520d5d88cd65920c98e096d2770f49636da9ffc4e80c472b05bd62a435f8266912aa2a34a18f6f4856f9ef52c10b88c267627136726823e8f3389b051ba92920e10bbaae0e38879efbe681b05863b655d81a6f3b75a85eb230b38b23ea4ef56f2161ff01652ae2049881adbe60d3bf8b5386a81f7404c0cf0c111c0a35ab0a9760426e4af12add73327ec433e047e3517f47a2d3674c2b819354d56eb7fd6c9aa67dd05b4bb1ca8a7e1946c2494e9364ea677a25481ac81f434bff3dd56e93e59fccef0e24a753461cd1cf15f22b62251d07416057ac5ca3e03a24f7f4eca876bacc5a1828acbde04c5cfdb608c47020103a381fc3081f9301d0603551d0e0416041402f997668541fa74693bea699a5766893a362a5d3081c90603551d230481c13081be801402f997668541fa74693bea699a5766893a362a5da1819aa48197308194310b3009060355040613025553311330110603550408130a43616c69666f726e6961311630140603550407130d4d6f756e7461696e20566965773110300e060355040a1307416e64726f69643110300e060355040b1307416e64726f69643110300e06035504031307416e64726f69643122302006092a864886f70d0109011613616e64726f696440616e64726f69642e636f6d820900bcdfe81405d5c69e300c0603551d13040530030101ff300d06092a864886f70d0101050500038201010047d6fb32cadeae4444c379b3441ff9ba10990c23d10472c54fb7ebd9c33b2a173836337e1c175c980847a8894f6a99782e9c2e2133629254295fe52749f93ec1e39d213dd06d0ba99de3b6b5d4d856fafe74e08113b7b23a1b56f4918ed41218a03b9564456480b665200267d3770a9463db413c6a47bd81d725cb7d39c9d0941693c59cbe727d40415f0815c3c8363fb8fa2e028ceeb3bbfbc6b119db5b72f0edb0bb417bfcbf74d9fa069de22afe56a50bcde7ea1078749bb9ec0adc0e6de045641ee3a82c576645160b4ab9710d3cb3201f23957da8de9084c0bec93ad1c8c2054195f13c926db07c8bdf15673acf6d791ec1d3a0d7e1b3470447acd95873" /> + +</resources> diff --git a/rootdir/system/etc/wifi/p2p_supplicant_overlay.conf b/rootdir/system/etc/wifi/p2p_supplicant_overlay.conf new file mode 100644 index 0000000..acbace2 --- /dev/null +++ b/rootdir/system/etc/wifi/p2p_supplicant_overlay.conf @@ -0,0 +1 @@ +disable_scan_offload=1 diff --git a/rootdir/system/etc/wifi/wpa_supplicant_overlay.conf b/rootdir/system/etc/wifi/wpa_supplicant_overlay.conf new file mode 100644 index 0000000..acbace2 --- /dev/null +++ b/rootdir/system/etc/wifi/wpa_supplicant_overlay.conf @@ -0,0 +1 @@ +disable_scan_offload=1 diff --git a/rootdir/system/lib/egl/egl.cfg b/rootdir/system/lib/egl/egl.cfg new file mode 100644 index 0000000..2a11ba2 --- /dev/null +++ b/rootdir/system/lib/egl/egl.cfg @@ -0,0 +1,2 @@ +0 0 android +0 1 adreno diff --git a/rootdir/ueventd.qcom.rc b/rootdir/ueventd.qcom.rc new file mode 100644 index 0000000..d765272 --- /dev/null +++ b/rootdir/ueventd.qcom.rc @@ -0,0 +1,158 @@ +/dev/gemini0 0660 system camera +/dev/jpeg0 0660 system camera +/dev/jpeg1 0660 system camera +/dev/jpeg2 0660 system camera +/dev/genlock 0666 system system +/dev/hw_random 0660 system system +/dev/ion 0664 system system +/dev/kgsl 0666 system system +/dev/kgsl-3d0 0666 system system +/dev/kgsl-2d0 0666 root root +/dev/kgsl-2d1 0666 root root +/dev/mdm 0660 system radio +/dev/media* 0660 system camera +/dev/mercury0 0660 system camera +/dev/mpu 0600 system system +/dev/mpuirq 0600 system system +/dev/msm_camera/* 0660 system camera +/dev/msm_rotator 0660 system system +/dev/msm_vidc_reg 0660 system audio +/dev/msm_vidc_dec 0660 system audio +/dev/msm_vidc_dec_sec 0660 system audio +/dev/msm_vidc_enc 0660 system audio +/dev/msm_vidc_enc_sec 0660 system audio +/dev/msm_vpe_standalone 0660 system camera +/dev/pn544 0600 nfc nfc +/dev/qseecom 0660 system drmrpc +/dev/rfcomm0 0660 bluetooth bluetooth +/dev/rmnet_mux_ctrl 0640 radio radio +/dev/rtc0 0600 system system +/dev/smd0 0660 system system +/dev/smd2 0660 bluetooth net_bt_stack +/dev/smd3 0660 bluetooth net_bt_stack +/dev/smd4 0660 system system +/dev/smd5 0660 system system +/dev/smd6 0660 system system +/dev/smd7 0660 bluetooth bluetooth +/dev/smd11 0660 radio radio +/dev/smd_cxm_qmi 0640 radio radio +/dev/smdcntl0 0640 radio radio +/dev/smdcntl1 0640 radio radio +/dev/smdcntl2 0640 radio radio +/dev/smdcntl3 0640 radio radio +/dev/smdcntl4 0640 radio radio +/dev/smdcntl5 0640 radio radio +/dev/smdcntl6 0640 radio radio +/dev/smdcntl7 0640 radio radio +/dev/smdcntl8 0640 radio radio +/dev/smdcntl9 0640 radio radio +/dev/smdcntl10 0640 radio radio +/dev/smdcntl11 0640 radio radio +/dev/smdcnt_rev0 0640 radio radio +/dev/smdcnt_rev1 0640 radio radio +/dev/smdcnt_rev2 0640 radio radio +/dev/smdcnt_rev3 0640 radio radio +/dev/smdcnt_rev4 0640 radio radio +/dev/smdcnt_rev5 0640 radio radio +/dev/smdcnt_rev6 0640 radio radio +/dev/smdcnt_rev7 0640 radio radio +/dev/smdcnt_rev8 0640 radio radio +/dev/smuxctl32 0640 radio radio +/dev/sdioctl0 0640 radio radio +/dev/sdioctl1 0640 radio radio +/dev/sdioctl2 0640 radio radio +/dev/sdioctl3 0640 radio radio +/dev/sdioctl4 0640 radio radio +/dev/sdioctl5 0640 radio radio +/dev/sdioctl6 0640 radio radio +/dev/sdioctl7 0640 radio radio +/dev/sdioctl8 0640 radio radio +/dev/hsicctl0 0640 radio radio +/dev/hsicctl1 0640 radio radio +/dev/hsicctl2 0640 radio radio +/dev/hsicctl3 0640 radio radio +/dev/hsicctl4 0640 radio radio +/dev/hsicctl5 0640 radio radio +/dev/hsicctl6 0640 radio radio +/dev/hsicctl7 0640 radio radio +/dev/hsicctl8 0640 radio radio +/dev/hsicctl9 0640 radio radio +/dev/hsicctl10 0640 radio radio +/dev/hsicctl11 0640 radio radio +/dev/hsicctl12 0640 radio radio +/dev/hsicctl13 0640 radio radio +/dev/hsicctl14 0640 radio radio +/dev/hsicctl15 0640 radio radio +/dev/hsicctl16 0640 radio radio +/dev/diag 0660 radio qcom_diag +/dev/v4l-subdev* 0660 system camera +/dev/video* 0660 system camera +/dev/ttyHSL1 0660 system system +/dev/radio0 0640 system system +/dev/gss 0660 gps gps +/dev/rfkill 0660 wifi wifi +/sys/devices/virtual/smdpkt/smdcntl* open_timeout 0664 radio radio + +# permissions for audio +/dev/msm_qcelp 0660 system audio +/dev/msm_evrc 0660 system audio +/dev/msm_wma 0660 system audio +/dev/msm_wmapro 0660 system audio +/dev/msm_amrnb 0660 system audio +/dev/msm_amrwb 0660 system audio +/dev/msm_amrwbplus 0660 system audio +/dev/msm_aac 0660 system audio +/dev/msm_multi_aac 0660 system audio +/dev/msm_aac_in 0660 system audio +/dev/msm_qcelp_in 0660 system audio +/dev/msm_evrc_in 0660 system audio +/dev/msm_amrnb_in 0640 system audio +/dev/msm_a2dp_in 0660 system audio +/dev/msm_ac3 0660 system audio +/dev/msm_acdb 0660 system audio +/dev/msm_cad 0660 system audio +/dev/msm_fm 0660 system audio +/dev/msm_mvs 0660 system audio +/dev/msm_pcm_lp_dec 0660 system audio +/dev/msm_preproc_ctl 0660 system audio +/dev/msm_rtac 0660 system audio +/dev/msm_voicememo 0660 system audio +/dev/input/event8 0660 input camera + +/sys/devices/virtual/graphics/fb1 edid_modes 0440 system system +/sys/devices/virtual/graphics/fb1 product_description 0640 system system +/sys/devices/virtual/graphics/fb1 vendor_name 0640 system system + +# wlan +/dev/wcnss_wlan 0660 system system +/dev/wcnss_ctrl 0660 system system + +# +# Change file permission and owner for sensors +# +/dev/adsprpc-smd 0664 system system + +/sys/devices/f9925000.i2c/i2c-0/0-* enable 0660 input system +/sys/devices/f9925000.i2c/i2c-0/0-* poll_delay 0660 input system +/sys/devices/virtual/optical_sensors/proximity ps_adc 0660 input system +/sys/devices/virtual/optical_sensors/proximity ps_poll_delay 0660 input system +/sys/devices/virtual/optical_sensors/lightsensor ls_auto 0660 input system +/sys/devices/virtual/optical_sensors/lightsensor ls_poll_delay 0660 input system +/sys/devices/virtual/input/input* poll 0660 input system +/sys/devices/virtual/input/input* pollrate_ms 0660 input system + +# BT +/dev/hidraw0 0666 system system +/dev/hidraw1 0666 system system +/dev/hidraw2 0666 system system + +# MHL +/sys/devices/f9967000.i2c/i2c-4/4-0072/mhl/sii8334 mouse_mode 0660 system system +/sys/devices/f9967000.i2c/i2c-4/4-0072/mhl/sii8334 screen_status 0660 system system +/sys/devices/f9967000.i2c/i2c-4/4-0072/mhl/sii8334 mouse_move_distance_dx 0660 system system +/sys/devices/f9967000.i2c/i2c-4/4-0072/mhl/sii8334 mouse_move_distance_dy 0660 system system + +# UIO devices +/dev/uio0 0660 system system +/dev/uio1 0660 system system +/dev/uio2 0660 system system |