Connect to adhoc Wifi network - Captivate General

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

Related

Linux applications ported to Android

Hi all of you, XDA fans!
After googling and looking in XDA forums, I was not able to find any ways to port linux apps to Android and was wondering if it was even possible.
Knowing that Android runs on 2.6.25 kernel, I thought that maybe it was possible.
I recently purchased a G1, successfully rooted it, and now am looking for ways to port linux apps to Android.
Is there a way to build apps from source code on Android, using the build tools provided with desktop distros? (I am using Ubuntu atm).
Anybody want to share some lights on this?
I'll keep you posted if I find anything intresting...
XDA ROCKS!!!
I'm looking into this myself, especially with respect to vlc, mplayer, and some console emulators...all of which have been compiled for ARM before, most successfully on the GP2X handheld.
Cross-compiling apps on an Ubuntu system is possible, but I'm not sure how well compiled apps will work with the Android framebuffer. There's also no x-windows system, so you know graphical apps that need it won't cut it at all.
Let us know what you find out.
Found this: Debian on Android
Hey i found this, Thought it might be intresting to look into this.
Debian & Android Together on G1
It's a guide to have Debian running alongside android, at least for what I understand...
I haven't tried yet since I have rooted rc8 and it's written for rc29/Mrc30, but that seems like a good solution.
Would be nice to be able to compile on android rather than on eclipse on ubuntu...
I've got no programming knowledge, that's why I'm looking for a solution allowing to compile directly on android...
"There's also no x-windows system, so you know graphical apps that need it won't cut it at all."
I was thinking as an experience to compile aircrack-ng, and it has no gui... The hardware might not support it but tha g1 might be able to handle it.
Yeah I wanted to compile the No-IP app for the phone so I could know what the IP address of my phone was on Tmo's network. That way I could run a webserver on my phone (apache anyone?). Does Tmo have firewalls in place to prevent this type of thing?
efbenson said:
Yeah I wanted to compile the No-IP app for the phone so I could know what the IP address of my phone was on Tmo's network. That way I could run a webserver on my phone (apache anyone?). Does Tmo have firewalls in place to prevent this type of thing?
Click to expand...
Click to collapse
enable telnetd from terminal and see if you can telnet from your computer to it via 3G (i.e. your wireless computer ---> G1)
My G1's edge ip is 25.97.51.2XX tried to telnet in, host unreachable. Did a traceroute from both my web server and home computer, both showed that the 3rd hop and all hops after that did not respond, and as expected ICMP echo (ping) sent to the phone timed out. Therefor we can i think say that T-mobile was not dumb and put a firewall up as any network administrator would. Gonna double check the IP of my G1 and i'll get back if it figure out my ip is different or something.
EDIT: pinged my router this time, got the IP 208.54.4.61, still same story times out and my G1 died so im going to reboot it and plug it in to try again.
well i'm sure t-mobile was wiser on that end, but did you try telnetting on port 80? also if you were to get a webserver running on your g1, you could always just use a non-standard port (81?) and just use a service like dyndns to control the port redirect, since i'm assuming they're already managing the dyndns updates.
rak500 said:
Hey i found this, Thought it might be intresting to look into this.
Debian & Android Together on G1
It's a guide to have Debian running alongside android, at least for what I understand...
I haven't tried yet since I have rooted rc8 and it's written for rc29/Mrc30, but that seems like a good solution.
Click to expand...
Click to collapse
I actually just got Deb working alongside Android (not terribly difficult but I did have some wonky-ness getting ext2.ko insmodded).
Having RC30 on my phone makes me really miss ADP1
deprecate said:
I actually just got Deb working alongside Android (not terribly difficult but I did have some wonky-ness getting ext2.ko insmodded).
Having RC30 on my phone makes me really miss ADP1
Click to expand...
Click to collapse
If you have JF 1.3+ you don't need to insmod ext2.ko. Just type "busybox insmod ext2".
deprecate said:
I actually just got Deb working alongside Android (not terribly difficult but I did have some wonky-ness getting ext2.ko insmodded).
Having RC30 on my phone makes me really miss ADP1
Click to expand...
Click to collapse
Do you think I can have it working on my rooted UK RC8?
I want to try it but it seems the configuration are slightly different for RC19 and RC29 according to the tutorial, so I thought it might be different on RC8 too.
I tried the web server in the market, didn't seem to work on edge
I'm not quite sure but I believe that T-mobile's VPN add-on might provide an externally accessible IP.
does anyone know if you can compile samba for the g1 ?
I've never dealt with linux on anything besides x86 and x64, so forgive me if this is stupid, but what about running gentoo on the G1 here? Seems to me that portage for ARM might be a little bit better for the G1 than the Debian repositories.
Although, NONE of us will be excited about having our G1 churning away for hours/days just to get Xorg compiled, as well as the headaches associated with installing and configuring gentoo.
I'm sure someone's thought of this, and Debian is pretty great anyway, just thought I'd put this out there.
kash04 said:
does anyone know if you can compile samba for the g1 ?
Click to expand...
Click to collapse
I am using Samba by way of Debian. So, yeah, it's possible.
DDM123 said:
I've never dealt with linux on anything besides x86 and x64, so forgive me if this is stupid, but what about running gentoo on the G1 here? Seems to me that portage for ARM might be a little bit better for the G1 than the Debian repositories.
Although, NONE of us will be excited about having our G1 churning away for hours/days just to get Xorg compiled, as well as the headaches associated with installing and configuring gentoo.
I'm sure someone's thought of this, and Debian is pretty great anyway, just thought I'd put this out there.
Click to expand...
Click to collapse
It's not stupid. If it works for you and is to your liking, go for it. It is debatable, however, whether portage (as good as it is) is any better for the G1 than Debian's packaging system. Packages compiled for the ARM architecture are already optimized for ARM processors. There wouldn't be as much self-compiling gain in this architecture as there would be optimizing between i386, i686, amd-64, etc. You'd be doing a lot of work and wasting a lot of time having portage compile your apps...and you'd have very little pluses to show for it.
Oh ok, I just thought that many apps were being compiled manually and portage might make some of that easier. I figured there wouldn't be any speed gains over Debian or other binary-based distros, and the barebones installation of gentoo is absolute hell, but I hoped it might get us into full-blown X quicker somehow.
It could definitely work with Portage. Keep in mind, though, that apt-get under Debian *can* download and build the source into a package automatically as well.
Web Server on TMO
Hey guys,
I'm new on XDA, getting my galaxy S tomorrow, I was a nokia fan up untill maemo 5 and the N900...
Anyway, one thing to remember is - Cellular Operators usually manage their own IP address pools, they don't give "Real" IP addresses to cellular phone, but rather use NAT services and all sort of nasty hacks to the IP system.
Therefore, in order for port 80 (http web server) to work on your server, it's not enough to just run it and get the IP, you also need the provider/operator to forward TCP packets coming to your External IP on port 80 to be forwarded to your internal IP > to your phone.
This, will never happen. If it will, you will get charged heavily for this as it will increase traffic and allow upstream traffic to your phone, and also risk your phone to potential hackers.
Edit : And I just noticed I resurrected an almost 2 years old thread Oopsy.
efbenson said:
Yeah I wanted to compile the No-IP app for the phone so I could know what the IP address of my phone was on Tmo's network. That way I could run a webserver on my phone (apache anyone?). Does Tmo have firewalls in place to prevent this type of thing?
Click to expand...
Click to collapse
get dyndns account there is an app on the market that will sync it.

