Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Android Airplane Mode

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

  • 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!

2026-02-10: Added a new method setAirplaneModeWithShell, which must be called on a background thread and provides compatibility with higher target SDK versions.

README.zh_CN

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

2026-02-10: 新增了一个"setAirplaneModeWithShell"方法,必须在线程中调用,兼容更高版本的targetSdk。

Demo

demo

About

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

About

android switch airplane mode by reflection, need shizuku permission.

Topics

Resources

Stars

9 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages