fabiossilva21

[Tutorial]Enable WiFi Direct in ICS

28 posts in this topic

SEEMS TO BE WORKING IN THE OFFICIAL ICS



First of all the credits:

george109: For helping me out with the update script
Google source and my old phone for the permissions

Roms not working:
Cyanogenmod 10/10.1/10.2 by Dazzozo
Any Android rom with API Level below 14 (below 4.0)
B960+ by Cuda


Roms Working:
Cyanogenmod 9/9.1 by Dazzozo
Official ICS (it was an problem with the script :D )
Tesla by kyan31

Now the requirements:

- An Ascend G300(U8815/U8815N/U8818) rooted w/ a custom recovery (TWRP or CWM)
- WiFi Direct permission file (in attachements)
- Official ICS or a rom based in official ICS
- Optional: ADB drivers installed







Method 1: Using adb push


1st: Do a nandroid backup (incase something goes wrong)

2nd: Download the file in the attachements (android.hardware.wifi.direct.xml)

3rd: Connect your phone in your PC using and USB cable (But don't turn on the storage mode)

4th: Go to your Android SDK folder and enter in the platform-tools folder

5th: Open the command prompt doing Shift+Right click into the folder

6th: Do the following commands:

adb shell
adb push android.hardware.wifi.direct.xml /system/etc/permissions


7th: Go to settings and disable Fast Boot then reboot your phone

8th: Go to settings>More and there you have it

Method 2: Using your phone


1st: Do a nandroid backup (incase something goes wrong)

2nd: Download a root explorer and enter it and be sure if you have access to write into system folder

3rd: Download the file in the attachements (android.hardware.wifi.direct.xml)

4th: Go to your explorer and move the android.hardware.wifi.direct.xml into /system/etc/permissions/

5th: Disable the Fast Boot option in the settings

6th: Reboot your phone and go to your setting>more and there you have it
 

Method 3: Using the flashable .zip created by me :) (easiest) (Script made by George109)

1st: Do a nandroid backup (incase something goes wrong)

2nd: Download the file http://rapidshare.co...t Flashable.zip

3rd: Go to your CWM/TWRP recovery and flash the zip

4th: Reboot your phone.

5th: Go to setting>more and you shall have a Wifi Direct option.

If you have any questions please tell me, also if you tried and didnt work in your rom post in the replays: Your Phone: and the rom you are using

wifi direct NOT FLASHABLE.zip

Edited by fabiossilva21
0

Share this post


Link to post
Share on other sites

Thanks for this :)

Would it work in gingerbread, do you know if it's possible?

Edited by george109
1

Share this post


Link to post
Share on other sites

Thanks for this :)

Would it work in gingerbread, do you know if it's possible?

Sorry i dont know my phone came with 4.0.3... But if you make an backup and try and it works tell me :) but if it doesnt tell me and restore from the backup
0

Share this post


Link to post
Share on other sites
Sorry i dont know my phone came with 4.0.3... But if you make an backup and try and it works tell me :) but if it doesnt tell me and restore from the backup

Ok. Thanks. I make an update script for you too :)

 

ui_print("");

ui_print("");

ui_print("");

ui_print("********************");

ui_print("Enable Wi-Fi Direct");

ui_print("For ICS only! "); 

ui_print("********************"); 

ui_print("By: Fabiossilva21");

ui_print("********************");

ui_print("");

ui_print("");

ui_print("Installing, please be patient...");

show_progress(0.300000, 0);

ui_print("Mounting System...");

run_program("/sbin/busybox", "mount", "/system");

show_progress(0.300000, 0);

ui_print("Writing System...");

package_extract_dir("system", "/system");

show_progress(0.300000, 0);

ui_print("Unmounting System..."); 

unmount("/system");

show_progress(0.100000, 0);

ui_print("Installation Complete!");

ui_print("Enjoy!"); 


 

1

Share this post


Link to post
Share on other sites

Ok. Thanks. I make an update script for you too :)


ui_print("");

ui_print("");

ui_print("");

ui_print("********************");

ui_print("Enable Wi-Fi Direct");

ui_print("For ICS only! ");

ui_print("********************");

ui_print("By: Fabiossilva21");

ui_print("********************");

ui_print("");

ui_print("");

ui_print("Installing, please be patient...");

show_progress(0.300000, 0);

ui_print("Mounting System...");

run_program("/sbin/busybox", "mount", "/system");

show_progress(0.300000, 0);

ui_print("Writing System...");

package_extract_dir("system", "/system");

show_progress(0.300000, 0);

ui_print("Unmounting System...");

unmount("/system");

show_progress(0.100000, 0);

ui_print("Installation Complete!");

ui_print("Enjoy!");


Well i already made one but i will change it Thanks :)
0

Share this post


Link to post
Share on other sites
Well i already made one but i will change it Thanks :)
You're welcome :)
1

Share this post


Link to post
Share on other sites
Well its updated and uploaded thx ;)
Great :)

Also, it does not work on gingerbread (the AtomicMod ROM) for me. :(

0

Share this post


Link to post
Share on other sites

Great :)

Also, it does not work on gingerbread (the AtomicMod ROM) for me. :(

:( Well i was seeing in the android developers website and it said "Wi-Fi peer-to-peer (P2P) allows Android 4.0 (API level 14) or later devices..." sorry :(
0

Share this post


Link to post
Share on other sites

Great :)

Also, it does not work on gingerbread (the AtomicMod ROM) for me. :(

I also downgraded my phone to see if it works but no
0

Share this post


Link to post
Share on other sites
:( Well i was seeing in the android developers website and it said "Wi-Fi peer-to-peer (P2P) allows Android 4.0 (API level 14) or later devices..." sorry :(
Its fine :)

I dont really need it anyway, it would just be a good thing to play with! :P

If I ever upgrade back to ICS, then I will definitely give this a go!

1

Share this post


Link to post
Share on other sites

Its fine :)

I dont really need it anyway, it would just be a good thing to play with! :P

If I ever upgrade back to ICS, then I will definitely give this a go!

Aha Thank you :)
0

Share this post


Link to post
Share on other sites

What's benefit of this?

0

Share this post


Link to post
Share on other sites

What's benefit of this?

It is basically bluetooth, where you can send files, except it works over Wi-Fi. It is so much faster. More here: https://en.wikipedia.org/wiki/Wi-Fi_Direct
0

Share this post


Link to post
Share on other sites

any special app to get it working? or we just get wifi direct next to bluetooth option on send?

0

Share this post


Link to post
Share on other sites

any special app to get it working? or we just get wifi direct next to bluetooth option on send?

Well i included an app but if you go into settings>more you shall get a wifi direct option (remember not working with the official ICS im trying to make a patch)
0

Share this post


Link to post
Share on other sites

I use Cm10 so no problem :D

IPMSG app is good for things like these

Edited by bidzapfc
0

Share this post


Link to post
Share on other sites

I use Cm10 so no problem :D

IPMSG app is good for things like these

Ok, i will review the app.

BTW can you tell me if it works on cm10? :) Because I put the wrong rom in working

Edited by fabiossilva21
0

Share this post


Link to post
Share on other sites

Which one is working?

0

Share this post


Link to post
Share on other sites

Sorry it took so long... it doesnt work in CM10

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2016. MoDaCo uses IntelliTxt technology.