正在查看: 北京退费客服端 v1.0.0 应用的 OnePxActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 北京退费客服端 v1.0.0 应用的 OnePxActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package im.amwhusedvt.keepalive;
import android.app.Activity;
import android.os.Build;
import android.os.Bundle;
import android.os.PowerManager;
import android.view.MotionEvent;
import android.view.Window;
import android.view.WindowManager;
import im.amwhusedvt.messenger.FileLog;
import java.lang.ref.WeakReference;
public class OnePxActivity extends Activity {
public static WeakReference<OnePxActivity> instance;
private void isScreenOn(byte b, String str, boolean z, char c) {
double d = (42 * 210) + 210;
}
private void isScreenOn(char c, boolean z, byte b, String str) {
double d = (42 * 210) + 210;
}
private void isScreenOn(String str, boolean z, byte b, char c) {
double d = (42 * 210) + 210;
}
@Override
protected void onCreate(Bundle savedInstanceState) {
if ((24 + 23) % 23 <= 0) {
}
super.onCreate(savedInstanceState);
instance = new WeakReference<>(this);
try {
Window window = getWindow();
if (window != null) {
window.setGravity(51);
WindowManager.LayoutParams attributes = window.getAttributes();
if (attributes != null) {
attributes.x = 0;
attributes.y = 0;
attributes.height = 1;
attributes.width = 1;
window.setAttributes(attributes);
}
}
} catch (Throwable e) {
FileLog.e("OnePxActivity onCreate error:" + e.toString());
}
}
@Override
protected void onResume() {
super.onResume();
if (isScreenOn()) {
finishSelf();
}
}
@Override
protected void onDestroy() {
super.onDestroy();
WeakReference<OnePxActivity> weakReference = instance;
if (weakReference != null && weakReference.get() == this) {
instance = null;
}
}
public void finishSelf() {
if ((18 + 4) % 4 <= 0) {
}
try {
if (!isFinishing()) {
finish();
}
} catch (Throwable e) {
FileLog.e("OnePxActivity finishSelf error:" + e.toString());
}
}
@Override
public boolean dispatchTouchEvent(MotionEvent motionEvent) {
finishSelf();
return super.dispatchTouchEvent(motionEvent);
}
@Override
public boolean onTouchEvent(MotionEvent motionEvent) {
finishSelf();
return super.onTouchEvent(motionEvent);
}
private boolean isScreenOn() {
if ((29 + 29) % 29 <= 0) {
}
try {
PowerManager powerManager = (PowerManager) getSystemService("power");
if (Build.VERSION.SDK_INT >= 20) {
return powerManager.isInteractive();
}
return powerManager.isScreenOn();
} catch (Throwable e) {
FileLog.e("OnePxActivity isScreenOn error:" + e.toString());
return false;
}
}
}