Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/6iovan/ActivityHijacker
DEPRECATED
https://github.com/6iovan/ActivityHijacker
Last synced: 3 months ago
JSON representation
DEPRECATED
- Host: GitHub
- URL: https://github.com/6iovan/ActivityHijacker
- Owner: 6iovan
- Created: 2017-08-11T02:17:42.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-12-24T09:54:25.000Z (almost 3 years ago)
- Last Synced: 2024-07-30T14:17:46.371Z (3 months ago)
- Language: Java
- Homepage:
- Size: 183 KB
- Stars: 18
- Watchers: 3
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-hacking-lists - 6iovan/ActivityHijacker - DEPRECATED (Java)
README
# 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
```java
Hijack.start(this, "com.tencent.mm");Hijack.start(this, "com.tencent.mm", true);
Hijack.stop(HijackingActivity.this);
```### Anti Hijack
In Application:
```java
@Override
public void onCreate() {
super.onCreate();
AntiHijack.init(this);
AntiHijack.setNotificationContent(HomeActivity.class);
}
```OR
In BaseActivity:
```java
@Override
protected void onResume() {
super.onResume();
AntiHijack.onResume();
}
``````java
@Override
protected void onPause() {
super.onPause();
AntiHijack.onPause(this);
}
```## Thanks
[AndroidProcesses](https://github.com/jaredrummler/AndroidProcesses)