├── .gitignore ├── LICENSE ├── README.md ├── app ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── wkv │ │ └── android │ │ └── evait │ │ └── com │ │ └── wifikeyview │ │ └── ApplicationTest.java │ ├── main │ ├── AndroidManifest.xml │ ├── java │ │ └── wkv │ │ │ └── android │ │ │ └── evait │ │ │ └── com │ │ │ └── wifikeyview │ │ │ ├── ListClickListener.java │ │ │ ├── MainActivity.java │ │ │ ├── WifiAdapter.java │ │ │ ├── WifiComparator.java │ │ │ └── WifiObject.java │ └── res │ │ ├── drawable-hdpi │ │ ├── evait_logo.png │ │ ├── ic_action_barcode_2.png │ │ ├── ic_action_beer.png │ │ ├── ic_action_info.png │ │ ├── ic_action_key.png │ │ ├── ic_action_reload.png │ │ ├── ic_action_search.png │ │ ├── ic_action_share.png │ │ ├── ic_action_tag.png │ │ ├── ic_action_user.png │ │ └── ic_wifi_lock.png │ │ ├── drawable-ldpi │ │ ├── evait_logo.png │ │ ├── ic_action_barcode_2.png │ │ └── ic_action_search.png │ │ ├── drawable-mdpi │ │ ├── evait_logo.png │ │ ├── ic_action_barcode_2.png │ │ ├── ic_action_beer.png │ │ ├── ic_action_info.png │ │ ├── ic_action_key.png │ │ ├── ic_action_reload.png │ │ ├── ic_action_search.png │ │ ├── ic_action_share.png │ │ ├── ic_action_tag.png │ │ ├── ic_action_user.png │ │ └── ic_wifi_lock.png │ │ ├── drawable-tvdpi │ │ ├── ic_action_barcode_2.png │ │ └── ic_action_search.png │ │ ├── drawable-xhdpi │ │ ├── evait_logo.png │ │ ├── ic_action_barcode_2.png │ │ ├── ic_action_beer.png │ │ ├── ic_action_info.png │ │ ├── ic_action_key.png │ │ ├── ic_action_reload.png │ │ ├── ic_action_search.png │ │ ├── ic_action_share.png │ │ ├── ic_action_tag.png │ │ ├── ic_action_user.png │ │ └── ic_wifi_lock.png │ │ ├── drawable-xxhdpi │ │ ├── evait_logo.png │ │ ├── ic_action_barcode_2.png │ │ ├── ic_action_beer.png │ │ ├── ic_action_info.png │ │ ├── ic_action_key.png │ │ ├── ic_action_reload.png │ │ ├── ic_action_search.png │ │ ├── ic_action_share.png │ │ ├── ic_action_tag.png │ │ ├── ic_action_user.png │ │ └── ic_wifi_lock.png │ │ ├── drawable-xxxhdpi │ │ ├── evait_logo.png │ │ ├── ic_action_barcode_2.png │ │ ├── ic_action_beer.png │ │ ├── ic_action_info.png │ │ ├── ic_action_key.png │ │ ├── ic_action_reload.png │ │ ├── ic_action_search.png │ │ ├── ic_action_share.png │ │ ├── ic_action_tag.png │ │ ├── ic_action_user.png │ │ └── ic_wifi_lock.png │ │ ├── layout │ │ ├── about_view.xml │ │ ├── activity_main.xml │ │ ├── adapter_view.xml │ │ ├── donate_view.xml │ │ ├── log_click_dialog.xml │ │ └── qr_dialog.xml │ │ ├── menu │ │ └── menu_main.xml │ │ ├── mipmap-hdpi │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_beer.png │ │ └── ic_launcher.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_beer.png │ │ └── ic_launcher.png │ │ ├── values-de │ │ └── strings.xml │ │ ├── values-w820dp │ │ └── dimens.xml │ │ └── values │ │ ├── colors.xml │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml │ └── test │ └── java │ └── wkv │ └── android │ └── evait │ └── com │ └── wifikeyview │ └── ExampleUnitTest.java ├── build.gradle ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | *.iml 3 | local.properties 4 | build 5 | .gradle 6 | .settings 7 | .project 8 | .classpath 9 | release 10 | android-wifi-key-view.iml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Wifi Key View for Android (root required) 2 | 3 | No ads. No unnecessary permissions. Clear style. Open-source. 4 | 5 | [Get it on Google Play](https://play.google.com/store/apps/details?id=wkv.android.evait.com.wifikeyview) 8 | 9 | This app displays all the wireless passwords and their associated name (SSID) stored on your android device. 10 | Supported wireless profiles: 11 | - WEP (including key index) 12 | - WPA / WPA2 PSK 13 | - 802.1x (including username and password) 14 | 15 | Click on a profile to copy the wireless key to clipboard, or hold to get more options (like share or copy SSID to clipboard). 16 | 17 | This app should work with all Android Versions >= 4.0.2 ("Ice Cream Sandwich") and has been tested successfully on the following devices: 18 | - HTC 10 (Android 6.0.1) with SuperSU 2.72 19 | - Sony Xperia Z 2 (Android 6.0.1) with SuperSU 2.72 20 | - LG L72 (Android 4.4.2) with SuperSU 1.94 21 | - LG Nexus 5 (Android 6.0.1) with SuperSU 2.72 22 | - HTC One M7 (Android 5.0.2) with SuperSU 2.82-SR5 23 | 24 | Development time: 25 | - four coffees 26 | - two beers 27 | - one android reinstall 28 | -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 28 5 | buildToolsVersion '28.0.3' 6 | 7 | defaultConfig { 8 | applicationId "wkv.android.evait.com.wifikeyview" 9 | minSdkVersion 15 10 | targetSdkVersion 28 11 | versionCode 10 12 | versionName '1.7' 13 | } 14 | 15 | buildTypes { 16 | release { 17 | minifyEnabled true 18 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 19 | } 20 | debug { 21 | zipAlignEnabled true 22 | } 23 | } 24 | 25 | compileOptions { 26 | encoding = 'UTF-8' 27 | sourceCompatibility JavaVersion.VERSION_1_8 28 | targetCompatibility JavaVersion.VERSION_1_8 29 | } 30 | } 31 | 32 | dependencies { 33 | implementation fileTree(include: ['*.jar'], dir: 'libs') 34 | 35 | implementation 'androidx.annotation:annotation:1.0.1' 36 | implementation 'androidx.appcompat:appcompat:1.1.0-alpha01' 37 | implementation 'androidx.core:core:1.1.0-alpha03' 38 | 39 | implementation 'com.google.zxing:core:3.3.3' 40 | implementation 'com.anjlab.android.iab.v3:library:1.0.44' 41 | 42 | testImplementation 'junit:junit:4.13-beta-1' 43 | androidTestImplementation 'androidx.test:runner:1.1.1' 44 | } 45 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in D:\Programme\installiert\Android\sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /app/src/androidTest/java/wkv/android/evait/com/wifikeyview/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package wkv.android.evait.com.wifikeyview; 2 | 3 | import android.content.Context; 4 | 5 | import org.junit.Test; 6 | import org.junit.runner.RunWith; 7 | 8 | import androidx.test.InstrumentationRegistry; 9 | import androidx.test.runner.AndroidJUnit4; 10 | 11 | import static org.junit.Assert.assertEquals; 12 | 13 | /** 14 | * Instrumentation test, which will execute on an Android device. 15 | * 16 | * @see Testing documentation 17 | */ 18 | @RunWith(AndroidJUnit4.class) 19 | public class ApplicationTest { 20 | @Test 21 | public void useAppContext() { 22 | // Context of the app under test. 23 | Context appContext = InstrumentationRegistry.getTargetContext(); 24 | 25 | assertEquals("wkv.android.evait.com.wifikeyview", appContext.getPackageName()); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /app/src/main/java/wkv/android/evait/com/wifikeyview/ListClickListener.java: -------------------------------------------------------------------------------- 1 | package wkv.android.evait.com.wifikeyview; 2 | 3 | import android.app.Dialog; 4 | import android.content.Context; 5 | import android.content.Intent; 6 | import android.graphics.Bitmap; 7 | import android.graphics.Color; 8 | import android.util.DisplayMetrics; 9 | import android.util.Log; 10 | import android.view.View; 11 | import android.view.Window; 12 | import android.widget.AdapterView; 13 | import android.widget.AdapterView.OnItemClickListener; 14 | import android.widget.AdapterView.OnItemLongClickListener; 15 | import android.widget.ImageView; 16 | import android.widget.LinearLayout; 17 | import android.widget.TextView; 18 | import android.widget.Toast; 19 | 20 | import com.google.zxing.BarcodeFormat; 21 | import com.google.zxing.WriterException; 22 | import com.google.zxing.common.BitMatrix; 23 | import com.google.zxing.qrcode.QRCodeWriter; 24 | 25 | import androidx.appcompat.app.AppCompatActivity; 26 | 27 | 28 | /** 29 | * Created by as on 06.07.2016. 30 | */ 31 | public class ListClickListener implements OnItemClickListener, OnItemLongClickListener { 32 | private Context ctx; 33 | private int sdk = android.os.Build.VERSION.SDK_INT; 34 | 35 | public ListClickListener(Context ctx) { 36 | this.ctx = ctx; 37 | } 38 | 39 | @Override 40 | public void onItemClick(AdapterView parent, View view, int position, long id) { 41 | WifiObject curO = (WifiObject) parent.getItemAtPosition(position); 42 | copyToClipBoard(curO.getKey()); 43 | 44 | } 45 | 46 | @Override 47 | public boolean onItemLongClick(AdapterView parent, View view, int position, long id) { 48 | 49 | showDialog((WifiObject) parent.getItemAtPosition(position)); 50 | return true; 51 | } 52 | 53 | private void copyToClipBoard(String value) { 54 | copyToClipBoard("Key", value); 55 | } 56 | 57 | private void copyToClipBoard(String name, String value) { 58 | int sdk = android.os.Build.VERSION.SDK_INT; 59 | if (sdk < android.os.Build.VERSION_CODES.HONEYCOMB) { 60 | android.text.ClipboardManager clipboard = 61 | (android.text.ClipboardManager) ctx.getSystemService(Context.CLIPBOARD_SERVICE); 62 | clipboard.setText(value); 63 | } else { 64 | android.content.ClipboardManager clipboard = 65 | (android.content.ClipboardManager) ctx.getSystemService(Context.CLIPBOARD_SERVICE); 66 | android.content.ClipData clip = android.content.ClipData.newPlainText(name, value); 67 | clipboard.setPrimaryClip(clip); 68 | } 69 | Toast.makeText(ctx, "Copied " + name + " to Clipboard", Toast.LENGTH_SHORT).show(); 70 | } 71 | 72 | public void showDialog(final WifiObject curO) { 73 | final Dialog dialog = new Dialog(ctx); 74 | dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); 75 | dialog.setCancelable(true); 76 | dialog.setContentView(R.layout.log_click_dialog); 77 | 78 | LinearLayout btn_name = dialog.findViewById(R.id.btn_name); 79 | LinearLayout btn_key = dialog.findViewById(R.id.btn_key); 80 | LinearLayout btn_user = dialog.findViewById(R.id.btn_user); 81 | LinearLayout btn_qr = dialog.findViewById(R.id.btn_qr); 82 | LinearLayout btn_share = dialog.findViewById(R.id.btn_share); 83 | 84 | btn_name.setOnClickListener(v -> { 85 | copyToClipBoard("SSID", curO.getSsid()); 86 | dialog.dismiss(); 87 | }); 88 | 89 | btn_key.setOnClickListener(v -> { 90 | copyToClipBoard("Key", curO.getKey()); 91 | dialog.dismiss(); 92 | }); 93 | 94 | if (curO.getTyp().equals(WifiObject.TYP_ENTERPRISE) && curO.getUser().length() > 0) { 95 | btn_user.setOnClickListener(v -> { 96 | copyToClipBoard("User", curO.getUser()); 97 | dialog.dismiss(); 98 | }); 99 | btn_user.setVisibility(LinearLayout.VISIBLE); 100 | } else { 101 | btn_user.setVisibility(LinearLayout.GONE); 102 | } 103 | 104 | btn_qr.setOnClickListener(v -> { 105 | 106 | final Dialog dialogQr = new Dialog(ctx); 107 | dialogQr.requestWindowFeature(Window.FEATURE_NO_TITLE); 108 | dialogQr.setCancelable(true); 109 | dialogQr.setContentView(R.layout.qr_dialog); 110 | 111 | ImageView imageQr = dialogQr.findViewById(R.id.imageQr); 112 | TextView TextQrSsid = dialogQr.findViewById(R.id.textViewQrSsid); 113 | TextView TextQrWarn = dialogQr.findViewById(R.id.textViewQrWarn); 114 | 115 | 116 | try { 117 | 118 | //WIFI:T:WPA;S:mynetwork;P:mypass;; 119 | 120 | String wifiUser = ""; 121 | String wifiTyp = "WEP"; //default 122 | if (curO.getTyp().equals(WifiObject.TYP_WEP)) { 123 | wifiTyp = "WEP"; 124 | } else if (curO.getTyp().equals(WifiObject.TYP_WPA)) { 125 | wifiTyp = "WPA"; 126 | } else if (curO.getTyp().equals(WifiObject.TYP_ENTERPRISE)) { 127 | // wpa enterprise is not supported by default qr codes 128 | wifiTyp = "WPA"; 129 | wifiUser = "U:" + qrEncode(curO.getUser()); 130 | //Toast.makeText(ctx, R.string.error_qr_wpa_enterprise, Toast.LENGTH_LONG).show(); 131 | TextQrWarn.setText(ctx.getText(R.string.error_qr_wpa_enterprise)); 132 | TextQrWarn.setVisibility(View.VISIBLE); 133 | } 134 | 135 | 136 | String wifiText = "WIFI:T:" 137 | + qrEncode(wifiTyp) + ";S:" 138 | + qrEncode(curO.getSsid()) + ";P:" 139 | + qrEncode(curO.getKey()) + ";" + wifiUser + ";"; 140 | 141 | 142 | final Bitmap pix = encodeAsBitmap(wifiText); 143 | 144 | if (pix != null) { 145 | imageQr.setImageBitmap(pix); 146 | TextQrSsid.setText(curO.getSsid()); 147 | dialogQr.show(); 148 | } else { 149 | Toast.makeText(ctx, R.string.error_qr_generate, Toast.LENGTH_SHORT).show(); 150 | } 151 | 152 | } catch (WriterException e1) { 153 | // TODO Auto-generated catch block 154 | e1.printStackTrace(); 155 | } 156 | 157 | 158 | dialog.dismiss(); 159 | }); 160 | 161 | btn_share.setOnClickListener(v -> { 162 | Intent txtIntent = new Intent(Intent.ACTION_SEND); 163 | txtIntent.setType("text/plain"); 164 | txtIntent.putExtra(Intent.EXTRA_SUBJECT, ctx.getString(R.string.app_name)); 165 | txtIntent.putExtra(Intent.EXTRA_TEXT, curO.toString()); 166 | ctx.startActivity(Intent.createChooser(txtIntent, "Share")); 167 | dialog.dismiss(); 168 | }); 169 | 170 | dialog.show(); 171 | 172 | } 173 | 174 | Bitmap encodeAsBitmap(String str) throws WriterException { 175 | 176 | BitMatrix result; 177 | try { 178 | int qrSize = getQrSize(); 179 | if (MainActivity.isDebug) { 180 | Log.d(MainActivity.TAG, "QR-Size: " + qrSize); 181 | } 182 | 183 | result = new QRCodeWriter().encode(str, 184 | BarcodeFormat.QR_CODE, qrSize, qrSize); 185 | } catch (IllegalArgumentException iae) { 186 | // Unsupported format 187 | return null; 188 | } 189 | 190 | int w = result.getWidth(); 191 | int h = result.getHeight(); 192 | int[] pixels = new int[w * h]; 193 | for (int y = 0; y < h; y++) { 194 | int offset = y * w; 195 | for (int x = 0; x < w; x++) { 196 | pixels[offset + x] = result.get(x, y) ? Color.BLACK : Color.WHITE; 197 | } 198 | } 199 | Bitmap bitmap = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888); 200 | bitmap.setPixels(pixels, 0, w, 0, 0, w, h); 201 | return bitmap; 202 | } 203 | 204 | private String qrEncode(String str) { 205 | // https://github.com/zxing/zxing/wiki/Barcode-Contents#wifi-network-config-android 206 | // some magic at this point. they say wi have to escape "\", ";", "," and ":" 207 | // but everyone seems to escape only some of them... 208 | // eg. https://zxing.appspot.com/generator/ did not escape "," 209 | 210 | 211 | String result = str; 212 | if (result == null || result.isEmpty()) { 213 | result = ""; 214 | } 215 | 216 | result = result.replaceAll("\\\\", "\\\\\\\\"); 217 | result = result.replaceAll(";", "\\\\;"); 218 | result = result.replaceAll(",", "\\\\,"); 219 | result = result.replaceAll(":", "\\\\:"); 220 | 221 | 222 | return result; 223 | } 224 | 225 | private int getQrSize() { 226 | 227 | // get available height and width 228 | DisplayMetrics displayMetrics = new DisplayMetrics(); 229 | ((AppCompatActivity) ctx).getWindowManager().getDefaultDisplay().getMetrics(displayMetrics); 230 | int height = displayMetrics.heightPixels; 231 | int width = displayMetrics.widthPixels; 232 | 233 | // get the smallest value 234 | int result = width; 235 | if (height < width) { 236 | result = height; 237 | } 238 | 239 | if (result <= 0) { 240 | return 900; 241 | } else { 242 | //return 70% of screen 243 | return ((int) ((((double) result) * 70) / 100)); 244 | } 245 | 246 | } 247 | 248 | 249 | } 250 | -------------------------------------------------------------------------------- /app/src/main/java/wkv/android/evait/com/wifikeyview/MainActivity.java: -------------------------------------------------------------------------------- 1 | package wkv.android.evait.com.wifikeyview; 2 | 3 | import android.app.Dialog; 4 | import android.content.Intent; 5 | import android.os.Bundle; 6 | import android.util.Log; 7 | import android.view.Menu; 8 | import android.view.MenuItem; 9 | import android.view.View; 10 | import android.view.Window; 11 | import android.widget.Button; 12 | import android.widget.Filter; 13 | import android.widget.ListView; 14 | import android.widget.Spinner; 15 | import android.widget.TextView; 16 | import android.widget.Toast; 17 | 18 | import com.anjlab.android.iab.v3.BillingProcessor; 19 | import com.anjlab.android.iab.v3.TransactionDetails; 20 | 21 | import org.w3c.dom.Document; 22 | import org.w3c.dom.Element; 23 | import org.w3c.dom.NamedNodeMap; 24 | import org.w3c.dom.Node; 25 | import org.w3c.dom.NodeList; 26 | 27 | import java.io.BufferedReader; 28 | import java.io.InputStreamReader; 29 | import java.io.OutputStream; 30 | 31 | import javax.xml.parsers.DocumentBuilder; 32 | import javax.xml.parsers.DocumentBuilderFactory; 33 | 34 | import androidx.annotation.NonNull; 35 | import androidx.annotation.Nullable; 36 | import androidx.appcompat.app.AppCompatActivity; 37 | import androidx.appcompat.widget.SearchView; 38 | import androidx.core.view.MenuItemCompat; 39 | 40 | public class MainActivity extends AppCompatActivity implements BillingProcessor.IBillingHandler { 41 | 42 | BillingProcessor bp; 43 | private static boolean isSearchable = false; 44 | final static public String TAG = "evait"; 45 | final static public boolean isDebug = true; 46 | final static private String InAppPubKey = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAowTgroHqoXfm5kxQMKsO6xIMB/GemcYR9BPkud+rXBXcvLX4NmkuxG1GRw9/XMrhD2KqzMNWJg6Mu7u+r7joUbbG664N7kLWPpwAb98N0pa9a/BqXY8al9dVgFAhjTElH9jAs3CXGGgbChy889Z6k+EOHEkU4WE1dTpSl7vil3hbGJDS3RNPlxaZpYmknHFVF4ObnflN3l+qmexrRUsNNjK+FuEwSWAR6WXu/l6PV6wDWEmuJnwKtNvkF3At4de0vfV5Oals76IE1jbxbmcNJCWYE6kkm+7vGk1AT6YfVq6utjg7ZERhlL/OGa3X+PRA9iOiRrDCCxxTUM/BEqxdfQIDAQAB\n\n"; 47 | 48 | private Filter sFilter = null; 49 | MenuItem myActionMenuItem = null; 50 | 51 | AppCompatActivity context = null; 52 | ListView layout_content = null; 53 | WifiAdapter wifiAdapter = null; 54 | Thread rootThread = null; 55 | private SearchView searchView = null; 56 | 57 | @Override 58 | protected void onCreate(Bundle savedInstanceState) { 59 | super.onCreate(savedInstanceState); 60 | context = this; 61 | bp = new BillingProcessor(this, InAppPubKey, this); 62 | 63 | setContentView(R.layout.activity_main); 64 | 65 | layout_content = findViewById(R.id.listView); 66 | 67 | wifiAdapter = new WifiAdapter(context); 68 | ListClickListener listClickListener = new ListClickListener(context); 69 | 70 | layout_content.setAdapter(wifiAdapter); 71 | layout_content.setOnItemClickListener(listClickListener); 72 | layout_content.setOnItemLongClickListener(listClickListener); 73 | 74 | startRootThread(); 75 | } 76 | 77 | private void startRootThread() { 78 | if (rootThread != null) { 79 | rootThread.interrupt(); 80 | } 81 | 82 | context.runOnUiThread(() -> { 83 | wifiAdapter.clear(); 84 | wifiAdapter.notifyDataSetChanged(); 85 | }); 86 | 87 | rootThread = new Thread(() -> { 88 | /** check for root */ 89 | int result = -999; //if all work fine, the value should be zero 90 | 91 | try { 92 | Process process = Runtime.getRuntime().exec("su"); 93 | OutputStream out = process.getOutputStream(); 94 | String cmd = "cat"; 95 | out.write(cmd.getBytes()); 96 | out.flush(); 97 | out.close(); 98 | result = process.waitFor(); 99 | 100 | } catch (Exception e) { 101 | Log.e(TAG, "IOException, " + e.getMessage()); 102 | result = -100; 103 | 104 | } 105 | try { // wenn zu oft auf reload gedrückt wird, bricht die ab an der stelle ab, deswegen liegt es in einem try catch block 106 | if (result != 0) { 107 | context.runOnUiThread(() -> { 108 | Toast.makeText(context, "I need root!", Toast.LENGTH_LONG).show(); 109 | context.finish(); 110 | }); 111 | } 112 | } catch (Exception e) { 113 | Log.e(TAG, "IOException, " + e.getMessage()); 114 | } 115 | 116 | /** read xmls since oreo */ 117 | try { 118 | Process process = Runtime.getRuntime().exec("su"); 119 | //BufferedReader reader = new BufferedReader(new InputStreamReader()); 120 | 121 | OutputStream out = process.getOutputStream(); 122 | String cmd = "cat /data/misc/wifi/WifiConfigStore.xml"; 123 | out.write(cmd.getBytes()); 124 | out.flush(); 125 | out.close(); 126 | 127 | DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance(); 128 | DocumentBuilder dBuilder = dbFactory.newDocumentBuilder(); 129 | Document doc = dBuilder.parse(process.getInputStream()); 130 | 131 | 132 | Element element = doc.getDocumentElement(); 133 | element.normalize(); 134 | 135 | WifiObject currWifi = null; 136 | NodeList nListNet = doc.getElementsByTagName("Network"); 137 | for (int indexNet = 0; indexNet < nListNet.getLength(); indexNet++) { 138 | Node nNet = nListNet.item(indexNet); 139 | 140 | NodeList nListWC = ((Element) nNet).getElementsByTagName("WifiConfiguration"); 141 | for (int i = 0; i < nListWC.getLength(); i++) { 142 | Node nodeWC = nListWC.item(i); 143 | if (nodeWC.getNodeType() == Node.ELEMENT_NODE) { 144 | if (xmlHasNodeAttribute(nodeWC, "string", "ConfigKey")) { 145 | currWifi = new WifiObject(); 146 | String name = xmlGetNodeValueByAttribute(nodeWC, "string", "SSID"); 147 | name = name.substring(1, name.length() - 1); //trim the first and the last char that are " 148 | currWifi.setSsid(name); 149 | 150 | if (xmlHasNodeAttribute(nodeWC, "string", "PreSharedKey")) { 151 | currWifi.setTyp(WifiObject.TYP_WPA); 152 | String key = xmlGetNodeValueByAttribute(nodeWC, "string", "PreSharedKey"); 153 | key = key.substring(1, key.length() - 1); //trim the first and the last char that are " 154 | currWifi.setKey(key); 155 | } else { 156 | Node nodeWep = xmlGetNodeByAttribute(nodeWC, "string-array", "WEPKeys"); 157 | if (nodeWep != null) { 158 | currWifi.setTyp(WifiObject.TYP_WEP); 159 | 160 | NodeList nListWepKeys = ((Element) nodeWep).getElementsByTagName("item"); 161 | for (int indexWepKey = 0; indexWepKey < nListWepKeys.getLength(); indexWepKey++) { 162 | NamedNodeMap temp = nListWepKeys.item(indexWepKey).getAttributes(); 163 | for (int tempIndex = 0; tempIndex < temp.getLength(); tempIndex++) { 164 | String key = nListWepKeys.item(indexWepKey).getAttributes().item(tempIndex).getNodeValue(); 165 | if (key.length() > 2) { 166 | key = key.substring(1, key.length() - 1); //trim the first and the last char that are " 167 | currWifi.setKey(key); 168 | currWifi.setUser((indexWepKey + 1) + ""); 169 | } 170 | } 171 | } 172 | } 173 | 174 | } 175 | 176 | //currWifi.setKey("bla"); 177 | //currWifi.setTyp(WifiObject.TYP_WPA); 178 | //addNewItem(currWifi); 179 | } 180 | } 181 | } 182 | 183 | NodeList nListWpaeC = ((Element) nNet).getElementsByTagName("WifiEnterpriseConfiguration"); 184 | for (int i = 0; i < nListWpaeC.getLength(); i++) { 185 | Node nodeWpaeC = nListWpaeC.item(i); 186 | if (nodeWpaeC.getNodeType() == Node.ELEMENT_NODE) { 187 | String user = xmlGetNodeValueByAttribute(nodeWpaeC, "string", "Identity"); 188 | //user = user.substring(1, user.length() - 1); //trim the first and the last char that are " 189 | currWifi.setUser(user); 190 | 191 | String key = xmlGetNodeValueByAttribute(nodeWpaeC, "string", "Password"); 192 | //key = user.substring(1, key.length() - 1); //trim the first and the last char that are " 193 | currWifi.setKey(key); 194 | 195 | currWifi.setTyp(WifiObject.TYP_ENTERPRISE); 196 | } 197 | } 198 | 199 | addNewItem(currWifi); 200 | } 201 | 202 | //String content = new String(buffer, 0, length); 203 | //Wait until reading finishes 204 | result = process.waitFor(); 205 | //Do your stuff here with "content" string 206 | //The "content" String has the content of read file 207 | //final String temp = content; 208 | 209 | 210 | } catch (Exception e) { 211 | Log.e(TAG, "IOException, " + e.getMessage()); 212 | 213 | result = -100; 214 | 215 | } 216 | 217 | /** read config files before oreo **/ 218 | String[] wConfFiles = { 219 | "/data/misc/wifi/*_supplicant*.conf", 220 | "/data/wifi/bcm_supp.conf" 221 | }; 222 | for (String wConfFile : wConfFiles) { 223 | try { 224 | Process process = Runtime.getRuntime().exec("su"); 225 | BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream())); 226 | OutputStream out = process.getOutputStream(); 227 | // different OS version use different file to save wifi passes 228 | // e.g. 229 | // /data/misc/wifi/wpa_supplicant.conf 230 | // /data/misc/wifi/wpa_supplicant_wcn.conf 231 | // /data/misc/wifi/p2p_supplicant.conf 232 | String cmd = "cat " + wConfFile; 233 | out.write(cmd.getBytes()); 234 | out.flush(); 235 | out.close(); 236 | String line = reader.readLine(); 237 | 238 | WifiObject currWifi = null; 239 | while (line != null) { 240 | if (line.trim().startsWith("network={")) { 241 | if (isDebug) { 242 | Log.d(TAG, "new network block start"); 243 | } 244 | currWifi = new WifiObject(); 245 | } else if (line.trim().startsWith("}")) { 246 | if (currWifi != null) { 247 | boolean ignore = false; 248 | 249 | //some HTC devices have a fake wifi that should not be printed 250 | if (currWifi.getSsid().equalsIgnoreCase("FLAG_FOR_CONFIGURATION_FILE")) { 251 | ignore = true; 252 | } 253 | 254 | if (!ignore) { 255 | addNewItem(currWifi); 256 | } 257 | } 258 | if (isDebug) { 259 | Log.d(TAG, "network block stop"); 260 | } 261 | currWifi = null; 262 | } 263 | 264 | //we are in a 'network' Block 265 | else if (currWifi != null) { 266 | 267 | String[] keyValue = line.split("=", 2); 268 | if (keyValue.length == 2) { //the first should be the key and the second the value 269 | if (isDebug) { 270 | Log.d(TAG, " key: '" + keyValue[0].trim() + "' value: '" + keyValue[1].trim() + "'"); 271 | } 272 | String value = keyValue[1].trim(); 273 | switch (keyValue[0].trim()) { 274 | case "ssid": 275 | value = value.substring(1, value.length() - 1); //trim the first and the last char that are " 276 | currWifi.setSsid(value); 277 | break; 278 | case "password": 279 | currWifi.setTyp(WifiObject.TYP_ENTERPRISE); 280 | value = value.substring(1, value.length() - 1); //trim the first and the last char that are " 281 | currWifi.setKey(value); 282 | break; 283 | case "psk": 284 | currWifi.setTyp(WifiObject.TYP_WPA); 285 | value = value.substring(1, value.length() - 1); //trim the first and the last char that are " 286 | currWifi.setKey(value); 287 | break; 288 | case "identity": 289 | value = value.substring(1, value.length() - 1); //trim the first and the last char that are " 290 | currWifi.setUser(value); 291 | break; 292 | case "wep_key0": 293 | currWifi.setUser("1"); 294 | currWifi.setTyp(WifiObject.TYP_WEP); 295 | value = value.substring(1, value.length() - 1); //trim the first and the last char that are " 296 | currWifi.setKey(value); 297 | break; 298 | case "wep_key1": 299 | currWifi.setUser("2"); 300 | currWifi.setTyp(WifiObject.TYP_WEP); 301 | value = value.substring(1, value.length() - 1); //trim the first and the last char that are " 302 | currWifi.setKey(value); 303 | break; 304 | case "wep_key2": 305 | currWifi.setUser("3"); 306 | currWifi.setTyp(WifiObject.TYP_WEP); 307 | value = value.substring(1, value.length() - 1); //trim the first and the last char that are " 308 | currWifi.setKey(value); 309 | break; 310 | case "wep_key3": 311 | currWifi.setUser("4"); 312 | currWifi.setTyp(WifiObject.TYP_WEP); 313 | value = value.substring(1, value.length() - 1); //trim the first and the last char that are " 314 | currWifi.setKey(value); 315 | break; 316 | } 317 | } 318 | } 319 | 320 | //prepare next line 321 | line = reader.readLine(); 322 | } 323 | 324 | //String content = new String(buffer, 0, length); 325 | //Wait until reading finishes 326 | result = process.waitFor(); 327 | //Do your stuff here with "content" string 328 | //The "content" String has the content of rea file 329 | //final String temp = content; 330 | 331 | 332 | } catch (Exception e) { 333 | Log.e(TAG, "IOException, " + e.getMessage()); 334 | result = -100; 335 | 336 | } 337 | } 338 | }); 339 | rootThread.start(); 340 | } 341 | 342 | 343 | public static Node xmlGetNodeByAttribute(Node root, String tag, String attribute) { 344 | NodeList nListS = ((Element) root).getElementsByTagName(tag); 345 | for (int indexS = 0; indexS < nListS.getLength(); indexS++) { 346 | Node nodeS = nListS.item(indexS); 347 | if (nodeS.getNodeType() == Node.ELEMENT_NODE) { 348 | NamedNodeMap nodeSAttributes = nodeS.getAttributes(); 349 | for (int t = 0; t < nodeSAttributes.getLength(); t++) { 350 | if (nodeSAttributes.item(t).getNodeValue().equals(attribute)) { 351 | return nodeS; 352 | } 353 | } 354 | } 355 | } 356 | return null; 357 | } 358 | 359 | public static String xmlGetNodeValueByAttribute(Node root, String tag, String attribute) { 360 | Node node = xmlGetNodeByAttribute(root, tag, attribute); 361 | if (node != null) { 362 | return node.getChildNodes().item(0).getNodeValue(); 363 | } 364 | return ""; 365 | } 366 | 367 | public static boolean xmlHasNodeAttribute(Node root, String tag, String attribute) { 368 | return xmlGetNodeByAttribute(root, tag, attribute) != null; 369 | } 370 | 371 | @Override 372 | public boolean onCreateOptionsMenu(Menu menu) { 373 | getMenuInflater().inflate(R.menu.menu_main, menu); 374 | 375 | //for the search icon 376 | myActionMenuItem = menu.findItem(R.id.action_search); 377 | searchView = (SearchView) MenuItemCompat.getActionView(myActionMenuItem); 378 | searchView.setOnQueryTextListener(new SearchChangeListener(myActionMenuItem)); 379 | return true; 380 | } 381 | 382 | @Override 383 | public boolean onOptionsItemSelected(MenuItem item) { 384 | boolean result; 385 | final Dialog dialog = new Dialog(context); 386 | 387 | switch (item.getItemId()) { 388 | case R.id.menu_reload: 389 | startRootThread(); 390 | 391 | result = true; 392 | break; 393 | 394 | case R.id.menu_about: 395 | dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); 396 | dialog.setCancelable(true); 397 | dialog.setContentView(R.layout.about_view); 398 | ((TextView) dialog.findViewById(R.id.textViewVersionName)).setText(BuildConfig.VERSION_NAME); 399 | dialog.show(); 400 | 401 | result = true; 402 | break; 403 | 404 | case R.id.menu_donate: 405 | dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); 406 | dialog.setCancelable(true); 407 | dialog.setContentView(R.layout.donate_view); 408 | ((Spinner) dialog.findViewById(R.id.spinner_donate)).setSelection(1); 409 | Button btnDonate = dialog.findViewById(R.id.btn_donate); 410 | btnDonate.setOnClickListener(new DonateButtonListener(dialog)); 411 | dialog.show(); 412 | 413 | result = true; 414 | break; 415 | 416 | default: 417 | result = super.onOptionsItemSelected(item); 418 | break; 419 | } 420 | 421 | return result; 422 | } 423 | 424 | private void addNewItem(final WifiObject value) { 425 | context.runOnUiThread(() -> { 426 | if (value != null && value.getSsid().length() > 0 && value.getKey().length() > 0) 427 | wifiAdapter.add(value); 428 | wifiAdapter.sort(new WifiComparator()); 429 | sFilter = wifiAdapter.getFilter(); 430 | wifiAdapter.notifyDataSetChanged(); 431 | }); 432 | } 433 | 434 | @Override 435 | public void onProductPurchased(@NonNull String productId, @Nullable TransactionDetails details) { 436 | } 437 | 438 | @Override 439 | public void onPurchaseHistoryRestored() { 440 | } 441 | 442 | @Override 443 | public void onBillingError(int errorCode, @Nullable Throwable error) { 444 | } 445 | 446 | @Override 447 | public void onBillingInitialized() { 448 | } 449 | 450 | @Override 451 | protected void onActivityResult(int requestCode, int resultCode, Intent data) { 452 | if (!bp.handleActivityResult(requestCode, resultCode, data)) { 453 | super.onActivityResult(requestCode, resultCode, data); 454 | } 455 | } 456 | 457 | @Override 458 | public void onDestroy() { 459 | if (bp != null) { 460 | bp.release(); 461 | } 462 | super.onDestroy(); 463 | } 464 | 465 | private class SearchChangeListener implements SearchView.OnQueryTextListener { 466 | MenuItem myActionMenuItem; 467 | 468 | public SearchChangeListener(MenuItem myActionMenuItem) { 469 | this.myActionMenuItem = myActionMenuItem; 470 | } 471 | 472 | @Override 473 | public boolean onQueryTextSubmit(String query) { 474 | if (!searchView.isIconified()) { 475 | searchView.setIconified(true); 476 | } 477 | MenuItemCompat.collapseActionView(myActionMenuItem); 478 | if (sFilter != null) { 479 | sFilter.filter(query); 480 | } 481 | return true; 482 | } 483 | 484 | @Override 485 | public boolean onQueryTextChange(final String newText) { 486 | if (sFilter != null && !searchView.isIconified()) { 487 | sFilter.filter(newText); 488 | } 489 | return true; 490 | } 491 | } 492 | 493 | private class DonateButtonListener implements Button.OnClickListener { 494 | private Dialog dialog; 495 | 496 | public DonateButtonListener(Dialog dialog) { 497 | this.dialog = dialog; 498 | } 499 | 500 | @Override 501 | public void onClick(View view) { 502 | int position = ((Spinner) dialog.findViewById(R.id.spinner_donate)).getSelectedItemPosition(); 503 | if (isDebug) { 504 | Log.d(TAG, "selected donate: " + position); 505 | } 506 | switch (position) { 507 | case 0: 508 | bp.purchase(context, "donate_min"); 509 | break; 510 | case 2: 511 | bp.purchase(context, "donate_big"); 512 | break; 513 | case 1: // do not break, because donate_normal is the default value 514 | default: 515 | bp.purchase(context, "donate_normal"); 516 | break; 517 | } 518 | dialog.cancel(); 519 | } 520 | } 521 | } 522 | -------------------------------------------------------------------------------- /app/src/main/java/wkv/android/evait/com/wifikeyview/WifiAdapter.java: -------------------------------------------------------------------------------- 1 | package wkv.android.evait.com.wifikeyview; 2 | 3 | import android.content.Context; 4 | import android.view.LayoutInflater; 5 | import android.view.View; 6 | import android.view.ViewGroup; 7 | import android.widget.ArrayAdapter; 8 | import android.widget.Filter; 9 | import android.widget.TextView; 10 | 11 | import java.util.ArrayList; 12 | import java.util.Comparator; 13 | 14 | import androidx.appcompat.app.AppCompatActivity; 15 | 16 | /** 17 | * Created by as on 05.07.2016. 18 | */ 19 | public class WifiAdapter extends ArrayAdapter { 20 | AppCompatActivity ctx; 21 | 22 | public WifiAdapter(Context context, ArrayList wifiO) { 23 | super(context, 0, wifiO); 24 | this.ctx = (AppCompatActivity) context; 25 | 26 | } 27 | 28 | public WifiAdapter(Context context) { 29 | super(context, 0); 30 | this.ctx = (AppCompatActivity) context; 31 | } 32 | 33 | @Override 34 | public void sort(Comparator comparator) { 35 | super.sort(comparator); 36 | } 37 | 38 | @Override 39 | public View getView(int position, View convertView, ViewGroup parent) { 40 | 41 | // Get the data item for this position 42 | WifiObject wifiO = getItem(position); 43 | // Check if an existing view is being reused, otherwise inflate the view 44 | if (convertView == null) { 45 | convertView = LayoutInflater.from(getContext()).inflate(R.layout.adapter_view, parent, false); 46 | } 47 | // Lookup view for data population 48 | TextView tvSsid = convertView.findViewById(R.id.tv_ssid); 49 | TextView tvKey = convertView.findViewById(R.id.tv_key); 50 | TextView tvTyp = convertView.findViewById(R.id.tv_typ); 51 | TextView tvUser = convertView.findViewById(R.id.tv_user); 52 | if (wifiO.getUser().length() > 0) { 53 | String begin = ""; 54 | if (wifiO.getTyp().equals(WifiObject.TYP_ENTERPRISE)) { 55 | begin = "User: "; 56 | } else if (wifiO.getTyp().equals(WifiObject.TYP_WEP)) { 57 | begin = "Keyindex: "; 58 | } 59 | tvUser.setText(begin + wifiO.getUser()); 60 | tvUser.setVisibility(TextView.VISIBLE); 61 | } else { 62 | tvUser.setVisibility(TextView.GONE); 63 | } 64 | // Populate the data into the template view using the data object 65 | tvSsid.setText(wifiO.getSsid()); 66 | tvKey.setText(wifiO.getKey()); 67 | tvTyp.setText(wifiO.getTyp()); 68 | // Return the completed view to render on screen 69 | return convertView; 70 | } 71 | 72 | @Override 73 | public Filter getFilter() { 74 | 75 | ArrayList res = new ArrayList<>(); 76 | for (int i = 0; i < getCount(); i++) { 77 | res.add(getItem(i)); 78 | } 79 | 80 | return new searchFilter(res, this, ctx); 81 | } 82 | 83 | private class searchFilter extends Filter { 84 | ArrayList org; 85 | WifiAdapter wiAdapter; 86 | AppCompatActivity ctx; 87 | 88 | public searchFilter(ArrayList res, WifiAdapter wiAdapter, AppCompatActivity ctx) { 89 | org = res; 90 | this.wiAdapter = wiAdapter; 91 | this.ctx = ctx; 92 | 93 | } 94 | 95 | @Override 96 | protected FilterResults performFiltering(CharSequence constraint) { 97 | FilterResults f = new FilterResults(); 98 | //wiAdapter.clear(); 99 | if (constraint != null) { 100 | ArrayList res = new ArrayList<>(); 101 | for (int x = 0; x < org.size(); x++) { 102 | if (org.get(x).getSsid().toLowerCase().contains(constraint)) { 103 | res.add(org.get(x)); 104 | } 105 | } 106 | f.values = res;//.toArray(); 107 | f.count = res.size(); 108 | } 109 | return f; 110 | } 111 | 112 | @SuppressWarnings("unchecked") 113 | @Override 114 | protected void publishResults(CharSequence constraint, FilterResults results) { 115 | if (results.count > 0) { 116 | wiAdapter.clear(); 117 | wiAdapter.addAll((ArrayList) results.values); 118 | ctx.runOnUiThread(WifiAdapter.this::notifyDataSetChanged); 119 | } else { 120 | wiAdapter.clear(); 121 | wiAdapter.addAll(org); 122 | ctx.runOnUiThread(WifiAdapter.this::notifyDataSetChanged); 123 | } 124 | } 125 | } 126 | } -------------------------------------------------------------------------------- /app/src/main/java/wkv/android/evait/com/wifikeyview/WifiComparator.java: -------------------------------------------------------------------------------- 1 | package wkv.android.evait.com.wifikeyview; 2 | 3 | import java.util.Comparator; 4 | 5 | /** 6 | * Created by as on 27.02.2017. 7 | */ 8 | 9 | public class WifiComparator implements Comparator { 10 | @Override 11 | public int compare(WifiObject o1, WifiObject o2) { 12 | return o1.getSsid().compareToIgnoreCase(o2.getSsid()); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /app/src/main/java/wkv/android/evait/com/wifikeyview/WifiObject.java: -------------------------------------------------------------------------------- 1 | package wkv.android.evait.com.wifikeyview; 2 | 3 | /** 4 | * Created by as on 05.07.2016. 5 | */ 6 | public class WifiObject { 7 | private String ssid; 8 | private String key; 9 | private String user; 10 | private String typ; 11 | 12 | public static String TYP_ENTERPRISE = "802.1x"; 13 | public static String TYP_WEP = "WEP"; 14 | public static String TYP_WPA = "WPA/WPA2"; 15 | 16 | public WifiObject() { 17 | } 18 | 19 | public WifiObject(String ssid, String key) { 20 | this.ssid = ssid; 21 | this.key = key; 22 | } 23 | 24 | public String getSsid() { 25 | if (ssid == null) { 26 | return ""; 27 | } 28 | return ssid; 29 | } 30 | 31 | public void setSsid(String ssid) { 32 | this.ssid = ssid; 33 | } 34 | 35 | public String getKey() { 36 | if (key == null) { 37 | return ""; 38 | } 39 | return key; 40 | } 41 | 42 | public void setKey(String key) { 43 | this.key = key; 44 | } 45 | 46 | public String getUser() { 47 | if (user == null) { 48 | return ""; 49 | } 50 | return user; 51 | } 52 | 53 | public void setUser(String user) { 54 | this.user = user; 55 | } 56 | 57 | public String getTyp() { 58 | if (typ == null) { 59 | return ""; 60 | } 61 | return typ; 62 | } 63 | 64 | public void setTyp(String typ) { 65 | this.typ = typ; 66 | } 67 | 68 | @Override 69 | public String toString() { 70 | String separator = System.getProperty("line.separator"); 71 | String result = ""; 72 | result += "SSID: " + getSsid() + separator; 73 | 74 | if (getUser().length() > 0) { 75 | if (getTyp().equals(WifiObject.TYP_ENTERPRISE)) { 76 | result += "User: "; 77 | } else if (getTyp().equals(WifiObject.TYP_WEP)) { 78 | result += "Keyindex: "; 79 | } 80 | result += getUser() + separator; 81 | } 82 | result += "Key: " + getKey(); 83 | return result; 84 | } 85 | } 86 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/evait_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-hdpi/evait_logo.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_barcode_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-hdpi/ic_action_barcode_2.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_beer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-hdpi/ic_action_beer.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-hdpi/ic_action_info.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_key.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-hdpi/ic_action_key.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_reload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-hdpi/ic_action_reload.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-hdpi/ic_action_search.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-hdpi/ic_action_share.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_tag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-hdpi/ic_action_tag.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-hdpi/ic_action_user.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_wifi_lock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-hdpi/ic_wifi_lock.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-ldpi/evait_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-ldpi/evait_logo.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-ldpi/ic_action_barcode_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-ldpi/ic_action_barcode_2.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-ldpi/ic_action_search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-ldpi/ic_action_search.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/evait_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-mdpi/evait_logo.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_barcode_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-mdpi/ic_action_barcode_2.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_beer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-mdpi/ic_action_beer.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-mdpi/ic_action_info.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_key.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-mdpi/ic_action_key.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_reload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-mdpi/ic_action_reload.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-mdpi/ic_action_search.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-mdpi/ic_action_share.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_tag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-mdpi/ic_action_tag.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-mdpi/ic_action_user.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_wifi_lock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-mdpi/ic_wifi_lock.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-tvdpi/ic_action_barcode_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-tvdpi/ic_action_barcode_2.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-tvdpi/ic_action_search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-tvdpi/ic_action_search.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/evait_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-xhdpi/evait_logo.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_barcode_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-xhdpi/ic_action_barcode_2.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_beer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-xhdpi/ic_action_beer.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-xhdpi/ic_action_info.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_key.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-xhdpi/ic_action_key.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_reload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-xhdpi/ic_action_reload.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-xhdpi/ic_action_search.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-xhdpi/ic_action_share.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_tag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-xhdpi/ic_action_tag.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-xhdpi/ic_action_user.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_wifi_lock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-xhdpi/ic_wifi_lock.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/evait_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-xxhdpi/evait_logo.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_barcode_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-xxhdpi/ic_action_barcode_2.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_beer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-xxhdpi/ic_action_beer.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-xxhdpi/ic_action_info.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_key.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-xxhdpi/ic_action_key.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_reload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-xxhdpi/ic_action_reload.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-xxhdpi/ic_action_search.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-xxhdpi/ic_action_share.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_tag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-xxhdpi/ic_action_tag.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-xxhdpi/ic_action_user.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_wifi_lock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-xxhdpi/ic_wifi_lock.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxxhdpi/evait_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-xxxhdpi/evait_logo.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxxhdpi/ic_action_barcode_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-xxxhdpi/ic_action_barcode_2.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxxhdpi/ic_action_beer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-xxxhdpi/ic_action_beer.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxxhdpi/ic_action_info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-xxxhdpi/ic_action_info.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxxhdpi/ic_action_key.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-xxxhdpi/ic_action_key.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxxhdpi/ic_action_reload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-xxxhdpi/ic_action_reload.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxxhdpi/ic_action_search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-xxxhdpi/ic_action_search.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxxhdpi/ic_action_share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-xxxhdpi/ic_action_share.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxxhdpi/ic_action_tag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-xxxhdpi/ic_action_tag.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxxhdpi/ic_action_user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-xxxhdpi/ic_action_user.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxxhdpi/ic_wifi_lock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evait-security/android-wifi-key-view/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/res/drawable-xxxhdpi/ic_wifi_lock.png -------------------------------------------------------------------------------- /app/src/main/res/layout/about_view.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 20 | 21 | 30 | 31 | 37 | 38 | 44 | 45 | 49 | 50 | 55 | 56 | 62 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /app/src/main/res/layout/adapter_view.xml: -------------------------------------------------------------------------------- 1 | 2 | 13 | 14 | 21 | 22 | 31 | 32 | 41 | 42 | 50 | 51 | 52 | 58 | 59 | 64 | 65 | 73 | 74 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /app/src/main/res/layout/donate_view.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 19 | 20 | 29 | 30 | 34 | 35 | 42 | 43 | 49 | 50 | 55 | 56 | 61 | 62 |