[DEV] ICS ad-hoc mod - Android Software/Hacking General [Developers Only]

Dears,
I found many methods to patch android to connect to ad-hoc networks,
method 1:
Manually configure the wpa_supplican in this way
http://www.olsr.org/?q=olsr_on_android
but this method is for Galaxy S and cant apply it on Galaxy Nexus or ICS devices.
method 2:
to patch wpa_supplican
removes the [IBSS] flag from scan results,
masquerades and demasquerades ad-hoc ssid with (*) prefix
sets mode 1 (ad-hoc) if the ssid is for IBSS
permits the supplicant to select an IBSS when associating to a given ssid
and i don't know any of these as im not a developer but i need this function BADly.

+1 to this thread, i also need the adhoc features. hope the great devs here will give us hope

I also need this feature
chinopski said:
+1 to this thread, i also need the adhoc features. hope the great devs here will give us hope
Click to expand...
Click to collapse
Indeed I am in a hotel with cable only Internet and I would like to share my laptop connection with an adhoc wifi network but my galaxy nexus doesn't see the network.
I am instead connected with my asus transformer which sees the adhoc network, so some android device works

Actually, the method1 you mentioned works perfectly.
I just tested it with a UbuntuAdhoc network on a ICS 4.0.3 ROM.
Just one remark,
it will fail when you run:
su -c "/system/bin/wpa_cli -p /data/misc/wifi/"
You have to modify as:
su -c "/system/bin/wpa_cli -u"

Hy all, so this is reported working on ICS ???
I tried by myself on my Prime but I'm not good enough to do it ( yeah I know I'm a leecher...)
IF A DEV COULD please make a patch would be great ;-)
Best regards

Can somebody confirm whether or not this will work on an Asus Transformer Prime thats been updated to ICS?

So wait.. you started a whole thread about ad hoc under ICS BUT (1) just posted info already found elsewhere and (2) posted the first "fix" but yet it cannot work under ICS despite this thread having an ICS title and (3) mention wpa_supplicant files and nothing about how to edit them or the fact ICS has 2 wpa_supplicant files.
fail.

Related

[Q] Ad-Hoc

Greetings to all. I have ROM prime 1.6. At me such problem. There is no return through wi-fi. Speed of return - 0. An access point - Ad-Hoc, created through Connectify me. What can it be? Forgive for my English
I'm not sure if ad hoc is possible on the Transformer. I've tried rooting mine and changing the wpa supplicant file with one that was supposed to work. No luck.
If anyone else has a way to get the Transformer to connect via ad hoc, I'm all ears.
skull leader said:
I'm not sure if ad hoc is possible on the Transformer. I've tried rooting mine and changing the wpa supplicant file with one that was supposed to work. No luck.
If anyone else has a way to get the Transformer to connect via ad hoc, I'm all ears.
Click to expand...
Click to collapse
Used a custom kernel?
skull leader said:
I'm not sure if ad hoc is possible on the Transformer. I've tried rooting mine and changing the wpa supplicant file with one that was supposed to work. No luck.
If anyone else has a way to get the Transformer to connect via ad hoc, I'm all ears.
Click to expand...
Click to collapse
I have my Asus transformer connecting to my iPhone which uses an adhoc type of connection
All ive done was add the wpa_supplicant to my Asus's System/bin and replaced the WPA that was there... oh by the way backup the old one before u replace it...
yout will need root access, root explorer and the modified Wpa_supplicant file
I used the search feature of this forum and found this for you -
adhoc thread 1
adhoc thread 2
adhoc thread 3
Mine works fine with my Hero running an adhoc spot.
Interesting... can I just confirm something?
So in order for my TF101 to detect and use Ad Hoc connections, i must do the following.
1. Root my TF 101
2. Replace the wpa_supplicant file
3. Have my Nokia 5800 run JoikuSpot
4. Done!
Sorry, i'm really new to this.

About Ad-Hoc Networks (JoikuSpot)

Hi everyone!
Yes, I am a noob...
Infos:
I already know that every Android device needs a new "wpa_supplicant" file for connecting to Ad-Hoc Networks e.g. created by my Nokia's JoikuSpot or sth. else...
If there's another option, tell me
Also I've heard about this application:
https://market.android.com/details?id=com.jrummy.root.browserfree
that supposedly can be installed on an unrooted device!
The question:
For me it doesn't make sense, that you can install an app which has access to all files without rooting the tablet at first.
Can I replace the wpa_supplicant without rooting and be happy with tethering 3G from my phone to the tablet?
AdHoc Networks are my only cause for rooting but it seems to be quite difficult, maybe no one did it already with the slate ... I can't find instructions to do it anyway...
Please HELP
Click to expand...
Click to collapse
Original Post - Pls answer there...
http://forum.xda-developers.com/showthread.php?t=1410511

