Skip to content

Commit

Permalink
Corrected spelling
Browse files Browse the repository at this point in the history
Corrected a spelling mistake in a function call.
  • Loading branch information
coolkid345 committed Dec 29, 2019
1 parent c170688 commit 82d3862
Show file tree
Hide file tree
Showing 5 changed files with 87 additions and 79 deletions.
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
Binary file modified .idea/caches/gradle_models.ser
Binary file not shown.
152 changes: 80 additions & 72 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file removed app/release/rogueapk.apk
Binary file not shown.
14 changes: 7 additions & 7 deletions app/src/main/java/com/example/rogueapk/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ protected void onCreate(Bundle savedInstanceState) {

@Override
public void onClick(View view) {
Toast.makeText(getApplicationContext(), "Scanning for rouge apps.", Toast.LENGTH_SHORT).show();
Toast.makeText(getApplicationContext(), "Scanning for rogue apps.", Toast.LENGTH_SHORT).show();

try {
// Looks for the text file containing all the package names exposed as rouge apk's.
// Looks for the text file containing all the package names exposed as rogue apk's.
@SuppressLint("WorldReadableFiles") InputStream fIn = getApplicationContext().getResources().getAssets()
.open("rougeapk.txt", MODE_WORLD_READABLE);
.open("rogueapk.txt", MODE_WORLD_READABLE);

BufferedReader input = new BufferedReader(new InputStreamReader(fIn));
String line;
Expand Down Expand Up @@ -79,11 +79,11 @@ public void isPackageInstalled(final Context context, String packageName) {
List<ResolveInfo> list = packageManager.queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY);
Toast.makeText(context, "Found: " + packageName, Toast.LENGTH_LONG).show();

ArrayList rougeapps = new ArrayList();
rougeapps.add(packageName);
ArrayList rogueapps = new ArrayList();
rogueapps.add(packageName);

for (int i = 0; i < rougeapps.size(); i++) {
final String uninstallapp = (String) rougeapps.get(i);
for (int i = 0; i < rogueapps.size(); i++) {
final String uninstallapp = (String) rogueapps.get(i);
Log.d("(Debug)", "Uninstall this --- " + uninstallapp);

AlertDialog alertDialog = new AlertDialog.Builder(MainActivity.this).create();
Expand Down

0 comments on commit 82d3862

Please sign in to comment.