Hardware Key VPN

I've tried to search around to see if any apps are being developed in this area. In specific we use Checkpoint VPN-1 to connect to work, which uses a hardware key token as authentication. I'm not sure if this protocol is fairly standard and therefore a generic app could be used? Or if it has to be made specially.
I know they have a windows mobile application here: http://www.checkpoint.com/downloads/quicklinks/downloads_sr.html#scmobile
I'm sure porting it would be no easy straight-forward task, but if it is I hope to try once I receive my G1.
If something like this exists already please post too!
It looks like using debian on the G1 will allow a vpn connection, is there anything else to know about using a hardware key like this one? Sounds very promising...
I also need a VPN client on Android
I install vpnc on debian,but that doesn't make sense
at least there should be a proxy setting for all the applications
Found this as well:
http://forum.xda-developers.com/showthread.php?t=447230
Using openVPN and stunnel
Unfortunately for me, I don't think I can use static config settings as the connection password continually changes and is supplied by the hardware key.
Bump,
Any other ideas on using hardware tokens with the G1?
Guess it's a slim hope, but checking back to see if anyone knows of any solutions for me here. Just got my G1 and looking for a way onto my work network from it.
You know when you're being worked to death when you're so busy that you need to be able to VPN into your work computer from your phone. Tell your boss he can wait until you get home when you aren't at work!
Haha! Thanks for the tip! Unfortunately I'm on call...laptops and other computers work fine, but having access right on the cell would be amazing and convenient
I've been playing with the other solutions, but still not working for me, VPN-1 isn't the most compatible thing in the world...even no support for vista x64 (virtual machines to the rescue!)
Anyway, keep up the good work on development guys. Through just the sticky posts I've been able to unlock, register, root and install JF33 all within a couple hours and without a t-mobile sim. Phone was brand new right out of the box.

