- Requires shizuku permission:Get Shizuku App
- TargetSdk <= 27 (Android 8.1)
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!
2026-02-10: Added a new method setAirplaneModeWithShell, which must be called on a background thread and provides compatibility with higher target SDK versions.
通过反射实现飞行模式开关,setAirplaneMode方法自Android 8.1之后的源码中已移除,编译时的targetSdk版本不能太高,否则无法通过反射类找到"setAirplaneMode"方法!
2026-02-10: 新增了一个"setAirplaneModeWithShell"方法,必须在线程中调用,兼容更高版本的targetSdk。
Old version: https://github.com/iamverycute/TAM
