Several ways to view Android app package names and activity

Source: Internet
Author: User

First, the source of the situation

Open the Androidmanifest.xml file directly and find the activity that contains the Android.intent.action.MAIN and Android.intent.category.LAUNCHER.

If the third line of the package is Com.cola.ui, the seventh row of the main activity is Com.cola.ui.ColaBox (. Colabox for activity shorthand method)

1 <?XML version= "1.0" encoding= "Utf-8"?>  2 <Manifestxmlns:android= "Http://schemas.android.com/apk/res/android"  3  Package= "Com.cola.ui"  4 Android:versioncode= "1"  5 Android:versionname= "1.0.0">  6     <ApplicationAndroid:icon= "@drawable/icon"Android:label= "@string/app_name">  7         <ActivityAndroid:name=". Colabox "  8 Android:label= "@string/app_name">  9             <Intent-filter>  Ten                 <ActionAndroid:name= "Android.intent.action.MAIN" />   One                 <categoryAndroid:name= "Android.intent.category.LAUNCHER" />   A             </Intent-filter>   -         </Activity>   -     <ActivityAndroid:name= "Frm_addbills"></Activity>   the     <ActivityAndroid:name= "Frm_editacctitem"></Activity>   -     <ActivityAndroid:name= "Grid_bills"></Activity>   -     <ServiceAndroid:name= "LocalService"android:exported= "true"android:enabled= "true"/>    -    +    </Application>   -  <uses-permissionAndroid:name= "Android.permission.READ_CONTACTS" />   +     A     at </Manifest>   

Two, only the situation of the APK

(1) AAPT

Using the command line AAPT dump Xmltree colabox.apk androidmanifest.xml

(2) using Apktool

Use the Anti-compilation tool Apktool, and then open the Androidmanifest.xml file after the anti-compilation, find the same way as "source code situation"

(3) AAPT

Thanks to "Heaven Zhuhai Branch Rudder" address: http://blog.csdn.net/zhubaitian/article/details/38926679

Three, no apk, the app has been installed in the phone or virtual machine

1.logcat

. Clear Logcat content, use command adb logcat-c

. Start Logcat, use the command adb logcat activitymanager:i *:s

. Start the program you want to view,

2.dumpsys

(1) Start the program you want to view;

(2) command line input: adb shell dumpsys window w |findstr \ |findstr name=

Several ways to view Android app package names and activity

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.