Skip to content

Instantly share code, notes, and snippets.

@justindarc
Last active September 4, 2018 20:08
Show Gist options
  • Save justindarc/1d88d7d14e3264e8a666 to your computer and use it in GitHub Desktop.
Save justindarc/1d88d7d14e3264e8a666 to your computer and use it in GitHub Desktop.
enable_wifi_direct.sh
#!/bin/sh
adb shell "mount -o rw,remount /system"
adb shell "stop b2g"
adb shell "echo \"ro.moz.wifi.p2p_supported=1\" >> /system/build.prop"
adb shell "mount -o ro,remount /system"
adb reboot
@sole
Copy link

sole commented Mar 31, 2015

heya, I tried to do this with a Nexus 4 and it wouldn't let me edit /system/build.prop until I remounted the /system partition in rw mode using this tip

so the right version should be

#!/bin/sh
adb shell "mount -o rw,remount /system"
adb shell "stop b2g"
adb shell "echo \"ro.moz.wifi.p2p_supported=1\" >> /system/build.prop"
adb shell "mount -o ro,remount /system"
adb reboot

@justindarc
Copy link
Author

@sole Thanks for the tip!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment