├── .gitignore ├── .idea ├── .name ├── compiler.xml ├── copyright │ └── profiles_settings.xml ├── encodings.xml ├── gradle.xml ├── misc.xml ├── modules.xml ├── scopes │ └── scope_settings.xml └── vcs.xml ├── GetID.iml ├── LICENSE.txt ├── README.md ├── app ├── .gitignore ├── app-release.apk ├── app.iml ├── build.gradle ├── manifest-merger-release-report.txt ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── makeinfo │ │ └── com │ │ └── getid │ │ └── ApplicationTest.java │ └── main │ ├── AndroidManifest.xml │ ├── assets │ └── help.html │ ├── java │ └── makeinfo │ │ └── com │ │ └── getid │ │ ├── Help.java │ │ └── MainActivity.java │ └── res │ ├── drawable-hdpi │ ├── ic_action_good.png │ ├── ic_action_help.png │ └── ic_launcher.png │ ├── drawable-mdpi │ ├── ic_action_good.png │ ├── ic_action_help.png │ └── ic_launcher.png │ ├── drawable-xhdpi │ ├── ic_action_good.png │ ├── ic_action_help.png │ └── ic_launcher.png │ ├── drawable-xxhdpi │ ├── ic_action_good.png │ ├── ic_action_help.png │ └── ic_launcher.png │ ├── drawable │ └── makeinfoapps │ ├── layout │ ├── activity_help.xml │ └── activity_main.xml │ ├── menu │ ├── menu_help.xml │ └── menu_main.xml │ ├── values-cs │ └── strings.xml │ ├── values-w820dp │ └── dimens.xml │ └── values │ ├── dimens.xml │ ├── strings.xml │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle /.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | /local.properties 3 | /.idea/workspace.xml 4 | /.idea/libraries 5 | .DS_Store 6 | /build 7 | -------------------------------------------------------------------------------- /.idea/.name: -------------------------------------------------------------------------------- 1 | Get ID -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | Abstraction issues 15 | 16 | 17 | Android Lint 18 | 19 | 20 | Assignment issues 21 | 22 | 23 | Class metrics 24 | 25 | 26 | Class structure 27 | 28 | 29 | Code maturity issues 30 | 31 | 32 | Code style issues 33 | 34 | 35 | Compiler issues 36 | 37 | 38 | Declaration redundancy 39 | 40 | 41 | Encapsulation issues 42 | 43 | 44 | Error handling 45 | 46 | 47 | Finalization issues 48 | 49 | 50 | GPath inspectionsGroovy 51 | 52 | 53 | General 54 | 55 | 56 | Google Cloud Endpoints 57 | 58 | 59 | Groovy 60 | 61 | 62 | Imports 63 | 64 | 65 | Inheritance issues 66 | 67 | 68 | Internationalization issues 69 | 70 | 71 | J2ME issues 72 | 73 | 74 | JUnit issues 75 | 76 | 77 | Java language level issues 78 | 79 | 80 | Java language level migration aids 81 | 82 | 83 | JavaBeans issues 84 | 85 | 86 | Javadoc issues 87 | 88 | 89 | Language Injection 90 | 91 | 92 | Logging issues 93 | 94 | 95 | Maven 96 | 97 | 98 | Memory issues 99 | 100 | 101 | Method metrics 102 | 103 | 104 | Naming ConventionsGroovy 105 | 106 | 107 | Naming conventions 108 | 109 | 110 | Numeric issues 111 | 112 | 113 | Performance issues 114 | 115 | 116 | Portability issues 117 | 118 | 119 | Probable bugs 120 | 121 | 122 | Probable bugsGroovy 123 | 124 | 125 | Resource management issues 126 | 127 | 128 | Security issues 129 | 130 | 131 | Serialization issues 132 | 133 | 134 | StyleGroovy 135 | 136 | 137 | Threading issues 138 | 139 | 140 | Threading issuesGroovy 141 | 142 | 143 | Visibility issues 144 | 145 | 146 | 147 | 148 | Abstraction issues 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 1.7 162 | 163 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/scopes/scope_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /GetID.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Basil 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # getid 2 | Get Device ID,SIM SerialNumber,IMEI,IMSI,Google Service Key,WiFi Mac address for Android 3 | NO INTERNET CONNECTION NEEDED 4 | 5 | https://play.google.com/store/apps/details?id=makeinfo.com.getid 6 | 7 | Get Details of: 8 | 9 | ★Device ID 10 | ★SIM SerialNumber 11 | ★IMEI 12 | ★IMSI 13 | ★Google Service Key 14 | ★WiFi Mac address 15 | 16 | This is completely Ad-free app. 17 | 18 | 19 | 20 | Permissions Used : 21 | 22 | READ_PHONE_STATE for Device ID,IMEI,IMSI 23 | ACCESS_WIFI_STATE for Wifi Mac Address 24 | READ_GSERVICES for Google Service Framework Key 25 | 26 | Update: 27 | ★ Added Export file feature 28 | -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app/app-release.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basil2style/getid/e52b4d22d9a6f476635133b8a5d5f5e5e3fe255f/app/app-release.apk -------------------------------------------------------------------------------- /app/app.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 | 10 | 11 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 21 5 | buildToolsVersion "21.1.2" 6 | 7 | defaultConfig { 8 | applicationId "makeinfo.com.getid" 9 | minSdkVersion 9 10 | targetSdkVersion 21 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(dir: 'libs', include: ['*.jar']) 24 | compile 'com.android.support:appcompat-v7:21.0.3' 25 | } 26 | -------------------------------------------------------------------------------- /app/manifest-merger-release-report.txt: -------------------------------------------------------------------------------- 1 | -- Merging decision tree log --- 2 | manifest 3 | ADDED from AndroidManifest.xml:2:1 4 | xmlns:android 5 | ADDED from AndroidManifest.xml:2:11 6 | package 7 | ADDED from AndroidManifest.xml:3:5 8 | INJECTED from AndroidManifest.xml:0:0 9 | INJECTED from AndroidManifest.xml:0:0 10 | android:versionName 11 | INJECTED from AndroidManifest.xml:0:0 12 | INJECTED from AndroidManifest.xml:0:0 13 | android:versionCode 14 | INJECTED from AndroidManifest.xml:0:0 15 | INJECTED from AndroidManifest.xml:0:0 16 | uses-permission#android.permission.READ_PHONE_STATE 17 | ADDED from AndroidManifest.xml:5:5 18 | android:name 19 | ADDED from AndroidManifest.xml:5:22 20 | uses-permission#android.permission.ACCESS_WIFI_STATE 21 | ADDED from AndroidManifest.xml:6:5 22 | android:name 23 | ADDED from AndroidManifest.xml:6:22 24 | uses-permission#android.permission.CHANGE_WIFI_STATE 25 | ADDED from AndroidManifest.xml:7:5 26 | android:name 27 | ADDED from AndroidManifest.xml:7:22 28 | uses-permission#com.google.android.providers.gsf.permission.READ_GSERVICES 29 | ADDED from AndroidManifest.xml:8:5 30 | android:name 31 | ADDED from AndroidManifest.xml:8:22 32 | application 33 | ADDED from AndroidManifest.xml:11:5 34 | MERGED from com.android.support:appcompat-v7:21.0.3:16:5 35 | MERGED from com.android.support:support-v4:21.0.3:16:5 36 | android:label 37 | ADDED from AndroidManifest.xml:14:9 38 | android:allowBackup 39 | ADDED from AndroidManifest.xml:12:9 40 | android:icon 41 | ADDED from AndroidManifest.xml:13:9 42 | android:theme 43 | ADDED from AndroidManifest.xml:15:9 44 | activity#makeinfo.com.getid.MainActivity 45 | ADDED from AndroidManifest.xml:17:9 46 | android:screenOrientation 47 | ADDED from AndroidManifest.xml:20:13 48 | android:label 49 | ADDED from AndroidManifest.xml:19:13 50 | android:name 51 | ADDED from AndroidManifest.xml:18:13 52 | intent-filter#android.intent.action.MAIN+android.intent.category.LAUNCHER 53 | ADDED from AndroidManifest.xml:21:13 54 | action#android.intent.action.MAIN 55 | ADDED from AndroidManifest.xml:22:17 56 | android:name 57 | ADDED from AndroidManifest.xml:22:25 58 | category#android.intent.category.LAUNCHER 59 | ADDED from AndroidManifest.xml:24:17 60 | android:name 61 | ADDED from AndroidManifest.xml:24:27 62 | activity#makeinfo.com.getid.Help 63 | ADDED from AndroidManifest.xml:27:9 64 | android:label 65 | ADDED from AndroidManifest.xml:29:13 66 | android:name 67 | ADDED from AndroidManifest.xml:28:13 68 | uses-sdk 69 | INJECTED from AndroidManifest.xml:0:0 reason: use-sdk injection requested 70 | MERGED from com.android.support:appcompat-v7:21.0.3:15:5 71 | MERGED from com.android.support:support-v4:21.0.3:15:5 72 | android:targetSdkVersion 73 | INJECTED from AndroidManifest.xml:0:0 74 | INJECTED from AndroidManifest.xml:0:0 75 | android:minSdkVersion 76 | INJECTED from AndroidManifest.xml:0:0 77 | INJECTED from AndroidManifest.xml:0:0 78 | -------------------------------------------------------------------------------- /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 F:\adt-bundle-windows-x86_64-20140702\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/makeinfo/com/getid/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package makeinfo.com.getid; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 17 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /app/src/main/assets/help.html: -------------------------------------------------------------------------------- 1 | 2 |

