yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Chainfire:
adbd Insecure lets you run adbd in root mode if your device is rooted.

(Note that if you are running a custom kernel, it is likely that it already implements this functionality)

If you are running a stock (made by the phone manufacturer) kernel on your device, chances are adbd is running in "secure" mode, even if you are rooted. This app lets you run adbd in "insecure" mode, which gives you root access in "adb shell", allows access to system files and directories through "adb push/pull", and lets you run the "adb remount" command to make your /system partition writable.

Of course, your device must already be rooted for this to work. It may not work with "S-ON" devices and locked bootloaders.

This app does not make any permanent changes to your device - a reboot will undo any modification. That's why there is also the option to enable this feature at boot.

Note that if you have USB connected when the app activates or deactivates adbd root mode, you may need to unplug/replug the cable or run "adb kill-server" on your computer before adb will work again.

Download

Download from Google Play

The Google Play download is not free - it costs about a beer (thanks!). The download listed below is 100% the exact same program, but free. Please consider supporting my work :)

REDISTRIBUTION IS NOT ALLOWED

(no posting on other sites, no cooking into your ROMs, etc)

(The download is free for now, but I reserve the right to pull it at any time)

( 1.0: 3616; 1.1: 3527; 1.2: 8582; 1.30: 35699 )
[Android Software Development] Chainfire:
2014.11.10 - v2.00

- Android 5.0 compatibility

2013.05.23 - v1.30

- SELinux fixes (SGS4)

2012.12.19 - v1.20

- Jelly Bean (4.2.x) fixes

2012.10.01 - v1.1

- Jelly Bean (4.1.x) fixes
[Android Software Development] cdesai:
Hey Chainfire

It'ld be nice to link this in the first post as source to the modded adb daemon :)

https://github.com/Chainfire/platform_system_core
[Android Software Development] Chainfire:
Actually, that link points to the adbd I use for CF-Root. There's no guarantee it will stay the same with the version I used in the "adbd Insecure" app.
[Android Software Development] cdesai:
I see.
[Android Software Development] GazaIan:
So, this basically saves us the trouble of typing 'adb remount' ?
[Android Software Development] Chainfire:
No, it *allows* you to run 'adb remount' on rooted devices that do not allow it (which is quite a few).
[Android Software Development] bunklung:
Great work. A few questions:

Do I have to reboot for this to work?

Can I turn it off without rebooting?

Thanks.
[Android Software Development] segv11:
So this saves me the trouble of typing "su" and "mount -o rw,remount - /system" in the shell? I just bought you a beer to save typing the long mount command. Enjoy.
[Android Software Development] SifJar:
As I understand it (which could be wrong), it's for devices where that command won't work. It makes that command (which I believe is pretty much the same as "adb remount") work on those devices.
[Android Software Development] Chainfire:
No, that command does actually work, prefixed with "su". In fact, all of the things mentioned are still possible with su, inside adb shell, even without adbd insecure, on one of the devices this program is made for.

The thing is, say you want to pull something from a location thats "protected", you'd first have to shell into the device, "su", move it to a location accessable to adbd, logout of the shell, then adb pull. Push ? Same thing, other way around.

Same thing goes for a large number of commands, you can skip the entire "su" part needed on some devices.

Everything this enables is still possible on every rooted device, it just saves you quite a bit of typing (and hairpulling) for those who do not have adb running as root. If you use adb as much as I do, this is absolutely something you want.

