Velasquez_V4 v3.0.0版本的 MD5 值为:f925d3b85f8d5849bcc8f37caec6acf7
以下内容为反编译后的 ActivityC0086.java 源代码,内容仅作参考
package com.applisto.appcloner.classes;
import android.app.Activity;
import android.content.ContentUris;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.Matrix;
import android.media.ExifInterface;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
import android.provider.DocumentsContract;
import android.provider.MediaStore;
import android.util.Log;
import android.widget.Toast;
import java.io.IOException;
import java.util.Arrays;
import obfuse4.obfuse.NPStringFog4;
public class ActivityC0086 extends Activity {
private static final String f243 = "android.permission.READ_EXTERNAL_STORAGE";
private static final int f244 = 1;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (Build.VERSION.SDK_INT >= 23) {
String decode = NPStringFog4.decode("050A51145D5C504B4255425B584111590E574A367472206D746F6C746477767E3B37612960747320");
if (checkSelfPermission(decode) != 0) {
requestPermissions(new String[]{decode}, 0);
return;
}
}
m405();
}
private void m405() {
Intent intent = new Intent(NPStringFog4.decode("050A51145D5C504B5B5E44535F464C51024D0D0B5F1D347B727C"));
intent.setType(NPStringFog4.decode("0D095401571A1E"));
startActivityForResult(intent, 1);
}
@Override
public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
String str;
str = FakeCamera.f83;
Log.i(str, NPStringFog4.decode("0B0A670343405116466055445C5B114308560A17635617475D430311465C455F0D17460F5D5B475F12") + Arrays.toString(permissions) + NPStringFog4.decode("48445214535B40375743455A45415810") + Arrays.toString(grantResults));
if (permissions.length == 1 && grantResults.length == 1) {
if (NPStringFog4.decode("050A51145D5C504B4255425B584111590E574A367472206D746F6C746477767E3B37612960747320").equals(permissions[0]) && grantResults[0] == 0) {
m405();
return;
}
}
Toast.makeText(this, NPStringFog4.decode("3401470B5B46470C5D5E10585E46425713580A1054574A"), 1).show();
finish();
}
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
String str;
String str2;
Context context;
String str3;
str = FakeCamera.f83;
Log.i(str, NPStringFog4.decode("0B0A7405465C420C4649625342470E445A1916014046014145745755530317") + requestCode + NPStringFog4.decode("4844470341405811715F54530B12") + resultCode);
if (requestCode == 1) {
Bitmap unused = FakeCamera.f84 = null;
byte[] unused2 = FakeCamera.f87 = null;
if (resultCode == -1) {
try {
context = FakeCamera.f85;
String path = m398(context, data.getData());
str3 = FakeCamera.f83;
Log.i(str3, NPStringFog4.decode("0B0A7405465C420C4649625342470E445A191405455B5E12") + path);
new C0087(this, path).start();
} catch (Throwable t) {
str2 = FakeCamera.f83;
Log.w(str2, t);
Bitmap unused3 = FakeCamera.f84 = null;
byte[] unused4 = FakeCamera.f87 = null;
}
} else {
FakeCamera.m278();
}
finish();
}
}
private static String m398(Context context, Uri uri) {
if (Build.VERSION.SDK_INT >= 19 && DocumentsContract.isDocumentUri(context, uri)) {
boolean m400 = m400(uri);
String decode = NPStringFog4.decode("5E");
if (m400) {
String docId = DocumentsContract.getDocumentId(uri);
String[] split = docId.split(decode);
if (NPStringFog4.decode("14165C0B53474D").equalsIgnoreCase(split[0])) {
return Environment.getExternalStorageDirectory() + NPStringFog4.decode("4B") + split[1];
}
} else if (m399(uri)) {
String id = DocumentsContract.getDocumentId(uri);
Uri contentUri = ContentUris.withAppendedId(Uri.parse(NPStringFog4.decode("070B5B12575B405F1D1F5459465C0E5F005D174B4146065E58546755594E595E0B055115")), Long.valueOf(id).longValue());
return m396(context, contentUri, null, null);
} else if (m403(uri)) {
String docId2 = DocumentsContract.getDocumentId(uri);
String[] split2 = docId2.split(decode);
String type = split2[0];
Uri contentUri2 = null;
if (NPStringFog4.decode("0D09540157").equals(type)) {
contentUri2 = MediaStore.Images.Media.EXTERNAL_CONTENT_URI;
} else if (NPStringFog4.decode("120D51035D").equals(type)) {
contentUri2 = MediaStore.Video.Media.EXTERNAL_CONTENT_URI;
} else if (NPStringFog4.decode("0511510F5D").equals(type)) {
contentUri2 = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;
}
NPStringFog4.decode("3B0D515B0D");
String[] selectionArgs = {split2[1]};
return m396(context, contentUri2, NPStringFog4.decode("3B0D515B0D"), selectionArgs);
}
} else {
String docId3 = uri.getScheme();
if (NPStringFog4.decode("070B5B12575B40").equalsIgnoreCase(docId3)) {
if (m401(uri)) {
return uri.getLastPathSegment();
}
return m396(context, uri, null, null);
} else if (NPStringFog4.decode("020D5903").equalsIgnoreCase(uri.getScheme())) {
return uri.getPath();
}
}
return null;
}
private static String m396(Context context, Uri uri, String selection, String[] selectionArgs) {
Cursor cursor = null;
NPStringFog4.decode("3B00541253");
String decode = NPStringFog4.decode("3B00541253");
String[] projection = {decode};
try {
cursor = context.getContentResolver().query(uri, projection, selection, selectionArgs, null);
if (cursor != null && cursor.moveToFirst()) {
int index = cursor.getColumnIndexOrThrow(decode);
return cursor.getString(index);
} else if (cursor != null) {
cursor.close();
return null;
} else {
return null;
}
} finally {
if (cursor != null) {
cursor.close();
}
}
}
private static boolean m400(Uri uri) {
return NPStringFog4.decode("070B5848535B50175D595418544A16551357050842470B4050505D1F5256544709015B1241").equals(uri.getAuthority());
}
private static boolean m399(Uri uri) {
return NPStringFog4.decode("070B5848535B50175D59541841400D46085D0116421D005D4659545E575D441C000B56135F505A1141").equals(uri.getAuthority());
}
private static boolean m403(Uri uri) {
return NPStringFog4.decode("070B5848535B50175D59541841400D46085D0116421D0957555E591F5256544709015B1241").equals(uri.getAuthority());
}
private static boolean m401(Uri uri) {
return NPStringFog4.decode("070B5848555A5B025E551E575F56105F085D4A054143171C415F5745594A19510B0A41035C41").equals(uri.getAuthority());
}
public static boolean m402(byte[] bytes) {
return bytes[0] == -1 && bytes[1] == -40 && bytes[2] == -1;
}
public static Bitmap m404(Bitmap bitmap, String path) {
String str;
int orientation = m397(path);
str = FakeCamera.f83;
Log.i(str, NPStringFog4.decode("0A0B470B53595D1F57795D5756572D42085C0A1050470D5D5F0C185E4450525C1005410F5D5B0E45") + orientation);
if (orientation != 0) {
Matrix matrix = new Matrix();
matrix.postRotate(orientation);
try {
return Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), matrix, true);
} finally {
bitmap.recycle();
System.gc();
}
}
return bitmap;
}
public static int m397(String path) {
String str;
try {
int attributeInt = new ExifInterface(path).getAttributeInt(NPStringFog4.decode("2B165C035C4155115B5F5E"), 1);
if (attributeInt != 3) {
if (attributeInt != 6) {
if (attributeInt != 8) {
return 0;
}
return 270;
}
return 90;
}
return 180;
} catch (IOException e) {
str = FakeCamera.f83;
Log.w(str, e);
return 0;
}
}
}