Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,779,159 Members 45,741 Now Online
XDA Developers Android and Mobile Development Forum

Galaxy Tab enable Ad-Hoc Wifi app

Tip us?
 
adeb2
Old
(Last edited by adeb2; 22nd January 2012 at 08:49 PM.)
#1  
Member - OP
Thanks Meter 10
Posts: 31
Join Date: Jun 2008
Default Galaxy Tab enable Ad-Hoc Wifi app

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
The Following 4 Users Say Thank You to adeb2 For This Useful Post: [ Click to Expand ]
 
Janker5050
Old
#2  
Janker5050's Avatar
Senior Member
Thanks Meter 307
Posts: 479
Join Date: Jan 2011
Location: Pittsburgh
This would be great...post a link when ur done
Sent from The blazing fast Vzw Note 3. "More of a machine than a phone"
Please hit the little thanks button if i was a help to U!!!
 
tarekkkkk
Old
#3  
tarekkkkk's Avatar
Senior Member
Thanks Meter 54
Posts: 454
Join Date: Mar 2010
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.
visit my Gaming website : LebGamers

visit my Tech website : LebTechs
 
adeb2
Old
(Last edited by adeb2; 9th January 2012 at 08:19 PM.)
#4  
Member - OP
Thanks Meter 10
Posts: 31
Join Date: Jun 2008
Quote:
Originally Posted by tarekkkkk View Post
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.
The Following User Says Thank You to adeb2 For This Useful Post: [ Click to Expand ]
 
shaolinx
Old
#5  
Senior Member
Thanks Meter 31
Posts: 286
Join Date: Feb 2009
Quote:
Originally Posted by adeb2 View Post
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
 
adeb2
Old
#6  
Member - OP
Thanks Meter 10
Posts: 31
Join Date: Jun 2008
Quote:
Originally Posted by shaolinx View Post
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.
 
AnakTeKa
Old
#7  
Member
Thanks Meter 15
Posts: 95
Join Date: Oct 2011
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
 
adeb2
Old
#8  
Member - OP
Thanks Meter 10
Posts: 31
Join Date: Jun 2008
Quote:
Originally Posted by AnakTeKa View Post
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 ?
 
aieromon
Old
#9  
Member
Thanks Meter 0
Posts: 30
Join Date: Jan 2012
Quote:
Originally Posted by adeb2 View Post
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.
 
adeb2
Old
(Last edited by adeb2; 12th January 2012 at 08:42 PM.)
#10  
Member - OP
Thanks Meter 10
Posts: 31
Join Date: Jun 2008
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.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Make a Pre-Rooted Stock Sony ROMs in Just Few Clicks

Many usersdon’t see any particular reason to change out the stock firmware … more

Add Timestamps to Xposed Installer Logs with… Xposed!

If talking about the most interesting projects in the last few years, we must … more

Secrecy Goes Open Source, Assures File Encryption

As some of you may remember, a while back we spoke about Secrecy, an effective file … more

[APK] Google News and Weather Gets Material Design Makeover, Minor Maps Updates

Although Google has somewhat gotten out of the habit of their … more