Skip to content
Browse files

add third part device for making recoveryimage

  • Loading branch information...
1 parent 3c45239 commit 7b0fb92814f260f2cd770a070fda210c68e52309 yanhao committed Sep 6, 2012
Showing with 874 additions and 0 deletions.
  1. +19 −0 Makefile
  2. +3 −0 build/core/config.mk
  3. +1 −0 build/envsetup.sh
  4. +8 −0 patch_device/common/miui_clear.mk
  5. +49 −0 patch_device/common/miui_recovery.mk
  6. +12 −0 patch_device/crespo/Android.mk
  7. +2 −0 patch_device/crespo/device.conf
  8. BIN patch_device/crespo/kernel
  9. +2 −0 patch_device/crespo/readme
  10. +61 −0 patch_device/crespo/root/default.prop
  11. +11 −0 patch_device/crespo/root/etc/recovery.fstab
  12. BIN patch_device/crespo/root/init
  13. +50 −0 patch_device/crespo/root/init.rc
  14. +5 −0 patch_device/crespo/root/ueventd.goldfish.rc
  15. +82 −0 patch_device/crespo/root/ueventd.rc
  16. +12 −0 patch_device/saga/Android.mk
  17. +2 −0 patch_device/saga/device.conf
  18. BIN patch_device/saga/kernel
  19. +2 −0 patch_device/saga/readme
  20. +61 −0 patch_device/saga/root/default.prop
  21. +11 −0 patch_device/saga/root/etc/recovery.fstab
  22. BIN patch_device/saga/root/init
  23. +50 −0 patch_device/saga/root/init.rc
  24. +5 −0 patch_device/saga/root/ueventd.goldfish.rc
  25. +82 −0 patch_device/saga/root/ueventd.rc
  26. +12 −0 patch_device/vivo/Android.mk
  27. +2 −0 patch_device/vivo/device.conf
  28. BIN patch_device/vivo/kernel
  29. +2 −0 patch_device/vivo/readme
  30. +140 −0 patch_device/vivo/root/default.prop
  31. +8 −0 patch_device/vivo/root/etc/recovery.fstab
  32. BIN patch_device/vivo/root/init
  33. +61 −0 patch_device/vivo/root/init.rc
  34. 0 patch_device/vivo/root/ueventd.goldfish.rc
  35. +88 −0 patch_device/vivo/root/ueventd.rc
  36. +28 −0 patch_device/vivo/root/ueventd.vivo.rc
  37. +3 −0 readme
