Jump to content


Photo

[Tutorial]Enable WiFi Direct in ICS


  • Please log in to reply
27 replies to this topic

#1
fabiossilva21

fabiossilva21

    Newbie

  • Members
  • Pip
  • 33 posts

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

Attached Files


Edited by fabiossilva21, 09 October 2013 - 08:06 PM.

  • 0

#2
george109

george109

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,095 posts
  • Gender:Male
  • Location:Kent, England
  • Interests:Burning up my G300, (and my hands!) by overclocking it and leaving cookie clickers open for 12 hours while leaving it on charge!
    Technology in general, biking and canoeing.
  • Devices:Samsung Galaxy S4 - GT-I9505
Thanks for this :)
Would it work in gingerbread, do you know if it's possible?

Edited by george109, 07 September 2013 - 11:53 PM.

  • 1

:excl:A WARNING TO ALL G300 OWNERS! Please Read! (The Flash Memory Problem!) :excl:

Tutorial: How To (Officially) Unlock Your Bootloader! (The long way, but which definitely works)

Please, Do not use the HuaweiG300.com Tutorial on how to unlock your bootloader, it is better to unlock it officially with my tutorial!

Hello. I am really busy at the moment, so if you PM me, or need help from me, don't expect a reply for a few days weeks months.

Using giffgaff? Well, switch to 3. Its better in every way!

Proof:

Spoiler

 

 

My Device:

Huawei Ascend G300 (U8815) - Sold!

Samsung Galaxy S4 (Black) - The LTE Version - GT-I9505

(Ignore the links above (if there is one). It's a skimwords (advertising) link and nothing to do with me!)

The ROMS I have used:

Spoiler

Download Blink, a great app that controls the status LED on the G300!

Wait for 5 seconds and then click skip ad! Do not download anything in the ad window, that is not the app!

Did I help you?

If I did, Please press the rep_up1.png button, in the bottom right hand corner of my posts.

(If not, Press it anyway!)

If I really helped you, you could also donate to me. Thanks!  :) 


#3
fabiossilva21

fabiossilva21

    Newbie

  • Members
  • Pip
  • 33 posts

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

#4
george109

george109

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,095 posts
  • Gender:Male
  • Location:Kent, England
  • Interests:Burning up my G300, (and my hands!) by overclocking it and leaving cookie clickers open for 12 hours while leaving it on charge!
    Technology in general, biking and canoeing.
  • Devices:Samsung Galaxy S4 - GT-I9505

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

:excl:A WARNING TO ALL G300 OWNERS! Please Read! (The Flash Memory Problem!) :excl:

Tutorial: How To (Officially) Unlock Your Bootloader! (The long way, but which definitely works)

Please, Do not use the HuaweiG300.com Tutorial on how to unlock your bootloader, it is better to unlock it officially with my tutorial!

Hello. I am really busy at the moment, so if you PM me, or need help from me, don't expect a reply for a few days weeks months.

Using giffgaff? Well, switch to 3. Its better in every way!

Proof:

Spoiler

 

 

My Device:

Huawei Ascend G300 (U8815) - Sold!

Samsung Galaxy S4 (Black) - The LTE Version - GT-I9505

(Ignore the links above (if there is one). It's a skimwords (advertising) link and nothing to do with me!)

The ROMS I have used:

Spoiler

Download Blink, a great app that controls the status LED on the G300!

Wait for 5 seconds and then click skip ad! Do not download anything in the ad window, that is not the app!

Did I help you?

If I did, Please press the rep_up1.png button, in the bottom right hand corner of my posts.

(If not, Press it anyway!)

If I really helped you, you could also donate to me. Thanks!  :) 


#5
fabiossilva21

fabiossilva21

    Newbie

  • Members
  • Pip
  • 33 posts

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

#6
george109

george109

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,095 posts
  • Gender:Male
  • Location:Kent, England
  • Interests:Burning up my G300, (and my hands!) by overclocking it and leaving cookie clickers open for 12 hours while leaving it on charge!
    Technology in general, biking and canoeing.
  • Devices:Samsung Galaxy S4 - GT-I9505

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

You're welcome :)

  • 1

:excl:A WARNING TO ALL G300 OWNERS! Please Read! (The Flash Memory Problem!) :excl:

Tutorial: How To (Officially) Unlock Your Bootloader! (The long way, but which definitely works)

Please, Do not use the HuaweiG300.com Tutorial on how to unlock your bootloader, it is better to unlock it officially with my tutorial!

Hello. I am really busy at the moment, so if you PM me, or need help from me, don't expect a reply for a few days weeks months.

Using giffgaff? Well, switch to 3. Its better in every way!

Proof:

Spoiler

 

 

My Device:

Huawei Ascend G300 (U8815) - Sold!

Samsung Galaxy S4 (Black) - The LTE Version - GT-I9505

