Giter VIP home page Giter VIP logo

adb_root's Introduction

GitHub stats

adb_root's People

Contributors

evdenis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

adb_root's Issues

Adb root

What is the password adb root android 8.1.0

unable to install the module

hello
when i select install from storage i cant select the adb_root.zip, however i can install other magisk zip modules

Android 14

Is there anyone already test on Android 14?

Oreo?

I know that the description states that this works on Android 9 & 10, but I'll ask anyway - has this been tested on Android 8.1?

adb_root does not enable adb root support on devices without adbd binary

seems devices like the samsung s20 lineup do not use a "usual" adbd binary in /system/bin
this results in adb root not working after installing this module

Wouldn't be surprised if #8 is related.

Figured it might be some non-eng prop being set, so tried https://github.com/evdenis/enable_eng but that didn't work and actually broke the settings app as well?

Another guess I had was that selinux was causing issues, so I tried https://github.com/evdenis/selinux_permissive but that actually caused my device to boot loop. Seems samsung must have an additional check somewhere to make sure permissive is not set, as even running su; setenforce 0 in adb shell causes the device to immediately crash and reboot.

Poking around a stock system, I see the following adb related files that might be useful in figuring out what we need to swap out to actually get this working:

# find /system -name "*adbd*"
/system/lib64/libadbd_auth.so
/system/lib64/libadbd_fs.so
/system/apex/com.google.android.adbd.apex
/system/lib/libadbd_auth.so
/system/lib/libadbd_fs.so

I also read somewhere that adbd sometimes is present in the boot.img ramdisk but at least on my device this is not the case.
To check on your own device, get the boot.img and run the following

abootimg -x boot.img
mkdir initrd; cd initrd
# you may need to be root to avoid permissions issues when extracting in the next step
su root
gunzip -c ../initrd.img | cpio -i
exit
find . -name "*adbd*"

adb install command cannot be used.

When I installed adb_root,adb install command cannot be used.

Performing Streamed Install
adb: failed to install .apk: cmd: Can't find service: package

  1. Andriod 9
  2. arm64

Does not work on Oneplus 8

I rooted using Magisk, and I get "su" rights.
I installed adb_root.zip using Magisk manager and rebooted, however I still get error,

adb root
adbd cannot run as root in production builds

Phone: OnePlus 8
OS: Oxygen OS 11.0.4.4

Please help ...

adb install -r failed with no error message

I can't install apps with adb when this module is activated.
But why do we need this module? I found it can directly set com.android.shell with root permission using the SuperUser settings of Magisk.

Thanks a lot

You are life saver. I can confirm chrome remote debug working on Android 10 because of this module.

Adb pull reports permission denied

Hi, thanks for your work. adb shell works fine on root but adb pull root only files still fail. I guess there should be another patch on this.

Make it a bit more secure

The idea is to make this module more secure by design, while still allow root debugging for developers/users.

Instead of:

int adbd_main(int server_port) {
     // descriptor will always be open.
     adbd_cloexec_auth_socket();

     auth_required = false;
 
     adbd_auth_init();

We can modify the original function's prop to something different, like:

int adbd_main(int server_port) {
     // descriptor will always be open.
     adbd_cloexec_auth_socket();
 
    if (android::base::GetBoolProperty("ro.adb.insecure", true)) {
        auth_required = false;
    }
 
     adbd_auth_init();

Then, adbd will check for ro.adb.insecure instead of ro.adb.secure. This also avoid SafetyNet detection.
By default, ro.adb.insecure should be false, so that if the phone gets connected to a new/unknown PC, it won't just trust and give all root permissions. The user can revert to the old behavior with ro.adb.insecure=true if they need (like for example a dead phone display).

Device offline

After installing it via Magisk and rebooting the phone, adb now says:

List of devices attached
cexxxxxxxxxxxxxx03      offline

I already disabled and re-enabled USB debugging, revoked permissions, killed the adb server. Nothing seems to work. It was working fine before installing this zip.

Also, after revoking permission, no new trust device dialog comes up when I replug and rerun the adb command, which is weird. Seems like the package is broken somehow.

S7 Edge - Android 10

device is not detected

Im successfully install adb root on my magisk. but now i cant connect to device, the usb didnt recognize phone. and adb devices show no list.
my device is xiaomi 5X

Do you have a 32-bit build?

Hi,
Thank you for providing the adb_root. But I didn't get the adbd running because of this: "/system/bin/sh: /system/bin/adbd: not executable: 64-bit ELF file", after I did everything in duraki's hot fix.
Since I'm working on a critical issue and I don't have too much time to research on how to build from your source code, could you please provide the 32-bit build for me?
Thanks a lot!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.