Skip to content

android switch airplane mode by reflection, need shizuku permission.

Notifications You must be signed in to change notification settings

lalakii/android_airplane_mode

Repository files navigation

Android Airplane Mode

API: 27 or Or older. (shields.io)

  • Requires shizuku permission:Get Shizuku App
  • TargetSdk <= 27 (Android 8.1)

README.en

Implement flight mode switch through reflection, setAirplaneMode method has been removed from the source code since Android 8.1, the targetSdk version at compile time must not be too high, or else you can't find the “setAirplaneMode” method through the reflection class!

README.zh_CN

通过反射实现飞行模式开关,setAirplaneMode方法自Android 8.1之后��源码中已移除,编译时的targetSdk版本不能太高,否则无法通过反射类找到"setAirplaneMode"方法!

Demo

demo

About

Old version: https://github.com/iamverycute/TAM