90 FPS v1.1版本的 MD5 值为:95d0e3b2d73fbf405c27c35fdb8044da
以下内容为反编译后的 KoreaEngActivity.java 源代码,内容仅作参考
package com.ibrohimapps.fps90;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
import android.provider.DocumentsContract;
import android.util.SparseBooleanArray;
import android.util.TypedValue;
import android.view.View;
import android.webkit.MimeTypeMap;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import androidx.documentfile.provider.DocumentFile;
import com.google.firebase.FirebaseApp;
import de.hdodenhof.circleimageview.CircleImageView;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Random;
public class KoreaEngActivity extends AppCompatActivity {
static final int OLD_REQUEST = 2000;
static final int REQUEST_CODE = 333;
private static final int new_folder = 43;
private double PermissionNumber;
private Button button10;
private Button button11;
private Button button12;
private Button button13;
private Button button16;
private Button button24;
private Button button25;
private CircleImageView circleimageview4;
private DocumentFile dFile;
private LinearLayout global_orqa_qism;
private LinearLayout linear10;
private LinearLayout linear12;
private LinearLayout linear13;
private LinearLayout linear14;
private LinearLayout linear17;
private LinearLayout linear18;
private LinearLayout linear19;
private LinearLayout linear48;
private LinearLayout linear49;
private LinearLayout linear50;
private LinearLayout linear51;
private LinearLayout linear52;
private Uri muri;
private SharedPreferences sha;
private TextView textview1;
private String pachOut = "";
private Intent inteng = new Intent();
private boolean fromStorage = false;
private Intent i = new Intent();
private String uriFor1 = "";
private String uriFor2 = "";
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.korea_eng);
initialize(bundle);
FirebaseApp.initializeApp(this);
initializeLogic();
}
private void initialize(Bundle bundle) {
this.linear10 = (LinearLayout) findViewById(R.id.linear10);
this.global_orqa_qism = (LinearLayout) findViewById(R.id.global_orqa_qism);
this.linear18 = (LinearLayout) findViewById(R.id.linear18);
this.circleimageview4 = (CircleImageView) findViewById(R.id.circleimageview4);
this.textview1 = (TextView) findViewById(R.id.textview1);
this.linear19 = (LinearLayout) findViewById(R.id.linear19);
this.linear12 = (LinearLayout) findViewById(R.id.linear12);
this.linear17 = (LinearLayout) findViewById(R.id.linear17);
this.linear13 = (LinearLayout) findViewById(R.id.linear13);
this.linear14 = (LinearLayout) findViewById(R.id.linear14);
this.linear48 = (LinearLayout) findViewById(R.id.linear48);
this.linear51 = (LinearLayout) findViewById(R.id.linear51);
this.linear52 = (LinearLayout) findViewById(R.id.linear52);
this.button13 = (Button) findViewById(R.id.button13);
this.button12 = (Button) findViewById(R.id.button12);
this.button16 = (Button) findViewById(R.id.button16);
this.button10 = (Button) findViewById(R.id.button10);
this.button11 = (Button) findViewById(R.id.button11);
this.linear49 = (LinearLayout) findViewById(R.id.linear49);
this.linear50 = (LinearLayout) findViewById(R.id.linear50);
this.button24 = (Button) findViewById(R.id.button24);
this.button25 = (Button) findViewById(R.id.button25);
this.button13.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
KoreaEngActivity.this.pachOut = "/storage/emulated/0/Android/data/com.pubg.krmobile/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/SaveGames/";
if (!KoreaEngActivity.this.checkPermission(KoreaEngActivity.this.pathToRealUri("/storage/emulated/0/Android/data/com.pubg.krmobile/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/SaveGames/"))) {
KoreaEngActivity.this.askPermission(KoreaEngActivity.this.pathToUri(KoreaEngActivity.this.pachOut));
SketchwareUtil.showMessage(KoreaEngActivity.this.getApplicationContext(), "Bajarildi");
return;
}
KoreaEngActivity.this.copyAssetFolder("fps90", "/storage/emulated/0/Android/data/com.pubg.krmobile/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/SaveGames/");
}
});
this.button12.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
KoreaEngActivity.this.pachOut = "/storage/emulated/0/Android/data/com.pubg.krmobile/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/SaveGames/";
if (!KoreaEngActivity.this.checkPermission(KoreaEngActivity.this.pathToRealUri("/storage/emulated/0/Android/data/com.pubg.krmobile/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/SaveGames/"))) {
KoreaEngActivity.this.askPermission(KoreaEngActivity.this.pathToUri(KoreaEngActivity.this.pachOut));
SketchwareUtil.showMessage(KoreaEngActivity.this.getApplicationContext(), "Bajarildi");
return;
}
KoreaEngActivity.this.copyAssetFolder("fps60", "/storage/emulated/0/Android/data/com.pubg.krmobile/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/SaveGames/");
}
});
this.button16.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
KoreaEngActivity.this.pachOut = "/storage/emulated/0/Android/data/com.pubg.krmobile/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/SaveGames/";
if (!KoreaEngActivity.this.checkPermission(KoreaEngActivity.this.pathToRealUri("/storage/emulated/0/Android/data/com.pubg.krmobile/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/SaveGames/"))) {
KoreaEngActivity.this.askPermission(KoreaEngActivity.this.pathToUri(KoreaEngActivity.this.pachOut));
SketchwareUtil.showMessage(KoreaEngActivity.this.getApplicationContext(), "O'chirildi.");
return;
}
try {
DocumentsContract.deleteDocument(KoreaEngActivity.this.getApplicationContext().getContentResolver(), DocumentFile.fromTreeUri(KoreaEngActivity.this.getApplicationContext(), Uri.parse(KoreaEngActivity.this.pathToRealUri("/storage/emulated/0/Android/data/com.pubg.krmobile/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/SaveGames/Active.sav".substring(0, "/storage/emulated/0/Android/data/com.pubg.krmobile/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/SaveGames/Active.sav".lastIndexOf("/"))))).findFile(Uri.parse("/storage/emulated/0/Android/data/com.pubg.krmobile/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/SaveGames/Active.sav").getLastPathSegment()).getUri());
KoreaEngActivity.this.showMessage("✔️✔️✔️");
} catch (FileNotFoundException e) {
KoreaEngActivity.this.showMessage("not found 🚫 غير موجود");
} catch (Exception e2) {
}
}
});
this.button10.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
KoreaEngActivity.this._Launchintent_package("com.pubg.krmobile");
}
});
this.button11.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
KoreaEngActivity.this.inteng.setAction("android.intent.action.VIEW");
KoreaEngActivity.this.inteng.setData(Uri.parse("https://youtu.be/ASvifi2Wh1M?si=aqaI1NuyIjTQLs6J"));
KoreaEngActivity.this.startActivity(KoreaEngActivity.this.inteng);
}
});
this.button24.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
KoreaEngActivity.this.inteng.setAction("android.intent.action.VIEW");
KoreaEngActivity.this.inteng.setData(Uri.parse("https://t.me/FPS_CHANNEL"));
KoreaEngActivity.this.startActivity(KoreaEngActivity.this.inteng);
}
});
this.button25.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
KoreaEngActivity.this.inteng.setAction("android.intent.action.VIEW");
KoreaEngActivity.this.inteng.setData(Uri.parse("https://youtube.com/@FPS_CHANNEL"));
KoreaEngActivity.this.startActivity(KoreaEngActivity.this.inteng);
}
});
}
private void initializeLogic() {
}
@Override
public void onStart() {
super.onStart();
if (Build.VERSION.SDK_INT >= 30) {
this.pachOut = "/storage/emulated/0/Android/data/com.pubg.krmobile/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/SaveGames/";
if (!checkPermission(pathToRealUri("/storage/emulated/0/Android/data/com.pubg.krmobile/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/SaveGames/"))) {
askPermission(pathToUri(this.pachOut));
SketchwareUtil.showMessage(getApplicationContext(), "👇 USTIGA BOSING");
SketchwareUtil.showMessage(getApplicationContext(), "👇 USTIGA BOSING");
SketchwareUtil.showMessage(getApplicationContext(), "👇 USTIGA BOSING");
return;
}
return;
}
SketchwareUtil.showMessage(getApplicationContext(), "Xush Kelibsiz");
}
public void _Launchintent_package(String str) {
Intent launchIntentForPackage = getPackageManager().getLaunchIntentForPackage(str);
if (launchIntentForPackage != null) {
startActivity(launchIntentForPackage);
}
}
public void _extra() {
}
@Override
public void onActivityResult(int i, int i2, Intent intent) {
super.onActivityResult(i, i2, intent);
if (i == 43 && i2 == -1 && intent != null) {
Uri data = intent.getData();
if (Uri.decode(data.toString()).endsWith(":")) {
SketchwareUtil.showMessage(getApplicationContext(), "⛔");
askPermission(data.toString());
} else {
getContentResolver().takePersistableUriPermission(data, this.i.getFlags() & 3);
}
}
if (i == OLD_REQUEST && Build.VERSION.SDK_INT >= 30) {
Environment.isExternalStorageManager();
}
}
public void RequestPermission_Dialog() {
if (Build.VERSION.SDK_INT >= 30) {
try {
Intent intent = new Intent("android.settings.MANAGE_ALL_FILES_ACCESS_PERMISSION");
intent.addCategory("android.intent.category.DEFAULT");
intent.setData(Uri.parse(String.format("package: ", getApplicationContext().getPackageName())));
startActivityForResult(intent, OLD_REQUEST);
return;
} catch (Exception e) {
Intent intent2 = new Intent();
intent2.setAction("android.settings.MANAGE_ALL_FILES_ACCESS_PERMISSION");
startActivityForResult(intent2, OLD_REQUEST);
return;
}
}
ActivityCompat.requestPermissions(this, new String[]{"android.permission.WRITE_EXTERNAL_STORAGE", "android.permission.READ_EXTERNAL_STORAGE"}, REQUEST_CODE);
}
public boolean permission() {
if (Build.VERSION.SDK_INT >= 30) {
return Environment.isExternalStorageManager();
}
return ContextCompat.checkSelfPermission(getApplicationContext(), "android.permission.WRITE_EXTERNAL_STORAGE") == 0 && ContextCompat.checkSelfPermission(getApplicationContext(), "android.permission.READ_EXTERNAL_STORAGE") == 0;
}
public void askPermission(String str) {
this.i.addFlags(67);
this.i.setAction("android.intent.action.OPEN_DOCUMENT_TREE");
this.i.putExtra("android.provider.extra.INITIAL_URI", Uri.parse(str));
startActivityForResult(this.i, 43);
}
public boolean checkPermission(String str) {
this.dFile = DocumentFile.fromTreeUri(getApplicationContext(), Uri.parse(str));
return this.dFile.canRead() && this.dFile.canWrite();
}
public String pathToRealUri(String str) {
this.uriFor1 = "content://com.android.externalstorage.documents/tree/primary%3A";
if (str.endsWith("/")) {
str = str.substring(0, str.length() - 1);
}
if (str.contains("/sdcard/")) {
this.uriFor2 = str.replace("/sdcard/", "").replace("/", "%2F");
if (this.uriFor2.substring(this.uriFor2.length() - 1, this.uriFor2.length()).equals("/")) {
this.uriFor2 = this.uriFor1.substring(0, this.uriFor1.length() - 1);
}
} else if (str.contains("/storage/") && str.contains("/emulated/")) {
this.uriFor2 = str.replace("/storage/emulated/0/", "").replace("/", "%2F");
if (this.uriFor2.substring(this.uriFor2.length() - 1, this.uriFor2.length()).equals("/")) {
this.uriFor2 = this.uriFor1.substring(0, this.uriFor1.length() - 1);
}
}
String str2 = String.valueOf(this.uriFor1) + this.uriFor2;
this.uriFor1 = str2;
return str2;
}
public String pathToUri(String str) {
this.uriFor1 = "content://com.android.externalstorage.documents/tree/primary%3AAndroid/document/primary%3A";
if (str.endsWith("/")) {
str = str.substring(0, str.length() - 1);
}
if (str.contains("/sdcard/")) {
this.uriFor2 = str.replace("/sdcard/", "").replace("/", "%2F");
if (this.uriFor2.substring(this.uriFor2.length() - 1, this.uriFor2.length()).equals("/")) {
this.uriFor2 = this.uriFor1.substring(0, this.uriFor1.length() - 1);
}
} else if (str.contains("/storage/") && str.contains("/emulated/")) {
this.uriFor2 = str.replace("/storage/emulated/0/", "").replace("/", "%2F");
if (this.uriFor2.substring(this.uriFor2.length() - 1, this.uriFor2.length()).equals("/")) {
this.uriFor2 = this.uriFor1.substring(0, this.uriFor1.length() - 1);
}
}
String str2 = String.valueOf(this.uriFor1) + this.uriFor2;
this.uriFor1 = str2;
return str2;
}
private boolean copyAsset(String str, Uri uri) {
boolean z = false;
try {
ContentResolver contentResolver = getApplicationContext().getContentResolver();
InputStream open = getApplicationContext().getAssets().open(str);
OutputStream openOutputStream = contentResolver.openOutputStream(uri);
byte[] bArr = new byte[1024];
while (true) {
int read = open.read(bArr);
if (read > 0) {
openOutputStream.write(bArr, 0, read);
} else {
openOutputStream.flush();
openOutputStream.close();
open.close();
SketchwareUtil.showMessage(getApplicationContext(), " ✔️ ");
z = true;
return true;
}
}
} catch (Exception e) {
FileUtil.writeFile("/sdcard/log.txt", "\n3 " + e.toString());
SketchwareUtil.showMessage(getApplicationContext(), e.toString());
return z;
}
}
public void copyAssetFolder(String str, String str2) {
String str3;
int size;
DocumentFile fromTreeUri;
String[] strArr = null;
try {
strArr = getAssets().list(str);
} catch (IOException e) {
}
ArrayList arrayList = new ArrayList(Arrays.asList(strArr));
int i = 0;
int i2 = 0;
while (i < arrayList.size()) {
try {
Uri parse = Uri.parse(pathToRealUri(str2));
str3 = (String) arrayList.get(i2);
size = arrayList.size() - 1;
fromTreeUri = DocumentFile.fromTreeUri(getApplicationContext(), parse);
Uri parse2 = Uri.parse(String.valueOf(parse.toString()) + "%2" + str3);
DocumentFile.fromTreeUri(getApplicationContext(), parse2);
try {
DocumentsContract.deleteDocument(getApplicationContext().getContentResolver(), fromTreeUri.findFile(str3).getUri());
DocumentsContract.deleteDocument(getApplicationContext().getContentResolver(), parse2);
} catch (FileNotFoundException e2) {
} catch (Exception e3) {
}
} catch (Exception e4) {
}
if (copyAsset(String.valueOf(str) + "/" + str3, fromTreeUri.createFile("*/*", str3).getUri())) {
if (i2 >= size) {
SketchwareUtil.showMessage(getApplicationContext(), "️😎✔️");
}
i++;
i2++;
} else {
SketchwareUtil.showMessage(getApplicationContext(), "😓❌");
return;
}
}
}
public boolean copy(File file, String str, Context context) {
OutputStream outputStream;
?? fromTreeUri = DocumentFile.fromTreeUri(getApplicationContext(), Uri.parse(pathToRealUri(str)));
try {
DocumentsContract.deleteDocument(getApplicationContext().getContentResolver(), fromTreeUri.findFile(Uri.parse(file.getPath()).getLastPathSegment()).getUri());
} catch (Exception e) {
e.printStackTrace();
}
String mime = mime(file.toURI().toString());
?? name = file.getName();
DocumentFile createFile = fromTreeUri.createFile(mime, name);
try {
try {
name = new FileInputStream(file);
} catch (Throwable th) {
th = th;
}
try {
outputStream = context.getContentResolver().openOutputStream(createFile.getUri());
try {
byte[] bArr = new byte[16384];
while (true) {
int read = name.read(bArr);
if (read == -1) {
try {
name.close();
outputStream.close();
return true;
} catch (IOException e2) {
e2.printStackTrace();
return false;
}
}
outputStream.write(bArr, 0, read);
}
} catch (FileNotFoundException e3) {
e = e3;
e.printStackTrace();
try {
name.close();
outputStream.close();
return true;
} catch (IOException e4) {
e4.printStackTrace();
return false;
}
} catch (IOException e5) {
e = e5;
e.printStackTrace();
try {
name.close();
outputStream.close();
return true;
} catch (IOException e6) {
e6.printStackTrace();
return false;
}
}
} catch (FileNotFoundException e7) {
e = e7;
outputStream = null;
} catch (IOException e8) {
e = e8;
outputStream = null;
} catch (Throwable th2) {
th = th2;
fromTreeUri = 0;
try {
name.close();
fromTreeUri.close();
return true;
} catch (IOException e9) {
e9.printStackTrace();
throw th;
}
}
} catch (FileNotFoundException e10) {
e = e10;
outputStream = null;
name = 0;
} catch (IOException e11) {
e = e11;
outputStream = null;
name = 0;
} catch (Throwable th3) {
th = th3;
fromTreeUri = 0;
name = 0;
}
}
public String mime(String str) {
String fileExtensionFromUrl = MimeTypeMap.getFileExtensionFromUrl(str);
if (fileExtensionFromUrl == null) {
return "";
}
return MimeTypeMap.getSingleton().getMimeTypeFromExtension(fileExtensionFromUrl);
}
@Deprecated
public void showMessage(String str) {
Toast.makeText(getApplicationContext(), str, 0).show();
}
@Deprecated
public int getLocationX(View view) {
int[] iArr = new int[2];
view.getLocationInWindow(iArr);
return iArr[0];
}
@Deprecated
public int getLocationY(View view) {
int[] iArr = new int[2];
view.getLocationInWindow(iArr);
return iArr[1];
}
@Deprecated
public int getRandom(int i, int i2) {
return new Random().nextInt((i2 - i) + 1) + i;
}
@Deprecated
public ArrayList<Double> getCheckedItemPositionsToArray(ListView listView) {
ArrayList<Double> arrayList = new ArrayList<>();
SparseBooleanArray checkedItemPositions = listView.getCheckedItemPositions();
for (int i = 0; i < checkedItemPositions.size(); i++) {
if (checkedItemPositions.valueAt(i)) {
arrayList.add(Double.valueOf(checkedItemPositions.keyAt(i)));
}
}
return arrayList;
}
@Deprecated
public float getDip(int i) {
return TypedValue.applyDimension(1, i, getResources().getDisplayMetrics());
}
@Deprecated
public int getDisplayWidthPixels() {
return getResources().getDisplayMetrics().widthPixels;
}
@Deprecated
public int getDisplayHeightPixels() {
return getResources().getDisplayMetrics().heightPixels;
}
}