Permalink
Browse files

v4.0 changes

  • Loading branch information...
1 parent b521fa5 commit 45c807114693b073ca566fdcde032de3901814f8 @gokhanmoral committed Jul 30, 2012
Showing with 5,432 additions and 2,934 deletions.
  1. 0 fota.rc
  2. +14 −17 init.rc
  3. +13 −13 init.rc.2
  4. +3 −0 init.smdk4210.rc
  5. BIN innt
  6. 0 lpm.rc
  7. +10 −1 recovery.rc
  8. 0 res/customconfig/actions/{soundgasm_hp → eargasm_hp}
  9. +1 −1 res/customconfig/actions/generickmem
  10. +28 −0 res/customconfig/actions/generickmem01
  11. +1 −1 res/customconfig/actions/remove-root
  12. +19 −0 res/customconfig/actions/zram
  13. +12 −5 res/customconfig/customconfig.xml
  14. +1 −0 res/customconfig/default.profile
  15. +0 −213 res/misc/b2g.patch
  16. +0 −2,632 res/misc/cm9.patch
  17. +7 −0 res/misc/init.b2g/default.prop
  18. +123 −0 res/misc/init.b2g/fota.rc
  19. 0 res/misc/{cyano → init.b2g}/init.goldfish.rc
  20. +940 −0 res/misc/init.b2g/init.rc
  21. +942 −0 res/misc/init.b2g/init.rc.2
  22. +122 −0 res/misc/init.b2g/init.smdk4210.rc
  23. 0 res/misc/{cyano → init.b2g}/init.smdk4210.usb.rc
  24. BIN res/misc/init.b2g/innt
  25. +64 −0 res/misc/init.b2g/lpm.rc
  26. +67 −0 res/misc/init.b2g/recovery.rc
  27. +5 −0 res/misc/init.b2g/ueventd.goldfish.rc
  28. +83 −0 res/misc/init.b2g/ueventd.rc
  29. +31 −0 res/misc/init.b2g/ueventd.smdk4210.rc
  30. +2 −4 res/misc/init.cm10/init.smdk4210.rc
  31. +2 −4 res/misc/init.cm10/init.smdk4210.rc.2
  32. 0 res/misc/{cyano → init.cm9}/default.prop
  33. +123 −0 res/misc/init.cm9/fota.rc
  34. +78 −0 res/misc/init.cm9/init.goldfish.rc
  35. +2 −1 res/misc/{cyano → init.cm9}/init.rc
  36. +2 −0 res/misc/{cyano → init.cm9}/init.smdk4210.rc
  37. +2 −0 res/misc/{cyano → init.cm9}/init.smdk4210.rc.2
  38. +89 −0 res/misc/init.cm9/init.smdk4210.usb.rc
  39. BIN res/misc/init.cm9/innt
  40. +64 −0 res/misc/init.cm9/lpm.rc
  41. +67 −0 res/misc/init.cm9/recovery.rc
  42. +5 −0 res/misc/init.cm9/ueventd.goldfish.rc
  43. 0 res/misc/{cyano → init.cm9}/ueventd.rc
  44. 0 res/misc/{cyano → init.cm9}/ueventd.smdk4210.rc
  45. +7 −0 res/misc/init.miui/default.prop
  46. +123 −0 res/misc/init.miui/fota.rc
  47. +78 −0 res/misc/init.miui/init.goldfish.rc
  48. +915 −0 res/misc/init.miui/init.rc
  49. +917 −0 res/misc/init.miui/init.rc.2
  50. +122 −0 res/misc/init.miui/init.smdk4210.rc
  51. +89 −0 res/misc/init.miui/init.smdk4210.usb.rc
  52. BIN res/misc/init.miui/innt
  53. +64 −0 res/misc/init.miui/lpm.rc
  54. +67 −0 res/misc/init.miui/recovery.rc
  55. +5 −0 res/misc/init.miui/ueventd.goldfish.rc
  56. +83 −0 res/misc/init.miui/ueventd.rc
  57. +31 −0 res/misc/init.miui/ueventd.smdk4210.rc
  58. +0 −33 res/misc/miui.patch
  59. BIN sbin/adbd
  60. +3 −5 sbin/ext/post-init.sh
  61. +1 −0 sbin/ext/su-helper.sh
  62. +1 −0 sbin/ext/tweaks.sh
  63. +4 −4 sbin/init
  64. BIN vendor/firmware/mfc_fw.bin
