Skip to content

Commit 9a59ace

Browse files
committed
add rooting module
1 parent b710dc5 commit 9a59ace

5 files changed

Lines changed: 21 additions & 0 deletions

File tree

files/device.db

54 KB
Binary file not shown.

files/get_essential_address

387 KB
Binary file not shown.

files/run_root.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/system/bin/sh
2+
export C=/data/local/tmp
3+
4+
export bb="$C/busybox_file"
5+
6+
get_uid()
7+
{
8+
$bb id | $bb grep -o -e uid=[0-9]* | $bb cut -d '=' -f2
9+
}
10+
11+
if [ -f /system/xbin/su ] ; then
12+
/system/xbin/su
13+
if [ `get_uid` eq 0 ] ; then
14+
$1
15+
exit 0
16+
fi
17+
fi
18+
cd $C
19+
./get_essential_address
20+
./unlock_security_module
21+
./run_root_shell -c $1

files/run_root_shell

387 KB
Binary file not shown.

files/unlock_security_module

447 KB
Binary file not shown.

0 commit comments

Comments
 (0)