main.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="wrap_content"
  4. android:layout_height="wrap_content"
  5. android:orientation="vertical"
  6. >
  7. <TextView
  8. android:layout_width="wrap_content"
  9. android:layout_height="wrap_content"
  10. android:text="Framework commands"
  11. />
  12. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13. android:layout_width="match_parent"
  14. android:layout_height="wrap_content"
  15. android:orientation="horizontal"
  16. >
  17. <Button
  18. android:layout_width="wrap_content"
  19. android:layout_height="wrap_content"
  20. android:text="WifiManager"
  21. android:onClick="wifiManagerInfo"
  22. />
  23. <Button
  24. android:layout_width="wrap_content"
  25. android:layout_height="wrap_content"
  26. android:text="WifiInfo"
  27. android:onClick="wifiInfo"
  28. />
  29. <Button
  30. android:layout_width="wrap_content"
  31. android:layout_height="wrap_content"
  32. android:text="Networks"
  33. android:onClick="wifiConfiguredNetworks"
  34. />
  35. </LinearLayout>
  36. <TextView
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:text="wpa_supplicant commands"
  40. />
  41. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  42. android:layout_width="wrap_content"
  43. android:layout_height="wrap_content"
  44. android:orientation="horizontal"
  45. >
  46. <Button
  47. android:layout_width="wrap_content"
  48. android:layout_height="wrap_content"
  49. android:text="status"
  50. android:onClick="wpaStatus"
  51. />
  52. <Button
  53. android:layout_width="wrap_content"
  54. android:layout_height="wrap_content"
  55. android:text="PMKSA"
  56. android:onClick="wpaPmksa"
  57. />
  58. <Button
  59. android:layout_width="wrap_content"
  60. android:layout_height="wrap_content"
  61. android:text="networks"
  62. android:onClick="wpaListNetworks"
  63. />
  64. <Button
  65. android:layout_width="wrap_content"
  66. android:layout_height="wrap_content"
  67. android:text="creds"
  68. android:onClick="wpaListCreds"
  69. />
  70. </LinearLayout>
  71. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  72. android:layout_width="match_parent"
  73. android:layout_height="wrap_content"
  74. android:orientation="horizontal"
  75. >
  76. <Button
  77. android:layout_width="wrap_content"
  78. android:layout_height="wrap_content"
  79. android:text="scanres"
  80. android:onClick="wpaScanResults"
  81. />
  82. </LinearLayout>
  83. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  84. android:layout_width="match_parent"
  85. android:layout_height="wrap_content"
  86. android:orientation="horizontal"
  87. >
  88. <Button
  89. android:layout_width="wrap_content"
  90. android:layout_height="wrap_content"
  91. android:text="log:info"
  92. android:onClick="wpaLogLevelInfo"
  93. />
  94. <Button
  95. android:layout_width="wrap_content"
  96. android:layout_height="wrap_content"
  97. android:text="log:debug"
  98. android:onClick="wpaLogLevelDebug"
  99. />
  100. <Button
  101. android:layout_width="wrap_content"
  102. android:layout_height="wrap_content"
  103. android:text="log:excessive"
  104. android:onClick="wpaLogLevelExcessive"
  105. />
  106. </LinearLayout>
  107. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  108. android:layout_width="match_parent"
  109. android:layout_height="wrap_content"
  110. android:orientation="horizontal"
  111. >
  112. <EditText android:id="@+id/edit_cmd"
  113. android:layout_weight="1"
  114. android:layout_width="0dp"
  115. android:layout_height="wrap_content"
  116. android:hint="wpa_cli command"
  117. />
  118. <Button
  119. android:layout_width="wrap_content"
  120. android:layout_height="wrap_content"
  121. android:text="Run"
  122. android:onClick="runWpaCliCmd"
  123. />
  124. </LinearLayout>
  125. <TextView
  126. android:layout_width="wrap_content"
  127. android:layout_height="wrap_content"
  128. android:text="Shell commands"
  129. />
  130. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  131. android:layout_width="match_parent"
  132. android:layout_height="wrap_content"
  133. android:orientation="horizontal"
  134. >
  135. <Button
  136. android:layout_width="wrap_content"
  137. android:layout_height="wrap_content"
  138. android:text="id"
  139. android:onClick="runId"
  140. />
  141. </LinearLayout>
  142. </LinearLayout>