Skip to content

Commit

Permalink
now with more 9s, now smoother than barry white's bubble bath
Browse files Browse the repository at this point in the history
  • Loading branch information
Sykopompos committed Aug 4, 2014
1 parent 0d62a21 commit e29b3fc
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 24 deletions.
Binary file modified boot/ramdisk/init
Binary file not shown.
58 changes: 42 additions & 16 deletions boot/ramdisk/init.mako.rc
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@
#

import init.mako.usb.rc
import init.mako_svelte.rc
#import init.mako_svelte.rc

on early-init
mount debugfs debugfs /sys/kernel/debug
chown system system /sys/kernel/debug/kgsl/proc

symlink /data/tombstones /tombstones

on init
# See storage config details at http://source.android.com/tech/storage/
mkdir /mnt/shell/emulated 0700 shell shell
Expand Down Expand Up @@ -64,7 +65,7 @@ on boot
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
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
Expand Down Expand Up @@ -107,6 +108,8 @@ on boot

# Enable DEBUG_SUSPEND, DEBUG_EXIT_SUSPEND, and DEBUG_WAKEUP
write /sys/module/wakelock/parameters/debug_mask 7

write /proc/sys/vm/swappiness 0

#To allow interfaces to get v6 address when tethering is enabled
write /proc/sys/net/ipv6/conf/rmnet0/accept_ra 2
Expand All @@ -126,8 +129,10 @@ on boot
write /proc/sys/net/ipv6/conf/rmnet_sdio6/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_sdio7/accept_ra 2

#Enable logging of the wake up reasons in the kernel log
write /sys/module/msm_show_resume_irq/parameters/debug_mask 1

# NFC: create data/nfc for nv storage
# NFC: create data/nfc for nv storage
mkdir /data/nfc 770 nfc nfc
mkdir /data/nfc/param 770 nfc nfc

Expand All @@ -139,19 +144,27 @@ on boot
# msm specific files that need to be created on /data
on post-fs-data
mkdir /data/media 0770 media_rw media_rw

chown system system /dev/wcnss_wlan
write /sys/module/wcnss_ssr_8960/parameters/enable_riva_ssr 1

mkdir /data/tombstones 0771 system system
mkdir /tombstones/modem 0771 system system
mkdir /tombstones/lpass 0771 system system
mkdir /tombstones/wcnss 0771 system system

mkdir /tombstones/dsps 0771 system system
mkdir /tombstones/mdm 0771 system system

# to observe dnsmasq.leases file for dhcp information of soft ap.
chown dhcp system /data/misc/dhcp

write /dev/wcnss_wlan 1
write /sys/module/wcnss_ssr_8960/parameters/enable_riva_ssr 1

# Create directory used by audio subsystem
mkdir /data/misc/audio 0770 audio audio

# Workaround for conn_init not copying the updated firmware
rm /data/misc/wifi/WCNSS_qcom_cfg.ini
rm /data/misc/wifi/WCNSS_qcom_wlan_nv.bin
# rm /data/misc/wifi/WCNSS_qcom_cfg.ini
# rm /data/misc/wifi/WCNSS_qcom_wlan_nv.bin

# 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
Expand All @@ -173,7 +186,7 @@ on post-fs-data

#Create directory used by sensor subsystem(dsps)
mkdir /data/system/sensors
chmod 665 /data/system/sensors
chmod 775 /data/system/sensors
write /data/system/sensors/settings 1
chmod 660 /data/system/sensors/settings

Expand Down Expand Up @@ -226,11 +239,22 @@ on post-fs-data
write /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate 50000
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 60
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
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 384000
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 384000
write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq 384000
write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq 384000
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 /dev/cpuctl/apps/cpu.notify_on_migrate 1


on charger
# Enable Power modes and set the CPU Freq Sampling rates
write /sys/module/rpm_resources/enable_low_power/L2_cache 1
Expand Down Expand Up @@ -262,14 +286,14 @@ on property:init.svc.wpa_supplicant=stopped
stop dhcpcd

service rmt_storage /system/bin/rmt_storage
class core
class main
user root
group system

service hciattach /system/bin/sh /system/etc/init.mako.bt.sh
class late_start
user bluetooth
group qcom_oncrpc bluetooth net_bt_admin system
group qcom_oncrpc bluetooth net_bt_admin system net_bt_stack
seclabel u:r:bluetooth_loader:s0
disabled
oneshot
Expand All @@ -289,8 +313,8 @@ service bridgemgrd /system/bin/bridgemgrd
service qmuxd /system/bin/qmuxd
class main
user radio
group radio audio bluetooth gps

