-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduced custom package matching rules, support for LuckyPatcher 8.0.0, removed Kt activity, refactoring
- Loading branch information
1 parent
9eaedfd
commit 6dff6ae
Showing
19 changed files
with
101 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 17 additions & 16 deletions
33
...ingprotectorsample/SecondaryActivity.java → ...ingprotectorsample/DetectionActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,46 @@ | ||
package com.andreacioccarelli.billingprotectorsample; | ||
|
||
import android.annotation.SuppressLint; | ||
import android.content.Intent; | ||
import android.os.Bundle; | ||
import android.app.Activity; | ||
import android.os.Vibrator; | ||
import android.support.design.widget.FloatingActionButton; | ||
import android.view.View; | ||
import android.widget.TextView; | ||
|
||
import com.andreacioccarelli.billingprotector.BillingProtector; | ||
import com.andreacioccarelli.billingprotector.data.PirateApp; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
public class DetectionActivity extends Activity { | ||
|
||
public class SecondaryActivity extends Activity { | ||
BillingProtector bp; | ||
|
||
@SuppressLint("SetTextI18n") | ||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_secondary); | ||
|
||
BillingProtector bp = new BillingProtector(this); | ||
|
||
TextView mxp = findViewById(R.id.mxp); | ||
mxp.setText( | ||
"isRootInstalled: " + String.valueOf(bp.isRootInstalled()) + | ||
"\narePirateAppsInstalled: " + bp.arePirateAppsInstalled() + | ||
"\n\npirateAppsList: " + bp.getPirateAppsList() | ||
); | ||
bp = new BillingProtector(this); | ||
updateData(); | ||
|
||
FloatingActionButton fab = findViewById(R.id.fab); | ||
fab.setOnClickListener(new View.OnClickListener() { | ||
@Override | ||
public void onClick(View v) { | ||
finish(); | ||
Vibrator vib = (Vibrator) getSystemService(VIBRATOR_SERVICE); | ||
vib.vibrate(100); | ||
|
||
updateData(); | ||
} | ||
}); | ||
} | ||
|
||
@Override | ||
public void onBackPressed() {} | ||
void updateData() { | ||
final TextView mxp = findViewById(R.id.mxp); | ||
mxp.setText( | ||
"isRootInstalled: " + String.valueOf(bp.isRootInstalled()) + | ||
"\narePirateAppsInstalled: " + bp.arePirateAppsInstalled() + | ||
"\n\npirateAppsList: " + bp.getPirateAppsList() | ||
); | ||
} | ||
} |
49 changes: 0 additions & 49 deletions
49
app/src/main/java/com/andreacioccarelli/billingprotectorsample/MainActivity.kt
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.