3

在主题 apk 中添加 android 元数据标签并读取值,我看到了这一点,对于应用程序 apk 它工作正常,但我有主题 apk 它没有application标签,我尝试在manifest标签下添加元数据但它不起作用。有人可以帮助我如何在清单中添加元数据或自定义标签,并使用 packagemanager 在 android 应用程序中检索其价值吗

我的主题 apk 的清单如下

<?xml version="1.0" encoding="utf-8"?>
  <manifest android:hasCode="false" android:versionCode="2" android:versionName="1.0" android:installLocation="internalOnly" package="com.template.theme.y"
  xmlns:android="http://schemas.android.com/apk/res/android" xmlns:pluto="http://www.w3.org/2001/pluto.html">
    <theme pluto:wallpaperImage="@drawable/wallpaper" pluto:ringtoneFileName="media/audio/ringtones/Standard.mp3" pluto:preview="@drawable/preview" pluto:styleName="@string/style_appearance_name" pluto:ringtoneName="Standard" pluto:name="@string/theme_name" pluto:author="@string/author" pluto:notificationRingtoneName="Subtle" pluto:themeId="Templatebread" pluto:notificationRingtoneFileName="media/audio/notifications/Subtle.mp3" pluto:styleId="@style/Templatebread" pluto:copyright="@string/copyright">
        <meta-data android:name="themeEngineVersion" android:value="101" />
    </theme>
</manifest>
4

0 回答 0