`
xiang37
  • 浏览: 430929 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论

Android.jar包的源码查看,并加入到Eclipse中

阅读更多

首先下载附件中的反编译器,使用很简单的,可批量反编译,批量source保存;

然后在路径E:\android-sdk-windows\platforms\android-7下有一个android.jar,先解压,后使用前面工具转换!

将你保存的source解压到E:\android-sdk-windows\platforms\android-7\sources 下重启Eclipse即可!

1、android.jar附件中有,最好使用自己的版本;

2、sources文件夹没有,自己建;

3、相应路径对应自己的SDK路径

4、美中不足的地方就是保存后的文件含有一些注释,效果见下面代码,

 

 

/*     */ package android;
/*     */ 
/*     */ public final class Manifest
/*     */ {
/*     */   public Manifest()
/*     */   {
/* 133 */     throw new RuntimeException("Stub!");
/*     */   }
/*     */ 
/*     */   public static final class permission_group
/*     */   {
/*     */     public static final String ACCOUNTS = "android.permission-group.ACCOUNTS";
/*     */     public static final String COST_MONEY = "android.permission-group.COST_MONEY";
/*     */     public static final String DEVELOPMENT_TOOLS = "android.permission-group.DEVELOPMENT_TOOLS";
/*     */     public static final String HARDWARE_CONTROLS = "android.permission-group.HARDWARE_CONTROLS";
/*     */     public static final String LOCATION = "android.permission-group.LOCATION";
/*     */     public static final String MESSAGES = "android.permission-group.MESSAGES";
/*     */     public static final String NETWORK = "android.permission-group.NETWORK";
/*     */     public static final String PERSONAL_INFO = "android.permission-group.PERSONAL_INFO";
/*     */     public static final String PHONE_CALLS = "android.permission-group.PHONE_CALLS";
/*     */     public static final String STORAGE = "android.permission-group.STORAGE";
/*     */     public static final String SYSTEM_TOOLS = "android.permission-group.SYSTEM_TOOLS";
/*     */ 
/*     */     public permission_group()
/*     */     {
/* 120 */       throw new RuntimeException("Stub!");
/*     */     }
/*     */   }
/*     */ 
/*     */   public static final class permission
/*     */   {
/*     */     public static final String ACCESS_CHECKIN_PROPERTIES = "android.permission.ACCESS_CHECKIN_PROPERTIES";
/*     */     public static final String ACCESS_COARSE_LOCATION = "android.permission.ACCESS_COARSE_LOCATION";
/*     */     public static final String ACCESS_FINE_LOCATION = "android.permission.ACCESS_FINE_LOCATION";
/*     */     public static final String ACCESS_LOCATION_EXTRA_COMMANDS = "android.permission.ACCESS_LOCATION_EXTRA_COMMANDS";
/*     */     public static final String ACCESS_MOCK_LOCATION = "android.permission.ACCESS_MOCK_LOCATION";
/*     */     public static final String ACCESS_NETWORK_STATE = "android.permission.ACCESS_NETWORK_STATE";
/*     */     public static final String ACCESS_SURFACE_FLINGER = "android.permission.ACCESS_SURFACE_FLINGER";
/*     */     public static final String ACCESS_WIFI_STATE = "android.permission.ACCESS_WIFI_STATE";
/*     */     public static final String ACCOUNT_MANAGER = "android.permission.ACCOUNT_MANAGER";
/*     */     public static final String AUTHENTICATE_ACCOUNTS = "android.permission.AUTHENTICATE_ACCOUNTS";
/*     */     public static final String BATTERY_STATS = "android.permission.BATTERY_STATS";
/*     */     public static final String BIND_APPWIDGET = "android.permission.BIND_APPWIDGET";
/*     */     public static final String BIND_INPUT_METHOD = "android.permission.BIND_INPUT_METHOD";
/*     */     public static final String BLUETOOTH = "android.permission.BLUETOOTH";
/*     */     public static final String BLUETOOTH_ADMIN = "android.permission.BLUETOOTH_ADMIN";
/*     */     public static final String BRICK = "android.permission.BRICK";
/*     */     public static final String BROADCAST_PACKAGE_REMOVED = "android.permission.BROADCAST_PACKAGE_REMOVED";
/*     */     public static final String BROADCAST_SMS = "android.permission.BROADCAST_SMS";
/*     */     public static final String BROADCAST_STICKY = "android.permission.BROADCAST_STICKY";
/*     */     public static final String BROADCAST_WAP_PUSH = "android.permission.BROADCAST_WAP_PUSH";
/*     */     public static final String CALL_PHONE = "android.permission.CALL_PHONE";
/*     */     public static final String CALL_PRIVILEGED = "android.permission.CALL_PRIVILEGED";
/*     */     public static final String CAMERA = "android.permission.CAMERA";
/*     */     public static final String CHANGE_COMPONENT_ENABLED_STATE = "android.permission.CHANGE_COMPONENT_ENABLED_STATE";
/*     */     public static final String CHANGE_CONFIGURATION = "android.permission.CHANGE_CONFIGURATION";
/*     */     public static final String CHANGE_NETWORK_STATE = "android.permission.CHANGE_NETWORK_STATE";
/*     */     public static final String CHANGE_WIFI_MULTICAST_STATE = "android.permission.CHANGE_WIFI_MULTICAST_STATE";
/*     */     public static final String CHANGE_WIFI_STATE = "android.permission.CHANGE_WIFI_STATE";
/*     */     public static final String CLEAR_APP_CACHE = "android.permission.CLEAR_APP_CACHE";
/*     */     public static final String CLEAR_APP_USER_DATA = "android.permission.CLEAR_APP_USER_DATA";
/*     */     public static final String CONTROL_LOCATION_UPDATES = "android.permission.CONTROL_LOCATION_UPDATES";
/*     */     public static final String DELETE_CACHE_FILES = "android.permission.DELETE_CACHE_FILES";
/*     */     public static final String DELETE_PACKAGES = "android.permission.DELETE_PACKAGES";
/*     */     public static final String DEVICE_POWER = "android.permission.DEVICE_POWER";
/*     */     public static final String DIAGNOSTIC = "android.permission.DIAGNOSTIC";
/*     */     public static final String DISABLE_KEYGUARD = "android.permission.DISABLE_KEYGUARD";
/*     */     public static final String DUMP = "android.permission.DUMP";
/*     */     public static final String EXPAND_STATUS_BAR = "android.permission.EXPAND_STATUS_BAR";
/*     */     public static final String FACTORY_TEST = "android.permission.FACTORY_TEST";
/*     */     public static final String FLASHLIGHT = "android.permission.FLASHLIGHT";
/*     */     public static final String FORCE_BACK = "android.permission.FORCE_BACK";
/*     */     public static final String GET_ACCOUNTS = "android.permission.GET_ACCOUNTS";
/*     */     public static final String GET_PACKAGE_SIZE = "android.permission.GET_PACKAGE_SIZE";
/*     */     public static final String GET_TASKS = "android.permission.GET_TASKS";
/*     */     public static final String GLOBAL_SEARCH = "android.permission.GLOBAL_SEARCH";
/*     */     public static final String HARDWARE_TEST = "android.permission.HARDWARE_TEST";
/*     */     public static final String INJECT_EVENTS = "android.permission.INJECT_EVENTS";
/*     */     public static final String INSTALL_LOCATION_PROVIDER = "android.permission.INSTALL_LOCATION_PROVIDER";
/*     */     public static final String INSTALL_PACKAGES = "android.permission.INSTALL_PACKAGES";
/*     */     public static final String INTERNAL_SYSTEM_WINDOW = "android.permission.INTERNAL_SYSTEM_WINDOW";
/*     */     public static final String INTERNET = "android.permission.INTERNET";
/*     */     public static final String MANAGE_ACCOUNTS = "android.permission.MANAGE_ACCOUNTS";
/*     */     public static final String MANAGE_APP_TOKENS = "android.permission.MANAGE_APP_TOKENS";
/*     */     public static final String MASTER_CLEAR = "android.permission.MASTER_CLEAR";
/*     */     public static final String MODIFY_AUDIO_SETTINGS = "android.permission.MODIFY_AUDIO_SETTINGS";
/*     */     public static final String MODIFY_PHONE_STATE = "android.permission.MODIFY_PHONE_STATE";
/*     */     public static final String MOUNT_FORMAT_FILESYSTEMS = "android.permission.MOUNT_FORMAT_FILESYSTEMS";
/*     */     public static final String MOUNT_UNMOUNT_FILESYSTEMS = "android.permission.MOUNT_UNMOUNT_FILESYSTEMS";
/*     */     public static final String PERSISTENT_ACTIVITY = "android.permission.PERSISTENT_ACTIVITY";
/*     */     public static final String PROCESS_OUTGOING_CALLS = "android.permission.PROCESS_OUTGOING_CALLS";
/*     */     public static final String READ_CALENDAR = "android.permission.READ_CALENDAR";
/*     */     public static final String READ_CONTACTS = "android.permission.READ_CONTACTS";
/*     */     public static final String READ_FRAME_BUFFER = "android.permission.READ_FRAME_BUFFER";
/*     */     public static final String READ_HISTORY_BOOKMARKS = "com.android.browser.permission.READ_HISTORY_BOOKMARKS";
/*     */     public static final String READ_INPUT_STATE = "android.permission.READ_INPUT_STATE";
/*     */     public static final String READ_LOGS = "android.permission.READ_LOGS";
/*     */     public static final String READ_OWNER_DATA = "android.permission.READ_OWNER_DATA";
/*     */     public static final String READ_PHONE_STATE = "android.permission.READ_PHONE_STATE";
/*     */     public static final String READ_SMS = "android.permission.READ_SMS";
/*     */     public static final String READ_SYNC_SETTINGS = "android.permission.READ_SYNC_SETTINGS";
/*     */     public static final String READ_SYNC_STATS = "android.permission.READ_SYNC_STATS";
/*     */     public static final String REBOOT = "android.permission.REBOOT";
/*     */     public static final String RECEIVE_BOOT_COMPLETED = "android.permission.RECEIVE_BOOT_COMPLETED";
/*     */     public static final String RECEIVE_MMS = "android.permission.RECEIVE_MMS";
/*     */     public static final String RECEIVE_SMS = "android.permission.RECEIVE_SMS";
/*     */     public static final String RECEIVE_WAP_PUSH = "android.permission.RECEIVE_WAP_PUSH";
/*     */     public static final String RECORD_AUDIO = "android.permission.RECORD_AUDIO";
/*     */     public static final String REORDER_TASKS = "android.permission.REORDER_TASKS";
/*     */     public static final String RESTART_PACKAGES = "android.permission.RESTART_PACKAGES";
/*     */     public static final String SEND_SMS = "android.permission.SEND_SMS";
/*     */     public static final String SET_ACTIVITY_WATCHER = "android.permission.SET_ACTIVITY_WATCHER";
/*     */     public static final String SET_ALWAYS_FINISH = "android.permission.SET_ALWAYS_FINISH";
/*     */     public static final String SET_ANIMATION_SCALE = "android.permission.SET_ANIMATION_SCALE";
/*     */     public static final String SET_DEBUG_APP = "android.permission.SET_DEBUG_APP";
/*     */     public static final String SET_ORIENTATION = "android.permission.SET_ORIENTATION";
/*     */     public static final String SET_PREFERRED_APPLICATIONS = "android.permission.SET_PREFERRED_APPLICATIONS";
/*     */     public static final String SET_PROCESS_LIMIT = "android.permission.SET_PROCESS_LIMIT";
/*     */     public static final String SET_TIME_ZONE = "android.permission.SET_TIME_ZONE";
/*     */     public static final String SET_WALLPAPER = "android.permission.SET_WALLPAPER";
/*     */     public static final String SET_WALLPAPER_HINTS = "android.permission.SET_WALLPAPER_HINTS";
/*     */     public static final String SIGNAL_PERSISTENT_PROCESSES = "android.permission.SIGNAL_PERSISTENT_PROCESSES";
/*     */     public static final String STATUS_BAR = "android.permission.STATUS_BAR";
/*     */     public static final String SUBSCRIBED_FEEDS_READ = "android.permission.SUBSCRIBED_FEEDS_READ";
/*     */     public static final String SUBSCRIBED_FEEDS_WRITE = "android.permission.SUBSCRIBED_FEEDS_WRITE";
/*     */     public static final String SYSTEM_ALERT_WINDOW = "android.permission.SYSTEM_ALERT_WINDOW";
/*     */     public static final String UPDATE_DEVICE_STATS = "android.permission.UPDATE_DEVICE_STATS";
/*     */     public static final String USE_CREDENTIALS = "android.permission.USE_CREDENTIALS";
/*     */     public static final String VIBRATE = "android.permission.VIBRATE";
/*     */     public static final String WAKE_LOCK = "android.permission.WAKE_LOCK";
/*     */     public static final String WRITE_APN_SETTINGS = "android.permission.WRITE_APN_SETTINGS";
/*     */     public static final String WRITE_CALENDAR = "android.permission.WRITE_CALENDAR";
/*     */     public static final String WRITE_CONTACTS = "android.permission.WRITE_CONTACTS";
/*     */     public static final String WRITE_EXTERNAL_STORAGE = "android.permission.WRITE_EXTERNAL_STORAGE";
/*     */     public static final String WRITE_GSERVICES = "android.permission.WRITE_GSERVICES";
/*     */     public static final String WRITE_HISTORY_BOOKMARKS = "com.android.browser.permission.WRITE_HISTORY_BOOKMARKS";
/*     */     public static final String WRITE_OWNER_DATA = "android.permission.WRITE_OWNER_DATA";
/*     */     public static final String WRITE_SECURE_SETTINGS = "android.permission.WRITE_SECURE_SETTINGS";
/*     */     public static final String WRITE_SETTINGS = "android.permission.WRITE_SETTINGS";
/*     */     public static final String WRITE_SMS = "android.permission.WRITE_SMS";
/*     */     public static final String WRITE_SYNC_SETTINGS = "android.permission.WRITE_SYNC_SETTINGS";
/*     */ 
/*     */     public permission()
/*     */     {
/*   6 */       throw new RuntimeException("Stub!");
/*     */     }
/*     */   }
/*     */ }

/* Location:           E:\workLib\android\
 * Qualified Name:     android.Manifest
 * JD-Core Version:    0.6.0
 */
分享到:
评论
1 楼 trh3037 2011-03-20  
注释全没了啊。。

相关推荐

    android.jar 源码

    给有需要的朋友,使用方法:在android.jar 同级目录下新建sources文件夹,将解压的内容放入其中,在eclipse中右键android.jar选择属性,关联到sources文件夹即可,小菜鸟新到,各位大手多多指教。

    android-17.zip android.jar 4.2.2 api完整源码

    通过深入研究"android-17.zip"和"android.jar"中的源码,开发者不仅可以掌握Android 4.2.2的API用法,还能理解其内部机制,从而提升开发技能,为创建高效、稳定的应用程序打下坚实基础。同时,对于想要从事Android...

    org.apache.http.legacy.jar

    android 6.0(api 23) SDK上进行更改之后,不再提供org.apache.http.*(只...直接将org.apache.http.legacy.jar加到libs中。 能够使该应用程序(包括旧版库)保持正常运行,Android 对应的org.apache.http.legacy jar 包

    android.jar

    虽然现在Android Studio已经取代Eclipse成为官方推荐的开发工具,但理解Eclipse中的"android.jar"使用方式对于理解早期项目或迁移到Gradle构建系统仍然很有帮助。Gradle是现代Android项目的主要构建工具,它可以...

    android4.0.3包含隐藏方法的android.jar文件

    包含android包下的隐藏方法,可以在eclipse中调用android源码中的hide的方法

    Android使用的zxing相关jar包以及zxing源码

    - 将`zxing.jar`文件添加到项目的`libs`目录下,然后在构建路径中包含这个库。 - 或者,如果你的项目使用Gradle构建,可以在`build.gradle`文件中添加ZXing的依赖。通常,你会在`dependencies`块中添加如下代码: ...

    com.android.ide.eclipse.adt_12最新

    - `com.android.ide.eclipse.adt_12.0.0.v201106281929-138431.jar`:这是ADT插件的核心组件,包含了所有用于在Eclipse中支持Android开发的类和资源。 - `...

    解决eclipse中查看android工程代码出现android.jar has no source attachment

    2. 试着双击项目中的某个Android API类,如果能正常跳转并查看源代码,那么恭喜你,问题已解决。 此外,还有一些其他可能的解决方案: - **更新Eclipse和ADT插件**:确保Eclipse和Android Developer Tools (ADT)...

    android-recyclerview-v7-25.0.0.jar

    - **导入依赖**:首先,需要将`android-recyclerview-v7-25.0.0.jar`添加到Eclipse项目的libs目录下,并将其标记为库(右键点击项目 -> Build Path -> Configure Build Path -> Libraries -> Add Jars)。...

    Android ZXing 2.3.0源码及编译后的core-2.3.0.jar和android-integration-2.3.0.jar打包亲测可用

    我把android的Project Build Target改成了4.0.3(API-15)并在其他的项目的libs中复制了一个android-support-v4.jar到CaptureActivity新建的libs文件夹下。(eclipse没有其他项目的话手动建一个就有了,Android是在...

    com.android.ide.eclipse.ndk_23

    4. 将`com.android.ide.eclipse.ndk_23.0.2.1259578.jar`复制到`plugins`目录下。 5. 启动Eclipse,插件应该已经被自动加载。 "使用说明.txt"文件可能是提供关于如何使用这个插件以及如何配置Eclipse进行NDK开发的...

    glide-4.9.0.jar

    Glide4.9.0.jar是glide图片加载框架最新版本的jar文件,支持eclipse和Android studio。

    org.apache.http源代码和jar包

    该jar包包含: import org.apache.http.Header; ... ... ... ...解压缩后,将lib文件夹下的jar所有jar包导入到eclipse工程的libs中; 可以解决Android-SDK新更新之后,使用http缺少org.apache.http的一些问题.

    eclipse 上查看andorid 源码所需的jar 包

    导入后可以直接用eclipse 查看android的源码

    获取android源码及在eclipse中查看源码

    ### 获取Android源码及在Eclipse中查看源码 #### 一、下载Android源码 在深入了解Android系统之前,获取其源代码是非常重要的一步。这不仅有助于开发者理解系统的内部工作原理,还能帮助他们在开发过程中遇到问题...

    android Slidr.jar for eclipse

    【标题】"android Slidr.jar for eclipse" 涉及到的是Android开发中的一个库,主要用于实现侧滑关闭屏幕的效果。在Android应用设计中,尤其是对于那些希望模仿原生Android系统通知栏滑动关闭效果的开发者来说,这...

    jar包源码关联

    现在,当你在项目中使用该JAR包的类和方法时,可以直接跳转到源码,查看其具体实现。 6. 检查关联是否成功: 打开IDE,尝试查看JAR包中的某个类或方法,如果能够正常跳转到源码,那么恭喜你,源码关联成功了。如果...

    Launcher依赖的jar包

    描述中的"Launcher2 Android4.4版本源码导入eclipse需要依赖的jar包"指的就是这个关键点。 在Eclipse中开发Android项目时,`.jar`文件作为外部库被添加到构建路径中。对于`Launcher2`,这些依赖可能包括但不限于: ...

    org.eclipse.paho.client.mqttv3-1.2.0-sources.zip

    2.创建library moudle,以org.eclipse.paho.client.mqttv3作为包名 3.将解压后的代码放到对应目录 4.在moudle的main目录下创建resources目录(New > Folder > Java Resources Folder) 5.将nls的资源文件copy至...

Global site tag (gtag.js) - Google Analytics