1 android 5.0, encrypt phone,必须电量达到80%以上.
packages/apps/Settings
./src/com/android/settings/CryptKeeperSettings.java
// Minimum battery charge level (in percent) to launch encryption. If the battery charge is
// lower than this, encryption should not be activated.
private static final int MIN_BATTERY_LEVEL = 1;
2
setMobileDataEnabled() 4.4和之前版本是可用的,android 5.0之后,
所以不能通过代码反射,只能手动去关闭mobile data(uiautormator也可以呀)
4.4 code:
5.1 code:
http://stackoverflow.com/questions/26539445/the-setmobiledataenabled-method-is-no-longer-callable-as-of-android-l-and-later
3 Anroid 升级到M之后,很多代码发生变化。有些代码只能在M上使用,会提示 Call requires API level 23 (current min is 。。) 。这时候需要区分注明这个只能在M上用,可以加:
@TargetApi(Build.VERSION_CODE.M)
4
- 大小: 102.7 KB
- 大小: 114.1 KB
分享到:
相关推荐
android source code -Bluetooth: 对于android 源码的分析很有用,此处是Bluetooth的android 源码。
android source code -camera: 对于android 源码的分析很有用,此处是camera的android 源码。
An android ebook reader source code.
android ophone source code 4
get android source code
Android Framework Source Code,下载并解压后,将解压出的整个文件夹复制或者移动到.../android-sdk-windows/sources文件夹下,然后重新打开SDK Manager.exe。
download android source code
用于android source code下载
android launcher source code
最新android 4.2源码,压缩后18M。下载之后,使用解压到*\adt-bundle-windows-x86_64\sdk\ 目录下,然后就可以...若仍不能查看,点击出现的attach source按钮,选中解压的source文件夹下的android目录,就可以看了。
Beginning Android 2 Source for eclipse 3.5 (android-sdk-windows-2.0.1)
Beginning Android 4 Source for eclipse 3.7 (android-sdk-windows-4.0.3)
This is android source for the source of android code.
Android 13 android T 原生Settings 源码 source code 基于qcom release
Android source code management An introduction to Git, Repo, and Gerrit for Android developers
下载后解压到sdk下sources文件夹中,再在eclipse中将其关联起来,就可以很方便地查看android source code了。 针对API20的。
这是我从google上下载的android4.1 的SDK源码,可放在SDK\platforms\android-*的目录下,即可在eclipse上查看SDK的源码。
Source code for Beginning Android Application Development
android source code -email: 对于android 源码的分析很有用,此处是email的android 源码。
Android_GPSDriverLibrary_SourceCode