yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Goatshocker:
Wow, responses :o

Thanks for the feedback guys.

Unfortunely Ive kinda killed my sync cable for my TF :p (tried to convert it to a usb host adapter^^), and currently dont have any other android device to play with.

So development has kinda stalled right now. Ive got rid of the freeze-when-no-device-connected, but developed another issue instead. Not anything major, but very annoying. The app freezes while it checks for a device >_>, its only for a few seconds, but annoying nevertheless.

As for linux version... Im afraid thats way above my coding skills, and I dont have a linux PC to test on anymore (I killed the laptop which was running linux when I tried to build a touchscreen on it. Yes! I break a lot of things) :)
[Android Software Development] mikeszf:
Awesome, just what I needed!

Could you please add an option to connect the phone using network?, with the "adb connect" command, I can use a bat file before starting the app but because I have several devices connected to the network the phone´s ip change in time, and having it built in the app would be great :D
[Android Software Development] matt4321:
Awesome work, just tried it out now and it's pretty awesome.

I think an adb connect option would be awesome, for those who have adb wireless app on there phone then it'll be really easy to transfer files and it'll be pretty sweet.

Anyway keep up the good work
[Android Software Development] regaw_leinad:
Hey, just an fyi,

adb remount

will NOT work if the device connected does not have the option ro.secure=0 in the default.prop of the ramdisk. You shouldn't assume it does, because not all "ROM" developers know how to change it. My library does check for this, but in case you don't want to use it, be sure you can mount the filesystem /system as rw that way, or using the mount binary on the phone directly.
[Android Software Development] Goatshocker:
Hey thanks for the info. I had no idea about that, remount have always worked on all my devices on all roms Ive tried.

I'll keep that in mind when Ive fixed my sync cable :)

Could you give an example of a device/rom combo remount does not work on?
[Android Software Development] regaw_leinad:
I can't think of a specific example, but if the developer does compile a boot.img with ro.secure=1, adb remount will not work :( but lots of 'devs' these days just grab the boot.img from people who actually know what they're doing, so you should be ok, just in rare cases, this will not work.
[Android Software Development] t4ure4n:
Download not working from google docs and the direct download zip file can't be un-compressed..
[Android Software Development] cowsquad:
are you planning to make a linux version of your utility?
[Android Software Development] Goatshocker:
Im going to answer that by quoting myself from the 2nd page :)

The part in bold is the main factor... Sorry.. :o
[Android Software Development] Goatshocker:
New version is posted. :)
[Android Software Development] Thing O Doom:
Hey goatshocker, I'd be willing to try and port this to linux. (As close as possibly I can) It'd be a neat thing to try out as a first real project. ?
[Android Software Development] fragargon:
Hey goatshocker,

I just given a shot on your app, runs fine.

Did not find any such suggestion, did you ever though to enable adb over wifi through your app.

I just test it right now, from terminal redirect adb to wifi with cmd : adb connect ipd_adr and this works with quick adb pusher... however still needs to go through terminal.

this would be a nice features so no neeed anymore cables if not present or available. (you ll need to enable this on your devices, by settings menu or with third app... in my case i used a widget tasker...)

to describe a push a file from //my_network to /mnt/sdcard (adb remount works fine) although it was not needed in that purpose

anyway, thks (hit the button) for your work... this would be usefull and often used.

m2c
[Android Software Development] Goatshocker:
Thanks for your input. wifi adb connection has been suggested a few times, and it is on my to-do list.

I just need to set it up on one of my devices first before I can start with it properly.

One question though (Ive never used adb over wifi), is there any way to scan for adb devices over wifi, or does it need to be entered manually?

Im currently working on the pull-feature though, but ran into a bug (or limitation, rather) with androidlib which Im waiting to be resolved :)

Once thats done I'll probably take a look at the wifi thingy... Or if I get bored waiting for the androidlib update I might look into it sooner :p
[Android Software Development] regaw_leinad:
Right now it's about 3am here in seattle, I'm going to sleep, and should have an update for AndroidLib around 11:30am
[Android Software Development] Goatshocker:
Hehe no rush :) ............ is it done yet? :D

... No but seriously, no rush. I wont have much time to code anything today anyway.