On the other hand, if you're the occasional adb user only, you may not know what to do with this - and then this is not for you :)
[Android Software Development] segv11:
And saving all that typing is why many of us will be buying Chainfire a beer through the Play Store.
[Android Software Development] CoD.<D.J.>:
I used this app on my galaxy y gt S5360 running stock kernel with secure adb. But when i patch for insecure adb my computer doesn't recognize my device. I have already tried everything you mentioned. My computer recognises my device after unpatching. If you can plzz provide the solution for it.
[Android Software Development] soulbkd:
I just installed it on Galaxy SCH i509 which is already rooted but the boot.img is untouched (I'm using stock ROM).

When I clicked on Enable insecure adbd, the USB debugging status (on insecure adbd panel) was automatically disabled, but when I go to system's Setting>Application>Development>USB debugging remain checked. I toggled it off and back on with no effect.

How to correct this?
[Android Software Development] dateno1:
it make

some problem with some program

i notice it when i try to take screenshot by qtadb

if i enable it i can't take any screenshot by qtadb

also i can't use desktop notifier(usb) and qtadb at same time (when i try run qtadb desktop notifier is disconnected by it if this is enabled)

i use qtadb 0.8.1 on windows7 64bit ultimate (sony z138)
[Android Software Development] cheetooh:
great app but i am just wondering how long it takes to finish the adbd patching? any idea anybody?
[Android Software Development] _JKay_:
Is there a version of adbd Insecure that does not break adb install ?

On JB on SGS3 I have to unpatch adbd before I can use Eclipse to install and debug my apks.... else I get a permission denied when adb tries to install my package..
[Android Software Development] qwerty12:
Here's how to get this working with Jelly Bean:

* Take the APK from the first post and open it in WinRar/7-Zip

* gunzip http://xdaforums.com/showpost.php?p=32205221&postcount=767 and replace assets/adbd.png with that binary

* Delete the META-INF folder

* testsign the new APK and install that
[Android Software Development] Chainfire:
New version is out with Jelly Bean related fixes! :)
[Android Software Development] toy4x4xda:
Nice app works well... I've been resetting the line in local.prop file then rebooting. Ever since I rooted, I have been looking for a way to just restart adbd into root mode without rebooting the phone. Could you explain to a noob what this app does to achieve this?
[Android Software Development] Ainz_Ooal_Gown:
i messed with /system/etc/media_profiles.xml which has worked for other users on the LG G3 and i was checking what mods and such of other LG devices worked for this one.....so when messing with mixer_paths.xml sound just stopped working and i was able to fix this by restoring the original file (that i backed up), so then i saw these other mods for the camera and the file name was the same, so i decided to give it a go. i backed up the original just like in the other sinario but after i pressed save and did a reboot....the phone is stuck at the Splash screen i can't restore the original file and because of a previous **** up i have a non working TWRP file installed as a recovery (doesn't boot says "error" then restarts) i managed to pull my backed up media_profiles.xml from my sd card but i can't push it and overwrite the bad one to finally boot to the OS
[Android Software Development] vampirefo:
If you can get the device in fastboot mode, and you can unpack and repack boot.img you might be able to fix your device. During bootloop have you tried adb commands?
[Android Software Development] Ainz_Ooal_Gown:
it doesn't bootloop it just boots to splash screen and then stops it doesn't reboot at that point but adb doesn't "see" my device
[Android Software Development] trippinn:
[MENTION=631273]Chainfire[/MENTION]

I know its a stupid question but ill ask.

My phone bootloop -> want to delete a bad overlay --> needs su to run on adb --> not working

Can i install your insecure add app through ADB install method ? If by chance yes, will be Default option in your app be " enable insecure / enable at boot " - be checked ?? If yes, then i might get su # to delete my file. Pls help !!
[Android Software Development] k1ll3r8e:
Heyho,

[MENTION=631273]Chainfire[/MENTION]

...can u pls add "adb over network" to ur app?

- Then we (Stock - Root - S5) user don't need to install some random apps to en/dis-able these feature on our phones. -

EDIT:

Maybe u can also add a little hint?

"Namespace separation MUST be disabled in Superuser apk"

Otherwise, the adb push will not work for rootfs and maybe some other (root) folder/mounts which u mounted manually.

Big THX in advance!

Regards,

Sebastian
[Android Software Development] creeve4:
Will there be an update for compatibility with MM? Any ideas how to patch adbd to run insecure with 6.0.x?
[Android Software Development] kmdangi:
Hello [MENTION=631273]Chainfire[/MENTION],

I am using adbd insecure on my rooted Note 3 with aurora custom rom and SUemax kernel with SELinux mode as " permissive"

Whenever I reboot the phone, Enable insecure adbd option is seen unchecked. I have to again enable it manually. I have also enabled the option of Enable at root, still the problem is there. How to fix this ?
[Android Software Development] kmdangi:
=============

Update :

I changed the auto start option to 'ON' using APP Ops which was 'off' earlier . Now the above problem is resolved.
[Android Software Development] Teracotta:
Is this topic still alive?

