Galaxy Tab enable Ad-Hoc Wifi app

Search This thread

adeb2

Member
Jun 24, 2008
41
10
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
 
Last edited:

tarekkkkk

Senior Member
Mar 27, 2010
489
54
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.
 

adeb2

Member
Jun 24, 2008
41
10
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:
  • Like
Reactions: tarekkkkk

shaolinx

Senior Member
Feb 26, 2009
292
31
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

Member
Jun 24, 2008
41
10
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

Senior Member
Oct 2, 2011
104
16
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

Member
Jun 24, 2008
41
10
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 ?
 

adeb2

Member
Jun 24, 2008
41
10
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:

adeb2

Member
Jun 24, 2008
41
10
The app is ready, I'm currently pushing it into the Market. Will post the link here shortly.
 

adeb2

Member
Jun 24, 2008
41
10
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
 
Last edited:

bert269

Senior Member
Jul 17, 2007
780
50
GB
meettomy.site
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!
 

adeb2

Member
Jun 24, 2008
41
10
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.
 

adeb2

Member
Jun 24, 2008
41
10
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.
 

adeb2

Member
Jun 24, 2008
41
10
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://xdaforums.com/showthread.php?t=1189251

Thanks for the feedback.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    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
    2
    http://arenddeboer.com/pub/WifiAdHocEnabler.apk

    I removed the app from store and website because it needs work, especially on recent ICS builds.
    1
    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.