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
This thread should be used to provide feedback and troubleshooting for the Sixaxis Controller and Compatibility Checker apps.
If you have a device that you would like to see supported, and you're happy to step few a bit of debugging to help me determine the issue then please let me know, and preferably provide a screenshot of any error messages.
I'm doing my best to add support for new devices (especially HTC and Samsung), but it seems that it might not always be possible to add compatibility. In this case, the only option for running the app on said device is with an AOSP based rom such as CyanogenMod.
Also, throughout the thread I will occasionally be posting beta versions of the app that include new experimental features. I would be most appreciative of any feedback from those willing to test these new features.
For those looking for help with touch profiles, mythek88 has put together a master list here with a growing list of games. Hopefully at some stage I will add the ability to share profiles directly through the app.
Regards,
Earl
Both Nexus phones. I'd volunteer for testing, but I don't own a sixaxis.
Out of curiosity, why does this need root access whereas Wii doesn't? Is there a difference between the way the controllers pair or something?
Sent from my Nexus S 4G using XDA App
Out of curiosity, why does this need root access whereas Wii doesn't? Is there a difference between the way the controllers pair or something?
Click to expand...
Click to collapse
Yes unfortunately, although the Sixaxis basically communicates via the HID protocol, there are a couple of minor differences that would require a kernel patch to make the controller start talking over HID. The only solution I have found for this so far is to bypass HID and communicate directly over L2CAP (both of which require root access).
I'd love to volunteer for testing! I have access to several androids and 8 dualshock and sixaxis controllers
If you wish to test on an Galaxy S II then I am available to help out if required. I too have both DualShock and SixAxis controllers.
I can join to you guys too! I have Desire HD with sense or without it and dualshock3/sixaxis controller.
I have three phones that I'm willing to beta test.
I have dualshock 3 controllers.
LG Optimus S
HTC Hero (rooted w/o Sense)
HTC Evo 3D (soon to be rooted)
I definitely think you should release a free version that lets people test basic compatibility. 15 minute return window doesn't seem like enough to test an app like this.
Very excited to see this app!
Ok, what I'll do initially is release a standalone compatibility test app on here in the next couple of days that basically allows me to get some initial feedback and if required have anyone who is willing with an incompatible phone to run a few tests that might enable me to get them working.
Again, this application will only work on rooted devices, sorry!
Stay tuned.
I'd suggest you to put an free version for like 2 weeks for the time its a beta stage then when everything is finalised make it 1$ which i think is reasonably fair ! And i own an sony ericsson xperia x10 it has to work ! Since sony > sony ericsson is the same company i think ? Lol
Sent from my X10i using XDA Premium App
shahkam said:
i own an sony ericsson xperia x10 it has to work ! Since sony > sony ericsson is the same company i think ? Lol
Click to expand...
Click to collapse
I don't think that's how this sort of thing works.
Sent from my Nexus S 4G using XDA App
do want so much
G2x I'm in
Sent from my LG-P999 using XDA App
Here is the (very basic) windows utility I created today for pairing the controllers to a specific MAC address. Once installed, you should be able to plug a controller in to your PC via Mini-USB and the 'Current Master' should change from 'Searching...' to the last MAC address the controller was paired with (probably your PS3). You can then change the master by entering a new MAC address in the format of xx:xx:xx:xx:xx:xx. This address will ultimately be the bluetooth address of the phone you wish to use the controller with. The Android app will give you the correct address when run on your phone.
Make sense?
If anyone wants to try it out and let me know if it works on your PC's, that would be lovely. Just enter any old MAC address 00:00:00:00:00:00 will do.
Linux users (and apple mac?) should be able to use the utility called 'sixpair' that is floating around the net.
Just an update that I'm hoping to get a bit of feedback on...
This app allows you to test whether your device will be compatible with the app. Once I have enough feedback about which devices / OS versions it will run on (and potentially improve compatibility with some assistance from testers on the forum), then I will make a release on the market that enables IME.
If you would like to help out, you will need to download the attached apk, as well as the SixaxisPairTool in my previous post. You will then need to extract and install the apk on your phone using adb or something like 'app installer' from the market. Run the app and follow the instructions (you will need to use SixaxisPairTool to pair the controller with the phone (using the bluetooth address displayed at the bottom of the app after tapping 'start').
Please could anyone who tries the app report back here any devices and OS's they have tried, and the success they have. Feel free to ask for help if anything is unclear.
Cheers,
Earl
I ran Sixaxis Compatability Checker on my Asus Transformer running Prime 1.6 (Android 3.1). When I clicked "Start" the program said "Connection Initiated..." and then "Connection Failed." At this point I have not paired my controller because the Checker program does not give me the MAC address. When I click "Stop" my Transformer locks up and nothing works, and while I can turn it off with the power button it does not turn back on until I hard reset it.
oKay i run the Server on Android.. they show me the MAC.. ..
i type the mac address in the Windows App .. the show me the same address in the Server and Controller .. but if i press start at the controller hey only blinking.. -.-
Connection Initiated...
Connection Established..
Samsung Galaxy S Miui Galnet v6
@presslab - Can you try running the command 'hciconfig' on the phone in a terminal emulator as root user and tell me the result.
@Witalka 15 - When you paired the controller using 'SixaxisPairTool', did the 'Current Master' show the same address as the one you typed in after clicking 'Update', or was it still showing 'Searching...'?
I have a Droid X running Liberty Gingerbread ROM 0.9. First off I'd just like to say that I constantly have problems with it, including with Bluetooth, so this may not apply to all Droid X users, but I do receive the "Connection Failed" message, and was just wondering what I can do about it since I've been dying to use my Dualshock with my phone for the longest time. Thanks
Anyone getting a 'Connection Failed' message can help me out by trying the following commands in a terminal window and reporting the results:
su
echo 1 > /sys/class/rfkill/rfkill0/state
start hciattach
hciconfig -a hci0 up
hciconfig -a hci0 pscan
hciconfig
If you get a 'not found' error when calling hciconfig, you could try copying the executable (from say here) to your /system/xbin folder and making it executable with 'chmod 744 /system/xbin/hciconfig'. Then try running the above commands again.
sir_earl said:
@presslab - Can you try running the command 'hciconfig' on the phone in a terminal emulator as root user and tell me the result.
@Witalka 15 - When you paired the controller using 'SixaxisPairTool', did the 'Current Master' show the same address as the one you typed in after clicking 'Update', or was it still showing 'Searching...'?
Click to expand...
Click to collapse
Yes i see the same address... In sixaxispairtool and the server..
I'm interested in setting up VPN between my home computer and my Skyrocket. But before I go through the process, I wanted to ensure that VPN (and tun module) is available/possible in the stock Skyrocket kernel. The "OpenVPN Installer" and "OpenVPN Settings" android apps indicate that "tun" module must be available on the phone and this seems to be the case for NON-stock ROMs.
If VPN is available in stock rom, can anyone recommend a good walkthrough for setup?
The phone has built in vpn but it's. Very flawed. Most encrypted connections will die after a few min.
This is an android-wide problem and according to forum posts, has existed for years.
Sent from my SAMSUNG-SGH-I727 using xda premium
Does that include third party vpn solutions like openvpn? I was hoping to use vpn for tethering uses.
As long as openvpn supports pptp ipsec or l2tp then yes it will work.
Sent from my SAMSUNG-SGH-I727 using xda premium
After reading this thread, I'm not sure this is necessarily the case. There it is claimed that the required TUN/TAP driver for VPN on the Skyrocket isn't in the stock ROM:
http://forum.xda-developers.com/showthread.php?p=19963725#post19963725
The built in vpn solutions are fine, but rather complicated, and geared more towards those who use enterprise VPN solutions, like the Cisco VPN Concentrators and such.
If you want to use the built in vpn client, you can use raccoon (runs on linux, *bsd and a bunch of others) as the vpn server, but it is a total ***** to configure.. hell, it is a total ***** and a half.
One we start getting more custom kernels out, the developers will start to include the tun driver into the kernel, and we can use openvpn which is simple to setup.
Do you have a T-Mobile US device that redirects you to T-Mo's site whenever you try to wireless or USB tether your computer? Here are two work arounds to stop that:
Difficulty: Easy. ROM: Any. Description: Spoof computer web browser to say 'Android' when loading web pages.
1) Install an EU ROM. Any ROM based on T-Mobile US has a script that will block tethering if Android is not recommended.
2) (SUGGESTED) (Avoiding the script) No root needed. No APN switching (because that sh!t does not work). You need to spoof your computer's web browser to an Android device. Go on your add-ons/extensions installing page (Chrome, Firefox, Opera, maybe more) and search for a user account spoofer / switcher. I am on Chrome and I use 'Chrome UA Spoofer'. Select the Android Motorola Xoom device to spoof to. Tether via wireless or USB and it works constantly. The only downside is that some pages load in mobile view. You can easily select to show full web page. I used this for multiple hours, multiple PCs, multiple different times and never was redirected to T-Mo asking me to add tethering to my plan.
Why does this happen? Ever since Android 4.0, they added a script in the OS which does this. You cannot uninstall it because it is located very deep in the system (maybe you can, but no one has figured it out.) If you have a EU ROM (no wifi calling), then you will be fine to tether with no problems and no spoofing. Please click thanks if I helped
The APN thing does work; I use it daily for my Fire, and my laptop on occasion. Not to mention the FCC just smacked Verizon for $1.25M for blocking customers from tethering with third party apps, so T-Mobile should follow soon to avoid a similar fine.
Sent from my H1S using XDA Premium.
T-Mobile should be stopped for that. But I have to say the the APN did not work for me. It worked for about 20 minutes, then I was never able to connect again.
MadJoe said:
Not to mention the FCC just smacked Verizon for $1.25M for blocking customers from tethering with third party apps, so T-Mobile should follow soon to avoid a similar fine.
Click to expand...
Click to collapse
Actually they don't have to allow tethering, nor will they be fined. This was a rule specific to LTE implementations. Since T-Mo is on HSPA+, those rules in no way apply to them.
Also, to the OP -- this works, but you need to keep in mind that it only would apply to web browsing. Tethering is detected via packet identification. The combination of the TTL (time to live) and the device (Android vs computer, etc) gives tethering away. If you were to use bittorrent on your computer, the packets would be identified as computer, and with a computer TTL.
Dang, that sucks. I thought it had to do with data limits, since they aren't required to allow it for their unlimited customers.
Sent from my H1S using XDA Premium.
I use FoxFi from the play store with zero issues. Stock unrooted.
Sent from my HTC One S using Tapatalk 2
Closed Source Project said:
Do you have a T-Mobile US device that redirects you to T-Mo's site whenever you try to wireless or USB tether your computer? Here are two work arounds to stop that:
Difficulty: Easy. ROM: Any. Description: Spoof computer web browser to say 'Android' when loading web pages.
1) Install an EU ROM. Any ROM based on T-Mobile US has a script that will block tethering if Android is not recommended.
2) (SUGGESTED) (Avoiding the script) No root needed. No APN switching (because that sh!t does not work). You need to spoof your computer's web browser to an Android device. Go on your add-ons/extensions installing page (Chrome, Firefox, Opera, maybe more) and search for a user account spoofer / switcher. I am on Chrome and I use 'Chrome UA Spoofer'. Select the Android Motorola Xoom device to spoof to. Tether via wireless or USB and it works constantly. The only downside is that some pages load in mobile view. You can easily select to show full web page. I used this for multiple hours, multiple PCs, multiple different times and never was redirected to T-Mo asking me to add tethering to my plan.
Why does this happen? Ever since Android 4.0, they added a script in the OS which does this. You cannot uninstall it because it is located very deep in the system (maybe you can, but no one has figured it out.) If you have a EU ROM (no wifi calling), then you will be fine to tether with no problems and no spoofing. Please click thanks if I helped
Click to expand...
Click to collapse
It's been figured out over on the Sensation forum. It's a tether apn set to be hidden in the apn.xml found inside the framework.apk, if I recall correctly. Steve from the Elegancia Rom should be able to help.
HTC One S
TJBunch1228 said:
I use FoxFi from the play store with zero issues. Stock unrooted.
Sent from my HTC One S using Tapatalk 2
Click to expand...
Click to collapse
How did you get FoxFi to work? I tried it and said it won't work on this device. And when I use bluetooth, the tethered device can't do certain things outside of the browser.
Dedren said:
How did you get FoxFi to work? I tried it and said it won't work on this device. And when I use bluetooth, the tethered device can't do certain things outside of the browser.
Click to expand...
Click to collapse
Nothing special, I just download the app, launch the app (did go into settings and set security code) It just work no problems.
baseballfanz said:
Nothing special, I just download the app, launch the app (did go into settings and set security code) It just work no problems.
Click to expand...
Click to collapse
It doesn't work on unrooted HTC Sensation (T-Mobile) for me so still trying to find something that does.
Dedren said:
It doesn't work on unrooted HTC Sensation (T-Mobile) for me so still trying to find something that does.
Click to expand...
Click to collapse
Then you are using the wrong rom,I was using Elegancia rom and it worked for me. You can't just root the stock rom and expect it to work, there is a separate hidden tether apn built into the framework.apk I believe.
T-MobileUS HTC One S running Stock Rooted 2.21.
I am using Gimlo 0.2 ROM and ICS Vengeance kernel.
I tried using Proxydroid in my phone to run my college wifi connection (which has a proxy) in all aps.
It didnt run. a bit of googling told me that i need a kernel with IPTables support.
K()T! said:
I am using Gimlo 0.2 ROM and ICS Vengeance kernel.
I tried using Proxydroid in my phone to run my college wifi connection (which has a proxy) in all aps.
It didnt run. a bit of googling told me that i need a kernel with IPTables support.
Click to expand...
Click to collapse
I honestly think Tipo already supports IPTables, as I use Droidwall (sort of firewall-like app, where you can select which app can and which app cannot connect to 3g and/or wifi). That app also uses IPTables...
But that's all I know. Perhaps I'm wrong, perhaps the support gets added by the app itself. Although I'm still quite sure as IPTables are a native Linux functions, while Android (and actually, also iOs, Firefox OS, and many more) is based on.
^ Thanks.
I'll try the app again...
Maybe I'm doing something wrong......