Related
Hi,
I need the captivate to be able to connect to a adhoc wifi network created using my laptop. However, android doesn't seem to be supporting it, just access point networks. Has anyone tried this, any success?
Searching revealed one thread where a guy modified some code on an htc phone, and got it to work, but seemed a little dated. Not sure if that would work with the android 2.1 and the Samsung phone.
Help appreciated.
The Captivate can connect to ad-hoc networks, but not through the native GUI interface. I tested mine via adb shell issuing some iwconfig commands via script to connect to a MyWi router on a friend's iPad. It's buggy, to say the least..
agentdr8 said:
The Captivate can connect to ad-hoc networks, but not through the native GUI interface. I tested mine via adb shell issuing some iwconfig commands via script to connect to a MyWi router on a friend's iPad. It's buggy, to say the least..
Click to expand...
Click to collapse
agentdr8,
Thanks for the reply.
Care to share details on the commands you ran? Or are you saying it's not worth it because it's so buggy?
thanks
To avoid a hard lockup, start with the wifi turned off. I tested it numerous times with it already on, and it resulted in a battery pull.
You'll need busybox 1.7x (maybe 1.8x will work too?). You'll also need a working iwconfig binary (I symlinked mine from the WifiTether app dir: /data/ext2data/data/android.tether/bin to /system/xbin)
With an adb shell, try something like this:
$ su
# /system/xbin/ifconfig eth0 up
# /system/xbin/iwconfig eth0 mode ad-hoc
# /system/xbin/iwconfig eth0 essid YourEssidHere
# /system/xbin/iwconfig eth0 key WEPkeyhere
Now with wifi turned off, these commands will all error since the interface is down/off (eth0 is the wifi, at least on my Cap). Turn your wifi on and rerun the same commands, followed by:
# netcfg eth0 dhcp
This may or may not error out, but ultimately, you should see a dhcp address for eth0 as handed out by your dhcp server/mywi device.
You may need to also manually add the ad-hoc network in the GUI with its key. I can't remember if I needed that or not, but with it I can see the connection status and when it's grabbing the IP. Even shows connected and signal strength once it does connect (assuming it doesn't lockup).
agent can you help me pls. Im a newbie still.
Do i run all those commands in windows when my phone is connected or do i run it through something like terminal emulator an app on the phone??
You can either use adb shell on your Windows machine (part of the Android SDK), or you can use a terminal on the device itself (ConnectBot is my preferred). Your phone needs to be rooted if it isn't already.
Okay, I'll try out the connectbot. Can you tell me how to do this part then if it's needed??
"You'll also need a working iwconfig binary (I symlinked mine from the WifiTether app dir: /data/ext2data/data/android.tether/bin to /system/xbin)"
how do you do this symlinked part?? I don't really understand it.
I tried ur commands without doing the symlinked part....everything just returned a "not found" message.
Maybe you could give me a dumbed down step by step way of doing this hahahaha??? Im rooted and i have busybox 1.7x, just missing the working iwconfig because im not really sure what it is.
If you're not too familiar with linux commands, it would be best to wait for someone to build a widget/GUI app around this, as poking around in a root shell on your phone is never a good idea if you're not aware of the potential consequences of blindly running commands.
It's possible that with the Froyo update adhoc connections may just work as intended, not that I've read anything that suggests that.
The portal had a write up on how to connect an android device to an adhoc network a couple days ago.
Sent from my AOSP on XDANDROID MSM using XDA App
boborone said:
The portal had a write up on how to connect an android device to an adhoc network a couple days ago.
Sent from my AOSP on XDANDROID MSM using XDA App
Click to expand...
Click to collapse
Okay, i'll go look for it though a link would help.
Maybe i'll just wait until something like Cyanogens ROM comes, i hear it usually comes with ad-hoc connectivity.
Try this: http://www.xda-developers.com/android/android-ad-hoc-wireless-network-support/
Sent from my HTC Dream using XDA App
only problem is it's compiled for froyo and i think geared towards the Desire according to the replies.
I feel like it might mess up my captivate
Well if you're computer is windows7 you can use a program called conectify.
It makes win7's adhoc networks work as real hotspots
Sent from my HTC Dream using XDA App
Wanted to enable ad-hoc so I could tether the captivate to my iPhone
Yes I woild also know on a workaround , would love to tether my unlimited data from my iphone to my captivate
pewpewbangbang said:
Wanted to enable ad-hoc so I could tether the captivate to my iPhone
Click to expand...
Click to collapse
Why would you do that? Do you prefer safari over android browser or something?
Sent from my Nexus One using XDA App
cowballz69 said:
Yes I woild also know on a workaround , would love to tether my unlimited data from my iphone to my captivate
Click to expand...
Click to collapse
Then You need to jailbreak your iphone and get a tethering app
boborone said:
Then You need to jailbreak your iphone and get a tethering app
Click to expand...
Click to collapse
Issue isn't on iPhone-end, nor wpa-supplicant end (as the wpa-supplicant binary included in the android wireless tether app has this ability).
The problem is the GUI end of things (i.e., settings.apk) ALSO filters the results.
So it goes beyond simpy modifying the wpa-applicant (yes; this is sufficient for the basic-functionality), but is very crude & diffcult to do on the go from the tiny terminal emulator, etc.
What I've personally been looking for, is an update that modifies the neceasary files, and enables this extewmely useful function.
Something similar to the update package posted for the froyo-build, but instead for the ECLAIR-2.1 build of the captivate.
If anyone knows of anything availible like I'm describing (a GUI-centered mod that will remove ALL the STUPID damn (pardon language lol) IBSS filtration form the settings.apk, wpa-supplicant, wireless configuration files, etc for the ECLAIR-2.1 build of the Captivate so that it JUST WORKS lol -- this way we can SEE and CONNECT via our native GUI .
I've gotten this to work through running command line / configuration file hacks, but it's very messy/annoying AND to make things MORE annoying, once you've put it into Ad-hoc mode and have it all setup very nicely, guess what? The settings.apk application (which is needed to load the device into kernel), will actually COMPLETELY UNDO all the tedious command line efforts you've just made, and takes the wifi chip out of Ad-hoc mode every x amount of minutes! ARGH!! LOL!
Anyway, I've gone through the source code and patch diff's myself and it really doesn't seem very involved. I actually was planning on compiling the necessary modded binary (making a nice update.zip for all the frustrated captivate owners like myself lol), but I simply haven't had the time to setup the build environment for it at the moment (have several other build environments I'm juggling as it is with work).
Anyway, I apologize for the rant lol -- I just wanted to clarify exactly what is needed and point out it really wouldn't be much work (and would be VERY much appreciated!!!!) if someone with the skill, time, and a build environment for the galaxy s (captivate, speifically lol , could post an eclair mod for us -- you would receive AN ENORMOUS amount of praise & thanks lol .
OR -- if someone who has a little time, could simply modify the android wireless-tether-app to have one extra feature, 'connect to ad-hoc network' lol . This would also be ideal, as it already fully supports the initialization & loading of the captivate wireless driver properly, and can fully manage the interface & connections while running in the background (independent of settings.apk). PLUS -- it even already has full ad-hoc support built into it's own pre-packaged wpa-supplicant. Basically, all the hard work has already been done with the wireless-tether-app, just need a few extra functions to handle scanning for networks and connecting to them (relatively simple, considering they've already done ALL the hard work..lol)..
Okay, my rant is officially done! Lol! I just hope this helps those who have the capability to help, give a clear picture of all that's required. It's late, so some of this stuff may have already been mentioned and I missed it! Shoot, maybe someone just finished doing exactly what I just went on & on about? Lol.
In any case, if anyone is willing to help out -- or already knows of a solution already out there I've missed -- PLEASE let me' know! This functionality would truly help a great deal in my day to day work with my captivate! Thanks in advance!!!
holy need a bump batman!
i would really like this too!
I found this post last night, but I couldn't get it to work: http://forum.xda-developers.com/showpost.php?p=16632147&postcount=7758
[Q] I have used ADB on a coupe different ROM's since rooted, and also stock, mainly to take screen shots. Now, after I have downloaded a theme to my handset, my device will not conntect to ADB. I can't exactly tell what is going on, but the log says an app is terminating the connection in an unusual way. I can't really tell much more than that, and actually the DOS like cmd window that is open simultaneously with the console doesn't even expand the whole way horizontally so I can read the whole log entry....can a THEME do this? I am a noob but somewhat of a proficient one...still digging....but throwing the question out there in hopes that someone can help me can help me a little. One of my next tasks with this Android saga was to dig more deeply into adb...but I need to connect first :-o... someone can help me more quickly than me just pounding this out from scratch. Device and ROM in the sig. Thanks in advance....I suppose I can nandroid back to my ROM before this theme,,,but dang I kind of like it and want to know if the theme could possibly do this before I do....the other significant apps I've downloaded since last know good ADB connect is Root Explorer just tonight and the free app from Amazon today Executive Assistant,,,,both paid apps with high ratings.....and this theme I just yanked off the thread for this rom....
Whew. Ok, well, I am new to rooting and such and also new to smartphones in general. First, I must explain what I am attempting to achieve by modding and rooting my droid x.
I am trying to use my droid as a modem for an xbox 360. I have already rooted my phone with z4root. I am using barnacle wifi tether in order to connect the 360 slim to a wireless WAN. I am able to connect online; however, I would like to get a better speed, so after spending all day going though threads online, I have found a possible solution. Due to the fact that I am new to this I am at a loss with all the jargon and apps. It appears that by setting up a new ROM I will be able to get into the system root files to modify the throttle lock on the phone. This is all in theory, of course, from what I have located. All the tutorials I have looked into do not give enough info to fully understand and use their methods. Currently on my phone, I have an installed PDAnet which i am using for wired internet on my PC. (I do not have internet at my residence currently.) It also seems I am having issues downloading some files online, maybe due to timeout or something, but I cannot be sure. As you can guess, this is getting pretty frustrating. I am also running ROM manager. I am at the point where I cannot go any further in what I am attempting to do unless I get assistance. Also, Youtube seems fairly useless in this particular issue and variations of this issue.
So in short, I ask that someone please assist me with this and be as detailed as you can to clear up any miscommunication. Please use and/or explain any jargon that you use.
Thank you for any posts that you make in response. I will be looking into this thread for posts.
Also. I am currently running The default android and did a Factory Data Reset.It is Android Version 2.2.1.
DROIDX
UPDATE
I also installed adb and SDK, wifi tether, droidx bootstrapper, no frills CPU controller, Terminal Emulator, and root explorer.
http://forum.xda-developers.com/showthread.php?t=863923 I followed this post and im caught in a snag. when i run "java -jar baksmali.jar -o classout/ classes.dex" in CMD im getting this error "unable to access jar file baksmali.jar"
Also can someone please post a link to a nandroid backup tut for a droidx
Oh man, i had fun with this little piece of software in school with my old sony erricsson c510. my friend and me used to link our phones, hide it behind the board and activate the music with the other one xD. the teacher didnt knew what was goin on ^^
anyways, bt-info was a fun program and i searched the web for an android version of this. i alao tried to convert the jar file into an apk file. it worked but the software was incompatible. can anyone make it work on my samsung galaxy s2?
Would be awesome....
lol i remember that app back in the times... but it worked only with a few target phones, I remember always failing against Symbians, working on some LG and SE ( AT standard commands huh?).
Anyway, in my free time I'm playing with some Android scripting and I could sort something like this... you got any request for features ?
As of now I got a "talk server"... just run on the phone, connect to its IP from anywhere else (another phone, iphone, ipad, pc...) type something and the phone will say it you could prank as well with that, but there could be added other cool functions...
Think that could be done via bluetooth too, though haven't tried much the bt libs..
Let me know if that could interest you
ell3 said:
lol i remember that app back in the times... but it worked only with a few target phones, I remember always failing against Symbians, working on some LG and SE ( AT standard commands huh?).
Anyway, in my free time I'm playing with some Android scripting and I could sort something like this... you got any request for features ?
As of now I got a "talk server"... just run on the phone, connect to its IP from anywhere else (another phone, iphone, ipad, pc...) type something and the phone will say it you could prank as well with that, but there could be added other cool functions...
Think that could be done via bluetooth too, though haven't tried much the bt libs..
Let me know if that could interest you
Click to expand...
Click to collapse
It would be awesome if you could it even get to work! it crashes on my phone when i try to connect! i used a jar to apk converter ..... maybe not the best idea
the app is/was great just the way it worked! maybe wifi support... and dissable the code request-thingy when i try to connect to a phone - but i think that would be iligal...
but yeah ... if you can get it to work, you could sell it on the market! or publish it anywere else! im not the only one whos searching for that app working on android!
See, targeting new generation phones with that old bluetooth app wont be of any effect.... will just work on old ones.
Removing the "code thing" you say it's the pairing procedure of bluetooth, the standard authentication feature of bt, actually you can't get around it, and though it would be illegal, it would get you big money if you ever find how to
That app used pseudo-standard AT commands through the bluetooth modem interface of the phone, and that supposedly to issue an action on the phone (like push/pull contacts,sms,calendars, raise volume, set alarm....) but that was not implemented in all phones so most commands failed, but virtually could work with any target as long as it was bt enabled and paired.
TL;DR
Not worth porting bt-info. So, as it must be build from scratch, you can suggest some feature request
ell3 said:
See, targeting new generation phones with that old bluetooth app wont be of any effect.... will just work on old ones.
Removing the "code thing" you say it's the pairing procedure of bluetooth, the standard authentication feature of bt, actually you can't get around it, and though it would be illegal, it would get you big money if you ever find how to
That app used pseudo-standard AT commands through the bluetooth modem interface of the phone, and that supposedly to issue an action on the phone (like push/pull contacts,sms,calendars, raise volume, set alarm....) but that was not implemented in all phones so most commands failed, but virtually could work with any target as long as it was bt enabled and paired.
TL;DR
Not worth porting bt-info. So, as it must be build from scratch, you can suggest some feature request
Click to expand...
Click to collapse
would be nice if someone could 'rebuild' that app on android bases... hacking the bluetooth 'password-thingy'™© isnt a big deal! the app worked great without it!
My question: is it POSSIBLE to make that app for android with all the functions that it has? and make it work with android-> symbian and android -> android?
Man I've been looking and wanting this for my phone forever.
Evo 3D in full Affect with WTSB HYDRO SENSE 3.5
Q: is it POSSIBLE to make that app for android with all the functions that it has and make it work with android-> symbian and android -> android?
A: Symbians hardly support AT commands, you can try yourself using old bt.info or any other AT enabled shell to issue a command to a Symbian, I had no luck in the past. Android to android I dont know if it could be done natively (client on one phone, no server in the other) but it surely might be done with an app. To get a 100% compatibility there should be a client or a server installer in BOTH phones, UNLESS you find some AT command that would run on all (hard, as most vendors implement them differently).
I found this lil app that can give you an example, it's called "AT COMMAND TOOL" (google -> "sd.at.c8600"). It says it has presets for Huaweii phones, but that's the only supported. Anyway, looks like you can issue any command, but you have to find out WHICH one works with other phones !!
Google "at command list" and get the idea...
I haven't tested it, but looks similar to what you're looking for.
I remember using
Code:
AT+CNUM
to get the phone number via BT... that could come handy in certain situations
My tablet is rooted, I have Busybox, Better Terminal Emulator Pro, Terminal Emulator, Superuser, and every other hack-y type app you can think of, but if I try to run an ssh from one of the command line's, I get ' ssh: command not found'.
Should I have it, is there any way I could add it? I've got it on my Cyanogenmod build of my Desire, but I need it for vnc tunnelling sessions with the tablet, the screen is just to small on the phone!
Any and all help is greatly appreciated.
Sent from my GT-P6200 using xda app-developers app
Ok, so just after posting, I realised I want going in under BTEP's shell, but as soon as I did that, I had the ssh command- but it's not the right version. I'm trying to login to an Amazon ec2 server, with a .pem key, but if I try to do that with dropbear's version of ssh, I get a 'string too long' error. On my phone, I have an OpenSSH version of ssh, and that's why it works without a problem.
So my question now is, how do I get the OpenSSH version of the ssh binary into my tablet? (even though I knew it wouldn't work, I did try copying over the one from my Desire, just in case anyone suggests it)
Sent from my GT-P6200 using Tapatalk 2
I got where I wanted by using a patched version of connectbot, the irssi one which doesn't crash, accepts my pem keyhole, stays open in the background and forwards ports correctly. That, along with my discovery of the "Hacker's Keyboard", have made managing servers remotely ridiculously easy for me!
Sent from my GT-P6200 using Tapatalk 2
And just to come back on this again, Better Terminal Emulator Pro comes with OpenSSH binaries included. I don't know their specific versions, they only say "Ported to Android by www.magicandroidapps.com", but one way or another, it's great because it performs better than Connectbot (at times, with port forwarding), that was eating like 80% of my CPU, works by just pointing it to my .ssh folder, and is entirely more acceptable than any other option.
Only irritation is that the dropbear build of ssh is called just 'ssh', whereas Openssh's is 'openssh', had it been the other way around, dropbear's been 'dropssh' (the way I have it now), I'd never had a problem :/
Sure does feel lonely in this thread...
Sent from my GT-P6200 using Tapatalk 2