1 wpadebug - wpa_supplicant and Wi-Fi debugging app for Android
2 Copyright (c) 2013, Jouni Malinen <j@w1.fi> and contributors
5 This program is licensed under the BSD license (the one with
6 advertisement clause removed). See the top level README for detailed
9 If you are submitting changes to the project, please see CONTRIBUTIONS
10 file for more instructions.
13 NOTE! This Android app is for debugging and testing purposes only. It is
14 not supposed to be installed on a production use device and doing so may
15 result in complete loss of security protections on the device.
22 - Install Android SDK and build tools
24 wpadebug depends on zxing core to launch QR code display/scanning.
27 - mkdir hostap/wpadebug/libs # target for the jar file
29 - clone latest zxing code [git clone https://github.com/zxing/zxing.git]
31 - run: mvn install -DskipTests
32 - copy target/core-*.*.*-SNAPSHOT.jar to hostap/wpadebug/libs
34 To build wpadebug application:
36 - update project target if desired; for example:
38 android update project --target 1 --path $PWD
42 Installation (with adb over USB)
45 adb install bin/wpadebug-debug.apk
47 NOTE: Following steps enable any app on the system to get root access!
48 This is not suitable for any production use. This is needed for direct
49 wpa_supplicant access and some networking operating in general. You can
50 still use rest of the wpadebug app without doing this, but those
51 functions will not work unless this step part of installation is
52 done. It should be obvious that these steps require a rooted device. In
53 addition, if you do not understand what the following commands do,
54 please do not run them.
58 adb shell cp /system/bin/mksh /system/bin/mksh-su
59 adb shell chmod 6755 /system/bin/mksh-su
61 Optionally, a text file with a set of command can be installed to allow
62 arbitrary shell commands to be executed. This text file need to be in
63 /data/local/wpadebug.cmds and use title@command format per line. For
65 version@cat /proc/version
67 Similarly, /data/local/wpadebug.wpacmds can be used to define additional
68 wpa_supplicant control interface commands.
76 adb shell rm /system/bin/mksh-su
78 adb uninstall w1.fi.wpadebug