View
19 Makefile
@@ -1,3 +1,22 @@
############same as android###############
+MIUI_PRODUCTS := crespo maguro honor ones vivo saga
+MIUI_PRODUCTS := $(strip $(MIUI_PRODUCTS))
+
+.PHONY: default
+default:
+ make recovery
+ @echo make default
+
+.PHONY: usage
+usage:
+ @echo "env_setup.sh must be executed at the beginning"
+ @echo "$(MIUI_PRODUCTS) has support to make recoveryimage"
+ @echo " such as make crespo, make maguro or etc"
+ @echo "make [target] -j[n] for making targe"
+ @echo "make [target] -B for reset to make target"
+ @echo "make clean for clean every everything that build out"
+ @echo "make device_clean for clean the device recovery"
+
+##include main.mk ,load make system#######
include build/core/main.mk
##########################################
View
3 build/core/config.mk
@@ -73,6 +73,9 @@ BUILD_COPY_HEADERS := $(BUILD_SYSTEM)/copy_headers.mk
BUILD_NATIVE_TEST := $(BUILD_SYSTEM)/native_test.mk
BUILD_HOST_NATIVE_TEST := $(BUILD_SYSTEM)/host_native_test.mk
+MIUI_CLEAR := $(ANDROID_BUILD_TOP)/patch_device/common/miui_clear.mk
+MIUI_RECOVERY := $(ANDROID_BUILD_TOP)/patch_device/common/miui_recovery.mk
+
# ###############################################################
# Parse out any modifier targets.
# ###############################################################
View
1 build/envsetup.sh
@@ -1083,3 +1083,4 @@ done
unset f
addcompletions
+lunch 4
View
8 patch_device/common/miui_clear.mk
@@ -0,0 +1,8 @@
+MIUI_PRODUCT :=
+MIUI_KERNEL :=
+MIUI_KERNEL_BASE :=
+MIUI_KERNEL_CMDLINE :=
+MIUI_KERNEL_PAGESIZE :=
+MIUI_DEVICE_CONFIG :=
+MIUI_PRODUCT_ROOT :=
+
View
49 patch_device/common/miui_recovery.mk
@@ -0,0 +1,49 @@
+ifneq ($(MIUI_PRODUCT), )
+ifneq ($(MIUI_KERNEL), )
+miui_recovery_out := $(ANDROID_BUILD_TOP)/out/third_device
+miui_recovery_product := $(miui_recovery_out)/$(MIUI_PRODUCT)
+miui_recovery_ramdisk := $(miui_recovery_product)/ramdisk-recovery.img
+miui_recovery_target := $(miui_recovery_product)/recovery.img
+miui_recovery_binary := $(TARGET_RECOVERY_ROOT_OUT)/sbin
+miui_recovery_resource := $(ANDROID_BUILD_TOP)/src/res
+miui_recovery_root := $(miui_recovery_product)/root
+#miui_recovery_device_conf := $(MIUI_DEVICE_CONFIG)
+
+miui_recoveryimage_args := \
+ --kernel $(MIUI_KERNEL) \
+ --ramdisk $(miui_recovery_ramdisk)
+
+ifdef MIUI_KERNEL
+ miui_recoveryimage_args += --cmdline "$(MIUI_KERNEL_CMDLINE)"
+endif
+
+ifdef MIUI_KERNEL_BASE
+ miui_recoveryimage_args += --base $(MIUI_KERNEL_BASE)
+endif
+
+ifdef MIUI_KERNEL_PAGESIZE
+ miui_recoveryimage_args += --base $(MIUI_KERNEL_PAGESIZE)
+endif
+
+$(MIUI_PRODUCT): $(MKBOOTFS) $(MINIGZIP) \
+ $(MKBOOTIMG) recovery
+ mkdir -p $(miui_recovery_out)
+ mkdir -p $(miui_recovery_product)
+ mkdir -p $(miui_recovery_root)
+ cp -rf $(MIUI_PRODUCT_ROOT) $(miui_recovery_product)/
+ cp -rf $(MIUI_KERNEL) $(miui_recovery_product)/
+ -rm -rf $(miui_recovery_root)/sbin
+ cp -f $(miui_recovery_binary) $(miui_recovery_root)/
+ cp -rf $(miui_recovery_resource) $(miui_recovery_root)/
+ -cp -f $(MIUI_DEVICE_CONFIG) $(miui_recovery_root)/res/
+ @echo make recovery image $(miui_recovery_target)
+ $(MKBOOTFS) $(MIUI_PRODUCT_ROOT) | $(MINIGZIP) > $(miui_recovery_ramdisk)
+ $(MKBOOTIMG) $(miui_recoveryimage_args) --output $(miui_recovery_target)
+ $(hide) $(call assert-max-image-size, $(miui_recovery_target), $(BOARD_RECOVERYIMAGE_PARTITION_SIZE), raw)
+#else for MIUI_KERNEL is NULL
+else
+$(MIUI_PRODUCT):
+ @echo do nothing in make $(MIUI_PRODUCT),because no MIUI_KERNEL
+endif #end of MIUI_KERNEL judgement
+endif #end of MIUI_PRODUCT judgement
+
View
12 patch_device/crespo/Android.mk
@@ -0,0 +1,12 @@
+LOCAL_PATH := $(call my-dir)
+include $(MIUI_CLEAR)
+MIUI_PRODUCT := crespo
+MIUI_KERNEL := $(LOCAL_PATH)/kernel
+
+MIUI_KERNEL_BASE := 0x30000000
+MIUI_KERNEL_PAGESIZE := 4096
+MIUI_KERNEL_CMDLINE := console=ttyFIQ0 no_console_suspend
+
+MIUI_PRODUCT_ROOT := $(LOCAL_PATH)/root
+MIUI_DEVICE_CONFIG := $(LOCAL_PATH)/device.conf
+include $(MIUI_RECOVERY)
View
2 patch_device/crespo/device.conf
@@ -0,0 +1,2 @@
+#calibrate("0.9728", "20", "0.9597", "28", "yes");
+calibrate("2.0246", "28", "1.2555", "-3");
View
BIN patch_device/crespo/kernel
Binary file not shown.
View
2 patch_device/crespo/readme
@@ -0,0 +1,2 @@
+NOTICE:
+ 1 kernel file-system must be directory root
View
61 patch_device/crespo/root/default.prop
@@ -0,0 +1,61 @@
+#
+# ADDITIONAL_DEFAULT_PROPERTIES
+#
+ro.secure=0
+ro.allow.mock.location=0
+ro.debuggable=1
+persist.sys.timezone=Asia/Shanghai
+persist.sys.usb.config=adb
+# begin build properties
+# autogenerated by buildinfo.sh
+ro.build.id=IMM76L
+ro.build.display.id=full_crespo-userdebug 4.0.4 IMM76L eng.yanhao.20120905.110519 test-keys
+ro.build.version.incremental=eng.yanhao.20120905.110519
+ro.build.version.sdk=15
+ro.build.version.codename=REL
+ro.build.version.release=4.0.4
+ro.build.date=2012年 09月 05日 星期三 11:05:28 CST
+ro.build.date.utc=1346814328
+ro.build.type=userdebug
+ro.build.user=yanhao
+ro.build.host=local
+ro.build.tags=test-keys
+ro.product.model=Nexus S
+ro.product.brand=google
+ro.product.name=full_crespo
+ro.product.device=crespo
+ro.product.board=herring
+ro.product.cpu.abi=armeabi-v7a
+ro.product.cpu.abi2=armeabi
+ro.product.manufacturer=samsung
+ro.product.locale.language=zh
+ro.product.locale.region=CN
+ro.wifi.channels=
+ro.board.platform=s5pc110
+# ro.build.product is obsolete; use ro.product.device
+ro.build.product=crespo
+# Do not try to parse ro.build.description or .fingerprint
+ro.build.description=full_crespo-userdebug 4.0.4 IMM76L eng.yanhao.20120905.110519 test-keys
+ro.build.fingerprint=google/full_crespo/crespo:4.0.4/IMM76L/eng.yanhao.20120905.110519:userdebug/test-keys
+ro.build.characteristics=default
+# end build properties
+#
+# system.prop for smdkc110
+#
+
+rild.libpath=/vendor/lib/libsec-ril.so
+rild.libargs=-d /dev/ttyS0
+ro.sf.lcd_density=240
+
+#
+# ADDITIONAL_BUILD_PROPERTIES
+#
+keyguard.no_require_sim=true
+ro.com.android.dataroaming=true
+ro.com.android.dateformat=MM-dd-yyyy
+ro.config.ringtone=MI.ogg
+ro.config.notification_sound=FadeIn.ogg
+ro.config.alarm_alert=GoodMorning.ogg
+ro.config.sms_received_sound=FadeIn.ogg
+ro.config.sms_delivered_sound=MessageComplete.ogg
+dalvik.vm.lockprof.threshold=500
View
11 patch_device/crespo/root/etc/recovery.fstab
@@ -0,0 +1,11 @@
+# mount point fstype device
+
+/sdcard vfat /dev/block/platform/s3c-sdhci.0/by-name/media
+/system ext4 /dev/block/platform/s3c-sdhci.0/by-name/system
+/cache yaffs2 cache
+/data ext4 /dev/block/platform/s3c-sdhci.0/by-name/userdata
+/misc mtd misc
+/boot mtd boot
+/recovery mtd recovery
+/bootloader mtd bootloader
+/radio mtd radio
View
BIN patch_device/crespo/root/init
Binary file not shown.
View
50 patch_device/crespo/root/init.rc
@@ -0,0 +1,50 @@
+on early-init
+ start ueventd
+
+on init
+ export PATH /sbin
+ export ANDROID_ROOT /system
+ export ANDROID_DATA /data
+ export EXTERNAL_STORAGE /sdcard
+
+ symlink /system/etc /etc
+
+ mkdir /sdcard
+ mkdir /system
+ mkdir /data
+ mkdir /cache
+ mount /tmp /tmp tmpfs
+
+on boot
+
+ ifup lo
+ hostname localhost
+ domainname localdomain
+
+ class_start default
+
+service ueventd /sbin/ueventd
+ critical
+
+service recovery /sbin/recovery
+
+service adbd /sbin/adbd recovery
+ disabled
+
+# Always start adbd on userdebug and eng builds
+on property:ro.debuggable=1
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 18D1
+ write /sys/class/android_usb/android0/idProduct D001
+ write /sys/class/android_usb/android0/functions adb
+ write /sys/class/android_usb/android0/enable 1
+ write /sys/class/android_usb/android0/iManufacturer $ro.product.manufacturer
+ write /sys/class/android_usb/android0/iProduct $ro.product.model
+ write /sys/class/android_usb/android0/iSerial $ro.serialno
+ start adbd
+
+# Restart adbd so it can run as root
+on property:service.adb.root=1
+ write /sys/class/android_usb/android0/enable 0
+ restart adbd
+ write /sys/class/android_usb/android0/enable 1
View
5 patch_device/crespo/root/ueventd.goldfish.rc
@@ -0,0 +1,5 @@
+# These settings are specific to running under the Android emulator
+/dev/qemu_trace 0666 system system
+/dev/qemu_pipe 0666 system system
+/dev/ttyS* 0666 system system
+/proc 0666 system system
View
82 patch_device/crespo/root/ueventd.rc
@@ -0,0 +1,82 @@
+/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
+
+# 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/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 0660 system graphics
+/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/smd0 0640 radio radio
+/dev/qmi 0640 radio radio
+/dev/qmi0 0640 radio radio
+/dev/qmi1 0640 radio radio
+/dev/qmi2 0640 radio radio
+/dev/bus/usb/* 0660 root usb
+/dev/mtp_usb 0660 root mtp
+/dev/usb_accessory 0660 root usb
+/dev/tun 0660 system vpn
+
+# CDMA radio interface MUX
+/dev/ts0710mux* 0640 radio radio
+/dev/ppp 0660 radio vpn
+
+# sysfs properties
+/sys/devices/virtual/input/input* enable 0660 root input
+/sys/devices/virtual/input/input* poll_delay 0660 root input
+/sys/devices/virtual/usb_composite/* enable 0664 root system
View
12 patch_device/saga/Android.mk
@@ -0,0 +1,12 @@
+LOCAL_PATH := $(call my-dir)
+include $(MIUI_CLEAR)
+MIUI_PRODUCT := saga
+MIUI_KERNEL := $(LOCAL_PATH)/kernel
+
+MIUI_KERNEL_BASE := 0x04400000
+MIUI_KERNEL_PAGESIZE := 2048
+MIUI_KERNEL_CMDLINE := no_console_suspend=1
+
+MIUI_PRODUCT_ROOT := $(LOCAL_PATH)/root
+MIUI_DEVICE_CONFIG := $(LOCAL_PATH)/device.conf
+include $(MIUI_RECOVERY)
View
2 patch_device/saga/device.conf
@@ -0,0 +1,2 @@
+#calibrate("0.9728", "20", "0.9597", "28", "yes");
+calibrate("2.0246", "28", "1.2555", "-3");
View
BIN patch_device/saga/kernel
Binary file not shown.
View
2 patch_device/saga/readme
@@ -0,0 +1,2 @@
+NOTICE:
+ 1 kernel file-system must be directory root
View
61 patch_device/saga/root/default.prop
@@ -0,0 +1,61 @@
+#
+# ADDITIONAL_DEFAULT_PROPERTIES
+#
+ro.secure=0
+ro.allow.mock.location=0
+ro.debuggable=1
+persist.sys.timezone=Asia/Shanghai
+persist.sys.usb.config=adb
+# begin build properties
+# autogenerated by buildinfo.sh
+ro.build.id=IMM76L
+ro.build.display.id=full_crespo-userdebug 4.0.4 IMM76L eng.yanhao.20120905.110519 test-keys
+ro.build.version.incremental=eng.yanhao.20120905.110519
+ro.build.version.sdk=15
+ro.build.version.codename=REL
+ro.build.version.release=4.0.4
+ro.build.date=2012年 09月 05日 星期三 11:05:28 CST
+ro.build.date.utc=1346814328
+ro.build.type=userdebug
+ro.build.user=yanhao
+ro.build.host=local
+ro.build.tags=test-keys
+ro.product.model=Nexus S
+ro.product.brand=google
+ro.product.name=full_crespo
+ro.product.device=crespo
+ro.product.board=herring
+ro.product.cpu.abi=armeabi-v7a
+ro.product.cpu.abi2=armeabi
+ro.product.manufacturer=samsung
+ro.product.locale.language=zh
+ro.product.locale.region=CN
+ro.wifi.channels=
+ro.board.platform=s5pc110
+# ro.build.product is obsolete; use ro.product.device
+ro.build.product=crespo
+# Do not try to parse ro.build.description or .fingerprint
+ro.build.description=full_crespo-userdebug 4.0.4 IMM76L eng.yanhao.20120905.110519 test-keys
+ro.build.fingerprint=google/full_crespo/crespo:4.0.4/IMM76L/eng.yanhao.20120905.110519:userdebug/test-keys
+ro.build.characteristics=default
+# end build properties
+#
+# system.prop for smdkc110
+#
+
+rild.libpath=/vendor/lib/libsec-ril.so
+rild.libargs=-d /dev/ttyS0
+ro.sf.lcd_density=240
+
+#
+# ADDITIONAL_BUILD_PROPERTIES
+#
+keyguard.no_require_sim=true
+ro.com.android.dataroaming=true
+ro.com.android.dateformat=MM-dd-yyyy
+ro.config.ringtone=MI.ogg
+ro.config.notification_sound=FadeIn.ogg
+ro.config.alarm_alert=GoodMorning.ogg
+ro.config.sms_received_sound=FadeIn.ogg
+ro.config.sms_delivered_sound=MessageComplete.ogg
+dalvik.vm.lockprof.threshold=500
View
11 patch_device/saga/root/etc/recovery.fstab
@@ -0,0 +1,11 @@
+# mount point fstype device
+
+/sdcard vfat /dev/block/platform/s3c-sdhci.0/by-name/media
+/system ext4 /dev/block/platform/s3c-sdhci.0/by-name/system
+/cache yaffs2 cache
+/data ext4 /dev/block/platform/s3c-sdhci.0/by-name/userdata
+/misc mtd misc
+/boot mtd boot
+/recovery mtd recovery
+/bootloader mtd bootloader
+/radio mtd radio
View
BIN patch_device/saga/root/init
Binary file not shown.
View
50 patch_device/saga/root/init.rc
@@ -0,0 +1,50 @@
+on early-init
+ start ueventd
+
+on init
+ export PATH /sbin
+ export ANDROID_ROOT /system
+ export ANDROID_DATA /data
+ export EXTERNAL_STORAGE /sdcard
+
+ symlink /system/etc /etc
+
+ mkdir /sdcard
+ mkdir /system
+ mkdir /data
+ mkdir /cache
+ mount /tmp /tmp tmpfs
+
+on boot
+
+ ifup lo
+ hostname localhost
+ domainname localdomain
+
+ class_start default
+
+service ueventd /sbin/ueventd
+ critical
+
+service recovery /sbin/recovery
+
+service adbd /sbin/adbd recovery
+ disabled
+
+# Always start adbd on userdebug and eng builds
+on property:ro.debuggable=1
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 18D1
+ write /sys/class/android_usb/android0/idProduct D001
+ write /sys/class/android_usb/android0/functions adb
+ write /sys/class/android_usb/android0/enable 1
+ write /sys/class/android_usb/android0/iManufacturer $ro.product.manufacturer
+ write /sys/class/android_usb/android0/iProduct $ro.product.model
+ write /sys/class/android_usb/android0/iSerial $ro.serialno
+ start adbd
+
+# Restart adbd so it can run as root
+on property:service.adb.root=1
+ write /sys/class/android_usb/android0/enable 0
+ restart adbd
+ write /sys/class/android_usb/android0/enable 1
View
5 patch_device/saga/root/ueventd.goldfish.rc
@@ -0,0 +1,5 @@
+# These settings are specific to running under the Android emulator
+/dev/qemu_trace 0666 system system
+/dev/qemu_pipe 0666 system system
+/dev/ttyS* 0666 system system
+/proc 0666 system system
View
82 patch_device/saga/root/ueventd.rc
@@ -0,0 +1,82 @@
+/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
+
+# 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/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 0660 system graphics
+/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/smd0 0640 radio radio
+/dev/qmi 0640 radio radio
+/dev/qmi0 0640 radio radio
+/dev/qmi1 0640 radio radio
+/dev/qmi2 0640 radio radio
+/dev/bus/usb/* 0660 root usb
+/dev/mtp_usb 0660 root mtp
+/dev/usb_accessory 0660 root usb
+/dev/tun 0660 system vpn
+
+# CDMA radio interface MUX
+/dev/ts0710mux* 0640 radio radio
+/dev/ppp 0660 radio vpn
+
+# sysfs properties
+/sys/devices/virtual/input/input* enable 0660 root input
+/sys/devices/virtual/input/input* poll_delay 0660 root input
+/sys/devices/virtual/usb_composite/* enable 0664 root system
View
12 patch_device/vivo/Android.mk
@@ -0,0 +1,12 @@
+LOCAL_PATH := $(call my-dir)
+include $(MIUI_CLEAR)
+MIUI_PRODUCT := vivo
+MIUI_KERNEL := $(LOCAL_PATH)/kernel
+
+MIUI_KERNEL_BASE := 0x04400000
+MIUI_KERNEL_PAGESIZE := 2048
+MIUI_KERNEL_CMDLINE := no_console_suspend=1
+
+MIUI_PRODUCT_ROOT := $(LOCAL_PATH)/root
+MIUI_DEVICE_CONFIG := $(LOCAL_PATH)/device.conf
+include $(MIUI_RECOVERY)
View
2 patch_device/vivo/device.conf
@@ -0,0 +1,2 @@
+#calibrate("0.9728", "20", "0.9597", "28", "yes");
+calibrate("2.0246", "28", "1.2555", "-3");
View
BIN patch_device/vivo/kernel
Binary file not shown.
View
2 patch_device/vivo/readme
@@ -0,0 +1,2 @@
+NOTICE:
+ 1 kernel file-system must be directory root
View
140 patch_device/vivo/root/default.prop
@@ -0,0 +1,140 @@
+#
+# ADDITIONAL_DEFAULT_PROPERTIES
+#
+ro.secure=0
+ro.allow.mock.location=1
+ro.debuggable=1
+persist.service.adb.enable=1
+# begin build properties
+# autogenerated by buildinfo.sh
+ro.build.id=GRI40
+ro.build.display.id=GRJ90
+ro.build.version.incremental=eng.koush.20110905.112943
+ro.build.version.sdk=10
+ro.build.version.codename=REL
+ro.build.version.release=2.3.5
+ro.build.date=Mon Sep 5 11:30:06 PDT 2011
+ro.build.date.utc=0
+ro.build.type=eng
+ro.build.user=koush
+ro.build.host=Koushik-Lion.local
+ro.build.tags=test-keys
+ro.product.model=Incredible S
+ro.product.brand=htc_wwe
+ro.product.name=htc_vivo
+ro.product.device=vivo
+ro.product.board=vivo
+ro.product.cpu.abi=armeabi-v7a
+ro.product.cpu.abi2=armeabi
+ro.product.manufacturer=HTC
+ro.product.locale.language=hdpi
+ro.product.locale.region=
+ro.wifi.channels=
+ro.board.platform=msm7x30
+# ro.build.product is obsolete; use ro.product.device
+ro.build.product=vivo
+# Do not try to parse ro.build.description or .fingerprint
+ro.build.description=2.30.405.1 CL88716 release-keys
+ro.build.fingerprint=htc_wwe/htc_vivo/vivo:2.3.3/GRI40/88716:user/release-keys
+# end build properties
+#
+# system.prop for vivo
+#
+ro.sf.lcd_density=240
+
+debug.fb.rgb565=0
+
+# Modify MMS APN retry timer from 5s to 2s.
+ro.gsm.2nd_data_retry_config=max_retries=3, 2000, 2000, 2000
+
+rild.libpath=/system/lib/libhtc_ril.so
+
+ro.ril.ecc.HTC-GCC=999,112,997
+ro.ril.ecc.HTC-WWE=999
+ro.ril.ecc.HTC-ELL=92,93,94
+ro.ril.enable.a52.HTC-ITA=1
+ro.ril.enable.a53.HTC-ITA=1
+ro.ril.enable.a52=0
+ro.ril.enable.a53=1
+ro.ril.disable.fd.plmn.prefix=23402,23410,23411
+ro.ril.enable.sdr=1
+ro.ril.enable.amr.wideband=0
+
+# vivo RF team request
+ro.ril.enable.dtm=1
+ro.ril.gprsclass=12
+ro.ril.hsdpa.category=10
+ro.ril.hsupa.category=6
+ro.ril.hsxpa=2
+
+# Default network type.
+# 0 => WCDMA preferred.
+ro.telephony.default_network=0
+
+# Define TCP buffer sizes
+net.tcp.buffersize.hsdpa=4094,87380,393216,4096,16384,110208
+
+# system props for the data modules
+ro.use_data_netmgrd=true
+persist.data_netmgrd_nint=8
+
+wifi.interface=eth0
+wifi.supplicant_scan_interval=15
+
+mobiledata.interfaces=gannet0,rmnet0,rmnet1,rmnet2
+
+# The OpenGL ES API level that is natively supported by this device.
+# This is a 16.16 fixed point number
+ro.opengles.version=131072
+
+# This is a high density device with more memory, so larger vm heaps for it.
+dalvik.vm.heapsize=32m
+
+# For the default value of agps
+ro.ril.def.agps.mode=2
+
+# For HSDPA low throughput
+ro.ril.disable.power.collapse=1
+
+# Vivo China NEL use
+ro.ril.update.vivo.acoustic=1
+
+# Properties of Scalado Denoise param.
+postprocess.iso_midband=400
+postprocess.denoise_level=5
+
+# Recording Audio Workaround
+persist.camera.shutter.disable=1
+
+#
+# ADDITIONAL_BUILD_PROPERTIES
+#
+ro.com.google.clientidbase=android-htc
+ro.com.google.locationfeatures=1
+ro.com.google.networklocation=1
+ro.com.google.gmsversion=2.3_r3
+ro.setupwizard.enable_bypass=1
+dalvik.vm.lockprof.threshold=500
+dalvik.vm.dexopt-flags=m=y
+media.a1026.nsForVoiceRec=0
+media.a1026.enableA1026=0
+htc.audio.alt.enable=0
+htc.audio.hac.enable=1
+keyguard.no_require_sim=true
+ro.rommanager.developerid=cyanogenmod
+ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html
+ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html
+ro.com.google.clientidbase=android-google
+ro.com.android.wifi-watchlist=GoogleGuest
+ro.setupwizard.enterprise_mode=1
+ro.com.android.dateformat=MM-dd-yyyy
+ro.com.android.dataroaming=false
+ro.config.ringtone=Playa.ogg
+ro.config.notification_sound=regulus.ogg
+ro.config.alarm_alert=Alarm_Beep_03.ogg
+ro.modversion=CyanogenMod-7.1.0-RC1-IncS-KANG
+ro.kernel.android.checkjni=1
+ro.setupwizard.mode=OPTIONAL
+dalvik.vm.dexopt-flags=m=y
+net.bt.name=Android
+dalvik.vm.stack-trace-file=/data/anr/traces.txt
View
8 patch_device/vivo/root/etc/recovery.fstab
@@ -0,0 +1,8 @@
+# mount point fstype device [device2] fstype2
+
+/recovery emmc /dev/block/mmcblk0p21
+/boot emmc /dev/block/mmcblk0p22
+/cache ext4 /dev/block/mmcblk0p27 NULL ext3
+/data ext4 /dev/block/mmcblk0p26 NULL ext3
+/sdcard vfat /dev/block/mmcblk1p1 /dev/block/mmcblk1
+/system ext4 /dev/block/mmcblk0p25 NULL ext3
View
BIN patch_device/vivo/root/init
Binary file not shown.
View
61 patch_device/vivo/root/init.rc
@@ -0,0 +1,61 @@
+on early-init
+ start ueventd
+
+on init
+ export PATH /sbin
+ export ANDROID_ROOT /system
+ export ANDROID_DATA /data
+ export EXTERNAL_STORAGE /sdcard
+
+ symlink /system/etc /etc
+
+ mkdir /boot
+ mkdir /sdcard
+ mkdir /sd-ext
+ mkdir /datadata
+ mkdir /emmc
+ mkdir /system
+ mkdir /data
+ mkdir /cache
+ mount /tmp /tmp tmpfs
+
+on boot
+
+ ifup lo
+ hostname localhost
+ domainname localdomain
+
+ class_start default
+
+service ueventd /sbin/ueventd
+ critical
+
+service choice_fn /sbin/choice_fn
+oneshot
+
+service recovery /sbin/recovery
+disabled
+
+service power_test /sbin/power_test
+disabled
+oneshot
+
+service offmode_charging /sbin/offmode_charging
+disabled
+oneshot
+
+service detect_key /sbin/detect_key
+disabled
+oneshot
+
+service htcbatt /sbin/htcbatt
+oneshot
+
+service adbd /sbin/adbd recovery
+ disabled
+
+on property:persist.service.adb.enable=1
+ start adbd
+
+on property:persist.service.adb.enable=0
+ stop adbd
View
0 patch_device/vivo/root/ueventd.goldfish.rc
No changes.
View
88 patch_device/vivo/root/ueventd.rc
@@ -0,0 +1,88 @@
+/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
+
+# 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 0660 system graphics
+/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/msm_aac* 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/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 root usb
+/dev/usb_accessory 0660 root usb
+
+# CDMA radio interface MUX
+/dev/ts0710mux* 0640 radio radio
+/dev/ppp 0660 radio vpn
+/dev/tun 0640 vpn vpn
+
+# sysfs properties
+/sys/devices/virtual/input/input* enable 0660 root input
+/sys/devices/virtual/input/input* poll_delay 0660 root input
+
+# video encoder on 720p-enabled 8k targets
+/dev/pmem_venc 0660 system audio
+
+/sys/devices/virtual/usb_composite/* enable 0664 root system
View
28 patch_device/vivo/root/ueventd.vivo.rc
@@ -0,0 +1,28 @@
+#for audio
+/dev/msm_acdb 0660 system audio
+/dev/codec_aic3254 0660 system audio
+/dev/msm_audio_dev_ctrl 0660 system audio
+/dev/control0 0660 system audio
+/dev/msm_mp3 0660 system audio
+/dev/msm_mp3_lp 0660 system audio
+/dev/msm_pcm_in 0660 system audio
+/dev/msm_pcm_lp_dec 0660 system audio
+/dev/msm_pcm_out 0660 system audio
+/dev/htc-acdb 0660 system audio
+/dev/htc-acoustic 0660 system audio
+/dev/controlC0 0660 system audio
+/dev/adsp 0660 system audio
+/dev/pmem_audio 0660 system audio
+/dev/tpa2051d3 0660 system audio
+
+/dev/kgsl-2d0 0666 root root
+/dev/kgsl-3d0 0666 root root
+/dev/system_bus_freq 0660 system system
+/dev/cpu_dma_latency 0660 system system
+/dev/msm_vidc_reg 0660 system audio
+/dev/msm_vidc_dec 0660 system audio
+/dev/msm_vidc_enc 0660 system audio
+/dev/msm_rotator 0660 system graphics
+/dev/gemini0 0660 system system
+/dev/akm8975_daemon 0640 compass system
+/dev/akm8975_aot 0640 compass system
View
3 readme
@@ -0,0 +1,3 @@
+1 the project is build android recovery only;
+2 before building, make sure copy project android_prebuilt, android_bionic and anroid_hardware to the directory ,which from ICS.
+

0 comments on commit 7b0fb92

Please sign in to comment.
Something went wrong with that request. Please try again.