View difference between Paste ID: hd9vVEFd and LxBd6VSN
SHOW: | | - or go back to the newest paste.
1-
", "/dev/block/mmcblk0p2", "0");
1+
show_progress(1.000000, 32);
2-
mount("ext4", "EMMC", "/dev/block/mmcblk0p2", "/system");
2+
format("ext4", "EMMC", "/dev/block/mmcblk0p2");
3-
mount("MTD", "system", "/system");
3+
run_program("/sbin/busybox", "mount", "/system");
4
package_extract_dir("system", "/system");
5
symlink("/system/xbin/busybox", "/system/bin/sh");
6
symlink("toolbox", "/system/bin/date",
7
        "/system/bin/getevent", "/system/bin/getprop", "/system/bin/hd",
8
        "/system/bin/id", "/system/bin/ifconfig", "/system/bin/iftop",
9
        "/system/bin/insmod", "/system/bin/ioctl", "/system/bin/ionice",
10
        "/system/bin/log", "/system/bin/lsof",
11
        "/system/bin/nandread", "/system/bin/netstat",
12
        "/system/bin/newfs_msdos", "/system/bin/notify",
13
        "/system/bin/reboot", "/system/bin/rmmod",
14
        "/system/bin/route", "/system/bin/schedtop", "/system/bin/sendevent",
15
        "/system/bin/setconsole", "/system/bin/setprop",
16
        "/system/bin/smd", "/system/bin/start", "/system/bin/stop",
17
        "/system/bin/sync", 
18
        "/system/bin/uptime", "/system/bin/vmstat", "/system/bin/watchprops",
19
        "/system/bin/wipe");
20
symlink("busybox",
21
    "system/xbin/[",
22
    "system/xbin/[[",
23
    "system/xbin/ash",
24
    "system/xbin/awk",
25
    "system/xbin/basename",
26
    "system/xbin/bbconfig",
27
    "system/xbin/bunzip2",
28
    "system/xbin/bzcat",
29
    "system/xbin/bzip2",
30
    "system/xbin/cal",
31
    "system/xbin/cat",
32
    "system/xbin/catv",
33
    "system/xbin/chgrp",
34
    "system/xbin/chmod",
35
    "system/xbin/chown",
36
    "system/xbin/chroot",
37
    "system/xbin/cksum",
38
    "system/xbin/clear",
39
    "system/xbin/cmp",
40
    "system/xbin/cp",
41
    "system/xbin/cpio",
42
    "system/xbin/cut",
43
    "system/xbin/dc",
44
    "system/xbin/dd",
45
    "system/xbin/depmod",
46
    "system/xbin/devmem",
47
    "system/xbin/df",
48
    "system/xbin/diff",
49
    "system/xbin/dirname",
50
    "system/xbin/dmesg",
51
    "system/xbin/dnsd",
52
    "system/xbin/dos2unix",
53
    "system/xbin/du",
54
    "system/xbin/echo",
55
    "system/xbin/egrep",
56
    "system/xbin/env",
57
    "system/xbin/expr",
58
    "system/xbin/false",
59
    "system/xbin/fdisk",
60
    "system/xbin/fgrep",
61
    "system/xbin/find",
62
    "system/xbin/fold",
63
    "system/xbin/free",
64
    "system/xbin/freeramdisk",
65
    "system/xbin/fuser",
66
    "system/xbin/getopt",
67
    "system/xbin/grep",
68
    "system/xbin/gunzip",
69
    "system/xbin/head",
70
    "system/xbin/hexdump",
71
    "system/xbin/install",
72
    "system/xbin/kill",
73
    "system/xbin/killall",
74
    "system/xbin/killall5",
75
    "system/xbin/length",
76
    "system/xbin/less",
77
    "system/xbin/ln",
78
    "system/xbin/losetup",
79
    "system/xbin/ls",
80
    "system/xbin/lsmod",
81
    "system/xbin/lspci",
82
    "system/xbin/lsusb",
83
    "system/xbin/lzop",
84
    "system/xbin/lzopcat",
85
    "system/xbin/md5sum",
86
    "system/xbin/mkdir",
87
    "system/xbin/mke2fs",
88
    "system/xbin/mkfifo",
89
    "system/xbin/mkfs.ext2",
90
    "system/xbin/mknod",
91
    "system/xbin/mkswap",
92
    "system/xbin/mktemp",
93
    "system/xbin/modprobe",
94
    "system/xbin/more",
95
    "system/xbin/mount",
96
    "system/xbin/mountpoint",
97
    "system/xbin/mv",
98
    "system/xbin/nice",
99
    "system/xbin/nohup",
100
    "system/xbin/od",
101
    "system/xbin/patch",
102
    "system/xbin/pgrep",
103
    "system/xbin/pidof",
104
    "system/xbin/pkill",
105
    "system/xbin/printenv",
106
    "system/xbin/printf",
107
    "system/xbin/ps",
108
    "system/xbin/pwd",
109
    "system/xbin/rdev",
110
    "system/xbin/readlink",
111
    "system/xbin/realpath",
112
    "system/xbin/renice",
113
    "system/xbin/reset",
114
    "system/xbin/rm",
115
    "system/xbin/rmdir",
116
    "system/xbin/run-parts",
117
    "system/xbin/sed",
118
    "system/xbin/seq",
119
    "system/xbin/setsid",
120
    "system/xbin/sh",
121
    "system/xbin/sha1sum",
122
    "system/xbin/sha256sum",
123
    "system/xbin/sha512sum",
124
    "system/xbin/sleep",
125
    "system/xbin/sort",
126
    "system/xbin/split",
127
    "system/xbin/stat",
128
    "system/xbin/strings",
129
    "system/xbin/stty",
130
    "system/xbin/swapoff",
131
    "system/xbin/swapon",
132
    "system/xbin/sysctl",
133
    "system/xbin/tac",
134
    "system/xbin/tail",
135
    "system/xbin/tar",
136
    "system/xbin/tee",
137
    "system/xbin/test",
138
    "system/xbin/time",
139
    "system/xbin/top",
140
    "system/xbin/touch",
141
    "system/xbin/tr",
142
    "system/xbin/true",
143
    "system/xbin/tty",
144
    "system/xbin/tune2fs",
145
    "system/xbin/umount",
146
    "system/xbin/uname",
147
    "system/xbin/uniq",
148
    "system/xbin/unix2dos",
149
    "system/xbin/unlzop",
150
    "system/xbin/unzip",
151
    "system/xbin/uptime",
152
    "system/xbin/usleep",
153
    "system/xbin/uudecode",
154
    "system/xbin/uuencode",
155
    "system/xbin/watch",
156
    "system/xbin/wc",
157
    "system/xbin/which",
158
    "system/xbin/whoami",
159
    "system/xbin/xargs",
160
    "system/xbin/yes",
161
    "system/xbin/zcat");