Im just glad youre interested in fixing/maintaining the lib at all ;)
[Android Software Development] fragargon:
well, by defaut adb on computer is listenning on usb... however you can toggle it with the following command to tcpip port 5555 (adb connect) which is the defaut tcpip port listener (this can be change with adb command on computer depending settings on the device it self)

on the device this is the same thing but that i m using tasker and secure setting with a widget.

to scan port; the easest way is the use of the following command:

netstat -a (for windows user) and nmap -0 (for linux users)

in the example is an windows terminal output

just tested this once enable adb connect tcpip on both device and netbook

C:\Users\fragargon>netstat -a

Connexions actives

Proto Adresse locale Adresse distante État
TCP 0.0.0.0:135 kiko-netbook:0 LISTENING
TCP 0.0.0.0:445 kiko-netbook:0 LISTENING
TCP 0.0.0.0:554 kiko-netbook:0 LISTENING

TCP 192.168.1.7:51841 192.168.1.2:5555 ESTABLISHED

TCP [::]:135 kiko-netbook:0 LISTENING
TCP [::]:445 kiko-netbook:0 LISTENING
TCP [::]:554 kiko-netbook:0 LISTENING

so if adb over wifi is enable on both devices.

edit: 192.168.1.7= netbook / 192.168.1.2= android device

hope i answer your question
[Android Software Development] regaw_leinad:
Oh I definitely plan on maintaining/adding new features to AndroidLib, I've just been super busy playing clarinet/saxophone for the broadway production Chicago here in Seattle for the past 3 weeks. Next weekend are the final performances :)
[Android Software Development] Goatshocker:
Mm...

I got wireless ADB running on my TF now, but as far as I can see theres no way to actually scan for adb devices through wifi. Running netstat -a and filtering the results isnt really an option.

Or well, theres 'adb tcpip' but, that broke the connection to my phone (usb adb) completely, and I had to restart the phone to get adb working again.

Might be my phone thats messed up, but if my phone is the cause - its likely others will experience the same issue, in which case adb tcpip is not a good solution (since Im trying to make this as noob friendly as possible :) )

I think for now, I'll just add a box on the advanced tab where you type the IP for the wifi device you want to connect to (I need to use that tab for something anyway :p)
[Android Software Development] fragargon:
Wells if phone is connected with usb just type adb usb and you ll be back on usb debug rather wifi... about scanning adb device... it s a service running on the device, if active it will be listening on port 5555 (by defaut) im sorry, dunno why you want scan tcp neighborough for adb tcp available.
[Android Software Development] Goatshocker:
Thats the thing, 'adb usb' dont work after tcpip. It just returns "error: device not found"

I scan for connected devices in order to allow you to transfer files to different devices, without having to physically connect/disconnect the devices.

That way you can have as many devices connected as adb supports (I dont know what the limit is, I only got 3 android devices) at the same time, and quickly transfer a file to whichever device you select.

I want to scan the available wifi adb devices to automatically connect to the device (adb connect ip: port).

Its kinda hard to guess the IP of the wifi adb device :). I guess I could loop through the subnet, but that wouldnt be very efficient :D

In the future, I might even add a function to transfer files between 2 connected devices. Or maybe even send a file to multiple devices at the same time :)

By scanning all connected devices I can do a lot of fun things, while the user wont have to do much at all (which is half the point of this program :) )

edit: the basics are implemented now. You can successfully connect to a wireless adb device by typing the IP, and send/receive files just like a normal usb adb device.

Its not release ready yet though. I need to fix it up a bit as it looks horrible, and freezes the program while trying to connect (it unfreezes once connected). I should have it done by tomorrow or later tonight though.

I might hold off the release a while though until I got 'adb pull' fully working.
[Android Software Development] fragargon:
- so you could try adb kill-server /adb start-server (i also experienced this and solved by restarting adb server)

well if I understand your purpose, this should be running through some script as using third app could be very heavy and complex to integrate into your apps.

so i googlize a bit and find some stuff this is a powershell script allows to exceute some scan ip adress and port al explanation

is given by author... (i m not gifted in coding) maybe you could fine some usefull stuff in it.

I have to say that if running from a powershell you should first sign or allow this script on windows (quiet heavy if totaly computing noobs)

