由网友(别捏姐的脸)分享简介:有没有一种方法来禁用或在Android 4.2能战斗模式?我用这个code表示只为previous的Android版本的Works:android.provider.Settings.System.putInt(c.getContentResolver(),android.provider.Settings.Sys...
有没有一种方法来禁用或在Android 4.2能战斗模式?
我用这个code表示只为previous的Android版本的Works:
android.provider.Settings.System.putInt(
c.getContentResolver(),
android.provider.Settings.System.AIRPLANE_MODE_ON,启用? 0:1
);
解决方案
目前存在于根设备一个简单的解决方法。
要启用飞行模式下root的shell命令可以使用:
设置,把全球airplane_mode_on 1
AM广播-a android.intent.action.AIRPLANE_MODE --ez状态真
要关闭飞行模式,这些root的shell命令可以用来:
设置,把全球airplane_mode_on 0
AM广播-a android.intent.action.AIRPLANE_MODE --ez状态假
信息取自这里
免责声明:原样没有任何形式的担保这一信息提供
Is there a way to disable or enable Fight Mode on Android 4.2?
I use this code that works only for previous Android versions:
android.provider.Settings.System.putInt(
c.getContentResolver(),
android.provider.Settings.System.AIRPLANE_MODE_ON, enable ? 0 : 1
);
解决方案
There exist a simple workaround on rooted devices.
To enable Airplane Mode the following root shell commands can be used:
settings put global airplane_mode_on 1
am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true
To disable Airplane Mode these root shell commands can be used:
settings put global airplane_mode_on 0
am broadcast -a android.intent.action.AIRPLANE_MODE --ez state false
Info taken from here
Disclaimer: This info is provided "as-is" without any form of warranty.
相关推荐
最新文章