https://kotlinlang.org logo
Title
u

user

07/07/2022, 6:11 PM
enable/disable airplane mode using adb command on kotlin language adb shell settings put global airplane_mode_on 1 adb shell su -c am broadcast -a android.intent.action.AIRPLANE_MODE It works if done through the adb program. But if you try to execute in your program, nothing happens. Root are present on the phone, also when the function is executed, a toast pops up stating that superuser rights have been granted. Runtime.getRuntime().exec("su -c 'settings put global airplane_mode_on 1'"); Runtime.getRuntime().exec("su -c 'am broadcast -a...