├── .gitattributes ├── .gitignore ├── .idea ├── compiler.xml ├── copyright │ └── profiles_settings.xml ├── gradle.xml ├── misc.xml ├── modules.xml └── runConfigurations.xml ├── LICENSE.MD ├── README.md ├── app ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ └── main │ ├── AndroidManifest.xml │ ├── java │ └── app │ │ └── exploitr │ │ └── andropause │ │ └── MainActivity.java │ └── res │ ├── drawable-hdpi │ ├── ic_launcher.png │ └── ic_warning_white_48dp.png │ ├── drawable-mdpi │ ├── ic_launcher.png │ └── ic_warning_white_48dp.png │ ├── drawable-xhdpi │ ├── ic_launcher.png │ └── ic_warning_white_48dp.png │ ├── drawable-xxhdpi │ ├── ic_launcher.png │ └── ic_warning_white_48dp.png │ ├── drawable-xxxhdpi │ ├── ic_launcher.png │ └── ic_warning_white_48dp.png │ ├── layout │ ├── activity_main.xml │ └── content_main.xml │ └── values │ ├── colors.xml │ ├── dimens.xml │ ├── strings.xml │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── settings.gradle └── tos.md /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .externalNativeBuild 10 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 22 | -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 19 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 46 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /LICENSE.MD: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Pratim Majumder 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, 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, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![ALT TEXT](https://raw.githubusercontent.com/ExploiTR/AndroPause/master/app/src/main/res/drawable-xxxhdpi/ic_launcher.png) 2 | # AndroPause 3 | Android app for hanging device with ROOT Access 4 | 5 | # Recovery 6 | 7 | ## Removable-Battery Devices 8 |

Just remove the battery and re-insert it

9 | 10 | ## Non-Removable-Battery Devices 11 |

Press and hold the power button until device shuts down/reboots

12 | -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 25 5 | buildToolsVersion "25.0.2" 6 | defaultConfig { 7 | applicationId "app.exploitr.andropause" 8 | minSdkVersion 19 9 | targetSdkVersion 25 10 | versionCode 1 11 | versionName "1.0" 12 | } 13 | buildTypes { 14 | release { 15 | minifyEnabled true 16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 17 | } 18 | } 19 | } 20 | 21 | dependencies { 22 | compile fileTree(dir: 'libs', include: ['*.jar']) 23 | compile 'com.android.support:appcompat-v7:25.2.0' 24 | compile 'com.android.support.constraint:constraint-layout:1.0.2' 25 | compile 'com.android.support:design:25.2.0' 26 | } 27 | -------------------------------------------------------------------------------- /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:\Softwares\Developing\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 | 19 | # Uncomment this to preserve the line number information for 20 | # debugging stack traces. 21 | #-keepattributes SourceFile,LineNumberTable 22 | 23 | # If you keep the line number information, uncomment this to 24 | # hide the original source file name. 25 | #-renamesourcefileattribute SourceFile 26 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /app/src/main/java/app/exploitr/andropause/MainActivity.java: -------------------------------------------------------------------------------- 1 | package app.exploitr.andropause; 2 | 3 | import android.content.DialogInterface; 4 | import android.os.AsyncTask; 5 | import android.os.Bundle; 6 | import android.support.design.widget.FloatingActionButton; 7 | import android.support.design.widget.Snackbar; 8 | import android.support.v7.app.AlertDialog; 9 | import android.support.v7.app.AppCompatActivity; 10 | import android.support.v7.widget.Toolbar; 11 | import android.view.View; 12 | import android.widget.Button; 13 | 14 | import static java.lang.Runtime.getRuntime; 15 | 16 | public class MainActivity extends AppCompatActivity { 17 | 18 | int x; 19 | 20 | @Override 21 | protected void onCreate(Bundle savedInstanceState) { 22 | super.onCreate(savedInstanceState); 23 | setContentView(R.layout.activity_main); 24 | Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); 25 | setSupportActionBar(toolbar); 26 | x=1; 27 | Button checkroot = (Button)findViewById(R.id.checkroot); 28 | checkroot.setOnClickListener(new View.OnClickListener(){ 29 | @Override 30 | public void onClick(final View v) { 31 | Snackbar.make(v, "Checking Availability", Snackbar.LENGTH_SHORT) 32 | .setAction("Action", null).show(); 33 | 34 | AsyncTask.execute(new Runnable() { 35 | @Override 36 | public void run() { 37 | try { 38 | Process chik = getRuntime().exec("su -c ls /data/data"); 39 | chik.waitFor(); 40 | System.out.println(chik.exitValue()); 41 | if(chik.exitValue()==0){x=0; showyes(v,true);}else{x=1;showyes(v,false);} 42 | } catch (Exception e) { 43 | e.printStackTrace(); 44 | } 45 | } 46 | }); 47 | } 48 | void showyes(View v, boolean t){ 49 | if(t){Snackbar.make(v, "You can proceed to kill yourself!", Snackbar.LENGTH_LONG) 50 | .setAction("Action", null).show();}else{ 51 | Snackbar.make(v, "Sorry, You can't do it", Snackbar.LENGTH_LONG) 52 | .setAction("Action", null).show(); 53 | } 54 | } 55 | }); 56 | FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab); 57 | fab.setOnClickListener(new View.OnClickListener() { 58 | @Override 59 | public void onClick(final View view) { 60 | 61 | if(x==0){AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this) 62 | .setMessage(R.string.whattodo) 63 | .setCancelable(true) 64 | .setPositiveButton(android.R.string.yes,new DialogInterface.OnClickListener() { 65 | public void onClick(DialogInterface dialog, int id) { 66 | Snackbar.make(view, "Please Wait", Snackbar.LENGTH_LONG) 67 | .setAction("Action", null).show(); 68 | try { 69 | Process y = Runtime.getRuntime().exec("su -c am hang"); 70 | y.waitFor(); 71 | } catch (Exception e) { 72 | e.printStackTrace(); 73 | } 74 | 75 | finish(); 76 | 77 | } 78 | }); 79 | AlertDialog dialog = builder.create(); 80 | dialog.show();}else{ 81 | Snackbar.make(view, "Please check availability first.", Snackbar.LENGTH_LONG) 82 | .setAction("Action", null).show(); 83 | } 84 | 85 | } 86 | }); 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ExploiTR/AndroPause/b127d4c13c9cdb24f04904a30708807b5ddace9f/app/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_warning_white_48dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ExploiTR/AndroPause/b127d4c13c9cdb24f04904a30708807b5ddace9f/app/src/main/res/drawable-hdpi/ic_warning_white_48dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ExploiTR/AndroPause/b127d4c13c9cdb24f04904a30708807b5ddace9f/app/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_warning_white_48dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ExploiTR/AndroPause/b127d4c13c9cdb24f04904a30708807b5ddace9f/app/src/main/res/drawable-mdpi/ic_warning_white_48dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ExploiTR/AndroPause/b127d4c13c9cdb24f04904a30708807b5ddace9f/app/src/main/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_warning_white_48dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ExploiTR/AndroPause/b127d4c13c9cdb24f04904a30708807b5ddace9f/app/src/main/res/drawable-xhdpi/ic_warning_white_48dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ExploiTR/AndroPause/b127d4c13c9cdb24f04904a30708807b5ddace9f/app/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_warning_white_48dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ExploiTR/AndroPause/b127d4c13c9cdb24f04904a30708807b5ddace9f/app/src/main/res/drawable-xxhdpi/ic_warning_white_48dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ExploiTR/AndroPause/b127d4c13c9cdb24f04904a30708807b5ddace9f/app/src/main/res/drawable-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxxhdpi/ic_warning_white_48dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ExploiTR/AndroPause/b127d4c13c9cdb24f04904a30708807b5ddace9f/app/src/main/res/drawable-xxxhdpi/ic_warning_white_48dp.png -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 13 | 14 | 20 | 21 | 22 | 23 | 25 | 26 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /app/src/main/res/layout/content_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 26 | 27 | 43 | 44 | 58 | 59 |