Mulberry/android/AndroidManifest.xml
astar76 320f644bc8 Android app: buildable project recovered from the 1.2.2 APK
The original Android source was lost; android/ holds the jadx-decompiled
Java (com.mulberry.player) and resources from Android 1.2.2, fixed so it
compiles again (broken methods rewritten by hand), plus:

- android/build.sh: builds and signs Mulberry-<version>-Android.apk with the
  plain SDK tools (aapt2, javac, d8, apksigner), no Gradle; fetches
  jaudiotagger 2.0.3 (the version the old APK bundled) with a pinned checksum
- versionName 2.0.4, versionCode 6
- recoloured launcher icon (pink cookie, berry note) to match assets/mulberry.svg

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-02 12:32:30 -06:00

139 lines
6.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:installLocation="auto"
package="com.mulberry.player">
<uses-sdk
android:minSdkVersion="24"
android:targetSdkVersion="34"/>
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO"/>
<uses-permission
android:name="android.permission.READ_EXTERNAL_STORAGE"
android:maxSdkVersion="32"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/>
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="29"/>
<queries>
<package android:name="com.adam.aslfms"/>
<package android:name="net.jjc1138.android.scrobbler"/>
<package android:name="com.arn.scrobble"/>
</queries>
<application
android:theme="@style/AppTheme"
android:label="Mulberry"
android:icon="@mipmap/ic_launcher"
android:name="com.mulberry.player.App"
android:allowBackup="true"
android:hardwareAccelerated="true"
android:largeHeap="false"
android:supportsRtl="true"
android:roundIcon="@mipmap/ic_launcher"
android:requestLegacyExternalStorage="true">
<activity
android:name="com.mulberry.player.MainActivity"
android:exported="true"
android:launchMode="singleTask"
android:configChanges="density|smallestScreenSize|screenSize|uiMode|screenLayout|orientation|keyboardHidden"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
<category android:name="android.intent.category.APP_MUSIC"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="content"/>
<data android:scheme="file"/>
<data android:mimeType="audio/*"/>
<data android:mimeType="application/ogg"/>
<data android:mimeType="application/x-ogg"/>
<data android:mimeType="audio/x-mpegurl"/>
<data android:mimeType="audio/mpegurl"/>
</intent-filter>
</activity>
<activity
android:name="com.mulberry.player.TagEditorActivity"
android:exported="false"
android:configChanges="smallestScreenSize|screenSize|screenLayout|orientation|keyboardHidden"
android:windowSoftInputMode="adjustResize"/>
<service
android:name="com.mulberry.player.MusicService"
android:exported="true"
android:foregroundServiceType="mediaPlayback">
<intent-filter>
<action android:name="android.media.browse.MediaBrowserService"/>
</intent-filter>
</service>
<receiver
android:name="com.mulberry.player.MediaButtonReceiver"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MEDIA_BUTTON"/>
</intent-filter>
</receiver>
<receiver
android:label="Now playing + lyrics"
android:name="com.mulberry.player.WidgetLarge"
android:exported="false">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/widget_large"/>
</receiver>
<receiver
android:label="Now playing"
android:name="com.mulberry.player.WidgetMedium"
android:exported="false">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/widget_medium"/>
</receiver>
<receiver
android:label="Compact player"
android:name="com.mulberry.player.WidgetCompact"
android:exported="false">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/widget_compact"/>
</receiver>
<receiver
android:label="Lyrics"
android:name="com.mulberry.player.WidgetLyrics"
android:exported="false">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/widget_lyrics"/>
</receiver>
<receiver
android:label="Bass shape"
android:name="com.mulberry.player.WidgetShape"
android:exported="false">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/widget_shape"/>
</receiver>
</application>
</manifest>