162
set_perm_recursive(0, 0, 0755, 0644, "/system");
163
set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
164
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
165
set_perm(0, 3003, 02750, "/system/bin/netcfg");
166
set_perm(0, 3004, 02755, "/system/bin/ping");
167
set_perm(0, 2000, 06750, "/system/bin/run-as");
168
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
169
set_perm(0, 0, 0755, "/system/etc/bluetooth");
170
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
171
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
172
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
173
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
174
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
175
set_perm(0, 0, 04755, "/system/bin/bash");
176
set_perm(0, 0, 0777, "/system/bin/a2sd");
177
set_perm(0, 0, 0777, "/system/etc/init.d/00banner");
178
set_perm(0, 0, 0777, "/system/etc/init.d/01sysctl");
179
set_perm(0, 0, 0777, "/system/etc/init.d/02firstboot");
180
set_perm(0, 0, 0777, "/system/etc/init.d/04apps2sd");
181
set_perm(0, 0, 0777, "/system/etc/init.d/99complete");
182
set_perm(0, 0, 0777, "/system/bin/launcha2sd");
183
set_perm(0, 0, 0777, "/system/bin/starta2sd");
184
set_perm(0, 0, 0777, "/system/bin/jita2sd");
185
set_perm(0, 0, 0777, "/system/bin/chka2sd");
186
set_perm(0, 0, 0777, "/system/bin/zipalign");
187
set_perm(0, 0, 0777, "/system/bin/sysinit");
188
set_perm(0, 0, 0777, "/system/bin/busybox.a2sd");
189
set_perm(0, 0, 0644, "/system/bin/apps2sd.hlp");
190
set_perm(0, 0, 0777, "/system/xbin/a2sd");
191
set_perm(0, 0, 0777, "/system/bin/dtinstall");
192
set_perm(0, 0, 06755, "/system/bin/su");
193
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
194
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
195
set_perm(0, 1000, 0755, "/system/xbin/busybox");
196
package_extract_file("installbusybox", "/tmp/installbusybox");
197
set_perm(0, 0, 0777, "/tmp/installbusybox");
198
run_program("/tmp/installbusybox");
199
unmount("/system");
200
package_extract_file("sm0", "/cache/sm0");
201
write_raw_image_emmc /dev/block/mmcblk0p12 /cache/sm0 0
202
package_extract_file("ramdisk.img", "/cache/ramdisk.img");
203
write_raw_image_emmc /dev/block/mmcblk0p1 /cache/ramdisk.img 0
204
package_extract_file("u-boot.bin", "/cache/u-boot.bin");
205
write_raw_image_emmc /dev/block/mmcblk0p6 /cache/u-boot.bin 1536
206
package_extract_file("move_cache_sd", "/tmp/move_cache_sd");
207
set_perm(0, 0, 0777, "/tmp/move_cache_sd");
208
run_program("/tmp/move_cache_sd");
209
mrvl_update_firmware /dev/block/mmcblk0p6 update-firmware
210
ui_print("Rebooting...");
211
reboot();