Skip to content

Commit e8faef6

Browse files
committed
Init commit for LGL22 KK
1 parent 4f5f19e commit e8faef6

14 files changed

Lines changed: 607 additions & 0 deletions

files_kk/busybox_file

1.03 MB
Binary file not shown.

files_kk/rooting.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/system/bin/sh
2+
3+
echo rooting.sh was called > /data/local/tmp/log.txt
4+
echo id: `id` >> /data/local/tmp/log.txt
5+
chmod 755 /data/local/tmp/log.txt
6+
7+
bb=/data/local/tmp/busybox_file
8+
chmod 755 $bb
9+
10+
echo 1 >> /data/local/tmp/log.txt
11+
#chmod 755 /data/local/tmp/su_server
12+
#chmod 755 /data/local/tmp/su_client
13+
14+
echo start su_server >> /data/local/tmp/log.txt
15+
/data/local/tmp/su_server&
16+
17+
18+
19+
echo end rooting.sh >> /data/local/tmp/log.txt

files_kk/su_client

222 KB
Binary file not shown.

files_kk/su_server

230 KB
Binary file not shown.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
#!/sbin/sh
2+
#
3+
# /system/addon.d/99-supersu.sh (root:root 755)
4+
# During an upgrade, this script backs up SuperSU-related files,
5+
# /system is formatted and reinstalled, then the files are restored.
6+
#
7+
8+
. /tmp/backuptool.functions
9+
10+
list_files() {
11+
cat <<EOF
12+
app/Superuser.apk
13+
xbin/su
14+
xbin/daemonsu
15+
xbin/otasurvival.sh
16+
bin/log
17+
bin/.ext/.su
18+
etc/init.d/99SuperSUDaemon
19+
etc/install-recovery.sh
20+
etc/.installed_su_daemon
21+
.pin
22+
EOF
23+
}
24+
25+
case "$1" in
26+
backup)
27+
list_files | while read FILE DUMMY; do
28+
backup_file $S/"$FILE"
29+
done
30+
;;
31+
restore)
32+
list_files | while read FILE REPLACEMENT; do
33+
R=""
34+
[ -n "$REPLACEMENT" ] && R="$S/$REPLACEMENT"
35+
[ -f "$C/$S/$FILE" ] && restore_file $S/"$FILE" "$R"
36+
done
37+
;;
38+
pre-backup)
39+
# Stub
40+
;;
41+
post-backup)
42+
# Stub
43+
;;
44+
pre-restore)
45+
# Nuke the shipped Superuser+su from /system
46+
list_files | while read FILE DUMMY; do
47+
[ -e "$S/$FILE" ] && rm $S/"$FILE"
48+
done
49+
;;
50+
post-restore)
51+
# Stub
52+
;;
53+
esac

files_kk/system/bin/mount

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/system/bin/sh
2+
3+
if [ "$1" = "-o" ]
4+
then
5+
/system/bin/toolbox mount $@
6+
/system/etc/busybox_file mount $@
7+
else
8+
/system/bin/toolbox mount $@
9+
fi
10+
11+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1

files_kk/system/etc/busybox_file

1020 KB
Binary file not shown.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/system/bin/sh
2+
/system/xbin/daemonsu --auto-daemon &
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/system/bin/sh
2+
3+
chmod 755 /system/etc/install-rooting.sh
4+
/system/etc/install-rooting.sh&
5+
6+
# Some apps like to run stuff from this script as well, that will
7+
# obviously break root - in your code, just search this file
8+
# for "install-recovery-2.sh", and if present, write there instead.
9+
10+
/system/etc/install-recovery-3.sh
11+

0 commit comments

Comments
 (0)