if found some other script running bash - could be running from a adb shell bash. it s more basic here is the link to the author i run it from a adb shell

command and take a while to fullfill. It only gives ip adrees responding to ping command (not specified which port - not sure ip given is running and /or adb listening to the right port.

this is ambitious, I think the main task would be that your tool is able to scan ip and port tcp to do so.

As your tools is mainly based on adblib.dll and should be user friendly; i dunno if you wanna integrer some third app or rather be scripting.

the purpose is only to give you some help or support as this sounds promising...

m2c
[Android Software Development] regaw_leinad:
I ran into a small problem writing device.PullFolder(), and I'm gonna work on it later tonight in depth. Not too big of a snag, just something that will take longer to debug than I have time for right now.
[Android Software Development] regaw_leinad:
fyi, I updated AndroidLib. HERE
[Android Software Development] Goatshocker:
Awesome :) thanks

Edit: Just tested it, works fine :D
[Android Software Development] regaw_leinad:
Awesome, good to hear. Going to be adding that method to check if the requested file is a file or folder on the device in the next update as well.
[Android Software Development] Goatshocker:
Nice :)

Im gonna hold back on the release until then then. Am currently using "ls <path>" and searching the return string to determine if its a dir or file. Not exactly the most prettiest way :p (although it works just fine).

And for those others who are reading this, dont worry, that method is not used in the released versions.

Perhaps if youre bored enough, maybe you could add a function to list the content of the parent directory of a path.

Simply doing a "ls ../<path>" doesnt really work, and "ls ../" doesnt work either since ls always starts in /, unless you run it from a proper shell and use cd.

The only method I can think of right now (with way too little coffee) is splitting the string at / and remove the last index, then rebuild the string, ugh sounds terrible.. >_>

.... I need more coffee

edit: ok, I got a filebrowser for the selected device working now :o, looks crap and isnt very well made yet. But its a start! ... right? (this is actually one thing I thought Id never get working, at all, so Im happy :) )

edit2: Heres a sneakpeak of the filebrowser as it looks now. Its no where near complete yet :)

Im thinking of adding more icons based on the extensions. At least for common extensions such as zip, apk, avi etc, but we'll see.
[Android Software Development] Goatshocker:
Ive done quite a lot of modifications to the program these past days.

The filebrowser is pretty much complete (well, the first version anyway), just some few minor things to sort out, then tidy up the window a bit.

Pulling files and folders are working quite good as well, and so do wifi connection.

Im currently in the middle of redesigning the UI. Check attachment for current progress.

Id love to get some feedback on the design, what could be be better (the text especially), what isnt good etc etc.

Just keep in mind the main feature of the program is pushing files.

So thats what the UI needs to show right away.

Apart from the UI I got a couple of more things Im thinking of adding before I release the next version.

So if anyone happens to be waiting for the next release, sorry, I need a few days more :o
[Android Software Development] regaw_leinad:
Nice man, looks great! Are you using AndroidLib to work with the filesystem as well?
[Android Software Development] Goatshocker:
sort of, Im just pushing an ls command to get a return value containing the contents of the dir.

Everything else is done without the need of adb.

But yes, pretty much everything that involves communication through ADB is done with the help of androidlib :)

Oh btw, I encountered something funny with device.FileSystem.RemountSystem(MountType.RW)

It doesnt work on my phone!

However, Adb.ExecuteAdbCommand(Adb.FormAdbCommand(device, "remount")) works just fine. And whats even more funny, after running adb command a few times, RemountSystem started working as well.

Got any explanation for that? :p
[Android Software Development] regaw_leinad:
That's pretty funny w/ the remount part, I don't know what's up with that haha. I'm going to add the Remount command to a method in the library, as well as filesystem listings and all that. Just need to find the time to sit down and write it all :p Nice work, looks great
[Android Software Development] Goatshocker:
Ive run into a bug (limitation?) with ADB shell. If a file or folder contains "_(", it just throws a syntax error...

I have no idea how to work around that now, as I cant do anything with those files/folders through adb apart from pulling them.

For now I think I'll have to resort to guessing >_>... God I hate wonky workarounds that wont even work 100%.

Anyone got a bright idea?

edit: actually I cant even pull those files.... >_>

