正在查看: 迅 唔 v1.3.9 应用的 PermissionRequestTransparentActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 迅 唔 v1.3.9 应用的 PermissionRequestTransparentActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.iszzlzbet.xghj;
import android.app.Activity;
import android.content.Intent;
import android.media.projection.MediaProjectionManager;
import android.os.Build;
import android.os.Bundle;
import android.util.Log;
import x6.k;
public final class PermissionRequestTransparentActivity extends Activity {
public final String f1702h = "permissionRequest";
public final void a(Intent intent) {
Log.d(this.f1702h, "Launch MainService");
Intent intent2 = new Intent(this, (Class<?>) MainService.class);
intent2.setAction("INIT_MEDIA_PROJECTION_AND_SERVICE");
intent2.putExtra("MEDIA_PROJECTION_RES_INTENT", intent);
if (Build.VERSION.SDK_INT >= 26) {
startForegroundService(intent2);
} else {
startService(intent2);
}
}
@Override
public void onActivityResult(int i8, int i9, Intent intent) {
super.onActivityResult(i8, i9, intent);
if (i8 == 201) {
if (i9 != -1 || intent == null) {
setResult(-100);
} else {
a(intent);
}
}
finish();
}
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
Log.d(this.f1702h, "onCreate PermissionRequestTransparentActivity: intent.action: " + getIntent().getAction());
String action = getIntent().getAction();
if (action == null || action.hashCode() != -226655878 || !action.equals("REQUEST_MEDIA_PROJECTION")) {
finish();
return;
}
Object systemService = getSystemService("media_projection");
k.c(systemService, "null cannot be cast to non-null type android.media.projection.MediaProjectionManager");
Intent createScreenCaptureIntent = ((MediaProjectionManager) systemService).createScreenCaptureIntent();
k.d(createScreenCaptureIntent, "createScreenCaptureIntent(...)");
startActivityForResult(createScreenCaptureIntent, 201);
}
}