Hi,
I wanted to know if someone can let know if the Cruz tablet can access ad hoc networks ( i have made my iphone a hotspot) but my tablet cannot detect it.
Thanks
I don’t know your system but each android device has the same base software system.
Normally, android cannot recognize ad-hoc networks (because of the settings imposed by goo), but there are all the things necessary to do so.
In practice you have to edit one or two files (the file “wpa_supplicant.conf” is surely present, while the file "tiwlan.ini" is on your tablet if you have a wireless interface from Texas Instruments).
So, this is the manual mode, the only one that I know always works for my cheap tablet, but there are also softwares that can manage ad-hoc connection for other devices (modified network software designed for Galaxy Tab and other Samsung products, not working on my MilkWay tab).
1 Your tablet must be rooted.
2 shut down wifi in settings.
3 using RootEplorer, locate and make a copy of file "wpa_supplicant.conf" (generally is in “data/misc/wifi/” or in “etc/wifi/” folder) and remember the folder name.
4 locate and make a copy of file "tiwlan.ini" (This file could be not present, generally is in “system/etc/wifi folder”) and remember the folder name.
5 HAVE YOU MADE A COPY/BACKUP OF THESE 2 FILES AND PUTTED THEM IN A SAFE PLACE ?
6 Ok ok, now you have to edit them (the originals, not the copies). There are several modes to do it, for example you can put them on the sdcard and edit via notepad on win (do not use MS WORD for a configuration pure text file!) or you can edit them via RootExplorer directly, or you can use ADB interface to extract them to you pc and the edit, as you prefer.
7 edit tiwlan.ini file (if present):
locate and change line: WiFiAdhoc = 0 -> WiFiAdhoc = 1
add this line: dot11DesiredSSID = YourSSID #insert your SSID (the AP name) without commas!
add this line: dot11DesiredBSSType = 0
8 modify wpa_supplicant.conf like this:
ctrl_interface=...... (do not touch this line!)
update_config=1
ap_scan=2
network={
ssid="YourSSID" #insert your SSID (the AP name) now WITH commas!
scan_ssid=1
key_mgmt=NONE
mode=1
priority=1
}
9 If modified offline, put modified files in their original folder, overwriting old ones.
10 shut down tablet.
11 power on the wifi tether AP on phone.
12 power on the tablet.
13 enable wifi in settings.
14 in a few seconds, your tablet should connect to your phone AP and you can browse internet.
15 I hope that you have a flat subscription
Note:
1 sometimes it will take more time to connect; try to enable/disable wifi or reboot the tablet.
2 if you need to connect to normal AP (not ad-hoc) maybe you have to restore original files. Sometimes all works fine with mixed networks in wpa_sup… file, sometimes …. no.
3 if you add a network using settings, you have to edit again the wpa_sup… file, because the system deletes the line “ap_scan=2” and you have to re-add that line.
4 the most convenient is to create two wpa_sup… files (one for the adhoc mode and one for normal mode) and replace them when needed, maybe through a script.
5 the network configuration at #8 is without encription. If you want WEP shared encription just add a line, in the network definition of wpa_sup.. file, with the key, like this:
wep_key0="1234567890123" # ASCII keys are with commas
or
wep_key0=0102030405 # HEX keys are without commas
Hoping helpful, best Regards.
Hi,
thank you for taking the time and replying back.... I have the wpa_supplicant.conf file in /system/etc/wifi/ i couldnt find the other file u mentioned.
I am attaching the orignal wpa_supplicant.conf file please see if u can modify it
I tried to do it as u said and now wen i try to connect to internet it says WiFi unable to connect.
Thank You
viss2000 said:
Hi,
thank you for taking the time and replying back.... I have the wpa_supplicant.conf file in /system/etc/wifi/ i couldnt find the other file u mentioned.
I am attaching the orignal wpa_supplicant.conf file please see if u can modify it
I tried to do it as u said and now wen i try to connect to internet it says WiFi unable to connect.
Thank You
Click to expand...
Click to collapse
Hi,
your wpa_supplicant.conf file is the best full commented file that I never see. Reading the file you can find many explanations in the commented lines (#).
The initial assumption is that the device works as AP is a cell phone that only allows ad-hoc mode, as my Nokia 5800 with the program JoikuSpot. Some more lucky people have phones with hardware that can operate in infrastructure mode and do not need to do anything.
Other assumption is that you have wpa_supplicant.conf file in the /system/etc/wifi/ folder.
I have the wpa_supplicant.conf file in /system/etc/wifi/
Click to expand...
Click to collapse
Other assumption is that your tablet doesn't have a TexasInstrument wifi chip (not important)
I have the wpa.....ifi/, i couldnt find the other file u mentioned.
Click to expand...
Click to collapse
The simplest way is to create one personalized wpa...conf file needed only when You want have access to your ad-hoc phone wifi network.
So you will have 2 wpa...conf files: the first for normal networks and the secon only for your personalized ad-hoc network.
Remember that the file in use can be automatically modified by the Network configuration in settings. Do not use scan network in settings when there is in use the wpa..conf ad-hoc file, because the app will automatically modify it erasing the line ap_scan=2. When is in use the 'normal' file, you can do all you want.
I have modified the files as you need. YOU must edit 1 line in the adhoc file (use the internal editor of your pad or Wordpad in Win) and insert the correct SSID (the wifi network name).
I have also added the .normal file in the case you have problems with your 'normal' wifi network
I tried to do it as u said and now wen i try to connect to internet it says WiFi unable to connect.
Click to expand...
Click to collapse
Step1:
Edit "wpa_supplicant.conf.adhoc" attached file and insert the correct SSID.
Step2:
Copy "wpa_supplicant.conf.adhoc" file to the folder /system/etc/wifi/.
Step3:
Assuming that you already have at least one 'normal' wifi network running, using RootExplorer go to the folder /system/etc/wifi/ and make a copy of your file wpa...conf in use and rename the copy "wpa_supplicant.conf.normal" in the same folder. Why? Because this file contains your update normal wifi networks configuration and passwords.
So, what I have to do when I want swith from NORMAL to ADHOC network?
1 Disable the wifi network in settings.
2 With RootExplorer,
2.1 go to folder /system/etc/wifi/
2.2 long press on file wpa_supplicant.conf, when menu pop up, delete this file.
2.3 long press on file wpa_supplicant.conf.adhoc, when menu pop up, copy and paste.
2.4 long press on file "wpa_supplicant.conf.adhoc - Copy" and rename it to wpa_supplicant.conf
3 Enable the wifi network in settings.
4 After 2 seconds, your tablet should connect to the adhoc ap of your phone.
5 DO NOT use scan for netwoks in settings because it will auto modify your wpa..conf file.
What I have to do when I want change the network from ADHOC to NORMAL?
1 Disable the wifi network in settings
2 With RootExplorer,
2.1 go to folder /system/etc/wifi/
2.2 long press on file wpa_supplicant.conf, when menu pop up, delete this file.
2.3 long press on file wpa_supplicant.conf.normal, when menu pop up, copy and paste.
2.4 long press on file "wpa_supplicant.conf.normal - Copy" and rename it to wpa_supplicant.conf
3 Enable the wifi network in settings.
4 After 1/2 seconds, your tablet should connect to the ap of your wifi network..
5 You can use/modify/add netwoks in settings because it will correctly modify your wpa..conf 'normal' file. If you add/modify anything make a copy of your updated wpa..conf to "wpa_supplicant.conf.normal" erasing old one.
It would be more comfortable not having to use this procedure that may seem complicated, but in practice it is really easy. Four years have passed since the first request to allow the adhoc connection was requested to the developer of Android. Still no answer.
I've used this procedure with my old tablet A81E, with my Herotab C8 clone, and with a linux notebook.
To me it always works. If sometimes I have problems is because of the phone and its software.
Tell me if it works!
Thanks a ton ....worked like a GEM !!!.....
Really appreciate all the work !!
thanks !
Thank you so much for the information. I am trying to do this. I have two wpa_supplicant files. One is in etc/wifi and the other is in system/etc/wifi.
Do I need to alter both files or just one?
I have already copied and edited the file. I haven't replaced anything yet because I want to make sure I do it right.
Thank you again
Also on my tab (Herotab C8 aka Haipad M7 aka Apad M7009 aka Dropad A8) there are 2 wpa_supplicant.conf files, in same folders as yours, because the 2 folders are..... 1 folder mirrored on the fly.
You can modify wpa_supplicant.conf files in the folder that you prefer.
There are no risks, but in any case make a copy of the original file so you have it always available. You can always reload it by ADB or DroidCommander (nice utility).
In the original file, only the first line is customized with the directory of your tablet, the rest of the file can also be deleted because it is modified by the system when you use settings-wifi-...
Ciao!
Adhoc Network (Android Froyo 2.2.1)
Hi thanks for your valuable time.
I am using Samsung Galaxy POP (GT-S5570). OS-Android 2.2.1
It has only wpa_supplicant.conf file. (Well documented But no support for ad hoc network!!)
I have tried your above procedure multiple times but failed. When I on wifi from settings a message appeared "unable to scan for networks" and wifi turned off automatically.
I am trying to add ad hoc network. Its very urgent.
Please help.
Thanks in advance.
Osmani
Bangladesh
osmanii said:
Hi thanks for your valuable time.
I am using Samsung Galaxy POP (GT-S5570). OS-Android 2.2.1
It has only wpa_supplicant.conf file. (Well documented But no support for ad hoc network!!)
I have tried your above procedure multiple times but failed. When I on wifi from settings a message appeared "unable to scan for networks" and wifi turned off automatically.
I am trying to add ad hoc network. Its very urgent.
Please help.
Thanks in advance.
Osmani
Bangladesh
Click to expand...
Click to collapse
Change your default wpa_supplicant with my attached new wpa_supplicant
it's work in my S5570
Enable ad-hoc in Samsung Galaxy Ace S5830
hi
I have a Galaxy Ace (Froyo 2.2.1) one . im frustrated by finding a way to enable ah hoc in it . this solution seems neat and powerful . but HOW to apply this patch in phone ? (
my environment is :
I could NOT use Conectify or Virtual Router because they need Win 7 and i have XP .
Rom Manager is installed but ClockWorldMod Recovery could not be installed after that , because it seems does not support my phone (Galaxy Ace) .
I have eaten all of this thread to find the solution but plz help me how to apply that zip file .
thank in advance for your assistance .
mpathfinder said:
hi
I have a Galaxy Ace (Froyo 2.2.1) one . im frustrated by finding a way to enable ah hoc in it . this solution seems neat and powerful . but HOW to apply this patch in phone ? (
my environment is :
I could NOT use Conectify or Virtual Router because they need Win 7 and i have XP .
Rom Manager is installed but ClockWorldMod Recovery could not be installed after that , because it seems does not support my phone (Galaxy Ace) .
I have eaten all of this thread to find the solution but plz help me how to apply that zip file .
thank in advance for your assistance .
Click to expand...
Click to collapse
see my post before
you just change your default wpa_supplicant in /system/bin/
I really need your help
Thanks for your help on this thread fbelleri, i have tried what you said but i can't get my tablet work with my ad-hoc wifi. i have attached my wpa file and my apn name is JoikuSpot_0023B4D40234 . Please i would love if you edit the files for me so i can just download and copy to my tablet. Thank you very much for your reply.
derock533 said:
Thanks for your help on this thread fbelleri, i have tried what you said but i can't get my tablet work with my ad-hoc wifi. i have attached my wpa file and my apn name is JoikuSpot_0023B4D40234 . Please i would love if you edit the files for me so i can just download and copy to my tablet. Thank you very much for your reply.
Click to expand...
Click to collapse
Hi Derock533,
Here it is your file. It is really simple.
Generally works without problems, assuming you have rooted your tablet.
But start from the beginning.
When the system enables the wifi, it reads the network configuration specified in the file \system\etc\wifi\wpa_supplicant.conf.
This configuration file would provide the use of adhoc networks (derived from linux), but is not permitted by the policies of Android.
Enabling adhoc networks is obtained by adding the instruction "ap_scan = 2" (look for all types of access point) and the instruction "mode = 1" (which identifies adhoc networks).
To complicate things, they made sure that if is done a manually scan, system will automatically delete the line "ap_scan = 2" from the file.
So for our convenience we will use two files, one for the networks 'normal' and one for the network 'adhoc'.
The attached file does not require a network password, then disable the password in the options Jouikuspot (Cripto = none). This configuration is useful for testing, then we will add support for WEP encryption.
From post#4 *-*-*-*
Step2:
Copy "wpa_supplicant.conf.adhoc" file to the folder /system/etc/wifi/.
Step3:
Assuming that you already have at least one 'normal' wifi network running, using RootExplorer go to the folder /system/etc/wifi/ and make a copy of your file wpa...conf in use and rename the copy "wpa_supplicant.conf.normal" in the same folder. Why? Because this file contains your update normal wifi networks configuration and passwords.
It is all.
So, what I have to do when I want switch from NORMAL to ADHOC network?
1 Disable the wifi network in settings.
2 With RootExplorer,
2.1 go to folder /system/etc/wifi/
2.2 long press on file wpa_supplicant.conf, when menu pop up, delete this file.
2.3 long press on file wpa_supplicant.conf.adhoc, when menu pop up, copy and paste.
2.4 long press on file "wpa_supplicant.conf.adhoc - Copy" and rename it to wpa_supplicant.conf
2.9 Start Joiku on your phone and wait 5 seconds
3 Enable the wifi network in settings.
4 After 2 seconds, your tablet should connect to the adhoc ap of your phone.
5 DO NOT use scan for netwoks in settings because it will auto modify your wpa..conf file.
What I have to do when I want change the network from ADHOC to NORMAL?
1 Disable the wifi network in settings
2 With RootExplorer,
2.1 go to folder /system/etc/wifi/
2.2 long press on file wpa_supplicant.conf, when menu pop up, delete this file.
2.3 long press on file wpa_supplicant.conf.normal, when menu pop up, copy and paste.
2.4 long press on file "wpa_supplicant.conf.normal - Copy" and rename it to wpa_supplicant.conf
3 Enable the wifi network in settings.
4 After 1/2 seconds, your tablet should connect to the ap of your wifi network..
5 You can use/modify/add netwoks in settings because it will correctly modify your wpa..conf 'normal' file. If you add/modify anything make a copy of your updated wpa..conf to "wpa_supplicant.conf.normal" erasing old one.
*-*-*-*
When in adhoc mode, if it does not work, try to change the channel on Jouikuspot. (disable wifi on tablet - disable joiku - modify joiku - enable joiku - enable wifi on tablet)
Best regards (and excuse me for my english). Ciao!
fbelleri Thanks for your help...
Thanks for your help fbelleri...i also had to copy the new file and edit wap supplicant.conf in data/misc/wifi. My adhoc network came up like magic.Thanks again
I have followed these directions and my Velocity Cruz Tablet (T104) will not connect to my Android tether (MB300 - Motorola Backflip).
I am running Cyanogen's 6.1 custom ROM (2.2.1 FRG83 Unofficial-CM-6.1.2-motus-beta2) on my Backflip if it matters. I can connect to my Backflip via my laptop w/o issue...
Any ideas?
fbelleri said:
I don’t know your system but each android device has the same base software system.
Normally, android cannot recognize ad-hoc networks (because of the settings imposed by goo), but there are all the things necessary to do so.
In practice you have to edit one or two files (the file “wpa_supplicant.conf” is surely present, while the file "tiwlan.ini" is on your tablet if you have a wireless interface from Texas Instruments).
So, this is the manual mode, the only one that I know always works for my cheap tablet, but there are also softwares that can manage ad-hoc connection for other devices (modified network software designed for Galaxy Tab and other Samsung products, not working on my MilkWay tab).
1 Your tablet must be rooted.
2 shut down wifi in settings.
3 using RootEplorer, locate and make a copy of file "wpa_supplicant.conf" (generally is in “data/misc/wifi/” or in “etc/wifi/” folder) and remember the folder name.
4 locate and make a copy of file "tiwlan.ini" (This file could be not present, generally is in “system/etc/wifi folder”) and remember the folder name.
5 HAVE YOU MADE A COPY/BACKUP OF THESE 2 FILES AND PUTTED THEM IN A SAFE PLACE ?
6 Ok ok, now you have to edit them (the originals, not the copies). There are several modes to do it, for example you can put them on the sdcard and edit via notepad on win (do not use MS WORD for a configuration pure text file!) or you can edit them via RootExplorer directly, or you can use ADB interface to extract them to you pc and the edit, as you prefer.
7 edit tiwlan.ini file (if present):
locate and change line: WiFiAdhoc = 0 -> WiFiAdhoc = 1
add this line: dot11DesiredSSID = YourSSID #insert your SSID (the AP name) without commas!
add this line: dot11DesiredBSSType = 0
8 modify wpa_supplicant.conf like this:
ctrl_interface=...... (do not touch this line!)
update_config=1
ap_scan=2
network={
ssid="YourSSID" #insert your SSID (the AP name) now WITH commas!
scan_ssid=1
key_mgmt=NONE
mode=1
priority=1
}
9 If modified offline, put modified files in their original folder, overwriting old ones.
10 shut down tablet.
11 power on the wifi tether AP on phone.
12 power on the tablet.
13 enable wifi in settings.
14 in a few seconds, your tablet should connect to your phone AP and you can browse internet.
15 I hope that you have a flat subscription
Note:
1 sometimes it will take more time to connect; try to enable/disable wifi or reboot the tablet.
2 if you need to connect to normal AP (not ad-hoc) maybe you have to restore original files. Sometimes all works fine with mixed networks in wpa_sup… file, sometimes …. no.
3 if you add a network using settings, you have to edit again the wpa_sup… file, because the system deletes the line “ap_scan=2” and you have to re-add that line.
4 the most convenient is to create two wpa_sup… files (one for the adhoc mode and one for normal mode) and replace them when needed, maybe through a script.
5 the network configuration at #8 is without encription. If you want WEP shared encription just add a line, in the network definition of wpa_sup.. file, with the key, like this:
wep_key0="1234567890123" # ASCII keys are with commas
or
wep_key0=0102030405 # HEX keys are without commas
Hoping helpful, best Regards.
Click to expand...
Click to collapse
OK, I just got this working on my Velocity Cruz tablet (T104). The T10x series should realistically be the same as well...
Creating 2 files, 1 file that has the adhoc and another for the original configuration might be helpful.
My adhoc version of the wpa_supplicant.conf file looks like the following:
Code:
ctrl_interface=DIR=/data/misc/wifi/wpa_supplicant GROUP=wifi # Make sure this matches your conf file!
update_config=1
ap_scan=2
network={
ssid="AndroidTether" #insert your SSID if it differs (the AP name)!
scan_ssid=1
key_mgmt=NONE #this mean that the network is without authentication or with WEP authentication
mode=1 #this means ad-hoc network
priority=1
# IF YOU WANT WEP AUTHENTICATION JUST ADD THE LINE wep_key0="....."
# wep_key0=1234567890 #insert here your correct HEX (length 10) key without quotes OR
# #wep_key0="1234567890123" #insert here your correct ASCII (length 14) key with quotes
}
Change/replace the wpa_supplicant.conf file (I created the file in notepad and pushed them to the tablet) to what is above in the following locations:
/system/etc/wifi
/data/misc/wifi
In order to get these files on the tablet, I ran the following commands in adb shell (they are readonly by default):
Code:
mount -o remount,rw /dev/block/mtdblock3 /system
mount -o remount,rw /dev/block/mtdblock3 /data
Then run these from DOS:
Code:
adb push wpa_supplicant.conf /data/misc/wifi/wpa_supplicant.conf
adb push wpa_supplicant.conf /system/etc/wifi/wpa_supplicant.conf
I also did the chown command against both files as well (change directory to each file location in adb shell). It is shown below:
Code:
chown system.wifi wpa_supplicant.conf
After all that, do a reboot on the tablet and make sure your phone has tethering on. When the tablet comes back up, it should connect (make sure your wifi is on).
hesperides said:
Change your default wpa_supplicant with my attached new wpa_supplicant
it's work in my S5570
Click to expand...
Click to collapse
Sadly, It also fails like the other wpa_supplicant's i tried.
Wifi keeps crashing and restarting, logcat/DDMS say 'wpa_driver_priv_driver_cmd failed' several times and wpa_supplicant gets terminated by the wifi service.
I think our tablet uses the libertas driver which doesn't support some of these functions, From what i could google up.
fbelleri said:
Tell me if it works!
Click to expand...
Click to collapse
With the help of posts #14 and #16, I was finally able to get my Cruz T301 to work ad-hoc. Apparently, the only file location the device seems to be concerned about is the wpa-supplicant.conf file in /data/misc/wifi. I put a backup in /etc/wifi just in case, but it doesn't seem to affect anything.
To keep scans from wiping out the config settings, I might try to tweak it to make it call a read-only location that cannot be changed, or perhaps writing a startup script (or something) that would restore the file more easily if it's rewritten.
Thanks for the tip, derock533 & InterludeIT!
73 DE N4RPS
Rob
http://gititbit.ch/sk4gm - sk4g_modules.zip
tun.ko
ext4.ko
ext3.ko
compiled with the sk4g kernel source (obviously)
sidekick4g mirrors can be found at
http://gitbrew.org/sidekick/
Place in /system/lib/modules/
insmod tun.ko ext3.ko ext4.ko
Please let me know if they work.
The only reason I can foresee them not working is if the production kernel version differs from the released source.
So I know im a "noob" but what does this do?
tun.ko enables the use of openvpn, ext3 and ext4 are file system types.
dasmoover said:
tun.ko enables the use of openvpn, ext3 and ext4 are file system types.
Click to expand...
Click to collapse
Would This Mean we could Convert from the default file system type (Rfs i think) to ext4 ? and does this mean the SK4G can have Voodoo lagfix which converts the system file type to ext4 i believe ?
sorry for all the questions im just a lol confused atm
These are kernel modules, they provide added functionality after boot to the stock kernel without having to recompile on the end-user level. Tun.ko lets you connect your phone to a OpenVPN network. Ext3 and Ext4 are file-system types. This would allow you to mount partitions/images with that file-system. I'm not sure if it would be applicable to /system, which is VFAT.
thanks for these. i am trying to figure out where to place them. looking at my system, i don't see a module folder in system/lib. what i have is a couple folders at the top, as shown, and all the rest are libxxxxxxxxx.so files.
Edit: i do see an option to create a new folder. perhaps that's what i need to do?
Don't create any folder, place all the .ko files in that directory you took a screenshot of then do insmod tun.ko as root. You must first mount your /system partition as rw.
Yogi, if you could, please join #sidekick4g on freenode. I am trying to compile AOSP GB for this device but I need to pull proprietary files first.
dasmoover said:
don't create any folder, place all the .ko files in that directory you took a screenshot of then do insmod tun.ko as root. You must first mount your /system partition as rw.
Click to expand...
Click to collapse
ok thanks, will do. is there any risk with this? it seems the Clockwork recovery is having a problem mounting the sd card in some cases, thus i was unable to save my nandroid backup.
Has anyone tested these on hardware yet?
yes, they work.
dasmoover said:
yes, they work.
Click to expand...
Click to collapse
Thanks! Can you build us cifs also? I can't seem to do it myself...
Sent from a toaster.
It's almost working for me (using 'openvpn settings' as a GUI) -- the sequence of messages appearing in the window with my selected configuration are:
Connecting
Auth
Get config
Connected to 173.163.240.62 as
(notes -- I could easily have made some mistakes with capitalization; the last line really does end with the word 'as')
I can't make any connections, and no new routes seem to be getting added to the routing tables.
Meanwhile, on my VPN server, the last two messages in the log are:
Jul 5 16:44:16 pinky ovpn-server[1728]: horizon/206.29.182.131:14412 SENT CONTROL [horizon]: 'PUSH_REPLY,route 10.13.13.0 255.25\
5.255.0,route 192.168.13.0 255.255.255.0,route 10.13.13.1,topology net30,ping 10,ping-restart 120,ifconfig 10.13.13.38 10.13.13.3\
7' (status=1)
Jul 5 16:47:08 pinky ovpn-server[1728]: read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
It should be mentioned that I'm not trying to connect from the server to my sidekick, so I don't know why that message is occurring (it is almost three minutes after the configuration information was sent).
Any ideas? I'll happily post more of the log if it's appropriate, or I can put it up on my web page.
Found it! The openvpn binary installed by the openvpn-installer package doesn't seem to understand the route pushed by the openvpn host. As a new user I can't post a link, but googling 'android openvpn route issue 26' will turn up a discussion of the problem and a link to an openvpn binary that works (as of tonight, as the first hit).