(Ignore the links above (if there is one). It's a skimwords (advertising) link and nothing to do with me!)

The ROMS I have used:

Spoiler

Download Blink, a great app that controls the status LED on the G300!

Wait for 5 seconds and then click skip ad! Do not download anything in the ad window, that is not the app!

Did I help you?

If I did, Please press the rep_up1.png button, in the bottom right hand corner of my posts.

(If not, Press it anyway!)

If I really helped you, you could also donate to me. Thanks!  :) 


#7
fabiossilva21

fabiossilva21

    Newbie

  • Members
  • Pip
  • 33 posts

You're welcome :)

Well its updated and uploaded thx ;)

  • 0

#8
george109

george109

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,095 posts
  • Gender:Male
  • Location:Kent, England
  • Interests:Burning up my G300, (and my hands!) by overclocking it and leaving cookie clickers open for 12 hours while leaving it on charge!
    Technology in general, biking and canoeing.
  • Devices:Samsung Galaxy S4 - GT-I9505

Well its updated and uploaded thx ;)

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

  • 0

:excl:A WARNING TO ALL G300 OWNERS! Please Read! (The Flash Memory Problem!) :excl:

Tutorial: How To (Officially) Unlock Your Bootloader! (The long way, but which definitely works)

Please, Do not use the HuaweiG300.com Tutorial on how to unlock your bootloader, it is better to unlock it officially with my tutorial!

Hello. I am really busy at the moment, so if you PM me, or need help from me, don't expect a reply for a few days weeks months.

Using giffgaff? Well, switch to 3. Its better in every way!

Proof:

Spoiler

 

 

My Device:

Huawei Ascend G300 (U8815) - Sold!

Samsung Galaxy S4 (Black) - The LTE Version - GT-I9505

(Ignore the links above (if there is one). It's a skimwords (advertising) link and nothing to do with me!)

The ROMS I have used:

Spoiler

Download Blink, a great app that controls the status LED on the G300!

Wait for 5 seconds and then click skip ad! Do not download anything in the ad window, that is not the app!

Did I help you?

If I did, Please press the rep_up1.png button, in the bottom right hand corner of my posts.

(If not, Press it anyway!)

If I really helped you, you could also donate to me. Thanks!  :) 


#9
fabiossilva21

fabiossilva21

    Newbie

  • Members
  • Pip
  • 33 posts

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

#10
fabiossilva21

fabiossilva21

    Newbie

  • Members
  • Pip
  • 33 posts

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

#11
george109

george109

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,095 posts
  • Gender:Male
  • Location:Kent, England
  • Interests:Burning up my G300, (and my hands!) by overclocking it and leaving cookie clickers open for 12 hours while leaving it on charge!
    Technology in general, biking and canoeing.
  • Devices:Samsung Galaxy S4 - GT-I9505

