How is android.Manifest.class created?

参考自How is android.Manifest.class created?


感谢 stackoverflow 。


when compiling AOSP there is a couple of Manifest.java files created automatically.

Manifest.class
Manifest$permission.class
Manifest$permission_group.class

Located at ./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 
     */

你可能感兴趣的:(Android,Java)