Apkparser
前言
Android开发中的技术选型,针对某一领域的App,看看某些主流App是如何解决的,是自己解决还是使用开源框架。
有的框架非常优秀但却不为人所知,现在是大数据时代,各种杂乱的信息,很多信息都不是我们需要的。
虽然不鼓励这两种行为:
- 只做API的调用者
- 造重复的轮子
但是某些框架的原理是必须深入的理解的,同样地,更多的框架如UI类型的开源库不建议花费过多的时间去自己研究。
毕竟人的精力是有限的,我们把有限的精力花费在更有价值的事情上,而不是重复的劳动力。
该 小工具 就是为了快速寻找到成熟优秀的框架,学习其使用的同时,更好地学习其优秀的设计,解析某个App时,也许会有
意外的收获,这也是我前期不断花费大量精力学习一些杂乱的技术不断磨刀到现在的初衷,为了后期少走弯路,更快的进步....
该项目的代码不值一提,因为硬盘多次坏掉,仅做备份使用,为省事把PlantUML和ApkParser工具合并在了一起。
相对Android和Swing而言,JavaFX太容易了,Api简洁好用,缺点就是build成exe的时候包实在太大了,60M左右,所以仅仅上传了可运行的Jar,
你只需要 antbuild/dist
目录中的文件下载下来即可运行(确保JRE已安装)。
tips
项目代码就无需研究了,UI只用了一个类,没什么可看的,不过JavaFX值得一看,如果你懂Android,仅需一天即可掌握基础。
项目截图
image.pngimage.png
image.png
image.png
导入简书apk为例:
================================
packageName: com.douyu.hd.air.douyutv
label: 斗鱼HD
icon: res/drawable-xxhdpi-v4/ic_launcher.png
versionName: 1.1.9
versionCode: 169
minSdkVersion: 16
targetSdkVersion: 23
maxSdkVersion: null
================================
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="169" android:versionName="1.1.9" package="com.douyu.hd.air.douyutv" platformBuildVersionCode="23" platformBuildVersionName="6.0-2704002">
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="23" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<application android:theme="resourceId:0x7f080110" android:label="斗鱼HD" android:icon="res/drawable-xxhdpi-v4/ic_launcher.png" android:name="com.douyu.hd.air.douyutv.control.singleton.DouyuTvHD" android:allowBackup="false">
<activity android:theme="resourceId:0x7f08010d" android:name="com.douyu.hd.air.douyutv.control.activity.LiveActivity" android:launchMode="standard" android:screenOrientation="sensorLandscape" android:configChanges="0x4a0" />
<activity android:theme="resourceId:0x7f08010d" android:name="com.douyu.hd.air.douyutv.control.activity.ScannerActivity" android:launchMode="standard" android:screenOrientation="sensorLandscape" android:configChanges="0x4a0" />
<activity android:theme="resourceId:0x7f08010d" android:name="com.douyu.hd.air.douyutv.control.activity.SearchActivity" android:launchMode="standard" android:screenOrientation="sensorLandscape" android:configChanges="0x4a0" android:windowSoftInputMode="0x2" />
<activity android:theme="resourceId:0x7f08010d" android:name="com.douyu.hd.air.douyutv.control.activity.GameSelectActivity" android:launchMode="standard" android:screenOrientation="sensorLandscape" android:configChanges="0x4a0" />
<activity android:theme="resourceId:0x7f08010d" android:name="com.douyu.hd.air.douyutv.control.activity.RegisterActivity" android:launchMode="standard" android:screenOrientation="sensorLandscape" android:configChanges="0x4a0" />
<activity android:theme="resourceId:0x7f08010d" android:name="com.douyu.hd.air.douyutv.control.activity.SearchResultActivity" android:launchMode="standard" android:screenOrientation="sensorLandscape" android:configChanges="0x4a0" />
<activity android:theme="resourceId:0x7f08010d" android:name="com.douyu.hd.air.douyutv.control.activity.HistoryActivity" android:launchMode="standard" android:screenOrientation="sensorLandscape" android:configChanges="0x4a0" />
<activity android:theme="resourceId:0x7f08010d" android:name="com.douyu.hd.air.douyutv.control.activity.RoomActivity" android:launchMode="standard" android:screenOrientation="sensorLandscape" android:configChanges="0x4a0" android:windowSoftInputMode="0x10" />
<activity android:theme="resourceId:0x7f08010d" android:name="com.douyu.hd.air.douyutv.control.activity.MainActivity" android:launchMode="standard" android:screenOrientation="sensorLandscape" android:configChanges="0x4a0" />
<activity android:theme="resourceId:0x7f08010d" android:name="com.douyu.hd.air.douyutv.control.activity.SplashActivity" android:launchMode="standard" android:screenOrientation="sensorLandscape" android:configChanges="0x4a0">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:theme="resourceId:0x7f08010d" android:name="com.douyu.hd.air.douyutv.control.activity.WebViewActivity" android:screenOrientation="sensorLandscape" android:configChanges="0x4a0" android:windowSoftInputMode="0x2" />
<activity android:theme="resourceId:0x7f08010d" android:name="com.douyu.hd.air.douyutv.control.activity.FollowActivity" android:screenOrientation="sensorLandscape" android:configChanges="0x4a0" android:windowSoftInputMode="0x2" />
<activity android:theme="resourceId:0x7f08010d" android:name="com.douyu.hd.air.douyutv.control.activity.GameCenterDetailsActivity" android:launchMode="standard" android:screenOrientation="sensorLandscape" android:configChanges="0x4a0" />
<meta-data android:name="UMENG_APPKEY" android:value="xxx" />
<meta-data android:name="UMENG_CHANNEL" android:value="portal" />
<meta-data android:name="AID" android:value="androidhd1" />
<meta-data android:name="APP_VERSION" android:value="50000119" />
<meta-data android:name="APP_UPDATE_CODE" android:value="2" />
<meta-data android:name="BIZ_TYPE" android:value="16" />
<activity android:theme="resourceId:0x7f08012a" android:name="com.umeng.socialize.editorpage.ShareActivity" android:excludeFromRecents="false" />
<activity android:theme="@android:style/Theme.Translucent.NoTitleBar" android:name="com.tencent.tauth.AuthActivity" android:launchMode="standard" android:screenOrientation="sensorLandscape" android:noHistory="false">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="xxx" />
</intent-filter>
</activity>
<activity android:theme="@android:style/Theme.Translucent.NoTitleBar" android:name="com.tencent.connect.common.AssistActivity" android:configChanges="0x4a0" />
<activity android:theme="@android:style/Theme.Translucent.NoTitleBar" android:name="tv.douyu.wxapi.WBShareActivity" android:screenOrientation="portrait" android:configChanges="0xa0">
<intent-filter>
<action android:name="com.sina.weibo.sdk.action.ACTION_SDK_REQ_ACTIVITY" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:theme="@android:style/Theme.Translucent.NoTitleBar" android:name="com.sina.weibo.sdk.component.WeiboSdkBrowser" android:exported="false" android:configChanges="0xa0" android:windowSoftInputMode="0x10" />
<service android:name="com.sina.weibo.sdk.net.DownloadService" android:exported="false" />
<activity android:theme="@android:style/Theme.Translucent.NoTitleBar" android:name="tv.douyu.wxapi.WXEntryActivity" android:exported="false" android:screenOrientation="portrait" android:configChanges="0x4a0" />
</application>
</manifest>
================================
com.facebook.fbcore
tv.danmaku.ijk
com.tencent.mm
com.facebook.datasource
tv.douyu.wxapi
com.douyu.lib
com.tencent.map
okhttp3.internal.tls
com.facebook.imageformat
com.tencent.stat
com.facebook.drawee
com.nineoldandroids.util
com.facebook.common
com.tencent.open
okhttp3.internal.platform
android.support.v4
android.support.v7
android.support.design
okhttp3.internal.framed
tv.douyu.b
tv.douyu.a
com.orhanobut.logger
tv.douyu.model
com.facebook.imagepipeline
okhttp3.internal.io
com.alibaba.fastjson
android.support.annotation
com.facebook.cache
com.facebook.imageutils
tv.douyu.widget
com.tencent.connect
com.sina.weibo
com.umeng.analytics
com.sina.sso
okhttp3.internal.cache
com.tencent.wxop
com.bigkoo.convenientbanner
tv.douyu.library
com.douyu.hd
tv.douyu.singleton
org.apache.http
com.facebook.drawable
com.harreke.easyapp
com.google.zxing
com.umeng.socialize
com.tencent.weibo
okhttp3.internal.connection
com.tencent.a
okhttp3.internal.http
com.facebook.binaryresource
com.tencent.qqconnect
com.tencent.tauth
网友评论