yashsingh1/xdaforums huggingface dataset:
[Android Software Development] zeppelinrox:
There a workaround albeit it's a very tiny a hassle to do extra key strokes...

You can preface any command with su -c and enclose the command in quotes...

adb shell su -c "busybox mount -o remount,rw /system"
adb push su -c "dexopt-wrapper /system/bin/"
adb shell su -c "chown 0.0 /system/bin/dexopt-wrapper"
adb shell su -c "chmod 777 /system/bin/dexopt-wrapper"
adb shell su -c "busybox mount -o remount,ro /system"

That's how I get the Ultimatic Jar Patcher thingie to work without many issues :p

However it would be cool to link to this thread for those that can't do "adb root" :D
[Android Software Development] ikjadoon:
Hmmm...the bolded command wasn't recognized on my system; just outputs the help text. Granted, I was using:

adb push su -c "SystemUI.apk /system/app/"
[Android Software Development] zeppelinrox:
Strange... I could have sworn that used to work and now it doesn't?

I got the error too :p

Well the workaround is...

adb push SystemUI.apk /sdcard/
adb shell su -c "cp -f /sdcard/SystemUI.apk /system/app/"

Now I gotta fix my script... lol
[Android Software Development] efrant:
Re: [2012.12.19][ROOT] adbd Insecure v1.20

Lol, that's not really a work around. That's exactly what this app is eliminating. ;)
[Android Software Development] Chainfire:
You can swear all you want - that never worked and never will ;)
[Android Software Development] zeppelinrox:
heh.

OK but the only thing that doesn't work is the adb push command but everything else is still possible with the "adb shell su -c" prefix ie. cp, rm, mkdir, mount, etc as well as running binaries and scripts with root permissions.

So its still pretty handy to know and make use of quick n dirty if adb insecure hasn't been installed yet :)
[Android Software Development] rootdefyxt320:
Works on locked bootloader

This works on my Motorola Defy Mini XT320 which has a locked bootloader. Thanks Chainfire
[Android Software Development] ApokrifX:
It’ll be really nice if it works that way. Unfortunately it just hung on "adbd Insecure patching..." screen. And it’s simplest case possible – BlueStacks 0.7.8.829 (rooted) :confused:
[Android Software Development] jwoolfgbh:
Alright I've got a problem hopefully someone can help me with. Just for background, I'm using a GSM Galaxy Nexus running CyanogenMod 10.1 experimental build M1, on a Windows 8 PC. I have all ADB drivers installed and ADB works fine.

However, my screen broke. The phone still works fine, I just can't see what is happening or have any touch input. Using androidscreencast over USB, I would be able to control the device and configure something like VNC that would give me a higher frame rate. However, androidscreencast requires changing some permissions, which requires root access. The specific commands to be run are

adb shell
su
chmod 777 /data/dalvik-cache
cd /data/dalvik-cache
chmod 777 ./

I sideloaded this app over ADB, but I think I need to launch it in some way to have it take effect. ADB can be used to execute activities within apps, so the most obvious solution in my mind is running the activity within adbd insecure that actually makes the changes. I just need to know what this activity is called and if it will even work.

Any input is gladly welcome.
[Android Software Development] bubbleguuum:
@Chainfire: in the APK there are 3 versions of adbd: adbd.15.png, adbd.16.png and adbd.17.png. I suppose that each adbd is for a different version of Andoid. Could you tell which adbd binary is mapped to which Android version ?
[Android Software Development] Chainfire:
http://developer.android.com/reference/android/os/Build.VERSION_CODES.html

< 15 use 15, > 17 use 17 (at the moment)
[Android Software Development] bubbleguuum:
That makes sense, thanks for your quick answer.

I'm trying to find a workaround to this new adb issue introduced in 4.2.2, which prevents adb shell executed on device to run (and mount scripts using "adb shell mount" to work).

