diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/com/xc3fff0e/xmanager/MainActivity.java | 1979 |
1 files changed, 1908 insertions, 71 deletions
diff --git a/app/src/main/java/com/xc3fff0e/xmanager/MainActivity.java b/app/src/main/java/com/xc3fff0e/xmanager/MainActivity.java index ac89934..5cef6ed 100644 --- a/app/src/main/java/com/xc3fff0e/xmanager/MainActivity.java +++ b/app/src/main/java/com/xc3fff0e/xmanager/MainActivity.java @@ -6,6 +6,8 @@ import android.animation.*; import android.app.*;
import android.app.Activity;
import android.content.*;
+import android.content.ClipData;
+import android.content.ClipboardManager;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.content.res.*;
@@ -152,6 +154,11 @@ public class MainActivity extends AppCompatActivity { private String lite_0 = "";
private String mirror_0 = "";
private String installation_failed_spap_desc_0 = "";
+ private String Wave_Patched = "";
+ private double CLICKER_5 = 0;
+ private String Installed_Checker_Wave = "";
+ private double Installed_Version_Wave = 0;
+ private double Downloaded_Version_Wave = 0;
private ArrayList<String> Language = new ArrayList<>();
private ArrayList<String> Theme = new ArrayList<>();
@@ -165,6 +172,7 @@ public class MainActivity extends AppCompatActivity { private ArrayList<HashMap<String, Object>> amoled_experimental_patched = new ArrayList<>();
private ArrayList<HashMap<String, Object>> stock_experimental_cloned_patched = new ArrayList<>();
private ArrayList<HashMap<String, Object>> amoled_experimental_cloned_patched = new ArrayList<>();
+ private ArrayList<HashMap<String, Object>> wave_patched = new ArrayList<>();
private LinearLayout box_header;
private LinearLayout main_body_optimization;
@@ -411,6 +419,9 @@ public class MainActivity extends AppCompatActivity { private LinearLayout main_box_1;
private LinearLayout main_box_2;
private LinearLayout main_box_3;
+ private LinearLayout main_box_12;
+ private LinearLayout main_box_7;
+ private LinearLayout main_box_19;
private LinearLayout main_box_6;
private LinearLayout box_sub_header;
private LinearLayout main_box_4;
@@ -463,10 +474,32 @@ public class MainActivity extends AppCompatActivity { private TextView versions_3;
private LinearLayout box_sub_7;
private ImageView version_oc_03;
+ private LinearLayout box_separator_6;
+ private LinearLayout box_sub_4;
+ private LinearLayout box_separator_7;
+ private TextView title_5;
+ private LinearLayout box_10;
+ private LinearLayout box_11;
+ private LinearLayout box_separator_5;
+ private LinearLayout box_12;
+ private ListView list_items_4;
+ private TextView title_4;
+ private LinearLayout box_4_sub;
+ private TextView patched_4;
+ private TextView sub_text_4;
+ private LinearLayout box_switch_4;
+ private TextView sub_10;
+ private TextView versions_4;
+ private LinearLayout box_sub_8;
+ private ImageView version_oc_04;
+ private LinearLayout box_separator_8;
+ private LinearLayout box_sub_9;
+ private LinearLayout box_separator_9;
+ private TextView title_6;
private LinearLayout box_6_sub_2;
private LinearLayout box_separator_4;
private LinearLayout box_6_sub_3;
- private ListView list_items_4;
+ private ListView list_items_5;
private TextView sub_text_installed;
private LinearLayout box_installed;
private TextView sub_installed;
@@ -474,6 +507,8 @@ public class MainActivity extends AppCompatActivity { private TextView sub_installed_c;
private TextView sub_separator_2;
private TextView sub_installed_l;
+ private TextView sub_separator_3;
+ private TextView sub_installed_w;
private TextView changelogs;
private LinearLayout box_changelogs;
private ImageView changelogs_oc;
@@ -788,6 +823,9 @@ public class MainActivity extends AppCompatActivity { main_box_1 = findViewById(R.id.main_box_1);
main_box_2 = findViewById(R.id.main_box_2);
main_box_3 = findViewById(R.id.main_box_3);
+ main_box_12 = findViewById(R.id.main_box_12);
+ main_box_7 = findViewById(R.id.main_box_7);
+ main_box_19 = findViewById(R.id.main_box_19);
main_box_6 = findViewById(R.id.main_box_6);
box_sub_header = findViewById(R.id.box_sub_header);
main_box_4 = findViewById(R.id.main_box_4);
@@ -840,10 +878,32 @@ public class MainActivity extends AppCompatActivity { versions_3 = findViewById(R.id.versions_3);
box_sub_7 = findViewById(R.id.box_sub_7);
version_oc_03 = findViewById(R.id.version_oc_03);
+ box_separator_6 = findViewById(R.id.box_separator_6);
+ box_sub_4 = findViewById(R.id.box_sub_4);
+ box_separator_7 = findViewById(R.id.box_separator_7);
+ title_5 = findViewById(R.id.title_5);
+ box_10 = findViewById(R.id.box_10);
+ box_11 = findViewById(R.id.box_11);
+ box_separator_5 = findViewById(R.id.box_separator_5);
+ box_12 = findViewById(R.id.box_12);
+ list_items_4 = findViewById(R.id.list_items_4);
+ title_4 = findViewById(R.id.title_4);
+ box_4_sub = findViewById(R.id.box_4_sub);
+ patched_4 = findViewById(R.id.patched_4);
+ sub_text_4 = findViewById(R.id.sub_text_4);
+ box_switch_4 = findViewById(R.id.box_switch_4);
+ sub_10 = findViewById(R.id.sub_10);
+ versions_4 = findViewById(R.id.versions_4);
+ box_sub_8 = findViewById(R.id.box_sub_8);
+ version_oc_04 = findViewById(R.id.version_oc_04);
+ box_separator_8 = findViewById(R.id.box_separator_8);
+ box_sub_9 = findViewById(R.id.box_sub_9);
+ box_separator_9 = findViewById(R.id.box_separator_9);
+ title_6 = findViewById(R.id.title_6);
box_6_sub_2 = findViewById(R.id.box_6_sub_2);
box_separator_4 = findViewById(R.id.box_separator_4);
box_6_sub_3 = findViewById(R.id.box_6_sub_3);
- list_items_4 = findViewById(R.id.list_items_4);
+ list_items_5 = findViewById(R.id.list_items_5);
sub_text_installed = findViewById(R.id.sub_text_installed);
box_installed = findViewById(R.id.box_installed);
sub_installed = findViewById(R.id.sub_installed);
@@ -851,6 +911,8 @@ public class MainActivity extends AppCompatActivity { sub_installed_c = findViewById(R.id.sub_installed_c);
sub_separator_2 = findViewById(R.id.sub_separator_2);
sub_installed_l = findViewById(R.id.sub_installed_l);
+ sub_separator_3 = findViewById(R.id.sub_separator_3);
+ sub_installed_w = findViewById(R.id.sub_installed_w);
changelogs = findViewById(R.id.changelogs);
box_changelogs = findViewById(R.id.box_changelogs);
changelogs_oc = findViewById(R.id.changelogs_oc);
@@ -1170,7 +1232,7 @@ public class MainActivity extends AppCompatActivity { list_items_1.setVisibility(View.GONE);
list_items_2.setVisibility(View.GONE);
list_items_3.setVisibility(View.GONE);
- list_items_4.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.GONE);
version_oc_01.setImageResource(R.drawable.close);
version_oc_02.setImageResource(R.drawable.close);
version_oc_03.setImageResource(R.drawable.close);
@@ -1206,7 +1268,7 @@ public class MainActivity extends AppCompatActivity { list_items_1.setVisibility(View.GONE);
list_items_2.setVisibility(View.GONE);
list_items_3.setVisibility(View.GONE);
- list_items_4.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.GONE);
version_oc_01.setImageResource(R.drawable.close);
version_oc_02.setImageResource(R.drawable.close);
version_oc_03.setImageResource(R.drawable.close);
@@ -1242,7 +1304,7 @@ public class MainActivity extends AppCompatActivity { list_items_1.setVisibility(View.GONE);
list_items_2.setVisibility(View.GONE);
list_items_3.setVisibility(View.GONE);
- list_items_4.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.GONE);
version_oc_01.setImageResource(R.drawable.close);
version_oc_02.setImageResource(R.drawable.close);
version_oc_03.setImageResource(R.drawable.close);
@@ -1278,7 +1340,7 @@ public class MainActivity extends AppCompatActivity { list_items_1.setVisibility(View.GONE);
list_items_2.setVisibility(View.GONE);
list_items_3.setVisibility(View.GONE);
- list_items_4.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.GONE);
version_oc_01.setImageResource(R.drawable.close);
version_oc_02.setImageResource(R.drawable.close);
version_oc_03.setImageResource(R.drawable.close);
@@ -1324,7 +1386,7 @@ public class MainActivity extends AppCompatActivity { list_items_1.setVisibility(View.GONE);
list_items_2.setVisibility(View.GONE);
list_items_3.setVisibility(View.GONE);
- list_items_4.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.GONE);
version_oc_01.setImageResource(R.drawable.close);
version_oc_02.setImageResource(R.drawable.close);
version_oc_03.setImageResource(R.drawable.close);
@@ -1360,7 +1422,7 @@ public class MainActivity extends AppCompatActivity { list_items_1.setVisibility(View.GONE);
list_items_2.setVisibility(View.GONE);
list_items_3.setVisibility(View.GONE);
- list_items_4.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.GONE);
version_oc_01.setImageResource(R.drawable.close);
version_oc_02.setImageResource(R.drawable.close);
version_oc_03.setImageResource(R.drawable.close);
@@ -1396,7 +1458,7 @@ public class MainActivity extends AppCompatActivity { list_items_1.setVisibility(View.GONE);
list_items_2.setVisibility(View.GONE);
list_items_3.setVisibility(View.GONE);
- list_items_4.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.GONE);
version_oc_01.setImageResource(R.drawable.close);
version_oc_02.setImageResource(R.drawable.close);
version_oc_03.setImageResource(R.drawable.close);
@@ -1432,7 +1494,7 @@ public class MainActivity extends AppCompatActivity { list_items_1.setVisibility(View.GONE);
list_items_2.setVisibility(View.GONE);
list_items_3.setVisibility(View.GONE);
- list_items_4.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.GONE);
version_oc_01.setImageResource(R.drawable.close);
version_oc_02.setImageResource(R.drawable.close);
version_oc_03.setImageResource(R.drawable.close);
@@ -2057,14 +2119,17 @@ public class MainActivity extends AppCompatActivity { version_oc_01.setImageResource(R.drawable.open);
version_oc_02.setImageResource(R.drawable.close);
version_oc_03.setImageResource(R.drawable.close);
+ version_oc_04.setImageResource(R.drawable.close);
changelogs_oc.setImageResource(R.drawable.close);
list_items_2.setVisibility(View.GONE);
list_items_3.setVisibility(View.GONE);
list_items_4.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.GONE);
CLICKER_1 = 0;
CLICKER_2 = 1;
CLICKER_3 = 1;
CLICKER_4 = 1;
+ CLICKER_5 = 1;
}
else {
if (CLICKER_1 == 0) {
@@ -2113,14 +2178,17 @@ public class MainActivity extends AppCompatActivity { version_oc_01.setImageResource(R.drawable.close);
version_oc_02.setImageResource(R.drawable.open);
version_oc_03.setImageResource(R.drawable.close);
+ version_oc_04.setImageResource(R.drawable.close);
changelogs_oc.setImageResource(R.drawable.close);
list_items_1.setVisibility(View.GONE);
list_items_3.setVisibility(View.GONE);
list_items_4.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.GONE);
CLICKER_1 = 1;
CLICKER_2 = 0;
CLICKER_3 = 1;
CLICKER_4 = 1;
+ CLICKER_5 = 1;
}
else {
if (CLICKER_2 == 0) {
@@ -2143,17 +2211,20 @@ public class MainActivity extends AppCompatActivity { version_oc_01.setImageResource(R.drawable.close);
version_oc_02.setImageResource(R.drawable.close);
version_oc_03.setImageResource(R.drawable.open);
+ version_oc_04.setImageResource(R.drawable.close);
changelogs_oc.setImageResource(R.drawable.close);
list_items_1.setVisibility(View.GONE);
list_items_2.setVisibility(View.GONE);
list_items_3.setVisibility(View.VISIBLE);
list_items_4.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.GONE);
list_items_3.setAdapter(new List_items_3Adapter(lite_patched));
((BaseAdapter)list_items_3.getAdapter()).notifyDataSetChanged();
CLICKER_1 = 1;
CLICKER_2 = 1;
CLICKER_3 = 0;
CLICKER_4 = 1;
+ CLICKER_5 = 1;
}
else {
if (CLICKER_3 == 0) {
@@ -2169,34 +2240,73 @@ public class MainActivity extends AppCompatActivity { }
});
- main_box_6.setOnClickListener(new View.OnClickListener() {
+ main_box_7.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View _view) {
if (CLICKER_4 == 1) {
version_oc_01.setImageResource(R.drawable.close);
version_oc_02.setImageResource(R.drawable.close);
version_oc_03.setImageResource(R.drawable.close);
- changelogs_oc.setImageResource(R.drawable.open);
+ version_oc_04.setImageResource(R.drawable.open);
+ changelogs_oc.setImageResource(R.drawable.close);
list_items_1.setVisibility(View.GONE);
list_items_2.setVisibility(View.GONE);
list_items_3.setVisibility(View.GONE);
list_items_4.setVisibility(View.VISIBLE);
- list_items_4.setAdapter(new List_items_4Adapter(patched_changelogs));
+ list_items_5.setVisibility(View.GONE);
+ list_items_4.setAdapter(new List_items_4Adapter(wave_patched));
((BaseAdapter)list_items_4.getAdapter()).notifyDataSetChanged();
CLICKER_1 = 1;
CLICKER_2 = 1;
CLICKER_3 = 1;
CLICKER_4 = 0;
+ CLICKER_5 = 1;
}
else {
if (CLICKER_4 == 0) {
- changelogs_oc.setImageResource(R.drawable.close);
+ version_oc_04.setImageResource(R.drawable.close);
list_items_4.setVisibility(View.GONE);
CLICKER_4 = 1;
}
}
Animation animation;
animation = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.fade_in);
+ animation.setDuration(500); version_oc_04.startAnimation(animation);
+ animation = null;
+ }
+ });
+
+ main_box_6.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View _view) {
+ if (CLICKER_5 == 1) {
+ version_oc_01.setImageResource(R.drawable.close);
+ version_oc_02.setImageResource(R.drawable.close);
+ version_oc_03.setImageResource(R.drawable.close);
+ version_oc_04.setImageResource(R.drawable.close);
+ changelogs_oc.setImageResource(R.drawable.open);
+ list_items_1.setVisibility(View.GONE);
+ list_items_2.setVisibility(View.GONE);
+ list_items_3.setVisibility(View.GONE);
+ list_items_4.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.VISIBLE);
+ list_items_5.setAdapter(new List_items_5Adapter(patched_changelogs));
+ ((BaseAdapter)list_items_5.getAdapter()).notifyDataSetChanged();
+ CLICKER_1 = 1;
+ CLICKER_2 = 1;
+ CLICKER_3 = 1;
+ CLICKER_4 = 1;
+ CLICKER_5 = 0;
+ }
+ else {
+ if (CLICKER_5 == 0) {
+ changelogs_oc.setImageResource(R.drawable.close);
+ list_items_5.setVisibility(View.GONE);
+ CLICKER_5 = 1;
+ }
+ }
+ Animation animation;
+ animation = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.fade_in);
animation.setDuration(500); changelogs_oc.startAnimation(animation);
animation = null;
}
@@ -3696,6 +3806,300 @@ public class MainActivity extends AppCompatActivity { }
});
+ list_items_4.setOnItemClickListener(new AdapterView.OnItemClickListener() {
+ @Override
+ public void onItemClick(AdapterView<?> _param1, View _param2, int _param3, long _param4) {
+ final int _position = _param3;
+ try {
+ if (FileUtil.isExistFile("/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/Patched Wave (xManager).apk")) {
+ final AlertDialog.Builder File_Exist = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog);
+
+ String Title = "<b>".concat(existing_patched.getText().toString().concat("</b>"));
+ String TitleColor = "1DB954";
+
+ File_Exist.setTitle(Html.fromHtml("<font color=\"#" + TitleColor + "\">"+Title+"</font>"));
+ String Message = existing_patched_desc.getText().toString();
+ String MessageColor = "FFFFFF";
+
+ File_Exist.setMessage(Html.fromHtml("<font color=\"#" + MessageColor + "\">"+Message+"</font>"));
+ File_Exist.setPositiveButton(install.getText().toString(), new DialogInterface.OnClickListener(){
+
+ @Override
+ public void onClick(DialogInterface File_Exist, int p) {
+ AlertDialog.setCancelable(true);
+ if (FileUtil.isExistFile("/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/Patched Wave (xManager).apk")) {
+ _Extension_8();
+ }
+ }
+ });
+ File_Exist.setNegativeButton(delete.getText().toString(), new DialogInterface.OnClickListener(){
+
+ @Override
+ public void onClick(DialogInterface File_Exist, int p) {
+
+ AlertDialog.setCancelable(true);
+ com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Patched File Deleted", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
+ FileUtil.deleteFile("/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/Patched Wave (xManager).apk");
+ }
+ });
+ File_Exist.setNeutralButton(ignore.getText().toString(), new DialogInterface.OnClickListener(){
+
+ @Override
+ public void onClick(DialogInterface File_Exist, int p) {
+ AlertDialog.setCancelable(true);
+ final AlertDialog.Builder Selected_Patched = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog);
+
+ String Title = "<b>".concat(download_ready_0.concat("</b>"));
+ String TitleColor = "1DB954";
+
+ Selected_Patched.setTitle(Html.fromHtml("<font color=\"#" + TitleColor + "\">"+Title+"</font>"));
+ if (_position < 1) {
+ if ((_position % 1) == 0) {
+ String Message = "<b>VERSION: </b>".concat(wave_patched.get((int)(wave_patched.size() - 1) - _position).get("Title").toString().concat("<br/><b>PATCHED TYPE: </b>".concat("WAVE<br/><br/>").concat(download_ready_desc_0)));
+ String MessageColor = "FFFFFF";
+
+ Selected_Patched.setMessage(Html.fromHtml("<font color=\"#" + MessageColor + "\">"+Message+"</font>"));
+ }
+ }
+ else {
+ String Message = "<b>VERSION: </b>".concat(wave_patched.get((int)(wave_patched.size() - 1) - _position).get("Title").toString().concat("<br/><b>PATCHED TYPE: </b>".concat("WAVE<br/><br/>").concat(download_ready_desc_0)));
+ String MessageColor = "FFFFFF";
+
+ Selected_Patched.setMessage(Html.fromHtml("<font color=\"#" + MessageColor + "\">"+Message+"</font>"));
+ }
+ Selected_Patched.setPositiveButton(download_0, new DialogInterface.OnClickListener(){
+
+ @Override
+ public void onClick(DialogInterface Selected_Patched, int p) {
+ try {
+ if (DISABLE_REWARD_AD.getString("REWARD_AD", "").equals("ON")) {
+ AlertDialog.setCancelable(true);
+ if (FORCE_INSTALL.getString("FORCE_INSTALL", "").equals("X")) {
+ if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) {
+ _Download_Install_Wave(hidden_download_1.getText().toString(), "/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/");
+ }
+ else {
+ _Download_Install_Wave(hidden_download_2.getText().toString(), "/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/");
+ }
+ }
+ else {
+ if (FORCE_INSTALL.getString("FORCE_INSTALL", "").equals("Y")) {
+ if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) {
+ _Download_Wave(hidden_download_1.getText().toString(), "/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/");
+ }
+ else {
+ _Download_Wave(hidden_download_2.getText().toString(), "/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/");
+ }
+ }
+ }
+ _File_Remover();
+ }
+ else {
+ if (mRewardedAd != null) {
+ Activity activityContext = MainActivity.this;
+ mRewardedAd.show(activityContext, new OnUserEarnedRewardListener() {
+ @Override
+ public void onUserEarnedReward(@NonNull RewardItem rewardItem) {
+ AlertDialog.setCancelable(true);
+ if (FORCE_INSTALL.getString("FORCE_INSTALL", "").equals("X")) {
+ if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) {
+ _Download_Install_Wave(hidden_download_1.getText().toString(), "/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/");
+ }
+ else {
+ _Download_Install_Wave(hidden_download_2.getText().toString(), "/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/");
+ }
+ }
+ else {
+ if (FORCE_INSTALL.getString("FORCE_INSTALL", "").equals("Y")) {
+ if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) {
+ _Download_Wave(hidden_download_1.getText().toString(), "/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/");
+ }
+ else {
+ _Download_Wave(hidden_download_2.getText().toString(), "/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/");
+ }
+ }
+ }
+ _File_Remover();
+ int rewardAmount = rewardItem.getAmount();
+ String rewardType = rewardItem.getType();
+ }
+ });
+ } else {
+ AlertDialog.setCancelable(true);
+ if (FORCE_INSTALL.getString("FORCE_INSTALL", "").equals("X")) {
+ if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) {
+ _Download_Install_Wave(hidden_download_1.getText().toString(), "/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/");
+ }
+ else {
+ _Download_Install_Wave(hidden_download_2.getText().toString(), "/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/");
+ }
+ }
+ else {
+ if (FORCE_INSTALL.getString("FORCE_INSTALL", "").equals("Y")) {
+ if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) {
+ _Download_Wave(hidden_download_1.getText().toString(), "/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/");
+ }
+ else {
+ _Download_Wave(hidden_download_2.getText().toString(), "/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/");
+ }
+ }
+ }
+ _File_Remover();
+ }
+ }
+ }
+ catch(Exception e) {
+ }
+ }
+ });
+ Selected_Patched.setNeutralButton(cancel_0, new DialogInterface.OnClickListener(){
+
+ @Override
+ public void onClick(DialogInterface Selected_Patched, int p) {
+ AlertDialog.setCancelable(true);
+ }
+ });
+ AlertDialog = Selected_Patched.create();
+ AlertDialog.setCancelable(false);
+ AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background);
+ AlertDialog.show();
+ DELETE = 1;
+ }
+ });
+ AlertDialog = File_Exist.create();
+ AlertDialog.setCancelable(false);
+ AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background);
+ AlertDialog.show();
+ }
+ else {
+ final AlertDialog.Builder Selected_Patched = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog);
+
+ String Title = "<b>".concat(download_ready_0.concat("</b>"));
+ String TitleColor = "1DB954";
+
+ Selected_Patched.setTitle(Html.fromHtml("<font color=\"#" + TitleColor + "\">"+Title+"</font>"));
+ if (_position < 1) {
+ if ((_position % 1) == 0) {
+ String Message = "<b>VERSION: </b>".concat(wave_patched.get((int)(wave_patched.size() - 1) - _position).get("Title").toString().concat("<br/><b>PATCHED TYPE: </b>".concat("WAVE<br/><br/>").concat(download_ready_desc_0)));
+ String MessageColor = "FFFFFF";
+
+ Selected_Patched.setMessage(Html.fromHtml("<font color=\"#" + MessageColor + "\">"+Message+"</font>"));
+ }
+ }
+ else {
+ String Message = "<b>VERSION: </b>".concat(wave_patched.get((int)(wave_patched.size() - 1) - _position).get("Title").toString().concat("<br/><b>PATCHED TYPE: </b>".concat("WAVE<br/><br/>").concat(download_ready_desc_0)));
+ String MessageColor = "FFFFFF";
+
+ Selected_Patched.setMessage(Html.fromHtml("<font color=\"#" + MessageColor + "\">"+Message+"</font>"));
+ }
+ Selected_Patched.setPositiveButton(download_0, new DialogInterface.OnClickListener(){
+
+ @Override
+ public void onClick(DialogInterface Selected_Patched, int p) {
+ try {
+ if (DISABLE_REWARD_AD.getString("REWARD_AD", "").equals("ON")) {
+ AlertDialog.setCancelable(true);
+ if (FORCE_INSTALL.getString("FORCE_INSTALL", "").equals("X")) {
+ if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) {
+ _Download_Install_Wave(hidden_download_1.getText().toString(), "/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/");
+ }
+ else {
+ _Download_Install_Wave(hidden_download_2.getText().toString(), "/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/");
+ }
+ }
+ else {
+ if (FORCE_INSTALL.getString("FORCE_INSTALL", "").equals("Y")) {
+ if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) {
+ _Download_Wave(hidden_download_1.getText().toString(), "/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/");
+ }
+ else {
+ _Download_Wave(hidden_download_2.getText().toString(), "/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/");
+ }
+ }
+ }
+ _File_Remover();
+ }
+ else {
+ if (mRewardedAd != null) {
+ Activity activityContext = MainActivity.this;
+ mRewardedAd.show(activityContext, new OnUserEarnedRewardListener() {
+ @Override
+ public void onUserEarnedReward(@NonNull RewardItem rewardItem) {
+ AlertDialog.setCancelable(true);
+ if (FORCE_INSTALL.getString("FORCE_INSTALL", "").equals("X")) {
+ if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) {
+ _Download_Install_Wave(hidden_download_1.getText().toString(), "/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/");
+ }
+ else {
+ _Download_Install_Wave(hidden_download_2.getText().toString(), "/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/");
+ }
+ }
+ else {
+ if (FORCE_INSTALL.getString("FORCE_INSTALL", "").equals("Y")) {
+ if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) {
+ _Download_Wave(hidden_download_1.getText().toString(), "/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/");
+ }
+ else {
+ _Download_Wave(hidden_download_2.getText().toString(), "/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/");
+ }
+ }
+ }
+ _File_Remover();
+ int rewardAmount = rewardItem.getAmount();
+ String rewardType = rewardItem.getType();
+ }
+ });
+ } else {
+ AlertDialog.setCancelable(true);
+ if (FORCE_INSTALL.getString("FORCE_INSTALL", "").equals("X")) {
+ if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) {
+ _Download_Install_Wave(hidden_download_1.getText().toString(), "/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/");
+ }
+ else {
+ _Download_Install_Wave(hidden_download_2.getText().toString(), "/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/");
+ }
+ }
+ else {
+ if (FORCE_INSTALL.getString("FORCE_INSTALL", "").equals("Y")) {
+ if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) {
+ _Download_Wave(hidden_download_1.getText().toString(), "/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/");
+ }
+ else {
+ _Download_Wave(hidden_download_2.getText().toString(), "/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/");
+ }
+ }
+ }
+ _File_Remover();
+ }
+ }
+ }
+ catch(Exception e) {
+ }
+ }
+ });
+ Selected_Patched.setNeutralButton(cancel_0, new DialogInterface.OnClickListener(){
+
+ @Override
+ public void onClick(DialogInterface Selected_Patched, int p) {
+ AlertDialog.setCancelable(true);
+ }
+ });
+ AlertDialog = Selected_Patched.create();
+ AlertDialog.setCancelable(false);
+ AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background);
+ AlertDialog.show();
+ DELETE = 1;
+ }
+ hidden_patched.setText(wave_patched.get((int)(wave_patched.size() - 1) - _position).get("Title").toString());
+ hidden_download_1.setText(wave_patched.get((int)(wave_patched.size() - 1) - _position).get("Link_1").toString());
+ hidden_download_2.setText(wave_patched.get((int)(wave_patched.size() - 1) - _position).get("Link_2").toString());
+ hidden_download_3.setText(wave_patched.get((int)(wave_patched.size() - 1) - _position).get("Mirror").toString());
+ }
+ catch(Exception e) {
+ }
+ }
+ });
+
box_uninstall.setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View _view) {
@@ -4200,108 +4604,284 @@ public class MainActivity extends AppCompatActivity { runOnUiThread(new Runnable() {
@Override
public void run() {
- if (Installed_Checker.equals("true") && (Installed_Checker_Cloned.equals("true") && Installed_Checker_Lite.equals("true"))) {
+ if (Installed_Checker.equals("true") && (Installed_Checker_Cloned.equals("true") && (Installed_Checker_Lite.equals("true") && Installed_Checker_Wave.equals("true")))) {
sub_installed.setVisibility(View.VISIBLE);
sub_separator_1.setVisibility(View.VISIBLE);
sub_installed_c.setVisibility(View.VISIBLE);
sub_separator_2.setVisibility(View.VISIBLE);
sub_installed_l.setVisibility(View.VISIBLE);
+ sub_separator_3.setVisibility(View.VISIBLE);
+ sub_installed_w.setVisibility(View.VISIBLE);
sub_installed.setTextColor(0xFFFFFFFF);
sub_separator_1.setTextColor(0xFF616161);
sub_installed_c.setTextColor(0xFFBDBDBD);
sub_separator_2.setTextColor(0xFF616161);
sub_installed_l.setTextColor(0xFF78909C);
+ sub_separator_3.setTextColor(0xFF616161);
+ sub_installed_w.setTextColor(0xFF63F2F2);
}
else {
- if (Installed_Checker.equals("false") && (Installed_Checker_Cloned.equals("false") && Installed_Checker_Lite.equals("false"))) {
+ if (Installed_Checker.equals("false") && (Installed_Checker_Cloned.equals("false") && (Installed_Checker_Lite.equals("false") && Installed_Checker_Wave.equals("false")))) {
sub_installed.setVisibility(View.VISIBLE);
sub_separator_1.setVisibility(View.GONE);
sub_installed_c.setVisibility(View.GONE);
sub_separator_2.setVisibility(View.GONE);
sub_installed_l.setVisibility(View.GONE);
+ sub_separator_3.setVisibility(View.GONE);
+ sub_installed_w.setVisibility(View.GONE);
sub_installed.setTextColor(0xFFFFFFFF);
sub_separator_1.setTextColor(0xFF616161);
sub_installed_c.setTextColor(0xFFBDBDBD);
sub_separator_2.setTextColor(0xFF616161);
sub_installed_l.setTextColor(0xFF78909C);
+ sub_separator_3.setTextColor(0xFF616161);
+ sub_installed_w.setTextColor(0xFF63F2F2);
}
else {
- if (Installed_Checker.equals("true") && (Installed_Checker_Cloned.equals("false") && Installed_Checker_Lite.equals("false"))) {
+ if (Installed_Checker.equals("true") && (Installed_Checker_Cloned.equals("false") && (Installed_Checker_Lite.equals("false") && Installed_Checker_Wave.equals("false")))) {
sub_installed.setVisibility(View.VISIBLE);
sub_separator_1.setVisibility(View.GONE);
sub_installed_c.setVisibility(View.GONE);
sub_separator_2.setVisibility(View.GONE);
sub_installed_l.setVisibility(View.GONE);
+ sub_separator_3.setVisibility(View.GONE);
+ sub_installed_w.setVisibility(View.GONE);
sub_installed.setTextColor(0xFFFFFFFF);
sub_separator_1.setTextColor(0xFF616161);
sub_installed_c.setTextColor(0xFFBDBDBD);
sub_separator_2.setTextColor(0xFF616161);
sub_installed_l.setTextColor(0xFF78909C);
+ sub_separator_3.setTextColor(0xFF616161);
+ sub_installed_w.setTextColor(0xFF63F2F2);
}
else {
- if (Installed_Checker.equals("false") && (Installed_Checker_Cloned.equals("true") && Installed_Checker_Lite.equals("false"))) {
+ if (Installed_Checker.equals("false") && (Installed_Checker_Cloned.equals("true") && (Installed_Checker_Lite.equals("false") && Installed_Checker_Wave.equals("false")))) {
sub_installed.setVisibility(View.GONE);
sub_separator_1.setVisibility(View.GONE);
sub_installed_c.setVisibility(View.VISIBLE);
sub_separator_2.setVisibility(View.GONE);
sub_installed_l.setVisibility(View.GONE);
+ sub_separator_3.setVisibility(View.GONE);
+ sub_installed_w.setVisibility(View.GONE);
sub_installed.setTextColor(0xFFFFFFFF);
sub_separator_1.setTextColor(0xFF616161);
sub_installed_c.setTextColor(0xFFBDBDBD);
sub_separator_2.setTextColor(0xFF616161);
sub_installed_l.setTextColor(0xFF78909C);
+ sub_separator_3.setTextColor(0xFF616161);
+ sub_installed_w.setTextColor(0xFF63F2F2);
}
else {
- if (Installed_Checker.equals("false") && (Installed_Checker_Cloned.equals("false") && Installed_Checker_Lite.equals("true"))) {
+ if (Installed_Checker.equals("false") && (Installed_Checker_Cloned.equals("false") && (Installed_Checker_Lite.equals("true") && Installed_Checker_Wave.equals("false")))) {
sub_installed.setVisibility(View.GONE);
sub_separator_1.setVisibility(View.GONE);
sub_installed_c.setVisibility(View.GONE);
sub_separator_2.setVisibility(View.GONE);
sub_installed_l.setVisibility(View.VISIBLE);
+ sub_separator_3.setVisibility(View.GONE);
+ sub_installed_w.setVisibility(View.GONE);
sub_installed.setTextColor(0xFFFFFFFF);
sub_separator_1.setTextColor(0xFF616161);
sub_installed_c.setTextColor(0xFFBDBDBD);
sub_separator_2.setTextColor(0xFF616161);
sub_installed_l.setTextColor(0xFF78909C);
+ sub_separator_3.setTextColor(0xFF616161);
+ sub_installed_w.setTextColor(0xFF63F2F2);
}
else {
- if (Installed_Checker.equals("true") && (Installed_Checker_Cloned.equals("true") && Installed_Checker_Lite.equals("false"))) {
- sub_installed.setVisibility(View.VISIBLE);
- sub_separator_1.setVisibility(View.VISIBLE);
- sub_installed_c.setVisibility(View.VISIBLE);
+ if (Installed_Checker.equals("false") && (Installed_Checker_Cloned.equals("false") && (Installed_Checker_Lite.equals("false") && Installed_Checker_Wave.equals("true")))) {
+ sub_installed.setVisibility(View.GONE);
+ sub_separator_1.setVisibility(View.GONE);
+ sub_installed_c.setVisibility(View.GONE);
sub_separator_2.setVisibility(View.GONE);
sub_installed_l.setVisibility(View.GONE);
+ sub_separator_3.setVisibility(View.GONE);
+ sub_installed_w.setVisibility(View.VISIBLE);
sub_installed.setTextColor(0xFFFFFFFF);
sub_separator_1.setTextColor(0xFF616161);
sub_installed_c.setTextColor(0xFFBDBDBD);
sub_separator_2.setTextColor(0xFF616161);
sub_installed_l.setTextColor(0xFF78909C);
+ sub_separator_3.setTextColor(0xFF616161);
+ sub_installed_w.setTextColor(0xFF63F2F2);
}
else {
- if (Installed_Checker.equals("true") && (Installed_Checker_Cloned.equals("false") && Installed_Checker_Lite.equals("true"))) {
+ if (Installed_Checker.equals("true") && (Installed_Checker_Cloned.equals("true") && (Installed_Checker_Lite.equals("true") && Installed_Checker_Wave.equals("false")))) {
sub_installed.setVisibility(View.VISIBLE);
- sub_separator_1.setVisibility(View.GONE);
- sub_installed_c.setVisibility(View.GONE);
+ sub_separator_1.setVisibility(View.VISIBLE);
+ sub_installed_c.setVisibility(View.VISIBLE);
sub_separator_2.setVisibility(View.VISIBLE);
sub_installed_l.setVisibility(View.VISIBLE);
+ sub_separator_3.setVisibility(View.GONE);
+ sub_installed_w.setVisibility(View.GONE);
sub_installed.setTextColor(0xFFFFFFFF);
sub_separator_1.setTextColor(0xFF616161);
sub_installed_c.setTextColor(0xFFBDBDBD);
sub_separator_2.setTextColor(0xFF616161);
sub_installed_l.setTextColor(0xFF78909C);
+ sub_separator_3.setTextColor(0xFF616161);
+ sub_installed_w.setTextColor(0xFF63F2F2);
}
else {
- if (Installed_Checker.equals("false") && (Installed_Checker_Cloned.equals("true") && Installed_Checker_Lite.equals("true"))) {
- sub_installed.setVisibility(View.GONE);
- sub_separator_1.setVisibility(View.GONE);
+ if (Installed_Checker.equals("true") && (Installed_Checker_Cloned.equals("true") && (Installed_Checker_Lite.equals("false") && Installed_Checker_Wave.equals("true")))) {
+ sub_installed.setVisibility(View.VISIBLE);
+ sub_separator_1.setVisibility(View.VISIBLE);
sub_installed_c.setVisibility(View.VISIBLE);
- sub_separator_2.setVisibility(View.VISIBLE);
- sub_installed_l.setVisibility(View.VISIBLE);
+ sub_separator_2.setVisibility(View.GONE);
+ sub_installed_l.setVisibility(View.GONE);
+ sub_separator_3.setVisibility(View.VISIBLE);
+ sub_installed_w.setVisibility(View.VISIBLE);
sub_installed.setTextColor(0xFFFFFFFF);
sub_separator_1.setTextColor(0xFF616161);
sub_installed_c.setTextColor(0xFFBDBDBD);
sub_separator_2.setTextColor(0xFF616161);
sub_installed_l.setTextColor(0xFF78909C);
+ sub_separator_3.setTextColor(0xFF616161);
+ sub_installed_w.setTextColor(0xFF63F2F2);
+ }
+ else {
+ if (Installed_Checker.equals("true") && (Installed_Checker_Cloned.equals("false") && (Installed_Checker_Lite.equals("true") && Installed_Checker_Wave.equals("true")))) {
+ sub_installed.setVisibility(View.VISIBLE);
+ sub_separator_1.setVisibility(View.GONE);
+ sub_installed_c.setVisibility(View.GONE);
+ sub_separator_2.setVisibility(View.VISIBLE);
+ sub_installed_l.setVisibility(View.VISIBLE);
+ sub_separator_3.setVisibility(View.VISIBLE);
+ sub_installed_w.setVisibility(View.VISIBLE);
+ sub_installed.setTextColor(0xFFFFFFFF);
+ sub_separator_1.setTextColor(0xFF616161);
+ sub_installed_c.setTextColor(0xFFBDBDBD);
+ sub_separator_2.setTextColor(0xFF616161);
+ sub_installed_l.setTextColor(0xFF78909C);
+ sub_separator_3.setTextColor(0xFF616161);
+ sub_installed_w.setTextColor(0xFF63F2F2);
+ }
+ else {
+ if (Installed_Checker.equals("false") && (Installed_Checker_Cloned.equals("true") && (Installed_Checker_Lite.equals("true") && Installed_Checker_Wave.equals("true")))) {
+ sub_installed.setVisibility(View.GONE);
+ sub_separator_1.setVisibility(View.GONE);
+ sub_installed_c.setVisibility(View.VISIBLE);
+ sub_separator_2.setVisibility(View.VISIBLE);
+ sub_installed_l.setVisibility(View.VISIBLE);
+ sub_separator_3.setVisibility(View.VISIBLE);
+ sub_installed_w.setVisibility(View.VISIBLE);
+ sub_installed.setTextColor(0xFFFFFFFF);
+ sub_separator_1.setTextColor(0xFF616161);
+ sub_installed_c.setTextColor(0xFFBDBDBD);
+ sub_separator_2.setTextColor(0xFF616161);
+ sub_installed_l.setTextColor(0xFF78909C);
+ sub_separator_3.setTextColor(0xFF616161);
+ sub_installed_w.setTextColor(0xFF63F2F2);
+ }
+ else {
+ if (Installed_Checker.equals("true") && (Installed_Checker_Cloned.equals("true") && (Installed_Checker_Lite.equals("false") && Installed_Checker_Wave.equals("false")))) {
+ sub_installed.setVisibility(View.VISIBLE);
+ sub_separator_1.setVisibility(View.VISIBLE);
+ sub_installed_c.setVisibility(View.VISIBLE);
+ sub_separator_2.setVisibility(View.GONE);
+ sub_installed_l.setVisibility(View.GONE);
+ sub_separator_3.setVisibility(View.GONE);
+ sub_installed_w.setVisibility(View.GONE);
+ sub_installed.setTextColor(0xFFFFFFFF);
+ sub_separator_1.setTextColor(0xFF616161);
+ sub_installed_c.setTextColor(0xFFBDBDBD);
+ sub_separator_2.setTextColor(0xFF616161);
+ sub_installed_l.setTextColor(0xFF78909C);
+ sub_separator_3.setTextColor(0xFF616161);
+ sub_installed_w.setTextColor(0xFF63F2F2);
+ }
+ else {
+ if (Installed_Checker.equals("true") && (Installed_Checker_Cloned.equals("false") && (Installed_Checker_Lite.equals("true") && Installed_Checker_Wave.equals("false")))) {
+ sub_installed.setVisibility(View.VISIBLE);
+ sub_separator_1.setVisibility(View.GONE);
+ sub_installed_c.setVisibility(View.GONE);
+ sub_separator_2.setVisibility(View.VISIBLE);
+ sub_installed_l.setVisibility(View.VISIBLE);
+ sub_separator_3.setVisibility(View.GONE);
+ sub_installed_w.setVisibility(View.GONE);
+ sub_installed.setTextColor(0xFFFFFFFF);
+ sub_separator_1.setTextColor(0xFF616161);
+ sub_installed_c.setTextColor(0xFFBDBDBD);
+ sub_separator_2.setTextColor(0xFF616161);
+ sub_installed_l.setTextColor(0xFF78909C);
+ sub_separator_3.setTextColor(0xFF616161);
+ sub_installed_w.setTextColor(0xFF63F2F2);
+ }
+ else {
+ if (Installed_Checker.equals("true") && (Installed_Checker_Cloned.equals("false") && (Installed_Checker_Lite.equals("false") && Installed_Checker_Wave.equals("true")))) {
+ sub_installed.setVisibility(View.VISIBLE);
+ sub_separator_1.setVisibility(View.GONE);
+ sub_installed_c.setVisibility(View.GONE);
+ sub_separator_2.setVisibility(View.GONE);
+ sub_installed_l.setVisibility(View.GONE);
+ sub_separator_3.setVisibility(View.VISIBLE);
+ sub_installed_w.setVisibility(View.VISIBLE);
+ sub_installed.setTextColor(0xFFFFFFFF);
+ sub_separator_1.setTextColor(0xFF616161);
+ sub_installed_c.setTextColor(0xFFBDBDBD);
+ sub_separator_2.setTextColor(0xFF616161);
+ sub_installed_l.setTextColor(0xFF78909C);
+ sub_separator_3.setTextColor(0xFF616161);
+ sub_installed_w.setTextColor(0xFF63F2F2);
+ }
+ else {
+ if (Installed_Checker.equals("false") && (Installed_Checker_Cloned.equals("false") && (Installed_Checker_Lite.equals("true") && Installed_Checker_Wave.equals("true")))) {
+ sub_installed.setVisibility(View.GONE);
+ sub_separator_1.setVisibility(View.GONE);
+ sub_installed_c.setVisibility(View.GONE);
+ sub_separator_2.setVisibility(View.GONE);
+ sub_installed_l.setVisibility(View.VISIBLE);
+ sub_separator_3.setVisibility(View.VISIBLE);
+ sub_installed_w.setVisibility(View.VISIBLE);
+ sub_installed.setTextColor(0xFFFFFFFF);
+ sub_separator_1.setTextColor(0xFF616161);
+ sub_installed_c.setTextColor(0xFFBDBDBD);
+ sub_separator_2.setTextColor(0xFF616161);
+ sub_installed_l.setTextColor(0xFF78909C);
+ sub_separator_3.setTextColor(0xFF616161);
+ sub_installed_w.setTextColor(0xFF63F2F2);
+ }
+ else {
+ if (Installed_Checker.equals("false") && (Installed_Checker_Cloned.equals("true") && (Installed_Checker_Lite.equals("false") && Installed_Checker_Wave.equals("true")))) {
+ sub_installed.setVisibility(View.GONE);
+ sub_separator_1.setVisibility(View.GONE);
+ sub_installed_c.setVisibility(View.VISIBLE);
+ sub_separator_2.setVisibility(View.GONE);
+ sub_installed_l.setVisibility(View.GONE);
+ sub_separator_3.setVisibility(View.VISIBLE);
+ sub_installed_w.setVisibility(View.VISIBLE);
+ sub_installed.setTextColor(0xFFFFFFFF);
+ sub_separator_1.setTextColor(0xFF616161);
+ sub_installed_c.setTextColor(0xFFBDBDBD);
+ sub_separator_2.setTextColor(0xFF616161);
+ sub_installed_l.setTextColor(0xFF78909C);
+ sub_separator_3.setTextColor(0xFF616161);
+ sub_installed_w.setTextColor(0xFF63F2F2);
+ }
+ else {
+ if (Installed_Checker.equals("false") && (Installed_Checker_Cloned.equals("true") && (Installed_Checker_Lite.equals("true") && Installed_Checker_Wave.equals("false")))) {
+ sub_installed.setVisibility(View.GONE);
+ sub_separator_1.setVisibility(View.GONE);
+ sub_installed_c.setVisibility(View.VISIBLE);
+ sub_separator_2.setVisibility(View.VISIBLE);
+ sub_installed_l.setVisibility(View.VISIBLE);
+ sub_separator_3.setVisibility(View.GONE);
+ sub_installed_w.setVisibility(View.GONE);
+ sub_installed.setTextColor(0xFFFFFFFF);
+ sub_separator_1.setTextColor(0xFF616161);
+ sub_installed_c.setTextColor(0xFFBDBDBD);
+ sub_separator_2.setTextColor(0xFF616161);
+ sub_installed_l.setTextColor(0xFF78909C);
+ sub_separator_3.setTextColor(0xFF616161);
+ sub_installed_w.setTextColor(0xFF63F2F2);
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
}
}
}
@@ -4313,6 +4893,7 @@ public class MainActivity extends AppCompatActivity { sub_installed.setText("N/A");
sub_installed_c.setText("N/A");
sub_installed_l.setText("N/A");
+ sub_installed_w.setText("N/A");
String uri = "com.spotify.music";
android.content.pm.PackageManager pm = getPackageManager();
@@ -4358,6 +4939,21 @@ public class MainActivity extends AppCompatActivity { Installed_Checker_Lite = "false";
}
+ String uri_w = "com.aspiro.tidal";
+ android.content.pm.PackageManager pm_w = getPackageManager();
+
+ try {
+ android.content.pm.PackageInfo pInfo = pm_w.getPackageInfo(uri_w, android.content.pm.PackageManager.GET_ACTIVITIES);
+ String version_w = pInfo.versionName;
+ sub_installed_w.setText(version_w);
+ Installed_Checker_Wave = "true";
+ }
+
+ catch (Exception e) {
+ sub_installed_w.setText("N/A");
+ Installed_Checker_Wave = "false";
+ }
+
String app = "com.xc3fff0e.xmanager";
android.content.pm.PackageManager ver = getPackageManager();
@@ -5382,44 +5978,56 @@ public class MainActivity extends AppCompatActivity { c = null;
Animation d;
d = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left);
- d.setDuration(500); main_box_6.startAnimation(d);
+ d.setDuration(500); main_box_12.startAnimation(d);
d = null;
Animation e;
e = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left);
- e.setDuration(600); box_sub_header.startAnimation(e);
+ e.setDuration(600); main_box_7.startAnimation(e);
e = null;
Animation f;
f = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left);
- f.setDuration(700); main_box_4.startAnimation(f);
+ f.setDuration(700); main_box_19.startAnimation(f);
f = null;
Animation g;
g = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left);
- g.setDuration(800); main_box_15.startAnimation(g);
+ g.setDuration(800); main_box_6.startAnimation(g);
g = null;
Animation h;
h = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left);
- h.setDuration(300); title_header.startAnimation(h);
+ h.setDuration(900); box_sub_header.startAnimation(h);
h = null;
Animation i;
i = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left);
- i.setDuration(400); title_header_beta.startAnimation(i);
+ i.setDuration(1000); main_box_4.startAnimation(i);
i = null;
Animation j;
j = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left);
- j.setDuration(500); title_header_separator.startAnimation(j);
+ j.setDuration(1100); main_box_15.startAnimation(j);
j = null;
Animation k;
k = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left);
- k.setDuration(600); box_experiment.startAnimation(k);
+ k.setDuration(300); title_header.startAnimation(k);
k = null;
Animation l;
l = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left);
- l.setDuration(700); box_switch.startAnimation(l);
+ l.setDuration(400); title_header_beta.startAnimation(l);
l = null;
Animation m;
m = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left);
- m.setDuration(800); box_update.startAnimation(m);
+ m.setDuration(500); title_header_separator.startAnimation(m);
m = null;
+ Animation n;
+ n = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left);
+ n.setDuration(600); box_experiment.startAnimation(n);
+ n = null;
+ Animation o;
+ o = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left);
+ o.setDuration(700); box_switch.startAnimation(o);
+ o = null;
+ Animation p;
+ p = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left);
+ p.setDuration(800); box_update.startAnimation(p);
+ p = null;
}
@@ -5539,6 +6147,7 @@ public class MainActivity extends AppCompatActivity { list_items_2.setVisibility(View.GONE);
list_items_3.setVisibility(View.GONE);
list_items_4.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.GONE);
list_items_1.setAdapter(new List_items_1Adapter(stock_patched));
((BaseAdapter)list_items_1.getAdapter()).notifyDataSetChanged();
}
@@ -5548,6 +6157,7 @@ public class MainActivity extends AppCompatActivity { list_items_2.setVisibility(View.GONE);
list_items_3.setVisibility(View.GONE);
list_items_4.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.GONE);
list_items_1.setAdapter(new List_items_1Adapter(stock_cloned_patched));
((BaseAdapter)list_items_1.getAdapter()).notifyDataSetChanged();
}
@@ -5557,6 +6167,7 @@ public class MainActivity extends AppCompatActivity { list_items_2.setVisibility(View.GONE);
list_items_3.setVisibility(View.GONE);
list_items_4.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.GONE);
list_items_1.setAdapter(new List_items_1Adapter(stock_experimental_patched));
((BaseAdapter)list_items_1.getAdapter()).notifyDataSetChanged();
}
@@ -5566,6 +6177,7 @@ public class MainActivity extends AppCompatActivity { list_items_2.setVisibility(View.GONE);
list_items_3.setVisibility(View.GONE);
list_items_4.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.GONE);
list_items_1.setAdapter(new List_items_1Adapter(stock_experimental_cloned_patched));
((BaseAdapter)list_items_1.getAdapter()).notifyDataSetChanged();
}
@@ -5579,6 +6191,7 @@ public class MainActivity extends AppCompatActivity { version_oc_01.setImageResource(R.drawable.open);
version_oc_02.setImageResource(R.drawable.close);
version_oc_03.setImageResource(R.drawable.close);
+ version_oc_04.setImageResource(R.drawable.close);
changelogs_oc.setImageResource(R.drawable.close);
Timer = new TimerTask() {
@Override
@@ -5591,6 +6204,7 @@ public class MainActivity extends AppCompatActivity { list_items_2.setVisibility(View.VISIBLE);
list_items_3.setVisibility(View.GONE);
list_items_4.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.GONE);
list_items_2.setAdapter(new List_items_2Adapter(amoled_patched));
((BaseAdapter)list_items_2.getAdapter()).notifyDataSetChanged();
}
@@ -5600,6 +6214,7 @@ public class MainActivity extends AppCompatActivity { list_items_2.setVisibility(View.VISIBLE);
list_items_3.setVisibility(View.GONE);
list_items_4.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.GONE);
list_items_2.setAdapter(new List_items_2Adapter(amoled_cloned_patched));
((BaseAdapter)list_items_2.getAdapter()).notifyDataSetChanged();
}
@@ -5609,6 +6224,7 @@ public class MainActivity extends AppCompatActivity { list_items_2.setVisibility(View.VISIBLE);
list_items_3.setVisibility(View.GONE);
list_items_4.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.GONE);
list_items_2.setAdapter(new List_items_2Adapter(amoled_experimental_patched));
((BaseAdapter)list_items_2.getAdapter()).notifyDataSetChanged();
}
@@ -5618,6 +6234,7 @@ public class MainActivity extends AppCompatActivity { list_items_2.setVisibility(View.VISIBLE);
list_items_3.setVisibility(View.GONE);
list_items_4.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.GONE);
list_items_2.setAdapter(new List_items_2Adapter(amoled_experimental_cloned_patched));
((BaseAdapter)list_items_2.getAdapter()).notifyDataSetChanged();
}
@@ -5631,6 +6248,7 @@ public class MainActivity extends AppCompatActivity { version_oc_01.setImageResource(R.drawable.close);
version_oc_02.setImageResource(R.drawable.open);
version_oc_03.setImageResource(R.drawable.close);
+ version_oc_04.setImageResource(R.drawable.close);
changelogs_oc.setImageResource(R.drawable.close);
Timer = new TimerTask() {
@Override
@@ -5646,9 +6264,11 @@ public class MainActivity extends AppCompatActivity { list_items_2.setVisibility(View.GONE);
list_items_3.setVisibility(View.VISIBLE);
list_items_4.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.GONE);
version_oc_01.setImageResource(R.drawable.close);
version_oc_02.setImageResource(R.drawable.close);
version_oc_03.setImageResource(R.drawable.open);
+ version_oc_04.setImageResource(R.drawable.close);
changelogs_oc.setImageResource(R.drawable.close);
list_items_3.setAdapter(new List_items_3Adapter(lite_patched));
((BaseAdapter)list_items_3.getAdapter()).notifyDataSetChanged();
@@ -5660,17 +6280,19 @@ public class MainActivity extends AppCompatActivity { public void run() {
Animation animation;
animation = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.fade_in);
- animation.setDuration(500); changelogs_oc.startAnimation(animation);
+ animation.setDuration(500); version_oc_04.startAnimation(animation);
animation = null;
list_items_1.setVisibility(View.GONE);
list_items_2.setVisibility(View.GONE);
list_items_3.setVisibility(View.GONE);
list_items_4.setVisibility(View.VISIBLE);
+ list_items_5.setVisibility(View.GONE);
version_oc_01.setImageResource(R.drawable.close);
version_oc_02.setImageResource(R.drawable.close);
version_oc_03.setImageResource(R.drawable.close);
- changelogs_oc.setImageResource(R.drawable.open);
- list_items_4.setAdapter(new List_items_4Adapter(patched_changelogs));
+ version_oc_04.setImageResource(R.drawable.open);
+ changelogs_oc.setImageResource(R.drawable.close);
+ list_items_4.setAdapter(new List_items_4Adapter(wave_patched));
((BaseAdapter)list_items_4.getAdapter()).notifyDataSetChanged();
Timer = new TimerTask() {
@Override
@@ -5678,19 +6300,48 @@ public class MainActivity extends AppCompatActivity { runOnUiThread(new Runnable() {
@Override
public void run() {
- main_refresh_layout.setRefreshing(false);
+ Animation animation;
+ animation = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.fade_in);
+ animation.setDuration(500); changelogs_oc.startAnimation(animation);
+ animation = null;
list_items_1.setVisibility(View.GONE);
list_items_2.setVisibility(View.GONE);
list_items_3.setVisibility(View.GONE);
list_items_4.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.VISIBLE);
version_oc_01.setImageResource(R.drawable.close);
version_oc_02.setImageResource(R.drawable.close);
version_oc_03.setImageResource(R.drawable.close);
- changelogs_oc.setImageResource(R.drawable.close);
- main_body.setAlpha((float)(1.0d));
- String currentDateTimeString = java.text.DateFormat.getDateTimeInstance().format(new Date());
-
- com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Data List Updated | " + (currentDateTimeString), com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
+ version_oc_04.setImageResource(R.drawable.close);
+ changelogs_oc.setImageResource(R.drawable.open);
+ list_items_5.setAdapter(new List_items_5Adapter(patched_changelogs));
+ ((BaseAdapter)list_items_5.getAdapter()).notifyDataSetChanged();
+ Timer = new TimerTask() {
+ @Override
+ public void run() {
+ runOnUiThread(new Runnable() {
+ @Override
+ public void run() {
+ main_refresh_layout.setRefreshing(false);
+ list_items_1.setVisibility(View.GONE);
+ list_items_2.setVisibility(View.GONE);
+ list_items_3.setVisibility(View.GONE);
+ list_items_4.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.GONE);
+ version_oc_01.setImageResource(R.drawable.close);
+ version_oc_02.setImageResource(R.drawable.close);
+ version_oc_03.setImageResource(R.drawable.close);
+ version_oc_04.setImageResource(R.drawable.close);
+ changelogs_oc.setImageResource(R.drawable.close);
+ main_body.setAlpha((float)(1.0d));
+ String currentDateTimeString = java.text.DateFormat.getDateTimeInstance().format(new Date());
+
+ com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Data List Updated | " + (currentDateTimeString), com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
+ }
+ });
+ }
+ };
+ _timer.schedule(Timer, (int)(800));
}
});
}
@@ -6403,9 +7054,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest);
sub_text_2.setText(R.string.latest);
sub_text_3.setText(R.string.latest);
+ sub_text_4.setText(R.string.latest);
versions_1.setText(R.string.versions);
versions_2.setText(R.string.versions);
versions_3.setText(R.string.versions);
+ versions_4.setText(R.string.versions);
title_sub.setText(R.string.manager_tools);
source.setText(R.string.source);
support.setText(R.string.support);
@@ -6515,9 +7168,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_01);
sub_text_2.setText(R.string.latest_01);
sub_text_3.setText(R.string.latest_01);
+ sub_text_4.setText(R.string.latest_01);
versions_1.setText(R.string.versions_01);
versions_2.setText(R.string.versions_01);
versions_3.setText(R.string.versions_01);
+ versions_4.setText(R.string.versions_01);
title_sub.setText(R.string.manager_tools_01);
source.setText(R.string.source_01);
support.setText(R.string.support_01);
@@ -6627,9 +7282,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_02);
sub_text_2.setText(R.string.latest_02);
sub_text_3.setText(R.string.latest_02);
+ sub_text_4.setText(R.string.latest_02);
versions_1.setText(R.string.versions_02);
versions_2.setText(R.string.versions_02);
versions_3.setText(R.string.versions_02);
+ versions_4.setText(R.string.versions_02);
title_sub.setText(R.string.manager_tools_02);
source.setText(R.string.source_02);
support.setText(R.string.support_02);
@@ -6739,9 +7396,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_03);
sub_text_2.setText(R.string.latest_03);
sub_text_3.setText(R.string.latest_03);
+ sub_text_4.setText(R.string.latest_03);
versions_1.setText(R.string.versions_03);
versions_2.setText(R.string.versions_03);
versions_3.setText(R.string.versions_03);
+ versions_4.setText(R.string.versions_03);
title_sub.setText(R.string.manager_tools_03);
source.setText(R.string.source_03);
support.setText(R.string.support_03);
@@ -6851,9 +7510,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_04);
sub_text_2.setText(R.string.latest_04);
sub_text_3.setText(R.string.latest_04);
+ sub_text_4.setText(R.string.latest_04);
versions_1.setText(R.string.versions_04);
versions_2.setText(R.string.versions_04);
versions_3.setText(R.string.versions_04);
+ versions_4.setText(R.string.versions_04);
title_sub.setText(R.string.manager_tools_04);
source.setText(R.string.source_04);
support.setText(R.string.support_04);
@@ -6963,9 +7624,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_05);
sub_text_2.setText(R.string.latest_05);
sub_text_3.setText(R.string.latest_05);
+ sub_text_4.setText(R.string.latest_05);
versions_1.setText(R.string.versions_05);
versions_2.setText(R.string.versions_05);
versions_3.setText(R.string.versions_05);
+ versions_4.setText(R.string.versions_05);
title_sub.setText(R.string.manager_tools_05);
source.setText(R.string.source_05);
support.setText(R.string.support_05);
@@ -7075,9 +7738,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_06);
sub_text_2.setText(R.string.latest_06);
sub_text_3.setText(R.string.latest_06);
+ sub_text_4.setText(R.string.latest_06);
versions_1.setText(R.string.versions_06);
versions_2.setText(R.string.versions_06);
versions_3.setText(R.string.versions_06);
+ versions_4.setText(R.string.versions_06);
title_sub.setText(R.string.manager_tools_06);
source.setText(R.string.source_06);
support.setText(R.string.support_06);
@@ -7187,9 +7852,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_07);
sub_text_2.setText(R.string.latest_07);
sub_text_3.setText(R.string.latest_07);
+ sub_text_4.setText(R.string.latest_07);
versions_1.setText(R.string.versions_07);
versions_2.setText(R.string.versions_07);
versions_3.setText(R.string.versions_07);
+ versions_4.setText(R.string.versions_07);
title_sub.setText(R.string.manager_tools_07);
source.setText(R.string.source_07);
support.setText(R.string.support_07);
@@ -7299,9 +7966,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_08);
sub_text_2.setText(R.string.latest_08);
sub_text_3.setText(R.string.latest_08);
+ sub_text_4.setText(R.string.latest_08);
versions_1.setText(R.string.versions_08);
versions_2.setText(R.string.versions_08);
versions_3.setText(R.string.versions_08);
+ versions_4.setText(R.string.versions_08);
title_sub.setText(R.string.manager_tools_08);
source.setText(R.string.source_08);
support.setText(R.string.support_08);
@@ -7411,9 +8080,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_09);
sub_text_2.setText(R.string.latest_09);
sub_text_3.setText(R.string.latest_09);
+ sub_text_4.setText(R.string.latest_09);
versions_1.setText(R.string.versions_09);
versions_2.setText(R.string.versions_09);
versions_3.setText(R.string.versions_09);
+ versions_4.setText(R.string.versions_09);
title_sub.setText(R.string.manager_tools_09);
source.setText(R.string.source_09);
support.setText(R.string.support_09);
@@ -7523,9 +8194,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_10);
sub_text_2.setText(R.string.latest_10);
sub_text_3.setText(R.string.latest_10);
+ sub_text_4.setText(R.string.latest_10);
versions_1.setText(R.string.versions_10);
versions_2.setText(R.string.versions_10);
versions_3.setText(R.string.versions_10);
+ versions_4.setText(R.string.versions_10);
title_sub.setText(R.string.manager_tools_10);
source.setText(R.string.source_10);
support.setText(R.string.support_10);
@@ -7635,9 +8308,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_11);
sub_text_2.setText(R.string.latest_11);
sub_text_3.setText(R.string.latest_11);
+ sub_text_4.setText(R.string.latest_11);
versions_1.setText(R.string.versions_11);
versions_2.setText(R.string.versions_11);
versions_3.setText(R.string.versions_11);
+ versions_4.setText(R.string.versions_11);
title_sub.setText(R.string.manager_tools_11);
source.setText(R.string.source_11);
support.setText(R.string.support_11);
@@ -7747,9 +8422,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_12);
sub_text_2.setText(R.string.latest_12);
sub_text_3.setText(R.string.latest_12);
+ sub_text_4.setText(R.string.latest_12);
versions_1.setText(R.string.versions_12);
versions_2.setText(R.string.versions_12);
versions_3.setText(R.string.versions_12);
+ versions_4.setText(R.string.versions_12);
title_sub.setText(R.string.manager_tools_12);
source.setText(R.string.source_12);
support.setText(R.string.support_12);
@@ -7859,9 +8536,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_13);
sub_text_2.setText(R.string.latest_13);
sub_text_3.setText(R.string.latest_13);
+ sub_text_4.setText(R.string.latest_13);
versions_1.setText(R.string.versions_13);
versions_2.setText(R.string.versions_13);
versions_3.setText(R.string.versions_13);
+ versions_4.setText(R.string.versions_13);
title_sub.setText(R.string.manager_tools_13);
source.setText(R.string.source_13);
support.setText(R.string.support_13);
@@ -7971,9 +8650,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_14);
sub_text_2.setText(R.string.latest_14);
sub_text_3.setText(R.string.latest_14);
+ sub_text_4.setText(R.string.latest_14);
versions_1.setText(R.string.versions_14);
versions_2.setText(R.string.versions_14);
versions_3.setText(R.string.versions_14);
+ versions_4.setText(R.string.versions_14);
title_sub.setText(R.string.manager_tools_14);
source.setText(R.string.source_14);
support.setText(R.string.support_14);
@@ -8083,9 +8764,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_15);
sub_text_2.setText(R.string.latest_15);
sub_text_3.setText(R.string.latest_15);
+ sub_text_4.setText(R.string.latest_15);
versions_1.setText(R.string.versions_15);
versions_2.setText(R.string.versions_15);
versions_3.setText(R.string.versions_15);
+ versions_4.setText(R.string.versions_15);
title_sub.setText(R.string.manager_tools_15);
source.setText(R.string.source_15);
support.setText(R.string.support_15);
@@ -8195,9 +8878,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_16);
sub_text_2.setText(R.string.latest_16);
sub_text_3.setText(R.string.latest_16);
+ sub_text_4.setText(R.string.latest_16);
versions_1.setText(R.string.versions_16);
versions_2.setText(R.string.versions_16);
versions_3.setText(R.string.versions_16);
+ versions_4.setText(R.string.versions_16);
title_sub.setText(R.string.manager_tools_16);
source.setText(R.string.source_16);
support.setText(R.string.support_16);
@@ -8307,9 +8992,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_17);
sub_text_2.setText(R.string.latest_17);
sub_text_3.setText(R.string.latest_17);
+ sub_text_4.setText(R.string.latest_17);
versions_1.setText(R.string.versions_17);
versions_2.setText(R.string.versions_17);
versions_3.setText(R.string.versions_17);
+ versions_4.setText(R.string.versions_17);
title_sub.setText(R.string.manager_tools_17);
source.setText(R.string.source_17);
support.setText(R.string.support_17);
@@ -8419,9 +9106,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_18);
sub_text_2.setText(R.string.latest_18);
sub_text_3.setText(R.string.latest_18);
+ sub_text_4.setText(R.string.latest_18);
versions_1.setText(R.string.versions_18);
versions_2.setText(R.string.versions_18);
versions_3.setText(R.string.versions_18);
+ versions_4.setText(R.string.versions_18);
title_sub.setText(R.string.manager_tools_18);
source.setText(R.string.source_18);
support.setText(R.string.support_18);
@@ -8531,9 +9220,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_19);
sub_text_2.setText(R.string.latest_19);
sub_text_3.setText(R.string.latest_19);
+ sub_text_4.setText(R.string.latest_19);
versions_1.setText(R.string.versions_19);
versions_2.setText(R.string.versions_19);
versions_3.setText(R.string.versions_19);
+ versions_4.setText(R.string.versions_19);
title_sub.setText(R.string.manager_tools_19);
source.setText(R.string.source_19);
support.setText(R.string.support_19);
@@ -8643,9 +9334,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_20);
sub_text_2.setText(R.string.latest_20);
sub_text_3.setText(R.string.latest_20);
+ sub_text_4.setText(R.string.latest_20);
versions_1.setText(R.string.versions_20);
versions_2.setText(R.string.versions_20);
versions_3.setText(R.string.versions_20);
+ versions_4.setText(R.string.versions_20);
title_sub.setText(R.string.manager_tools_20);
source.setText(R.string.source_20);
support.setText(R.string.support_20);
@@ -8755,9 +9448,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_21);
sub_text_2.setText(R.string.latest_21);
sub_text_3.setText(R.string.latest_21);
+ sub_text_4.setText(R.string.latest_21);
versions_1.setText(R.string.versions_21);
versions_2.setText(R.string.versions_21);
versions_3.setText(R.string.versions_21);
+ versions_4.setText(R.string.versions_21);
title_sub.setText(R.string.manager_tools_21);
source.setText(R.string.source_21);
support.setText(R.string.support_21);
@@ -8867,9 +9562,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_22);
sub_text_2.setText(R.string.latest_22);
sub_text_3.setText(R.string.latest_22);
+ sub_text_4.setText(R.string.latest_22);
versions_1.setText(R.string.versions_22);
versions_2.setText(R.string.versions_22);
versions_3.setText(R.string.versions_22);
+ versions_4.setText(R.string.versions_22);
title_sub.setText(R.string.manager_tools_22);
source.setText(R.string.source_22);
support.setText(R.string.support_22);
@@ -8979,9 +9676,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_23);
sub_text_2.setText(R.string.latest_23);
sub_text_3.setText(R.string.latest_23);
+ sub_text_4.setText(R.string.latest_23);
versions_1.setText(R.string.versions_23);
versions_2.setText(R.string.versions_23);
versions_3.setText(R.string.versions_23);
+ versions_4.setText(R.string.versions_23);
title_sub.setText(R.string.manager_tools_23);
source.setText(R.string.source_23);
support.setText(R.string.support_23);
@@ -9091,9 +9790,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_24);
sub_text_2.setText(R.string.latest_24);
sub_text_3.setText(R.string.latest_24);
+ sub_text_4.setText(R.string.latest_24);
versions_1.setText(R.string.versions_24);
versions_2.setText(R.string.versions_24);
versions_3.setText(R.string.versions_24);
+ versions_4.setText(R.string.versions_24);
title_sub.setText(R.string.manager_tools_24);
source.setText(R.string.source_24);
support.setText(R.string.support_24);
@@ -9203,9 +9904,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_25);
sub_text_2.setText(R.string.latest_25);
sub_text_3.setText(R.string.latest_25);
+ sub_text_4.setText(R.string.latest_25);
versions_1.setText(R.string.versions_25);
versions_2.setText(R.string.versions_25);
versions_3.setText(R.string.versions_25);
+ versions_4.setText(R.string.versions_25);
title_sub.setText(R.string.manager_tools_25);
source.setText(R.string.source_25);
support.setText(R.string.support_25);
@@ -9315,9 +10018,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_26);
sub_text_2.setText(R.string.latest_26);
sub_text_3.setText(R.string.latest_26);
+ sub_text_4.setText(R.string.latest_26);
versions_1.setText(R.string.versions_26);
versions_2.setText(R.string.versions_26);
versions_3.setText(R.string.versions_26);
+ versions_4.setText(R.string.versions_26);
title_sub.setText(R.string.manager_tools_26);
source.setText(R.string.source_26);
support.setText(R.string.support_26);
@@ -9427,9 +10132,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_27);
sub_text_2.setText(R.string.latest_27);
sub_text_3.setText(R.string.latest_27);
+ sub_text_4.setText(R.string.latest_27);
versions_1.setText(R.string.versions_27);
versions_2.setText(R.string.versions_27);
versions_3.setText(R.string.versions_27);
+ versions_4.setText(R.string.versions_27);
title_sub.setText(R.string.manager_tools_27);
source.setText(R.string.source_27);
support.setText(R.string.support_27);
@@ -9539,9 +10246,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_28);
sub_text_2.setText(R.string.latest_28);
sub_text_3.setText(R.string.latest_28);
+ sub_text_4.setText(R.string.latest_28);
versions_1.setText(R.string.versions_28);
versions_2.setText(R.string.versions_28);
versions_3.setText(R.string.versions_28);
+ versions_4.setText(R.string.versions_28);
title_sub.setText(R.string.manager_tools_28);
source.setText(R.string.source_28);
support.setText(R.string.support_28);
@@ -9651,9 +10360,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_29);
sub_text_2.setText(R.string.latest_29);
sub_text_3.setText(R.string.latest_29);
+ sub_text_4.setText(R.string.latest_29);
versions_1.setText(R.string.versions_29);
versions_2.setText(R.string.versions_29);
versions_3.setText(R.string.versions_29);
+ versions_4.setText(R.string.versions_29);
title_sub.setText(R.string.manager_tools_29);
source.setText(R.string.source_29);
support.setText(R.string.support_29);
@@ -9763,9 +10474,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_30);
sub_text_2.setText(R.string.latest_30);
sub_text_3.setText(R.string.latest_30);
+ sub_text_4.setText(R.string.latest_30);
versions_1.setText(R.string.versions_30);
versions_2.setText(R.string.versions_30);
versions_3.setText(R.string.versions_30);
+ versions_4.setText(R.string.versions_30);
title_sub.setText(R.string.manager_tools_30);
source.setText(R.string.source_30);
support.setText(R.string.support_30);
@@ -9875,9 +10588,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_31);
sub_text_2.setText(R.string.latest_31);
sub_text_3.setText(R.string.latest_31);
+ sub_text_4.setText(R.string.latest_31);
versions_1.setText(R.string.versions_31);
versions_2.setText(R.string.versions_31);
versions_3.setText(R.string.versions_31);
+ versions_4.setText(R.string.versions_31);
title_sub.setText(R.string.manager_tools_31);
source.setText(R.string.source_31);
support.setText(R.string.support_31);
@@ -9987,9 +10702,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_32);
sub_text_2.setText(R.string.latest_32);
sub_text_3.setText(R.string.latest_32);
+ sub_text_4.setText(R.string.latest_32);
versions_1.setText(R.string.versions_32);
versions_2.setText(R.string.versions_32);
versions_3.setText(R.string.versions_32);
+ versions_4.setText(R.string.versions_32);
title_sub.setText(R.string.manager_tools_32);
source.setText(R.string.source_32);
support.setText(R.string.support_32);
@@ -10099,9 +10816,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_33);
sub_text_2.setText(R.string.latest_33);
sub_text_3.setText(R.string.latest_33);
+ sub_text_4.setText(R.string.latest_33);
versions_1.setText(R.string.versions_33);
versions_2.setText(R.string.versions_33);
versions_3.setText(R.string.versions_33);
+ versions_4.setText(R.string.versions_33);
title_sub.setText(R.string.manager_tools_33);
source.setText(R.string.source_33);
support.setText(R.string.support_33);
@@ -10211,9 +10930,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_34);
sub_text_2.setText(R.string.latest_34);
sub_text_3.setText(R.string.latest_34);
+ sub_text_4.setText(R.string.latest_34);
versions_1.setText(R.string.versions_34);
versions_2.setText(R.string.versions_34);
versions_3.setText(R.string.versions_34);
+ versions_4.setText(R.string.versions_34);
title_sub.setText(R.string.manager_tools_34);
source.setText(R.string.source_34);
support.setText(R.string.support_34);
@@ -10323,9 +11044,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_35);
sub_text_2.setText(R.string.latest_35);
sub_text_3.setText(R.string.latest_35);
+ sub_text_4.setText(R.string.latest_35);
versions_1.setText(R.string.versions_35);
versions_2.setText(R.string.versions_35);
versions_3.setText(R.string.versions_35);
+ versions_4.setText(R.string.versions_35);
title_sub.setText(R.string.manager_tools_35);
source.setText(R.string.source_35);
support.setText(R.string.support_35);
@@ -10566,9 +11289,11 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest);
sub_text_2.setText(R.string.latest);
sub_text_3.setText(R.string.latest);
+ sub_text_4.setText(R.string.latest);
versions_1.setText(R.string.versions);
versions_2.setText(R.string.versions);
versions_3.setText(R.string.versions);
+ versions_4.setText(R.string.versions);
title_sub.setText(R.string.manager_tools);
source.setText(R.string.source);
support.setText(R.string.support);
@@ -10776,20 +11501,32 @@ public class MainActivity extends AppCompatActivity { c = null;
Animation d;
d = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left);
- d.setDuration(500); main_box_6.startAnimation(d);
+ d.setDuration(500); main_box_12.startAnimation(d);
d = null;
Animation e;
e = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left);
- e.setDuration(600); box_sub_header.startAnimation(e);
+ e.setDuration(600); main_box_7.startAnimation(e);
e = null;
Animation f;
f = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left);
- f.setDuration(700); main_box_4.startAnimation(f);
+ f.setDuration(700); main_box_19.startAnimation(f);
f = null;
Animation g;
g = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left);
- g.setDuration(800); main_box_15.startAnimation(g);
+ g.setDuration(800); main_box_6.startAnimation(g);
g = null;
+ Animation h;
+ h = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left);
+ h.setDuration(900); box_sub_header.startAnimation(h);
+ h = null;
+ Animation i;
+ i = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left);
+ i.setDuration(1000); main_box_4.startAnimation(i);
+ i = null;
+ Animation j;
+ j = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left);
+ j.setDuration(1100); main_box_15.startAnimation(j);
+ j = null;
}
@@ -10830,6 +11567,15 @@ public class MainActivity extends AppCompatActivity { }
});
+ list_items_5.setOnScrollListener(new AbsListView.OnScrollListener() {
+ @Override public void onScrollStateChanged(AbsListView view, int scrollState) {
+ }
+ @Override public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {
+ int topRowVerticalPosition = (list_items_5 == null || list_items_5.getChildCount() == 0) ? 0 : list_items_5.getChildAt(0).getTop();
+ main_refresh_layout.setEnabled(firstVisibleItem == 0 && topRowVerticalPosition >= 0);
+ }
+ });
+
}
@@ -11430,8 +12176,8 @@ public class MainActivity extends AppCompatActivity { public void run() {
prog.dismiss();
check.dismiss();
- if ((Installed_Version < Downloaded_Version) || ((Downloaded_Version > Installed_Version) || ((Installed_Version == Downloaded_Version) || Installed_Checker.equals("false")))) {
- if (getISignature(getApplicationContext()).equals(getDSignature(getApplicationContext())) || Installed_Checker.equals("false")) {
+ if ((Installed_Version_Cloned < Downloaded_Version_Cloned) || ((Downloaded_Version_Cloned > Installed_Version_Cloned) || ((Installed_Version_Cloned == Downloaded_Version_Cloned) || Installed_Checker_Cloned.equals("false")))) {
+ if (getICSignature(getApplicationContext()).equals(getDCSignature(getApplicationContext())) || Installed_Checker_Cloned.equals("false")) {
StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); StrictMode.setVmPolicy(builder.build());
if(android.os.Build.VERSION.SDK_INT >= 29){
try {
@@ -11488,7 +12234,7 @@ public class MainActivity extends AppCompatActivity { }
}
else {
- if (Downloaded_Version < Installed_Version) {
+ if (Downloaded_Version_Cloned < Installed_Version_Cloned) {
if (!MainActivity.this.isFinishing()) {
final AlertDialog.Builder Downgrade_Check = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog);
String Title = "<b>".concat(installation_failed_0.concat("</b>"));
@@ -11687,6 +12433,25 @@ public class MainActivity extends AppCompatActivity { Downloaded_Version_Lite = Installed_Version_Lite;
}
+ String uri_wave = "com.aspiro.tidal";
+ android.content.pm.PackageManager pm_wave = getPackageManager();
+
+ try {
+ android.content.pm.PackageInfo Installed_Wave = pm_lite.getPackageInfo(uri_wave, android.content.pm.PackageManager.GET_ACTIVITIES);
+ Installed_Version_Wave = Installed_Wave.versionCode;
+ }
+ catch (Exception e) {
+ }
+
+
+ try {
+ android.content.pm.PackageInfo Downloaded_Wave = this.getPackageManager().getPackageArchiveInfo(apk_path_location.getText().toString().concat("Patched Wave (xManager).apk"), PackageManager.GET_ACTIVITIES);
+ Downloaded_Version_Wave = Downloaded_Wave.versionCode;
+ }
+ catch (Exception e) {
+ Downloaded_Version_Wave = Installed_Version_Wave;
+ }
+
}
@@ -11818,6 +12583,7 @@ public class MainActivity extends AppCompatActivity { Stock_Experimental_Cloned_Patched = (new Gson()).toJson(Datas.get("Stock_Experimental_Cloned_Patched"), new TypeToken<ArrayList<HashMap<String, Object>>>(){}.getType());
Amoled_Experimental_Cloned_Patched = (new Gson()).toJson(Datas.get("Amoled_Experimental_Cloned_Patched"), new TypeToken<ArrayList<HashMap<String, Object>>>(){}.getType());
Lite_Patched = (new Gson()).toJson(Datas.get("Lite_Patched"), new TypeToken<ArrayList<HashMap<String, Object>>>(){}.getType());
+ Wave_Patched = (new Gson()).toJson(Datas.get("Wave_Patched"), new TypeToken<ArrayList<HashMap<String, Object>>>(){}.getType());
Patched_Changelogs = (new Gson()).toJson(Datas.get("Patched_Changelogs"), new TypeToken<ArrayList<HashMap<String, Object>>>(){}.getType());
stock_patched = new Gson().fromJson(Stock_Patched, new TypeToken<ArrayList<HashMap<String, Object>>>(){}.getType());
amoled_patched = new Gson().fromJson(Amoled_Patched, new TypeToken<ArrayList<HashMap<String, Object>>>(){}.getType());
@@ -11828,6 +12594,7 @@ public class MainActivity extends AppCompatActivity { stock_experimental_cloned_patched = new Gson().fromJson(Stock_Experimental_Cloned_Patched, new TypeToken<ArrayList<HashMap<String, Object>>>(){}.getType());
amoled_experimental_cloned_patched = new Gson().fromJson(Amoled_Experimental_Cloned_Patched, new TypeToken<ArrayList<HashMap<String, Object>>>(){}.getType());
lite_patched = new Gson().fromJson(Lite_Patched, new TypeToken<ArrayList<HashMap<String, Object>>>(){}.getType());
+ wave_patched = new Gson().fromJson(Wave_Patched, new TypeToken<ArrayList<HashMap<String, Object>>>(){}.getType());
patched_changelogs = new Gson().fromJson(Patched_Changelogs, new TypeToken<ArrayList<HashMap<String, Object>>>(){}.getType());
sub_1.setText(Datas.get("Stock_Patched_Latest").toString());
sub_2.setText(Datas.get("Amoled_Patched_Latest").toString());
@@ -11838,6 +12605,7 @@ public class MainActivity extends AppCompatActivity { sub_7.setText(Datas.get("SECP_Latest").toString());
sub_8.setText(Datas.get("AECP_Latest").toString());
sub_9.setText(Datas.get("Lite_Patched_Latest").toString());
+ sub_10.setText(Datas.get("Wave_Patched_Latest").toString());
donors_1.setText(Datas.get("Supporters").toString());
hidden_update.setText(Datas.get("Update").toString());
app_changelogs.setText(Datas.get("App_Changelogs").toString());
@@ -11875,9 +12643,11 @@ public class MainActivity extends AppCompatActivity { }
}
list_items_3.setAdapter(new List_items_3Adapter(lite_patched));
- list_items_4.setAdapter(new List_items_4Adapter(patched_changelogs));
+ list_items_4.setAdapter(new List_items_4Adapter(wave_patched));
+ list_items_5.setAdapter(new List_items_5Adapter(patched_changelogs));
((BaseAdapter)list_items_3.getAdapter()).notifyDataSetChanged();
((BaseAdapter)list_items_4.getAdapter()).notifyDataSetChanged();
+ ((BaseAdapter)list_items_5.getAdapter()).notifyDataSetChanged();
if (INITIALIZATION.getString("INITIALIZATION", "").equals("X")) {
_Updater();
}
@@ -11905,6 +12675,9 @@ public class MainActivity extends AppCompatActivity { title_1.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
title_2.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
title_3.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
+ title_4.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
+ title_5.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
+ title_6.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
sub_1.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
sub_2.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
sub_3.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
@@ -11914,17 +12687,22 @@ public class MainActivity extends AppCompatActivity { sub_7.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
sub_8.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
sub_9.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
+ sub_10.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
sub_text_1.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
sub_text_2.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
sub_text_3.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
+ sub_text_4.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
versions_1.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
versions_2.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
versions_3.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
+ versions_4.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
sub_installed.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
sub_separator_1.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
sub_installed_c.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
sub_separator_2.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
sub_installed_l.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
+ sub_separator_3.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
+ sub_installed_w.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
sub_text_installed.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
title_sub.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
support.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
@@ -11971,6 +12749,7 @@ public class MainActivity extends AppCompatActivity { patched_1.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 0);
patched_2.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 0);
patched_3.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 0);
+ patched_4.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 0);
title_header_beta.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
title_header_separator.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
experiment_version.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
@@ -11985,6 +12764,7 @@ public class MainActivity extends AppCompatActivity { main_box_3.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717));
main_box_5.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717));
main_box_6.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717));
+ main_box_7.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717));
main_box_8.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717));
main_box_9.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717));
main_box_10.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717));
@@ -12014,8 +12794,13 @@ public class MainActivity extends AppCompatActivity { box_reset_preferences.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF424242));
box_separator_1.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF616161));
box_separator_2.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF616161));
- box_separator_4.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF616161));
box_separator_3.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF616161));
+ box_separator_4.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF616161));
+ box_separator_5.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF616161));
+ box_separator_6.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF616161));
+ box_separator_7.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF616161));
+ box_separator_8.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF616161));
+ box_separator_9.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF616161));
sub_1.setVisibility(View.GONE);
sub_2.setVisibility(View.GONE);
sub_3.setVisibility(View.GONE);
@@ -12027,6 +12812,7 @@ public class MainActivity extends AppCompatActivity { list_items_1.setVisibility(View.GONE);
list_items_2.setVisibility(View.GONE);
list_items_3.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.GONE);
list_items_4.setVisibility(View.GONE);
if (!INITIALIZATION.getString("INITIALIZATION", "").equals("X")) {
try {
@@ -12227,6 +13013,7 @@ public class MainActivity extends AppCompatActivity { list_items_2.setVisibility(View.GONE);
list_items_3.setVisibility(View.GONE);
list_items_4.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.GONE);
list_items_1.setAdapter(new List_items_1Adapter(stock_patched));
((BaseAdapter)list_items_1.getAdapter()).notifyDataSetChanged();
}
@@ -12236,6 +13023,7 @@ public class MainActivity extends AppCompatActivity { list_items_2.setVisibility(View.GONE);
list_items_3.setVisibility(View.GONE);
list_items_4.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.GONE);
list_items_1.setAdapter(new List_items_1Adapter(stock_cloned_patched));
((BaseAdapter)list_items_1.getAdapter()).notifyDataSetChanged();
}
@@ -12245,6 +13033,7 @@ public class MainActivity extends AppCompatActivity { list_items_2.setVisibility(View.GONE);
list_items_3.setVisibility(View.GONE);
list_items_4.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.GONE);
list_items_1.setAdapter(new List_items_1Adapter(stock_experimental_patched));
((BaseAdapter)list_items_1.getAdapter()).notifyDataSetChanged();
}
@@ -12254,6 +13043,7 @@ public class MainActivity extends AppCompatActivity { list_items_2.setVisibility(View.GONE);
list_items_3.setVisibility(View.GONE);
list_items_4.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.GONE);
list_items_1.setAdapter(new List_items_1Adapter(stock_experimental_cloned_patched));
((BaseAdapter)list_items_1.getAdapter()).notifyDataSetChanged();
}
@@ -12267,6 +13057,7 @@ public class MainActivity extends AppCompatActivity { version_oc_01.setImageResource(R.drawable.open);
version_oc_02.setImageResource(R.drawable.close);
version_oc_03.setImageResource(R.drawable.close);
+ version_oc_04.setImageResource(R.drawable.close);
changelogs_oc.setImageResource(R.drawable.close);
Timer = new TimerTask() {
@Override
@@ -12279,6 +13070,7 @@ public class MainActivity extends AppCompatActivity { list_items_2.setVisibility(View.VISIBLE);
list_items_3.setVisibility(View.GONE);
list_items_4.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.GONE);
list_items_2.setAdapter(new List_items_2Adapter(amoled_patched));
((BaseAdapter)list_items_2.getAdapter()).notifyDataSetChanged();
}
@@ -12288,6 +13080,7 @@ public class MainActivity extends AppCompatActivity { list_items_2.setVisibility(View.VISIBLE);
list_items_3.setVisibility(View.GONE);
list_items_4.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.GONE);
list_items_2.setAdapter(new List_items_2Adapter(amoled_cloned_patched));
((BaseAdapter)list_items_2.getAdapter()).notifyDataSetChanged();
}
@@ -12297,6 +13090,7 @@ public class MainActivity extends AppCompatActivity { list_items_2.setVisibility(View.VISIBLE);
list_items_3.setVisibility(View.GONE);
list_items_4.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.GONE);
list_items_2.setAdapter(new List_items_2Adapter(amoled_experimental_patched));
((BaseAdapter)list_items_2.getAdapter()).notifyDataSetChanged();
}
@@ -12306,6 +13100,7 @@ public class MainActivity extends AppCompatActivity { list_items_2.setVisibility(View.VISIBLE);
list_items_3.setVisibility(View.GONE);
list_items_4.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.GONE);
list_items_2.setAdapter(new List_items_2Adapter(amoled_experimental_cloned_patched));
((BaseAdapter)list_items_2.getAdapter()).notifyDataSetChanged();
}
@@ -12319,6 +13114,7 @@ public class MainActivity extends AppCompatActivity { version_oc_01.setImageResource(R.drawable.close);
version_oc_02.setImageResource(R.drawable.open);
version_oc_03.setImageResource(R.drawable.close);
+ version_oc_04.setImageResource(R.drawable.close);
changelogs_oc.setImageResource(R.drawable.close);
Timer = new TimerTask() {
@Override
@@ -12334,9 +13130,11 @@ public class MainActivity extends AppCompatActivity { list_items_2.setVisibility(View.GONE);
list_items_3.setVisibility(View.VISIBLE);
list_items_4.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.GONE);
version_oc_01.setImageResource(R.drawable.close);
version_oc_02.setImageResource(R.drawable.close);
version_oc_03.setImageResource(R.drawable.open);
+ version_oc_04.setImageResource(R.drawable.close);
changelogs_oc.setImageResource(R.drawable.close);
list_items_3.setAdapter(new List_items_3Adapter(lite_patched));
((BaseAdapter)list_items_3.getAdapter()).notifyDataSetChanged();
@@ -12348,17 +13146,19 @@ public class MainActivity extends AppCompatActivity { public void run() {
Animation animation;
animation = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.fade_in);
- animation.setDuration(500); changelogs_oc.startAnimation(animation);
+ animation.setDuration(500); version_oc_04.startAnimation(animation);
animation = null;
list_items_1.setVisibility(View.GONE);
list_items_2.setVisibility(View.GONE);
list_items_3.setVisibility(View.GONE);
list_items_4.setVisibility(View.VISIBLE);
+ list_items_5.setVisibility(View.GONE);
version_oc_01.setImageResource(R.drawable.close);
version_oc_02.setImageResource(R.drawable.close);
version_oc_03.setImageResource(R.drawable.close);
- changelogs_oc.setImageResource(R.drawable.open);
- list_items_4.setAdapter(new List_items_4Adapter(patched_changelogs));
+ version_oc_04.setImageResource(R.drawable.open);
+ changelogs_oc.setImageResource(R.drawable.close);
+ list_items_4.setAdapter(new List_items_4Adapter(wave_patched));
((BaseAdapter)list_items_4.getAdapter()).notifyDataSetChanged();
Timer = new TimerTask() {
@Override
@@ -12366,19 +13166,48 @@ public class MainActivity extends AppCompatActivity { runOnUiThread(new Runnable() {
@Override
public void run() {
- main_refresh_layout.setRefreshing(false);
+ Animation animation;
+ animation = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.fade_in);
+ animation.setDuration(500); changelogs_oc.startAnimation(animation);
+ animation = null;
list_items_1.setVisibility(View.GONE);
list_items_2.setVisibility(View.GONE);
list_items_3.setVisibility(View.GONE);
list_items_4.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.VISIBLE);
version_oc_01.setImageResource(R.drawable.close);
version_oc_02.setImageResource(R.drawable.close);
version_oc_03.setImageResource(R.drawable.close);
- changelogs_oc.setImageResource(R.drawable.close);
- main_body.setAlpha((float)(1.0d));
- String currentDateTimeString = java.text.DateFormat.getDateTimeInstance().format(new Date());
-
- com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Data List Updated | " + (currentDateTimeString), com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
+ version_oc_04.setImageResource(R.drawable.close);
+ changelogs_oc.setImageResource(R.drawable.open);
+ list_items_5.setAdapter(new List_items_5Adapter(patched_changelogs));
+ ((BaseAdapter)list_items_5.getAdapter()).notifyDataSetChanged();
+ Timer = new TimerTask() {
+ @Override
+ public void run() {
+ runOnUiThread(new Runnable() {
+ @Override
+ public void run() {
+ main_refresh_layout.setRefreshing(false);
+ list_items_1.setVisibility(View.GONE);
+ list_items_2.setVisibility(View.GONE);
+ list_items_3.setVisibility(View.GONE);
+ list_items_4.setVisibility(View.GONE);
+ list_items_5.setVisibility(View.GONE);
+ version_oc_01.setImageResource(R.drawable.close);
+ version_oc_02.setImageResource(R.drawable.close);
+ version_oc_03.setImageResource(R.drawable.close);
+ version_oc_04.setImageResource(R.drawable.close);
+ changelogs_oc.setImageResource(R.drawable.close);
+ main_body.setAlpha((float)(1.0d));
+ String currentDateTimeString = java.text.DateFormat.getDateTimeInstance().format(new Date());
+
+ com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Data List Updated | " + (currentDateTimeString), com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
+ }
+ });
+ }
+ };
+ _timer.schedule(Timer, (int)(800));
}
});
}
@@ -12530,6 +13359,7 @@ public class MainActivity extends AppCompatActivity { CLICKER_2 = 1;
CLICKER_3 = 1;
CLICKER_4 = 1;
+ CLICKER_5 = 1;
}
@@ -13697,8 +14527,8 @@ public class MainActivity extends AppCompatActivity { public void run() {
prog.dismiss();
check.dismiss();
- if ((Installed_Version < Downloaded_Version) || ((Downloaded_Version > Installed_Version) || ((Installed_Version == Downloaded_Version) || Installed_Checker.equals("false")))) {
- if (getISignature(getApplicationContext()).equals(getDSignature(getApplicationContext())) || Installed_Checker.equals("false")) {
+ if ((Installed_Version_Lite < Downloaded_Version_Lite) || ((Downloaded_Version_Lite > Installed_Version_Lite) || ((Installed_Version_Lite == Downloaded_Version_Lite) || Installed_Checker_Lite.equals("false")))) {
+ if (getILSignature(getApplicationContext()).equals(getDLSignature(getApplicationContext())) || Installed_Checker_Lite.equals("false")) {
StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); StrictMode.setVmPolicy(builder.build());
if(android.os.Build.VERSION.SDK_INT >= 29){
try {
@@ -13755,7 +14585,7 @@ public class MainActivity extends AppCompatActivity { }
}
else {
- if (Downloaded_Version < Installed_Version) {
+ if (Downloaded_Version_Lite < Installed_Version_Lite) {
if (!MainActivity.this.isFinishing()) {
final AlertDialog.Builder Downgrade_Check = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog);
String Title = "<b>".concat(installation_failed_0.concat("</b>"));
@@ -14176,6 +15006,15 @@ public class MainActivity extends AppCompatActivity { ((ViewGroup) findViewById(R.id.main_box_3)).getLayoutTransition()
.enableTransitionType(LayoutTransition.CHANGING);
+
+ ((ViewGroup) findViewById(R.id.main_box_12)).getLayoutTransition()
+ .enableTransitionType(LayoutTransition.CHANGING);
+
+ ((ViewGroup) findViewById(R.id.main_box_7)).getLayoutTransition()
+ .enableTransitionType(LayoutTransition.CHANGING);
+
+ ((ViewGroup) findViewById(R.id.main_box_19)).getLayoutTransition()
+ .enableTransitionType(LayoutTransition.CHANGING);
((ViewGroup) findViewById(R.id.main_box_6)).getLayoutTransition()
.enableTransitionType(LayoutTransition.CHANGING);
@@ -14372,6 +15211,924 @@ public class MainActivity extends AppCompatActivity { }
+
+ public void _Download_Wave(final String _url, final String _path) {
+ android.net.ConnectivityManager connMgr = (android.net.ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE);
+ android.net.NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();
+ if (networkInfo != null && networkInfo.isConnected()) {
+ final String urlDownload = _url;
+ final DownloadManager.Request request = new DownloadManager.Request(Uri.parse(urlDownload));
+ final String fileName = URLUtil.guessFileName(urlDownload, null, null);
+ final String cookies = CookieManager.getInstance().getCookie(urlDownload);
+ final String userAgent = "USER_AGENT";
+ request.addRequestHeader("cookie", cookies);
+ request.addRequestHeader("User-Agent", userAgent);
+ request.setAllowedNetworkTypes(DownloadManager.Request.NETWORK_WIFI | DownloadManager.Request.NETWORK_MOBILE);
+ request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_HIDDEN);
+ request.setMimeType("application/vnd.android.package-archive");
+ request.allowScanningByMediaScanner();
+ request.setDestinationInExternalFilesDir(MainActivity.this, Environment.DIRECTORY_DOWNLOADS, "Patched Wave (xManager).apk");
+ final DownloadManager manager = (DownloadManager) getSystemService(Context.DOWNLOAD_SERVICE);
+ final long downloadId = manager.enqueue(request);
+ final ProgressDialog prog = new ProgressDialog(MainActivity.this, R.style.Progress_Dialog);
+ final ProgressDialog check = new ProgressDialog(MainActivity.this, R.style.Progress_Dialog);
+ prog.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog);
+ check.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog);
+ Thread progress = new Thread() {
+ @Override
+ public void run() {
+ boolean downloading = true;
+ while (downloading) {
+ DownloadManager.Query q = new DownloadManager.Query();
+ q.setFilterById(downloadId);
+ android.database.Cursor cursor = manager.query(q);
+ if (cursor != null) {
+ if (cursor.moveToFirst()) {
+ int bytes_downloaded = cursor.getInt(cursor .getColumnIndex(DownloadManager.COLUMN_BYTES_DOWNLOADED_SO_FAR));
+ int bytes_total = cursor.getInt(cursor.getColumnIndex(DownloadManager.COLUMN_TOTAL_SIZE_BYTES));
+ if (cursor.getInt(cursor.getColumnIndex(DownloadManager.COLUMN_STATUS)) == DownloadManager.STATUS_SUCCESSFUL) {
+ downloading = false;
+ }
+ if (cursor.getInt(cursor.getColumnIndex(DownloadManager.COLUMN_STATUS)) == DownloadManager.STATUS_FAILED) {
+ runOnUiThread(new Runnable() {
+ public void run() {
+ com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "The file or link is currently unavailable. Please try again later.", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
+ _File_Remover();
+ }
+ });
+ }
+ final int dl_progress = (int) (bytes_total != 0 ? (bytes_downloaded * 100l) / bytes_total : 0) ;
+ final int dl_max = (int) (100);
+ final float file_front = (float) ((bytes_downloaded * 1.0) / 1048576.0);
+ final float file_end = (float) ((bytes_total * 1.0) / 1048576.0);
+ String file_min = String.format("%.2f", file_front);
+ String file_fix = String.format("%.2f", file_end);
+ String file_max = file_fix.replace("-", "");
+ runOnUiThread(new Runnable() {
+ @Override
+ public void run() {
+ final Handler handler = new Handler();
+ handler.postDelayed(new Runnable() {
+ @Override
+ public void run() {
+ if (prog.getProgress() < dl_progress) {
+ prog.incrementProgressBy(1);
+ }
+ }
+ }, 10);
+ ObjectAnimator animation = ObjectAnimator.ofInt(prog, "progress", prog.getProgress(), prog.getMax());
+ animation.setDuration(1500);
+ animation.setInterpolator(new DecelerateInterpolator());
+ animation.start();
+ if (!MainActivity.this.isFinishing()) {
+ String Title = "<b>".concat(downloading_file_0.concat("</b>"));
+ String TitleColor = "1DB954";
+ prog.setTitle(Html.fromHtml("<font color=\"#" + TitleColor + "\">"+Title+"</font>"));
+ prog.setProgressDrawable(getResources().getDrawable(R.drawable.progress_bar));
+ prog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
+ prog.setProgressNumberFormat((hidden_patched.getText().toString()) + " | " + (file_max) + " MB");
+ prog.setCancelable(false);
+ prog.setMax(dl_max);
+ prog.setButton(DialogInterface.BUTTON_NEGATIVE, cancel_0, new DialogInterface.OnClickListener() {
+ @Override
+ public void onClick(DialogInterface dialog, int which) {
+ prog.setCancelable(true);
+ manager.remove(downloadId);
+ _File_Remover();
+ final Handler handler = new Handler();
+ handler.postDelayed(new Runnable() {
+ @Override
+ public void run() {
+ prog.dismiss();
+ com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Download Cancelled", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
+ }
+ }, 0);
+ }
+ });
+ prog.setButton(DialogInterface.BUTTON_NEUTRAL, mirror_0, new DialogInterface.OnClickListener() {
+ @Override
+ public void onClick(DialogInterface dialog, int which) {
+ prog.setCancelable(true);
+ manager.remove(downloadId);
+ _File_Remover();
+ final Handler handler = new Handler();
+ handler.postDelayed(new Runnable() {
+ @Override
+ public void run() {
+ prog.dismiss();
+ try {
+ _Reminder();
+ _Browser(hidden_download_3.getText().toString());
+ } catch (Exception e) {
+ com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "The file or link is currently unavailable. Please try again later.", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
+ }
+ }
+ }, 0);
+ }
+ });
+ prog.show();
+ }
+ }
+ });
+ if (bytes_downloaded == bytes_total) {
+ Timer = new TimerTask() {
+ @Override
+ public void run() {
+ runOnUiThread(new Runnable() {
+ @Override
+ public void run() {
+ ValueAnimator finalize = ValueAnimator.ofInt(0, 100);
+ finalize.setDuration(1800);
+ finalize.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
+ public void onAnimationUpdate(ValueAnimator animation) {
+ check.setProgress((int) animation.getAnimatedValue());
+ String Title = "<b>".concat(hidden_patched.getText().toString().concat("</b>"));
+ String TitleColor = "1DB954";
+ check.setTitle(Html.fromHtml("<font color=\"#" + TitleColor + "\">"+Title+"</font>"));
+ check.setProgressDrawable(getResources().getDrawable(R.drawable.progress_bar));
+ check.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
+ check.setProgressNumberFormat("PREPARING");
+ check.setCancelable(false);
+ }
+ });
+ finalize.start();
+ prog.dismiss();
+ check.show();
+ }
+ });
+ }
+ };
+ _timer.schedule(Timer, (int)(1500));
+ Timer = new TimerTask() {
+ @Override
+ public void run() {
+ runOnUiThread(new Runnable() {
+ @Override
+ public void run() {
+ ValueAnimator finalize = ValueAnimator.ofInt(0, 100);
+ finalize.setDuration(1800);
+ finalize.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
+ public void onAnimationUpdate(ValueAnimator animation) {
+ check.setProgress((int) animation.getAnimatedValue());
+ String Title = "<b>".concat(hidden_patched.getText().toString().concat("</b>"));
+ String TitleColor = "1DB954";
+ check.setTitle(Html.fromHtml("<font color=\"#" + TitleColor + "\">"+Title+"</font>"));
+ check.setProgressDrawable(getResources().getDrawable(R.drawable.progress_bar));
+ check.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
+ check.setProgressNumberFormat("VERIFYING PATCHED");
+ check.setCancelable(false);
+ }
+ });
+ finalize.start();
+ }
+ });
+ }
+ };
+ _timer.schedule(Timer, (int)(3500));
+ Timer = new TimerTask() {
+ @Override
+ public void run() {
+ runOnUiThread(new Runnable() {
+ @Override
+ public void run() {
+ ValueAnimator finalize = ValueAnimator.ofInt(0, 100);
+ finalize.setDuration(1800);
+ finalize.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
+ public void onAnimationUpdate(ValueAnimator animation) {
+ check.setProgress((int) animation.getAnimatedValue());
+ String Title = "<b>".concat(hidden_patched.getText().toString().concat("</b>"));
+ String TitleColor = "1DB954";
+ check.setTitle(Html.fromHtml("<font color=\"#" + TitleColor + "\">"+Title+"</font>"));
+ check.setProgressDrawable(getResources().getDrawable(R.drawable.progress_bar));
+ check.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
+ check.setProgressNumberFormat("VERIFYING SIGNATURE");
+ check.setCancelable(false);
+ }
+ });
+ finalize.start();
+ }
+ });
+ }
+ };
+ _timer.schedule(Timer, (int)(4500));
+ Timer = new TimerTask() {
+ @Override
+ public void run() {
+ runOnUiThread(new Runnable() {
+ @Override
+ public void run() {
+ ValueAnimator finalize = ValueAnimator.ofInt(0, 100);
+ finalize.setDuration(1800);
+ finalize.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
+ public void onAnimationUpdate(ValueAnimator animation) {
+ check.setProgress((int) animation.getAnimatedValue());
+ String Title = "<b>".concat(hidden_patched.getText().toString().concat("</b>"));
+ String TitleColor = "1DB954";
+ check.setTitle(Html.fromHtml("<font color=\"#" + TitleColor + "\">"+Title+"</font>"));
+ check.setProgressDrawable(getResources().getDrawable(R.drawable.progress_bar));
+ check.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
+ check.setProgressNumberFormat("FINALIZING");
+ check.setCancelable(false);
+ }
+ });
+ finalize.start();
+ }
+ });
+ }
+ };
+ _timer.schedule(Timer, (int)(5500));
+ Timer = new TimerTask() {
+ @Override
+ public void run() {
+ runOnUiThread(new Runnable() {
+ @Override
+ public void run() {
+ try {
+ FileUtil.copyFile("/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/Patched Wave (xManager).apk", apk_path_location.getText().toString().concat("Patched Wave (xManager).apk"));
+ }
+ catch(Exception e) {
+ }
+ if (!MainActivity.this.isFinishing()) {
+ _Extension_9();
+ prog.dismiss();
+ }
+ prog.dismiss();
+ check.dismiss();
+ }
+ });
+ }
+ };
+ _timer.schedule(Timer, (int)(6500));
+ }
+ }
+ cursor.close();
+ }
+ }
+ }
+ };
+ progress.start();
+ } else {
+ com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Slow or no internet connection. Try again later.", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
+ }
+
+ }
+
+
+ public void _Download_Install_Wave(final String _url, final String _path) {
+ android.net.ConnectivityManager connMgr = (android.net.ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE);
+ android.net.NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();
+ if (networkInfo != null && networkInfo.isConnected()) {
+ final String urlDownload = _url;
+ final DownloadManager.Request request = new DownloadManager.Request(Uri.parse(urlDownload));
+ final String fileName = URLUtil.guessFileName(urlDownload, null, null);
+ final String cookies = CookieManager.getInstance().getCookie(urlDownload);
+ final String userAgent = "USER_AGENT";
+ request.addRequestHeader("cookie", cookies);
+ request.addRequestHeader("User-Agent", userAgent);
+ request.setAllowedNetworkTypes(DownloadManager.Request.NETWORK_WIFI | DownloadManager.Request.NETWORK_MOBILE);
+ request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_HIDDEN);
+ request.setMimeType("application/vnd.android.package-archive");
+ request.allowScanningByMediaScanner();
+ request.setDestinationInExternalFilesDir(MainActivity.this, Environment.DIRECTORY_DOWNLOADS, "Patched Wave (xManager).apk");
+ final DownloadManager manager = (DownloadManager) getSystemService(Context.DOWNLOAD_SERVICE);
+ final long downloadId = manager.enqueue(request);
+ final ProgressDialog prog = new ProgressDialog(MainActivity.this, R.style.Progress_Dialog);
+ final ProgressDialog check = new ProgressDialog(MainActivity.this, R.style.Progress_Dialog);
+ prog.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog);
+ check.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog);
+ Thread progress = new Thread() {
+ @Override
+ public void run() {
+ boolean downloading = true;
+ while (downloading) {
+ DownloadManager.Query q = new DownloadManager.Query();
+ q.setFilterById(downloadId);
+ android.database.Cursor cursor = manager.query(q);
+ if (cursor != null) {
+ if (cursor.moveToFirst()) {
+ int bytes_downloaded = cursor.getInt(cursor .getColumnIndex(DownloadManager.COLUMN_BYTES_DOWNLOADED_SO_FAR));
+ int bytes_total = cursor.getInt(cursor.getColumnIndex(DownloadManager.COLUMN_TOTAL_SIZE_BYTES));
+ if (cursor.getInt(cursor.getColumnIndex(DownloadManager.COLUMN_STATUS)) == DownloadManager.STATUS_SUCCESSFUL) {
+ downloading = false;
+ }
+ if (cursor.getInt(cursor.getColumnIndex(DownloadManager.COLUMN_STATUS)) == DownloadManager.STATUS_FAILED) {
+ runOnUiThread(new Runnable() {
+ public void run() {
+ com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "The file or link is currently unavailable. Please try again later.", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
+ _File_Remover();
+ }
+ });
+ }
+ final int dl_progress = (int) (bytes_total != 0 ? (bytes_downloaded * 100l) / bytes_total : 0) ;
+ final int dl_max = (int) (100);
+ final float file_front = (float) ((bytes_downloaded * 1.0) / 1048576.0);
+ final float file_end = (float) ((bytes_total * 1.0) / 1048576.0);
+ String file_min = String.format("%.2f", file_front);
+ String file_fix = String.format("%.2f", file_end);
+ String file_max = file_fix.replace("-", "");
+ runOnUiThread(new Runnable() {
+ @Override
+ public void run() {
+ final Handler handler = new Handler();
+ handler.postDelayed(new Runnable() {
+ @Override
+ public void run() {
+ if (prog.getProgress() < dl_progress) {
+ prog.incrementProgressBy(1);
+ }
+ }
+ }, 10);
+ ObjectAnimator animation = ObjectAnimator.ofInt(prog, "progress", prog.getProgress(), prog.getMax());
+ animation.setDuration(1500);
+ animation.setInterpolator(new DecelerateInterpolator());
+ animation.start();
+ if (!MainActivity.this.isFinishing()) {
+ String Title = "<b>".concat(downloading_file_0.concat("</b>"));
+ String TitleColor = "1DB954";
+ prog.setTitle(Html.fromHtml("<font color=\"#" + TitleColor + "\">"+Title+"</font>"));
+ prog.setProgressDrawable(getResources().getDrawable(R.drawable.progress_bar));
+ prog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
+ prog.setProgressNumberFormat((hidden_patched.getText().toString()) + " | " + (file_max) + " MB");
+ prog.setCancelable(false);
+ prog.setMax(dl_max);
+ prog.setButton(DialogInterface.BUTTON_NEGATIVE, cancel_0, new DialogInterface.OnClickListener() {
+ @Override
+ public void onClick(DialogInterface dialog, int which) {
+ prog.setCancelable(true);
+ manager.remove(downloadId);
+ _File_Remover();
+ final Handler handler = new Handler();
+ handler.postDelayed(new Runnable() {
+ @Override
+ public void run() {
+ prog.dismiss();
+ com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Download Cancelled", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
+ }
+ }, 0);
+ }
+ });
+ prog.setButton(DialogInterface.BUTTON_NEUTRAL, mirror_0, new DialogInterface.OnClickListener() {
+ @Override
+ public void onClick(DialogInterface dialog, int which) {
+ prog.setCancelable(true);
+ manager.remove(downloadId);
+ _File_Remover();
+ final Handler handler = new Handler();
+ handler.postDelayed(new Runnable() {
+ @Override
+ public void run() {
+ prog.dismiss();
+ try {
+ _Reminder();
+ _Browser(hidden_download_3.getText().toString());
+ } catch (Exception e) {
+ com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "The file or link is currently unavailable. Please try again later.", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
+ }
+ }
+ }, 0);
+ }
+ });
+ prog.show();
+ }
+ }
+ });
+ if (bytes_downloaded == bytes_total) {
+ Timer = new TimerTask() {
+ @Override
+ public void run() {
+ runOnUiThread(new Runnable() {
+ @Override
+ public void run() {
+ ValueAnimator finalize = ValueAnimator.ofInt(0, 100);
+ finalize.setDuration(1800);
+ finalize.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
+ public void onAnimationUpdate(ValueAnimator animation) {
+ check.setProgress((int) animation.getAnimatedValue());
+ String Title = "<b>".concat(hidden_patched.getText().toString().concat("</b>"));
+ String TitleColor = "1DB954";
+ check.setTitle(Html.fromHtml("<font color=\"#" + TitleColor + "\">"+Title+"</font>"));
+ check.setProgressDrawable(getResources().getDrawable(R.drawable.progress_bar));
+ check.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
+ check.setProgressNumberFormat("PREPARING");
+ check.setCancelable(false);
+ }
+ });
+ finalize.start();
+ prog.dismiss();
+ check.show();
+ }
+ });
+ }
+ };
+ _timer.schedule(Timer, (int)(1500));
+ Timer = new TimerTask() {
+ @Override
+ public void run() {
+ runOnUiThread(new Runnable() {
+ @Override
+ public void run() {
+ ValueAnimator finalize = ValueAnimator.ofInt(0, 100);
+ finalize.setDuration(1800);
+ finalize.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
+ public void onAnimationUpdate(ValueAnimator animation) {
+ check.setProgress((int) animation.getAnimatedValue());
+ String Title = "<b>".concat(hidden_patched.getText().toString().concat("</b>"));
+ String TitleColor = "1DB954";
+ check.setTitle(Html.fromHtml("<font color=\"#" + TitleColor + "\">"+Title+"</font>"));
+ check.setProgressDrawable(getResources().getDrawable(R.drawable.progress_bar));
+ check.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
+ check.setProgressNumberFormat("VERIFYING PATCHED");
+ check.setCancelable(false);
+ }
+ });
+ finalize.start();
+ }
+ });
+ }
+ };
+ _timer.schedule(Timer, (int)(3500));
+ Timer = new TimerTask() {
+ @Override
+ public void run() {
+ runOnUiThread(new Runnable() {
+ @Override
+ public void run() {
+ ValueAnimator finalize = ValueAnimator.ofInt(0, 100);
+ finalize.setDuration(1800);
+ finalize.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
+ public void onAnimationUpdate(ValueAnimator animation) {
+ check.setProgress((int) animation.getAnimatedValue());
+ String Title = "<b>".concat(hidden_patched.getText().toString().concat("</b>"));
+ String TitleColor = "1DB954";
+ check.setTitle(Html.fromHtml("<font color=\"#" + TitleColor + "\">"+Title+"</font>"));
+ check.setProgressDrawable(getResources().getDrawable(R.drawable.progress_bar));
+ check.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
+ check.setProgressNumberFormat("VERIFYING SIGNATURE");
+ check.setCancelable(false);
+ }
+ });
+ finalize.start();
+ }
+ });
+ }
+ };
+ _timer.schedule(Timer, (int)(4500));
+ Timer = new TimerTask() {
+ @Override
+ public void run() {
+ runOnUiThread(new Runnable() {
+ @Override
+ public void run() {
+ ValueAnimator finalize = ValueAnimator.ofInt(0, 100);
+ finalize.setDuration(1800);
+ finalize.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
+ public void onAnimationUpdate(ValueAnimator animation) {
+ check.setProgress((int) animation.getAnimatedValue());
+ String Title = "<b>".concat(hidden_patched.getText().toString().concat("</b>"));
+ String TitleColor = "1DB954";
+ check.setTitle(Html.fromHtml("<font color=\"#" + TitleColor + "\">"+Title+"</font>"));
+ check.setProgressDrawable(getResources().getDrawable(R.drawable.progress_bar));
+ check.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
+ check.setProgressNumberFormat("FINALIZING");
+ check.setCancelable(false);
+ }
+ });
+ finalize.start();
+ }
+ });
+ }
+ };
+ _timer.schedule(Timer, (int)(5500));
+ Timer = new TimerTask() {
+ @Override
+ public void run() {
+ runOnUiThread(new Runnable() {
+ @Override
+ public void run() {
+ try {
+ FileUtil.copyFile("/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/Patched Wave (xManager).apk", apk_path_location.getText().toString().concat("Patched Wave (xManager).apk"));
+ }
+ catch(Exception e) {
+ }
+ Timer = new TimerTask() {
+ @Override
+ public void run() {
+ runOnUiThread(new Runnable() {
+ @Override
+ public void run() {
+ prog.dismiss();
+ check.dismiss();
+ if ((Installed_Version_Wave < Downloaded_Version_Wave) || ((Downloaded_Version_Wave > Installed_Version_Wave) || ((Installed_Version_Wave == Downloaded_Version_Wave) || Installed_Checker_Wave.equals("false")))) {
+ if (getIWSignature(getApplicationContext()).equals(getDWSignature(getApplicationContext())) || Installed_Checker_Wave.equals("false")) {
+ StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); StrictMode.setVmPolicy(builder.build());
+ if(android.os.Build.VERSION.SDK_INT >= 29){
+ try {
+ Intent intent = new Intent(Intent.ACTION_VIEW);
+ intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
+ intent.setDataAndType(FileProvider.getUriForFile(MainActivity.this, "com.xc3fff0e.xmanager.provider", new File("/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/Patched Wave (xManager).apk")), "application/vnd.android.package-archive");
+ startActivity(intent);
+ _Reminder();
+ }
+ catch(Exception e) {
+ }
+ } else {
+ try {
+ Intent intent = new Intent(Intent.ACTION_VIEW);
+ intent.setDataAndType(Uri.fromFile(new File("/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/Patched Wave (xManager).apk")), "application/vnd.android.package-archive");
+ startActivity(intent);
+ _Reminder();
+ }
+ catch(Exception e) {
+ }
+ }
+ } else {
+ if (!MainActivity.this.isFinishing()) {
+ final AlertDialog.Builder Signature_Check = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog);
+ String Title = "<b>".concat(installation_failed_0.concat("</b>"));
+ String TitleColor = "1DB954";
+ Signature_Check.setTitle(Html.fromHtml("<font color=\"#" + TitleColor + "\">"+Title+"</font>"));
+ String Message = installation_failed_spap_desc_0.replace("\n", "<br/>");
+ String MessageColor = "FFFFFF";
+ Signature_Check.setMessage(Html.fromHtml("<font color=\"#" + MessageColor + "\">"+Message+"</font>"));
+ Signature_Check.setPositiveButton(uninstall_0, new DialogInterface.OnClickListener(){
+ @Override
+ public void onClick(DialogInterface Signature_Check, int p) {
+ AlertDialog.setCancelable(true);
+ try {
+ Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.aspiro.tidal"));
+ startActivity(intent);
+ }
+ catch(Exception e) {
+ }
+ }
+ });
+ Signature_Check.setNeutralButton(close_0, new DialogInterface.OnClickListener(){
+ @Override
+ public void onClick(DialogInterface Signature_Check, int p) {
+ AlertDialog.setCancelable(true);
+ }
+ });
+ AlertDialog = Signature_Check.create();
+ AlertDialog.setCancelable(false);
+ AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background);
+ AlertDialog.show();
+ }
+ }
+ }
+ else {
+ if (Downloaded_Version_Wave < Installed_Version_Wave) {
+ if (!MainActivity.this.isFinishing()) {
+ final AlertDialog.Builder Downgrade_Check = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog);
+ String Title = "<b>".concat(installation_failed_0.concat("</b>"));
+ String TitleColor = "1DB954";
+ Downgrade_Check.setTitle(Html.fromHtml("<font color=\"#" + TitleColor + "\">"+Title+"</font>"));
+ String Message = installation_failed_desc_0.replace("\n", "<br/>");
+ String MessageColor = "FFFFFF";
+ Downgrade_Check.setMessage(Html.fromHtml("<font color=\"#" + MessageColor + "\">"+Message+"</font>"));
+ Downgrade_Check.setPositiveButton(uninstall_0, new DialogInterface.OnClickListener(){
+ @Override
+ public void onClick(DialogInterface Downgrade_Check, int p) {
+ AlertDialog.setCancelable(true);
+ try {
+ Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.aspiro.tidal"));
+ startActivity(intent);
+ }
+ catch(Exception e) {
+ }
+ }
+ });
+ Downgrade_Check.setNeutralButton(close_0, new DialogInterface.OnClickListener(){
+ @Override
+ public void onClick(DialogInterface Downgrade_Check, int p) {
+ AlertDialog.setCancelable(true);
+ }
+ });
+ AlertDialog = Downgrade_Check.create();
+ AlertDialog.setCancelable(false);
+ AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background);
+ AlertDialog.show();
+ }
+ }
+ }
+ }
+ });
+ }
+ };
+ _timer.schedule(Timer, (int)(100));
+ }
+ });
+ }
+ };
+ _timer.schedule(Timer, (int)(6500));
+ }
+ }
+ cursor.close();
+ }
+ }
+ }
+ };
+ progress.start();
+ } else {
+ com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Slow or no internet connection. Try again later.", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
+ }
+
+ }
+
+
+ public void _Signature_Checker_Wave() {
+ }
+ public String getIWSignature(Context context) {
+ try {
+ android.content.pm.PackageInfo packageInfo = context.getPackageManager().getPackageInfo("com.aspiro.tidal", PackageManager.GET_SIGNATURES);
+ for (android.content.pm.Signature signature : packageInfo.signatures) {
+ String iw_sha1 = geti_SHA1_(signature.toByteArray());
+ return iw_sha1;
+ }
+ } catch (android.content.pm.PackageManager.NameNotFoundException e) {
+ }
+ return "";
+ }
+
+ public String getiw_SHA1_(byte[] sig) {
+ try {
+ java.security.MessageDigest digest = java.security.MessageDigest.getInstance("SHA1");
+ digest.update(sig);
+ byte[] hashtext = digest.digest();
+ return iw_bytes_To_Hex_(hashtext);
+ } catch (java.security.NoSuchAlgorithmException e) {
+ }
+ return "";
+ }
+
+ public String iw_bytes_To_Hex_(byte[] bytes) {
+ final char[] hexArray = { '0', '1', '2', '3', '4', '5', '6', '7', '8',
+ '9', 'A', 'B', 'C', 'D', 'E', 'F' };
+ char[] hexChars = new char[bytes.length * 2];
+ int v;
+ for (int j = 0; j < bytes.length; j++) {
+ v = bytes[j] & 0xFF;
+ hexChars[j * 2] = hexArray[v >>> 4];
+ hexChars[j * 2 + 1] = hexArray[v & 0x0F];
+ }
+ return new String(hexChars);
+ }
+ {
+
+
+ }
+ public String getDWSignature(Context context) {
+ try {
+ android.content.pm.PackageInfo packageArchiveInfo = context.getPackageManager().getPackageArchiveInfo(apk_path_location.getText().toString().concat("Patched Wave (xManager).apk"), PackageManager.GET_SIGNATURES);
+ for (android.content.pm.Signature signature : packageArchiveInfo.signatures) {
+ String dw_sha1 = getd_SHA1_(signature.toByteArray());
+ return dw_sha1;
+ }
+ } catch (Exception e) {
+ }
+ return "";
+ }
+
+ public String getdw_SHA1_(byte[] sig) {
+ try {
+ java.security.MessageDigest digest = java.security.MessageDigest.getInstance("SHA1");
+ digest.update(sig);
+ byte[] hashtext = digest.digest();
+ return dw_bytes_To_Hex_(hashtext);
+ } catch (java.security.NoSuchAlgorithmException e) {
+ }
+ return "";
+ }
+
+ public String dw_bytes_To_Hex_(byte[] bytes) {
+ final char[] hexArray = { '0', '1', '2', '3', '4', '5', '6', '7', '8',
+ '9', 'A', 'B', 'C', 'D', 'E', 'F' };
+ char[] hexChars = new char[bytes.length * 2];
+ int v;
+ for (int j = 0; j < bytes.length; j++) {
+ v = bytes[j] & 0xFF;
+ hexChars[j * 2] = hexArray[v >>> 4];
+ hexChars[j * 2 + 1] = hexArray[v & 0x0F];
+ }
+ return new String(hexChars);
+ }
+ {
+
+
+ }
+
+
+ public void _Extension_8() {
+ if ((Installed_Version_Wave < Downloaded_Version_Wave) || ((Downloaded_Version_Wave > Installed_Version_Wave) || ((Installed_Version_Wave == Downloaded_Version_Wave) || Installed_Checker_Wave.equals("false")))) {
+ if (getIWSignature(getApplicationContext()).equals(getDWSignature(getApplicationContext())) || Installed_Checker_Wave.equals("false")) {
+ StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); StrictMode.setVmPolicy(builder.build());
+ if(android.os.Build.VERSION.SDK_INT >= 29){
+ try {
+ Intent intent = new Intent(Intent.ACTION_INSTALL_PACKAGE);
+ intent.setDataAndType(FileProvider.getUriForFile(MainActivity.this, "com.xc3fff0e.xmanager.provider", new File("/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/Patched Wave (xManager).apk")), "application/vnd.android.package-archive");
+ intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
+ startActivity(intent);
+ _Reminder();
+ }
+ catch(Exception e) {
+ SketchwareUtil.CustomToast(getApplicationContext(), "Installation Failed", 0xFF000000, 14, 0xFFE0E0E0, 30, SketchwareUtil.BOTTOM);
+ }
+ } else {
+ try {
+ Intent intent = new Intent(Intent.ACTION_INSTALL_PACKAGE);
+ intent.setDataAndType(Uri.fromFile(new File("/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/Patched Wave (xManager).apk")), "application/vnd.android.package-archive");
+ startActivity(intent);
+ _Reminder();
+ }
+ catch(Exception e) {
+ SketchwareUtil.CustomToast(getApplicationContext(), "Installation Failed", 0xFF000000, 14, 0xFFE0E0E0, 30, SketchwareUtil.BOTTOM);
+ }
+ }
+ } else {
+ final AlertDialog.Builder Signature_Check = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog);
+ String Title = "<b>".concat(installation_failed_0.concat("</b>"));
+ String TitleColor = "1DB954";
+ Signature_Check.setTitle(Html.fromHtml("<font color=\"#" + TitleColor + "\">"+Title+"</font>"));
+ String Message = installation_failed_cloned_desc_0.replace("\n", "<br/>");
+ String MessageColor = "FFFFFF";
+ Signature_Check.setMessage(Html.fromHtml("<font color=\"#" + MessageColor + "\">"+Message+"</font>"));
+ Signature_Check.setPositiveButton(uninstall_0, new DialogInterface.OnClickListener(){
+ @Override
+ public void onClick(DialogInterface Signature_Check, int p) {
+ AlertDialog.setCancelable(true);
+ try {
+ Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.aspiro.tidal"));
+ startActivity(intent);
+ }
+ catch(Exception e) {
+ }
+ }
+ });
+ Signature_Check.setNeutralButton(close_0, new DialogInterface.OnClickListener(){
+ @Override
+ public void onClick(DialogInterface Signature_Check, int p) {
+ AlertDialog.setCancelable(true);
+ }
+ });
+ AlertDialog = Signature_Check.create();
+ AlertDialog.setCancelable(false);
+ AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background);
+ AlertDialog.show();
+ }
+ }
+ else {
+ if (Downloaded_Version_Wave < Installed_Version_Wave) {
+ final AlertDialog.Builder Downgrade_Check = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog);
+ String Title = "<b>".concat(installation_failed_0.concat("</b>"));
+ String TitleColor = "1DB954";
+ Downgrade_Check.setTitle(Html.fromHtml("<font color=\"#" + TitleColor + "\">"+Title+"</font>"));
+ String Message = installation_failed_desc_0.replace("\n", "<br/>");
+ String MessageColor = "FFFFFF";
+ Downgrade_Check.setMessage(Html.fromHtml("<font color=\"#" + MessageColor + "\">"+Message+"</font>"));
+ Downgrade_Check.setPositiveButton(uninstall_0, new DialogInterface.OnClickListener(){
+ @Override
+ public void onClick(DialogInterface Downgrade_Check, int p) {
+ AlertDialog.setCancelable(true);
+ try {
+ Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.aspiro.tidal"));
+ startActivity(intent);
+ }
+ catch(Exception e) {
+ }
+ }
+ });
+ Downgrade_Check.setNeutralButton(close_0, new DialogInterface.OnClickListener(){
+ @Override
+ public void onClick(DialogInterface Downgrade_Check, int p) {
+ AlertDialog.setCancelable(true);
+ }
+ });
+ AlertDialog = Downgrade_Check.create();
+ AlertDialog.setCancelable(false);
+ AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background);
+ AlertDialog.show();
+ }
+ }
+
+ }
+
+
+ public void _Extension_9() {
+ final AlertDialog.Builder Success_Download = new AlertDialog.Builder(MainActivity.this, R.style.Other_Dialog);
+ String Title = "<b>".concat(download_success_0.concat("</b>"));
+ String TitleColor = "1DB954";
+ Success_Download.setTitle(Html.fromHtml("<font color=\"#" + TitleColor + "\">"+Title+"</font>"));
+ Success_Download.setPositiveButton(install_now_0, new DialogInterface.OnClickListener(){
+ @Override
+ public void onClick(DialogInterface Success_Download, int p) {
+ AlertDialog.setCancelable(true);
+ if ((Installed_Version_Wave < Downloaded_Version_Wave) || ((Downloaded_Version_Wave > Installed_Version_Wave) || ((Installed_Version_Wave == Downloaded_Version_Wave) || Installed_Checker_Wave.equals("false")))) {
+ if (getIWSignature(getApplicationContext()).equals(getDWSignature(getApplicationContext())) || Installed_Checker_Wave.equals("false")) {
+ StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); StrictMode.setVmPolicy(builder.build());
+ if(android.os.Build.VERSION.SDK_INT >= 29){
+ try {
+ Intent intent = new Intent(Intent.ACTION_INSTALL_PACKAGE);
+ intent.setDataAndType(FileProvider.getUriForFile(MainActivity.this, "com.xc3fff0e.xmanager.provider", new File("/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/Patched Wave (xManager).apk")), "application/vnd.android.package-archive");
+ intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
+ startActivity(intent);
+ _Reminder();
+ }
+ catch(Exception e) {
+ }
+ } else {
+ try {
+ Intent intent = new Intent(Intent.ACTION_INSTALL_PACKAGE);
+ intent.setDataAndType(Uri.fromFile(new File("/storage/emulated/0/Android/data/com.xc3fff0e.xmanager/files/Download/Patched Wave (xManager).apk")), "application/vnd.android.package-archive");
+ startActivity(intent);
+ _Reminder();
+ }
+ catch(Exception e) {
+ }
+ }
+ } else {
+ if (!MainActivity.this.isFinishing()) {
+ final AlertDialog.Builder Signature_Check = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog);
+ String Title = "<b>".concat(installation_failed_0.concat("</b>"));
+ String TitleColor = "1DB954";
+ Signature_Check.setTitle(Html.fromHtml("<font color=\"#" + TitleColor + "\">"+Title+"</font>"));
+ String Message = installation_failed_cloned_desc_0.replace("\n", "<br/>");
+ String MessageColor = "FFFFFF";
+ Signature_Check.setMessage(Html.fromHtml("<font color=\"#" + MessageColor + "\">"+Message+"</font>"));
+ Signature_Check.setPositiveButton(uninstall_0, new DialogInterface.OnClickListener(){
+ @Override
+ public void onClick(DialogInterface Signature_Check, int p) {
+ AlertDialog.setCancelable(true);
+ try {
+ Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.aspiro.tidal"));
+ startActivity(intent);
+ }
+ catch(Exception e) {
+ }
+ }
+ });
+ Signature_Check.setNeutralButton(close_0, new DialogInterface.OnClickListener(){
+ @Override
+ public void onClick(DialogInterface Signature_Check, int p) {
+ AlertDialog.setCancelable(true);
+ }
+ });
+ AlertDialog = Signature_Check.create();
+ AlertDialog.setCancelable(false);
+ AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background);
+ AlertDialog.show();
+ }
+ }
+ }
+ else {
+ if (!MainActivity.this.isFinishing()) {
+ if (Downloaded_Version_Wave < Installed_Version_Wave) {
+ final AlertDialog.Builder Downgrade_Check = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog);
+ String Title = "<b>".concat(installation_failed_0.concat("</b>"));
+ String TitleColor = "1DB954";
+ Downgrade_Check.setTitle(Html.fromHtml("<font color=\"#" + TitleColor + "\">"+Title+"</font>"));
+ String Message = installation_failed_desc_0.replace("\n", "<br/>");
+ String MessageColor = "FFFFFF";
+ Downgrade_Check.setMessage(Html.fromHtml("<font color=\"#" + MessageColor + "\">"+Message+"</font>"));
+ Downgrade_Check.setPositiveButton(uninstall_0, new DialogInterface.OnClickListener(){
+ @Override
+ public void onClick(DialogInterface Downgrade_Check, int p) {
+ AlertDialog.setCancelable(true);
+ try {
+ Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.aspiro.tidal"));
+ startActivity(intent);
+ }
+ catch(Exception e) {
+ }
+ }
+ });
+ Downgrade_Check.setNeutralButton(close_0, new DialogInterface.OnClickListener(){
+ @Override
+ public void onClick(DialogInterface Downgrade_Check, int p) {
+ AlertDialog.setCancelable(true);
+ }
+ });
+ AlertDialog = Downgrade_Check.create();
+ AlertDialog.setCancelable(false);
+ AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background);
+ AlertDialog.show();
+ }
+ }
+ }
+ }
+ });
+ Success_Download.setNeutralButton(later_0, new DialogInterface.OnClickListener(){
+ @Override
+ public void onClick(DialogInterface Success_Download, int p) {
+ AlertDialog.setCancelable(true);
+ _Reminder();
+ }
+ });
+ AlertDialog = Success_Download.create();
+ AlertDialog.setCancelable(false);
+ AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background);
+ AlertDialog.show();
+
+ }
+
public class List_items_1Adapter extends BaseAdapter {
ArrayList<HashMap<String, Object>> _data;
@@ -14646,6 +16403,78 @@ public class MainActivity extends AppCompatActivity { LayoutInflater _inflater = getLayoutInflater();
View _view = _v;
if (_view == null) {
+ _view = _inflater.inflate(R.layout.list_versions, null);
+ }
+
+ final LinearLayout box = _view.findViewById(R.id.box);
+ final TextView link = _view.findViewById(R.id.link);
+ final TextView mirror = _view.findViewById(R.id.mirror);
+ final ImageView icon = _view.findViewById(R.id.icon);
+ final TextView sub = _view.findViewById(R.id.sub);
+ final TextView sub_separator = _view.findViewById(R.id.sub_separator);
+ final TextView title = _view.findViewById(R.id.title);
+
+ try {
+ sub.setVisibility(View.VISIBLE);
+ sub_separator.setVisibility(View.VISIBLE);
+ title.setVisibility(View.VISIBLE);
+ link.setVisibility(View.GONE);
+ mirror.setVisibility(View.GONE);
+ if (_position < 1) {
+ sub.setTextColor(0xFFFF1744);
+ sub.setText("LATEST RELEASE");
+ sub_separator.setTextColor(0xFF616161);
+ sub_separator.setText("|");
+ }
+ else {
+ sub.setTextColor(0xFFBDBDBD);
+ sub.setText("OLDER RELEASE");
+ sub_separator.setTextColor(0xFF616161);
+ sub_separator.setText("|");
+ }
+ sub.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
+ sub_separator.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
+ title.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
+ title.setText(wave_patched.get((int)(wave_patched.size() - 1) - _position).get("Title").toString());
+ Animation animation;
+ animation = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.fade_in);
+ animation.setDuration(500); box.startAnimation(animation);
+ animation = null;
+ } catch (Exception e) {
+ }
+
+ return _view;
+ }
+ }
+
+ public class List_items_5Adapter extends BaseAdapter {
+
+ ArrayList<HashMap<String, Object>> _data;
+
+ public List_items_5Adapter(ArrayList<HashMap<String, Object>> _arr) {
+ _data = _arr;
+ }
+
+ @Override
+ public int getCount() {
+ return _data.size();
+ }
+
+ @Override
+ public HashMap<String, Object> getItem(int _index) {
+ return _data.get(_index);
+ }
+
+ @Override
+ public long getItemId(int _index) {
+ return _index;
+ }
+
+ @Override
+ public View getView(final int _position, View _v, ViewGroup _container) {
+ LayoutInflater _inflater = getLayoutInflater();
+ View _view = _v;
+ if (_view == null) {
_view = _inflater.inflate(R.layout.list_changelogs, null);
}
@@ -14655,6 +16484,14 @@ public class MainActivity extends AppCompatActivity { try {
info.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1);
info.setText(patched_changelogs.get((int)(patched_changelogs.size() - 1) - _position).get("Patched_Changelogs").toString());
+ box.setOnLongClickListener(new View.OnLongClickListener() {
+ @Override
+ public boolean onLongClick(View _view) {
+ ((ClipboardManager) getSystemService(getApplicationContext().CLIPBOARD_SERVICE)).setPrimaryClip(ClipData.newPlainText("clipboard", info.getText().toString()));
+ com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Changelog Copied", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
+ return true;
+ }
+ });
Animation animation;
animation = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.fade_in);
animation.setDuration(500); box.startAnimation(animation);
|