Skip to content

Enabling On Demand

Kieron Quinn edited this page Jun 11, 2023 · 8 revisions

Enabling On Demand for Ambient Music Mod requires a few steps, and has a few requirements:

  • Your device must be running Android 12 or above
  • It must already have the system-defined Music Recognition service pointing to the Google App, or be rooted with Magisk to follow the setup steps below
  • A specific variant of the Google App is required (see below)

Music Recognition Service

If you see this message in Ambient Music Mod:

Then you need to make your firmware compatible. Your device must be rooted to do this.

If you are rooted, there are two options:

Option A (Recommended):

  • Download the Magisk OnDemandOverlay module from here, install it as you would any other module and reboot.

Please note: On some devices (particularly Samsung devices with OneUI), this has been known to cause a boot loop. If this happens, boot into Magisk safe mode (usually by holding volume down during boot), and uninstall the module. You can then use Option B instead.

Option B:

  • Start Shizuku as root, or install Sui. Ambient Music Mod will then bypass the requirement for the overlay.

Please note: Due to system limitations, when using Option B, the audio sent to Assistant for recognition is from the same microphone as that used for on-device recognitions, but it does not have a gain or any other fixes applied to it. Since Assistant is doing the recognition, it is not possible to resolve any audio quality issues or playback the audio to test it when using this method.

Google App

If you see this message in Ambient Music Mod, then you need to install the right variant of the Google App:

The best way to do this is via APKMirror, a safe site providing mirrors of official, unmodified APKs.

  1. Navigate to https://www.apkmirror.com/apk/google-inc/google-search/

  2. Locate and select the newest version of the Google app, it may not always be at the top. You may be able to use beta builds, but those do not always have the required variant mirrored

  1. Scroll down to the Download section, and locate the build ending in .29. If, like the first screenshot below, it is not labelled with BUNDLE, then stop and return to step two. Find the newest version that contains a build ending in .29 that is a bundle. If it is labelled with BUNDLE, as in the second screenshot below, continue to step 4.

  1. Select the build you found above, and click the DOWNLOAD APK BUNDLE button. Do NOT use the DOWNLOAD APK button, we need the bundle:

image

  1. Once the build has been downloaded, install it with the APKmirror app or SAI. On the screen before installing, you should see the dynamic feature split_sound_search_fingerprinter_split.apk. If you do not, stop and restart as the build you have downloaded does not contain the required sound search split.

  1. After the APK has installed, setup is complete and you will be able to enable On Demand in Ambient Music Mod. Please be aware that you will need to repeat these steps every time the Google App automatically updates, since it will not update to the newest version with the split on its own. I highly recommend disabling automatic updates for the Google App, and simply updating the Google App manually to the latest version with the split when you require.
Clone this wiki locally