edit2: nevermind, I managed to solve it :eek:
[Android Software Development] ArmanUV:
A little off topic but does anyone know a similiar solution for macs?
[Android Software Development] Goatshocker:
The project has temporarily grinded to a halt at the moment.

Im in the middle of buying a car which Im going to fix up.

Theoratically I could release the program in its current state, but I wouldnt feel comfortable with that as I suspect theres some bug Ive missed somewhere (I havnt had time to test everything thoroughly yet).

I'll try to get some work done tonight.

Sorry for the delay, but Im fairly confident it will be worth the wait :)
[Android Software Development] regaw_leinad:
And same here with AndroidLib, I've been busy performing for multiple productions of Chicago and Hairspray here in Seattle. I have a week break now, so I'll try and get something done on it.
[Android Software Development] denzel09:
Sorry but where is the link?
[Android Software Development] Goatshocker:
huh? The link is the last entry in the first post, and its even attached.

stupid shaky mouse, didnt mean to thank you :( lol

edit: So uh, yeah. New version is up. Enjoy! :)

I was going to add a few more things before releasing it, but since I currently lack time I decided to release it in its current state.

I'll add the rest I have in mind in future updates.

Do report bugs though! I dont think theres any major issue, but I mightve missed something.
[Android Software Development] regaw_leinad:
Nice work man, sorry to say this (haha) but I'm releasing an update today for AndroidLib. I'd like to coordinate things better with you in terms of releases to help you out. Also, I'd like to work along side you and this project for more ideas to incorporate into the library. Also, I added this project to AndroidLib's Featured Projects by XDA Users. Congrats!!! ;)
[Android Software Development] Goatshocker:
Haha, damn you :D

Anyway, I should be able to squeeze an update out during the week with the new lib update, at least the installapk() part.

Im kinda running out of ideas what else to do to this program though. Edit: Oh yeah, I just thought of one thing I could add - backup!

I guess I could start adding rooting methods and stuff like that but... I dunno, probably way too much work for something dedicated root-tools do better.

Hm, I need to come up with a better name for this program though :p

I must say Im a bit surprised that I hardly get any bugreports at all... Am I such an awesome coder the program is bugfree (yea.... riiiight) :p? Or is it just that people are too lazy to report ;) ?
[Android Software Development] Genshard:
Everytime and every device I go to pull file, browse I get this

ls: Unknown option "-1". Aborting./

cannot open new directorys or files.

Xoom2 and Gnex.

Please help, this program would be so useful in my business and I would pay to get it running smooth
[Android Software Development] Goatshocker:
Ah damnit.. I was afraid of that because my phone doesnt accept the -1 argument either. But the phone tries to find a dir/file named -1 instead so the command still works...

I thought other devices would do the same.

If you run 'adb shell ls /' from a command line, how does it list the dirs? One per line or in columns?

Could you tell me a bit more of your devices? Are they rooted? What version of su and busybox are they running? etc.

Unfortunely Im in no shape to try to fix this right now, as Ive been sick with 41c fever all weekend and still feel crap.
[Android Software Development] Genshard:
Ok ran the ADB command and voila

C:\Users\rootNboot>adb shell ls /

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

acct

cache

charger

config

d

data

default.prop

dev

etc

factory

init

init.goldfish.rc

init.omap4pandaboard.rc

init.rc

init.tuna.rc

init.tuna.usb.rc

mnt

proc

ramdisk.gz

res

root

sbin

sdcard

sys

system

ueventd.goldfish.rc

ueventd.rc

ueventd.tuna.rc

vendor

Its a Galaxy Nexus running Franco Kernel milestone 3, AOKP Milestone 5 ROM

Superuser version is 3.0.7, honestly don't know how to find busybox eh...

Thanks for the help and Very Sorry to hear about your fever... any mad hallucination storys to share? lolz
[Android Software Development] regaw_leinad:
Goat, that phone/rom has tested fine with my library. Most of the ls binaries linked from toolbox don't use the option -1 (dash - one) on Android. I think the default is one entry per line.
[Android Software Development] Genshard:
What does that mean for me?
[Android Software Development] regaw_leinad:
Oh I guess I didn't mean to quote you, I was aiming that at Goatshocker with your info too.. I call him Goat for short lol
[Android Software Development] Goatshocker:
Thanks, Im going to implement your method asap.