I'm looking for a workaround that only requires root (eg no custom kernel)

I thought that replacing adbd with insecure adbd would fix it, but it doesn't. It seems that the on-device adb binary must be replaced instead (haven't tried it yet).
[Android Software Development] ikjadoon:
Teensy feature request, if you're ever bored:

A USB debugging toggle within adbd insecure! :) It would just save a few seconds to get my phone "ADB-ready!".
[Android Software Development] xxScoobxx:
Re: [2012.12.19][ROOT] adbd Insecure v1.20

Question... does this fix "Failed to copy read-only file system" when trying to push a file on adb?
[Android Software Development] ikjadoon:
First post, mate. "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."

Run the app, type "adb remount" to mount /system -> push success. It's a toggle, the command is. So, to check what state your /system is in now, do:

adb shell
mount|grep /system

If it's ro, it's read-only; rw is read-write. Use adb remount (NOT in shell, but plain command prompt). If you want to do it in shell, the command is

mount -o remount,rw /system

Switch rw for ro, depending on what state you want it in.
[Android Software Development] xxScoobxx:
Thanks, will be giving this a try! I been searching everywhere and cant find a solution. Hope this works... Really appreciate your help!

Thanks it work!!!! Finally
[Android Software Development] yosef019:
THank you now i can odex the my phone rom

:good::good::good:
[Android Software Development] Guitwo2:
I am experiencing trouble with this app on my motorola XT320. Somehow the app get stuck when "patching". Logcat gives nothing significant.

Anyway I found a way around to have insecure adb.
[Android Software Development] drguild:
Just replying to say used this on my new Nexus 10 after rooting with boot still locked so I didn't loose the pre-shipped stuff or my initial usage tests, game data etc and its working well with Android commander to give me full access to the file system to back stuff up etc.
[Android Software Development] CrackaBoi:
Hey guys when I launch "adbd Insecure" it just jumps back to desktop after I grant it superuser permission (hit "Allow" twice).

Can anybody help me out? What may be wrong? Ive done a logcat (attached) but it doesn't make much sense to me..

thanks
[Android Software Development] bala_gamer:
[MENTION=631273]Chainfire[/MENTION]

enabling adbd insecure in s4 disables apk installation from eclipse. Does the app needs any update?
[Android Software Development] Chainfire:
Which S4 model is it ? Just testing this now on my I9505 and both adb as well as Eclipse still work, but I don't get root. Probably SELinux being a ***** ... I'll look at it.
[Android Software Development] bala_gamer:
im using 9500,this is the error im getting.

Installation failed due to invalid APK file!
[Android Software Development] Chainfire:
New version attached to first post - updates for SELinux/SGS4 :) Everything should work again now.
[Android Software Development] Alberto96:
Can you make it armv6 compatible?
[Android Software Development] CNexus:
Ask your kernel devs to just put it into their kernel(s) if they haven't already
[Android Software Development] Yuna:
for me 1.3 broke USB connectivity. but 1.2 was working fine. sgs4 i9500
[Android Software Development] bala_gamer:
thanks.. will try today
[Android Software Development] Alberto96:
Unfortunately I need this for Vodafone Smart 2 and if I unpack kernel and repack it (also without any mod) Phone doesn't boot.

This is why I asked for an ARMv6 Version.
[Android Software Development] CNexus:
All you need to do is set ro.secure to 0 inside the ramdisk.

The reason it doesn't boot when you don't change anything is because you're not giving it the right offsets when repacking. The mkbootimg or whatever tool you're using needs to know the locations of the ramdisk and kernel.
[Android Software Development] Alberto96:
I know. I did it on my galaxy s, smart 1, but for Smart 2 i have no ideas. I tried lots of flags but nothing. No luck
[Android Software Development] CNexus:
The parameters you need should be located in the header file that is created upon extracting. It would be extremely hard to accurately guess the hexadecimal addresses.
[Android Software Development] Svid:
Galaxy S 4 GT-I9500