I couldn't access the interactive shell due to having a rooted, stock ROM, so insecure helped me get root in ADB. But, I still can't execute any adb actions within the shell...I get permission denied. Disabling insecure just reverts me back to being unable to even access root within the shell.

Before insecure:

After:
[Android Software Development] tedrogers61:
I can't help you too much as I'm new to adb insecure, but you'd probably get more responses if you post into the help area as noted by Admin at the bottom of the forum.
[Android Software Development] The Analog Kid:
There's a known issue with Super-Sume app not being able to complete it's process for Kinguser replacement with SuperSu, apparently caused by 'system/bin/set_immutable' present on some certain devices. As far as I understand, this app might very well 'boost' Super-Sume in order to complete the process if enabled after it starts running. Am I right or I'm just dreaming? I'm having the hard time of my life trying to replace that Kinguser with SuperSu after an uncautious firmware update on a Huawei G730-U251, currently soft bricked (I hope) due to a custom, patched-unsecured-set_immutable less, boot.img flash attempt, that's supposed to solve the issue. It only got worse...
[Android Software Development] Deathpunkin:
Asus Zenpad 10, Z300c rooted.

USB debugging enabled > Enable Insecure adbd > USB debugging says it's disabled in adbd... but if I check the settings, it's still ticked.

Then adb can't see the device anymore until I reboot, even if I disable insecure and reset debugging.

Any ideas?
[Android Software Development] xavihernandez:
Hi [MENTION=631273]Chainfire[/MENTION], thanks for this application.

But I have a problem : I am on CM13 by Temasek on Samsung SM-N9005, SuperSU v2.68 installed, and adbd insecure fail while trying to insecure adbd. It seems that it cannot remount system (Read-only file system in logcat errors).

Let me know if you want a logcat
[Android Software Development] jazzruby:
Some commands might help debug:

USB

setprop service.adb.tcp.port -1

WIFI

setprop service.adb.tcp.port 5555

stop adbd

start adbd

Make sure stop/start after each command

-JR-

Sent from my Nexus 7
[Android Software Development] MindTrix:
I have the same problem, I have a rooted Samsung Galaxy S6 with Marshmallow 6.0.1 and my phone does this EXACT same thing, I read somewhere this has been a bug in ADBD Insecure apk for awhile now. Not sure what to do.
[Android Software Development] rlx009:
Hi. I installed ADB-INSECURE so that the program ADB-SYNC preserve the timestamps when syncing a PC directory on my NOTE4 running Android-4.4, but ADB-SYNC still does not preserve the timestamps.

I wrongly assumed that the problem was 'adb push' not preserving the timestamps, but after double checking I find that 'adb push' does preserve the timestamp.

So the problem is not related to ADB-INSECURE and I wished to remove the post from this thread but apparently I can't .

Sorry for this. Any suggestions for a syncing script?
[Android Software Development] Yadegun:
adbd and USB debugging

Hi,

I'm new here, and I had the same problem with my tablet (Archos 80c Xenon, Lollipop 5.0.1). I solved it with SELinuxModeChanger, by setting SELinux to Permissive. Before, I had USB debugging: Disable in adbd, after, USB debugging: Enable;

(before that you can check the status of SELinux, with adb and "getenforce", and also, in case of 'Enforcing', with dmseg | grep avc, which list all the system calls blocked by SELinux.)
[Android Software Development] fozzie:
Well done that man. I've been banging my head for a while over this! Thanks.
[Android Software Development] quanganh2627:
[MENTION=6788158]Teracotta[/MENTION], you should try again with

mount -o remount,rw /system

Remember, no backslash after "/system"
[Android Software Development] xen2:
Doesn't seem to work on Nexus9 with Android N (beta).

Any chance it gets updated?

Thanks for the great work!
[Android Software Development] hurray:
Works very well on my Samsung Galaxy Tab S2 with the new Android 6.01 :D

Thanks!
[Android Software Development] JoelSjogren:
How does this behave with regards to ro.debuggable? I have heard that for some builds it doesn't suffice to set ro.debuggable=1 in the boot image in order to be able to debug arbitrary third party apps. Does this app make such debugging possible?

edit: I got what I wanted, arbitrary debuggability, from installing a cyanogenmod nightly.
[Android Software Development] Lanchon:
hi [MENTION=631273]Chainfire[/MENTION],

got "could not patch adbd" using this popular rom (CM snapshot-based):

