在源代码目录下找不到android.Manifest.java?我可以在frameworks\base\core\res 中找到AndroidManifest.xml,我想知道android.Manifest.class 是如何在android.jar 中创建的。
问问题
2299 次
2 回答
3
我不知道任何android.Manifest.java
文件,但是在编译 AOSP 时会自动创建几个Manifest.java
文件。
也许这个就是你要找的那个?它似乎对应于 android.jar (API 16) 中的内容
Manifest.class
Manifest$permission.class
Manifest$permission_group.class
位于./out/target/common/R/android/Manifest.java
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package android;
public final class Manifest {
public static final class permission {
/** Allow an application to read and write the cache partition.
@hide
*/
public static final String ACCESS_CACHE_FILESYSTEM="android.permission.ACCESS_CACHE_FILESYSTEM";
/** Allows read/write access to the "properties" table in the checkin
database, to change values that get uploaded.
*/
public static final String ACCESS_CHECKIN_PROPERTIES="android.permission.ACCESS_CHECKIN_PROPERTIES";
/** Allows an application to access coarse (e.g., Cell-ID, WiFi) location
*/
public static final String ACCESS_COARSE_LOCATION="android.permission.ACCESS_COARSE_LOCATION";
/** Allows an application to access fine (e.g., GPS) location
*/
public static final String ACCESS_FINE_LOCATION="android.permission.ACCESS_FINE_LOCATION";
/** Allows an application to access extra location provider commands
*/
public static final String ACCESS_LOCATION_EXTRA_COMMANDS="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS";
/** Allows an application to create mock location providers for testing
*/
[由于超出帖子尺寸而导致的休息削减]
于 2012-09-21T03:38:11.630 回答
0
\android-sdk\sources\android-15
您可以在(或您正在构建的任何 API)中找到组成 android.jar 的 java 文件。如果该文件夹不存在,请从 Eclipse 中的 SDK 管理器安装源包。
于 2012-09-21T03:36:23.037 回答