Downloaded, installed and selected the option in the app.

After this, when i plug the phone in to the computer it's only charging and nothing appering on the computer.

Removed the app, rebooted the phone and everything is ok.

Why i have this issue?
[Android Software Development] Yuna:
Idk why, but try 1.2 version. Me has the same issue with 1.3
[Android Software Development] Chainfire:
I wonder if that's I9500-specific. It seems to work fine with all the devices I've tried here (including I9505) ...
[Android Software Development] Svid:
Tried diffrent kernels (Perseus and Adam) on both of them same issue
[Android Software Development] denzel09:
Thanks for this
[Android Software Development] bala_gamer:
[MENTION=631273]Chainfire[/MENTION]

the latest version not working on s4 9500. can you look into this? thank you
[Android Software Development] Chainfire:
It won't - the i9500 has some added protections vs other devices (like I9505) that break all this.
[Android Software Development] Yuna:
But why 1.2 version works fine?
[Android Software Development] devcon69:
Thanks man. Having trouble with busybox and errors on mounting my device (Sky Vega Iron). Now all my odexing problems are solved. BIG thanks again.
[Android Software Development] MutantWizard:
hmmmmm......... I completely don't understand what this is about but got pointed here that it may hep with my issue on Note 2 which is not recognized in download mode by PC Odin. http://xdaforums.com/showthread.php?t=2381129

Maybe someone can explain if this may be the solution and how to apply if it is. Thanks!

No more need for a reply, Successfully did my requirement using mskip's Toolkit.
[Android Software Development] stari4ek:
doesn't work with note3 (N9005)

when it patches adbd USB debugging stops working, even if settings/developer it says that it's on.

"adbd Insecure" says that USB debugging is off and adb devices shows empty list

check-uncheck "usb debugging" in settings doesn't solve it

when insecure adbd is disabled - USB debugging goes back
[Android Software Development] betatest3:
"(no posting on other sites, no cooking into your ROMs, etc)"

So we cant make a ROM for an unsupported device because we cant redistribute this apk.

Thanks for completely ruining any chance of ever getting custom ROMS for cheap tablets.

Hey other devs, please make a OPEN app so unsupported devices can get tweaks and custom ROM's.

Oh and Chainfire, i will be uninstalling supersu and installing superuser, i dont use apps that cant bw redistributed.
[Android Software Development] cernekee:
Try changing ro.secure to 0 in /default.prop when you build the ROM. See:

http://blog.djodjo.org/?p=221

http://xdaforums.com/showthread.php?t=1867446

http://www.freaktab.com/showthread.php?7008-Where-else-can-ro-secure-hide

The main benefit of this app is that it avoids the need to modify your kernel image (initrd). If you're building your own ROM that's an easy change to make.
[Android Software Development] genius.lizard2:
hi

doesn't work with AndroidCommander with last version of adb in it. (4.2.2 Worked)

please update for android 4.3

in AndroidCommander software : Root Access is No.

Su command in adb will work. but i want insecure patch for using with AC . i'm always using it.

thanks

Edit:

Doesn't Work With Note 3 N9005 , when it patches adbd USB, debugging stops working
[Android Software Development] xdapowerapps:
Not working with Android Commander as previous user stated. It works for a time being and states that I have root access but after copying files for a certain amount of time, adbd insecure will lose connection and repatches, which kills my file transfer. Been scratching my head for a few days now. :confused:

EDIT: Well, I updated my kernel to ktoonz that has insecure adb by default and works flawlessly. Something up with insecure adbd? Not sure but don't have a logcat for you either lol.
[Android Software Development] OneOfMany07:
First, thanks for sharing your work with the community. It has been very helpful.

With the latest adb-insecure.apk from here (v1.30) I get USB exceptions on our Nexus 5 device with Android 4.4 installed, and periodically the adb command will stop working. Not sure if this "adb logcat" output will help (it repeats a lot when I enable the insecure adbd)...

