summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cypress-touchkey.kcm64
-rw-r--r--cypress-touchkey.kl4
-rw-r--r--egl.cfg1
-rw-r--r--init.aries.rc348
-rw-r--r--init.rc218
-rw-r--r--media_profiles.xml215
-rw-r--r--mxt224_ts_input.idc52
-rw-r--r--overlay/frameworks/base/core/res/res/drawable-hdpi/default_wallpaper.jpgbin0 -> 298259 bytes
-rw-r--r--overlay/frameworks/base/core/res/res/values-de/arrays.xml26
-rw-r--r--overlay/frameworks/base/core/res/res/values-fi-rFI/arrays.xml28
-rw-r--r--overlay/frameworks/base/core/res/res/values-fr/arrays.xml25
-rw-r--r--overlay/frameworks/base/core/res/res/values-it/arrays.xml31
-rwxr-xr-xoverlay/frameworks/base/core/res/res/values-pt-rBR/arrays.xml36
-rw-r--r--overlay/frameworks/base/core/res/res/values-ru/arrays.xml10
-rw-r--r--overlay/frameworks/base/core/res/res/values-sv/arrays.xml28
-rw-r--r--overlay/frameworks/base/core/res/res/values-uk/arrays.xml10
-rw-r--r--overlay/frameworks/base/core/res/res/values-zh-rTW/arrays.xml39
-rw-r--r--overlay/frameworks/base/core/res/res/values/arrays.xml125
-rw-r--r--overlay/frameworks/base/core/res/res/values/config.xml185
-rw-r--r--overlay/frameworks/base/core/res/res/xml/power_profile.xml60
-rw-r--r--overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml22
-rw-r--r--overlay/frameworks/base/tests/ImfTest/res/values/config.xml21
-rw-r--r--overlay/packages/apps/Contacts/res/values/config.xml21
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_grass.jpgbin0 -> 420605 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_grass_small.jpgbin0 -> 27168 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_mountains.jpgbin0 -> 323665 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_mountains_small.jpgbin0 -> 19299 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_phasebeam.jpgbin0 -> 39209 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_phasebeam_small.jpgbin0 -> 6547 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_pulse.jpgbin0 -> 42199 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_pulse_small.jpgbin0 -> 5871 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_shuttle.jpgbin0 -> 154313 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_shuttle_small.jpgbin0 -> 8190 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stars.jpgbin0 -> 439193 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stars_small.jpgbin0 -> 33400 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stream.jpgbin0 -> 42360 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stream_small.jpgbin0 -> 5707 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_street_lights.jpgbin0 -> 227572 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_street_lights_small.jpgbin0 -> 23522 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_sunset.jpgbin0 -> 206025 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_sunset_small.jpgbin0 -> 14751 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/values-hdpi/wallpapers.xml36
-rw-r--r--overlay/packages/apps/Phone/res/values/config.xml36
-rw-r--r--overlay/packages/apps/Settings/res/values/bools.xml23
-rw-r--r--overlay/packages/wallpapers/Basic/res/drawable-hdpi/nexus_thumb.pngbin0 -> 14743 bytes
-rw-r--r--overlay/packages/wallpapers/Basic/res/drawable-hdpi/pyramid_background.pngbin0 -> 688177 bytes
-rw-r--r--overlay/packages/wallpapers/Basic/res/raw/nexus.rs313
-rw-r--r--overlay/packages/wallpapers/Basic/res/values/surfacemode.xml18
-rw-r--r--qwerty.kl90
-rw-r--r--recovery.fstab14
-rw-r--r--recovery.rc280
-rw-r--r--s3c-keypad.kcm64
-rw-r--r--s3c-keypad.kl11
-rw-r--r--sec_jack.kl3
-rw-r--r--setup_fs.c75
-rwxr-xr-xsetupenv.sh5
-rw-r--r--system.prop8
-rw-r--r--ueventd.aries.rc23
-rw-r--r--updater.sh43
-rw-r--r--vold.fstab19
60 files changed, 2617 insertions, 13 deletions
diff --git a/cypress-touchkey.kcm b/cypress-touchkey.kcm
new file mode 100644
index 0000000..8056364
--- /dev/null
+++ b/cypress-touchkey.kcm
@@ -0,0 +1,64 @@
+[type=QWERTY]
+
+# keycode display number base caps fn caps_fn
+
+A 'A' '2' 'a' 'A' '#' 0x00
+B 'B' '2' 'b' 'B' '<' 0x00
+C 'C' '2' 'c' 'C' '9' 0x00E7
+D 'D' '3' 'd' 'D' '5' 0x00
+E 'E' '3' 'e' 'E' '2' 0x0301
+F 'F' '3' 'f' 'F' '6' 0x00A5
+G 'G' '4' 'g' 'G' '-' '_'
+H 'H' '4' 'h' 'H' '[' '{'
+I 'I' '4' 'i' 'I' '$' 0x0302
+J 'J' '5' 'j' 'J' ']' '}'
+K 'K' '5' 'k' 'K' '"' '~'
+L 'L' '5' 'l' 'L' ''' '`'
+M 'M' '6' 'm' 'M' '!' 0x00
+N 'N' '6' 'n' 'N' '>' 0x0303
+O 'O' '6' 'o' 'O' '(' 0x00
+P 'P' '7' 'p' 'P' ')' 0x00
+Q 'Q' '7' 'q' 'Q' '*' 0x0300
+R 'R' '7' 'r' 'R' '3' 0x20AC
+S 'S' '7' 's' 'S' '4' 0x00DF
+T 'T' '8' 't' 'T' '+' 0x00A3
+U 'U' '8' 'u' 'U' '&' 0x0308
+V 'V' '8' 'v' 'V' '=' '^'
+W 'W' '9' 'w' 'W' '1' 0x00
+X 'X' '9' 'x' 'X' '8' 0xEF00
+Y 'Y' '9' 'y' 'Y' '%' 0x00A1
+Z 'Z' '9' 'z' 'Z' '7' 0x00
+
+# on pc keyboards
+COMMA ',' ',' ',' ';' ';' '|'
+PERIOD '.' '.' '.' ':' ':' 0x2026
+AT '@' '0' '@' '0' '0' 0x2022
+SLASH '/' '/' '/' '?' '?' '\'
+
+SPACE 0x20 0x20 0x20 0x20 0xEF01 0xEF01
+ENTER 0xa 0xa 0xa 0xa 0xa 0xa
+
+TAB 0x9 0x9 0x9 0x9 0x9 0x9
+0 '0' '0' '0' ')' ')' ')'
+1 '1' '1' '1' '!' '!' '!'
+2 '2' '2' '2' '@' '@' '@'
+3 '3' '3' '3' '#' '#' '#'
+4 '4' '4' '4' '$' '$' '$'
+5 '5' '5' '5' '%' '%' '%'
+6 '6' '6' '6' '^' '^' '^'
+7 '7' '7' '7' '&' '&' '&'
+8 '8' '8' '8' '*' '*' '*'
+9 '9' '9' '9' '(' '(' '('
+
+GRAVE '`' '`' '`' '~' '`' '~'
+MINUS '-' '-' '-' '_' '-' '_'
+EQUALS '=' '=' '=' '+' '=' '+'
+LEFT_BRACKET '[' '[' '[' '{' '[' '{'
+RIGHT_BRACKET ']' ']' ']' '}' ']' '}'
+BACKSLASH '\' '\' '\' '|' '\' '|'
+SEMICOLON ';' ';' ';' ':' ';' ':'
+APOSTROPHE ''' ''' ''' '"' ''' '"'
+STAR '*' '*' '*' '*' '*' '*'
+POUND '#' '#' '#' '#' '#' '#'
+PLUS '+' '+' '+' '+' '+' '+'
+
diff --git a/cypress-touchkey.kl b/cypress-touchkey.kl
new file mode 100644
index 0000000..79d6480
--- /dev/null
+++ b/cypress-touchkey.kl
@@ -0,0 +1,4 @@
+key 139 MENU VIRTUAL
+key 102 HOME VIRTUAL
+key 158 BACK VIRTUAL
+key 217 SEARCH VIRTUAL
diff --git a/egl.cfg b/egl.cfg
new file mode 100644
index 0000000..3e1a8c6
--- /dev/null
+++ b/egl.cfg
@@ -0,0 +1 @@
+0 1 POWERVR_SGX540_120
diff --git a/init.aries.rc b/init.aries.rc
new file mode 100644
index 0000000..30f0e3a
--- /dev/null
+++ b/init.aries.rc
@@ -0,0 +1,348 @@
+on boot
+ mount debugfs /sys/kernel/debug /sys/kernel/debug
+
+# Backwards Compat - XXX: Going away in G*
+ symlink /system/etc /etc
+ symlink /mnt/sdcard /sdcard
+ symlink /mnt/emmc /emmc
+
+# Include extra init file
+ import /system/etc/init.local.rc
+ import /device.rc
+
+# Run sysinit
+ exec /system/bin/sysinit
+
+ setprop ro.build.product aries
+ setprop ro.product.device aries
+ setprop ro.radio.noril yes
+ setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr"
+
+# fake some battery state
+ setprop status.battery.state Slow
+ setprop status.battery.level 5
+ setprop status.battery.level_raw 50
+ setprop status.battery.level_scale 9
+
+# wi-fi
+ mkdir /data/misc/wifi/sockets 0770 wifi wifi
+ mkdir /data/misc/dhcp 0770 dhcp dhcp
+
+# phone
+ setprop ro.telephony.call_ring.multiple 0
+
+# change permission for uart_switch
+ chown radio radio /sys/class/sec/uart_switch/UART_SEL/value
+ chown compass root /sys/class/input/input3/distortion
+ chown compass root /sys/class/input/input3/offsets
+ chown compass root /sys/class/input/input3/shape
+ chown compass root /sys/class/input/input3/threshold
+ chmod 660 /sys/class/sec/uart_switch/UART_SEL/value
+
+# change permission for compass
+ chown compass input /sys/class/input/input3/offsets
+ chown compass input /sys/class/input/input3/shape
+ chown compass input /sys/class/input/input3/distortion
+ chown compass input /sys/class/input/input3/threshold
+# create data/gps for GPS demon
+ mkdir /data/gps 700 gps system
+ chown gps system /data/gps
+ chown gps root /sys/class/sec/gps/GPS_PWR_EN/value
+ chmod 660 /sys/class/sec/gps/GPS_PWR_EN/value
+
+on fs
+ mkdir /radio 0775 radio radio
+ mount yaffs2 mtd@system /system
+ mount yaffs2 mtd@cache /cache
+ mount yaffs2 mtd@radio /radio
+ mount ext4 /dev/block/mmcblk0p2 /data wait nosuid nodev noatime nodiratime noauto_da_alloc
+ mount yaffs2 mtd@datadata /datadata
+
+ chown radio radio /radio/modem.bin
+
+# We chown/chmod /efs because mount is run as root + defaults
+ mkdir /efs 0775 radio radio
+ mount yaffs2 /dev/block/mtdblock4 /efs
+ chown radio radio /efs
+ chmod 770 /efs/bluetooth
+ chmod 770 /efs/imei
+
+# permissions for bluetooth.
+ chown bluetooth bluetooth /efs/bluetooth
+ chown bluetooth bluetooth ro.bt.bdaddr_path
+ chown bluetooth bluetooth /dev/s3c2410_serial0
+ chmod 0600 /dev/s3c2410_serial0
+ chmod 0660 /sys/class/rfkill/rfkill0/state
+ chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
+ chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
+
+# Permissions for System Server and daemons.
+ chown system system /sys/class/backlight/s5p_bl/brightness
+
+on post-fs
+ # once everything is setup, no need to modify /
+ #mount rootfs rootfs / ro remount
+
+ # remove /sbin/sh so that "adb install" can work properly
+ exec /sbin/setupenv.sh
+
+ # We chown/chmod /data and /datadata again so because mount is run as root + defaults
+ chown system system /data
+ chmod 0771 /data
+ chown system system /datadata
+ chmod 0771 /datadata
+
+ # Create dump dir and collect dumps.
+ # Do this before we mount cache so eventually we can use cache for
+ # storing dumps on platforms which do not have a dedicated dump partition.
+
+ mkdir /data/dontpanic
+ chown root log /data/dontpanic
+ chmod 0750 /data/dontpanic
+
+ # Collect apanic data, free resources and re-arm trigger
+ copy /proc/apanic_console /data/dontpanic/apanic_console
+ chown root log /data/dontpanic/apanic_console
+ chmod 0640 /data/dontpanic/apanic_console
+
+ copy /proc/apanic_threads /data/dontpanic/apanic_threads
+ chown root log /data/dontpanic/apanic_threads
+ chmod 0640 /data/dontpanic/apanic_threads
+
+ write /proc/apanic_console 1
+
+ # Same reason as /data above
+ chown system cache /cache
+ chmod 0771 /cache
+
+ # This may have been created by the recovery system with odd permissions
+ chown system cache /cache/recovery
+ chmod 0770 /cache/recovery
+
+ #change permissions on vmallocinfo so we can grab it from bugreports
+ chown root log /proc/vmallocinfo
+ chmod 0440 /proc/vmallocinfo
+
+ #change permissions on kmsg & sysrq-trigger so bugreports can grab kthread stacks
+ chown root system /proc/kmsg
+ chmod 0440 /proc/kmsg
+ chown root system /proc/sysrq-trigger
+ chmod 0220 /proc/sysrq-trigger
+
+# create basic filesystem structure
+ mkdir /data/misc 01771 system misc
+ mkdir /data/misc/bluetoothd 0770 bluetooth bluetooth
+ mkdir /data/misc/bluetooth 0770 system system
+ mkdir /data/misc/keystore 0700 keystore keystore
+ mkdir /data/misc/vpn 0770 system system
+ mkdir /data/misc/systemkeys 0700 system system
+ mkdir /data/misc/vpn/profiles 0770 system system
+ # give system access to wpa_supplicant.conf for backup and restore
+ 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/tmp 0771 shell shell
+ #mkdir /data/data 0771 system system
+ # symlink /data/data to /datadata for performance
+ symlink /datadata /data/data
+
+ mkdir /data/app-private 0771 system system
+ mkdir /data/app 0771 system system
+ mkdir /data/property 0700 root root
+
+ # create dalvik-cache and double-check the perms
+ mkdir /data/dalvik-cache 0771 system system
+ chown system system /data/dalvik-cache
+ chmod 0771 /data/dalvik-cache
+
+ mkdir /cache/dalvik-cache 0771 system system
+ chown system system /cache/dalvik-cache
+ chmod 0771 /cache/dalvik-cache
+
+ # create the lost+found directories, so as to enforce our permissions
+ mkdir /data/lost+found 0770
+ mkdir /cache/lost+found 0770
+
+ # double check the perms, in case lost+found already exists, and set owner
+ chown root root /data/lost+found
+ chmod 0770 /data/lost+found
+ chown root root /cache/lost+found
+ chmod 0770 /cache/lost+found
+
+ # allow net_raw to have access to /dev/socket directory
+ chown root net_raw /dev/socket
+ chmod 0775 /dev/socket
+
+ #symlinks for samsung RIL
+ symlink /radio/modem.bin /dev/block/bml12
+
+
+# allow system to modify cpufreq control files
+ chown root system /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
+ chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
+ chown root system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
+ chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
+ chown root system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
+ chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
+
+# 3D init
+service pvrsrvinit /system/vendor/bin/pvrsrvinit
+ user root
+ group root
+ oneshot
+
+service gpsd /system/vendor/bin/gpsd -c /vendor/etc/gps.xml
+ socket gps seqpacket 0660 gps system
+ user gps
+ group system inet
+
+service wpa_supplicant /system/bin/wpa_supplicant -Dwext -ieth0 -c/data/misc/wifi/wpa_supplicant.conf
+ socket wpa_eth0 dgram 0660 wifi wifi
+ disabled
+ oneshot
+
+service dhcpcd_eth0 /system/bin/dhcpcd -ABKL
+ disabled
+ oneshot
+
+service iprenew_eth0 /system/bin/dhcpcd -n
+ disabled
+ oneshot
+
+service hciattach /system/bin/brcm_patchram_plus --enable_hci --enable_lpm \
+ --baudrate 3000000 --patchram /vendor/firmware/bcm4329.hcd /dev/s3c2410_serial0
+ user bluetooth
+ group bluetooth net_bt_admin
+ disabled
+ oneshot
+
+# bugreport is triggered by holding down volume down, volume up and power
+service bugreport /system/bin/dumpstate -d -v -o /sdcard/bugreports/bugreport
+ disabled
+ oneshot
+ keycodes 114 115 116
+
+service servicemanager /system/bin/servicemanager
+ user system
+ critical
+ onrestart restart zygote
+ onrestart restart media
+
+service vold /system/bin/vold
+ socket vold stream 0660 root mount
+ ioprio be 2
+
+service netd /system/bin/netd
+ socket netd stream 0660 root system
+
+service debuggerd /system/bin/debuggerd
+
+service ril-daemon /system/bin/rild
+ socket rild stream 660 root radio
+ socket rild-debug stream 660 radio system
+ user root
+ group radio cache inet misc audio sdcard_rw net_admin net_raw
+
+service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server
+ socket zygote stream 666
+ onrestart write /sys/android_power/request_state wake
+ onrestart write /sys/power/state on
+ onrestart restart media
+ onrestart restart netd
+
+service media /system/bin/mediaserver
+ user media
+ group system audio camera graphics inet net_bt net_bt_admin net_raw
+ ioprio rt 4
+
+service bootanim /system/bin/bootanimation
+ user graphics
+ group graphics
+ disabled
+ oneshot
+
+service dbus /system/bin/dbus-daemon --system --nofork
+ socket dbus stream 660 bluetooth bluetooth
+ user bluetooth
+ group bluetooth net_bt_admin
+
+service bluetoothd /system/bin/bluetoothd -n
+ socket bluetooth stream 660 bluetooth bluetooth
+ socket dbus_bluetooth stream 660 bluetooth bluetooth
+ # init.rc does not yet support applying capabilities, so run as root and
+ # let bluetoothd drop uid to bluetooth with the right linux capabilities
+ group bluetooth net_bt_admin misc
+ disabled
+
+service hfag /system/bin/sdptool add --channel=10 HFAG
+ user bluetooth
+ group bluetooth net_bt_admin
+ disabled
+ oneshot
+
+service hsag /system/bin/sdptool add --channel=11 HSAG
+ user bluetooth
+ group bluetooth net_bt_admin
+ disabled
+ oneshot
+
+service opush /system/bin/sdptool add --channel=12 OPUSH
+ user bluetooth
+ group bluetooth net_bt_admin
+ disabled
+ oneshot
+
+service pbap /system/bin/sdptool add --channel=19 PBAP
+ user bluetooth
+ group bluetooth net_bt_admin
+ disabled
+ oneshot
+
+service installd /system/bin/installd
+ socket installd stream 600 system system
+
+service racoon /system/bin/racoon
+ socket racoon stream 600 system system
+ # racoon will setuid to vpn after getting necessary resources.
+ group net_admin
+ disabled
+ oneshot
+
+service mtpd /system/bin/mtpd
+ socket mtpd stream 600 system system
+ user vpn
+ group vpn net_admin net_raw
+ disabled
+ oneshot
+
+service keystore /system/bin/keystore /data/misc/keystore
+ user keystore
+ group keystore
+ socket keystore stream 666
+
+service dumpstate /system/bin/dumpstate -s
+ socket dumpstate stream 0660 shell log
+ disabled
+ oneshot
+
+service orientationd /system/vendor/bin/orientationd
+ user compass
+ group system input
+
+service geomagneticd /system/vendor/bin/geomagneticd
+ user compass
+ group system input
+
+service tvout /system/bin/tvoutserver
+ user system
+ group graphics
+
+service console /system/bin/sh
+ console
+ disabled
+ user shell
+ group log
+
+on property:ro.secure=0
+ start console
diff --git a/init.rc b/init.rc
new file mode 100644
index 0000000..37e48a3
--- /dev/null
+++ b/init.rc
@@ -0,0 +1,218 @@
+on early-init
+ start ueventd
+
+on init
+
+sysclktz 0
+
+loglevel 9
+
+# setup the global environment
+ export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
+ export LD_LIBRARY_PATH /vendor/lib:/system/lib
+ export ANDROID_BOOTLOGO 1
+ export ANDROID_CACHE /cache
+ export ANDROID_ROOT /system
+ export ANDROID_ASSETS /system/app
+ export ANDROID_DATA /data
+ export EXTERNAL_STORAGE /mnt/sdcard
+ export PHONE_STORAGE /mnt/emmc
+ export ASEC_MOUNTPOINT /mnt/asec
+ export LOOP_MOUNTPOINT /mnt/obb
+ export SD_EXT_DIRECTORY /sd-ext
+ export BOOTCLASSPATH /system/framework/core.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/core-junit.jar
+
+# Backward compatibility
+ symlink /sys/kernel/debug /d
+
+# Right now vendor lives on the same filesystem as system,
+# but someday that may change.
+ symlink /system/vendor /vendor
+
+# create mountpoints
+ mkdir /mnt 0775 root system
+ mkdir /mnt/sdcard 0000 system system
+ mkdir /mnt/emmc 0000 system system
+
+# Create cgroup mount point for cpu accounting
+ mkdir /acct
+ mount cgroup none /acct cpuacct
+ mkdir /acct/uid
+ mkdir /system
+ mkdir /data 0771 system system
+ mkdir /datadata 0771 system system
+ mkdir /cache 0771 system cache
+ mkdir /config 0500 root root
+
+ # Directory for putting things only root should see.
+ mkdir /mnt/secure 0700 root root
+
+ # Directory for staging bindmounts
+ mkdir /mnt/secure/staging 0700 root root
+
+ # Directory-target for where the secure container
+ # imagefile directory will be bind-mounted
+ mkdir /mnt/secure/asec 0700 root root
+
+ # Secure container public mount points.
+ mkdir /mnt/asec 0700 root system
+ mount tmpfs tmpfs /mnt/asec mode=0755,gid=1000
+
+ # Filesystem image public mount points.
+ mkdir /mnt/obb 0700 root system
+ mount tmpfs tmpfs /mnt/obb mode=0755,gid=1000
+
+ mkdir /sd-ext 0771 system system
+
+ write /proc/sys/kernel/panic_on_oops 1
+ write /proc/sys/kernel/hung_task_timeout_secs 0
+ write /proc/cpu/alignment 4
+ write /proc/sys/kernel/sched_latency_ns 10000000
+ write /proc/sys/kernel/sched_wakeup_granularity_ns 2000000
+ write /proc/sys/kernel/sched_compat_yield 1
+ write /proc/sys/kernel/sched_child_runs_first 0
+
+# Create cgroup mount points for process groups
+ mkdir /dev/cpuctl
+ mount cgroup none /dev/cpuctl cpu
+ chown system system /dev/cpuctl
+ chown system system /dev/cpuctl/tasks
+ chmod 0777 /dev/cpuctl/tasks
+ write /dev/cpuctl/cpu.shares 1024
+
+ mkdir /dev/cpuctl/fg_boost
+ chown system system /dev/cpuctl/fg_boost/tasks
+ chmod 0777 /dev/cpuctl/fg_boost/tasks
+ write /dev/cpuctl/fg_boost/cpu.shares 1024
+
+ mkdir /dev/cpuctl/bg_non_interactive
+ chown system system /dev/cpuctl/bg_non_interactive/tasks
+ chmod 0777 /dev/cpuctl/bg_non_interactive/tasks
+ # 5.0 %
+ write /dev/cpuctl/bg_non_interactive/cpu.shares 52
+
+on fs
+# mount mtd partitions
+ # Mount /system rw first to give the filesystem a chance to save a checkpoint
+ mount yaffs2 mtd@system /system
+
+
+on boot
+# basic network init
+ ifup lo
+ hostname localhost
+ domainname localdomain
+
+# set RLIMIT_NICE to allow priorities from 19 to -20
+ setrlimit 13 40 40
+
+# Define the oom_adj values for the classes of processes that can be
+# killed by the kernel. These are used in ActivityManagerService.
+ setprop ro.FOREGROUND_APP_ADJ 0
+ setprop ro.VISIBLE_APP_ADJ 1
+ setprop ro.PERCEPTIBLE_APP_ADJ 2
+ setprop ro.HEAVY_WEIGHT_APP_ADJ 3
+ setprop ro.SECONDARY_SERVER_ADJ 4
+ setprop ro.BACKUP_APP_ADJ 5
+ setprop ro.HOME_APP_ADJ 6
+ setprop ro.HIDDEN_APP_MIN_ADJ 7
+ setprop ro.EMPTY_APP_ADJ 15
+
+# Define the memory thresholds at which the above process classes will
+# be killed. These numbers are in pages (4k).
+ setprop ro.FOREGROUND_APP_MEM 2048
+ setprop ro.VISIBLE_APP_MEM 3072
+ setprop ro.PERCEPTIBLE_APP_MEM 4096
+ setprop ro.HEAVY_WEIGHT_APP_MEM 4096
+ setprop ro.SECONDARY_SERVER_MEM 6144
+ setprop ro.BACKUP_APP_MEM 6144
+ setprop ro.HOME_APP_MEM 6144
+ setprop ro.HIDDEN_APP_MEM 7168
+ setprop ro.EMPTY_APP_MEM 8192
+
+# Write value must be consistent with the above properties.
+# Note that the driver only supports 6 slots, so we have combined some of
+# the classes into the same memory level; the associated processes of higher
+# classes will still be killed first.
+ write /sys/module/lowmemorykiller/parameters/adj 0,1,2,4,7,15
+
+ write /proc/sys/vm/overcommit_memory 1
+ write /proc/sys/vm/min_free_order_shift 4
+ write /sys/module/lowmemorykiller/parameters/minfree 2048,3072,4096,6144,7168,8192
+
+ # Set init its forked children's oom_adj.
+ write /proc/1/oom_adj -16
+
+ # Tweak background writeout
+ write /proc/sys/vm/dirty_expire_centisecs 200
+ write /proc/sys/vm/dirty_background_ratio 5
+
+ # Permissions for System Server and daemons.
+ chown radio system /sys/android_power/state
+ chown radio system /sys/android_power/request_state
+ chown radio system /sys/android_power/acquire_full_wake_lock
+ chown radio system /sys/android_power/acquire_partial_wake_lock
+ chown radio system /sys/android_power/release_wake_lock
+ chown radio system /sys/power/state
+ chown radio system /sys/power/wake_lock
+ chown radio system /sys/power/wake_unlock
+ chmod 0660 /sys/power/state
+ chmod 0660 /sys/power/wake_lock
+ chmod 0660 /sys/power/wake_unlock
+ chown system system /sys/class/timed_output/vibrator/enable
+ chown system system /sys/class/leds/keyboard-backlight/brightness
+ chown system system /sys/class/leds/lcd-backlight/brightness
+ chown system system /sys/class/leds/button-backlight/brightness
+ chown system system /sys/class/leds/jogball-backlight/brightness
+ chown system system /sys/class/leds/red/brightness
+ chown system system /sys/class/leds/green/brightness
+ chown system system /sys/class/leds/blue/brightness
+ chown system system /sys/class/leds/red/device/grpfreq
+ chown system system /sys/class/leds/red/device/grppwm
+ chown system system /sys/class/leds/red/device/blink
+ chown system system /sys/class/leds/red/brightness
+ chown system system /sys/class/leds/green/brightness
+ chown system system /sys/class/leds/blue/brightness
+ chown system system /sys/class/leds/red/device/grpfreq
+ chown system system /sys/class/leds/red/device/grppwm
+ chown system system /sys/class/leds/red/device/blink
+ chown system system /sys/class/timed_output/vibrator/enable
+ chown system system /sys/module/sco/parameters/disable_esco
+ chown system system /sys/kernel/ipv4/tcp_wmem_min
+ chown system system /sys/kernel/ipv4/tcp_wmem_def
+ chown system system /sys/kernel/ipv4/tcp_wmem_max
+ chown system system /sys/kernel/ipv4/tcp_rmem_min
+ chown system system /sys/kernel/ipv4/tcp_rmem_def
+ chown system system /sys/kernel/ipv4/tcp_rmem_max
+ chown root radio /proc/cmdline
+
+# Define TCP buffer sizes for various networks
+# ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
+ setprop net.tcp.buffersize.default 4096,87380,110208,4096,16384,110208
+ setprop net.tcp.buffersize.wifi 4095,87380,110208,4096,16384,110208
+ setprop net.tcp.buffersize.umts 4094,87380,110208,4096,16384,110208
+ setprop net.tcp.buffersize.edge 4093,26280,35040,4096,16384,35040
+ setprop net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680
+
+ class_start default
+
+## Daemon processes to be run by init.
+##
+service ueventd /sbin/ueventd
+ critical
+
+
+# adbd is controlled by the persist.service.adb.enable system property
+service adbd /sbin/adbd
+ disabled
+
+# adbd on at boot in emulator
+on property:ro.kernel.qemu=1
+ start adbd
+
+on property:persist.service.adb.enable=1
+ start adbd
+
+on property:persist.service.adb.enable=0
+ stop adbd
+
diff --git a/media_profiles.xml b/media_profiles.xml
new file mode 100644
index 0000000..788dbd8
--- /dev/null
+++ b/media_profiles.xml
@@ -0,0 +1,215 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2010 The Android Open Source 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.
+-->
+<!DOCTYPE MediaSettings [
+<!ELEMENT MediaSettings (CamcorderProfiles,
+ EncoderOutputFileFormat+,
+ VideoEncoderCap+,
+ AudioEncoderCap+,
+ VideoDecoderCap,
+ AudioDecoderCap)>
+<!ELEMENT CamcorderProfiles (EncoderProfile+, ImageEncoding+, ImageDecoding, Camera)>
+<!ELEMENT EncoderProfile (Video, Audio)>
+<!ATTLIST EncoderProfile quality (high|low) #REQUIRED>
+<!ATTLIST EncoderProfile fileFormat (mp4|3gp) #REQUIRED>
+<!ATTLIST EncoderProfile duration (30|60) #REQUIRED>
+<!ATTLIST EncoderProfile cameraId (0|1) #REQUIRED>
+<!ELEMENT Video EMPTY>
+<!ATTLIST Video codec (h264|h263|m4v) #REQUIRED>
+<!ATTLIST Video bitRate CDATA #REQUIRED>
+<!ATTLIST Video width CDATA #REQUIRED>
+<!ATTLIST Video height CDATA #REQUIRED>
+<!ATTLIST Video frameRate CDATA #REQUIRED>
+<!ELEMENT Audio EMPTY>
+<!ATTLIST Audio codec (amrnb|amrwb|aac) #REQUIRED>
+<!ATTLIST Audio bitRate CDATA #REQUIRED>
+<!ATTLIST Audio sampleRate CDATA #REQUIRED>
+<!ATTLIST Audio channels (1|2) #REQUIRED>
+<!ELEMENT ImageEncoding EMPTY>
+<!ATTLIST ImageEncoding quality (90|80|70|60|50|40) #REQUIRED>
+<!ELEMENT ImageDecoding EMPTY>
+<!ATTLIST ImageDecoding memCap CDATA #REQUIRED>
+<!ELEMENT Camera EMPTY>
+<!ELEMENT EncoderOutputFileFormat EMPTY>
+<!ATTLIST EncoderOutputFileFormat name (mp4|3gp) #REQUIRED>
+<!ELEMENT VideoEncoderCap EMPTY>
+<!ATTLIST VideoEncoderCap name (h264|h263|m4v|wmv) #REQUIRED>
+<!ATTLIST VideoEncoderCap enabled (true|false) #REQUIRED>
+<!ATTLIST VideoEncoderCap minBitRate CDATA #REQUIRED>
+<!ATTLIST VideoEncoderCap maxBitRate CDATA #REQUIRED>
+<!ATTLIST VideoEncoderCap minFrameWidth CDATA #REQUIRED>
+<!ATTLIST VideoEncoderCap maxFrameWidth CDATA #REQUIRED>
+<!ATTLIST VideoEncoderCap minFrameHeight CDATA #REQUIRED>
+<!ATTLIST VideoEncoderCap maxFrameHeight CDATA #REQUIRED>
+<!ATTLIST VideoEncoderCap minFrameRate CDATA #REQUIRED>
+<!ATTLIST VideoEncoderCap maxFrameRate CDATA #REQUIRED>
+<!ELEMENT AudioEncoderCap EMPTY>
+<!ATTLIST AudioEncoderCap name (amrnb|amrwb|aac|wma) #REQUIRED>
+<!ATTLIST AudioEncoderCap enabled (true|false) #REQUIRED>
+<!ATTLIST AudioEncoderCap minBitRate CDATA #REQUIRED>
+<!ATTLIST AudioEncoderCap maxBitRate CDATA #REQUIRED>
+<!ATTLIST AudioEncoderCap minSampleRate CDATA #REQUIRED>
+<!ATTLIST AudioEncoderCap maxSampleRate CDATA #REQUIRED>
+<!ATTLIST AudioEncoderCap minChannels (1|2) #REQUIRED>
+<!ATTLIST AudioEncoderCap maxChannels (1|2) #REQUIRED>
+<!ELEMENT VideoDecoderCap EMPTY>
+<!ATTLIST VideoDecoderCap name (wmv) #REQUIRED>
+<!ATTLIST VideoDecoderCap enabled (true|false) #REQUIRED>
+<!ELEMENT AudioDecoderCap EMPTY>
+<!ATTLIST AudioDecoderCap name (wma) #REQUIRED>
+<!ATTLIST AudioDecoderCap enabled (true|false) #REQUIRED>
+]>
+<!--
+ This file is used to declare the multimedia profiles and capabilities
+ on an android-powered device.
+-->
+<MediaSettings>
+ <!-- Each camcorder profile defines a set of predefined configuration parameters -->
+ <CamcorderProfiles cameraId="0">
+ <EncoderProfile quality="hd" fileFormat="mp4" duration="60">
+ <Video codec="h264"
+ bitRate="12000000"
+ width="1280"
+ height="720"
+ frameRate="30" />
+
+ <Audio codec="aac"
+ bitRate="96000"
+ sampleRate="16000"
+ channels="1" />
+ </EncoderProfile>
+
+ <EncoderProfile quality="high" fileFormat="mp4" duration="60">
+ <Video codec="h264"
+ bitRate="3000000"
+ width="720"
+ height="480"
+ frameRate="30" />
+
+ <Audio codec="aac"
+ bitRate="96000"
+ sampleRate="16000"
+ channels="1" />
+ </EncoderProfile>
+
+ <EncoderProfile quality="low" fileFormat="3gp" duration="30">
+ <Video codec="h264"
+ bitRate="256000"
+ width="176"
+ height="144"
+ frameRate="30" />
+
+ <Audio codec="amrnb"
+ bitRate="12200"
+ sampleRate="8000"
+ channels="1" />
+
+ </EncoderProfile>
+
+ <ImageEncoding quality="90" />
+ <ImageEncoding quality="80" />
+ <ImageEncoding quality="70" />
+ <ImageDecoding memCap="20000000" />
+
+ </CamcorderProfiles>
+
+ <CamcorderProfiles cameraId="1">
+
+ <EncoderProfile quality="high" fileFormat="mp4" duration="60">
+ <Video codec="h264"
+ bitRate="1000000"
+ width="640"
+ height="480"
+ frameRate="30" />
+
+ <Audio codec="aac"
+ bitRate="96000"
+ sampleRate="16000"
+ channels="1" />
+ </EncoderProfile>
+
+ <EncoderProfile quality="low" fileFormat="3gp" duration="30">
+ <Video codec="h264"
+ bitRate="256000"
+ width="176"
+ height="144"
+ frameRate="30" />
+
+ <Audio codec="amrnb"
+ bitRate="12200"
+ sampleRate="8000"
+ channels="1" />
+
+ </EncoderProfile>
+
+ <ImageEncoding quality="90" />
+ <ImageEncoding quality="80" />
+ <ImageEncoding quality="70" />
+ <ImageDecoding memCap="20000000" />
+
+ </CamcorderProfiles>
+
+
+ <EncoderOutputFileFormat name="3gp" />
+ <EncoderOutputFileFormat name="mp4" />
+
+ <!--
+ If a codec is not enabled, it is invisible to the applications
+ In other words, the applications won't be able to use the codec
+ or query the capabilities of the codec at all if it is disabled
+ -->
+ <VideoEncoderCap name="h264" enabled="true"
+ minBitRate="64000" maxBitRate="12000000"
+ minFrameWidth="176" maxFrameWidth="1280"
+ minFrameHeight="144" maxFrameHeight="720"
+ minFrameRate="1" maxFrameRate="30" />
+
+ <VideoEncoderCap name="h263" enabled="true"
+ minBitRate="64000" maxBitRate="1000000"
+ minFrameWidth="176" maxFrameWidth="1280"
+ minFrameHeight="144" maxFrameHeight="720"
+ minFrameRate="1" maxFrameRate="30" />
+
+ <VideoEncoderCap name="m4v" enabled="true"
+ minBitRate="64000" maxBitRate="2000000"
+ minFrameWidth="176" maxFrameWidth="1280"
+ minFrameHeight="144" maxFrameHeight="720"
+ minFrameRate="1" maxFrameRate="30" />
+
+ <AudioEncoderCap name="aac" enabled="true"
+ minBitRate="8192" maxBitRate="96000"
+ minSampleRate="8000" maxSampleRate="16000"
+ minChannels="1" maxChannels="1" />
+
+ <AudioEncoderCap name="amrwb" enabled="true"
+ minBitRate="6600" maxBitRate="23050"
+ minSampleRate="16000" maxSampleRate="16000"
+ minChannels="1" maxChannels="1" />
+
+ <AudioEncoderCap name="amrnb" enabled="true"
+ minBitRate="5525" maxBitRate="12200"
+ minSampleRate="8000" maxSampleRate="8000"
+ minChannels="1" maxChannels="1" />
+
+ <!--
+ FIXME:
+ We do not check decoder capabilities at present
+ At present, we only check whether windows media is visible
+ for TEST applications. For other applications, we do
+ not perform any checks at all.
+ -->
+ <VideoDecoderCap name="wmv" enabled="false"/>
+ <AudioDecoderCap name="wma" enabled="false"/>
+</MediaSettings>
diff --git a/mxt224_ts_input.idc b/mxt224_ts_input.idc
new file mode 100644
index 0000000..f754999
--- /dev/null
+++ b/mxt224_ts_input.idc
@@ -0,0 +1,52 @@
+# Copyright (C) 2010 The Android Open Source 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.
+
+#
+# Input Device Calibration File for the Crespo touch screen.
+#
+# These calibration values are derived from empirical measurements
+# and may not be appropriate for use with other touch screens.
+# Refer to the input device calibration documentation for more details.
+#
+
+# Touch Size
+touch.touchSize.calibration = pressure
+
+# Tool Size
+# Driver reports tool size as an area measurement.
+#
+# Based on empirical measurements, we estimate the size of the tool
+# using size = sqrt(22 * rawToolArea + 0) * 9.2 + 0.
+touch.toolSize.calibration = area
+touch.toolSize.areaScale = 22
+touch.toolSize.areaBias = 0
+touch.toolSize.linearScale = 9.2
+touch.toolSize.linearBias = 0
+touch.toolSize.isSummed = 0
+
+# Pressure
+# Driver reports signal strength as pressure.
+#
+# A normal thumb touch typically registers about 100 signal strength
+# units although we don't expect these values to be accurate.
+touch.pressure.calibration = amplitude
+touch.pressure.source = default
+touch.pressure.scale = 0.01
+
+# Size
+touch.size.calibration = normalized
+
+# Orientation
+touch.orientation.calibration = none
+
diff --git a/overlay/frameworks/base/core/res/res/drawable-hdpi/default_wallpaper.jpg b/overlay/frameworks/base/core/res/res/drawable-hdpi/default_wallpaper.jpg
new file mode 100644
index 0000000..811149b
--- /dev/null
+++ b/overlay/frameworks/base/core/res/res/drawable-hdpi/default_wallpaper.jpg
Binary files differ
diff --git a/overlay/frameworks/base/core/res/res/values-de/arrays.xml b/overlay/frameworks/base/core/res/res/values-de/arrays.xml
new file mode 100644
index 0000000..7f97684
--- /dev/null
+++ b/overlay/frameworks/base/core/res/res/values-de/arrays.xml
@@ -0,0 +1,26 @@
+<!--
+/* //device/apps/common/assets/res/any/colors.xml
+**
+** Copyright 2006, The Android Open Source 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.
+*/
+-->
+
+<!-- Defines the shutdown options shown in the reboot dialog. -->
+<resources>
+ <array name="shutdown_reboot_options">
+ <item>Neu starten</item>
+ <item>Recovery</item>
+ </array>
+</resources>
diff --git a/overlay/frameworks/base/core/res/res/values-fi-rFI/arrays.xml b/overlay/frameworks/base/core/res/res/values-fi-rFI/arrays.xml
new file mode 100644
index 0000000..00eb6cb
--- /dev/null
+++ b/overlay/frameworks/base/core/res/res/values-fi-rFI/arrays.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/* //device/apps/common/assets/res/any/colors.xml
+**
+** Copyright 2006, Google Inc.
+**
+** 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.
+*/
+-->
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+
+ <!-- Defines the shutdown options shown in the reboot dialog. -->
+ <array name="shutdown_reboot_options">
+ <item>Käynnistä uudelleen</item>
+ <item>Recovery</item>
+ </array>
+
+</resources>
diff --git a/overlay/frameworks/base/core/res/res/values-fr/arrays.xml b/overlay/frameworks/base/core/res/res/values-fr/arrays.xml
new file mode 100644
index 0000000..69eeb7a
--- /dev/null
+++ b/overlay/frameworks/base/core/res/res/values-fr/arrays.xml
@@ -0,0 +1,25 @@
+<!--
+/* //device/apps/common/assets/res/any/colors.xml
+**
+** Copyright 2006, The Android Open Source 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.
+*/
+-->
+<resources>
+ <!-- Defines the shutdown options shown in the reboot dialog. -->
+ <array name="shutdown_reboot_options">
+ <item>Redémarrage</item>
+ <item>Recovery</item>
+ </array>
+</resources>
diff --git a/overlay/frameworks/base/core/res/res/values-it/arrays.xml b/overlay/frameworks/base/core/res/res/values-it/arrays.xml
new file mode 100644
index 0000000..3984c9a
--- /dev/null
+++ b/overlay/frameworks/base/core/res/res/values-it/arrays.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/* //device/apps/common/assets/res/any/colors.xml
+**
+** Copyright 2006, The Android Open Source 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.
+*/
+-->
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+
+
+
+ <!-- Defines the shutdown options shown in the reboot dialog. -->
+ <array name="shutdown_reboot_options">
+ <item>Riavvia</item>
+ <item>Recovery</item>
+ </array>
+
+
+</resources>
diff --git a/overlay/frameworks/base/core/res/res/values-pt-rBR/arrays.xml b/overlay/frameworks/base/core/res/res/values-pt-rBR/arrays.xml
new file mode 100755
index 0000000..7cde789
--- /dev/null
+++ b/overlay/frameworks/base/core/res/res/values-pt-rBR/arrays.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/* //device/apps/common/assets/res/any/colors.xml
+**
+** Copyright 2006, Google Inc.
+**
+** 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.
+*/
+-->
+<resources>
+
+ <!-- Do not translate. -->
+ <integer-array name="maps_starting_lat_lng">
+ <item>-22863878</item>
+ <item>-43244097</item>
+ </integer-array>
+ <!-- Do not translate. -->
+ <integer-array name="maps_starting_zoom">
+ <item>3</item>
+ </integer-array>
+
+ <array name="shutdown_reboot_options">
+ <item>Reiniciar</item>
+ <item>Recuperação</item>
+ </array>
+</resources>
diff --git a/overlay/frameworks/base/core/res/res/values-ru/arrays.xml b/overlay/frameworks/base/core/res/res/values-ru/arrays.xml
new file mode 100644
index 0000000..88a5b21
--- /dev/null
+++ b/overlay/frameworks/base/core/res/res/values-ru/arrays.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+
+ <array name="shutdown_reboot_options">
+ <item>Перезагрузить</item>
+ <item>Recovery</item>
+ </array>
+
+</resources>
diff --git a/overlay/frameworks/base/core/res/res/values-sv/arrays.xml b/overlay/frameworks/base/core/res/res/values-sv/arrays.xml
new file mode 100644
index 0000000..d5adb37
--- /dev/null
+++ b/overlay/frameworks/base/core/res/res/values-sv/arrays.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/* //device/apps/common/assets/res/any/colors.xml
+**
+** Copyright 2006, The Android Open Source 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.
+*/
+-->
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+
+ <!-- Defines the shutdown options shown in the reboot dialog. -->
+ <array name="shutdown_reboot_options">
+ <item>Omstart</item>
+ <item>Recovery</item>
+ </array>
+
+</resources>
diff --git a/overlay/frameworks/base/core/res/res/values-uk/arrays.xml b/overlay/frameworks/base/core/res/res/values-uk/arrays.xml
new file mode 100644
index 0000000..9b0081d
--- /dev/null
+++ b/overlay/frameworks/base/core/res/res/values-uk/arrays.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+
+ <array name="shutdown_reboot_options">
+ <item>Перезавантажити</item>
+ <item>Реж. відновлення</item>
+ </array>
+
+</resources>
diff --git a/overlay/frameworks/base/core/res/res/values-zh-rTW/arrays.xml b/overlay/frameworks/base/core/res/res/values-zh-rTW/arrays.xml
new file mode 100644
index 0000000..fca8906
--- /dev/null
+++ b/overlay/frameworks/base/core/res/res/values-zh-rTW/arrays.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/* //device/apps/common/assets/res/any/colors.xml
+**
+** Copyright 2006, Google Inc.
+**
+** 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.
+*/
+-->
+<resources>
+
+ <!-- Do not translate. -->
+ <integer-array name="maps_starting_lat_lng">
+ <item>25022112</item>
+ <item>121478019</item>
+ </integer-array>
+ <!-- Do not translate. -->
+ <integer-array name="maps_starting_zoom">
+ <item>3</item>
+ </integer-array>
+
+
+ <!-- Defines the shutdown options shown in the reboot dialog. -->
+ <array name="shutdown_reboot_options">
+ <item>重新開機</item>
+ <item>Recovery</item>
+ </array>
+
+</resources>
diff --git a/overlay/frameworks/base/core/res/res/values/arrays.xml b/overlay/frameworks/base/core/res/res/values/arrays.xml
new file mode 100644
index 0000000..3b32312
--- /dev/null
+++ b/overlay/frameworks/base/core/res/res/values/arrays.xml
@@ -0,0 +1,125 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/* //device/apps/common/assets/res/any/colors.xml
+**
+** Copyright 2006, The Android Open Source 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.
+*/
+-->
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+
+ <!-- Do not translate. These are all of the drawable resources that should be preloaded by
+ the zygote process before it starts forking application processes. -->
+ <array name="preloaded_drawables">
+ <item>@drawable/sym_def_app_icon</item>
+ <item>@drawable/arrow_down_float</item>
+ <item>@drawable/btn_check</item>
+ <item>@drawable/btn_check_label_background</item>
+ <item>@drawable/btn_check_off</item>
+ <item>@drawable/btn_check_on</item>
+ <item>@drawable/btn_default</item>
+ <item>@drawable/btn_default_small</item>
+ <item>@drawable/btn_dropdown</item>
+ <item>@drawable/btn_plus</item>
+ <item>@drawable/btn_minus</item>
+ <item>@drawable/btn_radio</item>
+ <item>@drawable/btn_star</item>
+ <item>@drawable/btn_toggle</item>
+ <item>@drawable/ic_emergency</item>
+ <item>@drawable/divider_horizontal_bright</item>
+ <item>@drawable/divider_horizontal_dark</item>
+ <item>@drawable/edit_text</item>
+ <item>@drawable/expander_group</item>
+ <item>@drawable/list_selector_background</item>
+ <item>@drawable/menu_background</item>
+ <item>@drawable/menu_background_fill_parent_width</item>
+ <item>@drawable/menu_selector</item>
+ <item>@drawable/panel_background</item>
+ <item>@drawable/popup_bottom_bright</item>
+ <item>@drawable/popup_bottom_dark</item>
+ <item>@drawable/popup_bottom_medium</item>
+ <item>@drawable/popup_center_bright</item>
+ <item>@drawable/popup_center_dark</item>
+ <item>@drawable/popup_full_dark</item>
+ <item>@drawable/popup_top_bright</item>
+ <item>@drawable/popup_top_dark</item>
+ <item>@drawable/progress_horizontal</item>
+ <item>@drawable/progress_indeterminate_horizontal</item>
+ <item>@drawable/progress_small</item>
+ <item>@drawable/progress_small_titlebar</item>
+ <item>@drawable/screen_background_dark</item>
+ <item>@drawable/screen_background_light</item>
+ <item>@drawable/scrollbar_handle_horizontal</item>
+ <item>@drawable/scrollbar_handle_vertical</item>
+ <item>@drawable/spinner_dropdown_background</item>
+ <item>@drawable/text_select_handle_left</item>
+ <item>@drawable/text_select_handle_middle</item>
+ <item>@drawable/text_select_handle_right</item>
+ <item>@drawable/title_bar</item>
+ <item>@drawable/title_bar_shadow</item>
+ <!-- Visual lock screen -->
+ <item>@drawable/indicator_code_lock_drag_direction_green_up</item>
+ <item>@drawable/indicator_code_lock_drag_direction_red_up</item>
+ <item>@drawable/indicator_code_lock_point_area_default</item>
+ <item>@drawable/indicator_code_lock_point_area_green</item>
+ <item>@drawable/indicator_code_lock_point_area_red</item>
+ <!-- overscroll -->
+ <item>@drawable/overscroll_glow</item>
+ <item>@drawable/overscroll_edge</item>
+ </array>
+
+ <!-- Do not translate. These are all of the color state list resources that should be
+ preloaded by the zygote process before it starts forking application processes. -->
+ <array name="preloaded_color_state_lists">
+ <item>@color/hint_foreground_dark</item>
+ <item>@color/hint_foreground_light</item>
+ <item>@color/primary_text_dark</item>
+ <item>@color/primary_text_dark_disable_only</item>
+ <item>@color/primary_text_light</item>
+ <item>@color/primary_text_light_disable_only</item>
+ <item>@color/primary_text_light_nodisable</item>
+ <item>@color/secondary_text_dark</item>
+ <item>@color/secondary_text_light</item>
+ <item>@color/tab_indicator_text</item>
+ <item>@color/tertiary_text_dark</item>
+ <item>@color/tertiary_text_light</item>
+ <item>#ff000000</item>
+ <item>#00000000</item>
+ <item>#ffffffff</item>
+ </array>
+
+ <!-- Do not translate. -->
+ <integer-array name="maps_starting_lat_lng">
+ <item>36149777</item>
+ <item>-95993398</item>
+ </integer-array>
+ <!-- Do not translate. -->
+ <integer-array name="maps_starting_zoom">
+ <item>3</item>
+ </integer-array>
+
+ <!-- Defines the shutdown options shown in the reboot dialog. -->
+ <array name="shutdown_reboot_options">
+ <item>Reboot</item>
+ <item>Recovery</item>
+ </array>
+
+ <!-- Do not translate. Defines the shutdown actions passed to the kernel.
+ The first item should be empty for regular reboot. -->
+ <string-array name="shutdown_reboot_actions">
+ <item></item>
+ <item>recovery</item>
+ </string-array>
+
+</resources>
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
new file mode 100644
index 0000000..6336d69
--- /dev/null
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -0,0 +1,185 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 2009, The Android Open Source 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.
+*/
+-->
+
+<!-- These resources are around just to allow their values to be customized
+ for different hardware and product builds. -->
+<resources>
+ <!-- Flag indicating whether we should enable the automatic brightness in Settings.
+ config_hardware_automatic_brightness_available is not set, so we will use software implementation -->
+ <bool name="config_automatic_brightness_available">true</bool>
+
+ <!-- There is no charging LED. -->
+ <bool name="config_unplugTurnsOnScreen">true</bool>
+
+ <!-- Our amoled doesn't animate well. -->
+ <bool name="config_animateScreenLights">false</bool>
+
+ <!-- disable menu hard key on Crespo in non-pattern lockscreen -->
+ <bool name="config_disableMenuKeyInLockScreen">true</bool>
+
+ <!-- Array of light sensor LUX values to define our levels for auto backlight brightness support.
+ The N entries of this array define N + 1 zones as follows:
+
+ Zone 0: 0 <= LUX < array[0]
+ Zone 1: array[0] <= LUX < array[1]
+ ...
+ Zone N: array[N - 1] <= LUX < array[N]
+ Zone N + 1: array[N] <= LUX < infinity
+
+ Must be overridden in platform specific overlays -->
+ <integer-array name="config_autoBrightnessLevels">
+ <item>10</item>
+ <item>160</item>
+ <item>225</item>
+ <item>320</item>
+ <item>640</item>
+ <item>1280</item>
+ <item>2600</item>
+ <item>10240</item>
+ </integer-array>
+
+ <!-- Array of output values for LCD backlight corresponding to the LUX values
+ in the config_autoBrightnessLevels array. This array should have size one greater
+ than the size of the config_autoBrightnessLevels array.
+ -->
+ <integer-array name="config_autoBrightnessLcdBacklightValues">
+ <item>20</item>
+ <item>20</item>
+ <item>20</item>
+ <item>20</item>
+ <item>35</item>
+ <item>50</item>
+ <item>50</item>
+ <item>100</item>
+ <item>255</item>
+ </integer-array>
+
+ <!-- Array of output values for button backlight corresponding to the LUX values
+ in the config_autoBrightnessLevels array. This array should have size one greater
+ than the size of the config_autoBrightnessLevels array.
+ -->
+ <integer-array name="config_autoBrightnessButtonBacklightValues">
+ <item>255</item>
+ <item>255</item>
+ <item>0</item>
+ <item>0</item>
+ <item>0</item>
+ <item>0</item>
+ <item>0</item>
+ <item>0</item>
+ <item>0</item>
+ </integer-array>
+
+ <!-- Array of output values for keyboard backlight corresponding to the LUX values
+ in the config_autoBrightnessLevels array. This array should have size one greater
+ than the size of the config_autoBrightnessLevels array.
+ Crespo has no keyboard so all values are zero.
+ -->
+ <integer-array name="config_autoBrightnessKeyboardBacklightValues">
+ <item>0</item>
+ <item>0</item>
+ <item>0</item>
+ <item>0</item>
+ <item>0</item>
+ <item>0</item>
+ <item>0</item>
+ <item>0</item>
+ <item>0</item>
+ </integer-array>
+
+ <!-- Component name of the default wallpaper. This will be ImageWallpaper if not
+ specified -->
+ <string name="default_wallpaper_component">com.android.wallpaper/.nexus.NexusWallpaper</string>
+
+ <integer name="config_deskDockKeepsScreenOn">0</integer>
+ <integer name="config_carDockKeepsScreenOn">1</integer>
+
+ <!-- Default color for notification LED is white -->
+ <color name="config_defaultNotificationColor">#ffffffff</color>
+
+ <!-- Default blink frequency for notification LED is 9 seconds. -->
+ <integer name="config_defaultNotificationLedOff">9000</integer>
+
+ <!-- Component name of the service providing network location support. -->
+ <string name="config_networkLocationProvider">com.google.android.location.NetworkLocationProvider</string>
+
+ <!-- Component name of the service providing geocoder API support. -->
+ <string name="config_geocodeProvider">com.google.android.location.GeocodeProvider</string>
+
+
+ <!-- XXXXX NOTE THE FOLLOWING RESOURCES USE THE WRONG NAMING CONVENTION.
+ Please don't copy them, copy anything else. -->
+
+ <!-- This string array should be overridden by the device to present a list of network
+ attributes. This is used by the connectivity manager to decide which networks can coexist
+ based on the hardware -->
+ <!-- An Array of "[Connection name],[ConnectivityManager connection type],
+ [associated radio-type],[priority] -->
+ <string-array translatable="false" name="networkAttributes">
+ <item>"wifi,1,1,1"</item>
+ <item>"mobile,0,0,0"</item>
+ <item>"mobile_mms,2,0,2"</item>
+ <item>"mobile_supl,3,0,2"</item>
+ <item>"mobile_dun,4,0,4"</item>
+ <item>"mobile_hipri,5,0,3"</item>
+ </string-array>
+
+ <!-- List of regexpressions describing the interface (if any) that represent tetherable
+ USB interfaces. If the device doesn't want to support tething over USB this should
+ be empty. An example would be "usb.*" -->
+ <string-array translatable="false" name="config_tether_usb_regexs">
+ <item>"usb0"</item>
+ </string-array>
+
+ <!-- Regex array of allowable upstream ifaces for tethering - for example if you want
+ tethering on a new interface called "foo2" add <item>"foo\\d"</item> to the array -->
+ <string-array translatable="false" name="config_tether_upstream_regexs">
+ <item>"pdp\\d"</item>
+ <item>"eth\\d"</item>
+ </string-array>
+
+ <!-- List of regexpressions describing the interface (if any) that represent tetherable
+ Wifi interfaces. If the device doesn't want to support tethering over Wifi this
+ should be empty. An example would be "softap.*" -->
+ <string-array translatable="false" name="config_tether_wifi_regexs">
+ <item>"wl0.1"</item>
+ </string-array>
+
+
+ <!-- Boolean indicating if we require the use of DUN on mobile for tethering -->
+ <bool translatable="false" name="config_tether_dun_required">false</bool>
+
+ <!-- Vibrator pattern for a very short but reliable vibration for soft keyboard tap -->
+ <integer-array name="config_keyboardTapVibePattern">
+ <item>30</item>
+ </integer-array>
+
+ <!-- Vibrator pattern for feedback about booting with safe mode disabled -->
+ <integer-array name="config_safeModeDisabledVibePattern">
+ <item>1</item>
+ </integer-array>
+
+ <!-- crespo doesn't handle this blur effect very quickly. -->
+ <bool name="config_sf_slowBlur">true</bool>
+
+
+ <!-- Boolean indicating if restoring network selection should be skipped -->
+ <!-- The restoring is handled by modem if it is true -->
+ <bool translatable="false" name="skip_restoring_network_selection">true</bool>
+</resources>
diff --git a/overlay/frameworks/base/core/res/res/xml/power_profile.xml b/overlay/frameworks/base/core/res/res/xml/power_profile.xml
new file mode 100644
index 0000000..a00f060
--- /dev/null
+++ b/overlay/frameworks/base/core/res/res/xml/power_profile.xml
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+**
+** Copyright 2009, The Android Open Source 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.
+*/
+-->
+
+<device name="Android">
+ <item name="none">0</item>
+ <item name="screen.on">49</item>
+ <item name="bluetooth.active">142</item> <!-- In call -->
+ <item name="bluetooth.on">0.3</item>
+ <!-- CPU wakelock held for 830ms on bluetooth headset at command. 43mA * 830 -->
+ <item name="bluetooth.at">35690</item>
+ <item name="screen.full">260</item>
+ <item name="wifi.on">4</item>
+ <item name="wifi.active">120</item>
+ <item name="wifi.scan">220</item>
+ <item name="dsp.audio">88</item>
+ <item name="dsp.video">88</item>
+ <item name="radio.active">185</item>
+ <item name="gps.on">50</item>
+ <item name="battery.capacity">1500</item>
+ <item name="radio.scanning">88</item>
+ <array name="radio.on"> <!-- Strength 0 to BINS-1 -->
+ <value>3.4</value>
+ <value>3.4</value>
+ </array>
+ <array name="cpu.speeds">
+ <value>100000</value>
+ <value>200000</value>
+ <value>400000</value>
+ <value>800000</value>
+ <value>1000000</value>
+ </array>
+ <!-- Power consumption in suspend -->
+ <item name="cpu.idle">1.4</item>
+ <!-- Power consumption due to wake lock held -->
+ <item name="cpu.awake">44</item>
+ <!-- Power consumption at different speeds -->
+ <array name="cpu.active">
+ <value>55.4</value>
+ <value>82.1</value>
+ <value>113.7</value>
+ <value>205.4</value>
+ <value>259.0</value>
+ </array>
+</device>
diff --git a/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml b/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml
new file mode 100644
index 0000000..a6af5fd
--- /dev/null
+++ b/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/**
+ * Copyright (c) 2009, The Android Open Source 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.
+ */
+-->
+<resources>
+ <bool name="def_accelerometer_rotation">true</bool>
+ <bool name="def_screen_brightness_automatic_mode">true</bool>
+</resources>
diff --git a/overlay/frameworks/base/tests/ImfTest/res/values/config.xml b/overlay/frameworks/base/tests/ImfTest/res/values/config.xml
new file mode 100644
index 0000000..157d04a
--- /dev/null
+++ b/overlay/frameworks/base/tests/ImfTest/res/values/config.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/**
+ * Copyright (c) 2009, The Android Open Source 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.
+ */
+-->
+<resources>
+ <bool name="def_expect_ime_autopop">true</bool>
+</resources>
diff --git a/overlay/packages/apps/Contacts/res/values/config.xml b/overlay/packages/apps/Contacts/res/values/config.xml
new file mode 100644
index 0000000..6e48cd8
--- /dev/null
+++ b/overlay/packages/apps/Contacts/res/values/config.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source 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.
+-->
+
+<!-- Crespo-specific Contacts app resources. -->
+<resources>
+ <!-- Enable the onscreen "Dial" button in the dialer. -->
+ <bool name="config_show_onscreen_dial_button">true</bool>
+</resources>
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_grass.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_grass.jpg
new file mode 100644
index 0000000..5518d6d
--- /dev/null
+++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_grass.jpg
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_grass_small.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_grass_small.jpg
new file mode 100644
index 0000000..a1751e2
--- /dev/null
+++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_grass_small.jpg
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_mountains.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_mountains.jpg
new file mode 100644
index 0000000..95c59ea
--- /dev/null
+++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_mountains.jpg
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_mountains_small.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_mountains_small.jpg
new file mode 100644
index 0000000..956e8f0
--- /dev/null
+++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_mountains_small.jpg
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_phasebeam.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_phasebeam.jpg
new file mode 100644
index 0000000..4bc7ff3
--- /dev/null
+++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_phasebeam.jpg
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_phasebeam_small.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_phasebeam_small.jpg
new file mode 100644
index 0000000..f034b33
--- /dev/null
+++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_phasebeam_small.jpg
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_pulse.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_pulse.jpg
new file mode 100644
index 0000000..2f96d02
--- /dev/null
+++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_pulse.jpg
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_pulse_small.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_pulse_small.jpg
new file mode 100644
index 0000000..34ca847
--- /dev/null
+++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_pulse_small.jpg
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_shuttle.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_shuttle.jpg
new file mode 100644
index 0000000..f4a3934
--- /dev/null
+++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_shuttle.jpg
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_shuttle_small.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_shuttle_small.jpg
new file mode 100644
index 0000000..d580182
--- /dev/null
+++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_shuttle_small.jpg
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stars.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stars.jpg
new file mode 100644
index 0000000..8f3ec2d
--- /dev/null
+++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stars.jpg
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stars_small.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stars_small.jpg
new file mode 100644
index 0000000..ba76f18
--- /dev/null
+++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stars_small.jpg
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stream.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stream.jpg
new file mode 100644
index 0000000..fdd4aaf
--- /dev/null
+++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stream.jpg
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stream_small.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stream_small.jpg
new file mode 100644
index 0000000..432d67d
--- /dev/null
+++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stream_small.jpg
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_street_lights.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_street_lights.jpg
new file mode 100644
index 0000000..a8b6880
--- /dev/null
+++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_street_lights.jpg
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_street_lights_small.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_street_lights_small.jpg
new file mode 100644
index 0000000..11c253e
--- /dev/null
+++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_street_lights_small.jpg
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_sunset.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_sunset.jpg
new file mode 100644
index 0000000..660040e
--- /dev/null
+++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_sunset.jpg
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_sunset_small.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_sunset_small.jpg
new file mode 100644
index 0000000..ed79925
--- /dev/null
+++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_sunset_small.jpg
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/values-hdpi/wallpapers.xml b/overlay/packages/apps/Launcher2/res/values-hdpi/wallpapers.xml
new file mode 100644
index 0000000..40033cf
--- /dev/null
+++ b/overlay/packages/apps/Launcher2/res/values-hdpi/wallpapers.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ * Copyright (C) 2009 Google Inc.
+ *
+ * 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.
+ -->
+
+<resources>
+ <string-array name="wallpapers" translatable="false">
+ <item>wallpaper_street_lights</item>
+ <item>wallpaper_stream</item>
+ <item>wallpaper_phasebeam</item>
+ <item>wallpaper_pulse</item>
+ <item>wallpaper_nexusrain</item>
+ <item>wallpaper_stars</item>
+ <item>wallpaper_canyon</item>
+ <item>wallpaper_grass</item>
+ <item>wallpaper_zanzibar</item>
+ <item>wallpaper_cloud</item>
+ <item>wallpaper_monumentvalley</item>
+ <item>wallpaper_mountains</item>
+ <item>wallpaper_sunset</item>
+ <item>wallpaper_goldengate</item>
+ <item>wallpaper_shuttle</item>
+ </string-array>
+</resources>
diff --git a/overlay/packages/apps/Phone/res/values/config.xml b/overlay/packages/apps/Phone/res/values/config.xml
new file mode 100644
index 0000000..69d82c1
--- /dev/null
+++ b/overlay/packages/apps/Phone/res/values/config.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source 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.
+-->
+
+<!-- Crespo-specific phone app resources. -->
+<resources>
+
+ <!-- Enable the onscreen touch UI for all states of the in-call UI. -->
+ <bool name="allow_incoming_call_touch_ui">true</bool>
+ <bool name="allow_in_call_touch_ui">true</bool>
+
+ <!-- This is a device with capacitive buttons, so disable the feature
+ where BACK rejects the current incoming call. (Since it's so
+ easy to press the key accidentally as you pull the phone out of
+ your pocket.) -->
+ <bool name="allow_back_key_to_reject_incoming_call">false</bool>
+
+ <!-- Enable the onscreen "Dial" button in the emergency dialer. -->
+ <bool name="config_show_onscreen_dial_button">true</bool>
+
+ <!-- This device implements a noise suppression device for in call audio-->
+ <bool name="has_in_call_noise_suppression">true</bool>
+
+</resources>
diff --git a/overlay/packages/apps/Settings/res/values/bools.xml b/overlay/packages/apps/Settings/res/values/bools.xml
new file mode 100644
index 0000000..83d1213
--- /dev/null
+++ b/overlay/packages/apps/Settings/res/values/bools.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source 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.
+-->
+
+<resources>
+ <!-- Whether or not there is a notification led that is too intrusive to be pulsing
+ constantly -->
+ <bool name="has_intrusive_led">false</bool>
+ <!-- Whether or not the dock settings are to be displayed for this device when docked -->
+ <bool name="has_dock_settings">true</bool>
+</resources>
diff --git a/overlay/packages/wallpapers/Basic/res/drawable-hdpi/nexus_thumb.png b/overlay/packages/wallpapers/Basic/res/drawable-hdpi/nexus_thumb.png
new file mode 100644
index 0000000..84462e2
--- /dev/null
+++ b/overlay/packages/wallpapers/Basic/res/drawable-hdpi/nexus_thumb.png
Binary files differ
diff --git a/overlay/packages/wallpapers/Basic/res/drawable-hdpi/pyramid_background.png b/overlay/packages/wallpapers/Basic/res/drawable-hdpi/pyramid_background.png
new file mode 100644
index 0000000..2310a91
--- /dev/null
+++ b/overlay/packages/wallpapers/Basic/res/drawable-hdpi/pyramid_background.png
Binary files differ
diff --git a/overlay/packages/wallpapers/Basic/res/raw/nexus.rs b/overlay/packages/wallpapers/Basic/res/raw/nexus.rs
new file mode 100644
index 0000000..df79689
--- /dev/null
+++ b/overlay/packages/wallpapers/Basic/res/raw/nexus.rs
@@ -0,0 +1,313 @@
+// Copyright (C) 2009 The Android Open Source 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.
+
+#pragma version(1)
+#pragma stateVertex(PVOrtho)
+#pragma stateStore(PSSolid)
+
+#define MAX_PULSES 20
+#define MAX_EXTRAS 40
+#define PULSE_SIZE 14 // Size in pixels of a cell
+#define HALF_PULSE_SIZE 7
+#define GLOW_SIZE 64 // Size of the leading glow in pixels
+#define HALF_GLOW_SIZE 32
+#define SPEED 0.2f // (200 / 1000) Pixels per ms
+#define SPEED_VARIANCE 0.3f
+#define PULSE_NORMAL 0
+#define PULSE_EXTRA 1
+#define TRAIL_SIZE 40 // Number of cells in a trail
+#define MAX_DELAY 2000 // Delay between a pulse going offscreen and restarting
+
+struct pulse_s {
+ int pulseType;
+ float originX;
+ float originY;
+ int color;
+ int startTime;
+ float dx;
+ float dy;
+ float scale;
+ int active;
+};
+struct pulse_s gPulses[MAX_PULSES];
+
+struct pulse_s gExtras[MAX_EXTRAS];
+
+int gNow;
+
+
+void setColor(int c) {
+ if (State->mode == 1) {
+ // sholes red
+ color(0.9f, 0.1f, 0.1f, 0.8f);
+ } else if (c == 0) {
+ // red
+ color(1.0f, 0.0f, 0.0f, 0.8f);
+ } else if (c == 1) {
+ // green
+ color(0.0f, 0.8f, 0.0f, 0.8f);
+ } else if (c == 2) {
+ // blue
+ color(0.0f, 0.4f, 0.9f, 0.8f);
+ } else if (c == 3) {
+ // yellow
+ color(1.0f, 0.8f, 0.0f, 0.8f);
+ }
+}
+
+void initPulse(struct pulse_s * pulse, int pulseType) {
+ float scale = randf2(0.7f, 1.7f);
+ pulse->scale = scale;
+ if (randf(1) > 0.5f) {
+ pulse->originX = (int)randf(State->width * 2 / PULSE_SIZE) * PULSE_SIZE;
+ pulse->dx = 0;
+ if (randf(1) > 0.5f) {
+ // Top
+ pulse->originY = 0;
+ pulse->dy = scale;
+ } else {
+ // Bottom
+ pulse->originY = State->height / scale;
+ pulse->dy = -scale;
+ }
+ } else {
+ pulse->originY = (int)randf(State->height / PULSE_SIZE) * PULSE_SIZE;
+ pulse->dy = 0;
+ if (randf(1) > 0.5f) {
+ // Left
+ pulse->originX = 0;
+ pulse->dx = scale;
+ } else {
+ // Right
+ pulse->originX = State->width * 2 / scale;
+ pulse->dx = -scale;
+ }
+ }
+ pulse->startTime = gNow + (int)randf(MAX_DELAY);
+
+ pulse->color = (int)randf(4.0f);
+
+ pulse->pulseType = pulseType;
+ if (pulseType == PULSE_EXTRA) {
+ pulse->active = 0;
+ } else {
+ pulse->active = 1;
+ }
+}
+
+void initPulses() {
+ gNow = uptimeMillis();
+ int i;
+ for (i=0; i<MAX_PULSES; i++) {
+ initPulse(&gPulses[i], PULSE_NORMAL);
+ }
+ for (i=0; i<MAX_EXTRAS; i++) {
+ struct pulse_s * p = &gExtras[i];
+ p->pulseType = PULSE_EXTRA;
+ p->active = 0;
+ }
+}
+
+void drawBackground(int width, int height) {
+ bindProgramFragment(NAMED_PFTextureBG);
+ bindTexture(NAMED_PFTextureBG, 0, NAMED_TBackground);
+ color(1.0f, 1.0f, 1.0f, 1.0f);
+ if (State->rotate) {
+ drawRect(0.0f, 0.0f, height*2, width, 0.0f);
+ } else {
+ drawRect(0.0f, 0.0f, width*2, height, 0.0f);
+ }
+}
+
+void drawPulses(struct pulse_s * pulseSet, int setSize) {
+ bindProgramFragment(NAMED_PFTexture);
+ bindProgramFragmentStore(NAMED_PSBlend);
+
+ float matrix[16];
+ float modelMatrix[16];
+
+ int i;
+ for (i=0; i<setSize; i++) {
+ struct pulse_s * p = &pulseSet[i];
+
+ int delta = gNow - p->startTime;
+
+ if (p->active != 0 && delta >= 0) {
+
+ matrixLoadIdentity(modelMatrix);
+ if (State->rotate) {
+ //matrixLoadRotate(modelMatrix, 90.0f, 0.0f, 0.0f, 1.0f);
+ //matrixTranslate(modelMatrix, 0.0f, -height, 1.0f);
+ // XXX: HAX: do not slide display in landscape
+ } else {
+ matrixTranslate(modelMatrix, -(State->xOffset * State->width), 0, 0);
+ }
+ matrixScale(modelMatrix, p->scale, p->scale, 1.0f);
+ vpLoadModelMatrix(modelMatrix);
+
+ float x = p->originX + (p->dx * SPEED * delta);
+ float y = p->originY + (p->dy * SPEED * delta);
+
+ matrixLoadIdentity(matrix);
+ if (p->dx < 0) {
+ vpLoadTextureMatrix(matrix);
+ float xx = x + (TRAIL_SIZE * PULSE_SIZE);
+ if (xx <= 0) {
+ initPulse(p, p->pulseType);
+ } else {
+ setColor(p->color);
+ bindTexture(NAMED_PFTexture, 0, NAMED_TPulse);
+ drawRect(x, y, xx, y + PULSE_SIZE, 0.0f);
+ bindTexture(NAMED_PFTexture, 0, NAMED_TGlow);
+ drawRect(x + HALF_PULSE_SIZE - HALF_GLOW_SIZE,
+ y + HALF_PULSE_SIZE - HALF_GLOW_SIZE,
+ x + HALF_PULSE_SIZE + HALF_GLOW_SIZE,
+ y + HALF_PULSE_SIZE + HALF_GLOW_SIZE,
+ 0.0f);
+ }
+ } else if (p->dx > 0) {
+ x += PULSE_SIZE; // need to start on the other side of this cell
+ vpLoadTextureMatrix(matrix);
+ float xx = x - (TRAIL_SIZE * PULSE_SIZE);
+ if (xx >= State->width * 2) {
+ initPulse(p, p->pulseType);
+ } else {
+ setColor(p->color);
+ bindTexture(NAMED_PFTexture, 0, NAMED_TPulse);
+ drawRect(x, y, xx, y + PULSE_SIZE, 0.0f);
+ bindTexture(NAMED_PFTexture, 0, NAMED_TGlow);
+ drawRect(x - HALF_PULSE_SIZE - HALF_GLOW_SIZE,
+ y + HALF_PULSE_SIZE - HALF_GLOW_SIZE,
+ x - HALF_PULSE_SIZE + HALF_GLOW_SIZE,
+ y + HALF_PULSE_SIZE + HALF_GLOW_SIZE,
+ 0.0f);
+ }
+ } else if (p->dy < 0) {
+ vpLoadTextureMatrix(matrix);
+ float yy = y + (TRAIL_SIZE * PULSE_SIZE);
+ if (yy <= 0) {
+ initPulse(p, p->pulseType);
+ } else {
+ setColor(p->color);
+ bindTexture(NAMED_PFTexture, 0, NAMED_TPulseVert);
+ drawRect(x, yy, x + PULSE_SIZE, y, 0.0f);
+ bindTexture(NAMED_PFTexture, 0, NAMED_TGlow);
+ drawRect(x + HALF_PULSE_SIZE - HALF_GLOW_SIZE,
+ y + HALF_PULSE_SIZE - HALF_GLOW_SIZE,
+ x + HALF_PULSE_SIZE + HALF_GLOW_SIZE,
+ y + HALF_PULSE_SIZE + HALF_GLOW_SIZE,
+ 0.0f);
+ }
+ } else if (p->dy > 0) {
+ y += PULSE_SIZE; // need to start on the other side of this cell
+ vpLoadTextureMatrix(matrix);
+ float yy = y - (TRAIL_SIZE * PULSE_SIZE);
+ if (yy >= State->height) {
+ initPulse(p, p->pulseType);
+ } else {
+ setColor(p->color);
+ bindTexture(NAMED_PFTexture, 0, NAMED_TPulseVert);
+ drawRect(x, yy, x + PULSE_SIZE, y, 0.0f);
+ bindTexture(NAMED_PFTexture, 0, NAMED_TGlow);
+ drawRect(x + HALF_PULSE_SIZE - HALF_GLOW_SIZE,
+ y - HALF_PULSE_SIZE - HALF_GLOW_SIZE,
+ x + HALF_PULSE_SIZE + HALF_GLOW_SIZE,
+ y - HALF_PULSE_SIZE + HALF_GLOW_SIZE,
+ 0.0f);
+ }
+ }
+ }
+ }
+
+
+ matrixLoadIdentity(matrix);
+ vpLoadTextureMatrix(matrix);
+}
+
+void addTap(int x, int y) {
+ int i;
+ int count = 0;
+ int color = (int)randf(4.0f);
+ float scale = randf2(0.9f, 1.9f);
+ x = (int)(x / PULSE_SIZE) * PULSE_SIZE;
+ y = (int)(y / PULSE_SIZE) * PULSE_SIZE;
+ for (i=0; i<MAX_EXTRAS; i++) {
+ struct pulse_s * p = &gExtras[i];
+ if (p->active == 0) {
+ p->originX = x/scale;
+ p->originY = y/scale;
+ p->scale = scale;
+
+ if (count == 0) {
+ p->dx = scale;
+ p->dy = 0.0f;
+ } else if (count == 1) {
+ p->dx = -scale;
+ p->dy = 0.0f;
+ } else if (count == 2) {
+ p->dx = 0.0f;
+ p->dy = scale;
+ } else if (count == 3) {
+ p->dx = 0.0f;
+ p->dy = -scale;
+ }
+
+ p->active = 1;
+ p->color = color;
+ color++;
+ if (color >= 4) {
+ color = 0;
+ }
+ p->startTime = gNow;
+ count++;
+ if (count == 4) {
+ break;
+ }
+ }
+ }
+}
+
+int main(int index) {
+
+ gNow = uptimeMillis();
+
+ if (Command->command != 0) {
+ //debugF("x", Command->x);
+ //debugF("y", Command->y);
+ Command->command = 0;
+ addTap(Command->x, Command->y);
+ }
+
+ int width = State->width;
+ int height = State->height;
+
+ float matrix[16];
+ matrixLoadIdentity(matrix);
+ if (State->rotate) {
+ //matrixLoadRotate(matrix, 90.0f, 0.0f, 0.0f, 1.0f);
+ //matrixTranslate(matrix, 0.0f, -height, 1.0f);
+ // XXX: HAX: do not slide display in landscape
+ } else {
+ matrixTranslate(matrix, -(State->xOffset * width), 0, 0);
+ }
+
+ vpLoadModelMatrix(matrix);
+
+ drawBackground(width, height);
+
+ drawPulses(gPulses, MAX_PULSES);
+ drawPulses(gExtras, MAX_EXTRAS);
+
+ return 45;
+}
diff --git a/overlay/packages/wallpapers/Basic/res/values/surfacemode.xml b/overlay/packages/wallpapers/Basic/res/values/surfacemode.xml
new file mode 100644
index 0000000..37774ed
--- /dev/null
+++ b/overlay/packages/wallpapers/Basic/res/values/surfacemode.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2010 The Android Open Source 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.
+-->
+<resources>
+ <bool name="use_32bit">true</bool>
+</resources>
diff --git a/qwerty.kl b/qwerty.kl
new file mode 100644
index 0000000..0b1ea74
--- /dev/null
+++ b/qwerty.kl
@@ -0,0 +1,90 @@
+key 399 GRAVE
+key 2 1
+key 3 2
+key 4 3
+key 5 4
+key 6 5
+key 7 6
+key 8 7
+key 9 8
+key 10 9
+key 11 0
+key 1 BACK WAKE_DROPPED
+key 158 BACK WAKE_DROPPED
+key 230 SOFT_RIGHT WAKE
+key 60 SOFT_RIGHT WAKE
+key 107 ENDCALL WAKE_DROPPED
+key 62 ENDCALL WAKE_DROPPED
+key 229 MENU WAKE_DROPPED
+key 139 MENU WAKE_DROPPED
+key 59 MENU WAKE_DROPPED
+key 127 SEARCH WAKE_DROPPED
+key 217 SEARCH WAKE_DROPPED
+key 228 POUND
+key 227 STAR
+key 231 CALL WAKE_DROPPED
+key 61 CALL WAKE_DROPPED
+key 232 DPAD_CENTER WAKE_DROPPED
+key 108 DPAD_DOWN WAKE_DROPPED
+key 103 DPAD_UP WAKE_DROPPED
+key 102 HOME WAKE
+key 105 DPAD_LEFT WAKE_DROPPED
+key 106 DPAD_RIGHT WAKE_DROPPED
+key 115 VOLUME_UP WAKE
+key 114 VOLUME_DOWN WAKE
+key 116 POWER WAKE
+key 212 CAMERA
+
+key 16 Q
+key 17 W
+key 18 E
+key 19 R
+key 20 T
+key 21 Y
+key 22 U
+key 23 I
+key 24 O
+key 25 P
+key 26 LEFT_BRACKET
+key 27 RIGHT_BRACKET
+key 43 BACKSLASH
+
+key 30 A
+key 31 S
+key 32 D
+key 33 F
+key 34 G
+key 35 H
+key 36 J
+key 37 K
+key 38 L
+key 39 SEMICOLON
+key 40 APOSTROPHE
+key 14 DEL
+
+key 44 Z
+key 45 X
+key 46 C
+key 47 V
+key 48 B
+key 49 N
+key 50 M
+key 51 COMMA
+key 52 PERIOD
+key 53 SLASH
+key 28 ENTER
+
+key 56 ALT_LEFT
+key 100 ALT_RIGHT
+key 42 SHIFT_LEFT
+key 54 SHIFT_RIGHT
+key 15 TAB
+key 57 SPACE
+key 150 EXPLORER
+key 155 ENVELOPE
+
+key 12 MINUS
+key 13 EQUALS
+key 215 AT
+
+
diff --git a/recovery.fstab b/recovery.fstab
new file mode 100644
index 0000000..0de500a
--- /dev/null
+++ b/recovery.fstab
@@ -0,0 +1,14 @@
+# mount point fstype device
+
+/recovery mtd recovery
+/boot mtd boot
+/radio mtd radio
+
+/system yaffs2 system
+/cache yaffs2 cache
+/datadata yaffs2 datadata
+
+/sdcard vfat /dev/block/mmcblk0p1
+/data ext4 /dev/block/mmcblk0p2
+
+/emmc vfat /dev/block/mmcblk1p1
diff --git a/recovery.rc b/recovery.rc
new file mode 100644
index 0000000..33be688
--- /dev/null
+++ b/recovery.rc
@@ -0,0 +1,280 @@
+on early-init
+ start ueventd
+
+on init
+
+sysclktz 0
+
+loglevel 9
+
+# setup the global environment
+ export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
+ export LD_LIBRARY_PATH /vendor/lib:/system/lib
+ export ANDROID_BOOTLOGO 1
+ export ANDROID_ROOT /system
+ export ANDROID_ASSETS /system/app
+ export ANDROID_DATA /data
+ export EXTERNAL_STORAGE /mnt/sdcard
+ export PHONE_STORAGE /mnt/emmc
+ export ASEC_MOUNTPOINT /mnt/asec
+ export LOOP_MOUNTPOINT /mnt/obb
+ export BOOTCLASSPATH /system/framework/core.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/core-junit.jar
+
+# symlink /misc to /etc for recovery
+ symlink /misc /etc
+
+# Backward compatibility
+ symlink /sys/kernel/debug /d
+
+# Right now vendor lives on the same filesystem as system,
+# but someday that may change.
+ symlink /system/vendor /vendor
+
+# create temp folder for recovery
+ mkdir /tmp
+
+# create mountpoints
+ mkdir /sdcard 0000 system system
+ mkdir /emmc 0000 system system
+
+# for emergencyboot
+ symlink /sdcard /mnt/sdcard
+
+# Create cgroup mount point for cpu accounting
+ mkdir /acct
+ mount cgroup none /acct cpuacct
+ mkdir /acct/uid
+ mkdir /system
+ mkdir /data 0771 system system
+ mkdir /cache 0770 system cache
+ mkdir /config 0500 root root
+ mkdir /efs
+
+ # Directory for putting things only root should see.
+ mkdir /mnt/secure 0700 root root
+
+ # Directory for staging bindmounts
+ mkdir /mnt/secure/staging 0700 root root
+
+ # Directory-target for where the secure container
+ # imagefile directory will be bind-mounted
+ mkdir /mnt/secure/asec 0700 root root
+
+ # Secure container public mount points.
+ mkdir /mnt/asec 0700 root system
+ mount tmpfs tmpfs /mnt/asec mode=0755,gid=1000
+
+ # Filesystem image public mount points.
+ mkdir /mnt/obb 0700 root system
+ mount tmpfs tmpfs /mnt/obb mode=0755,gid=1000
+
+ write /proc/sys/kernel/panic_on_oops 1
+ write /proc/sys/kernel/hung_task_timeout_secs 0
+ write /proc/cpu/alignment 4
+ write /proc/sys/kernel/sched_latency_ns 10000000
+ write /proc/sys/kernel/sched_wakeup_granularity_ns 2000000
+ write /proc/sys/kernel/sched_compat_yield 1
+ write /proc/sys/kernel/sched_child_runs_first 0
+
+# Create cgroup mount points for process groups
+ mkdir /dev/cpuctl
+ mount cgroup none /dev/cpuctl cpu
+ chown system system /dev/cpuctl
+ chown system system /dev/cpuctl/tasks
+ chmod 0777 /dev/cpuctl/tasks
+ write /dev/cpuctl/cpu.shares 1024
+
+ mkdir /dev/cpuctl/fg_boost
+ chown system system /dev/cpuctl/fg_boost/tasks
+ chmod 0777 /dev/cpuctl/fg_boost/tasks
+ write /dev/cpuctl/fg_boost/cpu.shares 1024
+
+ mkdir /dev/cpuctl/bg_non_interactive
+ chown system system /dev/cpuctl/bg_non_interactive/tasks
+ chmod 0777 /dev/cpuctl/bg_non_interactive/tasks
+ # 5.0 %
+ write /dev/cpuctl/bg_non_interactive/cpu.shares 52
+
+on fs
+# mount mtd partitions
+ # Mount /system rw first to give the filesystem a chance to save a checkpoint
+ mount yaffs2 mtd@system /system
+ #mount yaffs2 mtd@cache /cache
+ #mount ext4 /dev/block/mmcblk0p2 /data nosuid nodev noatime nodiratime noauto_da_alloc
+ #mount yaffs2 mtd@datadata /datadata
+
+on post-fs
+ # once everything is setup, no need to modify /
+ #mount rootfs rootfs / ro remount
+
+ # We chown/chmod /data again so because mount is run as root + defaults
+ chown system system /data
+ chmod 0771 /data
+
+ # Create dump dir and collect dumps.
+ # Do this before we mount cache so eventually we can use cache for
+ # storing dumps on platforms which do not have a dedicated dump partition.
+
+ mkdir /data/dontpanic
+ chown root log /data/dontpanic
+ chmod 0750 /data/dontpanic
+
+ # Collect apanic data, free resources and re-arm trigger
+ copy /proc/apanic_console /data/dontpanic/apanic_console
+ chown root log /data/dontpanic/apanic_console
+ chmod 0640 /data/dontpanic/apanic_console
+
+ copy /proc/apanic_threads /data/dontpanic/apanic_threads
+ chown root log /data/dontpanic/apanic_threads
+ chmod 0640 /data/dontpanic/apanic_threads
+
+ write /proc/apanic_console 1
+
+ # Same reason as /data above
+ chown system cache /cache
+ chmod 0770 /cache
+
+ # This may have been created by the recovery system with odd permissions
+ chown system cache /cache/recovery
+ chmod 0770 /cache/recovery
+
+ #change permissions on vmallocinfo so we can grab it from bugreports
+ chown root log /proc/vmallocinfo
+ chmod 0440 /proc/vmallocinfo
+
+ #change permissions on kmsg & sysrq-trigger so bugreports can grab kthread stacks
+ chown root system /proc/kmsg
+ chmod 0440 /proc/kmsg
+ chown root system /proc/sysrq-trigger
+ chmod 0220 /proc/sysrq-trigger
+
+# create basic filesystem structure
+ mkdir /data/misc 01771 system misc
+ mkdir /data/misc/bluetoothd 0770 bluetooth bluetooth
+ mkdir /data/misc/bluetooth 0770 system system
+ mkdir /data/misc/keystore 0700 keystore keystore
+ mkdir /data/misc/vpn 0770 system system
+ mkdir /data/misc/systemkeys 0700 system system
+ mkdir /data/misc/vpn/profiles 0770 system system
+ # give system access to wpa_supplicant.conf for backup and restore
+ 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/tmp 0771 shell shell
+ mkdir /data/data 0771 system system
+ mkdir /data/app-private 0771 system system
+ mkdir /data/app 0771 system system
+ mkdir /data/property 0700 root root
+
+ # create dalvik-cache and double-check the perms
+ mkdir /data/dalvik-cache 0771 system system
+ chown system system /data/dalvik-cache
+ chmod 0771 /data/dalvik-cache
+
+ # create the lost+found directories, so as to enforce our permissions
+ mkdir /data/lost+found 0770
+ mkdir /cache/lost+found 0770
+
+ # double check the perms, in case lost+found already exists, and set owner
+ chown root root /data/lost+found
+ chmod 0770 /data/lost+found
+ chown root root /cache/lost+found
+ chmod 0770 /cache/lost+found
+
+on boot
+# basic network init
+ ifup lo
+ hostname localhost
+ domainname localdomain
+
+# set RLIMIT_NICE to allow priorities from 19 to -20
+ setrlimit 13 40 40
+
+ # Set init its forked children's oom_adj.
+ write /proc/1/oom_adj -16
+
+ # Tweak background writeout
+ write /proc/sys/vm/dirty_expire_centisecs 200
+ write /proc/sys/vm/dirty_background_ratio 5
+
+ # Permissions for System Server and daemons.
+ chown radio system /sys/android_power/state
+ chown radio system /sys/android_power/request_state
+ chown radio system /sys/android_power/acquire_full_wake_lock
+ chown radio system /sys/android_power/acquire_partial_wake_lock
+ chown radio system /sys/android_power/release_wake_lock
+ chown radio system /sys/power/state
+ chown radio system /sys/power/wake_lock
+ chown radio system /sys/power/wake_unlock
+ chmod 0660 /sys/power/state
+ chmod 0660 /sys/power/wake_lock
+ chmod 0660 /sys/power/wake_unlock
+ chown system system /sys/class/timed_output/vibrator/enable
+ chown system system /sys/class/leds/keyboard-backlight/brightness
+ chown system system /sys/class/leds/lcd-backlight/brightness
+ chown system system /sys/class/leds/button-backlight/brightness
+ chown system system /sys/class/leds/jogball-backlight/brightness
+ chown system system /sys/class/leds/red/brightness
+ chown system system /sys/class/leds/green/brightness
+ chown system system /sys/class/leds/blue/brightness
+ chown system system /sys/class/leds/red/device/grpfreq
+ chown system system /sys/class/leds/red/device/grppwm
+ chown system system /sys/class/leds/red/device/blink
+ chown system system /sys/class/leds/red/brightness
+ chown system system /sys/class/leds/green/brightness
+ chown system system /sys/class/leds/blue/brightness
+ chown system system /sys/class/leds/red/device/grpfreq
+ chown system system /sys/class/leds/red/device/grppwm
+ chown system system /sys/class/leds/red/device/blink
+ chown system system /sys/class/timed_output/vibrator/enable
+ chown system system /sys/module/sco/parameters/disable_esco
+ chown system system /sys/kernel/ipv4/tcp_wmem_min
+ chown system system /sys/kernel/ipv4/tcp_wmem_def
+ chown system system /sys/kernel/ipv4/tcp_wmem_max
+ chown system system /sys/kernel/ipv4/tcp_rmem_min
+ chown system system /sys/kernel/ipv4/tcp_rmem_def
+ chown system system /sys/kernel/ipv4/tcp_rmem_max
+ chown root radio /proc/cmdline
+
+# Define TCP buffer sizes for various networks
+# ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
+ setprop net.tcp.buffersize.default 4096,87380,110208,4096,16384,110208
+ setprop net.tcp.buffersize.wifi 4095,87380,110208,4096,16384,110208
+ setprop net.tcp.buffersize.umts 4094,87380,110208,4096,16384,110208
+ setprop net.tcp.buffersize.edge 4093,26280,35040,4096,16384,35040
+ setprop net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680
+
+ write /dev/graphics/fb3 1
+
+ class_start default
+
+## Daemon processes to be run by init.
+##
+service ueventd /sbin/ueventd
+ critical
+
+service console /sbin/sh
+ console
+ disabled
+ user shell
+ group log
+
+on property:ro.secure=0
+ start console
+
+service recovery /sbin/recovery
+
+# adbd is controlled by the persist.service.adb.enable system property
+service adbd /sbin/adbd
+ disabled
+
+# adbd on at boot in emulator
+on property:ro.kernel.qemu=1
+ start adbd
+
+on property:persist.service.adb.enable=1
+ start adbd
+
+on property:persist.service.adb.enable=0
+ stop adbd
diff --git a/s3c-keypad.kcm b/s3c-keypad.kcm
new file mode 100644
index 0000000..8056364
--- /dev/null
+++ b/s3c-keypad.kcm
@@ -0,0 +1,64 @@
+[type=QWERTY]
+
+# keycode display number base caps fn caps_fn
+
+A 'A' '2' 'a' 'A' '#' 0x00
+B 'B' '2' 'b' 'B' '<' 0x00
+C 'C' '2' 'c' 'C' '9' 0x00E7
+D 'D' '3' 'd' 'D' '5' 0x00
+E 'E' '3' 'e' 'E' '2' 0x0301
+F 'F' '3' 'f' 'F' '6' 0x00A5
+G 'G' '4' 'g' 'G' '-' '_'
+H 'H' '4' 'h' 'H' '[' '{'
+I 'I' '4' 'i' 'I' '$' 0x0302
+J 'J' '5' 'j' 'J' ']' '}'
+K 'K' '5' 'k' 'K' '"' '~'
+L 'L' '5' 'l' 'L' ''' '`'
+M 'M' '6' 'm' 'M' '!' 0x00
+N 'N' '6' 'n' 'N' '>' 0x0303
+O 'O' '6' 'o' 'O' '(' 0x00
+P 'P' '7' 'p' 'P' ')' 0x00
+Q 'Q' '7' 'q' 'Q' '*' 0x0300
+R 'R' '7' 'r' 'R' '3' 0x20AC
+S 'S' '7' 's' 'S' '4' 0x00DF
+T 'T' '8' 't' 'T' '+' 0x00A3
+U 'U' '8' 'u' 'U' '&' 0x0308
+V 'V' '8' 'v' 'V' '=' '^'
+W 'W' '9' 'w' 'W' '1' 0x00
+X 'X' '9' 'x' 'X' '8' 0xEF00
+Y 'Y' '9' 'y' 'Y' '%' 0x00A1
+Z 'Z' '9' 'z' 'Z' '7' 0x00
+
+# on pc keyboards
+COMMA ',' ',' ',' ';' ';' '|'
+PERIOD '.' '.' '.' ':' ':' 0x2026
+AT '@' '0' '@' '0' '0' 0x2022
+SLASH '/' '/' '/' '?' '?' '\'
+
+SPACE 0x20 0x20 0x20 0x20 0xEF01 0xEF01
+ENTER 0xa 0xa 0xa 0xa 0xa 0xa
+
+TAB 0x9 0x9 0x9 0x9 0x9 0x9
+0 '0' '0' '0' ')' ')' ')'
+1 '1' '1' '1' '!' '!' '!'
+2 '2' '2' '2' '@' '@' '@'
+3 '3' '3' '3' '#' '#' '#'
+4 '4' '4' '4' '$' '$' '$'
+5 '5' '5' '5' '%' '%' '%'
+6 '6' '6' '6' '^' '^' '^'
+7 '7' '7' '7' '&' '&' '&'
+8 '8' '8' '8' '*' '*' '*'
+9 '9' '9' '9' '(' '(' '('
+
+GRAVE '`' '`' '`' '~' '`' '~'
+MINUS '-' '-' '-' '_' '-' '_'
+EQUALS '=' '=' '=' '+' '=' '+'
+LEFT_BRACKET '[' '[' '[' '{' '[' '{'
+RIGHT_BRACKET ']' ']' ']' '}' ']' '}'
+BACKSLASH '\' '\' '\' '|' '\' '|'
+SEMICOLON ';' ';' ';' ':' ';' ':'
+APOSTROPHE ''' ''' ''' '"' ''' '"'
+STAR '*' '*' '*' '*' '*' '*'
+POUND '#' '#' '#' '#' '#' '#'
+PLUS '+' '+' '+' '+' '+' '+'
+
diff --git a/s3c-keypad.kl b/s3c-keypad.kl
new file mode 100644
index 0000000..2bcff82
--- /dev/null
+++ b/s3c-keypad.kl
@@ -0,0 +1,11 @@
+key 42 VOLUME_UP WAKE
+key 58 VOLUME_DOWN WAKE
+key 50 HOME WAKE_DROPPED
+key 26 ENDCALL WAKE_DROPPED
+key 34 BACK WAKE_DROPPED
+key 57 DPAD_LEFT WAKE_DROPPED
+key 49 DPAD_RIGHT WAKE_DROPPED
+key 25 DPAD_UP WAKE_DROPPED
+key 41 DPAD_DOWN WAKE_DROPPED
+key 33 DPAD_CENTER WAKE_DROPPED
+key 10 POWER WAKE
diff --git a/sec_jack.kl b/sec_jack.kl
new file mode 100644
index 0000000..92d6553
--- /dev/null
+++ b/sec_jack.kl
@@ -0,0 +1,3 @@
+key 163 MEDIA_NEXT WAKE
+key 165 MEDIA_PREVIOUS WAKE
+key 226 HEADSETHOOK WAKE
diff --git a/setup_fs.c b/setup_fs.c
new file mode 100644
index 0000000..0acf026
--- /dev/null
+++ b/setup_fs.c
@@ -0,0 +1,75 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+#include <sys/reboot.h>
+#include <sys/wait.h>
+
+const char *mkfs = "/system/bin/make_ext4fs";
+
+int setup_fs(const char *blockdev)
+{
+ char buf[256], path[128];
+ pid_t child;
+ int status, n;
+
+ /* we might be looking at an indirect reference */
+ n = readlink(blockdev, path, sizeof(path) - 1);
+ if (n > 0) {
+ path[n] = 0;
+ if (!memcmp(path, "/dev/block/", 11))
+ blockdev = path + 11;
+ }
+
+ if (strchr(blockdev,'/')) {
+ fprintf(stderr,"not a block device name: %s\n", blockdev);
+ return 0;
+ }
+
+ sprintf(buf,"/sys/fs/ext4/%s", blockdev);
+ if (access(buf, F_OK) == 0) {
+ fprintf(stderr,"device %s already has a filesystem\n", blockdev);
+ return 0;
+ }
+ sprintf(buf,"/dev/block/%s", blockdev);
+
+ fprintf(stderr,"+++\n");
+
+ child = fork();
+ if (child < 0) {
+ fprintf(stderr,"error: fork failed\n");
+ return 0;
+ }
+ if (child == 0) {
+ execl(mkfs, mkfs, buf, NULL);
+ exit(-1);
+ }
+
+ while (waitpid(-1, &status, 0) != child) ;
+
+ fprintf(stderr,"---\n");
+ return 1;
+}
+
+
+int main(int argc, char **argv)
+{
+ int need_reboot = 0;
+
+ while (argc > 1) {
+ if (strlen(argv[1]) < 128)
+ need_reboot |= setup_fs(argv[1]);
+ argv++;
+ argc--;
+ }
+
+ if (need_reboot) {
+ sync();
+ sync();
+ sync();
+ fprintf(stderr,"REBOOT!\n");
+ reboot(RB_AUTOBOOT);
+ exit(-1);
+ }
+ return 0;
+}
diff --git a/setupenv.sh b/setupenv.sh
new file mode 100755
index 0000000..797b4a9
--- /dev/null
+++ b/setupenv.sh
@@ -0,0 +1,5 @@
+#!/system/bin/sh
+
+rm -rf /sbin/sh
+
+exit \ No newline at end of file
diff --git a/system.prop b/system.prop
new file mode 100644
index 0000000..d5a3d09
--- /dev/null
+++ b/system.prop
@@ -0,0 +1,8 @@
+#
+# system.prop for smdkc110
+#
+
+rild.libpath=/system/lib/libsec-ril.so
+rild.libargs=-d /dev/ttyS0
+ro.sf.lcd_density=240
+
diff --git a/ueventd.aries.rc b/ueventd.aries.rc
new file mode 100644
index 0000000..a8d21c7
--- /dev/null
+++ b/ueventd.aries.rc
@@ -0,0 +1,23 @@
+
+/dev/pvrsrvkm 0666 system system
+/dev/video0 0660 system camera
+/dev/video1 0660 system camera
+/dev/video2 0660 system camera
+/dev/s3c-jpg 0660 system camera
+/dev/s3c-mem 0660 system system
+/dev/s3c-mfc 0660 system graphics
+
+/dev/modem_ctl 0660 radio radio
+/dev/modem_fmt 0660 radio radio
+/dev/modem_rfs 0660 radio radio
+/dev/s3c2410_serial3 0660 radio radio
+/dev/block/mtdblock5 0660 radio radio
+/dev/mtd/mtd5ro 0660 radio radio
+
+# for Sensor HAL
+/dev/yamaha_compass 0660 system system
+/dev/akm8973 0660 system system
+/dev/accelerometer 0660 system system
+
+# for GPS
+/dev/s3c2410_serial1 0600 gps gps
diff --git a/updater.sh b/updater.sh
index fc3d694..a9dfa5e 100644
--- a/updater.sh
+++ b/updater.sh
@@ -85,11 +85,39 @@ elif /tmp/busybox test -e /dev/block/mtdblock0 ; then
# everything is logged into /sdcard/cyanogenmod.log
exec >> /sdcard/cyanogenmod_mtd.log 2>&1
+ # create mountpoint for radio partition
+ /tmp/busybox mkdir -p /radio
+
+ # make sure radio partition is mounted
+ if ! /tmp/busybox grep -q /radio /proc/mounts ; then
+ /tmp/busybox umount -l /dev/block/mtdblock5
+ if ! /tmp/busybox mount -t yaffs2 /dev/block/mtdblock5 /radio ; then
+ /tmp/busybox echo "Cannot mount radio partition."
+ exit 5
+ fi
+ fi
+
+ # if modem.bin doesn't exist on radio partition, format the partition and copy it
+ if ! /tmp/busybox test -e /radio/modem.bin ; then
+ /tmp/busybox umount -l /dev/block/mtdblock5
+ /tmp/erase_image radio
+ if ! /tmp/busybox mount -t yaffs2 /dev/block/mtdblock5 /radio ; then
+ /tmp/busybox echo "Cannot copy modem.bin to radio partition."
+ exit 5
+ else
+ /tmp/busybox cp /tmp/modem.bin /radio/modem.bin
+ fi
+ fi
+
+ # unmount radio partition
+ /tmp/busybox umount -l /dev/block/mtdblock5
+
# if a cyanogenmod.cfg exists, then this is a first time install
# let's format the volumes and restore radio and efs
if ! /tmp/busybox test -e /sdcard/cyanogenmod.cfg ; then
exit 0
fi
+
# remove the cyanogenmod.cfg to prevent this from looping
/tmp/busybox rm -f /sdcard/cyanogenmod.cfg
@@ -110,10 +138,6 @@ elif /tmp/busybox test -e /dev/block/mtdblock0 ; then
/tmp/busybox umount -l /datadata
/tmp/erase_image datadata
- # flash radio image
- /tmp/erase_image radio
- /tmp/flash_image radio /tmp/modem.bin
-
# restore efs backup
if /tmp/busybox test -e /sdcard/backup/efs/nv_data.bin ; then
/tmp/busybox umount -l /efs
@@ -126,16 +150,8 @@ elif /tmp/busybox test -e /dev/block/mtdblock0 ; then
exit 6
fi
fi
-
- # copy efsbackup from sdcard to new efs partition
- /tmp/busybox cp -R /sdcard/backup/efs /
- # set permissions on /efs
- /tmp/busybox chown -R radio:radio /efs
- /tmp/busybox chown -R bluetooth:bluetooth /efs/bluetooth
- /tmp/busybox chmod -R 660 /efs
-
- # unmount /efs
+ /tmp/busybox cp -R /sdcard/backup/efs /
/tmp/busybox umount -l /efs
else
/tmp/busybox echo "Cannot restore efs."
@@ -147,3 +163,4 @@ elif /tmp/busybox test -e /dev/block/mtdblock0 ; then
exit 0
fi
+
diff --git a/vold.fstab b/vold.fstab
new file mode 100644
index 0000000..b1a2880
--- /dev/null
+++ b/vold.fstab
@@ -0,0 +1,19 @@
+## Vold 2.0 Generic fstab
+## - San Mehat (san@android.com)
+##
+
+#######################
+## Regular device mount
+##
+## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>
+## label - Label for the volume
+## mount_point - Where the volume will be mounted
+## part - Partition # (1 based), or 'auto' for first usable partition.
+## <sysfs_path> - List of sysfs paths to source devices
+######################
+
+# internal sdcard
+dev_mount sdcard /mnt/sdcard 1 /devices/platform/s3c-sdhci.0/mmc_host/mmc0
+
+# external sdcard
+dev_mount emmc /mnt/emmc auto /devices/platform/s3c-sdhci.2/mmc_host/mmc2 \ No newline at end of file