It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center




8年前关闭。




我在源代码目录中找不到android.Manifest.java?我可以在frameworks\base\core\res 中找到AndroidManifest.xml,我想知道android.Manifest.class 是如何在android.jar 中创建的。

最佳答案

我不知道有任何 android.Manifest.java 文件,但是在编译 AOSP 时会自动创建几个 Manifest.java 文件。

也许这就是你要找的人?它似乎对应于 android.jar (API 16) 中的内容
Manifest.classManifest$permission.classManifest$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
     */

[由于超出职位大小而导致的休息削减]

关于android - android.Manifest.class 是如何创建的?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/12523542/

10-13 04:57