WORKING: Infrastructure Mode AP!

Hello All,
I have gotten infrastructure mode working on my EVO. I compiled support for the SIOCSIWPRIV AP_PROFILE_SET system call into iwconfig and lo and behold:
After unloading and reloading the _ap.bin firmware using insmod while wifi-tether is running I issue the following command:
Command: # ./ultraiwconfig eth0 mode master
Response in kernel log:
Code:
<4>[19452.040679] penguin, get AP_PROFILE_SET
<4>[19452.041076] wl_iw: set ap profile:
<4>[19452.041442] ssid = AndrewsAndroidAP
<4>[19452.042144] security = wpa-psk
<4>[19452.042510] key = 1234567890
<4>[19452.042877] channel = 0
<4>[19452.043243] max scb = 2
<4>[19454.110931] Set auto channel = 1
<4>[19454.112182] wl_iw_setap: do passhash...
<4>[19454.210723] [00]: aa2f2f2c
<4>[19454.210845] [01]: f4081ab1
<4>[19454.211059] [02]: ccc1d613
<4>[19454.211181] [03]: 887fd525
<4>[19454.211273] [04]: b51d0c01
<4>[19454.211395] [05]: 781b89b1
<4>[19454.211608] [06]: b5de9c57
<4>[19454.211730] [07]: 2f8812e2
<4>[19454.211853] wl_iw_setap: passphase = 2c2f2faab11a08f413d6c1cc25d57f88010c1db5b1891b78579cdeb5e212882f
<4>[19454.222106] ap setup done
<4>[19454.224487] send AP_UP
And proceed to assign IP information and bring the interface up.
The interface then appears on my Windows 7 laptop in infrastructure mode fully supporting wpa.
I will be working with Harald in the coming days to integrate this functionality into android-wifi-tether!
That is the shiz. Exellent work and I am sure it will be appreciated!
that's awesome. wow. nexus support?
iammuze said:
that's awesome. wow. nexus support?
Click to expand...
Click to collapse
Very likely, can you give me a quick summary of the state of nexus hotspotability? How does the native froyo app work on it?
NICE! this would be the first phone to do this right. Good option, dont really like the computer to computer mode. Thanks
Can't believe I don't know this but this would make wifi-tether look like a real WAP instead of ad-hoc?
spurnout said:
Can't believe I don't know this but this would make wifi-tether look like a real WAP instead of ad-hoc?
Click to expand...
Click to collapse
Yea this sums it up right
spurnout said:
Can't believe I don't know this but this would make wifi-tether look like a real WAP instead of ad-hoc?
Click to expand...
Click to collapse
yes
[10char]
Great news! Thanks for your hard work!
great contribution
andrew500 said:
I compiled support for the SIOCSIWPRIV AP_PROFILE_SET system call into iwconfig
Click to expand...
Click to collapse
So, if you compiled in support for it, than how did it work before? Wouldn't the Sprint Hotspot app have to use the same system calls?
I guess I would not put it past them to write a custom one that does some account checks before hand to make sure people are paying for the service...
blakejohnson86 said:
So, if you compiled in support for it, than how did it work before? Wouldn't the Sprint Hotspot app have to use the same system calls?
I guess I would not put it past them to write a custom one that does some account checks before hand to make sure people are paying for the service...
Click to expand...
Click to collapse
They did not use iwconfig to setup their hotspot! I'm actually curious as to how they did do it. From what I can deduce they've created something in android.net.hotspot and just do java-based calls to that class. com.htc.WifiRouter is the name of the task that manages it.
I come from the world of linux so I'm just starting to see how the Android API fits into the picture, but I'm going to assume that's how they can make the system-calls needed to pull this off.
I'm using the same system calls, just I compiled them (because they are undocumented!) into iwconfig.
I'm going to guess this is how they manage to ensure you pay your bill, and will with FroYo, they hook into the interface that lets the applications make the system calls and as a result they are the gatekeeper.
Sprint changes your apn information btw, when you use their app, to ensure you pay for it. You're basically authenticating under a different 3g username.
andrew500 said:
I have gotten infrastructure mode working on my EVO. I compiled support for the SIOCSIWPRIV AP_PROFILE_SET system call into iwconfig and lo and behold:
After unloading and reloading the _ap.bin firmware using insmod while wifi-tether is running I issue the following command:
Command: # ./ultraiwconfig eth0 mode master
Click to expand...
Click to collapse
would it be possible you could post the binary for your custom configurated iwconfig?
it'd be great for the advanced users (hence the dev section) to get access to your amazing work.
thanks for this discovery and hard work to bring it about!
to clarify steps, start wifi tether, unload, reload _ap.bin firmware with insmod, start iwconfig wtih ./ultraiwconfig eth0 mode master, assign ip information and bring up the interface.
did i catch everything? thanks again!
Omfg I have been waiting on this for ever thank you
This was the only thing that made me want the hotbot app now I can tether my June and download music from the market place anywhere and regress my drm
-------------------------------------
Sent via the XDA Tapatalk App
Awesome work. I was wondering when you were going to get this working I knew that ad-hoc wasn't not good enough from your perspective.
Thanks for the great work!!
Right on! Looking forward to this being integrated into Harold's Wireless Tether!
would it be easy/possible to change the security to WPA2-AES?
joeykrim said:
would it be possible you could post the binary for your custom configurated iwconfig?
it'd be great for the advanced users (hence the dev section) to get access to your amazing work.
thanks for this discovery and hard work to bring it about!
to clarify steps, start wifi tether, unload, reload _ap.bin firmware with insmod, start iwconfig wtih ./ultraiwconfig eth0 mode master, assign ip information and bring up the interface.
did i catch everything? thanks again!
Click to expand...
Click to collapse
Here you go dude, it's rough.
I will not answer questions on this binary. It's a hack for sure. Here are my notes on it:
Turn off WiFi (not necessary, just being consistant)
Start WiFi Tether and start tethering
Issue the following commands:
rmmod bcm4329
insmod /system/lib/modules/bcm4329.ko firmware_path=/etc/firmware/fw_bcm4329_ap.bin
./ultraiwconfig eth0 mode master
ifconfig eth0 192.168.2.254 netmask 255.255.255.0
ifconfig eth0 up
You should have a fully functional wifi hotspot! I understand some of those commands are redundant but I haven't worked on them yet. The ultraiwconfig utility will be cleaned up in the final version, right now it does not take any parameters. Your AP will be called AndrewsAndroidAP and the wpa pass is 0123456789.
andrew500 said:
Here you go dude, it's rough.
I will not answer questions on this binary. It's a hack for sure. Here are my notes on it:
Turn off WiFi (not necessary, just being consistant)
Start WiFi Tether and start tethering
Issue the following commands:
rmmod bcm4329
insmod /system/lib/modules/bcm4329.ko firmware_path=/etc/firmware/fw_bcm4329_ap.bin
./ultraiwconfig eth0 mode master
ifconfig eth0 192.168.2.254 netmask 255.255.255.0
ifconfig eth0 up
You should have a fully functional wifi hotspot! I understand some of those commands are redundant but I haven't worked on them yet. The ultraiwconfig utility will be cleaned up in the final version, right now it does not take any parameters. Your AP will be called AndrewsAndroidAP and the wpa pass is 0123456789.
Click to expand...
Click to collapse
been following your posts on the progress, so it all makes sense. just was missing the actual binary you tweaked. thanks, it looks good!
getting a permission denied error on
./ultraiwconfig eth0 mode master
i guess it doesn't work on unrevoked rooted phones

