Top 5 Apps for 2014 + Top Xposed Mod of 2014 – XDA TV

Its that time of year where you look back and remember the things that happened … more

NVIDIA SHIELD Tablet Gets Android 5.0.1, OTA Available

The NVIDIA SHIELD Tablet is the latest Android-powered device released by famed GPU … more

FXP Team Delivers Lollipop to Various Xperia Devices!

From all of us here at XDA-Developers, we’d like to wish you Happy Holidays! If … more

Turn Your Camera Into a Live Puzzle Game

The classic sliding puzzle game hasnt changed much, if at all, over the years. Dating all the way … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Galaxy Tab enable Ad-Hoc Wifi app

OP adeb2

9th January 2012, 01:56 PM   |  #1  
OP Member
Thanks Meter: 10
 
31 posts
Join Date:Joined: Jun 2008
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 09:49 PM.
The Following 4 Users Say Thank You to adeb2 For This Useful Post: [ View ]
9th January 2012, 02:10 PM   |  #2  
Janker5050's Avatar
Senior Member
Flag Pittsburgh
Thanks Meter: 309
 
482 posts
Join Date:Joined: Jan 2011
More
This would be great...post a link when ur done
9th January 2012, 05:47 PM   |  #3  
tarekkkkk's Avatar
Senior Member
Thanks Meter: 54
 
463 posts
Join Date:Joined: Mar 2010
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, 07:44 PM   |  #4  
OP Member
Thanks Meter: 10
 
31 posts
Join Date:Joined: Jun 2008
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 09:19 PM.
The Following User Says Thank You to adeb2 For This Useful Post: [ View ]
9th January 2012, 09:47 PM   |  #5  
Senior Member
Thanks Meter: 32
 
287 posts
Join Date:Joined: Feb 2009
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, 10:07 PM   |  #6  
OP Member
Thanks Meter: 10
 
31 posts
Join Date:Joined: Jun 2008
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, 09:15 AM   |  #7  
Member
Thanks Meter: 15
 
95 posts
Join Date:Joined: 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
10th January 2012, 03:03 PM   |  #8  
OP Member
Thanks Meter: 10
 
31 posts
Join Date:Joined: Jun 2008
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, 06:11 PM   |  #9  
Member
Thanks Meter: 1
 
32 posts
Join Date:Joined: Jan 2012
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, 09:08 PM   |  #10  
OP Member
Thanks Meter: 10
 
31 posts
Join Date:Joined: 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.
Last edited by adeb2; 12th January 2012 at 09:42 PM.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes