so I am writing payload for jailbroken iOS and it should give you an ability to vibrate through MobileTerminal:
-(void)vibrate {
AudioServicesPlayAlertSound(kSystemSoundID_Vibrate);
}
But after I am running my CLI executable trying to vibrate my device I got no vibration.
I have jailbroken iPhone with iOS 13.2.2
For build I am using Theo with all Frameworks needed for my app.
I really can’t understand what I am doing wrong.
NOTE: Vibration turned on in Settings.
P.S: This project placed here: https://github.com/enty8080/ac1d
Create Pull Request if you want :)
For vibration, you need
But in your case, the issue may depend. Maybe you're missing the correct entitlements, maybe the device's vibration motor is dead, maybe vibrations are turned off in settings and you may not be aware (in accessibility).
The best way would be to add the line above in an empty Xcode project and see if it reacts. If it does work from Xcode, but not from Theos, you may be missing some headers, or entitlements from your CLI.