Skip to content

Latest commit

 

History

History
57 lines (40 loc) · 880 Bytes

README.md

File metadata and controls

57 lines (40 loc) · 880 Bytes

DEPRECATED

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