Device ID

3 | A 64-bit number (as a hex string) that is randomly generated when the user first sets up the device and should remain constant 4 | for the lifetime of the user's device.The value may change if a factory reset is performed on the device. 5 | 6 |

SIM Serial Number

7 | Sim Card Serial is stored in your DB,if the user removes the sim card and inserts a new sim card, the license will fail as your 8 | DB doesn't store the serial for the new sim card. 9 | The SNN typically has 19 digits and contains specific details about your operator, your location, and when it was made. 10 | The first two digits are the telecom ID, the second two digit refer to your country code, the third two digits are the 11 | network code, the next four digits are the month and year of manufacturing, the next two digits are the switch configuration code, 12 | the next six digits are the SIM number, and the last digit is the check digit. 13 | 14 |

Wifi Mac Address

15 | MAC addresses are most often assigned by the manufacturer of a network interface controller (NIC) and are stored in its hardware, 16 | such as the card's read-only memory or some other firmware mechanism. 17 | 18 |

IMEI Number

19 | 20 | International Mobile Station Equipment Identity
21 | The IMEI number is used by a GSM network to identify valid 22 | devices and therefore can be used for stopping a stolen phone from accessing that network. 23 | For example, if a mobile phone is stolen, the owner can call his or her network provider and 24 | instruct them to "blacklist" the phone using its IMEI number. This renders the phone useless on that 25 | network and sometimes other networks too, whether or not the phone's SIM is changed. 26 | 27 |

