GitHub - W3lk1n/ActivityHijacker: Hijack and AntiHijack for Android activity.

WePython 8 Days+

git clone https://github.com/W3lk1n/ActivityHijacker

ActivityHijacker

Hijack and AntiHijack for Android activity.

Not work on Android7.0 or later. Because you have to use UsageStatsManager or have root access on Android7.0, So Android7.0 is safer than ever!

Usage

Hijack

Hijack.start(this, "com.tencent.mm");

Hijack.start(this, "com.tencent.mm", true);

Hijack.stop(HijackingActivity.this);

Anti Hijack

In Application:

@Override
public void onCreate() {
    super.onCreate();
    AntiHijack.init(this);
    AntiHijack.setNotificationContent(HomeActivity.class);
}

OR

In BaseActivity:

@Override
protected void onResume() {
    super.onResume();
    AntiHijack.onResume();
}
@Override
protected void onPause() {
    super.onPause();
    AntiHijack.onPause(this);
}

Thanks

AndroidProcesses


Previous : GitHub - W3lk1n/Mind-Map: 各种安全相关思维导图整理收集
Next : GitHub - thatjohn01/720604830: 甩我!你死定了_PDF下载_(韩)卢倚焕/王文姬