FORUMS

XDA Recap: This Week In Android (Apr 18 – 25)

Here in the digital XDA newsroom, we spend our days pouring over an average of … more

Sunday Debate: Custom ROMs vs. Modular Tweaks

Join us in a fun Sunday Debate on Mods and ROMs. Come with your opinions and feel free to … more

AOSP 5.1 Lollipop for Nexus Q

Google Nexus Q is an intriguing device released with Android 4.0 Ice Cream Sandwich. It was abandoned by … more

XDA Picks: Best Apps of the Week (Apr 17 – 24)

Apps are at the front and center of any smartphone experience, and with over a … more
Post Reply Subscribe to Thread Email Thread

Galaxy Tab enable Ad-Hoc Wifi app

9th January 2012, 12:56 PM |#1  
OP Member
Thanks Meter: 10
 
More
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?i...fiadhocenabler
Discussion: http://www.arenddeboer.com/wifi
Last edited by adeb2; 22nd January 2012 at 08:49 PM.
The Following 4 Users Say Thank You to adeb2 For This Useful Post: [ View ]
 
 
9th January 2012, 01:10 PM |#2  
Janker5050's Avatar
Senior Member
Flag Pittsburgh
Thanks Meter: 309
 
More
This would be great...post a link when ur done
9th January 2012, 04:47 PM |#3  
tarekkkkk's Avatar
Senior Member
Thanks Meter: 54
 
More
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.
9th January 2012, 06:44 PM |#4  
OP Member
Thanks Meter: 10
 
More
Quote:
Originally Posted by tarekkkkk

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.

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:
  1. Check if the device is supported (for now P75XX)
  2. Request/verify root access.
  3. Check if device is already ad-hoc enabled by this app, if not continue.
  4. 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.
  5. Create a copy of the original wpa_supplicant file.
  6. Copy adhoc-enabled wpa_supplicant to /system/bin/wpa_supplicant, overwriting the existing file.
  7. chmod 755 /system/bin/wpa_supplicant
  8. chown system.wifi /data/misc/wifi/wpa_supplicant.conf
  9. Inform user to reboot for the changes to take effect.

I'm not an expert on wpa_supplicant so any help is appreciated.
Last edited by adeb2; 9th January 2012 at 08:19 PM.
The Following User Says Thank You to adeb2 For This Useful Post: [ View ]
9th January 2012, 08:47 PM |#5  
Senior Member
Thanks Meter: 32
 
More
Quote:
Originally Posted by adeb2

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:

  1. Check if the device is supported (for now P75XX)
  2. Request/verify root access.
  3. Check if device is already ad-hoc enabled by this app, if not continue.
  4. 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.
  5. Create a copy of the original wpa_supplicant file.
  6. Copy adhoc-enabled wpa_supplicant to /system/bin/wpa_supplicant, overwriting the existing file.
  7. chmod 755 /system/bin/wpa_supplicant
  8. chown system.wifi /data/misc/wifi/wpa_supplicant.conf
  9. Inform user to reboot for the changes to take effect.

I'm not an expert on wpa_supplicant so any help is appreciated.

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
9th January 2012, 09:07 PM |#6  
OP Member
Thanks Meter: 10
 
More
Quote:
Originally Posted by shaolinx

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

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.
10th January 2012, 08:15 AM |#7  
Member
Thanks Meter: 15
 
More
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
10th January 2012, 02:03 PM |#8  
OP Member
Thanks Meter: 10
 
More
Quote:
Originally Posted by AnakTeKa

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

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 ?
10th January 2012, 05:11 PM |#9  
Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by adeb2

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 ?

Mine was stable after replacing the original wpa_supplicant file.
12th January 2012, 08:08 PM |#10  
OP Member
Thanks Meter: 10
 
More
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.
Last edited by adeb2; 12th January 2012 at 08:42 PM.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes