commit 2fb2a0a1eb2c6d9df9d22772d4e4547d3e23f498 Author: Tiziano Date: Wed Sep 1 19:23:34 2010 +0200 first commit diff --git a/AndroidBoard.mk b/AndroidBoard.mk new file mode 100644 index 0000000..da03db0 --- /dev/null +++ b/AndroidBoard.mk @@ -0,0 +1,26 @@ +LOCAL_PATH := $(call my-dir) + +file := $(TARGET_ROOT_OUT)/init.bahamas.rc +ALL_PREBUILT += $(file) +$(file) : $(LOCAL_PATH)/init.bahamas.rc | $(ACP) + $(transform-prebuilt-to-target) + +file := $(TARGET_ROOT_OUT)/init.rc +ALL_PREBUILT += $(file) +$(file) : $(LOCAL_PATH)/init.rc | $(ACP) + $(transform-prebuilt-to-target) + +include $(CLEAR_VARS) +LOCAL_SRC_FILES := bahamas-keypad.kcm +include $(BUILD_KEY_CHAR_MAP) + +# This will install the file in /system/etc +# + +include $(CLEAR_VARS) +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE := vold.fstab +LOCAL_SRC_FILES := $(LOCAL_MODULE) +include $(BUILD_PREBUILT) + +-include device/htc/tattoo/AndroidBoardVendor.mk diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..af6f411 --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,100 @@ +# config.mk +# +# Product-specific compile-time definitions. +# + +# WARNING: This line must come *before* including the proprietary +# variant, so that it gets overwritten by the parent (which goes +# against the traditional rules of inheritance). +USE_CAMERA_STUB := true + +# inherit from the proprietary version +-include device/htc/tattoo/BoardConfigVendor.mk + +TARGET_BOARD_PLATFORM := msm7k +TARGET_CPU_ABI := armeabi + +TARGET_NO_BOOTLOADER := true +TARGET_NO_RADIOIMAGE := true +TARGET_NO_RECOVERY := true + +# Wifi related defines +BOARD_WPA_SUPPLICANT_DRIVER := CUSTOM +BOARD_WPA_SUPPLICANT_PRIVATE_LIB := libWifiApi +BOARD_WLAN_TI_STA_DK_ROOT := system/wlan/ti/sta_dk_4_0_4_32 +WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/wlan.ko" +WIFI_DRIVER_MODULE_ARG := "" +WIFI_DRIVER_MODULE_NAME := "wlan" +WIFI_FIRMWARE_LOADER := "wlan_loader" + +TARGET_BOOTLOADER_BOARD_NAME := bahamas + +TARGET_BOOTLOADER_LIBS := \ + libboot_board_dream_sapphire_combined \ + libboot_arch_msm7k \ + libboot_arch_armv6 + +TARGET_BOOTLOADER_LINK_SCRIPT := \ + hardware/msm7k/boot/boot.ld + +TARGET_PROVIDES_INIT_RC := true + +BOARD_KERNEL_CMDLINE := no_console_suspend=1 console=null +BOARD_KERNEL_BASE := 0x02E00000 + +BOARD_HAVE_BLUETOOTH := true + +BOARD_VENDOR_USE_AKMD := akm8973 + +BOARD_VENDOR_QCOM_AMSS_VERSION := 1355 + +TARGET_HARDWARE_3D := false + +BOARD_GPS_LIBRARIES := libgps librpc + +# OpenGL drivers config file path +BOARD_EGL_CFG := device/htc/tattoo/egl.cfg + + +# Use libcamera2 +BOARD_USES_OLD_CAMERA_HACK := true + +# No authoring clock for OpenCore on DS +BOARD_NO_PV_AUTHORING_CLOCK := true + +BOARD_USES_QCOM_LIBS := true + +TARGET_RELEASETOOLS_EXTENSIONS := device/htc/common + + +TARGET_OTA_ASSERT_DEVICE := bahamas +PRODUCT_BUILD_PROP_OVERRIDES += TARGET_BOOTLOADER_BOARD_NAME=bahamas + +# # cat /proc/mtd +# dev: size erasesize name +# mtd0: 00040000 00020000 "misc" +# mtd1: 00500000 00020000 "recovery" +# mtd2: 00280000 00020000 "boot" +# mtd3: 05a00000 00020000 "system" +# mtd4: 05000000 00020000 "cache" +# mtd5: 127c0000 00020000 "userdata" +# Changed for Tattoo +BOARD_BOOTIMAGE_MAX_SIZE := $(call image-size-from-data-size,0x00280000) +BOARD_RECOVERYIMAGE_MAX_SIZE := $(call image-size-from-data-size,0x00500000) +BOARD_SYSTEMIMAGE_MAX_SIZE := $(call image-size-from-data-size,0x09600000) +BOARD_USERDATAIMAGE_MAX_SIZE := $(call image-size-from-data-size,0x0a520000) + +# The size of a block that can be marked bad. +BOARD_FLASH_BLOCK_SIZE := 153600 + +# Stagefright fully enabled +BUILD_WITH_FULL_STAGEFRIGHT := true + + +# JIT built in, but disabled by default +#WITH_JIT := true +#ENABLE_JSC_JIT := true + +# Stop compiling test_* binaries for eng tag +#STOP_TEST_BINS := true + diff --git a/BoardConfigVendor.mk b/BoardConfigVendor.mk new file mode 100644 index 0000000..e3e8230 --- /dev/null +++ b/BoardConfigVendor.mk @@ -0,0 +1,22 @@ +# 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. + +# This file is generated by device/htc/tattoo/setup-makefiles.sh + +PRODUCT_SPECIFIC_DEFINES += TARGET_PRELINKER_MAP=$(TOP)/device/htc/tattoo/prelink-linux-arm-tattoo.map + +BOARD_GPS_LIBRARIES := libgps + +USE_CAMERA_STUB := false + diff --git a/Changelog-SPQRom.txt b/Changelog-SPQRom.txt new file mode 100644 index 0000000..2dbd20b --- /dev/null +++ b/Changelog-SPQRom.txt @@ -0,0 +1,16 @@ +0.3: +-LatinIME setted as default keyboard +-Camera should not drain battery now +-Resolve video issues and enabled streaming from Browser +-Added TattooCalibration.apk + +0.2: +-Disabled menu button in lock screen +-Update to lastest CM6 stable release +-Cyanogen Compcache setting activated +-Included Chinese and Japanese Keyboard +-Revisited Layout of Latin Keyboard and USB Storage Dialog for QVGA + +0.1: +Initial Release + diff --git a/bahamas-keypad.kcm b/bahamas-keypad.kcm new file mode 100644 index 0000000..2f9af21 --- /dev/null +++ b/bahamas-keypad.kcm @@ -0,0 +1,64 @@ +[type=QWERTY] + +# keycode display number base caps fn caps_fn + +A 'A' '2' 'a' 'A' 'a' 'A' +B 'B' '2' 'b' 'B' 'b' 'B' +C 'C' '2' 'c' 'C' 'c' 0x00E7 +D 'D' '3' 'd' 'D' ''' 0x00 +E 'E' '3' 'e' 'E' '"' 0x0301 +F 'F' '3' 'f' 'F' '[' 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' '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' '`' 0x20AC +S 'S' '7' 's' 'S' '\' 0x00DF +T 'T' '8' 't' 'T' '{' 0x00A3 +U 'U' '8' 'u' 'U' '_' 0x0308 +V 'V' '8' 'v' 'V' 'v' 'V' +W 'W' '9' 'w' 'W' '~' 0x00 +X 'X' '9' 'x' 'X' 'x' 0xEF00 +Y 'Y' '9' 'y' 'Y' '}' 0x00A1 +Z 'Z' '9' 'z' 'Z' 'z' 'Z' + +# on pc keyboards +COMMA ',' ',' ',' ',' ',' ',' +PERIOD '.' '.' '.' '.' '.' 0x2026 +AT '@' 0x00 '@' '@' '@' 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/custom/TattooCalibration.apk b/custom/TattooCalibration.apk new file mode 100755 index 0000000..f5f67fa Binary files /dev/null and b/custom/TattooCalibration.apk differ diff --git a/custom/dropbear b/custom/dropbear new file mode 100755 index 0000000..6f8678b Binary files /dev/null and b/custom/dropbear differ diff --git a/custom/dropbearkey b/custom/dropbearkey new file mode 100755 index 0000000..e89ed33 Binary files /dev/null and b/custom/dropbearkey differ diff --git a/custom/init.d/00sysctl b/custom/init.d/00sysctl new file mode 100644 index 0000000..280bc9a --- /dev/null +++ b/custom/init.d/00sysctl @@ -0,0 +1,3 @@ +#!/system/bin/sh + +sysctl -p diff --git a/custom/init.d/01dalvikcache b/custom/init.d/01dalvikcache new file mode 100644 index 0000000..c83cc91 --- /dev/null +++ b/custom/init.d/01dalvikcache @@ -0,0 +1,17 @@ +#!/system/bin/sh + +# - Move /data/dalvik-cache to /cache partition +# - Get the idea from Cyanogen ROM-5.0.4.1 +if [ ! -d /cache/dalvik-cache ] +then + mkdir /cache/dalvik-cache + chown system.system /cache/dalvik-cache + chmod 0771 /cache/dalvik-cache +fi + +mount -o bind /cache/dalvik-cache /data/dalvik-cache +# double-check the perms +chown system.system /data/dalvik-cache +chmod 0771 /data/dalvik-cache + +exit 0 diff --git a/custom/init.d/02squashfs b/custom/init.d/02squashfs new file mode 100644 index 0000000..ef00e25 --- /dev/null +++ b/custom/init.d/02squashfs @@ -0,0 +1,13 @@ +#!/system/bin/sh + +# - SquashFS mounted. +setprop fy.modules.mounted 0 + +if [ -f /system/squashfs/modules.sqf ] +then + busybox losetup /dev/block/loop0 /system/squashfs/modules.sqf + busybox mount -o ro -t squashfs /dev/block/loop0 /system/lib/modules + setprop fy.modules.mounted 1 +fi + +exit 0 diff --git a/custom/init.d/08compcache b/custom/init.d/08compcache new file mode 100644 index 0000000..743b1f5 --- /dev/null +++ b/custom/init.d/08compcache @@ -0,0 +1,20 @@ +#!/system/bin/sh + +# - load compcache module + +if [ -e /data/property/persist.service.compcache ]; +then + PROP=`getprop persist.service.compcache` +else + PROP=`getprop ro.compcache.default` + setprop persist.service.compcache $PROP +fi + +if [ $PROP == 1 ] +then + insmod /system/lib/modules/ramzswap.ko disksize_kb=30720 + busybox swapon /dev/block/ramzswap0 +fi + +exit 0 + diff --git a/custom/init.d/20opt_and_fix b/custom/init.d/20opt_and_fix new file mode 100644 index 0000000..7a4e3f1 --- /dev/null +++ b/custom/init.d/20opt_and_fix @@ -0,0 +1,9 @@ +#!/system/bin/sh + +# - no need to set higher +echo '1' > /sys/devices/virtual/block/mtdblock4/queue/iosched/fifo_batch +echo '1' > /sys/devices/virtual/block/mtdblock5/queue/iosched/fifo_batch +echo '1' > /sys/block/mmcblk0/queue/iosched/fifo_batch + +exit 0 + diff --git a/custom/init.d/80userinit b/custom/init.d/80userinit new file mode 100644 index 0000000..e5ebca7 --- /dev/null +++ b/custom/init.d/80userinit @@ -0,0 +1,8 @@ +#!/system/bin/sh + +# - run customized shell at boot time +userscript="/data/local/bin/autostart.sh" + +[ -x $userscript ] && /system/bin/sh $userscript + +exit 0 diff --git a/custom/init.d/99complete b/custom/init.d/99complete new file mode 100644 index 0000000..259d7e2 --- /dev/null +++ b/custom/init.d/99complete @@ -0,0 +1,5 @@ +#!/system/bin/sh + +sync +setprop fy.filesystem.ready 1 + diff --git a/custom/logo.rle b/custom/logo.rle new file mode 100644 index 0000000..13851d1 Binary files /dev/null and b/custom/logo.rle differ diff --git a/custom/modules.sqf b/custom/modules.sqf new file mode 100755 index 0000000..6008566 Binary files /dev/null and b/custom/modules.sqf differ diff --git a/custom/passwd b/custom/passwd new file mode 100644 index 0000000..b9f7d89 --- /dev/null +++ b/custom/passwd @@ -0,0 +1 @@ +root:x:0:0:root:/root:/system/bin/sh diff --git a/custom/placeholder b/custom/placeholder new file mode 100644 index 0000000..e69de29 diff --git a/custom/rzscontrol b/custom/rzscontrol new file mode 100755 index 0000000..fa34992 Binary files /dev/null and b/custom/rzscontrol differ diff --git a/custom/sysctl.conf b/custom/sysctl.conf new file mode 100644 index 0000000..f237f93 --- /dev/null +++ b/custom/sysctl.conf @@ -0,0 +1,11 @@ +# - OOM killer simply kill the task that triggered the out-of-memory condition. +# This avoids the expensive tasklist scan to save CPU time. +vm.oom_kill_allocating_task=1 + +# - retaining dentry and inode caches instead of reclaiming them by default +# to increase battery life. +vm.vfs_cache_pressure=10 + +# - set page-cluster to 0, ie, 1 page per swapping +vm.page-cluster=0 + diff --git a/custom/tattoo-hack.ko b/custom/tattoo-hack.ko new file mode 100644 index 0000000..d534640 Binary files /dev/null and b/custom/tattoo-hack.ko differ diff --git a/device_tattoo-vendor-blobs.mk b/device_tattoo-vendor-blobs.mk new file mode 100644 index 0000000..ed652fe --- /dev/null +++ b/device_tattoo-vendor-blobs.mk @@ -0,0 +1,71 @@ +# libgps is necessary to complete the compilation +PRODUCT_COPY_FILES += \ + device/htc/tattoo/custom/logo.rle:root/logo.rle \ + device/htc/tattoo/proprietary/libgps.so:obj/lib/libgps.so + +# proprietary for /system/squashfs +PRODUCT_COPY_FILES += \ + device/htc/tattoo/custom/modules.sqf:system/squashfs/modules.sqf + +# Files in /system/etc +PRODUCT_COPY_FILES += \ + device/htc/tattoo/custom/passwd:system/etc/passwd \ + device/htc/tattoo/custom/init.d/00sysctl:system/etc/init.d/00sysctl \ + device/htc/tattoo/custom/init.d/02squashfs:system/etc/init.d/02squashsf \ + device/htc/tattoo/custom/init.d/08compcache:system/etc/init.d/08compcache \ + device/htc/tattoo/custom/init.d/20opt_and_fix:system/etc/init.d/20opt_and_fix \ + device/htc/tattoo/custom/init.d/80userinit:system/etc/init.d/80userinit \ + device/htc/tattoo/custom/init.d/99complete:system/etc/init.d/99complete \ + device/htc/tattoo/custom/sysctl.conf:system/etc/sysctl.conf \ + device/htc/tattoo/custom/placeholder:system/lib/modules/placeholder + +# Tattoo Calibration app +PRODUCT_COPY_FILES += \ + device/htc/tattoo/custom/TattooCalibration.apk:system/app/TattooCalibration.apk + +# proprietary for /system/sbin +PRODUCT_COPY_FILES += \ + device/htc/tattoo/custom/dropbear:system/xbin/dropbear \ + device/htc/tattoo/custom/dropbearkey:system/xbin/dropbearkey \ + device/htc/tattoo/custom/rzscontrol:system/xbin/rzscontrol + +# proprietary for /system/usr/keychars and /system/usr/keylayout +PRODUCT_COPY_FILES += \ + device/htc/tattoo/proprietary/qwerty2.kcm.bin:system/usr/keychars/qwerty2.kcm.bin \ + device/htc/tattoo/proprietary/qwerty.kcm.bin:system/usr/keychars/qwerty.kcm.bin + +# boot partition +PRODUCT_COPY_FILES += \ + device/htc/tattoo/custom/tattoo-hack.ko:root/sbin/tattoo-hack.ko \ + +# Other bin stuff +PRODUCT_COPY_FILES += \ + device/htc/tattoo/proprietary/akm8973:system/bin/akm8973 + +# proprietary stuff +PRODUCT_COPY_FILES += \ + device/htc/tattoo/proprietary/AudioPara4.csv:system/etc/AudioPara4.csv \ + device/htc/tattoo/proprietary/AudioFilter.csv:system/etc/AudioFilter.csv \ + device/htc/tattoo/proprietary/AudioPreProcess.csv:system/etc/AudioPreProcess.csv \ + device/htc/tattoo/proprietary/Fw1251r1c.bin:system/etc/wifi/Fw1251r1c.bin \ + device/htc/tattoo/proprietary/tiwlan.ini:system/etc/wifi/tiwlan.ini \ + device/htc/tattoo/proprietary/libA2DP.so:system/lib/libA2DP.so \ + device/htc/tattoo/proprietary/libaudioeq.so:system/lib/libaudioeq.so \ + device/htc/tattoo/proprietary/libGLES_qcom.so:system/lib/egl/libGLES_qcom.so \ + device/htc/tattoo/proprietary/libgps.so:system/lib/libgps.so \ + device/htc/tattoo/proprietary/liboemcamera.so:system/lib/liboemcamera.so \ + device/htc/tattoo/proprietary/libOmxH264Dec.so:system/lib/libOmxH264Dec.so \ + device/htc/tattoo/proprietary/libOmxMpeg4Dec.so:system/lib/libOmxMpeg4Dec.so \ + device/htc/tattoo/proprietary/libOmxVidEnc.so:system/lib/libOmxVidEnc.so \ + device/htc/tattoo/proprietary/libmm-adspsvc.so:system/lib/libmm-adspsvc.so \ + device/htc/tattoo/proprietary/libhtc_acoustic.so:system/lib/libhtc_acoustic.so \ + device/htc/tattoo/proprietary/libhtc_ril.so:system/lib/libhtc_ril.so \ + device/htc/tattoo/proprietary/brf6300.bin:system/etc/firmware/brf6300.bin \ + device/htc/tattoo/proprietary/bahamas-keypad.kl:system/usr/keylayout/bahamas-keypad.kl \ + device/htc/tattoo/proprietary/h2w_headset.kl:system/usr/keylayout/h2w_headset.kl \ + device/htc/tattoo/proprietary/qwerty.kl:system/usr/keylayout/qwerty.kl \ + device/htc/tattoo/proprietary/agps_rm:/system/etc/agps_rm \ + device/htc/tattoo/proprietary/libt9.so:system/lib/libt9.so \ + device/htc/tattoo/proprietary/sensors.bahamas.so:system/lib/hw/sensors.bahamas.so + + diff --git a/device_tattoo.mk b/device_tattoo.mk new file mode 100644 index 0000000..e162c5e --- /dev/null +++ b/device_tattoo.mk @@ -0,0 +1,106 @@ +# +# Copyright (C) 2008 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. +# + +# Kernel Targets +ifeq ($(TARGET_PREBUILT_KERNEL),) +ifeq ($(TARGET_KERNEL_CONFIG),) +TARGET_PREBUILT_KERNEL := device/htc/tattoo/kernel +endif # TARGET_KERNEL_CONFIG +endif # TARGET_PREBUILT_KERNEL + +DEVICE_PACKAGE_OVERLAYS := device/htc/tattoo/overlay + +PRODUCT_PACKAGES += \ + librs_jni \ + sensors.bahamas + +PRODUCT_LOCALES += mdpi + +# Live wallpaper packages +PRODUCT_PACKAGES := \ + LiveWallpapersPicker \ + librs_jni + +# Pick up overlay for features that depend on non-open-source files +DEVICE_PACKAGE_OVERLAYS := device/htc/tattoo/overlay + +$(call inherit-product, device/htc/tattoo/device_tattoo-vendor-blobs.mk) + + +# from device_dream_sapphire.mk +PRODUCT_COPY_FILES += \ + frameworks/base/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \ + frameworks/base/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \ + frameworks/base/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \ + frameworks/base/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml + +PRODUCT_PROPERTY_OVERRIDES := \ + ro.media.dec.jpeg.memcap=10000000 + +PRODUCT_PROPERTY_OVERRIDES += \ + ro.ril.ecc.HTC-WWE=999 \ + ro.ril.ecc.HTC-Russia=01,02,03,04,001,002,003,004 \ + ro.ril.ecc.HTC-EastEurope=92,93,94 \ + ro.ril.enable.a52.HTC-ITA=1 \ + ro.ril.enable.a53.HTC-ITA=1 + +PRODUCT_PROPERTY_OVERRIDES += \ + rild.libpath=/system/lib/libhtc_ril.so \ + ro.ril.hep = 1 \ + ro.ril.enable.dtm = 1 \ + ro.ril.gprsclass = 12 \ + ro.ril.hsdpa.category = 8 \ + ro.ril.hsxpa = 1 \ + ro.ril.def.agps.mode = 2 \ + wifi.interface = tiwlan0 \ + ro.ril.htcmaskw1.bitmask = 4294967295 \ + ro.ril.htcmaskw1 = 14449 + +# Time between scans in seconds. Keep it high to minimize battery drain. +# This only affects the case in which there are remembered access points, +# but none are in range. +PRODUCT_PROPERTY_OVERRIDES += \ + wifi.supplicant_scan_interval=30 + +# density in DPI of the LCD of this board. This is used to scale the UI +# appropriately. If this property is not defined, the default value is 120 dpi. +PRODUCT_PROPERTY_OVERRIDES += \ + ro.sf.lcd_density=120 + +# Default network type +# 0 => WCDMA Preferred. +PRODUCT_PROPERTY_OVERRIDES += \ + ro.telephony.default_network=0 + +PRODUCT_PROPERTY_OVERRIDES += \ + ro.opengles.version=65536 + +PRODUCT_PROPERTY_OVERRIDES += \ + media.stagefright.enable-http=true \ + media.stagefright.enable-player=true \ + media.stagefright.enable-meta=true \ + media.stagefright.enable-record=true \ + media.stagefright.enable-scan=true + +# media configuration xml file +PRODUCT_COPY_FILES += \ + device/htc/tattoo/media_profiles.xml:/system/etc/media_profiles.xml + +# stuff common to all HTC phones +$(call inherit-product, device/htc/common/common.mk) + +$(call inherit-product, build/target/product/full.mk) + diff --git a/device_tattoo_as.mk b/device_tattoo_as.mk new file mode 100644 index 0000000..dcc43cc --- /dev/null +++ b/device_tattoo_as.mk @@ -0,0 +1,19 @@ +# +# Copyright (C) 2008 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. +# + +$(call inherit-product, device/common/gps/gps_as_supl.mk) +$(call inherit-product-if-exists, device/htc/tattoo/device_tattoo_as-vendor.mk) +$(call inherit-product, device/htc/tattoo/device_tattoo.mk) diff --git a/device_tattoo_eu.mk b/device_tattoo_eu.mk new file mode 100644 index 0000000..e8b0f2e --- /dev/null +++ b/device_tattoo_eu.mk @@ -0,0 +1,19 @@ +# +# Copyright (C) 2008 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. +# + +$(call inherit-product, device/common/gps/gps_eu_supl.mk) +$(call inherit-product-if-exists, device/htc/tattoo/device_tattoo_eu-vendor.mk) +$(call inherit-product, device/htc/tattoo/device_tattoo.mk) diff --git a/device_tattoo_us.mk b/device_tattoo_us.mk new file mode 100644 index 0000000..1ef80ea --- /dev/null +++ b/device_tattoo_us.mk @@ -0,0 +1,19 @@ +# +# Copyright (C) 2008 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. +# + +$(call inherit-product, device/common/gps/gps_us_supl.mk) +$(call inherit-product-if-exists, device/htc/tattoo/device_tattoo_us-vendor.mk) +$(call inherit-product, device/htc/tattoo/device_tattoo.mk) diff --git a/egl.cfg b/egl.cfg new file mode 100644 index 0000000..4c2f851 --- /dev/null +++ b/egl.cfg @@ -0,0 +1,33 @@ +# +# 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. + +# +# One line per configuration, of the form: +# +# D I TAG +# +# D: display (0: default) +# I: implementation (0: software, 1: hardware) +# TAG: a unique tag +# +# The library name loaded by EGL is constructed as (in that order): +# +# /system/lib/egl/libGLES_$TAG.so +# /system/lib/egl/lib{EGL|GLESv1_CM|GLESv2}_$TAG.so +# + + +0 0 android +0 0 qcom diff --git a/full_tattoo.mk b/full_tattoo.mk new file mode 100644 index 0000000..e8eaf6d --- /dev/null +++ b/full_tattoo.mk @@ -0,0 +1,108 @@ +# 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. + +# +# This file is the build configuration for a full Android +# build for tattoo hardware. This cleanly combines a set of +# device-specific aspects (drivers) with a device-agnostic +# product configuration (apps). +# + +# Inherit from those products. Most specific first. +$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk) +$(call inherit-product, device/htc/tattoo/device_tattoo_eu.mk) + +# Specific tattoo init.rc +#PRODUCT_COPY_FILES += \ +# device/htc/tattoo/init.rc:root/init.rc + + +PRODUCT_PROPERTY_OVERRIDES := \ + ro.media.dec.jpeg.memcap=10000000 + +PRODUCT_PROPERTY_OVERRIDES += \ + ro.ril.ecc.HTC-WWE=999 \ + ro.ril.ecc.HTC-Russia=01,02,03,04,001,002,003,004 \ + ro.ril.ecc.HTC-EastEurope=92,93,94 \ + ro.ril.enable.a52.HTC-ITA=1 \ + ro.ril.enable.a53.HTC-ITA=1 + +PRODUCT_PROPERTY_OVERRIDES += \ + rild.libpath=/system/lib/libhtc_ril.so \ + ro.ril.hep = 1 \ + ro.ril.enable.dtm = 1 \ + ro.ril.gprsclass = 12 \ + ro.ril.hsdpa.category = 8 \ + ro.ril.hsxpa = 1 \ + ro.ril.def.agps.mode = 2 \ + wifi.interface = tiwlan0 \ + ro.ril.htcmaskw1.bitmask = 4294967295 \ + ro.ril.htcmaskw1 = 14449 + +# Time between scans in seconds. Keep it high to minimize battery drain. +# This only affects the case in which there are remembered access points, +# but none are in range. +PRODUCT_PROPERTY_OVERRIDES += \ + wifi.supplicant_scan_interval=30 +# density in DPI of the LCD of this board. This is used to scale the UI +# appropriately. If this property is not defined, the default value is 120 dpi. +PRODUCT_PROPERTY_OVERRIDES += \ + ro.sf.lcd_density=120 + +PRODUCT_PROPERTY_OVERRIDES += \ + keyguard.no_require_sim=true \ + ro.secure=0 \ + ro.tether.denied=true + +# Disable tethering by default + +# Disable JIT by default +PRODUCT_PROPERTY_OVERRIDES += \ + dalvik.vm.execution-mode=int:fast + +# The OpenGL ES API level, 1.0 here +PRODUCT_PROPERTY_OVERRIDES += \ + ro.opengles.version=65536 + +# Active stagefright +PRODUCT_PROPERTY_OVERRIDES += \ + media.stagefright.enable-http=true \ + media.stagefright.enable-player=true \ + media.stagefright.enable-meta=true \ + media.stagefright.enable-record=true \ + media.stagefright.enable-scan=true + +PRODUCT_PROPERTY_OVERRIDES += \ + ro.com.google.locationfeatures=1 + +# View configuration for QVGA +PRODUCT_PROPERTY_OVERRIDES += \ + view.fading_edge_length=8 \ + view.touch_slop=15 \ + view.minimum_fling_velocity=25 \ + view.scroll_friction=0.008 + +# media configuration xml file +PRODUCT_COPY_FILES += \ + device/htc/tattoo/media_profiles.xml:/system/etc/media_profiles.xml + +# stuff common to all HTC phones +$(call inherit-product, device/htc/common/common.mk) + +$(call inherit-product, $(SRC_TARGET_DIR)/product/full.mk) + +# Discard inherited values and use our own instead. +PRODUCT_NAME := full_tattoo +PRODUCT_DEVICE := tattoo +PRODUCT_MODEL := Full Android on Tattoo diff --git a/init.bahamas.rc b/init.bahamas.rc new file mode 100755 index 0000000..b3483a0 --- /dev/null +++ b/init.bahamas.rc @@ -0,0 +1,94 @@ +on early-init + device mtd@misc 0460 radio diag + +on boot +# unmap left alt to avoid console switch + setkey 0x0 0x38 0x0 +# device reset SEND+MENU+END + setkey 0x0 0xe7 0x706 + setkey 0x0 0x8b 0x707 + + setkey 0x40 0xe7 0x706 + setkey 0x40 0x8b 0x707 + + setkey 0x80 0xe7 0x706 + setkey 0x80 0x8b 0x707 + + setkey 0xc0 0xe7 0x706 + setkey 0xc0 0x8b 0x707 + setkey 0xc0 0x6b 0x20c + + mkdir /data/misc/wifi 0770 wifi wifi + mkdir /data/misc/wifi/sockets 0770 wifi wifi + mkdir /data/misc/dhcp 0770 dhcp dhcp + chown dhcp dhcp /data/misc/dhcp + + # bluetooth power up/down interface + chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type + chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state + chmod 0660 /sys/class/rfkill/rfkill0/state + chown bluetooth bluetooth /sys/devices/platform/msm_serial_hs.0/serial_lock_cpu + chmod 0660 /sys/devices/platform/msm_serial_hs.0/serial_lock_cpu + +on property:init.svc.wpa_supplicant=stopped + start dhcp-release + +on property:init.svc.dhcp-release=stopped + stop dhcpcd + +# compass/accelerometer daemon +service akm8973 /system/bin/akm8973 + user compass + group compass misc input + +service wlan_loader /system/bin/wlan_loader \ + -f /system/etc/wifi/Fw1251r1c.bin -e /proc/calibration \ + -i /system/etc/wifi/tiwlan.ini + disabled + oneshot + +service wpa_supplicant /system/bin/wpa_supplicant \ + -Dtiwlan0 -itiwlan0 -c/data/misc/wifi/wpa_supplicant.conf + user wifi + group wifi inet + socket wpa_tiwlan0 dgram 660 wifi wifi + disabled + oneshot + +service dhcpcd /system/bin/dhcpcd -BKL -d tiwlan0 + disabled + oneshot + +service dhcp-release /system/bin/dhcpcd -k tiwlan0 + disabled + oneshot + +service hciattach /system/bin/hciattach \ + -n -s 115200 /dev/ttyHS0 texasalt 4000000 flow + user bluetooth + group bluetooth net_bt_admin + disabled + +# bugreport is triggered by the KEY_BACK and KEY_MENU keycodes +service bugreport /system/bin/bugreport -d -v -z -o /sdcard/bugreports/bugreport + disabled + oneshot + keycodes 158 139 + +# for USB internet sharing +service udhcpd /system/bin/udhcpd + disabled + oneshot + +service netsharing_on /system/bin/netsharing net on + disabled + oneshot + +service netsharing_off /system/bin/netsharing net off + disabled + oneshot + +service zchgd /system/bin/zchgd + user root + group root graphics + oneshot diff --git a/init.rc b/init.rc new file mode 100755 index 0000000..af6fc4d --- /dev/null +++ b/init.rc @@ -0,0 +1,410 @@ + +on init + +sysclktz 0 + +loglevel 3 + +# setup the global environment + export PATH /sbin:/system/sbin:/system/bin:/system/xbin:/data/local/bin + export LD_LIBRARY_PATH /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 ASEC_MOUNTPOINT /mnt/asec + export BOOTCLASSPATH /system/framework/core.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar + export TERMINFO /system/etc/terminfo + +# Backward compatibility + symlink /system/etc /etc + symlink /sys/kernel/debug /d + symlink /system/lib /lib + +# make /system partition writable + insmod /sbin/tattoo-hack.ko + +# create mountpoints + mkdir /mnt 0775 root system + mkdir /mnt/sdcard 0000 system system + +# Create cgroup mount point for cpu accounting + mkdir /acct + mount cgroup none /acct cpuacct + mkdir /acct/uid + +# Backwards Compat - XXX: Going away in G* + symlink /mnt/sdcard /sdcard + + mkdir /system + mkdir /data 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 + + mount rootfs rootfs / ro remount + + 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 + +# 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@system /system ro remount + + # We chown/chmod /data again so because mount is run as root + defaults + mount yaffs2 mtd@userdata /data nosuid nodev + 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 + mount yaffs2 mtd@cache /cache nosuid nodev + 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 + 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 + +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.SECONDARY_SERVER_ADJ 2 + setprop ro.BACKUP_APP_ADJ 2 + setprop ro.HOME_APP_ADJ 4 + setprop ro.HIDDEN_APP_MIN_ADJ 7 + setprop ro.CONTENT_PROVIDER_ADJ 14 + 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 1536 + setprop ro.VISIBLE_APP_MEM 2048 + setprop ro.SECONDARY_SERVER_MEM 4096 + setprop ro.BACKUP_APP_MEM 4096 + setprop ro.HOME_APP_MEM 4096 + setprop ro.HIDDEN_APP_MEM 5120 + setprop ro.CONTENT_PROVIDER_MEM 5632 + setprop ro.EMPTY_APP_MEM 6144 + +# Write value must be consistent with the above properties. +# Note that the driver only supports 6 slots, so we have HOME_APP at the +# same memory level as services. + write /sys/module/lowmemorykiller/parameters/adj 0,1,2,7,14,15 + + write /proc/sys/vm/overcommit_memory 1 + write /proc/sys/vm/min_free_order_shift 4 + write /sys/module/lowmemorykiller/parameters/minfree 1536,2048,4096,5120,5632,6144 + + # 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 Calibration + write /sys/class/input/input1/calibration 8 + write /sys/class/input/input1/calibration_points 824,855,206,865,509,502,826,139,201,142 + + # 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/amber/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/green/blink + chown system system /sys/class/leds/green/off_timer + chown system system /sys/class/leds/amber/blink + chown system system /sys/class/leds/amber/off_timer + 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 console /system/bin/sh + console + +# 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 + +# Custom autostart scripts, by cn.fyodor +# a dirty hack +service bootsound /system/xbin/busybox run-parts /system/etc/init.d + user root + group root + oneshot + +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 + +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 + +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 diff --git a/kernel b/kernel new file mode 100755 index 0000000..591d73b Binary files /dev/null and b/kernel differ diff --git a/media/cyanogen.zip b/media/cyanogen.zip new file mode 100644 index 0000000..3ed5f71 Binary files /dev/null and b/media/cyanogen.zip differ diff --git a/media/droid.zip b/media/droid.zip new file mode 100644 index 0000000..9e8011f Binary files /dev/null and b/media/droid.zip differ diff --git a/media_profiles.xml b/media_profiles.xml new file mode 100644 index 0000000..d683b1f --- /dev/null +++ b/media_profiles.xml @@ -0,0 +1,153 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/overlay/frameworks/base/core/res/res/layout/usb_storage_activity.xml b/overlay/frameworks/base/core/res/res/layout/usb_storage_activity.xml new file mode 100644 index 0000000..587b660 --- /dev/null +++ b/overlay/frameworks/base/core/res/res/layout/usb_storage_activity.xml @@ -0,0 +1,68 @@ + + + + + + + + + + + +