Both my phone and 7" tablet lists the dirs. 1 per line, but my TF lists them in columns of 3 per line by default, so I had to use the -1 to make it list 1 per line.... stupid thing.

@Genshard, the 'advanced' tab should tell you your busybox version.

And no, no halluciations :) I dont think Ive ever had that due to fever.
[Android Software Development] einstein.frat:
Dude this is the no.1 best windows app for android. Thanks so much. I'm using it all the time. since early builds. :D
[Android Software Development] Genshard:
What advanced tab?

Coz i don't see it in the su apk
[Android Software Development] regaw_leinad:
Just wanted to say this is by far the best utilization of AndroidLib I have seen. Way to go, I love what you did with this. EDIT: Just noticed that it's not disposing the resources on exit. I see you have the code in there for it, so I'm not sure whats going on there.

He means the "Advanced" tab in the Quick ADB Pusher program.
[Android Software Development] vua777:
It may help my one X cause no SDCArd removable

try...
[Android Software Development] Goatshocker:
I have been very busy lately with the new cars Ive bought etc, so I havnt had time to work on this.

Im going to try get some work done during the week.

regaw: Thats weird. I'll look into it (when I find the time lol)
[Android Software Development] Goatshocker:
Just a quick update.

Ive started working a bit on this again.

So far I think Ive solved the not-disposing-thingy regaw mentioned.

I also think Ive made a workaround for the issue Genshard had. Its hard for me to test though since all my devices worked fine with the old method :)

I also found and fixed a nasty bug where files with spaces in their name wouldnt get pulled correctly (WHY HAS NO ONE REPORTED THIS!?! :( )

Anyway, I cant say when it'll be ready for release, but at least Im working on it now :)
[Android Software Development] regaw_leinad:
Yeah someone (might have been you) just opened that issue on the github page. I can't believe I missed that one haha. I gave them a fix, and I'm fixing that in the next update of the lib. For now, just be sure to surround the path with \"s. Also will add in the filelisting of a directory part too :p
[Android Software Development] Goatshocker:
Wasnt me. I dont use github. Much more efficient to spam-PM you :D

Ive known about the lack of quotes in your lib for a while. I dont know how Ive missed adding them in the pull-part. They were there on the push-part.

Temporary brainfreeze I guess. :p

Wont be much coding done today though, I got quite a lot to do later. And its my birthday today :eek:
[Android Software Development] Genshard:
Here ya go guys

busybox version 1.20.0-cm9
[Android Software Development] regaw_leinad:
Hey Genshard, I think because you're a 'Member' it won't let you post links :( Pm me and I'll post it here with the link if that's what you were trying to do :D
[Android Software Development] darkhokage:
could someone tell me the location name of the internal sdcard on a motorola atrix?
[Android Software Development] Goatshocker:
New version posted. Hopefully this fixes the issue Genshard had with the filebrowser.
[Android Software Development] regaw_leinad:
This is actually not a problem with my library, but it looks like somehow the progress bar value added up to 105, when the max value for a progress bar control can only be 100. You can see in the stack dump (I highlighted in red) it shows the exact error. Not sure how it could have added up to that though if the updates are hard coded. (Maybe they aren't...?)
[Android Software Development] Goatshocker:
Yes, Ive gotten that on my phone in one specific folder.

I have no idea why it does that as I have a double-check to make sure its not above 100 (if value > 100 then value = 100(simplified the code to make it understandable by anyone)).

The fact it goes beyond 100 at all confuses me as hell, especially as it seems completely random. I know its not related to folder/file count.

I'll take a look at it when I find the time, maybe add a triple-check lol
[Android Software Development] KappaG9:
I like this app, good job man. I would much rather use something coming out of XDA :-D
[Android Software Development] redheadplantguy:
Hopefully you can help. every time I try to run this, I get an error. What can I do.

"could not load file or assembly Android.lib version 1.3.0.0

Culture = neutral public key token =d16c900able21a17 or one of its dependencies

System cannot fund file specified.
[Android Software Development] Goatshocker:
You dont have AndroidLib.dll in the same location as the Quick ADB Pusher v0.4.1.exe