:( 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

:excl:A WARNING TO ALL G300 OWNERS! Please Read! (The Flash Memory Problem!) :excl:

Tutorial: How To (Officially) Unlock Your Bootloader! (The long way, but which definitely works)

Please, Do not use the HuaweiG300.com Tutorial on how to unlock your bootloader, it is better to unlock it officially with my tutorial!

Hello. I am really busy at the moment, so if you PM me, or need help from me, don't expect a reply for a few days weeks months.

Using giffgaff? Well, switch to 3. Its better in every way!

Proof:

Spoiler

 

 

My Device:

Huawei Ascend G300 (U8815) - Sold!

Samsung Galaxy S4 (Black) - The LTE Version - GT-I9505

(Ignore the links above (if there is one). It's a skimwords (advertising) link and nothing to do with me!)

The ROMS I have used:

Spoiler

Download Blink, a great app that controls the status LED on the G300!

Wait for 5 seconds and then click skip ad! Do not download anything in the ad window, that is not the app!

Did I help you?

If I did, Please press the rep_up1.png button, in the bottom right hand corner of my posts.

(If not, Press it anyway!)

If I really helped you, you could also donate to me. Thanks!  :) 


#12
fabiossilva21

fabiossilva21

    Newbie

  • Members
  • Pip
  • 33 posts

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

#13
bidzapfc

bidzapfc

    Enthusiast

  • Members
  • PipPipPip
  • 224 posts
  • Gender:Male
  • Location:Leva obala Save, direktno iz geta
  • Interests:Meeting someone's mother
  • Devices:Huawei Ascend G300
What's benefit of this?

  • 0

If you are reading this, then this warning is for you. Every word you read of this useless fine print is another second of your life. Don't you have other things to do? Is your life so empty you can't honestly think of a better way to spend these moments? Or are you so impressed by authority that you give respect and credence to all who demand it? Do you read everything you're supposed to read? Do you think everything you're supposed to think? Buy what you're told you should want? Get out of your apartment. Meet a member of the opposite sex. Stop the excessive shopping and masturbation. Quit your job, start a fight, prove you're alive. If you don't claim your humanity, you will become a statistic. You have been warned. ~ Tyler


#14
george109

george109

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,095 posts
  • Gender:Male
  • Location:Kent, England
  • Interests:Burning up my G300, (and my hands!) by overclocking it and leaving cookie clickers open for 12 hours while leaving it on charge!
    Technology in general, biking and canoeing.
  • Devices:Samsung Galaxy S4 - GT-I9505

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...ki/Wi-Fi_Direct

  • 0

:excl:A WARNING TO ALL G300 OWNERS! Please Read! (The Flash Memory Problem!) :excl:

Tutorial: How To (Officially) Unlock Your Bootloader! (The long way, but which definitely works)

Please, Do not use the HuaweiG300.com Tutorial on how to unlock your bootloader, it is better to unlock it officially with my tutorial!

Hello. I am really busy at the moment, so if you PM me, or need help from me, don't expect a reply for a few days weeks months.

Using giffgaff? Well, switch to 3. Its better in every way!

Proof:

Spoiler

 

 

My Device:

Huawei Ascend G300 (U8815) - Sold!

Samsung Galaxy S4 (Black) - The LTE Version - GT-I9505

(Ignore the links above (if there is one). It's a skimwords (advertising) link and nothing to do with me!)

The ROMS I have used:

Spoiler

Download Blink, a great app that controls the status LED on the G300!

Wait for 5 seconds and then click skip ad! Do not download anything in the ad window, that is not the app!

Did I help you?

If I did, Please press the rep_up1.png button, in the bottom right hand corner of my posts.

(If not, Press it anyway!)

If I really helped you, you could also donate to me. Thanks!  :) 


#15
fabiossilva21

fabiossilva21

    Newbie

  • Members
  • Pip
  • 33 posts

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...ki/Wi-Fi_Direct

Yep but way faster and you can send at multiple targets at once

  • 0

#16
bidzapfc

bidzapfc

    Enthusiast

  • Members
  • PipPipPip
  • 224 posts
  • Gender:Male
  • Location:Leva obala Save, direktno iz geta
  • Interests:Meeting someone's mother
  • Devices:Huawei Ascend G300
any special app to get it working? or we just get wifi direct next to bluetooth option on send?

  • 0

If you are reading this, then this warning is for you. Every word you read of this useless fine print is another second of your life. Don't you have other things to do? Is your life so empty you can't honestly think of a better way to spend these moments? Or are you so impressed by authority that you give respect and credence to all who demand it? Do you read everything you're supposed to read? Do you think everything you're supposed to think? Buy what you're told you should want? Get out of your apartment. Meet a member of the opposite sex. Stop the excessive shopping and masturbation. Quit your job, start a fight, prove you're alive. If you don't claim your humanity, you will become a statistic. You have been warned. ~ Tyler


#17
fabiossilva21

fabiossilva21

    Newbie

  • Members
  • Pip
  • 33 posts

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

#18
bidzapfc

bidzapfc

    Enthusiast

  • Members
  • PipPipPip
  • 224 posts
  • Gender:Male
  • Location:Leva obala Save, direktno iz geta
  • Interests:Meeting someone's mother
  • Devices:Huawei Ascend G300
I use Cm10 so no problem :D


IPMSG app is good for things like these

Edited by bidzapfc, 08 September 2013 - 08:29 PM.

  • 0

If you are reading this, then this warning is for you. Every word you read of this useless fine print is another second of your life. Don't you have other things to do? Is your life so empty you can't honestly think of a better way to spend these moments? Or are you so impressed by authority that you give respect and credence to all who demand it? Do you read everything you're supposed to read? Do you think everything you're supposed to think? Buy what you're told you should want? Get out of your apartment. Meet a member of the opposite sex. Stop the excessive shopping and masturbation. Quit your job, start a fight, prove you're alive. If you don't claim your humanity, you will become a statistic. You have been warned. ~ Tyler


#19
fabiossilva21

fabiossilva21

    Newbie

  • Members
  • Pip
  • 33 posts

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, 08 September 2013 - 09:02 PM.

  • 0

#20
bidzapfc

bidzapfc

    Enthusiast

  • Members
  • PipPipPip
  • 224 posts
  • Gender:Male
  • Location:Leva obala Save, direktno iz geta
  • Interests:Meeting someone's mother
  • Devices:Huawei Ascend G300
Which one is working?

  • 0

If you are reading this, then this warning is for you. Every word you read of this useless fine print is another second of your life. Don't you have other things to do? Is your life so empty you can't honestly think of a better way to spend these moments? Or are you so impressed by authority that you give respect and credence to all who demand it? Do you read everything you're supposed to read? Do you think everything you're supposed to think? Buy what you're told you should want? Get out of your apartment. Meet a member of the opposite sex. Stop the excessive shopping and masturbation. Quit your job, start a fight, prove you're alive. If you don't claim your humanity, you will become a statistic. You have been warned. ~ Tyler





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users