给定一个 xml,如下所示:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="SOMETHING.Presentation.Mobile.Droid" android:installLocation="auto" android:versionName="1.13.0" android:versionCode="15">
<uses-sdk android:minSdkVersion="15" />
<permission android:name=".permission.C2D_MESSAGE" android:protectionLevel="signature" />
<application android:label="SOME_NAME" android:largeHeap="true">
<meta-data android:name="com.google.android.geo.API_KEY" android:value="SOMETHING" />
<receiver android:name="com.google.android.gms.gcm.GcmReceiver" android:exported="true" android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="SOMETHING.Presentation.Mobile.Droid" />
</intent-filter>
</receiver>
</application>
</manifest>
我正在尝试使用 powershell 脚本来重写它。
当我搜索这样的包时:
$package = $xdoc.manifest.package
我明白了“SOMETHING.Presentation.Mobile.Droid”
当我搜索 android:label ( <application android:label="SOME_NAME" android:largeHeap="true">
) 时,我什么也没得到
我试过没有成功:
如何用“冒号”指向属性?
试试这个 :
$xml.manifest.application.label
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句