commit cb0dc22c89244e4f26e3327537b62d15299c2ca0 Author: codeworkx Date: Sun Jun 5 17:39:34 2011 +0200 initial push diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..3c1ebfe --- /dev/null +++ b/Android.mk @@ -0,0 +1,3 @@ +ifeq ($(filter-out c1,$(TARGET_BOOTLOADER_BOARD_NAME)),) + include $(all-subdir-makefiles) +endif diff --git a/asound.conf b/asound.conf new file mode 100644 index 0000000..6144596 --- /dev/null +++ b/asound.conf @@ -0,0 +1,61 @@ +# +# Copyright(c) 2010 Yamaha Corporation +# + +# ---------------------------------------- +# PCM Interface +# + +pcm.hifi { + type plug + slave.pcm { + type hw + card 0 + device 0 + format S16_LE + channels 2 + rate 44100 + } +} + +pcm.voice { + type plug + slave.pcm { + type hw + card 0 + device 1 + format S16_LE + channels 1 + rate 8000 + } +} + +pcm.bluetooth { + type plug + slave.pcm { + type hw + card 0 + device 2 + format S16_LE + channels 1 + rate 8000 + } +} + +# ---------------------------------------- +# Mixer Interface +# + +ctl.mc1n2 { + type hw + card 0 +} + +# ---------------------------------------- +# Hardware Dependant Interface +# + +hwdep.mc1n2 { + type hw + card 0 +} diff --git a/egl.cfg b/egl.cfg new file mode 100644 index 0000000..46dda3b --- /dev/null +++ b/egl.cfg @@ -0,0 +1,15 @@ +# +# This confidential and proprietary software may be used only as +# authorised by a licensing agreement from ARM Limited +# (C) COPYRIGHT 2010 ARM Limited +# ALL RIGHTS RESERVED +# The entire notice above must be reproduced on all authorised +# copies and copies may only be made to the extent permitted +# by a licensing agreement from ARM Limited. +# + +# NOTICE +# This is an autogenerated file, do not edit + + +0 1 mali diff --git a/gps.conf b/gps.conf new file mode 100644 index 0000000..bd431a6 --- /dev/null +++ b/gps.conf @@ -0,0 +1,6 @@ +NTP_SERVER=north-america.pool.ntp.org +XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin +XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin +XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin +SUPL_HOST=supl.google.com +SUPL_PORT=7276 diff --git a/init.c1.rc b/init.c1.rc new file mode 100644 index 0000000..19978ac --- /dev/null +++ b/init.c1.rc @@ -0,0 +1,358 @@ +on early-init + +on init + +# Disable CFQ slice idle delay + write /sys/block/mmcblk0/queue/iosched/slice_idle 0 + +# create mountpoints + mkdir /mnt/emmc 0000 system system + +# Backwards Compat - XXX: Going away in G* + symlink /mnt/emmc /emmc + + mkdir /efs 0771 radio system + mkdir /dbdata 0771 system system + mkdir /config 0500 root root + + # usb public mount points. + mkdir /mnt/usb 0700 root system + mount tmpfs tmpfs /mnt/usb mode=0755,gid=1000 + + mkdir /mnt/.lfs 0755 root root + + 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 + +# ko files for vibrator + insmod /lib/modules/vibrator.ko + +# ko files for bthid + insmod /lib/modules/bthid.ko + +# ko files for FM Radio + insmod /lib/modules/Si4709_driver.ko + +on fs + # mount mtd partitions + # Mount /system rw first to give the filesystem a chance to save a checkpoint + mount ext4 /dev/block/mmcblk0p9 /system wait rw + mount ext4 /dev/block/mmcblk0p7 /cache nosuid nodev noatime wait + + exec check_filesystem /dev/block/mmcblk0p10 ext4 + mount ext4 /dev/block/mmcblk0p10 /data nosuid nodev noatime wait crypt discard,noauto_da_alloc + + mount ext4 /dev/block/mmcblk0p1 /efs nosuid nodev noatime wait + chown radio system /efs + chmod 0771 /efs + +on post-fs + # verfiy filesystem (UMS) + exec apply_system_policy /dev/block/mmcblk0p11 vfat + + # readahead files which are used in "preloadClasses" + start sreadaheadd + + # to eliminate delay of "wait_for_coldboot_done", move these 2 lines here + insmod /lib/modules/j4fs.ko + mount j4fs /dev/block/mmcblk0p4 /mnt/.lfs + +# UART switch +# Request of manufacturing application!!! + chown radio system /sys/class/sec/uart_switch/UART_SEL/value + chmod 0664 /sys/class/sec/uart_switch/UART_SEL/value + +# create data/gps for GPS demon + chown root system /dev/s3c2410_serial1 + chmod 0660 /dev/s3c2410_serial1 + + chown root system /sys/class/sec/gps/GPS_PWR_EN/value + chmod 0664 /sys/class/sec/gps/GPS_PWR_EN/value + + chown root system /sys/class/sec/gps/GPS_nRST/value + chmod 0664 /sys/class/sec/gps/GPS_nRST/value + + mkdir /data/gps 771 system system + chown system system /data/gps + + # for TRP/TIS + write /data/.psm.info 1 + chown system system /data/.psm.info + chmod 0600 /data/.psm.info + + # MTP permission, fixed by 2011/03/18 + chmod 0660 /dev/usb_mtp_gadget + chown system system /dev/usb_mtp_gadget + + # USB Device permission + chown system system /sys/devices/platform/android_usb/UsbMenuSel + chown system system /sys/devices/platform/android_usb/tethering + +# Added for DIVX DRM + mkdir /efs/.files 0775 + mkdir /efs/.files/.dx1 0775 + mkdir /efs/.files/.dm33 0775 + mkdir /efs/.files/.mp301 0775 + chown media system /efs/.files/.dx1 + chown media system /efs/.files/.dm33 + chown media system /efs/.files/.mp301 + chmod 0775 /efs/.files/.dx1 + chmod 0775 /efs/.files/.dm33 + chmod 0775 /efs/.files/.mp301 + +# setup for alsa snd device + chmod 0770 /dev/snd/pcmC0D0c + chmod 0770 /dev/snd/pcmC0D0p + chmod 0770 /dev/snd/controlC0 + chmod 0770 /dev/snd/timer + chmod 0770 /dev/snd/hwC0D0 + +on boot + +# 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 + + setprop wifi.interface "eth0" +# 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 + write /sys/class/mdnieset_ui/switch_mdnieset_ui/mdnieset_init_file_cmd 0 + +# permissions for NFC + setprop ro.nfc.port "I2C" + chmod 0600 /dev/pn544 + chown nfc nfc /dev/pn544 + +# Permissions for gpio_keys + chown radio system /sys/devices/platform/sec_key.0/disabled_keys + write /sys/devices/platform/sec_key.0/disabled_keys 114,115 + +# Add permission for ATM. 2010.03.20 + chown radio system /sys/devices/virtual/K3G_GYRO-dev/k3g/gyro_selftest + chown radio system /sys/devices/virtual/K3G_GYRO-dev/k3g/gyro_get_temp + chown radio system /sys/devices/virtual/K3G_GYRO-dev/k3g/gyro_power_on + chown radio system /sys/devices/virtual/accelerometer/accelerometer/acc_file + chown radio system /sys/devices/virtual/misc/melfas_touchkey/touch_sensitivity + chown radio system /sys/devices/virtual/sec/gsensorcal/calibration + chown radio system /sys/devices/virtual/jack/jack_selector/select_jack + chown radio system /sys/devices/platform/samsung-pd.2/s3cfb.0/spi_gpio.3/spi3.0/lcd_power + chown radio system /sys/devices/platform/samsung-pd.2/s3cfb.0/spi_gpio.3/spi3.0/octa_lcdtype + chown radio system /sys/devices/platform/samsung-pd.2/s3cfb.0/spi_gpio.3/spi3.0/lcdtype + chown radio radio /sys/devices/platform/samsung-pd.2/s3cfb.0/spi_gpio.3/spi3.0/acl_set + chown radio radio /sys/devices/platform/samsung-pd.2/s3cfb.0/spi_gpio.3/spi3.0/gamma_table + chown radio radio /sys/devices/platform/samsung-pd.2/s3cfb.0/spi_gpio.3/spi3.0/gamma_mode + chown radio system /sys/devices/virtual/mdnieset_outdoor/switch_mdnieset_outdoor/mdnieset_outdoor_file_cmd + chown radio system /sys/devices/virtual/mdnieset_ui/switch_mdnieset_ui/mdnieset_init_file_cmd + chown radio system /sys/devices/virtual/mdnieset_ui/switch_mdnieset_ui/mdnieset_user_select_file_cmd + chown radio system /sys/devices/virtual/mdnieset_ui/switch_mdnieset_ui/mdnieset_ui_file_cmd + chown radio system /sys/devices/virtual/misc/melfas_touchkey/enable_disable + chown radio system /sys/devices/virtual/misc/melfas_touchkey/brightness + chown radio system /sys/devices/virtual/misc/melfas_touchkey/touch_update + chown radio system /sys/devices/virtual/misc/melfas_touchkey/touch_version + chown radio system /sys/devices/virtual/sec/sec_touchkey/touchkey_firm_version_panel + chown radio system /sys/devices/virtual/sec/sec_touchkey/touchkey_firm_version_phone + chown radio system /sys/devices/virtual/sec/sec_touchkey/touchkey_firm_update_status + chown radio system /sys/devices/virtual/sec/sec_touchkey/touchkey_firm_update + chown radio system /sys/devices/virtual/sec/qt602240_noise_test/set_firm_version + chown radio system /sys/devices/virtual/sec/qt602240_noise_test/set_threshould + chown radio system /sys/devices/virtual/sec/qt602240_noise_test/set_all_refer + chown radio system /sys/devices/virtual/sec/qt602240_noise_test/set_delta4 + chown radio system /sys/devices/virtual/sec/qt602240_noise_test/set_refer4 + chown radio system /sys/devices/virtual/sec/qt602240_noise_test/set_delta3 + chown radio system /sys/devices/virtual/sec/qt602240_noise_test/set_refer3 + chown radio system /sys/devices/virtual/sec/qt602240_noise_test/set_delta2 + chown radio system /sys/devices/virtual/sec/qt602240_noise_test/set_refer2 + chown radio system /sys/devices/virtual/sec/qt602240_noise_test/set_delta1 + chown radio system /sys/devices/virtual/sec/qt602240_noise_test/set_refer1 + chown radio system /sys/devices/virtual/sec/qt602240_noise_test/set_delta0 + chown radio system /sys/devices/virtual/sec/qt602240_noise_test/set_refer0 + chown radio system /sys/devices/virtual/sec/sec_touchscreen/tsp_firm_version_panel + chown radio system /sys/devices/virtual/sec/sec_touchscreen/tsp_firm_version_phone + chown radio system /sys/devices/virtual/sec/sec_touchscreen/tsp_firm_update_status + chown radio system /sys/devices/virtual/sec/sec_touchscreen/tsp_firm_update + chown radio system /sys/devices/virtual/sec/sec_touchscreen/tsp_threshold + chown radio system /sys/devices/platform/s5p-ehci/ehci_runtime + chown radio system /sys/devices/platform/modemctl/wakeup + chown radio system /sys/devices/platform/modemctl/control + chown radio system /sys/devices/platform/android_usb/tethering + chown radio system /sys/devices/platform/android_usb/UsbMenuSel + chown radio system /sys/devices/virtual/sec/switch/disable_vbus + chown radio system /sys/devices/virtual/gpio/gpio225/value + chown radio system /sys/devices/platform/i2c-gpio.9/i2c-9/9-0036/power_supply/fuelgauge/fg_read_soc + chown radio system /sys/devices/platform/i2c-gpio.9/i2c-9/9-0036/power_supply/fuelgauge/fg_reset_soc + chown radio system /sys/devices/platform/s3c2410-i2c.5/i2c-5/5-0066/max8997-muic/usb_sel + chown radio system /sys/devices/platform/s3c2410-i2c.5/i2c-5/5-0066/max8997-muic/audio_path + chown radio system /sys/devices/platform/s3c2410-i2c.5/i2c-5/5-0066/max8997-muic/otg_test + chown radio system /sys/devices/platform/s3c2410-i2c.5/i2c-5/5-0066/max8997-muic/adc_debounce_time + chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_lpm_state + chown radio system /sys/devices/platform/sec-battery/power_supply/battery/fg_psoc + chown radio system /sys/devices/platform/sec-battery/power_supply/battery/system_rev + chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_current_adc + chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_test_value + chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_temp_adc_spec + chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_temp_check + chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_full_check + chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_type + chown radio system /sys/devices/platform/sec-battery/power_supply/battery/mp3 + chown radio system /sys/devices/platform/sec-battery/power_supply/battery/video + chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_lp_charging + chown radio system /sys/devices/platform/sec-battery/power_supply/battery/charging_source + chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_temp_adc_avg + chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_temp_adc + chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_temp + chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_vfocv + chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_soc + chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_vol + chown radio radio /sys/devices/virtual/mdnieset_outdoor/switch_mdnieset_outdoor/mdnieset_outdoor_file_cmd + chown radio radio /sys/devices/virtual/mdnieset_ui/switch_mdnieset_ui/mdnieset_init_file_cmd + chown radio radio /sys/devices/virtual/mdnieset_ui/switch_mdnieset_ui/mdnieset_user_select_file_cmd + chown radio radio /sys/devices/virtual/mdnieset_ui/switch_mdnieset_ui/mdnieset_ui_file_cmd + chown radio system /sys/devices/platform/s5p-ehci/ehci_power + chown radio system /sys/devices/virtual/net/svnet0/waketime + + # OTG Test + chown system radio /sys/class/host_notify/usb_otg/booster + chmod 0664 /sys/class/host_notify/usb_otg/booster + +#for jack control + chown radio system /sys/class/jack/jack_selector/select_jack + +#bluetooth + setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr" + chown bluetooth bluetooth ro.bt.bdaddr_path + chown bluetooth bluetooth /dev/s3c2410_serial0 + chmod 0660 /dev/s3c2410_serial0 + chmod 0660 /sys/class/rfkill/rfkill0/state + chmod 0660 /sys/class/rfkill/rfkill1/state + chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state + chown bluetooth bluetooth /sys/class/rfkill/rfkill1/state + chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type + chown bluetooth bluetooth /sys/class/rfkill/rfkill1/type + +# 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 + setprop net.tcp.buffersize.hspa 4092,87380,262144,4096,16384,110208 + +# for datarouter + chown system system /dev/ttyGS0 + chown system system /dev/dun + +# Audio Tunning Files + chmod 0777 /system/etc/audio/stream_speaker.txt + chmod 0777 /system/etc/audio/stream_headset.txt + chmod 0777 /system/etc/audio/stream_earpiece.txt + chmod 0777 /system/etc/audio/situation.txt + chmod 0777 /system/etc/audio/aeqcoe.txt + chmod 0777 /system/etc/audio/soundbooster.txt + chmod 0777 /system/etc/audio/srstunning.txt + chmod 0777 /system/etc/audio/ArkamysTuning.txt + + class_start default + +## Daemon processes to be run by init. +## + +# readahead files which are used in "preloadClasses" +service sreadaheadd /sbin/sreadaheadd + oneshot + +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 log + +service wpa_supplicant /system/bin/wpa_supplicant -Dwext -ieth0 -c/data/wifi/bcm_supp.conf + disabled + oneshot + +service macloader /system/bin/macloader + oneshot +# end of wifi + +service dbus /system/bin/dbus-daemon --system --nofork + socket dbus stream 660 bluetooth bluetooth + user bluetooth + group bluetooth net_bt_admin + +service btld /system/bin/logwrapper /system/bin/btld -hb 3000000 -hp /dev/s3c2410_serial0 -lpm 1 + user root + group bluetooth net_bt_admin + disabled + oneshot + +# start btld if soft_onoff is enabled +on property:service.brcm.bt.soft_onoff=1 + start btld + +# stop btld if soft_onoff is disabled +on property:service.brcm.bt.soft_onoff=0 + stop btld + +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 + +#HCI_ENABLE_BT_DEV_UNDER_TEST_MODE +service bt_dut_cmd /system/bin/bcm_dut + group bluetooth net_bt_admin + disabled + oneshot + +service installd /system/bin/installd + socket installd stream 600 system system + +service tvout /system/bin/tvoutserver + user system + group graphics diff --git a/keylayout/AVRCP.kl b/keylayout/AVRCP.kl new file mode 100644 index 0000000..40f4d3b --- /dev/null +++ b/keylayout/AVRCP.kl @@ -0,0 +1,10 @@ +key 200 MEDIA_PLAY_PAUSE WAKE +key 201 MEDIA_PLAY_PAUSE WAKE +key 166 MEDIA_STOP WAKE +key 163 MEDIA_NEXT WAKE +key 165 MEDIA_PREVIOUS WAKE +key 168 MEDIA_REWIND WAKE +key 208 MEDIA_FAST_FORWARD WAKE +key 164 MEDIA_PLAY_PAUSE WAKE +key 128 MEDIA_STOP WAKE +key 159 MEDIA_FAST_FORWARD WAKE \ No newline at end of file diff --git a/keylayout/Broadcom_Bluetooth_HID.kl b/keylayout/Broadcom_Bluetooth_HID.kl new file mode 100644 index 0000000..d49ae42 --- /dev/null +++ b/keylayout/Broadcom_Bluetooth_HID.kl @@ -0,0 +1,114 @@ +key 150 EXPLORER +key 139 MENU WAKE_DROPPED +key 102 HOME WAKE +key 158 BACK WAKE_DROPPED +key 217 SEARCH 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 59 MENU WAKE_DROPPED + +key 127 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 115 VOLUME_UP WAKE +key 114 VOLUME_DOWN WAKE +key 116 POWER WAKE + +key 211 FOCUS +key 212 CAMERA + +key 41 GRAVE +key 1 BACK WAKE_DROPPED +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 12 MINUS +key 13 EQUALS +key 14 DEL + +key 15 TAB +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 28 ENTER + +key 42 SHIFT_LEFT +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 54 SHIFT_RIGHT + +key 57 SPACE + +key 108 DPAD_DOWN WAKE_DROPPED +key 103 DPAD_UP WAKE_DROPPED +key 105 DPAD_LEFT WAKE_DROPPED +key 106 DPAD_RIGHT WAKE_DROPPED + +key 56 ALT_LEFT +key 100 ALT_RIGHT +key 155 ENVELOPE + +key 215 AT + +key 79 1 +key 80 2 +key 81 3 +key 75 4 +key 76 5 +key 77 6 +key 71 7 +key 72 8 +key 73 9 +key 82 0 +key 83 PERIOD +key 78 PLUS +key 74 MINUS +key 98 SLASH +key 55 STAR +key 96 ENTER +key 104 PAGE_UP +key 109 PAGE_DOWN diff --git a/keylayout/qwerty.kl b/keylayout/qwerty.kl new file mode 100644 index 0000000..201c798 --- /dev/null +++ b/keylayout/qwerty.kl @@ -0,0 +1,91 @@ +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 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 + +# On an AT keyboard: ESC, F10 +key 1 BACK WAKE_DROPPED +key 68 MENU WAKE_DROPPED diff --git a/keylayout/sec_jack.kl b/keylayout/sec_jack.kl new file mode 100644 index 0000000..92d6553 --- /dev/null +++ b/keylayout/sec_jack.kl @@ -0,0 +1,3 @@ +key 163 MEDIA_NEXT WAKE +key 165 MEDIA_PREVIOUS WAKE +key 226 HEADSETHOOK WAKE diff --git a/keylayout/sec_key.kl b/keylayout/sec_key.kl new file mode 100644 index 0000000..b7abd0b --- /dev/null +++ b/keylayout/sec_key.kl @@ -0,0 +1,11 @@ +key 115 VOLUME_UP WAKE +key 114 VOLUME_DOWN WAKE +key 102 HOME WAKE +key 107 ENDCALL +key 105 DPAD_LEFT +key 106 DPAD_RIGHT +key 103 DPAD_UP +key 108 DPAD_DOWN +key 232 DPAD_CENTER +key 116 POWER WAKE +key 212 CAMERA WAKE diff --git a/keylayout/sec_touchkey.kl b/keylayout/sec_touchkey.kl new file mode 100644 index 0000000..aeb9f12 --- /dev/null +++ b/keylayout/sec_touchkey.kl @@ -0,0 +1,3 @@ +key 158 BACK WAKE +key 139 MENU WAKE + diff --git a/media_profiles.xml b/media_profiles.xml new file mode 100644 index 0000000..c2a328f --- /dev/null +++ b/media_profiles.xml @@ -0,0 +1,203 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mkshbootimg.py b/mkshbootimg.py new file mode 100755 index 0000000..dcc8294 --- /dev/null +++ b/mkshbootimg.py @@ -0,0 +1,47 @@ +#!/usr/bin/env python +import sys, os + +def copydata(outfile, infile): + while 1: + data = infile.read(512) + if (data): + outfile.write(data) + else: + break + +def alignoffset(outfile): + offset = outfile.tell() + outfile.seek((offset + 511) & ~511) + return outfile.tell() + +def appendimage(outfile, infile): + offset = alignoffset(outfile) + copydata(outfile, infile) + length = alignoffset(outfile) - offset + assert (offset % 512 == 0) + assert (length % 512 == 0) + return (offset/512, length/512) + +if len(sys.argv) < 4: + print "Usage:", sys.argv[0], "output kernel boot [recovery]" + sys.exit(1) + +outfile = open(sys.argv[1], 'wb') +kernel = open(sys.argv[2], 'r') +boot = open(sys.argv[3], 'r') +recovery = None +if (len(sys.argv) == 5): + recovery = open(sys.argv[4], 'r') +offset_table = "\n\nBOOT_IMAGE_OFFSETS\n" +copydata(outfile, kernel) +table_loc = alignoffset(outfile) +outfile.write('\x00' * 512) +offset_table += "boot_offset=%d;boot_len=%d;" % appendimage(outfile, boot) +if recovery: + offset_table += "recovery_offset=%d;recovery_len=%d;" % appendimage(outfile, recovery) +offset_table += "\n\n" +outfile.seek(table_loc) +outfile.write(offset_table) +outfile.flush() +os.fsync(outfile.fileno()) +outfile.close() diff --git a/nvram_net.txt b/nvram_net.txt new file mode 100644 index 0000000..40f4bda --- /dev/null +++ b/nvram_net.txt @@ -0,0 +1,84 @@ +manfid=0x2d0 +prodid=0x0532 +vendid=0x14e4 +devid=0x4360 +boardtype=0x0532 +boardrev=0x20 +boardflags=0x10080201 + +nocrc=1 +xtalfreq=37400 +xtalmode=0x20,0x4,0 +boardnum=22 +macaddr=00:90:4c:c5:12:38 +ag0=255 +ag1=255 +aa2g=1 +ccode=GB + +pa0b0=5209 +pa0b1=64927 +pa0b2=65384 +#pa0itssit=62 +rssismf2g=0xa +rssismc2g=0x3 +rssisav2g=0x7 + +# rssi params for 5GHz +#rssismf5g=0x4 +rssismf5g=0xa +rssismc5g=0x7 +rssisav5g=0x1 +#PA parameters for lower band +pa1lob0=5408 +pa1lob1=64851 +pa1lob2=65337 +#PA parameters for midband +pa1b0=5351 +pa1b1=64860 +pa1b2=65345 +#PA parameters for high band +pa1hib0=4924 +pa1hib1=64895 +pa1hib2=65329 + +# 2G PA offset +maxp2ga0=72 +sromrev=3 +cckpo=0 +ofdm2gpo=0x66666666 +mcs2gpo0=0xaaaa +mcs2gpo1=0xaaaa + +# 5G PA offset +maxp5ga0=71 +maxp5gla0=72 +maxp5gha0=72 +ofdm5gpo=0x55555555 +ofdm5glpo=0x55555555 +ofdm5ghpo=0x55555555 +mcs5gpo0=0x9999 +mcs5gpo1=0x9999 +mcs5glpo0=0x9999 +mcs5glpo1=0x9999 +mcs5ghpo0=0x9999 +mcs5ghpo1=0x9999 + +cckPwrOffset=4 +cckdigfilttype=21 +ofdmdigfilttype=2 +#wl0id=0x431b +extpagain5g=2 +rfreg033=0x19 +rfreg033_cck=0x1f +pacalidx2g=65 +dacrate2g=160 +txalpfbyp2g=1 +bphyscale=17 + +sd_gpout=0 +sd_oobonly=1 + +swctrlmap_2g=0x84048404, 0x82028202, 0x84048404, 0x010202, 0x1ff +swctrlmap_5g=0xC040C040, 0xB030A020, 0x8000C040, 0x010A02, 0x2F8 + 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 Binary files /dev/null and b/overlay/frameworks/base/core/res/res/drawable-hdpi/default_wallpaper.jpg 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 @@ + + + + + + Neu starten + Recovery + + 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 @@ + + + + + + + Käynnistä uudelleen + Recovery + + + 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 @@ + + + + + Redémarrage + Recovery + + 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 @@ + + + + + + + + + Riavvia + Recovery + + + + 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 @@ + + + + + + + -22863878 + -43244097 + + + + 3 + + + + Reiniciar + Recuperação + + 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 @@ + + + + + + Перезагрузить + Recovery + + + 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 @@ + + + + + + + Omstart + Recovery + + + 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 @@ + + + + + + Перезавантажити + Реж. відновлення + + + 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 @@ + + + + + + + 25022112 + 121478019 + + + + 3 + + + + + + 重新開機 + Recovery + + + 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 @@ + + + + + + + @drawable/sym_def_app_icon + @drawable/arrow_down_float + @drawable/btn_check + @drawable/btn_check_label_background + @drawable/btn_check_off + @drawable/btn_check_on + @drawable/btn_default + @drawable/btn_default_small + @drawable/btn_dropdown + @drawable/btn_plus + @drawable/btn_minus + @drawable/btn_radio + @drawable/btn_star + @drawable/btn_toggle + @drawable/ic_emergency + @drawable/divider_horizontal_bright + @drawable/divider_horizontal_dark + @drawable/edit_text + @drawable/expander_group + @drawable/list_selector_background + @drawable/menu_background + @drawable/menu_background_fill_parent_width + @drawable/menu_selector + @drawable/panel_background + @drawable/popup_bottom_bright + @drawable/popup_bottom_dark + @drawable/popup_bottom_medium + @drawable/popup_center_bright + @drawable/popup_center_dark + @drawable/popup_full_dark + @drawable/popup_top_bright + @drawable/popup_top_dark + @drawable/progress_horizontal + @drawable/progress_indeterminate_horizontal + @drawable/progress_small + @drawable/progress_small_titlebar + @drawable/screen_background_dark + @drawable/screen_background_light + @drawable/scrollbar_handle_horizontal + @drawable/scrollbar_handle_vertical + @drawable/spinner_dropdown_background + @drawable/text_select_handle_left + @drawable/text_select_handle_middle + @drawable/text_select_handle_right + @drawable/title_bar + @drawable/title_bar_shadow + + @drawable/indicator_code_lock_drag_direction_green_up + @drawable/indicator_code_lock_drag_direction_red_up + @drawable/indicator_code_lock_point_area_default + @drawable/indicator_code_lock_point_area_green + @drawable/indicator_code_lock_point_area_red + + @drawable/overscroll_glow + @drawable/overscroll_edge + + + + + @color/hint_foreground_dark + @color/hint_foreground_light + @color/primary_text_dark + @color/primary_text_dark_disable_only + @color/primary_text_light + @color/primary_text_light_disable_only + @color/primary_text_light_nodisable + @color/secondary_text_dark + @color/secondary_text_light + @color/tab_indicator_text + @color/tertiary_text_dark + @color/tertiary_text_light + #ff000000 + #00000000 + #ffffffff + + + + + 36149777 + -95993398 + + + + 3 + + + + + Reboot + Recovery + + + + + + recovery + + + 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 @@ + + + + + + + true + + + true + + + false + + + true + + + + 10 + 160 + 225 + 320 + 640 + 1280 + 2600 + 10240 + + + + + 20 + 20 + 20 + 20 + 35 + 50 + 50 + 100 + 255 + + + + + 255 + 255 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + com.android.wallpaper/.nexus.NexusWallpaper + + 0 + 1 + + + #ffffffff + + + 9000 + + + com.google.android.location.NetworkLocationProvider + + + com.google.android.location.GeocodeProvider + + + + + + + + "wifi,1,1,1" + "mobile,0,0,0" + "mobile_mms,2,0,2" + "mobile_supl,3,0,2" + "mobile_dun,4,0,4" + "mobile_hipri,5,0,3" + + + + + "usb0" + + + + + "pdp\\d" + "eth\\d" + + + + + "wl0.1" + + + + + false + + + + 30 + + + + + 1 + + + + true + + + + + true + 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 @@ + + + + + 0 + 49 + 142 + 0.3 + + 35690 + 260 + 4 + 120 + 220 + 88 + 88 + 185 + 50 + 1500 + 88 + + 3.4 + 3.4 + + + 100000 + 200000 + 400000 + 800000 + 1000000 + + + 1.4 + + 44 + + + 55.4 + 82.1 + 113.7 + 205.4 + 259.0 + + 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 @@ + + + + true + true + 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 @@ + + + + true + 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 @@ + + + + + + + true + 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 Binary files /dev/null and b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_grass.jpg 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 Binary files /dev/null and b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_grass_small.jpg 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 Binary files /dev/null and b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_mountains.jpg 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 Binary files /dev/null and b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_mountains_small.jpg 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 Binary files /dev/null and b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_phasebeam.jpg 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 Binary files /dev/null and b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_phasebeam_small.jpg 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 Binary files /dev/null and b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_pulse.jpg 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 Binary files /dev/null and b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_pulse_small.jpg 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 Binary files /dev/null and b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_shuttle.jpg 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 Binary files /dev/null and b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_shuttle_small.jpg 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 Binary files /dev/null and b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stars.jpg 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 Binary files /dev/null and b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stars_small.jpg 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 Binary files /dev/null and b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stream.jpg 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 Binary files /dev/null and b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stream_small.jpg 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 Binary files /dev/null and b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_street_lights.jpg 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 Binary files /dev/null and b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_street_lights_small.jpg 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 Binary files /dev/null and b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_sunset.jpg 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 Binary files /dev/null and b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_sunset_small.jpg 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 @@ + + + + + + wallpaper_street_lights + wallpaper_stream + wallpaper_phasebeam + wallpaper_pulse + wallpaper_nexusrain + wallpaper_stars + wallpaper_canyon + wallpaper_grass + wallpaper_zanzibar + wallpaper_cloud + wallpaper_monumentvalley + wallpaper_mountains + wallpaper_sunset + wallpaper_goldengate + wallpaper_shuttle + + 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 @@ + + + + + + + + true + true + + + false + + + true + + + true + + 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 @@ + + + + + + false + + true + 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 Binary files /dev/null and b/overlay/packages/wallpapers/Basic/res/drawable-hdpi/nexus_thumb.png 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 Binary files /dev/null and b/overlay/packages/wallpapers/Basic/res/drawable-hdpi/pyramid_background.png 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; ipulseType = 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; istartTime; + + 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; iactive == 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 @@ + + + + true + diff --git a/recovery.rc b/recovery.rc new file mode 100644 index 0000000..c4dbb92 --- /dev/null +++ b/recovery.rc @@ -0,0 +1,271 @@ +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 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 + +# 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 ext4 /dev/block/mmcblk0p9 /system wait rw + mount ext4 /dev/block/mmcblk0p7 /cache nosuid nodev noatime wait + +on post-fs + # 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/shbootimg.mk b/shbootimg.mk new file mode 100644 index 0000000..df72d2b --- /dev/null +++ b/shbootimg.mk @@ -0,0 +1,9 @@ +LOCAL_PATH := $(call my-dir) + +INSTALLED_BOOTIMAGE_TARGET := $(PRODUCT_OUT)/boot.img +$(INSTALLED_BOOTIMAGE_TARGET): $(TARGET_PREBUILT_KERNEL) $(recovery_ramdisk) $(INSTALLED_RAMDISK_TARGET) $(PRODUCT_OUT)/utilities/flash_image $(PRODUCT_OUT)/utilities/busybox $(PRODUCT_OUT)/utilities/make_ext4fs $(PRODUCT_OUT)/utilities/erase_image + $(call pretty,"Boot image: $@") + $(hide) ./device/samsung/c1-common/mkshbootimg.py $@ $(TARGET_PREBUILT_KERNEL) $(INSTALLED_RAMDISK_TARGET) $(recovery_ramdisk) + +$(INSTALLED_RECOVERYIMAGE_TARGET): $(INSTALLED_BOOTIMAGE_TARGET) + $(ACP) $(INSTALLED_BOOTIMAGE_TARGET) $@ diff --git a/sirfgps.conf b/sirfgps.conf new file mode 100644 index 0000000..b01a5b0 --- /dev/null +++ b/sirfgps.conf @@ -0,0 +1,27 @@ +#CSR SiRF plc +#PROJECT_NAME : white Space is not allowed +#UART_DRIVER : Uart Driver Path +#RESET_GPIO : Reset GPIO Driver Path +#ONOFF_GPIO : OnOff GPIO Driver Path +#EXTERNAL_LNA : 1 - use External LNA, 0 - use Internal LNA only +#REF_CLOCK_26MHZ: 1 - use 26MHz TCXO, 0 - use 16.369MHz TCXO +#UART_BAUD_RATE : 0 - 115200bps 1 - 230400, 2 - 460800, 3 - 57600 +#FREQUENCY_AIDING : 0 - Disable, 1 - Enable +#SENSOR_AIDING : 0 - Disable, 1 - Enable +#SET_ID_IMSI : 1 - Use IMSI for SET ID, 0 - Use MSISDN for SET ID, especially for Japan Network Operators +#DEBUGGING_FILES : 0 - no log file, 1 - log files enabled +#SSL_ENABLED : 0 - SSL Disabled, 1 - SSL Enabled +#CERTI_VERSION : 0 - TLSv1 , 1 - SSLv3 , 2 - SSLv23 +PROJECT=SAMSUNG_U1 +UART_DRIVER=/dev/s3c2410_serial1 +RESET_GPIO=/sys/devices/virtual/sec/gps/GPS_nRST/value +ONOFF_GPIO=/sys/devices/virtual/sec/gps/GPS_PWR_EN/value +EXTERNAL_LNA=1 +REF_CLOCK_26MHZ=1 +UART_BAUD_RATE=2 +FREQUENCY_AIDING=1 +SENSOR_AIDING=0 +SET_ID_IMSI=1 +DEBUGGING_FILES=0 +SSL_ENABLED=0 +CERTI_VERSION=0 diff --git a/system.prop b/system.prop new file mode 100644 index 0000000..7f6edde --- /dev/null +++ b/system.prop @@ -0,0 +1,9 @@ +# +# system.prop for asop5000 +# + +rild.libpath=/system/lib/libsec-ril.so +rild.libargs=-d /dev/ttyS0 +ro.sf.lcd_density=240 +dalvik.vm.heapsize=64m + diff --git a/ueventd.c1.rc b/ueventd.c1.rc new file mode 100644 index 0000000..75ff6c9 --- /dev/null +++ b/ueventd.c1.rc @@ -0,0 +1,124 @@ +/dev/null 0666 root root +/dev/zero 0666 root root +/dev/full 0666 root root +/dev/ptmx 0666 root root +/dev/tty 0666 root root +/dev/random 0666 root root +/dev/urandom 0666 root root +/dev/ashmem 0666 root root +/dev/binder 0666 root root +/dev/video14 0660 system system +/dev/video21 0660 system system +/dev/pmem_gpu1 0660 system graphics + +# logger should be world writable (for logging) but not readable +/dev/log/* 0662 root log + +# the msm hw3d client device node is world writable/readable. +/dev/msm_hw3dc 0666 root root + +# gpu driver for adreno200 is globally accessible +/dev/kgsl 0666 root root + +# these should not be world writable +/dev/diag 0660 radio radio +/dev/diag_arm9 0660 radio radio +/dev/android_adb 0660 adb adb +/dev/android_adb_enable 0660 adb adb +/dev/ttyMSM0 0600 bluetooth bluetooth +/dev/ttyHS0 0600 bluetooth bluetooth +/dev/uinput 0660 system bluetooth +/dev/alarm 0664 system radio +/dev/tty0 0660 root system +/dev/graphics/* 0660 root graphics +/dev/msm_hw3dm 0660 system graphics +/dev/input/* 0660 root input +/dev/eac 0660 root audio +/dev/cam 0660 root camera +/dev/pmem_adsp* 0660 system audio +/dev/pmem_camera* 0660 system camera +/dev/oncrpc/* 0660 root system +/dev/adsp/* 0660 system audio +/dev/snd/* 0660 system audio +/dev/mt9t013 0660 system system +/dev/msm_camera/* 0660 system system +/dev/akm8976_daemon 0640 compass system +/dev/akm8976_aot 0640 compass system +/dev/akm8973_daemon 0640 compass system +/dev/akm8973_aot 0640 compass system +/dev/bma150 0640 compass system +/dev/cm3602 0640 compass system +/dev/akm8976_pffd 0640 compass system +/dev/lightsensor 0640 system system +/dev/msm_pcm_out* 0660 system audio +/dev/msm_pcm_in* 0660 system audio +/dev/msm_pcm_ctl* 0660 system audio +/dev/msm_snd* 0660 system audio +/dev/msm_mp3* 0660 system audio +/dev/audience_a1026* 0660 system audio +/dev/tpa2018d1* 0660 system audio +/dev/msm_audpre 0660 system audio +/dev/msm_audio_ctl 0660 system audio +/dev/htc-acoustic 0660 system audio +/dev/vdec 0660 system audio +/dev/q6venc 0660 system audio +/dev/snd/dsp 0660 system audio +/dev/snd/dsp1 0660 system audio +/dev/snd/mixer 0660 system audio +/dev/fmradio 0660 system audio +/dev/smd0 0640 radio radio +/dev/qemu_trace 0666 system system +/dev/qmi 0640 radio radio +/dev/qmi0 0640 radio radio +/dev/qmi1 0640 radio radio +/dev/qmi2 0640 radio radio +/dev/bus/usb/* 0660 system usb + +# CDMA radio interface MUX +/dev/ts0710mux* 0640 radio radio +/dev/ppp 0660 radio vpn +/dev/tun 0660 vpn vpn + +# sysfs properties +/sys/devices/virtual/input/input* enable 0660 root input +/sys/devices/virtual/input/input* poll_delay 0660 root input + +# camera +/dev/video0 0660 system camera +/dev/video1 0660 system camera +/dev/video2 0660 system camera +/dev/video3 0660 system camera + +# mfc +/dev/s3c-mfc 0660 system graphics + +# for usb printer +/dev/usb/lp* 0660 system usb + +/dev/i2c-7 0660 system system +/dev/i2c-15 0660 system system +/dev/CEC 0660 system system +/dev/HPD 0660 system system +/dev/s5p-jpeg 0660 system system + +# for Sensor HAL +/dev/akm8975 0660 system system +/dev/accelerometer 0660 system system + +/dev/s3c2410_serial1 0660 root system +/dev/tspdrv 0660 shell shell + +# for MTP +/dev/usb_mtp_gadget 0660 system system + +# added by slsi +/dev/mali 0666 system system +/dev/ump 0666 system graphics + +# for ULP Audio +/dev/s5p-rp 0660 system audio +/dev/s5p-rp_ctrl 0660 system audio + +/dev/fimg2d 0666 system system + +/dev/pmem 0660 system graphics diff --git a/vold.fstab b/vold.fstab new file mode 100644 index 0000000..7384002 --- /dev/null +++ b/vold.fstab @@ -0,0 +1,23 @@ +## Vold 2.0 Generic fstab +## - San Mehat (san@android.com) +## + +####################### +## Regular device mount +## +## Format: dev_mount