IMSI Number

28 | International mobile subscriber identity
29 | The IMSI is used in any mobile network that interconnects with other networks. An IMSI is usually presented as 30 | a 15 digit long number, but can be shorter.It is also used for acquiring other details of the mobile in the home 31 | location register (HLR) or as locally copied in the visitor location register 32 | 33 |

Google Service Framework Key

34 | GSF ID key is a unique key for each device. It is used to identify your device for market downloads, 35 | specific applications uses this key to identify the device which 36 | is been used to purchase their services and many more things. 37 | Your Android Device GSF key is a specific alpha-numeric Identification code associated with your mobile device. 38 | GSF ID key may need in order to Customer Support to assist you with certain issues. -------------------------------------------------------------------------------- /app/src/main/java/makeinfo/com/getid/Help.java: -------------------------------------------------------------------------------- 1 | package makeinfo.com.getid; 2 | 3 | import android.annotation.TargetApi; 4 | import android.os.Build; 5 | import android.support.v7.app.ActionBarActivity; 6 | import android.os.Bundle; 7 | import android.view.Menu; 8 | import android.view.MenuItem; 9 | import android.webkit.WebView; 10 | 11 | 12 | public class Help extends ActionBarActivity { 13 | 14 | WebView help; 15 | 16 | @Override 17 | protected void onCreate(Bundle savedInstanceState) { 18 | super.onCreate(savedInstanceState); 19 | 20 | setContentView(R.layout.activity_help); 21 | 22 | help = (WebView) findViewById(R.id.webView); 23 | 24 | help.loadUrl("file:///android_asset/help.html"); 25 | 26 | 27 | } 28 | 29 | 30 | @Override 31 | public boolean onCreateOptionsMenu(Menu menu) { 32 | // Inflate the menu; this adds items to the action bar if it is present. 33 | // getMenuInflater().inflate(R.menu.menu_help, menu); 34 | return true; 35 | } 36 | 37 | @Override 38 | public boolean onOptionsItemSelected(MenuItem item) { 39 | // Handle action bar item clicks here. The action bar will 40 | // automatically handle clicks on the Home/Up button, so long 41 | // as you specify a parent activity in AndroidManifest.xml. 42 | int id = item.getItemId(); 43 | 44 | //noinspection SimplifiableIfStatement 45 | if (id == R.id.action_settings) { 46 | return true; 47 | } 48 | 49 | return super.onOptionsItemSelected(item); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /app/src/main/java/makeinfo/com/getid/MainActivity.java: -------------------------------------------------------------------------------- 1 | package makeinfo.com.getid; 2 | 3 | import android.annotation.TargetApi; 4 | import android.content.Context; 5 | import android.content.Intent; 6 | import android.database.Cursor; 7 | import android.media.Image; 8 | import android.net.Uri; 9 | import android.net.wifi.WifiInfo; 10 | import android.net.wifi.WifiManager; 11 | import android.os.Build; 12 | import android.os.Environment; 13 | import android.provider.Settings; 14 | import android.support.v7.app.ActionBarActivity; 15 | import android.os.Bundle; 16 | import android.telephony.TelephonyManager; 17 | import android.util.Log; 18 | import android.view.Menu; 19 | import android.view.MenuItem; 20 | import android.view.View; 21 | import android.widget.Button; 22 | import android.widget.EditText; 23 | import android.widget.ImageView; 24 | import android.widget.Toast; 25 | 26 | import java.io.File; 27 | import java.io.FileOutputStream; 28 | import java.io.FileWriter; 29 | import java.io.IOException; 30 | import java.io.OutputStreamWriter; 31 | 32 | 33 | public class MainActivity extends ActionBarActivity { 34 | 35 | EditText wifi,device,sim,imei,imsi,gsfid; 36 | boolean val =false; 37 | Button device_copy,sim_copy,wifi_copy,imei_copy,imsi_copy,gsf_copy; 38 | ImageView makeinfoapps; 39 | String Body; 40 | String getSimSerialNumber,imsi_t,imei_t,gsf_t,android_id,address; 41 | @Override 42 | protected void onCreate(Bundle savedInstanceState) { 43 | super.onCreate(savedInstanceState); 44 | setContentView(R.layout.activity_main); 45 | 46 | wifi = (EditText) findViewById(R.id.wifi); 47 | device = (EditText) findViewById(R.id.deviceid); 48 | sim = (EditText) findViewById(R.id.simid); 49 | imei = (EditText) findViewById(R.id.imei); 50 | imsi = (EditText) findViewById(R.id.imsi); 51 | gsfid = (EditText) findViewById(R.id.gsfkey); 52 | 53 | 54 | //get = (Button) findViewById(R.id.get); 55 | device_copy = (Button) findViewById(R.id.device_copy); 56 | sim_copy = (Button) findViewById(R.id.sim_copy); 57 | wifi_copy = (Button) findViewById(R.id.wifi_copy); 58 | imei_copy = (Button) findViewById(R.id.imei_copy); 59 | imsi_copy= (Button) findViewById(R.id.imsi_b); 60 | gsf_copy = (Button) findViewById(R.id.gsf_b); 61 | 62 | makeinfoapps = (ImageView) findViewById(R.id.imageView); 63 | final int sdk = android.os.Build.VERSION.SDK_INT; 64 | 65 | TelephonyManager telemamanger = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); 66 | getSimSerialNumber = telemamanger.getSimSerialNumber(); 67 | // final String getSimNumber = telemamanger.getLine1Number(); 68 | imsi_t = telemamanger.getSubscriberId(); 69 | imei_t = telemamanger.getDeviceId(); 70 | gsf_t = getGsfAndroidId(getApplicationContext()); 71 | //final String gsf_t = " "; 72 | 73 | 74 | android_id = Settings.Secure.getString(getContentResolver(), 75 | Settings.Secure.ANDROID_ID); 76 | 77 | WifiManager manager = (WifiManager) getSystemService(Context.WIFI_SERVICE); 78 | WifiInfo info = manager.getConnectionInfo(); 79 | address = info.getMacAddress(); 80 | 81 | 82 | 83 | /*get.setOnClickListener(new View.OnClickListener() { 84 | @Override 85 | public void onClick(View v) { 86 | */ val = true; 87 | 88 | // get.setEnabled(false); 89 | sim.setText(getSimSerialNumber); 90 | device.setText(android_id); 91 | gsfid.setText(gsf_t); 92 | wifi.setText(address); 93 | imei.setText(imei_t); 94 | imsi.setText(imsi_t); 95 | 96 | sim.setKeyListener(null); 97 | device.setKeyListener(null); 98 | wifi.setKeyListener(null); 99 | imei.setKeyListener(null); 100 | imsi.setKeyListener(null); 101 | gsfid.setKeyListener(null); 102 | 103 | /* } 104 | });*/ 105 | 106 | device_copy.setOnClickListener(new View.OnClickListener() { 107 | @TargetApi(Build.VERSION_CODES.HONEYCOMB) 108 | @Override 109 | public void onClick(View v) { 110 | if(val){ 111 | if(sdk < android.os.Build.VERSION_CODES.HONEYCOMB) { 112 | android.text.ClipboardManager clipboard = (android.text.ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE); 113 | clipboard.setText(android_id); 114 | 115 | Toast.makeText(getApplicationContext(), "Text Copied to Clipboard", Toast.LENGTH_SHORT).show(); 116 | } else { 117 | android.content.ClipboardManager clipboard = (android.content.ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE); 118 | android.content.ClipData clip = android.content.ClipData.newPlainText("Clip",android_id); 119 | Toast.makeText(getApplicationContext(), "Text Copied to Clipboard", Toast.LENGTH_SHORT).show(); 120 | clipboard.setPrimaryClip(clip); 121 | }}else{ 122 | Toast.makeText(getApplicationContext(), "Nothing to Copy", Toast.LENGTH_SHORT).show(); 123 | } 124 | 125 | } 126 | }); 127 | 128 | sim_copy.setOnClickListener(new View.OnClickListener() { 129 | @TargetApi(Build.VERSION_CODES.HONEYCOMB) 130 | @Override 131 | public void onClick(View v) { 132 | if(val){ 133 | if(sdk < android.os.Build.VERSION_CODES.HONEYCOMB) { 134 | android.text.ClipboardManager clipboard = (android.text.ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE); 135 | clipboard.setText(getSimSerialNumber); 136 | Toast.makeText(getApplicationContext(), "Text Copied to Clipboard", Toast.LENGTH_SHORT).show(); 137 | } else { 138 | android.content.ClipboardManager clipboard = (android.content.ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE); 139 | android.content.ClipData clip = android.content.ClipData.newPlainText("Clip",getSimSerialNumber); 140 | Toast.makeText(getApplicationContext(), "Text Copied to Clipboard", Toast.LENGTH_SHORT).show(); 141 | clipboard.setPrimaryClip(clip); 142 | }}else{ 143 | Toast.makeText(getApplicationContext(), "Nothing to Copy", Toast.LENGTH_SHORT).show(); 144 | } 145 | 146 | } 147 | }); 148 | 149 | wifi_copy.setOnClickListener(new View.OnClickListener() { 150 | @TargetApi(Build.VERSION_CODES.HONEYCOMB) 151 | @Override 152 | public void onClick(View v) { 153 | if(val){ 154 | if(sdk < android.os.Build.VERSION_CODES.HONEYCOMB) { 155 | android.text.ClipboardManager clipboard = (android.text.ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE); 156 | clipboard.setText(address); 157 | Toast.makeText(getApplicationContext(), "Text Copied to Clipboard", Toast.LENGTH_SHORT).show(); 158 | } else { 159 | android.content.ClipboardManager clipboard = (android.content.ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE); 160 | android.content.ClipData clip = android.content.ClipData.newPlainText("Clip",android_id); 161 | Toast.makeText(getApplicationContext(), "Text Copied to Clipboard", Toast.LENGTH_SHORT).show(); 162 | clipboard.setPrimaryClip(clip); 163 | }}else{ 164 | Toast.makeText(getApplicationContext(), "Nothing to Copy", Toast.LENGTH_SHORT).show(); 165 | } 166 | 167 | } 168 | }); 169 | 170 | imei_copy.setOnClickListener(new View.OnClickListener() { 171 | @TargetApi(Build.VERSION_CODES.HONEYCOMB) 172 | @Override 173 | public void onClick(View v) { 174 | if(val){ 175 | if(sdk < android.os.Build.VERSION_CODES.HONEYCOMB) { 176 | android.text.ClipboardManager clipboard = (android.text.ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE); 177 | clipboard.setText(imei_t); 178 | Toast.makeText(getApplicationContext(), "Text Copied to Clipboard", Toast.LENGTH_SHORT).show(); 179 | } else { 180 | android.content.ClipboardManager clipboard = (android.content.ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE); 181 | android.content.ClipData clip = android.content.ClipData.newPlainText("Clip",imei_t); 182 | Toast.makeText(getApplicationContext(), "Text Copied to Clipboard", Toast.LENGTH_SHORT).show(); 183 | clipboard.setPrimaryClip(clip); 184 | }}else{ 185 | Toast.makeText(getApplicationContext(), "Nothing to Copy", Toast.LENGTH_SHORT).show(); 186 | } 187 | 188 | } 189 | }); 190 | imsi_copy.setOnClickListener(new View.OnClickListener() { 191 | @TargetApi(Build.VERSION_CODES.HONEYCOMB) 192 | @Override 193 | public void onClick(View v) { 194 | if(val){ 195 | if(sdk < android.os.Build.VERSION_CODES.HONEYCOMB) { 196 | android.text.ClipboardManager clipboard = (android.text.ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE); 197 | clipboard.setText(imsi_t); 198 | Toast.makeText(getApplicationContext(), "Text Copied to Clipboard", Toast.LENGTH_SHORT).show(); 199 | } else { 200 | android.content.ClipboardManager clipboard = (android.content.ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE); 201 | android.content.ClipData clip = android.content.ClipData.newPlainText("Clip",imsi_t); 202 | Toast.makeText(getApplicationContext(), "Text Copied to Clipboard", Toast.LENGTH_SHORT).show(); 203 | clipboard.setPrimaryClip(clip); 204 | }}else{ 205 | Toast.makeText(getApplicationContext(), "Nothing to Copy", Toast.LENGTH_SHORT).show(); 206 | } 207 | 208 | } 209 | }); 210 | 211 | 212 | gsf_copy.setOnClickListener(new View.OnClickListener() { 213 | @TargetApi(Build.VERSION_CODES.HONEYCOMB) 214 | @Override 215 | public void onClick(View v) { 216 | if (val) { 217 | if (sdk < android.os.Build.VERSION_CODES.HONEYCOMB) { 218 | android.text.ClipboardManager clipboard = (android.text.ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE); 219 | clipboard.setText(gsf_t); 220 | Toast.makeText(getApplicationContext(), "Text Copied to Clipboard", Toast.LENGTH_SHORT).show(); 221 | } else { 222 | android.content.ClipboardManager clipboard = (android.content.ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE); 223 | android.content.ClipData clip = android.content.ClipData.newPlainText("Clip", gsf_t); 224 | Toast.makeText(getApplicationContext(), "Text Copied to Clipboard", Toast.LENGTH_SHORT).show(); 225 | clipboard.setPrimaryClip(clip); 226 | } 227 | } else { 228 | Toast.makeText(getApplicationContext(), "Nothing to Copy", Toast.LENGTH_SHORT).show(); 229 | } 230 | 231 | } 232 | }); 233 | 234 | makeinfoapps.setOnClickListener(new View.OnClickListener() { 235 | @Override 236 | public void onClick(View v) { 237 | Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/search?q=pub:MakeInfo")); 238 | startActivity(browserIntent); 239 | } 240 | }); 241 | } 242 | 243 | private static String getGsfAndroidId(Context context) 244 | { 245 | Uri URI = Uri.parse("content://com.google.android.gsf.gservices"); 246 | String ID_KEY = "android_id"; 247 | String params[] = {ID_KEY}; 248 | Cursor c = context.getContentResolver().query(URI, null, null, params, null); 249 | if (!c.moveToFirst() || c.getColumnCount() < 2) 250 | return null; 251 | try 252 | { 253 | return Long.toHexString(Long.parseLong(c.getString(1))); 254 | } 255 | catch (NumberFormatException e) 256 | { 257 | return null; 258 | } 259 | } 260 | 261 | 262 | @Override 263 | public boolean onCreateOptionsMenu(Menu menu) { 264 | // Inflate the menu; this adds items to the action bar if it is present. 265 | getMenuInflater().inflate(R.menu.menu_main, menu); 266 | return true; 267 | } 268 | 269 | @Override 270 | public boolean onOptionsItemSelected(MenuItem item) { 271 | // Handle action bar item clicks here. The action bar will 272 | // automatically handle clicks on the Home/Up button, so long 273 | // as you specify a parent activity in AndroidManifest.xml. 274 | int id = item.getItemId(); 275 | 276 | //noinspection SimplifiableIfStatement 277 | if (id == R.id.help) { 278 | Intent help = new Intent(MainActivity.this,Help.class); 279 | startActivity(help); 280 | return true; 281 | } 282 | if (id == R.id.rate) { 283 | Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://play.google.com/store/apps/details?id=makeinfo.com.getid")); 284 | startActivity(browserIntent); 285 | return true; 286 | } 287 | if (id == R.id.export) { 288 | Body = "Sim Serial Number :"+getSimSerialNumber+"\n"+"Device Id : "+android_id+"\n"+"Wifi Address :"+address+"\n" 289 | +"IMEI : "+imei_t+"\n"+"IMSI :"+imsi_t+"GSF Key :"+gsf_t; 290 | // String fileName = "GetID"; 291 | //generateNoteonSD(fileName,Body); 292 | writeToFile(Body); 293 | return true; 294 | } 295 | 296 | return super.onOptionsItemSelected(item); 297 | } 298 | 299 | 300 | public void writeToFile(String data) { 301 | try { 302 | File myFile = new File("/sdcard/GetID.txt"); 303 | myFile.createNewFile(); 304 | FileOutputStream fOut = new FileOutputStream(myFile); 305 | OutputStreamWriter myOutWriter = 306 | new OutputStreamWriter(fOut); 307 | myOutWriter.append(data); 308 | myOutWriter.close(); 309 | fOut.close(); 310 | Toast.makeText(getBaseContext(), 311 | "Done writing SD 'GetID.txt'", 312 | Toast.LENGTH_SHORT).show(); 313 | } catch (Exception e) { 314 | Toast.makeText(getBaseContext(), e.getMessage(), 315 | Toast.LENGTH_SHORT).show(); 316 | } 317 | } 318 | 319 | 320 | } 321 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_good.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basil2style/getid/e52b4d22d9a6f476635133b8a5d5f5e5e3fe255f/app/src/main/res/drawable-hdpi/ic_action_good.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_help.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basil2style/getid/e52b4d22d9a6f476635133b8a5d5f5e5e3fe255f/app/src/main/res/drawable-hdpi/ic_action_help.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basil2style/getid/e52b4d22d9a6f476635133b8a5d5f5e5e3fe255f/app/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_good.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basil2style/getid/e52b4d22d9a6f476635133b8a5d5f5e5e3fe255f/app/src/main/res/drawable-mdpi/ic_action_good.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_help.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basil2style/getid/e52b4d22d9a6f476635133b8a5d5f5e5e3fe255f/app/src/main/res/drawable-mdpi/ic_action_help.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basil2style/getid/e52b4d22d9a6f476635133b8a5d5f5e5e3fe255f/app/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_good.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basil2style/getid/e52b4d22d9a6f476635133b8a5d5f5e5e3fe255f/app/src/main/res/drawable-xhdpi/ic_action_good.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_help.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basil2style/getid/e52b4d22d9a6f476635133b8a5d5f5e5e3fe255f/app/src/main/res/drawable-xhdpi/ic_action_help.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basil2style/getid/e52b4d22d9a6f476635133b8a5d5f5e5e3fe255f/app/src/main/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_good.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basil2style/getid/e52b4d22d9a6f476635133b8a5d5f5e5e3fe255f/app/src/main/res/drawable-xxhdpi/ic_action_good.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_help.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basil2style/getid/e52b4d22d9a6f476635133b8a5d5f5e5e3fe255f/app/src/main/res/drawable-xxhdpi/ic_action_help.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basil2style/getid/e52b4d22d9a6f476635133b8a5d5f5e5e3fe255f/app/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/makeinfoapps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basil2style/getid/e52b4d22d9a6f476635133b8a5d5f5e5e3fe255f/app/src/main/res/drawable/makeinfoapps -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_help.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 16 | 17 | 23 | 24 | 28 | 29 | 35 | 36 |