From 014d88a421a2b72dcc05e95408bb14b1e8fe7e0c Mon Sep 17 00:00:00 2001 From: xC3FFF0E <78732474+xC3FFF0E@users.noreply.github.com> Date: Sun, 16 Jul 2023 00:20:05 +0800 Subject: Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f64cd66..935ac75 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ | **Status** |
| | :-------------: | :-------------: | | **Download Milestone** | **

** | -| **Miscellaneous** | **
** | +| **Miscellaneous** | **
** | | **Trust Seal** | **** | | **Donation/Sponsor** | **[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/I3I0IPJ3W)** | @@ -73,7 +73,7 @@ We will support the app as long as we can. Internal improvements may not be guar | **Manager Translators** | **Names/Alias** | | ------------- | ------------- | | **Arabic Translation** | Yazan Kasem | -| **Bengali Translation** | 0V3R5!9H7 | +| **Bengali Translation** | 0V3R5!9H7 \| ssabit | | **Chinese - Simplified Translation** | Gent G \| Softland99 \| zelixdxin | | **French Translation** | The Punisher \| Luxchar \| xerta555 \| GlThibault | | **Greek Translation** | Walter's Cousin #CAF | -- cgit v1.2.3 From 2ce65ed434c86f899bed5c48864021235a8ff180 Mon Sep 17 00:00:00 2001 From: xC3FFF0E <78732474+xC3FFF0E@users.noreply.github.com> Date: Sun, 16 Jul 2023 00:20:54 +0800 Subject: Update build.gradle --- app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 4958577..de9bdaa 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -12,7 +12,7 @@ android { minSdkVersion 21 targetSdkVersion 29 versionCode 210209 - versionName "4.9" + versionName "5.0" } buildTypes { -- cgit v1.2.3 -- cgit v1.2.3 From 8c31d3254e3ffa7b9e92aedd86546bd61ebdfb39 Mon Sep 17 00:00:00 2001 From: xC3FFF0E <78732474+xC3FFF0E@users.noreply.github.com> Date: Sun, 16 Jul 2023 00:23:03 +0800 Subject: Update MainActivity.java --- .../java/com/xc3fff0e/xmanager/MainActivity.java | 2453 +++++++++++++++++--- 1 file changed, 2145 insertions(+), 308 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 Language = new ArrayList<>(); private ArrayList Theme = new ArrayList<>(); @@ -165,6 +172,7 @@ public class MainActivity extends AppCompatActivity { private ArrayList> amoled_experimental_patched = new ArrayList<>(); private ArrayList> stock_experimental_cloned_patched = new ArrayList<>(); private ArrayList> amoled_experimental_cloned_patched = new ArrayList<>(); + private ArrayList> 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,238 +3806,532 @@ public class MainActivity extends AppCompatActivity { } }); - box_uninstall.setOnLongClickListener(new View.OnLongClickListener() { - @Override - public boolean onLongClick(View _view) { - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Uninstall Patched", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); - return true; - } - }); - - box_uninstall.setOnClickListener(new View.OnClickListener() { + list_items_4.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override - public void onClick(View _view) { + public void onItemClick(AdapterView _param1, View _param2, int _param3, long _param4) { + final int _position = _param3; try { - final AlertDialog.Builder Uninstall = new AlertDialog.Builder(MainActivity.this, R.style.Other_Dialog); - - String Title = "".concat(uninstall_patched.getText().toString().concat("")); - String TitleColor = "1DB954"; - - Uninstall.setTitle(Html.fromHtml(""+Title+"")); - Uninstall.setPositiveButton(spap.getText().toString(), new DialogInterface.OnClickListener(){ + 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); - @Override - public void onClick(DialogInterface Uninstall, int p) { - AlertDialog.setCancelable(true); - try { - Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.music")); - startActivity(intent); - } catch (Exception e) { - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Application not found or uninstalled", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); - } - - } - }); - Uninstall.setNegativeButton(cloned.getText().toString(), new DialogInterface.OnClickListener(){ + String Title = "".concat(existing_patched.getText().toString().concat("")); + String TitleColor = "1DB954"; - @Override - public void onClick(DialogInterface Uninstall, int p) { - - AlertDialog.setCancelable(true); - try { - Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.musix")); - startActivity(intent); - } catch (Exception e) { - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Application not found or uninstalled", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); - } - - } - }); - Uninstall.setNeutralButton(lite.getText().toString(), new DialogInterface.OnClickListener(){ + File_Exist.setTitle(Html.fromHtml(""+Title+"")); + String Message = existing_patched_desc.getText().toString(); + String MessageColor = "FFFFFF"; - @Override - public void onClick(DialogInterface Uninstall, int p) { - AlertDialog.setCancelable(true); - try { - Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.lite")); - startActivity(intent); - } catch (Exception e) { - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Application not found or uninstalled", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); - } + File_Exist.setMessage(Html.fromHtml(""+Message+"")); + File_Exist.setPositiveButton(install.getText().toString(), new DialogInterface.OnClickListener(){ - } - }); - AlertDialog = Uninstall.create(); - AlertDialog.setCancelable(true); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); - AlertDialog.show(); - _Tap_Animation(box_uninstall); - } catch (Exception e) { - } - - } - }); - - box_settings.setOnLongClickListener(new View.OnLongClickListener() { - @Override - public boolean onLongClick(View _view) { - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Open Patched's App Settings", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); - return true; - } - }); - - box_settings.setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View _view) { - try { - final AlertDialog.Builder Settings = new AlertDialog.Builder(MainActivity.this, R.style.Other_Dialog); - - String Title = "".concat(open_settings.getText().toString().concat("")); - String TitleColor = "1DB954"; - - Settings.setTitle(Html.fromHtml(""+Title+"")); - Settings.setPositiveButton(spap.getText().toString(), new DialogInterface.OnClickListener(){ - - @Override - public void onClick(DialogInterface Settings, int p) { - AlertDialog.setCancelable(true); - Intent intent = new Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS); intent.setData(Uri.parse("package:com.spotify.music")); - startActivity(intent); - } - }); - Settings.setNegativeButton(cloned.getText().toString(), new DialogInterface.OnClickListener(){ - - @Override - public void onClick(DialogInterface Settings, int p) { + @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(){ - AlertDialog.setCancelable(true); - Intent intent = new Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS); intent.setData(Uri.parse("package:com.spotify.musix")); - startActivity(intent); - } - }); - Settings.setNeutralButton(lite.getText().toString(), new DialogInterface.OnClickListener(){ - - @Override - public void onClick(DialogInterface Settings, int p) { - AlertDialog.setCancelable(true); - Intent intent = new Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS); intent.setData(Uri.parse("package:com.spotify.lite")); - startActivity(intent); - } - }); - AlertDialog = Settings.create(); - AlertDialog.setCancelable(true); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); - AlertDialog.show(); - _Tap_Animation(box_settings); - } - catch(Exception e) { - SketchwareUtil.CustomToast(getApplicationContext(), "Application not installed", 0xFF000000, 14, 0xFFE0E0E0, 30, SketchwareUtil.BOTTOM); - } - } - }); - - box_cache.setOnLongClickListener(new View.OnLongClickListener() { - @Override - public boolean onLongClick(View _view) { - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Clear Offline Cached Datas", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); - return true; - } - }); - - box_cache.setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View _view) { - try { - if (CHECK == 0) { - CHECK = 1; - Timer = new TimerTask() { - @Override - public void run() { - runOnUiThread(new Runnable() { - @Override - public void run() { - CHECK = 0; + @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 = "".concat(download_ready_0.concat("")); + String TitleColor = "1DB954"; + + Selected_Patched.setTitle(Html.fromHtml(""+Title+"")); + if (_position < 1) { + if ((_position % 1) == 0) { + String Message = "VERSION: ".concat(wave_patched.get((int)(wave_patched.size() - 1) - _position).get("Title").toString().concat("
PATCHED TYPE: ".concat("WAVE

").concat(download_ready_desc_0))); + String MessageColor = "FFFFFF"; + + Selected_Patched.setMessage(Html.fromHtml(""+Message+"")); } - }); - } - }; - _timer.schedule(Timer, (int)(2000)); - if (Build.VERSION.SDK_INT <= 30) { - if (FileUtil.isExistFile("/storage/emulated/0/Android/data/com.spotify.music/") || (FileUtil.isExistFile("/storage/emulated/0/Android/data/com.spotify.musix/") || FileUtil.isExistFile("/storage/emulated/0/Android/data/com.spotify.lite/"))) { - FileUtil.deleteFile("/storage/emulated/0/Android/data/com.spotify.music/"); - FileUtil.deleteFile("/storage/emulated/0/Android/data/com.spotify.musix/"); - FileUtil.deleteFile("/storage/emulated/0/Android/data/com.spotify.lite/"); - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Successfully Deleted", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); } else { - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Directory Files Are Empty", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); - } - } else { - if (Build.VERSION.SDK_INT >= 31) { - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "This feature does not support Android 12 and above", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); + String Message = "VERSION: ".concat(wave_patched.get((int)(wave_patched.size() - 1) - _position).get("Title").toString().concat("
PATCHED TYPE: ".concat("WAVE

").concat(download_ready_desc_0))); + String MessageColor = "FFFFFF"; + + Selected_Patched.setMessage(Html.fromHtml(""+Message+"")); } - } - - } - _Tap_Animation(box_cache); - } - catch(Exception e) { - } - } - }); - - box_open.setOnLongClickListener(new View.OnLongClickListener() { - @Override - public boolean onLongClick(View _view) { - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Launch Patched App", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); - return true; - } + 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 = "".concat(download_ready_0.concat("")); + String TitleColor = "1DB954"; + + Selected_Patched.setTitle(Html.fromHtml(""+Title+"")); + if (_position < 1) { + if ((_position % 1) == 0) { + String Message = "VERSION: ".concat(wave_patched.get((int)(wave_patched.size() - 1) - _position).get("Title").toString().concat("
PATCHED TYPE: ".concat("WAVE

").concat(download_ready_desc_0))); + String MessageColor = "FFFFFF"; + + Selected_Patched.setMessage(Html.fromHtml(""+Message+"")); + } + } + else { + String Message = "VERSION: ".concat(wave_patched.get((int)(wave_patched.size() - 1) - _position).get("Title").toString().concat("
PATCHED TYPE: ".concat("WAVE

").concat(download_ready_desc_0))); + String MessageColor = "FFFFFF"; + + Selected_Patched.setMessage(Html.fromHtml(""+Message+"")); + } + 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_open.setOnClickListener(new View.OnClickListener() { + box_uninstall.setOnLongClickListener(new View.OnLongClickListener() { + @Override + public boolean onLongClick(View _view) { + com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Uninstall Patched", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); + return true; + } + }); + + box_uninstall.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View _view) { try { - final AlertDialog.Builder Open = new AlertDialog.Builder(MainActivity.this, R.style.Other_Dialog); + final AlertDialog.Builder Uninstall = new AlertDialog.Builder(MainActivity.this, R.style.Other_Dialog); - String Title = "".concat(open_patched.getText().toString().concat("")); + String Title = "".concat(uninstall_patched.getText().toString().concat("")); String TitleColor = "1DB954"; - Open.setTitle(Html.fromHtml(""+Title+"")); - Open.setPositiveButton(spap.getText().toString(), new DialogInterface.OnClickListener(){ + Uninstall.setTitle(Html.fromHtml(""+Title+"")); + Uninstall.setPositiveButton(spap.getText().toString(), new DialogInterface.OnClickListener(){ @Override - public void onClick(DialogInterface Open, int p) { + public void onClick(DialogInterface Uninstall, int p) { AlertDialog.setCancelable(true); - String packageName = "com.spotify.music"; - - Intent intent = getPackageManager().getLaunchIntentForPackage(packageName); - if(intent == null) { - - try { - intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + packageName)); - } catch (Exception e) { - SketchwareUtil.CustomToast(getApplicationContext(), "Spotify not installed", 0xFF000000, 14, 0xFFE0E0E0, 30, SketchwareUtil.BOTTOM); - } + try { + Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.music")); + startActivity(intent); + } catch (Exception e) { + com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Application not found or uninstalled", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); } - startActivity(intent); + } }); - Open.setNegativeButton(cloned.getText().toString(), new DialogInterface.OnClickListener(){ + Uninstall.setNegativeButton(cloned.getText().toString(), new DialogInterface.OnClickListener(){ @Override - public void onClick(DialogInterface Open, int p) { + public void onClick(DialogInterface Uninstall, int p) { AlertDialog.setCancelable(true); - String packageName = "com.spotify.musix"; + try { + Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.musix")); + startActivity(intent); + } catch (Exception e) { + com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Application not found or uninstalled", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); + } - Intent intent = getPackageManager().getLaunchIntentForPackage(packageName); - if(intent == null) { - - try { - intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + packageName)); - } catch (Exception e) { - SketchwareUtil.CustomToast(getApplicationContext(), "Cloned not installed", 0xFF000000, 14, 0xFFE0E0E0, 30, SketchwareUtil.BOTTOM); + } + }); + Uninstall.setNeutralButton(lite.getText().toString(), new DialogInterface.OnClickListener(){ + + @Override + public void onClick(DialogInterface Uninstall, int p) { + AlertDialog.setCancelable(true); + try { + Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.lite")); + startActivity(intent); + } catch (Exception e) { + com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Application not found or uninstalled", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); + } + + } + }); + AlertDialog = Uninstall.create(); + AlertDialog.setCancelable(true); + AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); + AlertDialog.show(); + _Tap_Animation(box_uninstall); + } catch (Exception e) { + } + + } + }); + + box_settings.setOnLongClickListener(new View.OnLongClickListener() { + @Override + public boolean onLongClick(View _view) { + com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Open Patched's App Settings", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); + return true; + } + }); + + box_settings.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View _view) { + try { + final AlertDialog.Builder Settings = new AlertDialog.Builder(MainActivity.this, R.style.Other_Dialog); + + String Title = "".concat(open_settings.getText().toString().concat("")); + String TitleColor = "1DB954"; + + Settings.setTitle(Html.fromHtml(""+Title+"")); + Settings.setPositiveButton(spap.getText().toString(), new DialogInterface.OnClickListener(){ + + @Override + public void onClick(DialogInterface Settings, int p) { + AlertDialog.setCancelable(true); + Intent intent = new Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS); intent.setData(Uri.parse("package:com.spotify.music")); + startActivity(intent); + } + }); + Settings.setNegativeButton(cloned.getText().toString(), new DialogInterface.OnClickListener(){ + + @Override + public void onClick(DialogInterface Settings, int p) { + + AlertDialog.setCancelable(true); + Intent intent = new Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS); intent.setData(Uri.parse("package:com.spotify.musix")); + startActivity(intent); + } + }); + Settings.setNeutralButton(lite.getText().toString(), new DialogInterface.OnClickListener(){ + + @Override + public void onClick(DialogInterface Settings, int p) { + AlertDialog.setCancelable(true); + Intent intent = new Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS); intent.setData(Uri.parse("package:com.spotify.lite")); + startActivity(intent); + } + }); + AlertDialog = Settings.create(); + AlertDialog.setCancelable(true); + AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); + AlertDialog.show(); + _Tap_Animation(box_settings); + } + catch(Exception e) { + SketchwareUtil.CustomToast(getApplicationContext(), "Application not installed", 0xFF000000, 14, 0xFFE0E0E0, 30, SketchwareUtil.BOTTOM); + } + } + }); + + box_cache.setOnLongClickListener(new View.OnLongClickListener() { + @Override + public boolean onLongClick(View _view) { + com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Clear Offline Cached Datas", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); + return true; + } + }); + + box_cache.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View _view) { + try { + if (CHECK == 0) { + CHECK = 1; + Timer = new TimerTask() { + @Override + public void run() { + runOnUiThread(new Runnable() { + @Override + public void run() { + CHECK = 0; + } + }); + } + }; + _timer.schedule(Timer, (int)(2000)); + if (Build.VERSION.SDK_INT <= 30) { + if (FileUtil.isExistFile("/storage/emulated/0/Android/data/com.spotify.music/") || (FileUtil.isExistFile("/storage/emulated/0/Android/data/com.spotify.musix/") || FileUtil.isExistFile("/storage/emulated/0/Android/data/com.spotify.lite/"))) { + FileUtil.deleteFile("/storage/emulated/0/Android/data/com.spotify.music/"); + FileUtil.deleteFile("/storage/emulated/0/Android/data/com.spotify.musix/"); + FileUtil.deleteFile("/storage/emulated/0/Android/data/com.spotify.lite/"); + com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Successfully Deleted", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); + } + else { + com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Directory Files Are Empty", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); + } + } else { + if (Build.VERSION.SDK_INT >= 31) { + com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "This feature does not support Android 12 and above", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); + } + } + + } + _Tap_Animation(box_cache); + } + catch(Exception e) { + } + } + }); + + box_open.setOnLongClickListener(new View.OnLongClickListener() { + @Override + public boolean onLongClick(View _view) { + com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Launch Patched App", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); + return true; + } + }); + + box_open.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View _view) { + try { + final AlertDialog.Builder Open = new AlertDialog.Builder(MainActivity.this, R.style.Other_Dialog); + + String Title = "".concat(open_patched.getText().toString().concat("")); + String TitleColor = "1DB954"; + + Open.setTitle(Html.fromHtml(""+Title+"")); + Open.setPositiveButton(spap.getText().toString(), new DialogInterface.OnClickListener(){ + + @Override + public void onClick(DialogInterface Open, int p) { + AlertDialog.setCancelable(true); + String packageName = "com.spotify.music"; + + Intent intent = getPackageManager().getLaunchIntentForPackage(packageName); + if(intent == null) { + + try { + intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + packageName)); + } catch (Exception e) { + SketchwareUtil.CustomToast(getApplicationContext(), "Spotify not installed", 0xFF000000, 14, 0xFFE0E0E0, 30, SketchwareUtil.BOTTOM); + } + } + startActivity(intent); + } + }); + Open.setNegativeButton(cloned.getText().toString(), new DialogInterface.OnClickListener(){ + + @Override + public void onClick(DialogInterface Open, int p) { + + AlertDialog.setCancelable(true); + String packageName = "com.spotify.musix"; + + Intent intent = getPackageManager().getLaunchIntentForPackage(packageName); + if(intent == null) { + + try { + intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + packageName)); + } catch (Exception e) { + SketchwareUtil.CustomToast(getApplicationContext(), "Cloned not installed", 0xFF000000, 14, 0xFFE0E0E0, 30, SketchwareUtil.BOTTOM); } } startActivity(intent); @@ -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 = "".concat(installation_failed_0.concat("")); @@ -11687,17 +12433,36 @@ public class MainActivity extends AppCompatActivity { Downloaded_Version_Lite = Installed_Version_Lite; } - } - - - public void _Maintenance() { + String uri_wave = "com.aspiro.tidal"; + android.content.pm.PackageManager pm_wave = getPackageManager(); + try { - final AlertDialog.Builder Update_Unauthorized = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); - - String Title = "".concat(maintenance.getText().toString().concat("")); - String TitleColor = "1DB954"; - - Update_Unauthorized.setTitle(Html.fromHtml(""+Title+"")); + 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; + } + + } + + + public void _Maintenance() { + try { + final AlertDialog.Builder Update_Unauthorized = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); + + String Title = "".concat(maintenance.getText().toString().concat("")); + String TitleColor = "1DB954"; + + Update_Unauthorized.setTitle(Html.fromHtml(""+Title+"")); String Message = maintenance_desc.getText().toString(); String MessageColor = "FFFFFF"; @@ -11818,6 +12583,7 @@ public class MainActivity extends AppCompatActivity { Stock_Experimental_Cloned_Patched = (new Gson()).toJson(Datas.get("Stock_Experimental_Cloned_Patched"), new TypeToken>>(){}.getType()); Amoled_Experimental_Cloned_Patched = (new Gson()).toJson(Datas.get("Amoled_Experimental_Cloned_Patched"), new TypeToken>>(){}.getType()); Lite_Patched = (new Gson()).toJson(Datas.get("Lite_Patched"), new TypeToken>>(){}.getType()); + Wave_Patched = (new Gson()).toJson(Datas.get("Wave_Patched"), new TypeToken>>(){}.getType()); Patched_Changelogs = (new Gson()).toJson(Datas.get("Patched_Changelogs"), new TypeToken>>(){}.getType()); stock_patched = new Gson().fromJson(Stock_Patched, new TypeToken>>(){}.getType()); amoled_patched = new Gson().fromJson(Amoled_Patched, new TypeToken>>(){}.getType()); @@ -11828,6 +12594,7 @@ public class MainActivity extends AppCompatActivity { stock_experimental_cloned_patched = new Gson().fromJson(Stock_Experimental_Cloned_Patched, new TypeToken>>(){}.getType()); amoled_experimental_cloned_patched = new Gson().fromJson(Amoled_Experimental_Cloned_Patched, new TypeToken>>(){}.getType()); lite_patched = new Gson().fromJson(Lite_Patched, new TypeToken>>(){}.getType()); + wave_patched = new Gson().fromJson(Wave_Patched, new TypeToken>>(){}.getType()); patched_changelogs = new Gson().fromJson(Patched_Changelogs, new TypeToken>>(){}.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 = "".concat(installation_failed_0.concat("")); @@ -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); @@ -14336,39 +15175,957 @@ public class MainActivity extends AppCompatActivity { public void run() { runOnUiThread(new Runnable() { @Override - public void run() { + public void run() { + try { + REFETCH.edit().putString("REFETCH", "X").commit(); + box_reboot.performClick(); + prog.dismiss(); + } + catch(Exception e) { + } + } + }); + } + }; + _timer.schedule(Timer, (int)(3000)); + if (Build.VERSION.SDK_INT > Build.VERSION_CODES.KITKAT) { + Window w =MainActivity.this.getWindow(); + w.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); + w.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); w.setStatusBarColor(0xFF171717); + } + title_header.setTextColor(0xFF1DB954); + title_header_separator.setTextColor(0xFFFFFFFF); + title_header_beta.setTextColor(0xFFFFFFFF); + box_header.setBackgroundColor(0xFF171717); + main_body_optimization.setVisibility(View.GONE); + main_scroll_settings.setVisibility(View.GONE); + main_scroll_about.setVisibility(View.GONE); + main_refresh_layout.setVisibility(View.VISIBLE); + box_experiment.setVisibility(View.VISIBLE); + box_switch.setVisibility(View.VISIBLE); + box_update.setVisibility(View.VISIBLE); + icon_experiment.setAlpha((float)(1.0d)); + icon_switch.setAlpha((float)(1.0d)); + icon_update.setAlpha((float)(1.0d)); + main_body.setAlpha((float)(0.50d)); + + } + + + 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 = "".concat(downloading_file_0.concat("")); + String TitleColor = "1DB954"; + prog.setTitle(Html.fromHtml(""+Title+"")); + 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 = "".concat(hidden_patched.getText().toString().concat("")); + String TitleColor = "1DB954"; + check.setTitle(Html.fromHtml(""+Title+"")); + 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 = "".concat(hidden_patched.getText().toString().concat("")); + String TitleColor = "1DB954"; + check.setTitle(Html.fromHtml(""+Title+"")); + 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 = "".concat(hidden_patched.getText().toString().concat("")); + String TitleColor = "1DB954"; + check.setTitle(Html.fromHtml(""+Title+"")); + 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 = "".concat(hidden_patched.getText().toString().concat("")); + String TitleColor = "1DB954"; + check.setTitle(Html.fromHtml(""+Title+"")); + 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 = "".concat(downloading_file_0.concat("")); + String TitleColor = "1DB954"; + prog.setTitle(Html.fromHtml(""+Title+"")); + 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 = "".concat(hidden_patched.getText().toString().concat("")); + String TitleColor = "1DB954"; + check.setTitle(Html.fromHtml(""+Title+"")); + 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 = "".concat(hidden_patched.getText().toString().concat("")); + String TitleColor = "1DB954"; + check.setTitle(Html.fromHtml(""+Title+"")); + 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 = "".concat(hidden_patched.getText().toString().concat("")); + String TitleColor = "1DB954"; + check.setTitle(Html.fromHtml(""+Title+"")); + 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 = "".concat(hidden_patched.getText().toString().concat("")); + String TitleColor = "1DB954"; + check.setTitle(Html.fromHtml(""+Title+"")); + 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 = "".concat(installation_failed_0.concat("")); + String TitleColor = "1DB954"; + Signature_Check.setTitle(Html.fromHtml(""+Title+"")); + String Message = installation_failed_spap_desc_0.replace("\n", "
"); + String MessageColor = "FFFFFF"; + Signature_Check.setMessage(Html.fromHtml(""+Message+"")); + 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 = "".concat(installation_failed_0.concat("")); + String TitleColor = "1DB954"; + Downgrade_Check.setTitle(Html.fromHtml(""+Title+"")); + String Message = installation_failed_desc_0.replace("\n", "
"); + String MessageColor = "FFFFFF"; + Downgrade_Check.setMessage(Html.fromHtml(""+Message+"")); + 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 = "".concat(installation_failed_0.concat("")); + String TitleColor = "1DB954"; + Signature_Check.setTitle(Html.fromHtml(""+Title+"")); + String Message = installation_failed_cloned_desc_0.replace("\n", "
"); + String MessageColor = "FFFFFF"; + Signature_Check.setMessage(Html.fromHtml(""+Message+"")); + Signature_Check.setPositiveButton(uninstall_0, new DialogInterface.OnClickListener(){ + @Override + public void onClick(DialogInterface Signature_Check, int p) { + AlertDialog.setCancelable(true); try { - REFETCH.edit().putString("REFETCH", "X").commit(); - box_reboot.performClick(); - prog.dismiss(); + 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 = "".concat(installation_failed_0.concat("")); + String TitleColor = "1DB954"; + Downgrade_Check.setTitle(Html.fromHtml(""+Title+"")); + String Message = installation_failed_desc_0.replace("\n", "
"); + String MessageColor = "FFFFFF"; + Downgrade_Check.setMessage(Html.fromHtml(""+Message+"")); + 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)(3000)); - if (Build.VERSION.SDK_INT > Build.VERSION_CODES.KITKAT) { - Window w =MainActivity.this.getWindow(); - w.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); - w.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); w.setStatusBarColor(0xFF171717); } - title_header.setTextColor(0xFF1DB954); - title_header_separator.setTextColor(0xFFFFFFFF); - title_header_beta.setTextColor(0xFFFFFFFF); - box_header.setBackgroundColor(0xFF171717); - main_body_optimization.setVisibility(View.GONE); - main_scroll_settings.setVisibility(View.GONE); - main_scroll_about.setVisibility(View.GONE); - main_refresh_layout.setVisibility(View.VISIBLE); - box_experiment.setVisibility(View.VISIBLE); - box_switch.setVisibility(View.VISIBLE); - box_update.setVisibility(View.VISIBLE); - icon_experiment.setAlpha((float)(1.0d)); - icon_switch.setAlpha((float)(1.0d)); - icon_update.setAlpha((float)(1.0d)); - main_body.setAlpha((float)(0.50d)); + + } + + + public void _Extension_9() { + final AlertDialog.Builder Success_Download = new AlertDialog.Builder(MainActivity.this, R.style.Other_Dialog); + String Title = "".concat(download_success_0.concat("")); + String TitleColor = "1DB954"; + Success_Download.setTitle(Html.fromHtml(""+Title+"")); + 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 = "".concat(installation_failed_0.concat("")); + String TitleColor = "1DB954"; + Signature_Check.setTitle(Html.fromHtml(""+Title+"")); + String Message = installation_failed_cloned_desc_0.replace("\n", "
"); + String MessageColor = "FFFFFF"; + Signature_Check.setMessage(Html.fromHtml(""+Message+"")); + 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 = "".concat(installation_failed_0.concat("")); + String TitleColor = "1DB954"; + Downgrade_Check.setTitle(Html.fromHtml(""+Title+"")); + String Message = installation_failed_desc_0.replace("\n", "
"); + String MessageColor = "FFFFFF"; + Downgrade_Check.setMessage(Html.fromHtml(""+Message+"")); + 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(); } @@ -14641,6 +16398,78 @@ public class MainActivity extends AppCompatActivity { 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_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> _data; + + public List_items_5Adapter(ArrayList> _arr) { + _data = _arr; + } + + @Override + public int getCount() { + return _data.size(); + } + + @Override + public HashMap 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(); @@ -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); -- cgit v1.2.3 -- cgit v1.2.3 -- cgit v1.2.3 From c943c904e0eb7e0917daf326f970734bf7f1398b Mon Sep 17 00:00:00 2001 From: xC3FFF0E <78732474+xC3FFF0E@users.noreply.github.com> Date: Sun, 16 Jul 2023 00:24:11 +0800 Subject: Update SplashActivity.java --- .../java/com/xc3fff0e/xmanager/SplashActivity.java | 26 +++++++++------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/app/src/main/java/com/xc3fff0e/xmanager/SplashActivity.java b/app/src/main/java/com/xc3fff0e/xmanager/SplashActivity.java index 5bd92e2..49e3b4f 100644 --- a/app/src/main/java/com/xc3fff0e/xmanager/SplashActivity.java +++ b/app/src/main/java/com/xc3fff0e/xmanager/SplashActivity.java @@ -76,34 +76,28 @@ public class SplashActivity extends AppCompatActivity { } Glide.with(getApplicationContext()).load(Uri.parse("file:///android_asset/splash.gif")).into(icon_splash); title_splash.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_glitch.ttf"), 1); - if (0 == SketchwareUtil.getRandom((int)(0), (int)(5))) { + if (0 == SketchwareUtil.getRandom((int)(0), (int)(4))) { title_splash.setText("xManager"); title_splash.setTextSize((int)25); } else { - if (1 == SketchwareUtil.getRandom((int)(0), (int)(5))) { - title_splash.setText("Exodus 20:15"); + if (1 == SketchwareUtil.getRandom((int)(0), (int)(4))) { + title_splash.setText("It's A Movement"); title_splash.setTextSize((int)25); } else { - if (2 == SketchwareUtil.getRandom((int)(0), (int)(5))) { - title_splash.setText("It's A Movement"); + if (2 == SketchwareUtil.getRandom((int)(0), (int)(4))) { + title_splash.setText("We Are Resistance"); title_splash.setTextSize((int)25); } else { - if (3 == SketchwareUtil.getRandom((int)(0), (int)(5))) { - title_splash.setText("We Are Resistance"); - title_splash.setTextSize((int)25); + if (3 == SketchwareUtil.getRandom((int)(0), (int)(4))) { + title_splash.setText("Freedom For Everyone"); + title_splash.setTextSize((int)20); } else { - if (4 == SketchwareUtil.getRandom((int)(0), (int)(5))) { - title_splash.setText("Freedom For Everyone"); - title_splash.setTextSize((int)20); - } - else { - title_splash.setText("Don't Make Us Popular!"); - title_splash.setTextSize((int)20); - } + title_splash.setText("Don't Make Us Popular!"); + title_splash.setTextSize((int)20); } } } -- cgit v1.2.3 -- cgit v1.2.3 -- cgit v1.2.3 From a96ef77817ec844d8da7d2225b281c71790c0448 Mon Sep 17 00:00:00 2001 From: xC3FFF0E <78732474+xC3FFF0E@users.noreply.github.com> Date: Sun, 16 Jul 2023 00:27:55 +0800 Subject: Update main.xml --- app/src/main/res/layout/main.xml | 289 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 274 insertions(+), 15 deletions(-) diff --git a/app/src/main/res/layout/main.xml b/app/src/main/res/layout/main.xml index 0524db8..8fe3bd2 100644 --- a/app/src/main/res/layout/main.xml +++ b/app/src/main/res/layout/main.xml @@ -1295,7 +1295,7 @@ android:layout_marginLeft="10dp" android:layout_marginTop="10dp" android:layout_marginRight="10dp" - android:padding="8dp" + android:padding="7dp" android:background="#424242" android:orientation="vertical"> @@ -1383,7 +1383,7 @@ android:layout_marginLeft="10dp" android:layout_marginTop="10dp" android:layout_marginRight="10dp" - android:padding="8dp" + android:padding="7dp" android:background="#424242" android:orientation="vertical"> @@ -2307,7 +2307,7 @@ android:layout_marginLeft="10dp" android:layout_marginTop="10dp" android:layout_marginRight="10dp" - android:padding="8dp" + android:padding="7dp" android:background="#424242" android:orientation="vertical"> @@ -2557,7 +2557,7 @@ android:layout_marginLeft="10dp" android:layout_marginTop="10dp" android:layout_marginRight="10dp" - android:padding="10dp" + android:padding="7dp" android:background="#212121" android:orientation="vertical" android:animateLayoutChanges="true"> @@ -2738,7 +2738,7 @@ android:layout_marginLeft="10dp" android:layout_marginTop="10dp" android:layout_marginRight="10dp" - android:padding="10dp" + android:padding="7dp" android:background="#212121" android:orientation="vertical" android:animateLayoutChanges="true"> @@ -2872,6 +2872,239 @@ android:scrollbarThumbVertical="@drawable/scrollbar_vertical_thumb" android:divider="#171717" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2973,6 +3206,32 @@ android:textStyle="bold" android:textColor="#FFFFFF" android:layout_gravity="right|center_vertical" /> + + -- cgit v1.2.3 -- cgit v1.2.3 -- cgit v1.2.3 -- cgit v1.2.3 -- cgit v1.2.3 From 91781fae5af57e46caadcfb2368ddc4af689932b Mon Sep 17 00:00:00 2001 From: xC3FFF0E <78732474+xC3FFF0E@users.noreply.github.com> Date: Sun, 16 Jul 2023 00:29:45 +0800 Subject: Update strings.xml --- app/src/main/res/values/strings.xml | 88 ++++++++++++++++++------------------- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index e82a364..1acc9d2 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -86,88 +86,88 @@ xManager - ইনস্টলড + ইনস্টল করা হয়েছে সর্বশেষ - সংস্করণ সমুহ + সংস্করণসমূহ পরিবর্তন সমুহ - MANAGER টুলস + ম্যানেজার টুলস উৎস - আরো জানুন - দান করুন - ডিস্ক (ম) + টেলিগ্রাম + সমর্থন করুন + ডিসকর্ড আমাদের সম্পর্কে দেখুন xManager সেটিংস টাইটেল সম্পর্কে দেখুন স্বয়ংক্রিয়ভাবে তালিকাভুক্ত করুন - এটি চালু করা হলে আপনি অ্যাপ্লিকেশনটি প্রতিবার চালু করার সাথে সাথে তালিকাটিকে স্বয়ংক্রিয়ভাবে রিফ্রেশ হবে। আপনি মূল পেজটি নীচের দিকে টেনে এনে ম্যানুয়ালি তালিকাটি রিফ্রেশ করতে পারেন। - স্বয়ং-ইনস্টল করুন - এটি চালু থাকলে স্বয়ংক্রিয়ভাবে পরিবর্তিত অ্যাপ্লিকেশনটি ইনস্টল করাহবে এবং একবার ডাউনলোড হয়ে গেলে আপনাআপনি আপডেট হবে। - থিম গুল দেখুন - APK ফাইল লোকেশন - ফাইল ডিরেক্টরি: যেখানে ডাউনলোড করা apk সংরক্ষণ করতে চান। কীভাবে এটা কনফিগার করতে হয় সেটা জানা না থাকলে এটি যেমন রয়েছে সেভাবেই রাখুন। + এটি চালু করা হলে আপনি অ্যাপ্লিকেশনটি প্রতিবার চালু করার সাথে সাথে তালিকাটি স্বয়ংক্রিয়ভাবে রিফ্রেশ হবে। আপনি মূল পেজটি নীচের দিকে টেনে ধরে ম্যানুয়ালি তালিকাটি রিফ্রেশ করতে পারেন। + জোরপূর্বক স্বয়ংক্রিয় ইনস্টল করুন + এটি চালু করলে স্বয়ংক্রিয়ভাবে প্যাচ করা অ্যাপ্লিকেশনটি ইনস্টল এবং আপডেট হবে। + থিমসমূহ দেখুন + APK ফাইলের অবস্থান + আপনি ডাউনলোড করা ফাইল, কোথায় সংরক্ষণ করতে চান সেই ডিরেক্টরিটি সিলেক্ট করুন। যদি আপনি কীভাবে কনফিগার করতে হয় তা না জানেন, তবে এটি এভাবেই রাখুন।\n\nনোট: এই বৈশিষ্ট্যটি সহজলভ্যতা, অনুমতি এবং সংরক্ষণের সীমাবদ্ধতা জনিত কারণে, বাহ্যিক স্টোরেজ (এসডি কার্ড) সমর্থন করে না। ডিরেক্টরি ফোল্ডার পরিষ্কার করুন ডাউনলোড করা অ্যাপস এবং আপডেটগুলি সহ সমস্ত ডিরেক্টরি ফোল্ডার মুছুন। সেটিংস রিসেট করুন - No Ads | New Features | Freedom - xManager ডেভ - Spotify Mod ডেভ - টেলিগ্রাম সমর্থন দল - Mod/Manager পরীক্ষকগণ - Manager Hosting লিংক গুল - Mobilism টিম - FORUM.APK-RELEASE.NET টিম - সমস্ত অবদানকারীদের ধন্যবাদ! ❤️ - আপনি এই পরিবর্তিত সংস্করণটি নির্বাচন করেছেন। আপনি কি ডাউনলোড করতে চান? + বিজ্ঞাপন মুক্ত | নতুন বৈশিষ্ট্য | স্বাধীনতা + xManager ডেভেলপার + Spotify Mod ডেভেলপার + টেলিগ্রাম | ডিসকর্ড | রেডিট সমর্থন দল + প্যাচড এবং ম্যানেজার পরীক্ষক + ম্যানেজার ডাটাবেস এবং হোস্টিং + Mobilism দল + FORUM.APK-RELEASE.NET দল + সকল অবদানকারীদের ধন্যবাদ! ❤️ + আপনি এই প্যাচ করা সংস্করণটি নির্বাচন করেছেন। আপনি কি চালিয়ে যেতে চান? প্যাচ তথ্য - এই পরিবর্তিত apk ডাউনলোড করা অ্যাপ্লিকেশন ফাইল ডিরেক্টরিতে অবস্থিত পূর্ববর্তী ফাইলটি ওভাররাইট করবে। + এই প্যাচ করা Apk, ডিরেক্টরিতে অবস্থিত আগের ডাউনলোড করা অ্যাপ্লিকেশন ফাইলটিকে ওভাররাইট করবে। ফাইল ডাউনলোড হচ্ছে সফলভাবে ডাউনলোড হয়েছে - নতুন MANAGER আপডেট + নতুন ম্যানেজার আপডেট চালিয়ে যান - বাদদিন + বাতিল করুন ডাউনলোড করুন পরে - এখন ইন্সটল করুন - ইনস্টল আপডেট + প্যাচ ইনস্টল করুন + আপডেট ইনস্টল করুন ফিরে যান - ডাউনলোড আপডেট + আপডেট ডাউনলোড করুন এখন না মিরর লিঙ্ক হালকা পরীক্ষামূলক পরীক্ষামূলক সংস্করণ - এটি সক্ষম করা আপনাকে প্যাচড অ্যাপ্লিকেশনটির পরীক্ষামূলক সংস্করণটি ডাউনলোড এবং ইনস্টল করার অনুমতি দেয়.এর মধ্যে আলফা, বিটা এবং প্রারম্ভিক অ্যাক্সেসের বৈশিষ্ট্যগুলি অন্তর্ভুক্ত রয়েছে যা স্টক প্যাচডগুলিতে উপলব্ধ নয়৷ উপরন্তু, স্থিতিশীল নিশ্চিত না. - আপনার সাপর্ট টি পাঠান - আমরা একটি অলাভজনক ও অ-কর্পোরেট দল।আমরা যতক্ষণ পারছি এই অ্যাপ্লিকেশনটিকে উপডেট রাখার জন্য যথাসাধ্য চেষ্টা করব। + এটি সক্ষম করলে আপনি প্যাচ সংস্করণের পরীক্ষামূলক সংস্করণ ডাউনলোড এবং ইনস্টল করতে পারবেন।\n\nএটি আলফা, বেটা এবং প্রারম্ভিক অ্যাক্সেস বৈশিষ্ট্যগুলি সংযুক্ত করে, যা স্টক প্যাঁচে পাওয়া যায় না। উত্তম স্থিতিতেও নিশ্চিত নয়। + আপনার সমর্থন দেখান + আমরা একটি অলাভজনক, অ-কর্পোরেট এবং অ-আপসহীন দল। আপনার মতো লোকেরা আমাদেরকে একটি অ্যাপ তৈরি করতে উত্সাহিত করে, বিশেষ করে ডাউনলোড করা থেকে ইনস্টল করা পর্যন্ত অনেক সহজ করে৷\n\nআমরা আমাদের সমস্ত সময় এবং সর্বোত্তম প্রচেষ্টা শুধু জিনিসগুলিকে সঠিক এবং নিখুঁত করার জন্য ব্যয় করছি৷ আমরা যতদিন পারি এই অ্যাপটিকে সমর্থন করার জন্য যথাসাধ্য চেষ্টা করব৷ \n\nযেকোনো পরিমাণ সাহায্য করা হলেও তা খুব মূল্যবান এবং অত্যন্ত প্রশংসিত হবে! রক্ষণাবেক্ষণ - এক্স ম্যানেজার এখনই অনুপলব্ধ। দয়া করে পরে আবেদনটি পরীক্ষা করুন। + xManager বর্তমানে অপ্রাপ্য। দয়া করে পরে আবার চেষ্টা করুন। ধন্যবাদ! ভাষা ওয়েবসাইট - REDDIT - যে কোন প্রশ্নের জন্য + রেডিট + অনবরত জিজ্ঞাসিত প্রশ্ন ক্লোনড সংস্করণ - এটি সক্রিয় করা আপনাকে প্যাচড অ্যাপ্লিকেশনটির ক্লোন করা সংস্করণটি ডাউনলোড এবং ইনস্টল করার অনুমতি দেয়আপনি একটি প্রাক ইনস্টল স্পটিফাই অ্যাপ্লিকেশন আছে, বিশেষ করে যদি এই ইনস্টলেশন ত্রুটি বা সমস্যার অধিকাংশ সমাধান হবে. + এটি চালু করলে,আপনি প্যাচড অ্যাপ্লিকেশনের ক্লোন সংস্করণ ডাউনলোড এবং ইনস্টল করার অনুমতি দিলেন\n\nএটি ইনস্টলেশনের ত্রুটি বা সমস্যাগুলির সমাধান করবে, বিশেষত যদি আপনার প্রি-ইনস্টলকৃত স্পটিফাই অ্যাপ্লিকেশন থাকে। পুরস্কৃত বিজ্ঞাপনগুলি অক্ষম করুন - আমরা আমাদের অধিকাংশ বিজ্ঞাপন পছন্দ করেন না জানি কিন্তু আমাদের ক্ষেত্রে, এই উল্লেখযোগ্যভাবে আমাদের ডাটাবেস তহবিল আমাদের সাহায্য, হোস্টিং লিঙ্ক, আপডেট, আরো প্যাচ, এবং দৈনন্দিন চাহিদা.এই দান বা কিছু খরচ ছাড়া আমাদের সমর্থন সহজ উপায়. + আমরা জানি যে অনেকেই বিজ্ঞাপন পছন্দ করেন না কিন্তু আমাদের ক্ষেত্রে, এটি আমাদের ডাটাবেস, হোস্টিং লিঙ্ক, আপডেট, আরও প্যাচ এবং প্রতিদিনের প্রয়োজনে অর্থায়নে উল্লেখযোগ্যভাবে সাহায্য করে।\n\nএটি অনুদান বা কোনও খরচ ছাড়াই আমাদের সমর্থন করতে সবচেয়ে সহজ উপায়। ইনস্টলেশন ব্যর্থ হয়েছে - কারণ: আপনি বর্তমানে ইনস্টল করা হয় কি কম একটি গেলিক সংস্করণ ইনস্টল করার চেষ্টা.সমাধান: একটি সংস্করণ সমান বা তার চেয়ে অনেক বেশী নির্বাচন করুন.বর্তমান সংস্করণ আনইনস্টল, তারপর ডাউনগ্রেড.সমস্যা জিদ, অনবরত জিজ্ঞাসিত প্রশ্ন চেক. - কারণ: এই ডিভাইসে ইনস্টল করা বর্তমান স্পটিফাই সরাসরি এক্সম্যানেজার বা আমাদের দল থেকে আসে নিসমাধান: অ্যাপ্লিকেশনটির বর্তমান সংস্করণ আনইনস্টল করুন, এক্সম্যানেজার পুনরায় চালু করুন এবং আবার চেষ্টা করুন সমস্যা জিদ যদি, অনবরত জিজ্ঞাসিত প্রশ্ন চেক. - কারণ: এই ডিভাইসে ইনস্টল করা বর্তমান ক্লোনড সরাসরি এক্সম্যানেজার থেকে বা আমাদের দল থেকে আসে নিসমাধান: অ্যাপ্লিকেশনটির বর্তমান সংস্করণ আনইনস্টল করুন, এক্সম্যানেজার পুনরায় চালু করুন এবং আবার চেষ্টা করুন সমস্যা জিদ যদি, অনবরত জিজ্ঞাসিত প্রশ্ন চেক. + কারণ: আপনি বর্তমানে যেটি ইনস্টল করা আছে, তার চেয়ে কম প্যাচ করা সংস্করণ ইনস্টল করার চেষ্টা করেছেন৷\n\nসমাধান:\nA. এর সমান বা বড় সংস্করণ নির্বাচন করুন।\nB. বর্তমান সংস্করণ আনইনস্টল করুন, তারপর ডাউনগ্রেড করুন।\n\nযদি সমস্যাটি থেকে যায়, অনবরত জিজ্ঞাসিত প্রশ্ন দেখুন। + কারণ: এই ডিভাইসে ইনস্টল করা বর্তমান প্যাচ সরাসরি xManager বা আমাদের দলের কাছ থেকে আসেনি।\n\nসমাধান: অ্যাপ্লিকেশনটির বর্তমান সংস্করণ আনইনস্টল করুন, xManager পুনরায় চালু করুন এবং আবার চেষ্টা করুন। যদি সমস্যাটি থেকে যায়,তাহলে অনবরত জিজ্ঞাসিত প্রশ্ন দেখুন। + কারণ: এই ডিভাইসে ইনস্টল করা বর্তমান ক্লোন সরাসরি xManager বা আমাদের দলের কাছ থেকে আসেনি।\n\nসমাধান: অ্যাপ্লিকেশনটির বর্তমান সংস্করণ আনইনস্টল করুন, xManager পুনরায় চালু করুন এবং আবার চেষ্টা করুন। যদি সমস্যাটি থেকে যায়, তাহলে অনবরত জিজ্ঞাসিত প্রশ্ন দেখুন। বিদ্যমান প্যাচড - ডিরেক্টরি এক পাওয়া একটি বিদ্যমান প্যাচ ফাইল. আপনি কোন পদক্ষেপ করতে চান? - বন্ধ + বাহ্যিক ডিরেক্টরিতে একটি বিদ্যমান প্যাচ সনাক্ত করা হয়েছে। আপনি কি করতে চান? + বন্ধ করুন ক্লোনড - আরই / এএম + SP/AP ইনস্টল করুন আনইনস্টল করুন উপেক্ষা করা হবে মুছে ফেলুন প্যাচড আনইনস্টল করুন - ওপেন সেটিংস + সেটিংস খুলুন প্যাচড খুলুন - রিফেচ এবং রিবুট করুন + পুনরায় লোড করুন এবং পুনরায় চালু করুন xManager -- cgit v1.2.3