[Q] Wifi adhoc network recognition

Hi,
Anybody knows a working method to make the Galaxy R recognise adhoc wifi networks ?
I think some changes need to be made to wpa_supplicant config .
Replaced the wpa_supplicant located at /system/bin with one provided in this thread : http://forum.xda-developers.com/showthread.php?t=754961
rebooted the phone.
Now its working !

[ Solved ] Working 100% - Enable WiFi ad-Hoc Network for both ICS / GB -htc Sensation

[ Solved ] Working 100% - Enable WiFi ad-Hoc Networking for Both ICS and GB for htc Sensation
For GB , this Patch will enable ad-hoc 100% steady connection for both ( WEP and open Networks ) , Also Hotspot WPA2-PSK is still able to connect
For ICS , the APK will enable ad-hoc 100% steady connection with Full WiFi Signal for both ( WEP and open Networks ) , and for Hotspot WPA2-PSK use through regular wifi menu
General
Android does not show this Ad-hoc networks ( it Finds them in the search , but filters them out of the shown results ) , this patch prevent that filtering and shows those ad-hoc networks
There are two types of WiFi Networks :
Infrastructure ( Hotspot ) WPA,WPA2-PSK which is the most secured connection , usually routers broadcast this
Ad-hoc it is either WEP or open network which is less security , usually issued through a laptop connected to a DSL line to broadcast a temporary WiFi connection
DISCLAIMER
I am not responsible if flashing this Mod results in bricking your phone
for Rooted devices​
ad-Hoc Networking for GB
Download Link
See attached Patch Ad-hoc Sensation-Ad-hoc.zip ( Full Credit and thanks to leeDroid )
ZT-180 Adhoc Switcher APK can also work with GB , But i prefer the permanent solution of the above Patch for GB
Apply the Patch
it is always good to do a Backup for your data , Or Just Backup the original file " wpa_supplicant " located in System\bin .
to restore the original file " wpa_supplicant " any time :
just open the Patch in a winrar window and navigate to System\bin and over-right the one in the Patch with the original ( you can get the original from your Rom zip ) . apply the modified Patch from recovery and you are back to the original
if you use Root Explorer to restore the original file ,make sure to set the correct permissions and ownership values
Clear Dalvik cache , and install the Patch from recovery as usual
ad-Hoc Networking for ICS
it is always good to do a NAND Backup for your Rom and data
there is an APK named " ZT-180 Adhoc Switcher " which i geuss is not intended for Sensation but can support additional devices in the try Mode , this APK has two modes
infrastructure mode infrastructure mode.jpg ( will not be used , for Hotspot WPA2-PSK use regular wifi menu )
and " Just to try " ad-hoc mode for non supported devices Just to try ad-hoc mode.jpg that we interested in
the " Just to try " ad-hoc mode worked fine with Sensation
it connects fast , very steady connection with full Wifi Signal and a fast WiFi Data transfer , Ad-hoc it is working for both WEP or open network , Please note that some firewalls could prevent you from connecting even after adjusting its settings
Ad-hoc ( open Network ) :
open network connection doesn't require a Password ,
to modify either SSID name or WEP password , go to setting while you are in infrastructure mode and modify or clear the name in SSID then just switch back to Just to try mode and enable WiFi
if you clear ( remove ) the default name in SSID , this lets the device find and connect automatically to any open ad-hoc you establish from your laptop for example with any name of your choice ( on condition that your ad-hoc connection should be the only available ad-hoc connection in range ) ,
if you leave the default name in SSID "Android tether " as it is , it will only look for a connection with the name "Android tether " that is issued from your laptop and it will not detect any ad-hoc connection with any other name
if there is more than one open network in range that can be seen by the APK then
tip 1 : name the connction in your laptop same as in device SSID ( i.e android tether )
this is because if there is more than one open ad-hoc network and you left the SSID name empty , you can not control which connection the APK will choose to connect to
tip 2 : or use Ad-hoc ( WEP Network )
Ad-hoc ( WEP Network ) :
if you want to use WEP connection , go to setting while you are in infrastructure mode then enter SSID name and Password then switch back to Just to try and enable wifi WEP Password.jpg
the name of the connection should be the same name of the connection you started on your laptop for example
there is a complete help for the APK when you press the thin line under setting
Superuser.APK
if you are using the normal Super user APK opens normal , But if you are using the New SuperSU APK there will be a delay of maybe 5 sec for starting or executing Commands
please read this first #70 , Please note that this APK is not fully compatible with sensation although it worked fine with me
there is another APK ( try it if you like to ) named " WiFi AD HOC enabler " which doesn't really work good ( very weak signal and disconnects frequently ) , or at least this is what i experienced
Connectify Pro
there is a small yet powerful PC Software Called Connectify Pro ( i can't do without it ) that does three things :
it is for windows users
Acts like an actual hardware Router ( Not software networking )
toggle wifi with a single click for either ad-hoc or hotspot ( can start the same ad-hoc connection after reboot )
automatically does all complicated configurations for all types of network to fit with your firewall and windows , also share and transfer files among other options
Press the thanks Button for this Post
There is an application similar to connectify, hostapd for ubuntu which I use all the time . But both the application ( connectify and hostapd is hardware depended . If your wifi Card supports infrastructure mode or master mode , then only they will work. ) So this work around will help those users.
Thanks for your post dear..
Nit worked to me with ICS ,
It works!!!
I'm using HyperNonSense-v2.4
Thank you!!!
Is wifi hotspot bit working for some? I'm confused.
Sent from my HTC Sensation using Tapatalk
Please delete... googling got me
blackchad said:
i literally cannot figure this out... the instructions are really vague. "install the patch as usual from recovery" what is usual? you dont say. i backed up the wpa file and just used root explorer to overwrite it and it instantly broke my wifi. i restored the original so it came back fine but i dont know how to install patch from recovery as usual. obviously the APK says i dont have all of the files and must close. please help. running ICS viperrom 1.01
Click to expand...
Click to collapse
It means boot into recovery and flash it as you would a Rom
Sent from my HTC Sensation 4G using xda app-developers app
i feel very retarded... thank you very much
blackchad said:
i feel very retarded... thank you very much
Click to expand...
Click to collapse
No problem, mate.
Sent from my HTC Sensation 4G using xda app-developers app
ok, after reading the post for the 10th time i guess im not supposed to apply the patch since im on ICS? well, i restored completely to before i tried to get adhoc working and just installed the APK and it still didnt work. said i didnt have all the files and it must close. the link to the APK in the play store doesnt work because sensation isnt supported and i just had to find it online. Could it maybe be the APK that im using? Does anyone have a working one they could send to me or any ideas to a solution?
It's not work with the latest Sense 4 build (HTC Ville C2 latest RUU (1.11.401.110) Android 4.0.3 ICS). So can you tell me how did you do with the wpa_supplicant file please? I want to modify it myself.
is it only working for HTC OR any GB ROM ?
Thanks
what are the specific steps in applying the patch?
whats needed? and steps?
thanks
Is it just depends on replacing wpa_supplicant file, or something more?
Because author of this apk said that file is vary for various devices, and I'd like to request for Onda V972 V1.
Apk doesn't work.
Can I just replace it without recovery, or is a stock recovery does the same in case of not having other one?
edit.
Here is how to compile proper wpa_supplicant file for your Android version:
http://forum.xda-developers.com/showpost.php?p=50717707&postcount=14
and how to paste it without recovery in root explorer/total commander:
http://forum.xda-developers.com/showpost.php?p=20334424&postcount=292

[Q] ad-hoc issue

hi, recently i bought the new transformer TF700 and i want to connect to internet through ad-hoc but when i find and connect to ad-hoc SSID in wireless page of TF700 the process stay on obtaining ip... and nothing to do ..., i know if i want connect to ad-hoc have to make root system and then change the file .... but i try to find the way that wont need to root system.any Buddy know any solution to do it ???
thanks
Do yourself a favor and just root the device. It's completely reversible and does not void your warranty.
Otherwise, you will forever be looking for "workarounds" to do things that are easily done when rooted...
Sent from my ASUS Transformer Pad TF700T using Tapatalk 2
thanks for your advice, but if i want root the device that has ICS how can i do it?would you inform me, and then the right file that can resolve my ad-hoc problem which is useful for TF700.
thanks alot
a very quick look through the forms produced
http://forum.xda-developers.com/showthread.php?t=1833212
http://forum.xda-developers.com/showthread.php?t=1706588
http://forum.xda-developers.com/showthread.php?t=1834521
I tried rooting TF700, but still cannot connect to ad hoc with windows 7.
I tried all the possible ways. Or am i missing some important step?
Perhaps the adhoc connection is set up incorrectly. I have an adhoc connection set up with joikuspot on a symbian device and I did not have to modify anything or even root my tf700

Categories

Resources