E/UsbDebuggingManager( 772): Communication error:
E/UsbDebuggingManager( 772): java.io.IOException: Connection refused
E/UsbDebuggingManager( 772): at android.net.LocalSocketImpl.connectLocal(Native Method)
E/UsbDebuggingManager( 772): at android.net.LocalSocketImpl.connect(LocalSocketImpl.java:287)
E/UsbDebuggingManager( 772): at android.net.LocalSocket.connect(LocalSocket.java:130)
E/UsbDebuggingManager( 772): at com.android.server.usb.UsbDebuggingManager.listenToSocket(UsbDebuggingManager.java:75)
E/UsbDebuggingManager( 772): at com.android.server.usb.UsbDebuggingManager.run(UsbDebuggingManager.java:111)
E/UsbDebuggingManager( 772): at java.lang.Thread.run(Thread.java:841)
[Android Software Development] See++:
Support Samsung GT-P5210?

Has anybody used this with success for a

Samsung Galaxy GT-P5210 10.1 Wifi with android 4.2.2?
[Android Software Development] sijav:
hi [MENTION=631273]Chainfire[/MENTION],

not only this app works perfectly on my Xperia ZR my miui 4.2.2 (api 17) rom with locked bootloader but also it removes my problem to not recognize my usb when adb is enabled :)

I have a request:

1) do I have permission to put this in my rom if I give proper credit to you?

2) or can you be kind enough tell my the exact process of this app except that it changes the sbin/adbd to yours?

many thanks for this great app :)
[Android Software Development] JsChiSurf:
Just noticed that the packaged versions of the adbd daemon included in the app don't seem to work when trying to use adb in wireless mode.

I can connect just fine via the default adbd included with my kernel, but if I have insecure adb enabled and try connecting wirelessly, no love.
[Android Software Development] :
Well guys, just thought I would share this information.

Inside the apk provided by Chainfire is three adbd files. They are named adbd.15.png (API 15), adbd.16.png (API 16), adbd.17.png (API 17).

Depending on which API you are currently using on your device will determine which one you will need. I am currently on 4.1.2 so I would need adbd.16.png. All you have to do is extract it from the apk and then rename it to adbd. Then, unpack your boot.img, then unpack your ramdisk, then copy the insecured adbd over to your ramdisk by overwriting the original adbd.

Once you do that, repack the ramdisk, then repack the ramdisk with your kernel to create your newly modded boot.img and then flash it to your boot partition. Voila ;)

Now granite, given the request by Chainfire to not distribute his work I wouldn't recommend sharing your newly modded boot.img. However, there is nothing wrong with applying this method on your own behalf on your own boot.img for your own purposes.
[Android Software Development] Tquarter:
I hope so. I too am still hoping for AOSP on our GT-P5210 galaxy tab 3 10.1 :fingers-crossed:
[Android Software Development] [NUT]:
[MENTION=631273]Chainfire[/MENTION]

Hey mate, love your work, great job!

Just bought this app from Play but unfortunately it is lacking adbd support for the JB4.3 installations (API 18)... can you give this app some love and add it? :)

Thanks!
[Android Software Development] zeppelinrox:
Have you tried it yet?

Only 2 days ago I did (got it from the OP) and it works flawlessly on z1 with 4.3 and your recovery :)
[Android Software Development] [NUT]:
Yes sir, I did... The 'patch' process isn't working and due to that adbd insecure doesn't want to start the replacement adbd...

Hmm... Weird.
[Android Software Development] [NUT]:
Something must have been broken on the phone.

It's working OK now :o
[Android Software Development] zeppelinrox:
heh glad its working lol

Yeah I did make sure to have the phone unplugged and killed the server prior to trying it ;)
[Android Software Development] dale_para_bajo:
[MENTION=631273]Chainfire[/MENTION]

