mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
wpadebug: Add main screen buttons for QR Code operations
These can be used for manual testing of the DPP QR Code functionality. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
8b244b0009
commit
83565fd21e
@ -116,6 +116,30 @@
|
|||||||
android:onClick="runCommands"
|
android:onClick="runCommands"
|
||||||
/>
|
/>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
>
|
||||||
|
<Button
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="QR Scan"
|
||||||
|
android:onClick="runQrScan"
|
||||||
|
/>
|
||||||
|
<Button
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="QR Input"
|
||||||
|
android:onClick="runQrInput"
|
||||||
|
/>
|
||||||
|
<Button
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="QR Display"
|
||||||
|
android:onClick="runQrDisplay"
|
||||||
|
/>
|
||||||
|
</LinearLayout>
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
@ -47,6 +47,24 @@ public class MainActivity extends Activity
|
|||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void runQrScan(View view)
|
||||||
|
{
|
||||||
|
Intent intent = new Intent(this, QrCodeScannerActivity.class);
|
||||||
|
startActivity(intent);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void runQrInput(View view)
|
||||||
|
{
|
||||||
|
Intent intent = new Intent(this, InputUri.class);
|
||||||
|
startActivity(intent);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void runQrDisplay(View view)
|
||||||
|
{
|
||||||
|
Intent intent = new Intent(this, QrCodeDisplayActivity.class);
|
||||||
|
startActivity(intent);
|
||||||
|
}
|
||||||
|
|
||||||
public void runWpaCommands(View view)
|
public void runWpaCommands(View view)
|
||||||
{
|
{
|
||||||
Intent intent = new Intent(this, WpaCommandListActivity.class);
|
Intent intent = new Intent(this, WpaCommandListActivity.class);
|
||||||
|
Loading…
Reference in New Issue
Block a user