forked from anasfanani/Adb-Root-Enabler
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
MyPC
committed
May 23, 2023
0 parents
commit 6d60e01
Showing
7 changed files
with
429 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/sbin/sh | ||
|
||
################# | ||
# Initialization | ||
################# | ||
|
||
umask 022 | ||
|
||
# echo before loading util_functions | ||
ui_print() { echo "$1"; } | ||
|
||
require_new_magisk() { | ||
ui_print "*******************************" | ||
ui_print " Please install Magisk v20.4+! " | ||
ui_print "*******************************" | ||
exit 1 | ||
} | ||
|
||
######################### | ||
# Load util_functions.sh | ||
######################### | ||
|
||
OUTFD=$2 | ||
ZIPFILE=$3 | ||
|
||
mount /data 2>/dev/null | ||
|
||
[ -f /data/adb/magisk/util_functions.sh ] || require_new_magisk | ||
. /data/adb/magisk/util_functions.sh | ||
[ $MAGISK_VER_CODE -lt 20400 ] && require_new_magisk | ||
|
||
install_module | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#MAGISK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Adb-Root-Enabler | ||
|
||
### Description | ||
Enable unauthenticated adb daemon, usefull for broken screen ! | ||
|
||
|
||
#### Copyright (c) lexavey @ github, 2023- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
id=Adb-Root-Enabler | ||
name=Adb Root Enabler | ||
version=1.2 | ||
versionCode=1 | ||
author=lexavey | ||
description=Enable ADB root & authenticate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#https://android.googlesource.com/platform/system/sepolicy/+/master/private/adbd.te | ||
#userdebug_or_eng | ||
allow adbd adbd process setcurrent | ||
allow adbd su process dyntransition | ||
#https://android.googlesource.com/platform/system/sepolicy/+/master/private/su.te | ||
allow su * * * | ||
#https://android.googlesource.com/platform/system/sepolicy/+/refs/heads/master/public/init.te | ||
allow init overlayfs_file dir relabelfrom | ||
allow init overlayfs_file dir mounton | ||
allow init overlayfs_file dir write | ||
allow init overlayfs_file file append | ||
allow init system_block_device blk_file write | ||
#https://android.googlesource.com/platform/system/sepolicy/+/refs/heads/master/public/fsck.te | ||
allow fsck system_block_device blk_file ioctl | ||
allow fsck system_block_device blk_file read | ||
allow fsck system_block_device blk_file write | ||
allow fsck system_block_device blk_file getattr | ||
allow fsck system_block_device blk_file lock | ||
allow fsck system_block_device blk_file append | ||
allow fsck system_block_device blk_file map | ||
allow fsck system_block_device blk_file open | ||
allow fsck system_block_device blk_file watch | ||
allow fsck system_block_device blk_file watch_reads |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# This file will be read by resetprop | ||
# Example: Change dpi | ||
# ro.sf.lcd_density=320 | ||
|
||
ro.debuggable=1 | ||
ro.adb.secure=0 | ||
|
||
persist.service.adb.enable=1 | ||
persist.service.debuggable=1 | ||
persist.sys.usb.config=mtp,adb |