[appt]android
appt 工具所在位置..\sdk\build-tools\23.0.1\aapt.exe
#查看Package
>aapt dump badging C:\QQemail.apk | findstr package package: name='com.tencent.androidqqmail' versionCode='10123606' versionName='5.2.6' platformBuildVersionName='6.0-2704002'
#查看Launchable-activity >aapt dump badging C:\QQemail.apk | findstr launchable launchable-activity: name='com.tencent.qqmail.LaucherActivity' label='QQ閭' icon=''
[dumpsys]shell
#首先在手機上打開被測應用程序,而後執行如下命令;
>adb shell dumpsys window windows | findstr Focus mCurrentFocus=Window{42ee9c88 u0 com.tencent.android.qqdownloader/com.tencent.pangu.activity.SelfUpdateActivity} mFocusedApp=AppWindowToken{42144188 token=Token{428c2308 ActivityRecord{429d60a8 u0 com.tencent.android.qqdownloader/com.tencent.pangu.activity.SelfUpdateActivity t22}}}
[AndroidManifest.xml]windows
在Android工程源碼中,查看AndroidManifest.xml文件,從中得到所需package和activity;app