android turn wifi off (+highlight fix)
This commit is contained in:
parent
7ae3566ee1
commit
6012a5b421
@ -459,7 +459,7 @@ Java.perform(hookInputStream);
|
|||||||
```
|
```
|
||||||
|
|
||||||
#### iOS alert box
|
#### iOS alert box
|
||||||
```
|
```javascript
|
||||||
var UIAlertController = ObjC.classes.UIAlertController;
|
var UIAlertController = ObjC.classes.UIAlertController;
|
||||||
var UIAlertAction = ObjC.classes.UIAlertAction;
|
var UIAlertAction = ObjC.classes.UIAlertAction;
|
||||||
var UIApplication = ObjC.classes.UIApplication;
|
var UIApplication = ObjC.classes.UIApplication;
|
||||||
@ -475,14 +475,15 @@ ObjC.schedule(ObjC.mainQueue, function () {
|
|||||||
```
|
```
|
||||||
|
|
||||||
#### Get IMEI
|
#### Get IMEI
|
||||||
```
|
```javascript
|
||||||
function getIMEI(){
|
function getIMEI(){
|
||||||
console.log(Java.use("android.telephony.TelephonyManager").$new().getDeviceId());
|
console.log(Java.use("android.telephony.TelephonyManager").$new().getDeviceId());
|
||||||
}
|
}
|
||||||
Java.perform(getIMEI)
|
Java.perform(getIMEI)
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Turn Wifi OFF
|
#### Turn Wifi OFF
|
||||||
```
|
```javascript
|
||||||
var WifiManager = Java.use("android.net.wifi.WifiManager");
|
var WifiManager = Java.use("android.net.wifi.WifiManager");
|
||||||
Java.use("android.app.Activity").onCreate.overload('android.os.Bundle').implementation = function() {
|
Java.use("android.app.Activity").onCreate.overload('android.os.Bundle').implementation = function() {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user