http://xdaforums.com/oneplus-one/orig-development/rom-kernel-unofficial-cyanogenmod-13-0-t3242700

http://xdaforums.com/devdb/project/dl/?id=18730

is there any way i can help you fix this?

is there a pre-patched adbd binary i could get from somewhere that i can just drop in and try?

thank you!!
[Android Software Development] xylsl:
adbd insecure disable adb debuddubg

Hi, I need help on adbd insecure.

I rooted a brand new OnePlus 2 (which loaded with Oxygen 3.0.2). Installed TWRP and superSU. I then turned on adb debugging on the phone and tried "adb root", failed because adbd won't execute on a production build. I then installed a paid version of "[Root] adbd Insecure" to circumvent the problem. It did not work. What happened was when I enabled adbd insecure it disabled adb debugging. Even though in the developer setting it still shows adb debugging was on. Anyway, because the adb debugging was turned off by adbd insecure, I could not access the device via adb. HELP!!!!.

Thank you.
[Android Software Development] fozzie:
http://xdaforums.com/showpost.php?p=66658722&postcount=197
[Android Software Development] xylsl:
response

Thanks for the information. However, on the adbd insecure app screen it says that "USB debugging must also be enabled" below the "Enable insecure adbd" check box. But once I checked the box, it immediately disabled the USB debugging as indicated in the Current status. Isn't this change of adb debugging status contradicts what the app supposes to do?
[Android Software Development] fozzie:
That's the behaviour if you haven't disabled SElinux...
[Android Software Development] recrunchi:
The "USB Debugging: Disabled" problem happened to me, as you said, even with that option Checked on Developer options. I solved it in my Moto G3-TE (Marshmallow) changing usb connection from "charge only" to "transfer file mode". Then the adbd insecure app detected USB Debugging as Enabled. You also must use the app "SELinuxModeChanger" to choose Permissive for you SELinux mode.

Hope it helps.
[Android Software Development] Camisa:
Huge thank-you

Thanks for supporting the community with this promotional release!!
[Android Software Development] misslebulletttttt:
using in android N preview 5,

device: nexus 6P with OS npd90g

saying "Could not patch adbd"

any idea ?
[Android Software Development] cthulhu1987:
When I used this app on my S5 (Android 6.0.1, CSC "HUI", rooted using CFAR), adb via Wifi stopped working :crying: and I had to un-patch adb to get it working again.
[Android Software Development] Exocetkid:
Could not pull sqlite db

in Windows 10 cmd I could not pull out the sqlite db from my rooted Samsung Note 4 device.

I try your app [root] adbd Insecure and when enable Insecure insecure adbd I can no longer get adb shell.

Trying everything even uninstall [root] adbd Insecure but must restart device to get adb shell again.

In the gui it say debugger mode disable but it´s on in the developer option
[Android Software Development] Raymond Ebertt:
​

The adbd insecure apk is well and working fine on HTC 10 Viper rom (Android 7). Unfortunately, that seems to be the only ROM on the HTC 10 side that it does work on. I've tested on at least 4 different ROM's, compared boot.img and build-props with no suspicious differences. I have no idea why one ROM works and the others don't. I'm nearly certain that the Viper is using a modded stock kernel but other than that, I have no idea on how to research or adjust another rom to get the app to patch and stick.

Any ideas?
[Android Software Development] fuzzynco:
Should adbd insecure work in Android 6.0.1?

When I enable it the android composite device drops, (windows thinks it disconnected),

the mtp device is still there though. To regain a working adbd I need to reboot the phone.

Android 6.0.1

HTC One M9 for Verizon

S-OFF & Unlocked

From About / Software information

Patch level 2016-12-01

HTC Sense 7

From About / Software information / More

Baseband version

2.15.C1144077@60105

Build number

3.37.605.19 CL669662 release-keys

Kernel version

3.10.84-perf-g2d54336

and@AABM #1

SMP PREEMPT

Software Status

Official

Configuration Version

F14.VZW.HTC6535LVW.0
[Android Software Development] Raymond Ebertt:
The only ROM that the insecure adbd apk worked for when I was on Sense 7 was the Viper ROM. All versions M8, M9, and 10 used the same kernel base and it was the only ROM that I had success with.
[Android Software Development] fuzzynco:
[Resolved] Problem was caused by SELinux

