正在查看: Mabilis Cash v1.19.4 应用的 MediaProjectionService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Mabilis Cash v1.19.4 应用的 MediaProjectionService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.face.csg.lv5.sdk.screen.service;
import android.app.Activity;
import android.app.Service;
import android.content.Intent;
import android.hardware.display.VirtualDisplay;
import android.media.MediaRecorder;
import android.media.projection.MediaProjection;
import android.media.projection.MediaProjectionManager;
import android.os.Binder;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.IBinder;
import android.util.DisplayMetrics;
import androidx.annotation.RequiresApi;
import com.megvii.lv5.z3;
import java.io.File;
import java.lang.ref.WeakReference;
public class MediaProjectionService extends Service {
public static final int f1996p = 0;
public DisplayMetrics f1997a;
public boolean f1998b;
public WeakReference<Activity> f2000d;
public MediaProjectionManager f2001e;
public VirtualDisplay f2003g;
public MediaRecorder f2004h;
public File f2005i;
public boolean f2006j;
public z3 f2007k;
public VirtualDisplay.Callback f2008l;
public MediaProjection.Callback f2009m;
public HandlerThread f2010n;
public Handler f2011o;
public boolean f1999c = false;
public MediaProjection f2002f = null;
public static class a extends Binder {
public WeakReference<MediaProjectionService> f2012a;
public a(MediaProjectionService mediaProjectionService) {
this.f2012a = new WeakReference<>(mediaProjectionService);
}
}
public void a() {
throw new UnsupportedOperationException("Method not decompiled: com.face.csg.lv5.sdk.screen.service.MediaProjectionService.a():void");
}
@Override
public IBinder onBind(Intent intent) {
return new a(this);
}
@Override
public void onCreate() {
super.onCreate();
HandlerThread handlerThread = new HandlerThread("MediaProjectionService");
this.f2010n = handlerThread;
handlerThread.start();
this.f2011o = new Handler(this.f2010n.getLooper());
}
@Override
@RequiresApi(api = 21)
public void onDestroy() {
Handler handler = this.f2011o;
if (handler != null) {
handler.removeCallbacksAndMessages(null);
this.f2011o = null;
}
HandlerThread handlerThread = this.f2010n;
if (handlerThread != null) {
handlerThread.quitSafely();
this.f2010n = null;
}
a();
VirtualDisplay virtualDisplay = this.f2003g;
if (virtualDisplay != null) {
virtualDisplay.release();
this.f2003g = null;
}
if (this.f2008l != null) {
this.f2008l = null;
}
MediaProjection mediaProjection = this.f2002f;
if (mediaProjection != null && !this.f1999c) {
MediaProjection.Callback callback = this.f2009m;
if (callback != null) {
mediaProjection.unregisterCallback(callback);
this.f2009m = null;
}
this.f2002f.stop();
this.f2002f = null;
this.f1999c = false;
}
if (this.f2001e != null) {
this.f2001e = null;
}
stopForeground(true);
super.onDestroy();
}
}