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
|
||||
```
|
||||
```javascript
|
||||
var UIAlertController = ObjC.classes.UIAlertController;
|
||||
var UIAlertAction = ObjC.classes.UIAlertAction;
|
||||
var UIApplication = ObjC.classes.UIApplication;
|
||||
@ -475,14 +475,15 @@ ObjC.schedule(ObjC.mainQueue, function () {
|
||||
```
|
||||
|
||||
#### Get IMEI
|
||||
```
|
||||
```javascript
|
||||
function getIMEI(){
|
||||
console.log(Java.use("android.telephony.TelephonyManager").$new().getDeviceId());
|
||||
}
|
||||
Java.perform(getIMEI)
|
||||
```
|
||||
|
||||
#### Turn Wifi OFF
|
||||
```
|
||||
```javascript
|
||||
var WifiManager = Java.use("android.net.wifi.WifiManager");
|
||||
Java.use("android.app.Activity").onCreate.overload('android.os.Bundle').implementation = function() {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user