Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Enable Wireless Adb" #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions module.prop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
id=Adb-Root-Enabler
name=ADB Root Enabler
version=1.3
version=1.2
versionCode=1
author=anasfanani
description=Enable ADB root & authenticate
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
8 changes: 3 additions & 5 deletions system.prop
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
ro.debuggable=0
ro.debuggable=1
ro.adb.secure=0

persist.service.adb.enable=1
persist.service.debuggable=0
persist.sys.usb.config=mtp,adb

service.adb.tcp.port=33445
persist.service.debuggable=1
persist.sys.usb.config=mtp,adb