Feature Request PPTP

Would one of the Dev's be willing to tackle getting VPN PPTP with encryption (mppe 128 or 256) working on the G-Tab? Right now it is either not working or working as unsecured PPTP (depending on the ROM). If anyone knows of a ROM where this is functional please let me know.
What little I have found on the history of VPN in android indicates that the last version with encrypted PPTP was version 1.6. Google was having problems keeping a connection to the VPN server.
Reference: http://code.google.com/p/android/issues/detail?id=4706
For myself and my coworkers this has become an important need. If we can't get the feature we may be forced to get iPads (*cringe*). I for one am willing to make donations to Dev(s) who can add this. Some ROMs have the option but seem to be lacking the module (unconfirmed) to handle encryption through the included PPPD.
It is possible this may come back in Android 3.0 since it is geared toward tablets but I haven't been able to find any information either way.
Thank you for your time.
Newanzer said:
Would one of the Dev's be willing to tackle getting VPN PPTP with encryption (mppe 128 or 256) working on the G-Tab? Right now it is either not working or working as unsecured PPTP (depending on the ROM). If anyone knows of a ROM where this is functional please let me know.
What little I have found on the history of VPN in android indicates that the last version with encrypted PPTP was version 1.6. Google was having problems keeping a connection to the VPN server.
Reference: http://code.google.com/p/android/issues/detail?id=4706
For myself and my coworkers this has become an important need. If we can't get the feature we may be forced to get iPads (*cringe*). I for one am willing to make donations to Dev(s) who can add this. Some ROMs have the option but seem to be lacking the module (unconfirmed) to handle encryption through the included PPPD.
It is possible this may come back in Android 3.0 since it is geared toward tablets but I haven't been able to find any information either way.
Thank you for your time.
Click to expand...
Click to collapse
Did you try one of clemsyn's latest kernels - they have the tun support. Also on market place there is an OpenVPN app that attempts to install an openvpn binary - that same dev also has an OpenVPN settings app that you can use to create your tunnel. Perhaps that will work for you.
prscott1 said:
Did you try one of clemsyn's latest kernels - they have the tun support. Also on market place there is an OpenVPN app that attempts to install an openvpn binary - that same dev also has an OpenVPN settings app that you can use to create your tunnel. Perhaps that will work for you.
Click to expand...
Click to collapse
I can currently get a VPN connection, but the server refuses it because it isn't encrypted - even with the encryption option on. I'll try clemsyn's kernel. I noticed he posted one specific to the ZTab ROM recently.
Newanzer said:
I can currently get a VPN connection, but the server refuses it because it isn't encrypted - even with the encryption option on. I'll try clemsyn's kernel. I noticed he posted one specific to the ZTab ROM recently.
Click to expand...
Click to collapse
PLEASE keep us updated. This is also essential to my job and I want to use android! GTab in particular.
jmdearras said:
PLEASE keep us updated. This is also essential to my job and I want to use android! GTab in particular.
Click to expand...
Click to collapse
No luck. Tried the new kernel and still get the same error. G-Tab shows connection lost. Server log shows same error (port 47 blocked or unable to negotiate encryption). Since our laptops all work I'm going to assume port 47 isn't blocked on our network. Maybe not enabled on G-Tab?
Which ROM are you using?
EDIT: nevermind - I see zpad rom. Did you try the vegan rom or tnt rom?
I am setting up a server with two cards and windows server 8 and an accesible ip just as test lab for this. If any dev wants access pm me.
Sent from my DROIDX using XDA App
Newanzer said:
Would one of the Dev's be willing to tackle getting VPN PPTP with encryption (mppe 128 or 256) working on the G-Tab? Right now it is either not working or working as unsecured PPTP (depending on the ROM). If anyone knows of a ROM where this is functional please let me know.
What little I have found on the history of VPN in android indicates that the last version with encrypted PPTP was version 1.6. Google was having problems keeping a connection to the VPN server.
Reference: http://code.google.com/p/android/issues/detail?id=4706
For myself and my coworkers this has become an important need. If we can't get the feature we may be forced to get iPads (*cringe*). I for one am willing to make donations to Dev(s) who can add this. Some ROMs have the option but seem to be lacking the module (unconfirmed) to handle encryption through the included PPPD.
It is possible this may come back in Android 3.0 since it is geared toward tablets but I haven't been able to find any information either way.
Thank you for your time.
Click to expand...
Click to collapse
Try this, I enabled everything re: PPP in this kernel including PPTP and also enable MPPE (Microsoft PPP Encryption). I hope this helps. BTW, this MPPE is experimental in the kernel but I hope it works for you.
clemsyn said:
Try this, I enabled everything re: PPP in this kernel including PPTP and also enable MPPE (Microsoft PPP Encryption). I hope this helps. BTW, this MPPE is experimental in the kernel but I hope it works for you.
Click to expand...
Click to collapse
Brillant! I have a connection! From home even. Many Thanks! (but I can only hit the button once...)
I'll keep an eye on it and see how long the connection lasts. That seemed to be the bug that killed Google's interest in this. With luck it wont show because someone tweaked over it.
I'll spread the word. Thanks again!!
Update: Unfortunately the data traffic stops within a minute. The connection stays up and reports a server connection just no data passes. This is the same issue as Google has in it's bug report. I"ll look at the server logs in the morning to see if anything is reported, but it is at least a step in the right direction.
BTW: The GUI seems a bit faster. Were there any other tweaks in that kernel?
Newanzer said:
Brillant! I have a connection! From home even. Many Thanks! (but I can only hit the button once...)
I'll keep an eye on it and see how long the connection lasts. That seemed to be the bug that killed Google's interest in this. With luck it wont show because someone tweaked over it.
I'll spread the word. Thanks again!!
Update: Unfortunately the data traffic stops within a minute. The connection stays up and reports a server connection just no data passes. This is the same issue as Google has in it's bug report. I"ll look at the server logs in the morning to see if anything is reported, but it is at least a step in the right direction.
BTW: The GUI seems a bit faster. Were there any other tweaks in that kernel?
Click to expand...
Click to collapse
There is a cryto sha 256 or 512. Lmk which to enable
clemsyn said:
Try this, I enabled everything re: PPP in this kernel including PPTP and also enable MPPE (Microsoft PPP Encryption). I hope this helps. BTW, this MPPE is experimental in the kernel but I hope it works for you.
Click to expand...
Click to collapse
This is awesome - and just what I was looking for! Any chance you could post the Vegan version as well? Thanks so much!
Hi Clemsy,
Thanks again for all the great work you're doing. If you could also do this for vegantab it would be greatly appreciated.
Cheers
Jonesie
How do I install this file?
Jonesie18 said:
Hi Clemsy,
Thanks again for all the great work you're doing. If you could also do this for vegantab it would be greatly appreciated.
Cheers
Jonesie
Click to expand...
Click to collapse
I might have to take a pause on this since I'm having issues with my Gtab at the moment. My screen turned white and I can't see a thing. I was playing angry birds and noticed that my screen sensitivity turned bad and a few seconds later it turned all white. I might have to get a replacement for my Gtab
I can build the kernel for Vegan tab but there is no way for me to test it but it should work fine
I read a post that doing this might fix it:
Add the following to /etc/pptpd.conf
mru 1280
mtu 1280
Please try and see how it goes.
More Info
I had our network admin look at the VPN server logs for my connection. No errors or warning from the server.
One interesting thing to note, it seems that when the data transfer between the tab and the VPN server stops it's only one way. I was able to send mail out from the tab, but not receive mail or view web pages. I'm wondering if the decryption side (incoming to tab) of MPPe is broken. That could explain why the server keeps a connection, but the data flow seems to stop.
Could we steel code from a linux kernel that works?
clemsyn said:
I read a post that doing this might fix it:
Add the following to /etc/pptpd.conf
mru 1280
mtu 1280
Please try and see how it goes.
Click to expand...
Click to collapse
I don't have a pptpd.conf in /etc. What is the file syntax? I'll make one and copy it in. I'm assuming this is ./etc and not ./system/etc.
Edit: Never mind found info here: http://www.linux.org.au/~quozl/pptp/pptpd.conf.5.html
Edit Edit: Ok I think I have reached the level of my ignorance. How do you get a file copied to /etc? I have tried a file manager with SU permissions, and a terminal with SU permissions. In both cases I am getting a permission denied error. What's the secret?
Newanzer said:
I don't have a pptpd.conf in /etc. What is the file syntax? I'll make one and copy it in. I'm assuming this is ./etc and not ./system/etc.
Edit: Never mind found info here: http://www.linux.org.au/~quozl/pptp/pptpd.conf.5.html
Edit Edit: Ok I think I have reached the level of my ignorance. How do you get a file copied to /etc? I have tried a file manager with SU permissions, and a terminal with SU permissions. In both cases I am getting a permission denied error. What's the secret?
Click to expand...
Click to collapse
Upload the file and ill make a zip file for you to flash it.
So close ... I think Google may need to work out a few of their bugs first.
First off a big thanks to clemsyn for the hard work. (I used Root Explorer to copy the file pptp.conf)
Using the latest kernel posted here for VeganTab I was able to connect to a MS PPTP VPN and ping for a long while however just like my Samsung Vibrant the VPN appears to die once a burst of traffic is shot through the tunnel. The tunnel I have discovered is not disconnected but unusable through the Android system. If I disconnect the VPN session remotely the log files indicate that the remote server killed the connection. Not sure much can be done as now I feel I am hampered by Google's inability to care for VPN access. I am sure the developers here can figure this out but why should they have to figure this out when it seems to be a fundamental issue with Google's code. Maybe this disconnection does not happen with OpenVPN? Anybody use it? I am tempted to setup a test OpenVPN server just to see how long I can keep my connection.
BTW ... After remotely killing the VPN connection the VPN services crashes and throws up an exception in the back ground when terminating the service.
Not working. I might try without the encryption in the server side to check if that works. It actually connects (pings) a couple of seconds with the LAN computers... then it nevers connects again... even with reboots. Does the pptpd.conf only need those two lines?
I found this site which may help
http://code.google.com/p/android/issues/detail?id=6402
A user stated this:
"Hey! Saw another post elswhere in the forum. For Microsoft VPN using PPTP, I think it helps to disable Software Compression in Routing and Remote Access Manager on the Windows server hosting VPN. After I did that, I was able to connect to VPN.
In Routing and Remote Access Manager, right click on the server in the tree and select Properties. Then, under the PPP tab, uncheck Software Compression. I am the Sys Admin at my Co, so I was able to do this myself. Others may have to submit a request to your respective Sys Admins. Besides, who uses compression on VPN's since the death of Dial-up?
Good Luck!"

[Q]

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

Categories

Resources