Can you compile adbd for x86 4.2.2? So that I can test on Galaxy TAB3 10.1

Thanks.
[Android Software Development] CPngN:
I randomly decided to Google again for the "access denied" issue when trying to adb push files to my /mnt/extSdCard and found this awesome little hack! Thank you so much, I have suffered with Android File Transfer the past year with my Galaxy S3 and manually dragging daily updates over from Finder. Now I can finally return to using my automated script which I can just fire and walk away from while it copies files to my phone without waiting for a slow wifi ssh or ftp server.

Wooohooooooo!!

:victory:

:good:
[Android Software Development] royalh:
[MENTION=631273]Chainfire[/MENTION] - Does ADBD Insecure have any dependencies upon any stock applications? The problem I'm having is that when I try to patch, I get an error "Unable to patch adbd"

The funny thing is that if I do a fresh install of the 4.3 ROM with leaked BL, ADBD patches with no problem. After I've debloated and uninstalled a crap ton of apps via TiBU, ADBD Insecure will no longer work. I'm wondering if it's dependent on one of the stock apps or processes or something?

I'm not sure if it's something I've installed or something I've uninstalled lol..

I do have Viper4Android installed....
[Android Software Development] galmok:
I am wondering a bit about this app. It does seem to work in that an adb shell automatically is root, but having tested it with adb backup (full command: adb backup -apk -shared -all) both before and after, I see the opposite as I was expecting. Without root, the backup was approx. 11GB, but with root, the back was just 6GB. The 6GB file was created with the display off whereas the 11GB file was created with display on (I tapped the screen until it was done... yes it was boring).

Why would the root backup be smaller than the non-root backup?
[Android Software Development] Nick James:
I'm having the same problem, any help?
[Android Software Development] :
I unpacked my boot.img and replaced adbd with the unsecure adbd and then repacked it. Works fine on my end.
[Android Software Development] Nick James:
Thanks for the quick response.

I ended up downloading TB Restore Fixer and it allowed me to us the SQLite Editor method instead.
[Android Software Development] :
Hey man, whatever works, right? Lol.

But yea, just know that inside the apk is three png files. They each represent different API builds. Just take the one you need, rename it to adbd, replace the current one in your boot.img with the insecure version and you should be good. Can't say if it would work on every device, but if the kernel is already reading it, then logically, it should work ;).
[Android Software Development] bombadier:
Any ideas how it fix adb wireless not working with chainfire's adbd ?
[Android Software Development] :
If you are asking me, then I wouldn't know on a personal level. I have never used adb wireless. Never saw the need for it on my part lol.
[Android Software Development] xdapowerapps:
This is precisely what I did. ;)
[Android Software Development] bombadier:
Was just throwing it out there to see if anyone knows why the bundled insecure adbd breaks ADB Wireless,I guess I am just wanting my cake and to eat it
[Android Software Development] michfood:
Samsung Galaxy Tab 8 T311 android 4.2.2

AdbInsecure do not give full root adb access to system.

Typing "adb shell" I get $, but have to get #

Typing "adb shell su" I get # - but this is not full adb root - some software like QtADB do not get root acces to system folders.

