C:在aapt dump xmltree的输出中意味着什么

问题描述 投票:3回答:1

我运行命令aapt dump xmltree someApk AndroidManifest.xml。这是输出的摘要:

  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

我认为E代表元素,A代表属性,但是C代表什么?

也可以从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"/>

谢谢。

android aapt
1个回答
3
投票

我找到了源代码here

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

它似乎是用于纯文本的。

摘要:

  1. N:命名空间
  2. E:元素
  3. A:属性
  4. C:纯文本
© www.soinside.com 2019 - 2024. All rights reserved.