标题: sos~~呼叫hommy帅哥~~~真心求教 [打印本页] 作者: as159236 时间: 2013-8-12 13:58 标题: sos~~呼叫hommy帅哥~~~真心求教 on early-init
# Set init and its forked children's oom_adj.
write /proc/1/oom_adj -16
start ueventd
write /proc/bootprof "INIT: usr/eng build setting"
# create mountpoints
mkdir /mnt 0775 root system
mkdir /mnt/sdcard 0000 system system
mkdir /mnt/sdcard2 0000 system system
on init
sysclktz 0
loglevel 3
# 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_DATA /data
export EXTERNAL_STORAGE /mnt/sdcard
export LOOP_MOUNTPOINT /mnt/obb
# Backward compatibility
symlink /system/etc /etc
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 cgroup mount point for cpu accounting
mkdir /acct
mount cgroup none /acct cpuacct
mkdir /acct/uid
#disable USB function until sets sys.usb.com_config
write /sys/devices/platform/mt_usb/cmode 0
# adbd is controlled via property triggers in init.<platform>.usb.rc
service adbd /sbin/adbd
class core
disabled
# Backwards Compat - XXX: Going away in G*
symlink /mnt/sdcard /sdcard
mkdir /system
mkdir /data 0771 system system
mkdir /config 0500 root root
# 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
on fs
# mount mtd partitions
# Mount /system rw first to give the filesystem a chance to save a checkpoint
write /proc/bootprof "INIT:NAND:Mount_START"
mount yaffs2 mtd@system /system
mount yaffs2 mtd@system /system ro remount
mount yaffs2 mtd@userdata /data nosuid nodev
mount yaffs2 mtd@cache /cache nosuid nodev
write /proc/bootprof "INIT:NAND:Mount_END"
# mount mtd partitions
# Mount /system rw first to give the filesystem a chance to save a checkpoint
exec /sbin/e2fsck -p [url=]/emmc@android[/url]
# Mount /system rw first to give the filesystem a chance to save a checkpoint
#mount ext4 emmc@android /system commit=1,data=journal,noauto_da_alloc
mount ext4 emmc@android /system commit=1,noauto_da_alloc
mkdir /system/secro 0600 system system
mount ext4 emmc@android /system noatime ro remount
exec /sbin/e2fsck -pfD [url=]/emmc@usrdata[/url]
exec /sbin/tune2fs -O has_journal [url=]/emmc@usrdata[/url]
mount ext4 emmc@usrdata /data noatime nosuid nodev commit=1,nodelalloc,noauto_da_alloc
chown system system /system/data
mkdir /system/cache 0770 system cache
exec /sbin/e2fsck -p [url=]/emmc@cache[/url]
exec /sbin/tune2fs -O has_journal [url=]/emmc@cache[/url]
mount ext4 emmc@cache /cache noatime nosuid nodev noauto_da_alloc
on post-fs
# once everything is setup, no need to modify /
mount rootfs rootfs / ro remount
# We chown/chmod /data again so because mount is run as root + defaults
chown system system /system/data
chmod 0777 /system/data
# Same reason as /data above
chown system cache /cache
chmod 0770 /cache
mkdir /cache/recovery 0770 system system
#mount yaffs2 mtd@nvram /nvram nandboot
mount ext4 [url=]/emmc@sec_ro[/url] /system/secro
mount ext4 [url=]/emmc@sec_ro[/url] /system/secro ro remount
# 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/nvram 0770 root nvram
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/keychain 0771 system system
mkdir /data/misc/vpn 0770 system vpn
mkdir /data/misc/systemkeys 0700 system system
# give system access to wpa_supplicant.conf for backup and restore
mkdir /data/misc/wifi 0770 wifi 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 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
# Sensor
chmod 0666 /dev/hwmsensor
chmod 0666 /dev/msensor
chmod 0666 /dev/gsensor
chmod 0666 /dev/alsps
#VideoCodec
insmod /system/lib/modules/mt6575_vcodec_kernel_driver.ko
mknod /dev/MT6575_Vcodec c 160 0
chmod 0666 /dev/MT6575_MFlexVideo
mkdir /data/amit/
mkdir /data/misc/sensors 0777 system system
mkdir /data/misc/akmd 0777 compass compass
chown system /sys/class/input/input4/enable
chown system /sys/class/input/input4/delay
chown system /sys/class/input/input4/wake
chown system /sys/class/input/input2/enable
chown system /sys/class/input/input2/wake
chown compass /sys/class/input/input3/offsets
# GPIO
chmod 0666 /dev/mtgpio
#dumchar
chmod 0660 /dev/otp
chown root nvram /dev/otp
## Custom pos_fs area (END)
on boot
# basic network init
ifup lo
hostname localhost
domainname localdomain
# Define RIL properties
setprop rild.nw.operlist /system/etc/ril/oper.lis
# AGPS
chmod 0750 /system/bin/mtk_agpsd
chown system system /system/bin/mtk_agpsd
# Start default class, this line is very important!!
class_start default
start sdcard
## Daemon processes to be run by init.
##
# Update the second boot logo
# service bootlogoupdater /system/bin/boot_logo_updater
# oneshot
service ueventd /sbin/ueventd
class core
critical
service console /system/bin/sh
class core
console
disabled
user root
group log
on property:ro.debuggable=1
start console
## Custom service area (START)
# Please add custom service below
service ccci_fsd /system/bin/ccci_fsd
user ccci
group nvram ccci system
oneshot
service ccci_mdinit /system/bin/ccci_mdinit
user system
group ccci system
oneshot
service mdlogger /system/bin/mdlogger
disabled
oneshot
service nvram_daemon /system/bin/nvram_daemon
user root
group nvram
oneshot
#
# MT6620 related services (Begin)
#
#/*BEGIN PN:SPBB-160 modified by j00212061 on 20120726*/
#service 6620_launcher /system/bin/6620_launcher 4000000
#/system/etc/firmware/mt6620_patch_hdr.bin
# user system
# group system
# oneshot
service 6620_launcher /system/bin/6620_launcher -m 1 -b 4000000 -p /system/etc/firmware/ -d /dev/ttyMT2
user root
group root
service stp_dump /system/bin/stp_dump3
user root
group root
#/*END PN:SPBB-160 modified by j00212061 on 20120726*/
#service hald /system/bin/hald
# class main
# socket hald stream 0660 root system
为官方版本
on early-init
# Set init and its forked children's oom_adj.
write /proc/1/oom_adj -16
start ueventd
write /proc/bootprof "INIT: usr/eng build setting"
# create mountpoints
mkdir /mnt 0775 root system
mkdir /mnt/sdcard 0000 system system
mkdir /mnt/sdcard2 0000 system system
on init
sysclktz 0
loglevel 3
# 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_DATA /data
export EXTERNAL_STORAGE /mnt/sdcard
export LOOP_MOUNTPOINT /mnt/obb
# Backward compatibility
symlink /system/etc /etc
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 cgroup mount point for cpu accounting
mkdir /acct
mount cgroup none /acct cpuacct
mkdir /acct/uid
#disable USB function until sets sys.usb.com_config
write /sys/devices/platform/mt_usb/cmode 0
# adbd is controlled via property triggers in init.<platform>.usb.rc
service adbd /sbin/adbd
class core
disabled
# Backwards Compat - XXX: Going away in G*
symlink /mnt/sdcard /sdcard
mkdir /system
mkdir /data 0771 system system
mkdir /config 0500 root root
# 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
on fs
# mount mtd partitions
# Mount /system rw first to give the filesystem a chance to save a checkpoint
write /proc/bootprof "INIT:NAND:Mount_START"
mount yaffs2 mtd@system /system
mount yaffs2 mtd@system /system ro remount
mount yaffs2 mtd@userdata /data nosuid nodev
mount yaffs2 mtd@cache /cache nosuid nodev
write /proc/bootprof "INIT:NAND:Mount_END"
# mount mtd partitions
# Mount /system rw first to give the filesystem a chance to save a checkpoint
exec /sbin/e2fsck -p [url=]/emmc@android[/url]
# Mount /system rw first to give the filesystem a chance to save a checkpoint
#mount ext4 emmc@android /system commit=1,data=journal,noauto_da_alloc
mount ext4 emmc@android /system commit=1,noauto_da_alloc
mkdir /system/secro 0600 system system
mount ext4 emmc@android /system noatime ro remount
exec /sbin/e2fsck -pfD [url=]/emmc@usrdata[/url]
exec /sbin/tune2fs -O has_journal [url=]/emmc@usrdata[/url]
mount ext4 emmc@usrdata /data noatime nosuid nodev commit=1,nodelalloc,noauto_da_alloc
chown system system /system/data
mkdir /system/cache 0770 system cache
exec /sbin/e2fsck -p [url=]/emmc@cache[/url]
exec /sbin/tune2fs -O has_journal [url=]/emmc@cache[/url]
mount ext4 emmc@cache /cache noatime nosuid nodev noauto_da_alloc
on post-fs
# once everything is setup, no need to modify /
mount rootfs rootfs / ro remount
# We chown/chmod /data again so because mount is run as root + defaults
chown system system /system/data
chmod 0777 /system/data
# Same reason as /data above
chown system cache /cache
chmod 0770 /cache
mkdir /cache/recovery 0770 system system
#mount yaffs2 mtd@nvram /nvram nandboot
mount ext4 [url=]/emmc@sec_ro[/url] /system/secro
mount ext4 [url=]/emmc@sec_ro[/url] /system/secro ro remount
# 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/nvram 0770 root nvram
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/keychain 0771 system system
mkdir /data/misc/vpn 0770 system vpn
mkdir /data/misc/systemkeys 0700 system system
# give system access to wpa_supplicant.conf for backup and restore
mkdir /data/misc/wifi 0770 wifi 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 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
# Sensor
chmod 0666 /dev/hwmsensor
chmod 0666 /dev/msensor
chmod 0666 /dev/gsensor
chmod 0666 /dev/alsps
#VideoCodec
insmod /system/lib/modules/mt6575_vcodec_kernel_driver.ko
mknod /dev/MT6575_Vcodec c 160 0
chmod 0666 /dev/MT6575_MFlexVideo
mkdir /data/amit/
# GPIO
chmod 0666 /dev/mtgpio
#dumchar
chmod 0660 /dev/otp
chown root nvram /dev/otp
## Custom pos_fs area (END)
on boot
# basic network init
ifup lo
hostname localhost
domainname localdomain
# Define RIL properties
setprop rild.nw.operlist /system/etc/ril/oper.lis
# AGPS
chmod 0750 /system/bin/mtk_agpsd
chown system system /system/bin/mtk_agpsd
# Start default class, this line is very important!!
class_start default
start sdcard
## Daemon processes to be run by init.
##
# Update the second boot logo
# service bootlogoupdater /system/bin/boot_logo_updater
# oneshot
service ueventd /sbin/ueventd
class core
critical
service console /system/bin/sh
class core
console
disabled
user root
group log
on property:ro.debuggable=1
start console
## Custom service area (START)
# Please add custom service below
service ccci_fsd /system/bin/ccci_fsd
user ccci
group nvram ccci system
oneshot
service ccci_mdinit /system/bin/ccci_mdinit
user system
group ccci system
oneshot
service mdlogger /system/bin/mdlogger
disabled
oneshot
service nvram_daemon /system/bin/nvram_daemon
user root
group nvram
oneshot
#
# MT6620 related services (Begin)
#
#/*BEGIN PN:SPBB-160 modified by j00212061 on 20120726*/
#service 6620_launcher /system/bin/6620_launcher 4000000
#/system/etc/firmware/mt6620_patch_hdr.bin
# user system
# group system
# oneshot
service 6620_launcher /system/bin/6620_launcher -m 1 -b 4000000 -p /system/etc/firmware/ -d /dev/ttyMT2
user root
group root
service stp_dump /system/bin/stp_dump3
user root
group root
#/*END PN:SPBB-160 modified by j00212061 on 20120726*/
#service hald /system/bin/hald
# class main
# socket hald stream 0660 root system