ソース コード ディレクトリに android.Manifest.java が見つかりませんか? Frameworks\base\core\res で AndroidManifest.xml を見つけることができます。android.jar で android.Manifest.class がどのように作成されているか知りたいです。
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.jar を構成する Java ファイル\android-sdk\sources\android-15
(またはビルド対象の API) を見つけることができます。フォルダーがない場合は、Eclipse の SDK マネージャーからソース パッケージをインストールします。
于 2012-09-21T03:36:23.037 に答える