Bug: 157446389
Test: launch this app with below condition
* remove Wi-Fi Direct support, the sample app should be closed, but not crash.
* wifi is off, the sample app should be closed, but not crash.
* wifi is on, the sample app could be launced normally.
Change-Id: I056dae7d1ab069ba85612328ea4e1750332c25ff
After Q-release, WiFi Direct requires FINE location permission.
Bug: 139787683
Test: build and launch
Change-Id: I4599ab24498f07fe0dd9873a356d8f8b34502fff
After m-release, location permission is necessary for getting wifi scan
results, including p2p scan results.
Bug: 113998459
Test: manual test with two devices
Change-Id: I0f7e3578108c690bea382c41abd28b98fd1d5d31
Sender sent the file indeed, but receiver cannot save content normally due to below reason:
1. App shouldn't create the directory in external storage root,
it should put files in its application path.
2. It is not allowed using file:// uri for posting file content above API 24,
it should be done by FileProvider.
Bug: 113998459
Test: manual test with two devices
Change-Id: Ie50dd64206009f07414a85262e725cc4d8ac1757