Commit Graph

5 Commits

Author SHA1 Message Date
Jimmy Chen
c2bb1cb556 p2p: check device capabilities before launching this app
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
2020-05-26 18:31:14 +08:00
Jimmy Chen
2e1f06e591 WiFiDirectDemo: update permission requirement
After Q-release, WiFi Direct requires FINE location permission.

Bug: 139787683
Test: build and launch
Change-Id: I4599ab24498f07fe0dd9873a356d8f8b34502fff
2019-08-22 13:11:27 +08:00
Jimmy Chen
9698e38ec3 WiFiDirectDemo: fix no peer in list after m-release
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
2018-12-07 19:00:06 +08:00
Jimmy Chen
fc884a6df0 WiFiDirectDemo: fix broken sample code
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
2018-11-20 10:22:33 +08:00
Anirudh Dewani
12634496be WiFiDirectDemo
Change-Id: I9ea5020a39f02fd2ba4934397fa9a2ea79f781b4
2011-10-06 05:35:23 +05:30