Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Bare stock initramfs.
- Loading branch information
Showing
51 changed files
with
1,167 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# | ||
# ADDITIONAL_DEFAULT_PROPERTIES | ||
# | ||
ro.secure=1 | ||
ro.allow.mock.location=0 | ||
ro.debuggable=0 | ||
persist.service.adb.enable=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
on init | ||
### | ||
# GyuTae FIX : we should not use system partition!!!!! | ||
# export PATH /sbin:/bin | ||
|
||
export PATH /sbin:/system/bin | ||
|
||
export ANDROID_ROOT /system | ||
export ANDROID_DATA /data | ||
export EXTERNAL_STORAGE /sdcard | ||
|
||
mkdir /sdcard | ||
mkdir /system | ||
mkdir /data | ||
mkdir /cache | ||
mkdir /tmp | ||
mkdir /mnt 0775 root system | ||
|
||
mount tmpfs nodev /tmp | ||
# etinum.recovery create /bin for busybox | ||
mkdir /bin 0771 system system | ||
|
||
insmod /lib/modules/fsr.ko | ||
insmod /lib/modules/fsr_stl.ko | ||
insmod /lib/modules/rfs_glue.ko | ||
insmod /lib/modules/rfs_fat.ko | ||
|
||
mkdir /mnt/.lfs 0755 root root | ||
insmod /lib/modules/j4fs.ko | ||
mount j4fs /dev/block/stl6 /mnt/.lfs | ||
insmod /lib/modules/dpram_recovery.ko | ||
|
||
|
||
insmod /lib/modules/j4fs.ko | ||
mount j4fs /dev/block/stl6 /mnt/.lfs | ||
insmod /lib/modules/dpram_recovery.ko | ||
|
||
insmod /lib/modules/param.ko | ||
|
||
mkdir /sdcard 0000 system system | ||
chown system system /sdcard | ||
chmod 0000 /sdcard | ||
|
||
mkdir /data 0771 system system | ||
chown system system /data | ||
chmod 0771 /data | ||
mkdir /cache 0770 system cache | ||
|
||
|
||
#Thomas Ryu, Cache | ||
mount rfs /dev/block/stl11 /cache nosuid nodev check=no | ||
chown system cache /cache | ||
chmod 0770 /cache | ||
|
||
# This may have been created by the recovery system with odd permissions | ||
chown system system /cache/recovery | ||
chmod 0770 /cache/recovery | ||
|
||
#This recovery_fota_mode | ||
#mkdir /cache/recovery_fota_mode | ||
#chmod 0770 /cache/recovery_fota_mode | ||
|
||
#Garnett | ||
#mount rfs /dev/block/mmcblk0p2 /data nosuid nodev check=no | ||
#chown system system /data | ||
#chmod 0771 /data | ||
|
||
mount rfs /dev/block/stl10 /data nosuid nodev check=no | ||
chown system system /data | ||
chmod 0771 /data | ||
|
||
mount rfs /dev/block/stl9 /system check=no | ||
|
||
on boot | ||
#write /sys/class/sec/switch/uart_sel PDA | ||
#write /sys/class/sec/switch/usb_sel PDA | ||
|
||
ifup lo | ||
hostname localhost | ||
domainname localdomain | ||
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 | ||
|
||
on property:persist.service.adb.enable=1 | ||
start adbd | ||
|
||
on property:persist.service.adb.enable=0 | ||
stop adbd | ||
|
||
service recovery /system/bin/recovery | ||
oneshot | ||
|
||
|
||
#service adbd /sbin/adbd recovery |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
on boot | ||
setprop ARGH ARGH | ||
setprop net.eth0.dns1 10.0.2.3 | ||
setprop net.gprs.local-ip 10.0.2.15 | ||
setprop ro.radio.use-ppp no | ||
setprop ro.build.product generic | ||
setprop ro.product.device generic | ||
|
||
# fake some battery state | ||
setprop status.battery.state Slow | ||
setprop status.battery.level 5 | ||
setprop status.battery.level_raw 50 | ||
setprop status.battery.level_scale 9 | ||
|
||
# disable some daemons the emulator doesn't want | ||
stop dund | ||
stop akmd | ||
|
||
setprop ro.setupwizard.mode EMULATOR | ||
|
||
# enable Google-specific location features, | ||
# like NetworkLocationProvider and LocationCollector | ||
setprop ro.com.google.locationfeatures 1 | ||
|
||
# For the emulator, which bypasses Setup Wizard, you can specify | ||
# account info for the device via these two properties. Google | ||
# Login Service will insert these accounts into the database when | ||
# it is created (ie, after a data wipe). | ||
# | ||
# setprop ro.config.hosted_account username@hosteddomain.org:password | ||
# setprop ro.config.google_account username@gmail.com:password | ||
# | ||
# You MUST have a Google account on the device, and you MAY | ||
# additionally have a hosted account. No other configuration is | ||
# supported, and arbitrary breakage may result if you specify | ||
# something else. | ||
|
||
service goldfish-setup /system/etc/init.goldfish.sh | ||
oneshot | ||
|
||
service qemud /system/bin/qemud | ||
socket qemud stream 666 | ||
oneshot | ||
|
||
# -Q is a special logcat option that forces the | ||
# program to check wether it runs on the emulator | ||
# if it does, it redirects its output to the device | ||
# named by the androidboot.console kernel option | ||
# if not, is simply exit immediately | ||
|
||
service goldfish-logcat /system/bin/logcat -Q | ||
oneshot |
Oops, something went wrong.