Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function to turn airplane mode on/off #28

Open
baltpeter opened this issue Feb 28, 2023 · 1 comment
Open

Function to turn airplane mode on/off #28

baltpeter opened this issue Feb 28, 2023 · 1 comment
Labels
feature New feature or request good first issue Good for newcomers help wanted Extra attention is needed idea

Comments

@baltpeter
Copy link
Member

Not sure whether we actually want this but since I found this Frida function to set the airplane mode on Android, I wanted to document it:

function setAirplaneMode(mode) {
    var p = ObjC.classes.RadiosPreferences.alloc().init();
    p.setAirplaneMode_(mode)
    p.synchronize()
    p.release();
}

mode can be true or false.

@baltpeter baltpeter added feature New feature or request idea labels Feb 28, 2023
@baltpeter
Copy link
Member Author

To toggle just the WiFi connection on iOS (same source):

function setWifiMode(mode) {
    var wfc = ObjC.classes.WFClient.sharedInstance();
    wfc.setPowered_(mode);
}

@baltpeter baltpeter added good first issue Good for newcomers help wanted Extra attention is needed labels Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request good first issue Good for newcomers help wanted Extra attention is needed idea
Projects
None yet
Development

No branches or pull requests

1 participant