View
0 fota.rc 100755 → 100644
No changes.
View
31 init.rc 100755 → 100644
@@ -170,9 +170,6 @@ on post-fs-data
# We chown/chmod /data again so because mount is run as root + defaults
chown system system /data
chmod 0771 /data
- mkdir /data/system
- chown system system /data/system
- chmod 0771 /data/system
# Create dump dir and collect dumps.
# Do this before we mount cache so eventually we can use cache for
@@ -217,7 +214,7 @@ on post-fs-data
mkdir /data/misc/wifi 0770 wifi wifi
chmod 0770 /data/misc/wifi
chmod 0660 /data/misc/wifi/wpa_supplicant.conf
- mkdir /data/local 0771 shell shell
+ mkdir /data/local 0751 root root
mkdir /data/local/tmp 0771 shell shell
mkdir /data/data 0771 system system
mkdir /data/app-private 0771 system system
@@ -279,6 +276,11 @@ on post-fs-data
chmod 0775 /efs/.files/.dx1
chmod 0775 /efs/.files/.dm33
chmod 0775 /efs/.files/.mp301
+
+ # IMEI
+ mkdir /efs/imei 0775
+ chown radio system /efs/imei
+ chmod 0775 /efs/imei
# If there is no fs-post-data action in the init.<device>.rc file, you
# must uncomment this line, otherwise encrypted filesystems
@@ -307,6 +309,9 @@ on post-fs-data
chmod 0600 /dev/pn544
chown nfc nfc /dev/pn544
+# Permission for MHL
+ chown system radio /sys/class/mhl/test_result
+
# Added by Yamaha Corporation. -----------------------------------------
# setup for alsa snd device
chmod 0770 /dev/snd/pcmC0D0c
@@ -318,7 +323,9 @@ on post-fs-data
# create log system
mkdir /data/log 0775 system log
+ mkdir /data/anr 0775 system log
chown system log /data/log
+ chown system log /data/anr
chmod 0775 /data/log
chmod 0775 /data/anr
@@ -579,16 +586,6 @@ on boot
chmod 0770 /system/bin/rtc_log.sh
chown system system /system/bin/rtc_log.sh
-# DVFS - cpufreq ondemand
-# write /sys/devices/system/cpu/cpufreq/ondemand/down_differential 5
-# write /sys/devices/system/cpu/cpufreq/ondemand/up_threshold 85
-
-# DVFS - limit cpufreq during booting sequence
-# write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor userspace
-# write /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed 1000000
-# write /data/dvfs "sleep 10 && echo 800000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed && sleep 30 && echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor"
-# chmod 0770 /data/dvfs
-
# Set this property so surfaceflinger is not started by system_init
setprop system_init.startsurfaceflinger 0
@@ -750,7 +747,7 @@ service surfaceflinger /system/bin/surfaceflinger
service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server
class main
- socket zygote stream 666
+ socket zygote stream 660 root system
onrestart write /sys/android_power/request_state wake
onrestart write /sys/power/state on
onrestart restart media
@@ -759,7 +756,7 @@ service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-sys
service drm /system/bin/drmserver
class main
user drm
- group system inet sdcard_rw media_rw radio
+ group system inet drmrpc sdcard_rw media_rw radio
service media /system/bin/mediaserver
class main
@@ -832,7 +829,7 @@ service racoon /system/bin/racoon
class main
socket racoon stream 600 system system
# racoon will setuid to vpn after getting necessary resources.
- group net_admin
+ group vpn net_admin inet
disabled
oneshot
View
26 init.rc.2 100755 → 100644
@@ -281,6 +281,11 @@ on post-fs-data
chmod 0775 /efs/.files/.dx1
chmod 0775 /efs/.files/.dm33
chmod 0775 /efs/.files/.mp301
+
+ # IMEI
+ mkdir /efs/imei 0775
+ chown radio system /efs/imei
+ chmod 0775 /efs/imei
# If there is no fs-post-data action in the init.<device>.rc file, you
# must uncomment this line, otherwise encrypted filesystems
@@ -309,6 +314,9 @@ on post-fs-data
chmod 0600 /dev/pn544
chown nfc nfc /dev/pn544
+# Permission for MHL
+ chown system radio /sys/class/mhl/test_result
+
# Added by Yamaha Corporation. -----------------------------------------
# setup for alsa snd device
chmod 0770 /dev/snd/pcmC0D0c
@@ -320,7 +328,9 @@ on post-fs-data
# create log system
mkdir /data/log 0775 system log
+ mkdir /data/anr 0775 system log
chown system log /data/log
+ chown system log /data/anr
chmod 0775 /data/log
chmod 0775 /data/anr
@@ -581,16 +591,6 @@ on boot
chmod 0770 /system/bin/rtc_log.sh
chown system system /system/bin/rtc_log.sh
-# DVFS - cpufreq ondemand
-# write /sys/devices/system/cpu/cpufreq/ondemand/down_differential 5
-# write /sys/devices/system/cpu/cpufreq/ondemand/up_threshold 85
-
-# DVFS - limit cpufreq during booting sequence
-# write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor userspace
-# write /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed 1000000
-# write /data/dvfs "sleep 10 && echo 800000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed && sleep 30 && echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor"
-# chmod 0770 /data/dvfs
-
# Set this property so surfaceflinger is not started by system_init
setprop system_init.startsurfaceflinger 0
@@ -752,7 +752,7 @@ service surfaceflinger /system/bin/surfaceflinger
service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server
class main
- socket zygote stream 666
+ socket zygote stream 660 root system
onrestart write /sys/android_power/request_state wake
onrestart write /sys/power/state on
onrestart restart media
@@ -761,7 +761,7 @@ service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-sys
service drm /system/bin/drmserver
class main
user drm
- group system inet sdcard_rw media_rw radio
+ group system inet drmrpc sdcard_rw media_rw radio
service media /system/bin/mediaserver
class main
@@ -834,7 +834,7 @@ service racoon /system/bin/racoon
class main
socket racoon stream 600 system system
# racoon will setuid to vpn after getting necessary resources.
- group net_admin
+ group vpn net_admin inet
disabled
oneshot
View
3 init.smdk4210.rc 100755 → 100644
@@ -53,6 +53,9 @@ on boot
chmod 0600 /dev/pn544
chown nfc nfc /dev/pn544
+# Permission for MHL
+ chown system radio /sys/class/mhl/test_result
+
# Device Encryption by B2B Security Lab.
setprop ro.crypto.keyfile.userdata /efs/metadata
View
BIN innt
Binary file not shown.
View
0 lpm.rc 100755 → 100644
No changes.
View
11 recovery.rc 100755 → 100644
@@ -5,12 +5,15 @@ on init
export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
export ANDROID_ROOT /system
export ANDROID_DATA /data
+ export ANDROID_CACHE /cache
+ export SECONDARY_STORAGE /emmc
export EXTERNAL_STORAGE /sdcard
#symlink /system/etc /etc
+ mkdir /emmc
mkdir /sdcard
- mkdir /sdcard1
+ mkdir /usbdisk
mkdir /system
mkdir /data
mkdir /cache
@@ -30,6 +33,11 @@ on fs
exec sformat /dev/block/mmcblk0p11 vfat
on boot
+# Permissions for mDNIe
+ chown system media_rw /sys/class/mdnie/mdnie/mode
+ chown system media_rw /sys/class/mdnie/mdnie/outdoor
+ chown system media_rw /sys/class/mdnie/mdnie/scenario
+ write /sys/class/mdnie/mdnie/scenario 4
ifup lo
hostname localhost
@@ -59,6 +67,7 @@ on property:adb.recovery=1
write /sys/class/android_usb/android0/iProduct $ro.product.model
write /sys/class/android_usb/android0/iSerial $ro.serialno
start adbd
+ setprop service.adb.root 1
# Restart adbd so it can run as root
on property:service.adb.root=1
@@ -15,7 +15,7 @@ else
eval $evalcmd
evalcmd='eval "echo \$$configname"'
eval $evalcmd
- kmemhelper -n $2 -o $3 -t $4 $5 > /dev/null 2>&1
+ kmemhelper -n $2 -o $3 -t $4 -- $5 > /dev/null 2>&1
fi
@@ -0,0 +1,28 @@
+#!/sbin/busybox sh
+# 1 - "generickmem"
+# 2 - symbol name
+# 3 - offset
+# 4 - type
+# 5 - value
+
+configname=$2$3
+
+if [ "a$5" == "a" ];then
+ evalcmd='eval "echo \$$configname"'
+ eval $evalcmd
+else
+ evalcmd='eval "$configname=$5"'
+ eval $evalcmd
+ evalcmd='eval "echo \$$configname"'
+ eval $evalcmd
+ case "$5" in
+ off)
+ kmemhelper -n $2 -o $3 -t $4 0 > /dev/null 2>&1
+ ;;
+ on)
+ kmemhelper -n $2 -o $3 -t $4 1 > /dev/null 2>&1
+ ;;
+ esac;
+fi
+
+
@@ -15,7 +15,7 @@ if [ -f /system/xbin/su ];then
rm -f /data/app/*uper?ser.apk > /dev/null 2>&1
mount -o remount,ro /dev/block/mmcblk0p9 /system > /dev/null 2>&1
# run reinstall-helper
- /sbin/busybox sh /sbin/ext/su-helper.sh
+ #/sbin/busybox sh /sbin/ext/su-helper.sh
echo Root removed. The apps which require root, including this app, will have limited functionality.
else
echo You do not have root.
@@ -0,0 +1,19 @@
+#!/sbin/busybox sh
+
+if [ "a$2" == "a" ];then
+ evalcmd='eval "echo \$zram_size"'
+ eval $evalcmd
+else
+ evalcmd='eval "zram_size=$2"'
+ eval $evalcmd
+ evalcmd='eval "echo \$zram_size"'
+ eval $evalcmd
+
+ swapoff /dev/block/zram0 > /dev/null 2>&1
+ echo 1 > /sys/devices/virtual/block/zram0/reset
+ echo `expr $zram_size \* 1024 \* 1024` > /sys/devices/virtual/block/zram0/disksize
+ mkswap /dev/block/zram0 > /dev/null 2>&1
+ swapon /dev/block/zram0 > /dev/null 2>&1
+fi
+
+
@@ -144,7 +144,7 @@
<settingsTab name="Audio">
<settingsPane description="Headphone Amplification Settings" name="Headphone Amplification">
<seekBar description="Headphone Amplifier Level (0-3 which corresponds to 0-1.5-3-6dB)"
- name="Headphone Amplifier" action="soundgasm_hp" unit="" min="0" reversed="false" step="1" max="3"/>
+ name="Headphone Amplifier" action="eargasm_hp" unit="" min="0" reversed="false" step="1" max="3"/>
</settingsPane>
</settingsTab>
<settingsTab name="Screen">
@@ -160,7 +160,7 @@
</settingsPane>
<settingsPane description="Other Settings" name="Other Settings">
<seekBar description="User adjustable gamma shift."
- name="Gamma Shift" action="generic /sys/devices/platform/samsung-pd.2/s3cfb.0/spi_gpio.3/spi_master/spi3/spi3.0/lcd/panel/user_gamma_adjust" unit="" min="-50" reversed="false" step="5" max="50"/>
+ name="Gamma Shift" action="generic /sys/devices/platform/samsung-pd.2/s3cfb.0/spi_gpio.3/spi3.0/lcd/panel/user_gamma_adjust" unit="" min="-50" reversed="false" step="5" max="50"/>
<seekBar description="Vibration intensity level (default 6)"
name="Vibration Intensity" action="generic /sys/devices/platform/tspdrv/vibrator_level" unit="" min="0" reversed="false" step="1" max="6"/>
<checkbox description="Enable inverting the screen colors by quickly pressing Home button 4 times" name="mDNIe Negative Toggle" action="generic01 /sys/module/gpio_keys/parameters/mdnie_shortcut_enabled" label="mDNIe Negative Toggle"/>
@@ -185,9 +185,9 @@
<spinnerItem name="Breathing" value="1"/>
<spinnerItem name="Blinking" value="2"/>
</spinner>
- <spinner description="Led timeout. Leave it disabled if your ROM already has led timeout support. In CM9, if you have lights enabled screen brightness changes may trigger lights on. It is normal. If you want them to stay disabled you have to disable leds in CM9 menu." name="led_timeout" action="generic /sys/class/misc/notification/led_timeout">
+ <spinner description="Led timeout. Leave it disabled if your ROM already has led timeout support. You will need to use this setting on Samsung ROMs if you want to use led fadeout effect. This setting is not effective in AOSP ROMs. Use timeout setting in CM9/10 menus instead." name="led_timeout" action="generic /sys/class/misc/notification/led_timeout_ms">
<spinnerItem name="Disabled" value="0"/>
- <spinnerItem name="1.5 sec" value="1500"/>
+ <spinnerItem name="1 sec" value="1000"/>
<spinnerItem name="3 sec" value="3000"/>
<spinnerItem name="6 sec" value="6000"/>
<spinnerItem name="15 sec" value="15000"/>
@@ -219,6 +219,14 @@
<spinnerItem name="vr" value="vr"/>
<spinnerItem name="cfq" value="cfq"/>
</spinner>
+ <spinner description="ZRAM (Compressed swap space in RAM) size" name="ZRAM Size" action="zram">
+ <spinnerItem name="disabled" value="0"/>
+ <spinnerItem name="100MB" value="100"/>
+ <spinnerItem name="150MB" value="150"/>
+ <spinnerItem name="200MB" value="200"/>
+ <spinnerItem name="250MB" value="250"/>
+ <spinnerItem name="300MB" value="300"/>
+ </spinner>
<spinner description="Charge current setting" name="Charge Current" action="chargecurrent">
<spinnerItem name="AC:650mA, Misc,USB:450mA (Stock)" value="1"/>
<spinnerItem name="AC,Misc:650mA, USB:450mA" value="2"/>
@@ -234,7 +242,6 @@
</settingsPane>
<settingsPane description="Removing/Reinstalling root to support some apps which requires you not to have a rooted phone." name="Remove/Reinstall Root">
<button description="Removes su and Superuser.apk files from the system partition" name="Remove Root" action="remove-root" label="Remove Root"/>
- <button description="Tries to reinstall root. If this fails, please check auto-install root checkbox and restart." name="Install Root" action="install-root" label="Install Root"/>
<checkbox description="If checked, installs root on the next restart." name="Auto-Install Root" action="generic /tmp/install_root" label="Auto-Install Root"/>
</settingsPane>
</settingsTab>
@@ -51,4 +51,5 @@ ARCH_POWER=on
default_stats=off
mdnie_shortcut_enabled=on
cfs_tweaks=1
+zram_size=150
@Obihoernchen

Obihoernchen Aug 6, 2012

Do you think default zram is a good idea? I think there is no advantage for zram on such a device.

@gokhanmoral

gokhanmoral Aug 6, 2012

Owner

I have no idea and no prejudice for now. maybe I would think so if I didn't see the android specific changes. we'll see.. there is an option to disable it for those who thinks otherwise or be more conservative.

@Obihoernchen

Obihoernchen Aug 6, 2012

Mhh I can tell you that ZRAM is pretty cool on devices with less RAM (for example HTC Magic, Samsung Galaxy I7500, G1, ...)
And even Swap (Swap partition on sdcard) can be an advantage on devices with ram <256MB.

But I think enable it by default on a 1GB device isn't the best idea because it will consume additional CPU time to compress the whole stuff. And there is only 1 advantage (it will "free up" more RAM). But hey we have 1GB and that's more than enough^^ Atleast nowadays :D
But to have an option to enable it is good :)

@Obihoernchen

Obihoernchen Aug 6, 2012

You can find some additional info here: http://wiki.cyanogenmod.com/wiki/Swap_and_Compcache (Compcache = ZRAM)

soundgasm_hp=0
Oops, something went wrong.

0 comments on commit 45c8071

Please sign in to comment.