I`ve repack boot.img with custom adbd (a few) and ro.secure=0, ro.adb.secure=0, ro.debuggable=1 - nothing changed.

Any ideas guys?
[Android Software Development] Dhs92:
When activated it disables USB Debugging, can't turn it back on.

AT&T GS4, 4.4.2, PurifieD ROM (Stock, debloated, deodexed, and rooted)
[Android Software Development] Vatharian:
For some reason it's common on Samsung roms, I have the same problem on Note 3.

Had to change the rom.

http://forum.freeware.info.pl/viewforum.php?f=9

[MENTION=2117836]michfood[/MENTION] - do you have rooted phone?
[Android Software Development] RHBH:
Hi [MENTION=631273]Chainfire[/MENTION] , I would like to contribute with your work but the Google Play says that this App isn't available on my country (Brazil).

Is it possible to make it available on Brazil?
[Android Software Development] zeppelinrox:
Easy and quick workaround... you can use the apk from the OP and click on his donate button to contribute.
[Android Software Development] fastguy:
I'm still getting usual prompt and not the root prompt. Any idea why?

~$ adb shell

shell@android:/ $

When I su and check /sbin

shell@android:/ # ls -la /sbin/adb*

-rwxr-x--- root root 157636 2014-03-29 23:27 adbd

-rw-r--r-- root root 157596 2014-03-29 23:27 adbd.original

and I have two adbd's running.

shell@android:/ # ps | grep adb

u0_a98 10881 9320 882220 42104 ffffffff 40121004 S eu.chainfire.adbd

root 12377 1 4512 236 ffffffff 00016bfc S /sbin/adbd
[Android Software Development] E:V:A:
I have the same problem on the I9195.

[SIZE=2]Device: Samsung Galaxy S4 Mini LTE (GT-I9195)
Board/Platform: MSM8930AB (Snapdragon 400)
Baseband: I9195XXUBML4
Kernel: 3.4.0-2340422
se.infra@SEP-65 #1
Build: JDQ39.I9195XXUBML4
SE: SEPF_GT-I9195_4.2.2_0022
ro.build.date: Sat Dec 21 01:46:00 KST 2013
ro.build.description: serranoltexx-user 4.2.2 JDQ39 I9195XXUBML4
[/SIZE]

After I installed the CF-Auto-Root for my device that [MENTION=631273]Chainfire[/MENTION] gave me to test. Everything else seem to work, meaning any other apps requireing "su" gets it, but trying to "su" from "adb shell" or "putty (for adb)" gives me nothing but an appended "1|" like this:

shell@android:/ $ su
1|shell@android:/ $
1|shell@android:/ $ id
uid=2000(shell) gid=2000(shell) groups=1003(graphics),1004(input),1007(log),1009(mount),1011(adb),1015(sdcard_rw),1028(sdcard_r),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats) context=u:r:shell:s0

However, if I use "Terminal Emulator" from the phone, I do get the correct "su" # prompt.

This is very strange...to me. Maybe this is just a triviality, that I'm not aware of?
[Android Software Development] kmdangi:
I have Samsung SHV-E210L rooted with CF Auto root, on 4.3 custom rom

Even after enabling Dev. options, ADB not showing under devices. All the drivers are ok working fine.

I installed ADBD insecure still the problem not solved. Please help.

Thanks in advance. :)
[Android Software Development] Calimero Oeuf:
Same problem for me with my rooted Galaxy Tab Pro 12.2 SM-T900

(stock rom rooted with your file CF-Auto-Root-v2wifi-v2wifixx-smt900.zip)

... Working prerfectly with v1.20
[Android Software Development] E:V:A:
I think this is an issue with the new implementations of SELinux for Android. This is causing a ridiculous amount of trouble, even for professional developers.

I also know that [MENTION=631273]Chainfire[/MENTION] is extremely busy with fixing both SuperSU and CF-Auto-Root for these SELinux enabled/enforcing devices. I think only then he will have time to re-visit this thread/app.

To get su/root to work I had to use SSH via an SSHd server. However, as I have described in THIS THREAD, that is only possible with partial success and some really weird results. I'd appreciate any help there! But at the end of the summer I'd really prefer to have back my root and putty ADB over WiFi.
[Android Software Development] Calimero Oeuf:
Same for me with v1.30 so cannot connect with Android Commander

I tried v1.20 and all are OK, Android Commander connect to my tab but I always have Access Root : No

Do you have a fix, I really need to access and modify system files

(Galaxy Tab Pro 12.2 SM-T900, stock rom 4.4.2 rooted with CF-Auto-Root-v2wifi-v2wifixx-smt900)