Search code examples
androidaapt

What does C: means in the output of aapt dump xmltree


I run command aapt dump xmltree someApk AndroidManifest.xml.
Here is a digest of the output:

  E: activity (line=461)
    A: android:theme(0x01010000)=@0x7f0c0001
    A: android:name(0x01010003)="com.huawei.mobilenotes.client.business.display.activity.NoteTagExpandListActivity" (Raw: "com.huawei.mobilenotes.client.business.display.activity.NoteTagExpandListActivity")
    A: android:screenOrientation(0x0101001e)=(type 0x10)0x1
    A: android:configChanges(0x0101001f)=(type 0x11)0x80
  C: " NoteTagExpandListActivity\n"
  E: activity (line=470)
    A: android:theme(0x01010000)=@0x7f0c0001
    A: android:name(0x01010003)="com.huawei.mobilenotes.client.business.setting.activity.VerificationLocalPwdActivity" (Raw: "com.huawei.mobilenotes.client.business.setting.activity.VerificationLocalPwdActivity")
    A: android:screenOrientation(0x0101001e)=(type 0x10)0x1
    A: android:configChanges(0x0101001f)=(type 0x11)0x80

I think the E stands for Element and A stands for Attribute, but what does C means?

Also I get the corresponding text int the AndroidManifest.xml

        <activity android:configChanges="orientation" android:name="com.huawei.mobilenotes.client.business.display.activity.NoteTagExpandListActivity" android:screenOrientation="portrait" android:theme="@style/theme"/> NoteTagExpandListActivity
<activity android:configChanges="orientation" android:name="com.huawei.mobilenotes.client.business.setting.activity.VerificationLocalPwdActivity" android:screenOrientation="portrait" android:theme="@style/theme"/>

Thank you.


Solution

  • I found the source code here

    else if (code == ResXMLTree::TEXT) {
                size_t len;
                printf("%sC: \"%s\"\n", prefix.string(), String8(block->getText(&len)).string());
        }
    

    It seams that it is used for plain text.

    In summary:

    1. N : Namespace
    2. E : Element
    3. A : Attribute
    4. C : Plain Text