Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added some initramfs #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions i9100-2.3.4-xxkh1/default.prop
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
143 changes: 143 additions & 0 deletions i9100-2.3.4-xxkh1/fota.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
on early-init
start ueventd

on init

sysclktz 0

loglevel 3

export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
export LD_LIBRARY_PATH /vendor/lib:/system/lib
export ANDROID_BOOTLOGO 1
export ANDROID_ROOT /system
export ANDROID_ASSETS /system/app
export ANDROID_DATA /data

export EXTERNAL_STORAGE /mnt/sdcard
export EXTERNAL_STORAGE2 /mnt/sdcard/external_sd
export USBHOST_STORAGE /mnt/sdcard/usbStorage

export ASEC_MOUNTPOINT /mnt/asec
export LOOP_MOUNTPOINT /mnt/obb
export BOOTCLASSPATH /system/framework/core.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/core-junit.jar
export TMPDIR /data/local/tmp

# Backwards Compat - XXX: Going away in G*
symlink /mnt/sdcard /sdcard
symlink /system/etc /etc

mkdir /system
mkdir /data 0771 system system
mkdir /cache 0770 system cache

mkdir /mnt 0775 root system
mkdir /mnt/sdcard 0000 system system

#mount /tmp /tmp tmpfs

on early-fs

# rfs drivers
# insmod /lib/modules/fsr.ko
# insmod /lib/modules/fsr_stl.ko
# insmod /lib/modules/rfs_glue.ko
# insmod /lib/modules/rfs_fat.ko


# parameter block
mkdir /mnt/.lfs 0755 root root
insmod /lib/modules/j4fs.ko
mount j4fs /dev/block/mmcblk0p4 /mnt/.lfs
insmod /lib/modules/param.ko

insmod /lib/modules/drop_caches.ko

mkdir /sdcard 0000 system system
chown system system /sdcard
chmod 0000 /sdcard
mkdir /system
mkdir /data 0771 system system
chown system system /data
chmod 0771 /data
mkdir /efs 0771 system system
mkdir /cache 0770 system cache
mkdir /config 0500 root root
chown system cache /cache
chmod 0770 /cache

on fs
mount tmpfs tmpfs /tmp
//mount rfs /dev/block/stl9 /system check=no
mount ext4 /dev/block/mmcblk0p9 /system wait

#exec apply_system_policy /dev/block/mmcblk0p10 ext4
#exec apply_system_policy /dev/block/mmcblk0p11mmcblk0p11

mkdir /data

#mount rfs /dev/block/stl11 /cache nosuid nodev check=no
mount ext4 /dev/block/mmcblk0p7 /cache nosuid nodev noatime wait
chown system cache /cache
chmod 0770 /cache

#mount rfs /dev/block/stl3 /efs nosuid nodev check=no

on post-fs

#temp
chmod 750 /sbin/fat.format
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

on boot

ifup lo
hostname localhost
domainname localdomain

#kj0225.park DeviceEncryption to Mount data partition with password encrypted
setprop devenc.pwdui.done 0

class_start default

service ueventd /sbin/ueventd
critical

## 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 passcodemanager /system/bin/passcodemanager
oneshot

service redbend_ua /sbin/redbend_ua all
disabled
oneshot

on property:devenc.pwdui.done=1
#mount rfs /dev/block/mmcblk0p2 /data nosuid nodev check=no
mount ext4 /dev/block/mmcblk0p10 /data nosuid nodev noatime wait crypt discard
chown system system /data
chmod 0771 /data
chmod 0777 /data/fota
#mount vfat /dev/block/mmcblk0p1 /sdcard
start redbend_ua
Binary file added i9100-2.3.4-xxkh1/init
Binary file not shown.
52 changes: 52 additions & 0 deletions i9100-2.3.4-xxkh1/init.goldfish.rc
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 [email protected]:password
# setprop ro.config.google_account [email protected]: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
Loading