Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@sole 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

This comment has been minimized.

Copy link
Owner Author

@justindarc justindarc commented Apr 2, 2015

@sole Thanks for the tip!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.