我运行命令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代表Element,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"/>
谢谢。
答案 0 :(得分:2)
我找到了源代码here
else if (code == ResXMLTree::TEXT) {
size_t len;
printf("%sC: \"%s\"\n", prefix.string(), String8(block->getText(&len)).string());
}
它接缝用于计划文本。
很抱歉回答我的问题,希望这篇文章可以帮助别人。