This wiki is a read-only version of the Stardew Valley Wiki. The official editable wiki maintained by ConcernedApe can be found at stardewvalleywiki.com

Changes

Jump to: navigation, search

Modding:Installing SMAPI on Android

116 bytes added, 15:06, 10 April 2019
copyedit, clarify risks of downloading third-party SDK, mention SMAPI mods, minor changes
==Before You Begin==Mod at your own risk, not all mods will be compatible with Android. User has the full responsibility of ensuring they do not cause damage by following this guide.← [[Modding:Index]]
==Where To Obtain The APK==Unfortunately sourcing the apk from third party websites This page explains how to use mods on Android. Modding on Android is not recommended as it trickier than PC; you can be unsafe 't use SMAPI mods yet and can pose a risk they're more complex to your device.However, the apk can be taken directly from your device, providing you have root access. It can be located at <code>/data/app/com.chucklefish.stardewvalley-1/baseinstall.apk</code>
For help with mods on Linux/Mac/Windows, see the [https://stardewvalleywiki.com/Modding:Player_Guide player's guide to mods]. ==XNB ModsObtaining 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: How To//github.com/Pathoschild/SMAPI/issues/632 ''SMAPI on other platforms''] for more info. ==XNB mods==# Install zip an unzip program of your choice. Recommended: like [https://www.7-zip.org/download.html 7zip7-zip].
# Install JDK 8.
# Install Android Studio, (make sure to install build-tools).
# Install APK Signer Tool (v2).
# Extract Unzip the Stardew Valley apk APK to your computer with zip program.# Replace the Vanilla vanilla XNBs (found in <codett>./assets/Content/</codett>) with the Modded modded XNBs.# Archive Re-zip the contents of the Stardew Valley apk with your chosen zip program (APK. Make sure not to not archive include the container folder containing the files, but the files themselves, so .# Change the file structure is extension from <codett>com.yourchosenapk.name.apk\different files and folders herezip</codett>), rename from .zip to <tt>.apk</tt>.# Open APK Signer Tool (v2).# Fill out all fields in on the Keyfile Generator page. (Fill as you wish, these arendoesn't important as long as they are filledmatter what you enter).# Click On the Align & Sign tab. Browse for , select the modded APK file.apk# Select key, and fill out the appropriate fields.# Click Align and Sign.# Wait a few moments.# Move apk the APK to the device and install.
==Audio Mods: How Tomods==# Download both <code>[https://github.com/mariodon/unxwb</code> (Link TBU, program created by Luigi Auriemma), releases unxwb] and <code>XWBTool<[https://github.com/code> (Link TBU, found on Microsoft's GitHub) and extract /DirectXTK/releases XWBTool].# Unzip both of them to your working directory.# Copy over the <tt>.obb </tt> file from your phone's internal storage to your working directory. The OBB can be found (located at <codett>Internal Storage/Android/obb/main.2.com.chucklefish.stardewvalley.obb</codett>) to your working directory.# To Run this command to unpack simply run the file: <codepre>unxwb main.2.com.chucklefish.stardewvalley.obb</codepre> in Command Prompt which should That will output 87 files named with names like <codett>00000000.wav etc..</codett>. It is highly recommended for cleanliness to move # Move the unpacked <tt>.wav </tt> files to a separate folderto keep things organised.# Replace any of the audio files with audio of your choosing, however you '''MUST''' keep as desired (but the file names must remain the same).# To Run this command to repack, simply run the file (replacing <codett>XWBTool "wherever you extracted and moved folderPath</tt> with the .wavs full path tothe folder containing the <tt>.wav</tt> files): <pre>XWBTool "folderPath/*.wav" -o Music.xwb</codepre> (The Note that the output file '''must''' be called <tt>Music.xwb </tt> when repacking). Then rename # Rename <codett>Music.xwb</codett> to <codett>main.2.com.chucklefish.stardewvalley.obb</codett>.# Move the now modified <tt>.obb </tt> file back to your phone's internal storage (at <codett>Internal Storage/Android/obb/main.2.com.chucklefish.stardewvalley.obb</codett>).
# Enjoy your modified music!
Spreadsheet of all of the .wav files from the .obb mapped to their internal file names:Here's [https://docs.google.com/spreadsheets/d/1K3S8YDS4Tfe_LPtyXA9LaVM8edxvDFkwfNl-ql1kFGMa spreadsheet of unpacked <tt>.wav</edit?usp=drivesdktt> file names]. 
[[Category:Modding]]
Protected, translators
5,421
edits

Navigation menu