Difference between revisions of "Modding:Installing SMAPI on Android"
Jump to navigation
Jump to search
m |
Pathoschild (talk | contribs) (copyedit, clarify risks of downloading third-party SDK, mention SMAPI mods, minor changes) |
||
Line 1: | Line 1: | ||
− | + | ← [[Modding:Index]] | |
− | |||
− | + | This page explains how to use mods on Android. Modding on Android is trickier than PC; you can't use SMAPI mods yet and they're more complex to install. | |
− | |||
− | |||
− | ==XNB | + | For help with mods on Linux/Mac/Windows, see the [https://stardewvalleywiki.com/Modding:Player_Guide player's guide to mods]. |
− | # Install | + | |
+ | ==Obtaining the APK== | ||
+ | The game is stored on your phone in an ''Android Package'' file with an <tt>.apk</tt> extension. Downloading the APK from third-party websites isn't recommended, since they may contain malware or be outdated. You can take it directly from your device if you have root access, located at <tt>/data/app/com.chucklefish.stardewvalley-1/base.apk</tt>. | ||
+ | |||
+ | ==SMAPI / Content Patcher mods== | ||
+ | These aren't available on Android yet. See [https://github.com/Pathoschild/SMAPI/issues/632 ''SMAPI on other platforms''] for more info. | ||
+ | |||
+ | ==XNB mods== | ||
+ | # Install an unzip program like [https://www.7-zip.org/download.html 7-zip]. | ||
# Install JDK 8. | # Install JDK 8. | ||
− | # Install Android Studio | + | # Install Android Studio (make sure to install build-tools). |
# Install APK Signer Tool (v2). | # Install APK Signer Tool (v2). | ||
− | # | + | # Unzip the Stardew Valley APK to your computer. |
− | # Replace the | + | # Replace the vanilla XNBs (found in <tt>./assets/Content/</tt>) with the modded XNBs. |
− | # | + | # Re-zip the contents of the Stardew Valley APK. Make sure not to include the container folder. |
− | # Open APK Signer Tool (v2) | + | # Change the file extension from <tt>.zip</tt> to <tt>.apk</tt>. |
− | # Fill out all fields | + | # Open APK Signer Tool (v2). |
− | # | + | # Fill out all fields on the Keyfile Generator page (doesn't matter what you enter). |
− | # Select key | + | # On the Align & Sign tab, select the modded APK file. |
− | # Click Align and Sign | + | # Select key and fill out the appropriate fields. |
− | # Wait a few moments | + | # Click Align and Sign. |
− | # Move | + | # Wait a few moments. |
+ | # Move the APK to the device and install. | ||
− | ==Audio | + | ==Audio mods== |
− | # Download | + | # Download [https://github.com/mariodon/unxwb/releases unxwb] and [https://github.com/Microsoft/DirectXTK/releases XWBTool]. |
− | # Copy | + | # Unzip both to your working directory. |
− | # | + | # Copy the <tt>.obb</tt> file from your phone's internal storage (located at <tt>Internal Storage/Android/obb/main.2.com.chucklefish.stardewvalley.obb</tt>) to your working directory. |
− | # Replace any of the files | + | # Run this command to unpack the file: <pre>unxwb main.2.com.chucklefish.stardewvalley.obb</pre> That will output 87 with names like <tt>00000000.wav</tt>. |
− | # | + | # Move the unpacked <tt>.wav</tt> files to a separate folder to keep things organised. |
− | # Move the | + | # Replace any of the audio files as desired (but the names must remain the same). |
+ | # Run this command to repack the file (replacing <tt>folderPath</tt> with the full path to the folder containing the <tt>.wav</tt> files): <pre>XWBTool "folderPath/*.wav" -o Music.xwb</pre> Note that the output file ''must'' be called <tt>Music.xwb</tt> when repacking. | ||
+ | # Rename <tt>Music.xwb</tt> to <tt>main.2.com.chucklefish.stardewvalley.obb</tt>. | ||
+ | # Move the modified <tt>.obb</tt> file back to your phone's internal storage (at <tt>Internal Storage/Android/obb/main.2.com.chucklefish.stardewvalley.obb</tt>). | ||
# Enjoy your modified music! | # Enjoy your modified music! | ||
− | + | Here's [https://docs.google.com/spreadsheets/d/1K3S8YDS4Tfe_LPtyXA9LaVM8edxvDFkwfNl-ql1kFGM a spreadsheet of unpacked <tt>.wav</tt> file names]. | |
− | https://docs.google.com/spreadsheets/d/1K3S8YDS4Tfe_LPtyXA9LaVM8edxvDFkwfNl-ql1kFGM/ | + | |
[[Category:Modding]] | [[Category:Modding]] |
Revision as of 15:06, 10 April 2019
This page explains how to use mods on Android. Modding on Android is trickier than PC; you can't use SMAPI mods yet and they're more complex to install.
For help with mods on Linux/Mac/Windows, see the player's guide to mods.
Obtaining the APK
The game is stored on your phone in an Android Package file with an .apk extension. Downloading the APK from third-party websites isn't recommended, since they may contain malware or be outdated. You can take it directly from your device if you have root access, located at /data/app/com.chucklefish.stardewvalley-1/base.apk.
SMAPI / Content Patcher mods
These aren't available on Android yet. See SMAPI on other platforms for more info.
XNB mods
- Install an unzip program like 7-zip.
- Install JDK 8.
- Install Android Studio (make sure to install build-tools).
- Install APK Signer Tool (v2).
- Unzip the Stardew Valley APK to your computer.
- Replace the vanilla XNBs (found in ./assets/Content/) with the modded XNBs.
- Re-zip the contents of the Stardew Valley APK. Make sure not to include the container folder.
- Change the file extension from .zip to .apk.
- Open APK Signer Tool (v2).
- Fill out all fields on the Keyfile Generator page (doesn't matter what you enter).
- On the Align & Sign tab, select the modded APK file.
- Select key and fill out the appropriate fields.
- Click Align and Sign.
- Wait a few moments.
- Move the APK to the device and install.
Audio mods
- Download unxwb and XWBTool.
- Unzip both to your working directory.
- Copy the .obb file from your phone's internal storage (located at Internal Storage/Android/obb/main.2.com.chucklefish.stardewvalley.obb) to your working directory.
- Run this command to unpack the file:
unxwb main.2.com.chucklefish.stardewvalley.obb
That will output 87 with names like 00000000.wav. - Move the unpacked .wav files to a separate folder to keep things organised.
- Replace any of the audio files as desired (but the names must remain the same).
- Run this command to repack the file (replacing folderPath with the full path to the folder containing the .wav files):
XWBTool "folderPath/*.wav" -o Music.xwb
Note that the output file must be called Music.xwb when repacking. - Rename Music.xwb to main.2.com.chucklefish.stardewvalley.obb.
- Move the modified .obb file back to your phone's internal storage (at Internal Storage/Android/obb/main.2.com.chucklefish.stardewvalley.obb).
- Enjoy your modified music!