Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
MyPC committed May 23, 2023
0 parents commit 6d60e01
Show file tree
Hide file tree
Showing 7 changed files with 429 additions and 0 deletions.
348 changes: 348 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions META-INF/com/google/android/update-binary
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
1 change: 1 addition & 0 deletions META-INF/com/google/android/updater-script
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#MAGISK
8 changes: 8 additions & 0 deletions README.md
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-

6 changes: 6 additions & 0 deletions module.prop
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
23 changes: 23 additions & 0 deletions sepolicy.rule
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
10 changes: 10 additions & 0 deletions system.prop
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

0 comments on commit 6d60e01

Please sign in to comment.