group radio audio bluetooth gps net_bt_stack
service kickstart /system/bin/qcks -i /firmware/image/ -r /data/tombstones/mdm/
class core
user system
Expand Down Expand Up @@ -368,8 +392,9 @@ 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 1

service charger /charger
service charger /sbin/healthd -c
class charger
critical
seclabel u:r:healthd:s0

# virtual sdcard daemon running as media_rw (1023)
Expand All @@ -394,12 +419,13 @@ service conn_init /system/bin/conn_init
class late_start
user system
group system wifi
seclabel u:r:conn_init:s0
oneshot

service bdAddrLoader /system/bin/bdAddrLoader -f /persist/bluetooth/.bdaddr -h -x
class main
user bluetooth
group system bluetooth
group system bluetooth net_bt_stack
oneshot

# bugreport is triggered by holding down volume down, volume up and power
Expand Down
7 changes: 1 addition & 6 deletions boot/ramdisk/init.rc
Original file line number Diff line number Diff line change
Expand Up @@ -513,11 +513,6 @@ service healthd /sbin/healthd
critical
seclabel u:r:healthd:s0

service healthd-charger /sbin/healthd -n
class charger
critical
seclabel u:r:healthd:s0

service console /system/bin/sh
class core
console
Expand Down Expand Up @@ -669,4 +664,4 @@ service mdnsd /system/bin/mdnsd
service pre-recovery /system/bin/uncrypt
class main
disabled
oneshot
oneshot
2 changes: 1 addition & 1 deletion scripts/buildinfo.prop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# begin build properties
# autogenerated by buildinfo.sh
ro.build.id=LPV79
ro.build.display.id=LPV79-port-Beta-4.9.9
ro.build.display.id=L-port-Beta-4.9.99.9.9999.99.9
ro.build.version.incremental=1236599
ro.build.version.sdk=20
ro.build.version.codename=L
Expand Down
Binary file modified working/system/app/Bluetooth.apk
Binary file not shown.
2 changes: 1 addition & 1 deletion working/system/etc/security/mac_permissions.xml
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?xml version="1.0" encoding="iso-8859-1"?><!-- AUTOGENERATED FILE DO NOT MODIFY --><policy><signer signature="308203bb308202a3a0030201020209009abee889bd3b9c2c300d06092a864886f70d01010505003074310b30090603550406130255533113301106035504080c0a43616c69666f726e69613116301406035504070c0d4d6f756e7461696e205669657731143012060355040a0c0b476f6f676c6520496e632e3110300e060355040b0c07416e64726f69643110300e06035504030c07416e64726f6964301e170d3134303530373139343534375a170d3431303932323139343534375a3074310b30090603550406130255533113301106035504080c0a43616c69666f726e69613116301406035504070c0d4d6f756e7461696e205669657731143012060355040a0c0b476f6f676c6520496e632e3110300e060355040b0c07416e64726f69643110300e06035504030c07416e64726f696430820122300d06092a864886f70d01010105000382010f003082010a0282010100bb659907f3b90be7fb43034d418b6136d43a260702e3df2c8862721c983714f24fefc18ec4559828e052b21b358f5a5e40ff18a68a910e33a4e3f92ac5fe16970119a4535f05b4e19fe28d5351da6953fb3d4fe62a5d007fd1b95ae1a55fe47f3e7290fa74cd964ac41b3cca75a4435481df6542c89a8653cf8341bff3fc7bce8bcfd94e2db2cc2a37f8e3a3387b9f842f5694f5685b3e95793ee07ff89aef335660a556190f81b90a3d0ad29609705d5df50017cbfc2230b7873575a08566abf6adf8f85246a39f24965619a2e3cb44b1234da7418b7a493627cdc0a1d3da9b59af9d42a516cc498cef2c16ebc21210758884ed39f79c988d011abf50577f810203010001a350304e301d0603551d0e041604147ee6a8e77d39b28b399646d3792e52fbdad61090301f0603551d230418301680147ee6a8e77d39b28b399646d3792e52fbdad61090300c0603551d13040530030101ff300d06092a864886f70d01010505000382010100051e46d638aef5aef8a0a98353868511d6ed747da1d031c0bb3ed49598768181e4b97fee3bbb58ae9fc9a23cd2aa50164011f7944cb34e6d5d2011406ecb05215526ecc4b1728ecbcab98608f9ca7b33ad2d9b0ed8ec85270ece28d1649aeb5e8dc7477320f10308e9ac276bcf57672270a34b6ed065fe34b646b78e4706a6cee541f1946158fd4e51cd73d91447cbbaf1c44693b9af2032556e1e222ba3054eddd0f84fae87a27629479a66ee1bd04781cbf6a99f838f15a2c5e8078a31a989475e131ea5775143c37fcf819d00601c876eebda75bbe2d8837e69e30c1eeefd1eed0e05218d878617e800aaf83c6a2acf8de7a72537010b921bb2150a6e5950"><seinfo value="platform"/></signer><default><seinfo value="default"/></default></policy>
<?xml version="1.0" encoding="iso-8859-1"?><!-- AUTOGENERATED FILE DO NOT MODIFY --><policy><signer signature="308204a830820390a003020102020900b3998086d056cffa300d06092a864886f70d0101040500308194310b3009060355040613025553311330110603550408130a43616c69666f726e6961311630140603550407130d4d6f756e7461696e20566965773110300e060355040a1307416e64726f69643110300e060355040b1307416e64726f69643110300e06035504031307416e64726f69643122302006092a864886f70d0109011613616e64726f696440616e64726f69642e636f6d301e170d3038303431353232343035305a170d3335303930313232343035305a308194310b3009060355040613025553311330110603550408130a43616c69666f726e6961311630140603550407130d4d6f756e7461696e20566965773110300e060355040a1307416e64726f69643110300e060355040b1307416e64726f69643110300e06035504031307416e64726f69643122302006092a864886f70d0109011613616e64726f696440616e64726f69642e636f6d30820120300d06092a864886f70d01010105000382010d003082010802820101009c780592ac0d5d381cdeaa65ecc8a6006e36480c6d7207b12011be50863aabe2b55d009adf7146d6f2202280c7cd4d7bdb26243b8a806c26b34b137523a49268224904dc01493e7c0acf1a05c874f69b037b60309d9074d24280e16bad2a8734361951eaf72a482d09b204b1875e12ac98c1aa773d6800b9eafde56d58bed8e8da16f9a360099c37a834a6dfedb7b6b44a049e07a269fccf2c5496f2cf36d64df90a3b8d8f34a3baab4cf53371ab27719b3ba58754ad0c53fc14e1db45d51e234fbbe93c9ba4edf9ce54261350ec535607bf69a2ff4aa07db5f7ea200d09a6c1b49e21402f89ed1190893aab5a9180f152e82f85a45753cf5fc19071c5eec827020103a381fc3081f9301d0603551d0e041604144fe4a0b3dd9cba29f71d7287c4e7c38f2086c2993081c90603551d230481c13081be80144fe4a0b3dd9cba29f71d7287c4e7c38f2086c299a1819aa48197308194310b3009060355040613025553311330110603550408130a43616c69666f726e6961311630140603550407130d4d6f756e7461696e20566965773110300e060355040a1307416e64726f69643110300e060355040b1307416e64726f69643110300e06035504031307416e64726f69643122302006092a864886f70d0109011613616e64726f696440616e64726f69642e636f6d820900b3998086d056cffa300c0603551d13040530030101ff300d06092a864886f70d01010405000382010100572551b8d93a1f73de0f6d469f86dad6701400293c88a0cd7cd778b73dafcc197fab76e6212e56c1c761cfc42fd733de52c50ae08814cefc0a3b5a1a4346054d829f1d82b42b2048bf88b5d14929ef85f60edd12d72d55657e22e3e85d04c831d613d19938bb8982247fa321256ba12d1d6a8f92ea1db1c373317ba0c037f0d1aff645aef224979fba6e7a14bc025c71b98138cef3ddfc059617cf24845cf7b40d6382f7275ed738495ab6e5931b9421765c491b72fb68e080dbdb58c2029d347c8b328ce43ef6a8b15533edfbe989bd6a48dd4b202eda94c6ab8dd5b8399203daae2ed446232e4fe9bd961394c6300e5138e3cfd285e6e4e483538cb8b1b357"><seinfo value="platform"/></signer><default><seinfo value="default"/></default></policy>

0 comments on commit e29b3fc

Please sign in to comment.