I have been having trouble connecting to my work VPN with the G-Tablet. I have since tried going to ZPad 3.0 in hopes this would fix the issue. However, no luck. The VPN server is reporting an event error of 20209.
After a few hours of looking on other forums it turns out this have been an issue since Android 2.1. They have either intentionally left out the encryption module from PPPD or it was forgotten in the build. The 'fix' is to copy the PPPD file from a version prior to 2.1 (Android 1.5?) and save it to the System/xbin directory. However there is an argument over if should go into system/bin for 2.2.
Does anyone have more information on this - or better yet a fix/update? Any help on this would be appreciated.
which ROm are you using
stock ROM doesn't have VPN at all.
justauser said:
stock ROM doesn't have VPN at all.
Click to expand...
Click to collapse
I'm using ZPAD 3.0 ROM at the moment.
I have narrowed it down to a problem with the MPPE 128 encryption. I have found a PPPD that is supposed to fix the problem (see link below), but I don't now how to get it to the system directory. How do you mount system as R/W?
Alternate PPPD:
H***://melko.hiljanen.com/~qvr/android/ppp/
Root explorer will allow you to mount it that way
Sent from my DROIDX using Tapatalk
Let me know how it goes... I have been trying to connect my gtab but I thought I was the only person interested!
Sent from my DROIDX using XDA App
vectorcharlie said:
Let me know how it goes... I have been trying to connect my gtab but I thought I was the only person interested!
Sent from my DROIDX using XDA App
Click to expand...
Click to collapse
Ditto!!!!!!!!
Tried your link, getting the same error I've seen in the past:
Code:
pppd: This system lacks kernel support for PPP. This could be because
the PPP kernel module could not be loaded, or because PPP was not
included in the kernel configuration. If PPP was included as a
module, try `/sbin/modprobe -v ppp'. If that fails, check that
ppp.o exists in /lib/modules/`uname -r`/net.
See README.linux file in the ppp distribution for more details.
I think(?) we need a customized kernel with ppp. So far, we have NTFS and CIFS support that's been added by some of the devs, here.
vectorcharlie said:
Let me know how it goes... I have been trying to connect my gtab but I thought I was the only person interested!
Sent from my DROIDX using XDA App
Click to expand...
Click to collapse
No luck. The PPPD file didn't make a difference. I guess I should not have been surprised. The L2TP connections are supposed to work so I may try that tomorrow - if I can convince the network admin to make the changes on the vpn server.
The lastest info I have been able to collect on this issue is that it has been known at google since 2.0 was released. They were having a problem keeping a connection using MPPE 128 over PPTP so instead of releasing something that did not work right, they removed support for it until a later date. Said date has not been determined.
I will keep you posted as I find out more.
roebeet said:
Tried your link, getting the same error I've seen in the past:
Code:
pppd: This system lacks kernel support for PPP. This could be because
the PPP kernel module could not be loaded, or because PPP was not
included in the kernel configuration. If PPP was included as a
module, try `/sbin/modprobe -v ppp'. If that fails, check that
ppp.o exists in /lib/modules/`uname -r`/net.
See README.linux file in the ppp distribution for more details.
I think(?) we need a customized kernel with ppp. So far, we have NTFS and CIFS support that's been added by some of the devs, here.
Click to expand...
Click to collapse
I came across this too. Since the ppp directory exists under system/etc I have made the assumption that there is support for it (at least under ztab 3.0). In order to check using the method above we would need a terminal app or some other way to run the commands. If there is a way to do it natively I am too new to know.
Any devs willing to tackle this issue?
Newanzer said:
No luck. The PPPD file didn't make a difference. I guess I should not have been surprised. The L2TP connections are supposed to work so I may try that tomorrow - if I can convince the network admin to make the changes on the vpn server.
...
I will keep you posted as I find out more.
Click to expand...
Click to collapse
No luck. The Net Admin decided it would be too much work just for a tablet test (and his iPAD VPN work just fine thank you). Anyone willing to try a L2TP test?
I have tried L2TP in Vegan with no success. used my android phone to verify settings and it works fine from there.
nephelim said:
I have tried L2TP in Vegan with no success. used my android phone to verify settings and it works fine from there.
Click to expand...
Click to collapse
Ok so that is 2 ROMs down:
TNT Stock - No option
Vegan - Not functional
Just need TNT light and Zpad Clean v3.0 tested. I'm suspecting that it will be no for both. This is starting to creep higher on my list of needs. Does anyone know of a ROM VPN works in?
I confirm that the advent vega rom has the same problem.
Unable to use vpn.
Newanzer said:
Ok so that is 2 ROMs down:
TNT Stock - No option
Vegan - Not functional
Just need TNT light and Zpad Clean v3.0 tested. I'm suspecting that it will be no for both. This is starting to creep higher on my list of needs. Does anyone know of a ROM VPN works in?
Click to expand...
Click to collapse
Do you need tun.ko/kernel support for this stuff? Clemsyn compiled that into one of his kernels - check his thread in the Development forum out, and give that kernel a try with the Vegan ROM, that might get you closer.
rcgabriel said:
Do you need tun.ko/kernel support for this stuff? Clemsyn compiled that into one of his kernels - check his thread in the Development forum out, and give that kernel a try with the Vegan ROM, that might get you closer.
Click to expand...
Click to collapse
That could be worth the check. I would like to see a list of exactly what his kernel supports before I try though.
[EDIT]: Checked change log. VPN module in kernel not mentioned.
Looking over the list of known issues at Google, this problem has been known for a while. The fact that Google hasn't addressed it worries me a bit. It is possible that since phones are the largest part of their OS client, VPN isn't a high priority. They may be waiting for the open source community to solve their problem for them.
Was able to get VPN working
YOU WILL NEED TO HAVE ROOT AND BUSYBOX INSTALLED. PLEASE MAKE A BACKUP IN CASE SOMETHING GOES WRONG.
1st you will need the new kernel found at the below address.
http://forum.xda-developers.com/showthread.php?t=903505
2nd you will need to insert the tun.ko included in with the kernel into /system/lib/modules/2.6.32.27-cyanogenmod folder on the tablet using root explorer.
3rd you will need to install the latest version of vpn from
http://code.google.com/p/get-a-robot-vpnc/downloads/list
4th install a terminal emulator and then you will need type the following commands
su (press enter)
cd /system/lib/modules/2.6.32.27-cyanogenmod (press enter)
insmod tun.ko (press enter)
You should now be able to connect on VPN.
there is very easy installation get and run vpn frome purevpn........
brainyjd said:
YOU WILL NEED TO HAVE ROOT AND BUSYBOX INSTALLED. PLEASE MAKE A BACKUP IN CASE SOMETHING GOES WRONG.
1st you will need the new kernel found at the below address.
http://forum.xda-developers.com/showthread.php?t=903505
2nd you will need to insert the tun.ko included in with the kernel into /system/lib/modules/2.6.32.27-cyanogenmod folder on the tablet using root explorer.
3rd you will need to install the latest version of vpn from
http://code.google.com/p/get-a-robot-vpnc/downloads/list
4th install a terminal emulator and then you will need type the following commands
su (press enter)
cd /system/lib/modules/2.6.32.27-cyanogenmod (press enter)
insmod tun.ko (press enter)
You should now be able to connect on VPN.
Click to expand...
Click to collapse
Sorry for asking this noob question, but is this VPN fix only for Cyanogenmod, or will work with others, such as TnT Lite?
I'm running TnT lite and there no's VPN setup option.
tnt is missing the vpn shortcut
use VPN Show
Kazuyuki Eguchi/Tools
found in android market to access the vpn menu
i have used with sucess on most roms open vpn and open vpn settings
with out problems just by install them and setting it to auto run at start
with install to xbin and create a folder on internal sd "openvpn"
then place a vpn.conf file there
then connect this cause an error but causes super user to give it root rights
after that all my vpn,s work with out going near openvpn
purevpn said:
there is very easy installation get and run vpn frome purevpn........
Click to expand...
Click to collapse
Please elaborate...
Thanks!
Related
Thanks again to all the Devs that have made our tablet usable. As you know, docks are being imported (I believe you will have one soon) and apparently only the zpad rom supports the ethernet port. Are you going to be able to get this support into the TnT and other custom Roms?
Thanks
insight3fl said:
Thanks again to all the Devs that have made our tablet usable. As you know, docks are being imported (I believe you will have one soon) and apparently only the zpad rom supports the ethernet port. Are you going to be able to get this support into the TnT and other custom Roms?
Thanks
Click to expand...
Click to collapse
I am planning on working on it. There is no doubt it should be possible to get it working, just a question how hard.
rothnic said:
I am planning on working on it. There is no doubt it should be possible to get it working, just a question how hard.
Click to expand...
Click to collapse
Of course, we don't doubt your ability
I'm assuming the docks made it ok?
it2steve said:
Of course, we don't doubt your ability
I'm assuming the docks made it ok?
Click to expand...
Click to collapse
Haven't gotten it (yet). Snow probably slowed things down, I expect.
I came home to find the stand at my door. USB works fine with the power adapter and it is slightly weighted to help itself stay still.
Haven't tried to use HDMI. Ethernet would be good for the network folks who want to eventually want to sniff traffic and other such stuff. So +1
Typed this out on a keyboard plugged into the usb of the stand, so handy to just doc and have a keyboard. I am on TNT 2.4 so no mouse
I couldn't get Ethernet to work reliably without a conf change (DNS was borked). I added a fix in 3.1.3 that should correct it, at least as per my tests so far.
HDMI and USB seem to work A-OK OOTB.
roebeet said:
I couldn't get Ethernet to work reliably without a conf change (DNS was borked). I added a fix in 3.1.3 that should correct it, at least as per my tests so far.
HDMI and USB seem to work A-OK OOTB.
Click to expand...
Click to collapse
roebeet,
For those of us who are running stock, what was the conf change that you needed to do for DNS (assume root and terminal are available)?
Thanks!
Jim
The problematic file is this one:
/system/etc/dhcpcd/dhcpcd.conf
You just need to add this entry, to it:
Code:
interface eth0
# dhcpcd-run-hooks uses these options.
option subnet_mask, routers, domain_name_servers
This seems to tell the device how to assign DNS servers to the interface. This is in TnT Lite 3.1.3+ and also VEGAN b5+.
roebeet said:
The problematic file is this one:
/system/etc/dhcpcd/dhcpcd.conf
You just need to add this entry, to it:
Code:
interface eth0
# dhcpcd-run-hooks uses these options.
option subnet_mask, routers, domain_name_servers
This seems to tell the device how to assign DNS servers to the interface. This is in TnT Lite 3.1.3+ and also VEGAN b5+.
Click to expand...
Click to collapse
I can see this file using z4root, but what app do I use for editing it?
Still running stock rom at this point.
*N/m, googled it. Thx!
This is for the n00bs (like me) who want to stay with stock rom for a while and need to do this fix for wired ethernet with the malata dock. I needed it because at my job the wireless is turned off due to sensitive client info.
You need to install three apps:
z4root to root your tab
root explorer to copy a file
astro to edit that file
Turn off wireless.
Root your tab using z4root. The temp root wouldn't work for me, I had to do the permanent root to get the option to mount as rw in root explorer. Ymmv.
Navigate to /system/etc/dhcpcd/dhcpcd.conf with root explorer. Copy that file, navigate back to sdcard2 and paste the file onto your microsd card.
Make a backup copy of that original file somewhere, I put my backup in a folder on my netbook.
Open the file on the sdcard2 with astro, choose file editor and add the lines that roebeet posted above. Make sure you type it exactly, including spaces, etc. Save your changes. Exit astro.
Open root explorer again. Copy the edited file on your sdcard2 and navigate back to /system/etc/dhcpcd/dhcpcd.conf
Make sure you've clicked "mount rw" in the upper left corner of root explorer.
Paste the edited file in that directory. It will overwrite the original file. Click "mount ro".
Exit back to classic home (I shut down my tab at this point).
Connect your gtab to the dock, plug your charger into dock and connect your ethernet cable. Boot your gtab while connected to the dock. You may have to reboot once more but this fix works perfectly.
For some reason stock browser didn't pick up the connection but Maxthon and xScope Pro did. Stock browser may have just needed refreshing or something but it was late and I was tired so didn't bother with it.
Hope this helps someone else get it done a little quicker than I did
Metal_in_Silk said:
Open the file on the sdcard2 with astro, choose file editor and add the lines that roebeet posted above. Make sure you type it exactly, including spaces, etc. Save your changes. Exit astro.
Click to expand...
Click to collapse
Why are you exiting Root Explorer and opening Astro?
Just use Root Explorer to navigate to the directory and:
- change the permissions to r/w
- long press on dhcpcd.conf
- select EDIT FILE and make the addiition
- save it and change the permissions back to r/o
- michael
ohhh... just occured to me that maybe there's a 'lite' or free version of Root Explorer that doesn't include the ability to EDIT files!
slsmag said:
Why are you exiting Root Explorer and opening Astro?
Just use Root Explorer to navigate to the directory and:
- change the permissions to r/w
- long press on dhcpcd.conf
- select EDIT FILE and make the addiition
- save it and change the permissions back to r/o
- michael
ohhh... just occured to me that maybe there's a 'lite' or free version of Root Explorer that doesn't include the ability to EDIT files!
Click to expand...
Click to collapse
Yes, using the free version I didn't see an option to edit.
Added note:
If you upgrade to build 4349, you will have to redo this fix for ethernet support. While VS states the upgrade adds dock support, it apparently is not for the Malata dock w/Ethernet.
This seems to work, as checking the connections using the busybox ifconfig command shows an eth0 connection. But both the browser and my Weather Widget Live Wallpaper can't find an internet connection. The Settings page has no way of telling it to use the LAN connection for internet connectivity.
So, it may "work", but it seems to be useless.
All of my browsers work with this fix. I'm posting from work using the dock now.
Weather widget doesn't work tho.
Hi,
I tried this fix on CM7 but it did not work.
Any ideas?
Thanks.
pgonza02 said:
Hi,
I tried this fix on CM7 but it did not work.
Any ideas?
Thanks.
Click to expand...
Click to collapse
Wish I could help but no idea. Different rom, different kernel. Not sure who the dev is for CM7 but I'd try asking him if possible.
I've used it on stock 3588, 4349, and now Roebeet's Brilliant Corners (already included in this rom). Works on all those with all browsers I've tried so far. However, I cannot d/l from market via ethernet tho I can browse and select, apps are d/l as soon as it picks up a wireless connection.
Some apps work perfectly with it and some insist on a wireless connection.
Metal_in_Silk said:
Wish I could help but no idea. Different rom, different kernel. Not sure who the dev is for CM7 but I'd try asking him if possible.
I've used it on stock 3588, 4349, and now Roebeet's Brilliant Corners (already included in this rom). Works on all those with all browsers I've tried so far. However, I cannot d/l from market via ethernet tho I can browse and select, apps are d/l as soon as it picks up a wireless connection.
Some apps work perfectly with it and some insist on a wireless connection.
Click to expand...
Click to collapse
It must be a simple missing setting on the configuration. The file is there and it did not have the ethernet section, it had USB and WiFi.
I'll keep digging.
Thanks.
pgonza02 said:
It must be a simple missing setting on the configuration. The file is there and it did not have the ethernet section, it had USB and WiFi.
I'll keep digging.
Thanks.
Click to expand...
Click to collapse
That's the way the file is on stock rom as well. For some reason VS couldn't fathom anyone ever needing an ethernet connection, apparently.
roebeet said:
I couldn't get Ethernet to work reliably without a conf change (DNS was borked). I added a fix in 3.1.3 that should correct it, at least as per my tests so far.
HDMI and USB seem to work A-OK OOTB.
Click to expand...
Click to collapse
Running Vegan-Tab Gingeredition RC1, and the fix didn't help me, not even after several reboots while it was sitting on the dock.
UPDATE
I will keep updating issues about Webtop on my website. I won't copy those analysis or finding to here to reduce redundancy and effort....
Demo Video
What is this about?
In short, you can use this to activate Webtop mode and see the virtual pad on the phone with an HDMI cable only.
In long, this is a runtime MOD that can simulate the docking event of the HD dock so that the virtual pad will come up. Together with the hw.whisper trick, the Webtop option can then show up and being selected.
This mean if you set the hw.whisper manually, you could still see the Webtop option. Be sure to set this using root before plugging in the HDMI cable.
To make this ease of use and able to simulate the docking event, an APP has been written to do the runtime MOD for you.
This app requires ROOT privilege.
Why is it called Nebtop?
Well, everything needs a name.
HDMI Cable \ + Nebtop -> \Nebtop -> Webtop
For sure, the phone must have webtop built-in for this to work.
What is the difference of this MOD comparing to the existing system apk MOD?
Fenny's MOD was the first that allows exactly the same result for various Moto phones. That was the first important foundation for further improvement.
The runtime MOD done by Nebtop has the advantage of not changing anything persistently. So in the worst scenario the kernel will panic and cause reboot only.
Also, this MOD is trying to be universal, for different phones and ROMs that supports Webtop. Even it failed for kernel compatibility issues, if it can be done, it will be done.
Tested device
Razr (Tested by me)
Atrix, Atrix 2
Photon
Bionic
Droid 4
Feel free to try it on your Webtop workable device with an HDMI cable! As the least request, please report whether it works for you and what phone and ROM you're using so that I could keep this MOD by APP improved.
Download it here: https://sites.google.com/site/androidnothize/nebtop
Or search Nebtop in Market.
Enjoy!
If you think that it helps you and would like to support my work, you could always find the latest version from market which is a paid version.
Special thanks
Fenny for the first for the Webtop Via HDMI Without a Dock breakthrough.
Turl from the atrix dev team for the hw.whisper trick.
Just tried it out; although I was using the botched CDMA hacked webtop the trackpad display came up but no function; It does show that it is connected to a dock though which is a good step in the right direction.
Do you have the original webtop files available in a zip format to flash through CWM or possibly full ROM for CDMA Verizon?
* reloaded razrx rom; now webtop shows top left only of my screen but still no control from the phone itself
** reset phone; full screen but still no responsive phone pad
*** loaded nitro deodexed; still no response to the phone pad, displays fine but the new display comes up blank as the rest
**** loaded another stock rooted rom 744; no change in phonepad function; phonepad appears and can rotate, extent of function
CDMA Verizon
Kernel 2.6.35.7
EDIT:
Works fantastically on stock outside of the safe strap rom
works like a charm man !!!!! thank you so much !!!!!!!! wow - thanks man
Ooooooooo my ROM is asia version.....
Do you have the logcat -v time files?
Although it's unrelated to the app, I'm interested to know how did it happen and any work around.
400757 said:
Ooooooooo my ROM is asia version.....
Do you have the logcat -v time files?
Although it's unrelated to the app, I'm interested to know how did it happen and any work around.
Click to expand...
Click to collapse
I am also having issues with ADB; I have to see if something isn't wrong with my device
Could you install SSHDroid and use WiFi to ssh to the device?
400757 said:
Could you install SSHDroid and use WiFi to ssh to the device?
Click to expand...
Click to collapse
Yeah I can do that, what files do you need?
Will need the logcat -v time when you loaded Nebtop and see the virtual pad on the phone, that cannot rotate or won't pop keyboard or have no effect when moving.......
Also try those home,back,setting and search keys.
And make sure you have a clean reboot before testing since sometimes webtop can fall into an unstable state as I've tried which will only be cleared after phone reboot.
elitegunslinger said:
Yeah I can do that, what files do you need?
Click to expand...
Click to collapse
Mind to tell which ROM are you using? It's for statistics purpose.
showdown_counts said:
works like a charm man !!!!! thank you so much !!!!!!!! wow - thanks man
Click to expand...
Click to collapse
This works 100% in my Razr runing Artic V1.5 ! Awesome work thanks!
Sent from my XT910 using xda premium
Im using the stock Asia Rom. kernel is 2.6.35.7
400757 said:
Will need the logcat -v time when you loaded Nebtop and see the virtual pad on the phone, that cannot rotate or won't pop keyboard or have no effect when moving.......
Also try those home,back,setting and search keys.
And make sure you have a clean reboot before testing since sometimes webtop can fall into an unstable state as I've tried which will only be cleared after phone reboot.
Click to expand...
Click to collapse
I am unable to generate a log file for you; I even attempted adb shell within a terminal emulator on the phone; [email protected]_spyder:/# basically saying the device is offline, I reset the adb server a couple times and it didn't help.
What works:
Displays the virtual pad and rotates
What doesn't:
The screen becomes unresponsive, the display which mirrors the phones display is blank, and none of the virtual keys work, including the hard keys such as home, back, etc.
I have reset the phone and used multiple roms for CDMA however I can't seem to get it working. I have fixed permissions, each wipe I do data, cache, format system, and wipe dalvik cache (although it gives me an error about E: SD-ext).
If you have any suggestions to get the ADB service back up and recognizing itself I will gladly get you logcat files.
*Side Note: I know it isn't my PC drivers or my Mac; I attempted to get adb running on all including the terminal inside the phone; all say the device is offline, is it possible it has something to do with safestrap?
I thought once installed SSHDroid, you could use ssh/PuTTY to access the terminal from PC, gather the log and redirect to a file, then finally scp to copy the file back to PC.
Or use another SwiFtp app for file transfer as the default install of SSHDroid failed to initiate the scp for me.
elitegunslinger said:
I am unable to generate a log file for you; I even attempted adb shell within a terminal emulator on the phone; [email protected]_spyder:/# basically saying the device is offline, I reset the adb server a couple times and it didn't help.
What works:
Displays the virtual pad and rotates
What doesn't:
The screen becomes unresponsive, the display which mirrors the phones display is blank, and none of the virtual keys work, including the hard keys such as home, back, etc.
I have reset the phone and used multiple roms for CDMA however I can't seem to get it working. I have fixed permissions, each wipe I do data, cache, format system, and wipe dalvik cache (although it gives me an error about E: SD-ext).
If you have any suggestions to get the ADB service back up and recognizing itself I will gladly get you logcat files.
*Side Note: I know it isn't my PC drivers or my Mac; I attempted to get adb running on all including the terminal inside the phone; all say the device is offline, is it possible it has something to do with safestrap?
Click to expand...
Click to collapse
works perfect!!! thx on arctic 1.5....
400757 said:
I thought once installed SSHDroid, you could use ssh/PuTTY to access the terminal from PC, gather the log and redirect to a file, then finally scp to copy the file back to PC.
Or use another SwiFtp app for file transfer as the default install of SSHDroid failed to initiate the scp for me.
Click to expand...
Click to collapse
The issue I am having also is when I attempt to log nothing is coming up. As if no events exist; I am not sure whats wrong. The only logcat command I know is adb shell logcat etc. ; what other command could I use?
Does it work with motorola atrix?
I want to make it work for most devices and ROM that has webtop. So let's try and let me know the result.
Nipit said:
Does it work with motorola atrix?
Click to expand...
Click to collapse
Works great on vzw razr...thanks.
Sent from my DROID RAZR using XDA App
400757 said:
I want to make it work for most devices and ROM that has webtop. So let's try and let me know the result.
Click to expand...
Click to collapse
I tried it on my Bell Atrix running 2.3.6 and your emulator works great
Thanks!
Works great on my razr! Thanks
I think I'm gonna write a small app to enable ad-hoc mode as seen for other android models. Anyone interested ?
Must have:
Single button click to enable ad-hoc wifi mode
Restore option, to revert back to previous state
Check if root is enabled, check if device is supported
Anything missing?
-----------------------------
Update:
App is available in the market.
Reported to work on:
Samung Galaxy Tab GT-P7510, GT-P7500
Samsung GT-I9100 * (Samsung Galaxy S2) reported by PAD
Samsung SPH-D710 Galaxy S2 Epic Touch 4G * reported by Scott
Samsung GT-I9000 * (Galaxy S I)
Nexus S * reported by Arpit
BBK vivo v1 * reported by thesunfei
HTC Desire * reported by Jens
Droid * reported by James
* Requires compatibility check to be disabled.
Probably more devices are supported, I will add them when reported.
Market link: https://market.android.com/details?id=nl.arendmedia.wifiadhocenabler
Discussion: http://www.arenddeboer.com/wifi
This would be great...post a link when ur done
make sure to make two apps one that require pershoot kernel and another one without pershoot kernel just a stock one, if so the app will be great, gd luck.
tarekkkkk said:
make sure to make two apps one that require pershoot kernel and another one without pershoot kernel just a stock one, if so the app will be great, gd luck.
Click to expand...
Click to collapse
Why not check inside the app what kernel is used and act accordingly ?
BTW I have used the same procedure to enable ad-hoc for the stock kernel as well as the pershoot kernel, using the same wpa_supplicant file.
I envision the app should:
Check if the device is supported (for now P75XX)
Request/verify root access.
Check if device is already ad-hoc enabled by this app, if not continue.
Verify if wpa_supplicant in /system/bin/wpa_supplicant is in a sain state (verify md5 hash with original) if it doesn't match warn user if he still wants to continue.
Create a copy of the original wpa_supplicant file.
Copy adhoc-enabled wpa_supplicant to /system/bin/wpa_supplicant, overwriting the existing file.
chmod 755 /system/bin/wpa_supplicant
chown system.wifi /data/misc/wifi/wpa_supplicant.conf
Inform user to reboot for the changes to take effect.
I'm not an expert on wpa_supplicant so any help is appreciated.
adeb2 said:
Why not check inside the app what kernel is used and act accordingly ?
BTW I have used the same procedure to enable ad-hoc for the stock kernel as well as the pershoot kernel, using the same wpa_supplicant file.
I envision the app should:
Check if the device is supported (for now P75XX)
Request/verify root access.
Check if device is already ad-hoc enabled by this app, if not continue.
Verify if wpa_supplicant in /system/bin/wpa_supplicant is in a sain state (verify md5 hash with original) if it doesn't match warn user if he still wants to continue.
Create a copy of the original wpa_supplicant file.
Copy adhoc-enabled wpa_supplicant to /system/bin/wpa_supplicant, overwriting the existing file.
chmod 755 /system/bin/wpa_supplicant
chown system.wifi /data/misc/wifi/wpa_supplicant.conf
Inform user to reboot for the changes to take effect.
I'm not an expert on wpa_supplicant so any help is appreciated.
Click to expand...
Click to collapse
fyi, If you want it to work with all Android versions, don't forget that the wpa_supplicant is not always in the same spot(sometimes in in the /etc folder).
I would also like to see this app. Good luck xD
shaolinx said:
fyi, If you want it to work with all Android versions, don't forget that the wpa_supplicant is not always in the same spot(sometimes in in the /etc folder).
I would also like to see this app. Good luck xD
Click to expand...
Click to collapse
Thanks shaolinx,
It would be great to get all the info for the various devices.
I have started the build and completed the initial verifications, has root, md5hash comparison etc. If anyone can provide details about the location and specific wpa_supplicant files I can add it to this app.
check whenever Wifi On or Off, it will error when you change wpa_supplicant when Wifi on
and afaik not need to reboot for changing wpa_supplicant
Correct Me If I Wrong
AnakTeKa said:
check whenever Wifi On or Off, it will error when you change wpa_supplicant when Wifi on
and afaik not need to reboot for changing wpa_supplicant
Correct Me If I Wrong
Click to expand...
Click to collapse
Good to know, I will request flight-mode before proceeding.
I also noted that after switching to the new wpa_supplicant, the signal strength is no longer visible in the wifi icon. Does anyone know whether this is a known issue ?
adeb2 said:
Good to know, I will request flight-mode before proceeding.
I also noted that after switching to the new wpa_supplicant, the signal strength is no longer visible in the wifi icon. Does anyone know whether this is a known issue ?
Click to expand...
Click to collapse
Mine was stable after replacing the original wpa_supplicant file.
Update:
The app is nearing its final stages of completion. I will probably post the link around Sunday. Have to test it first on the stock rom as well as some of the new ICS roms. First version will be raw and unpolished but should be safe and in good working order. I will rewrite it after the initial release to make it easier to add new devices.
Absolutly YES! very interested
The app is ready, I'm currently pushing it into the Market. Will post the link here shortly.
https://market.android.com/details?id=nl.arendmedia.wifiadhocenabler
Request device support or report bugs in the comments on http://www.arenddeboer.com/wifi
Features:
- Enable WiFi Ad Hoc mode (and keep infrastructure)
- Restore original settings
- Fix WiFi permission issues
Requires:
- Root Access (Superuser)
- BusyBox
Issues:
- No WiFi signal strength visible in taskbar
Please be aware this might potentially brick your device (I have tested the app vigorously on several roms and found no problems). I take of course no responsibility for any real or perceived damage...
Let me know if it works for you so I can improve the app.
Regards
FYI.....Task 13.1 works with adhoc wifi, out of the box!
Thank to the TASK team!
Not sure when they did starting this into the Rom, maybe from Pershoot's kernel?
But thanks anyway. Save me time to copy the WPAsupplicantfile over, which I carry with me from Galaxy tab 7 days!
Hehe, at least it was a nice way of learning root lated tasks in app development But it's still handy as the current kang ics roms do not ship with a modified wpa_supplicant.
when i try to connect it says obtaining ip and after that it disconnects
Ad Hoc Wi-Fi can be a bit tricky to setup, can you create a connection with other devices? I also believe you can make only a single connection between ad hoc devices. So be sure the other device is not already connected.
It was fun working on this app, but is has proven to be difficult to make something that enables Ad Hoc on a wide spectrum of Android devices. Therefor I will no longer be updating the application and will remove the "report to developer" option. My next project: running Linux native on my Galaxy Tab P7510.
Starting point will be this thread by poitee -> http://forum.xda-developers.com/showthread.php?t=1189251
Thanks for the feedback.
Nice! Thanks for the app.
I deleted my apk :-( and it doesn't look like you have a stable version up for download. You think you could hook me up with a link? Thanks man!
Update: See saturn_de's thread for more modules:
http://forum.xda-developers.com/showthread.php?t=1455382
---
Asus failed big time with their ICS kernel. Not only did they leave out the tun module, they also left out several other required options.
After a lot of trial and error, I've found all the modules necessary to connect to VPN, at least using IPSec XAuth PSK mode with my employer's setup. It may or may not work for you.
Root is required. You can find the compiled modules attached. There is a _readme.txt file inside with instructions. Let me know your results!
Thanks to sklid for his initial tun.ko. If you're looking for cifs.ko, you can find it here:
CIFS kernel module for ICS.
Reserved, or something. Although I can hardly imagine actually needing this.
They also left out the ability to properly use the Battery setting for anything other than system processes - can you fix that in your kernel
Oh & can you fix the ad hoc network issue while your at it
Edited: I wished init.goldfish.sh would work. Anyone knows which script got called at startup?
I modified your instruction a bit as my shell script. It does not work if I tried with the ICS VPN - IPSec Xauth PSK. It works using VPN Widget from market.
You can copy the attached file into /etc and set executed permission for it via Root Explorer. When you need vpn, open terminal then execute it after becoming root. Then setup your vpn widget to connect.
huytrang90 said:
Edited: I wished init.goldfish.sh would work. Anyone knows which script got called at startup?
I modified your instruction a bit as my shell script. It does not work if I tried with the ICS VPN - IPSec Xauth PSK. It works using VPN Widget from market.
You can copy the attached file into /etc and set executed permission for it via Root Explorer. When you need vpn, open terminal then execute it after becoming root. Then setup your vpn widget to connect.
Click to expand...
Click to collapse
Is this the app you're talking about? VPNC Widget
If so, it may be something that vpnc supports but the built-in racoon doesn't. I wonder how your VPN is set up differently from mine. Could you post the logcat output (filtered by racoon) from when you're trying to connect using the built-in VPN tool?
I Thanked you for your effort and excellent documentation, but unfortunately my Prime reboots as soon as it completes Phase 2 negotiation. Can post gory details tomorrow if you're interested. Hopefully your work gets the attention of the devs at Asus!
Noxious Ninja said:
Is this the app you're talking about? VPNC Widget
If so, it may be something that vpnc supports but the built-in racoon doesn't. I wonder how your VPN is set up differently from mine. Could you post the logcat output (filtered by racoon) from when you're trying to connect using the built-in VPN tool?
Click to expand...
Click to collapse
That is correct program. I will get that logcat once I have access to PC.
Sent from my Transformer Prime TF201 using Tapatalk
Hey OP or anyone that knows, do you think this works with VPNsecure?
Tairen said:
Hey OP or anyone that knows, do you think this works with VPNsecure?
Click to expand...
Click to collapse
This VPNSecure? Maybe. I've used a PPTP VPN in Gingerbread on my phone before. I don't think ICS has built-in OpenVPN support, though, so you would have to use these kernel modules with the third-party OpenVPN Installer - assuming it still works with ICS.
If you decide to give it a try, let us know if/how it works.
Noxious Ninja said:
This VPNSecure? Maybe. I've used a PPTP VPN in Gingerbread on my phone before. I don't think ICS has built-in OpenVPN support, though, so you would have to use these kernel modules with the third-party OpenVPN Installer - assuming it still works with ICS.
If you decide to give it a try, let us know if/how it works.
Click to expand...
Click to collapse
Damnit so close. Just tried, got all the way through but when I tried to connect after typing in the passphrase this is what I got:
Wait..
Auth..
Get config..
FATAL: Cannot allocate TUN/TAP dev dynamically
My prime appears to connect fine but when I try to access any data over the connection it restarts.
Connection via the widget above works perfect tho!
Tairen said:
Damnit so close. Just tried, got all the way through but when I tried to connect after typing in the passphrase this is what I got:
Wait..
Auth..
Get config..
FATAL: Cannot allocate TUN/TAP dev dynamically
Click to expand...
Click to collapse
Is this from OpenVPN or PPTP? Are there any more detailed logs?
ssjgesus said:
My prime appears to connect fine but when I try to access any data over the connection it restarts.
Connection via the widget above works perfect tho!
Click to expand...
Click to collapse
Strange that multiple people are having restarts. I wonder if there's something in the vanilla Android kernel that doesn't match up with the Asus kernel, or something missing in my modules. It might just be a bug in Android, though. The VPNC Widget totally bypasses a lot of the built-in ICS VPN pieces and uses its own stuff instead.
Noxious Ninja said:
Is this from OpenVPN or PPTP? Are there any more detailed logs?
Strange that multiple people are having restarts. I wonder if there's something in the vanilla Android kernel that doesn't match up with the Asus kernel, or something missing in my modules. It might just be a bug in Android, though. The VPNC Widget totally bypasses a lot of the built-in ICS VPN pieces and uses its own stuff instead.
Click to expand...
Click to collapse
That program works well. It does complain about missing advance routing capability, but works nonetheless.
Sent from my Transformer Prime TF201 using Tapatalk
Noxious Ninja said:
Is this from OpenVPN or PPTP? Are there any more detailed logs?
Strange that multiple people are having restarts. I wonder if there's something in the vanilla Android kernel that doesn't match up with the Asus kernel, or something missing in my modules. It might just be a bug in Android, though. The VPNC Widget totally bypasses a lot of the built-in ICS VPN pieces and uses its own stuff instead.
Click to expand...
Click to collapse
It's what i get when using openvpn settings and following their instructions. I also directed the filepath to tun.ko as well. And yes i was trying to connect to one of their PPTP servers.
i am having restarts as well. how can i see the log of the vpn trying to connect?
ASUS released the kernel source today on their page, so can we get custom kernels now?
DroidHam said:
ASUS released the kernel source today on their page, so can we get custom kernels now?[/QUOT
Need unlocked bootloader & Recovery to flash.
Click to expand...
Click to collapse
When I issue "insmod tun.ko", I get
"insmod: init_module fail 'tun.ko' failed (Exec format error)"
I'm running the virtuous rom 9.4.2.15v2
Pls help
bklm1234 said:
When I issue "insmod tun.ko", I get
"insmod: init_module fail 'tun.ko' failed (Exec format error)"
I'm running the virtuous rom 9.4.2.15v2
Pls help
Click to expand...
Click to collapse
TUN is already enabled in the stock kernel that comes with Asus 9.4.2.15. It may not have been in earlier Samsung kernels before that. So, you shouldn't need to load that module.
you're right _motley. Thx so much.
Hi,
Just done a factory reset and upgraded to r5 , this is a UK tablet, region changed to US and flashed. I then rooted using Root_with_Restore_by_Bin4ry_v13 . After several try I got it working, but I had to use a signed VPNfaker to accomplish this.
So now I want to use a VPN, before I used OpenVPN, this worked perfectly, now it fails to connect. I get the error - Running on Sony Tablet S (nbx03) Sony, Android API 15. Your image does not support the VPNService API, Sorry
I tried to use OpenVPN Connect , getting the error due to a know bug in this version of android it is not possible to gain permission to open a VPN Tunnel.
So last attempt using the built in L2tp/IPSec option, with this I just get a timeout error. No Connection.
So was it the rooting method damaged or changed something with VPN or is it this version US R5 ?
Anyone got VPN working on US R5 ?
OpenVPN is working fine on my tablet S with release 5. I use the apps 'OpenVPN Installer' and 'OpenVPN Settings' from Google Play...
Sent from my Sony Tablet S using xda app-developers app
walsera said:
OpenVPN is working fine on my tablet S with release 5. I use the apps 'OpenVPN Installer' and 'OpenVPN Settings' from Google Play...
Sent from my Sony Tablet S using xda app-developers app
Click to expand...
Click to collapse
That was the second option I tried. I enabled the VPN service, then selected the VPN I want to connect. It initiates the connection then stops after a second with no results in the log file. Did you try any of the other VPN apps that don't require root, OpenVPN Connect (I think US Market only) or OpenVPN for Android, this work really well on my Xperia S .
How did you root your Tablet ?
Did you do the incremental update or full install ?
I flashed the full update and basically used the same method like you. I also had to sign VpnFaker.apk for my Swiss tablet... I don't remember any issuses installing OpenVPN (OpenVPN Installerhttps://play.google.com/store/apps/details?id=de.schaeuffelhut.android.openvpn.installer, OpenVPN Settingshttps://play.google.com/store/apps/details?id=de.schaeuffelhut.android.openvpn). Interestingly, no tun.ko module is required.
I quickly tried the apps you suggested and which don't require root. But they didn't work for me in a quick test.
walsera said:
I flashed the full update and basically used the same method like you. I also had to sign VpnFaker.apk for my Swiss tablet... I don't remember any issuses installing OpenVPN (OpenVPN Installerhttps://play.google.com/store/apps/details?id=de.schaeuffelhut.android.openvpn.installer, OpenVPN Settingshttps://play.google.com/store/apps/details?id=de.schaeuffelhut.android.openvpn). Interestingly, no tun.ko module is required.
I quickly tried the apps you suggested and which don't require root. But they didn't work for me in a quick test.
Click to expand...
Click to collapse
Thanks for trying that. I will retry loading my VPN Profiles again in OpenVPN
defsix said:
Thanks for trying that. I will retry loading my VPN Profiles again in OpenVPN
Click to expand...
Click to collapse
Ok, so tried re-installing busybox, tun.ko, OpenVPN settings and OpenVPN installer however still it's not working. I am thinking the problem is deeper than this though. The built in VPN options L2TP/IPSec and PPTP are both failing to work. I just get a time out error. I have uploaded a section of the catlog if someone could have a look at it.
I am still stuck with this problem. I used AIO tool to setup boot loop protection and then re installed the full R5 on top of the old installation. I didn't do a factory reset though, I don't have the time to re install everything.
And still the problem persists.
I am unable to create any VPN
Anyone any ideas ?
ok. Factory Reset.
Factory Reset, reinstalled R5. Titanium Backup restore and still no VPN. I give up.
Sorry to hear that... for more information about the initiation process of your VPN, you could try to start the openvpn binary in a terminal as root with an increased verbosity level... just to see at which step the process actually fails
walsera said:
Sorry to hear that... for more information about the initiation process of your VPN, you could try to start the openvpn binary in a terminal as root with an increased verbosity level... just to see at which step the process actually fails
Click to expand...
Click to collapse
would that give me more or the same as a logcat ?
Could you give me a quick idea how to do this in terminal ?
Well, I am not an expert, but your logfile was just little use for me...
Steps for running openvpn in terminal:
Open terminal
Type 'su' to get root
Change to the directory with your profiles using 'cd PROFILEDIR'
Type 'openvpn' for getting all command line options
To start a connection type something like 'openvpn --config PROFILE.ovpn --verb 3 '
I couldn't test this with my connection because I haven't figured out how to pass my key for my certificate. But I think this is the way to go.
walsera said:
Well, I am not an expert, but your logfile was just little use for me...
Steps for running openvpn in terminal:
Open terminal
Type 'su' to get root
Change to the directory with your profiles using 'cd PROFILEDIR'
Type 'openvpn' for getting all command line options
To start a connection type something like 'openvpn --config PROFILE.ovpn --verb 3 '
I couldn't test this with my connection because I haven't figured out how to pass my key for my certificate. But I think this is the way to go.
Click to expand...
Click to collapse
ok, will give this a try.