Jump to content

[Tutorial]Enable WiFi Direct in ICS


Recommended Posts

Guest fabiossilva21
Posted (edited)

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
Guest george109
Posted (edited)

Thanks for this :)

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

Edited by george109
Guest fabiossilva21
Posted

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
Guest george109
Posted
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!"); 


 

Guest fabiossilva21
Posted

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 :)
Guest george109
Posted
Well i already made one but i will change it Thanks :)
You're welcome :)
Guest fabiossilva21
Posted

You're welcome :)

Well its updated and uploaded thx ;)
Guest george109
Posted
Well its updated and uploaded thx ;)
Great :)

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

Guest fabiossilva21
Posted

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 :(
Guest fabiossilva21
Posted

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
Guest george109
Posted
:( 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!

Guest fabiossilva21
Posted

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 :)
Guest bidzapfc
Posted

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

Guest fabiossilva21
Posted

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)
Guest bidzapfc
Posted (edited)

I use Cm10 so no problem :D

IPMSG app is good for things like these

Edited by bidzapfc
Guest fabiossilva21
Posted (edited)

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
Guest fabiossilva21
Posted

Which one is working?

Its confirmed to be working in CM9 and CM9.1, and now any ICS Based rom i managed to make a fix
Guest fabiossilva21
Posted

Android 4.0/4.0.4 Cyanogenmod 9/9.1 and any of roms based in Stock ICS

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.