Recent Android version doesn't allow cleartext parsing by WebView by
default:
Error message: ERR_CLEARTEXT_NOT_PERMITTED.
To resolve this wpadebug need to have following updated under
application definition of AndroidManifest.xml
- android:usesCleartextTraffic="true"
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Set SCAN_MODE to accept only QR Codes and close the scanner more
reliably after a successfully scanned QR Code.
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Add QrCodeReadActivity that makes a decision to select between InputUri
and QrCodeScannerActivity depending on the availability of the camera in
the device.
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This should help to read the URI from the QR Code Scanner's (USB HID
devices instead of USB video device) that decodes the QR Code.
This dialog box provisions the mechanism to enter the decoded
URI code from such hardware devices.
This dialog can be used with:
am start -n w1.fi.wpadebug/w1.fi.wpadebug.InputUri
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This matches the current zxing target level and as such, is more likely
to be installed on devices that build wpadebug.
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Enhance wpadebug application to support scanning and displaying of QR
codes. This depends on a third-party source: zxing
(https://github.com/zxing/zxing).
Shell command to launch scanner/viewer via wpadebug is:
>adb root
>adb shell
Scanner:
>am start -n w1.fi.wpadebug/w1.fi.wpadebug.QrCodeScannerActivity
Viewer:
>am start -n w1.fi.wpadebug/w1.fi.wpadebug.QrCodeDisplayActivity
QR code string input/output file would be generated in
'/sdcard/wpadebug_qrdata.txt' in the device.
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This provides a simple web browser that can be started and stopped from
other apps or native applications.
This activity can be started with the following command:
am start -a android.action.MAIN -c android.intent.category.LAUNCHER \
-n w1.fi.wpadebug/.WpaWebViewActivity -e w1.fi.wpadebug.URL <URL>
If <URL> is set to FINISH the activity is finished.
Signed-hostap: Jouni Malinen <j@w1.fi>
This simplifies both activities by making the DisplayMessageActity
simple text message displaying operation and the NFC activity as
something that is started only through NFC intent triggers.
Signed-hostap: Jouni Malinen <j@w1.fi>
This tool can be used to debug Wi-Fi functionality on Android both
through the Android framework and through direct access to
wpa_supplicant.
Signed-hostap: Jouni Malinen <j@w1.fi>