Changing mode allowed it to work.
[Android Software Development] Raymond Ebertt:
Changing what mode? I am currently busting my ballz trying to get this apk to work with the ROM's I like to theme. 2 ROM's are using the Cleanslate kernel. I need to sort this out.
[Android Software Development] fuzzynco:
Mode as in SELinux Permissive versus enforcing

SELinux/Tutorials/Permissive versus enforcing

https://wiki.gentoo.org/wiki/SELinux/Tutorials/Permissive_versus_enforcing

An app for changing it...

[APP]SELinuxModeChanger

https://xdaforums.com/showthread.php?t=2524485
[Android Software Development] Raymond Ebertt:
Thanks for the links. I already tracked that app down and all is well. Never knew permissive would be such a thorn.
[Android Software Development] fuzzynco:
adbd insecure & Nougat ?

SELinuxModeChanger.apk can't get root, (SuperSU Pro 2.79 systemless), so it can't change to permissive.

And adbd insecure requires permissive to patch adbd.

Should SELinuxModeChanger.apk be able to request and get root?

Looking at SuperSU's list SELinuxModeChanger.apk was granted

'Grant' authority, but the app says it can't get root?

I asked SuperSU to create a full log for the transaction

thinking that maybe there was some sort of issue

with systemless. How do I upload the log file to you?

I don't know where it is kept?

Is there another way to force permissive for the regular system?

TWRP's terminal says the recovery already is permissive.
[Android Software Development] fuzzynco:
adbd insecure & Nougat can't patch adbd

HTC 10 Verizon: Android 7.0, SuperSU systemless, Busybox systemless, S-OFF, SELinux Permissive

Firmware: 2.41.605.12, Security Patch: Jan 1, 2017

adb debug is on.

Am I doing something wrong or is 7.0 not yet supported?
[Android Software Development] schneiderpatrick:
Tz
[Android Software Development] cyanID_2:
For me on Android 6.0.1 it is not supported as well. Will send the OP a mail.

Since it does not change anything permanently, I gave it a shot.

adb shell "su -c 'logcat -d -b events | grep "boot"'"

Running in quotes (abit ugly for my taste) does the job though like statet here

https://stackoverflow.com/questions/25477424/adb-shell-su-works-but-adb-root-does-not by Anthony
[Android Software Development] Bigbossnake89:
For the people that can't enable adbd unsecure, the reason about this issue is the SE Linux Policy, that was introduced from Android 6.0, in order o get the app work follow the next steps, before run the app:

adb shell

su

setenforce 0 (Disable SE Linux Policy Completly)

Open adbd unsecure app

Enable adbd unsecure

connect and disconnect from your computer

The Application should work now
[Android Software Development] Raymond Ebertt:
Adbd insecure and SElinux apps both worked with me on Android 7 back in March and I was successful in pulling and pushing apps on Leedroid HTC 10 ROM. However, since his latest update with only apps being updated, I cannot.

This is extremely frustrating and getting to be a rather bore trying different fixes. Does anyone have a new fix to get the insecure app to patch and stick? I really need this to work.
[Android Software Development] Raymond Ebertt:
Found a fix for getting ADBD insecure working. Use this app and under Menu/Misc Controls, turn off Enforced to Permissive. Go back and enable adbd insecure.

https://xdaforums.com/android/apps-games/kernel-adiutor-mod-singularity-kernel-t3333549

Huge thanks to [MENTION=4207059]sparx[/MENTION] for putting me on to this app and a bigger thanks to [MENTION=4090196]David 617[/MENTION] for the development.
[Android Software Development] Hektor1154:
worked !

Solved "no root" on rooted Galaxy Note 4 (SM-N910F) 6.0.1 MM, stock based ROM by alexandr devbase ver 4.2
[Android Software Development] yelladev:
There is no option for enforced or permissive ?
[Android Software Development] mr_unpredictable:
Nice app! Worked great on my previous devices!

But whenever i try to install and open this on devices right after android 6.0, it gives me error while pressing Enable insecure adbd - "adbd insecure - error"

Please fix this bug. Have tried it on many marshmallow devices, gives me the same error.

I do have SuperSU and Busybox Pro installed.

Please make it BAM on marshmallow based roms too!
[Android Software Development] nimeshlmcp:
nice..now its working in android 7