-
Notifications
You must be signed in to change notification settings - Fork 1
/
fota.rc
executable file
·108 lines (78 loc) · 2.43 KB
/
fota.rc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
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
mount tmpfs nodev /tmp
# etinum.recovery create /bin for busybox
mkdir /bin 0771 system system
# mounting point of /dev/block/mmcblk0p3
mkdir /preinstall 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
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
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/Atlas
mount rfs /dev/block/mmcblk0p1 /data nosuid nodev check=no
chown system system /data
chmod 0771 /data
mkdir /data/fota 0771 system system
chown system system /data/fota
chmod 0771 /data/fota
mount rfs /dev/block/mmcblk0p2 /data/fota nosuid nodev check=no
chown system system /data/fota
chmod 0777 /data/fota
# Victory
#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
# chown system system /sbin/busybox
#service busybox /sbin/busybox --install -s
# oneshot
#service console /bin/sh
#service console /system/bin/sh
# console
on property:persist.service.adb.enable=1
start adbd
on property:persist.service.adb.enable=0
stop adbd
#VOLD is not run on FOTA mode
#service vold /system/bin/vold
# socket vold stream 0660 root mount
service recovery /sbin/recovery
oneshot
#service adbd /sbin/adbd recovery