• We are moving to xdaforums.com.

    Until then, this forum is in read-only mode.
    You will be automatically redirected once the migration is complete.

[APP][MOD] Spotify Lite - scaled for standalone use on Wear OS

Search This thread

DeathgamerB

Member
Feb 28, 2023
19
5
Nothing Phone 1
You guys can request apps if you want.

Reminder:Not all apps work and some have speacial mechanisms ,so they cannot be rebuild without keys.
I am just a human and it can take some time for me to process the requests if i even do process them.
 

CaptainBetts

New member
May 4, 2023
4
1
You guys can request apps if you want.

Reminder:Not all apps work and some have speacial mechanisms ,so they cannot be rebuild without keys.
I am just a human and it can take some time for me to process the requests if i even do process them.
Hey, thank you for offering assistance!

Is it possible to request WhatsApp? But just scaled down 50%.

If this ends up being too complex (I imagine WhatsApp could very well end up being an app with unusual architecture), there's another app which may be of use to any Londoners here called "True Tube Status", where the UI is a little too big on the watch.
 

DeathgamerB

Member
Feb 28, 2023
19
5
Nothing Phone 1
I use WearModder to scale the apps down automatically, so I don't know if I can scale down WhatsApp, and I saw some people that have already done that in the forums. I can try the other app you suggested and try to scale it down a bit with WearModder. I will post a modified version of the tutorial, which is already in this thread, with other commands and other ways to install the apps. In a few hours, I will try to scale that app down.
 
  • Like
Reactions: mrfatiga22

DeathgamerB

Member
Feb 28, 2023
19
5
Nothing Phone 1
Tuto:

Download the exact same things , that are listed in the tutorial on page 12 and follow the steps until you get to step 6.
Link
Instead of using this command:
Code:
java -jar apktool.jar b apk_name

You have to use this one :
Code:
java -jar apktool.jar b app_name --use-aapt2

After that you have to sign the apk with the key I will upload below with this command:
Code:
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore Spotify.keystore app_name/dist/app_name.apk Spotiwear

The password of the key is:

Spotify

After you done that send the apk to your android phone and download the app apk-signer and sign the app using the default key ,which is provided in the app.


Notes:You have to create a folder in which you copy all the files you need.
Example: WearOSApp/Wearmodder.jar
Spotify.keystore
Spotify.apk

I hope you can modify your favourite app with this little guide.
 

Attachments

  • Spotify_keystore.zip
    2.8 KB · Views: 36
  • Like
Reactions: mrfatiga22

CaptainBetts

New member
May 4, 2023
4
1
Tuto:

Download the exact same things , that are listed in the tutorial on page 12 and follow the steps until you get to step 6.
Link
Instead of using this command:
Code:
java -jar apktool.jar b apk_name

You have to use this one :
Code:
java -jar apktool.jar b app_name --use-aapt2

After that you have to sign the apk with the key I will upload below with this command:
Code:
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore Spotify.keystore app_name/dist/app_name.apk Spotiwear

The password of the key is:

Spotify

After you done that send the apk to your android phone and download the app apk-signer and sign the app using the default key ,which is provided in the app.


Notes:You have to create a folder in which you copy all the files you need.
Example: WearOSApp/Wearmodder.jar
Spotify.keystore
Spotify.apk

I hope you can modify your favourite app with this little guide.
Thank you for expanding on the tutorial, I'll give it a go when I get back home in about 6-8 hours.

Am I right in thinking that WearModder just scales down the app by a default fixed value (e.g. 50%)? Apologies if this seems like a really rookie question, I have no experience with Java. I assume that's what
Code:
java -jar apktool.jar b app_name --use-aapt2
does?
 

CaptainBetts

New member
May 4, 2023
4
1
Apologies if I'm being unclear - essentially as a first step I was looking to basically scale down the watch density in the same way as ADB (though doing this because ADB scales down everything on the watch). Not sure if WearModder automatically reduces density by a set amount or whether I have to go into all the files individually and change each value to 50% of it's size (which could be thousands of changes)
 

goldf1shgam3r

New member
Jul 9, 2023
2
0
Hi, I tried following your tutorial for making a version of Discord for my watch, but when I tried installing the resulting apk, it says "Failure [INSTALL_FAILED_INVALID_APK: Failed to extract native libraries, res=-2]"
Any help?
 

DeathgamerB

Member
Feb 28, 2023
19
5
Nothing Phone 1
Hi, I tried following your tutorial for making a version of Discord for my watch, but when I tried installing the resulting apk, it says "Failure [INSTALL_FAILED_INVALID_APK: Failed to extract native libraries, res=-2]"
Any help?
I searched online and found a github issue in which the problem was solved after changing extractNativeLibs to true in the apps manifest. Here is the Link.
 

goldf1shgam3r

New member
Jul 9, 2023
2
0
I searched online and found a github issue in which the problem was solved after changing extractNativeLibs to true in the apps manifest. Here is the Link.
Thank you for the help, this solved that my problem!
I then got another saying: Failure [-124: Failed parse during installPackageLI: Targeting R+

I managed to solve that however by using uber-apk-signer instead of jarsigner. It finally installed after that.

But unfortunately it crashes on startup. This happens with an unmodified apk aswell direct from the play store, so I think there's no fixing that.

Still, now that I managed to succesfully modify an app, gonna try some others now too with the same method.
 

mdianov87

Senior Member
Jul 22, 2021
55
9
Hello. I bought myself a Google Pixel Watch. I tried to install your APK of Spotify but when authorization is in progress, it throws me out and the application closes. Could you make an APK for my watch?
 
Use older Spotify WearOS, it has the ability to work standalone...

Pair it with any phone version, I tested it with latest spotify...

Play a song from your phone to your watch first, this version has a bug where watch can't play on its own (random times) but once it starts playing, you can disconnect from your phone and listen or choose other music as long there is network on the watch...

You can check for higher versions till you find latest version with this feature before spotify decided to pull the plug of this feature...

Your friendly neighborhood XDA-Dante63...
 

Attachments

  • com.spotify.music.apk
    10 MB · Views: 171

HoreaM

Member
Oct 4, 2020
13
1
OnePlus 6
Google Pixel 7
Use older Spotify WearOS, it has the ability to work standalone...

Pair it with any phone version, I tested it with latest spotify...

Play a song from your phone to your watch first, this version has a bug where watch can't play on its own (random times) but once it starts playing, you can disconnect from your phone and listen or choose other music as long there is network on the watch...

You can check for higher versions till you find latest version with this feature before spotify decided to pull the plug of this feature...

Your friendly neighborhood XDA-Dante63...
Could you please tell us which version is the version you attached? Thanks!
 

Top Liked Posts

  • There are no posts matching your filters.
  • 26
    This is a mod of the Spotify Lite v0.6.6. The official Spotify app for Wear OS is not able to stream music standalone. Sideloading any Spotify works but the UI is obviously giant on Wear OS - see this recent Spotify screenshot from Wear OS.

    It's possible to change system wide density but it takes away the usability and look of Wear OS. I did a quick experiment with pure resource mod and it works surprisingly nice so I'm sharing it with you. Downscaling other well written apps is therefore possible.

    What it took:
    • Replace all sizes (dip/sp in layouts, dimens etc.) - I divided them by 2
    • Few quick fixes - set bottom tab layout alignment to center instead of fill, set custom height for actionBarSize, set horizontal margin for toolbar (so far only on Home screen)
    It takes only quite a few commands to create such downscaled modded app. The current version of the size replacement script is really ugly and slow but I think that it would make a great universal script/tool for conversion of any user app (right?)...

    spotify-lite-wear-screenshot.png spotify-lite-wear-screenshot-2.png spotify-lite-wear-screenshot-3.png

    Spotify Lite mod is attached to this post. (Lite version doesn't support offline playback but the whole app is supposed to be snappy.)
    Full version of modded Spotify (8.4.62.490) is available from mega.nz or AndroidFileHost. Mod v2 (improved top toolbar): mega.nz or AndroidFileHost.

    Here's the raw (but trivial) tool - WearModder.jar

    How to use it:

    Code:
    # Decompile apk
    java -jar apktool_2.3.3.jar d spotify-lite.apk
    
    # Mod resources (use directory or individual files as arguments)
    java -jar WearModder.jar spotify-lite/res
    
    # Perform additional manual tweaks
    
    # Build apk
    java -jar apktool_2.3.3.jar b spotify-lite
    
    # Sign
    keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
    jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore spotify-lite/dist/spotify-lite.apk alias_name

    WearModder modifies all files in-place so do not run it more than once on the same files (d'oh). Feel free to try modding your favorite apps and let me know how well it works.

    Update 2018/10/04: Uploaded mod of Spotify Lite v0.9.5.

    Chech also uploads of others who shared their (newer) versions.
    4
    Hello, I find it a very interesting project and would like to give visibility to the tutorial in this post, the script works well with current APKs although of course improvable, I encourage whoever has knowledge to develop a new update of the script.

    There are apps installed on Wear OS (especially those that come from Android) that have a giant interface and do not adapt well to the small size of the watch screen, which prevents to reach certain options from the watch. The guide allows you to change the density of a given app without affecting the density of the rest of the apps on the watch, WearModder was developed by user @moneytoo. Unfortunately, the tool has not been updated for at least 2 years, however the WearModder source code is available here (in java) for those who have knowledge and want to improve it, also another developer has ported the tool to Python, also available from this other link.

    Both the script and the steps to use it are simple, so anyone can try it with their favorite applications.

    Wearmodder-EN.jpg

    What does WearModder do?

    The WearModder tool is a small script that modifies the density of an APK to fit the size of the watch. The script automatically does the following:
    • Replaces all sizes (dip/sp in layouts, dimens, etc.).
    • Sets centered alignment of the bottom tab layout
    • Sets custom height for action bar (in ActionBarSize element)
    • Set horizontal margin for toolbar (home screen only)

    Prerequisites:

    • Download and install the Java 8 tool (JRE 1.8) from here.
    • Download APKTool from here (tool for decompiling APK files)
    • Download WearModder from here in java or from here in Python (tool to modify the density of APK files).
    • If you use WearModder for Python, download and install Python from here.


    The Guide. How to change the density of an app or game on Wear OS

    1. Rename Apktool file you downloaded to "apktool.jar" (no version) and Wearmodder file you downloaded to "wearmodder.jar" (no version).

    2. Place in the same folder apktool.jar file, Wearmodder.jar file and APK file you want to modify its density.

    3. Now open a command line in that folder and enter the following to decompile APK file.
      Code:
      Java -jar apktool.jar d apk_name.apk

    4. Once decompiled, enter the following to modify apk resources:
      Code:
      - With Java version:       java -jar WearModder.jar apk_name/res
      - With Python version:     python ./wearmodder.py ./apk_name/res

    5. According to the author of the guide additional manual adjustments must be made, however he does not give any guidelines nor has he developed this step, I suppose it is not always necessary.

    6. Build APK file again. The modified APK file will be saved in "/apk_name/dist/" folder.
      Code:
      java -jar apktool.jar b apk_name

    7. Enter the following commands to sign it. It will ask you for a new password and some other information.
      Code:
      keytool -genkey -v -keystore my-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
      jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-key.keystore apk_name/dist/apk_name.apk alias_name
    Wearmodder2.jpg

    Considerations:

    • Make sure you have the environment variable set for Java so that Java can be run from any folder, the same for Python if you are going to use the Python version of WearModder. Here is a guide to add the environment variable for python and here for Java.

    • In step 3, 4, 6 and 7 replace in the command "apk_name" with the name of APK file to be modified.

    • In step 7 replace "my-key" and "alias_name" with the name of the password and alias storage you want.

    • If you have problems using WearModder in Java, you can use WearModder ported to Python. When I tested with Seven app (apk of the capture)), java version modified the APK but when I built the APK again something was wrong, with the Python version I modified and built with ApkTool the app perfectly.

    • Do not run WearModder more than once on the same file that you have already altered.
    3
    Update:
    1. Spotify - Music and Podcasts v8.5.68.904 for wearOS
    2. update NewPipe v0.19.8 for wearOS
    Download: https://mega.nz/file/ED4CBYTB#pRzmt7VmvOAfLr99D55PJ1UuDEpij5Z39dNEAzRszlQ
    3. MX-Player work together with above newpipe for wearOS
    Download: https://mega.nz/file/UChyXQhL#zJb6-mwRkKpq8kVRi7UD4uV_lNqufTRwtV9B-aYp-mA


    4. New ( Support- karaoke feature ( lyrics ) in some country. https://9to5mac.com/2020/06/30/time-synched-lyrics/
    *******Corrected bug (fix: UI for watch, test: load speed, Shuffle, Canvas, Synced Lyrics, Storyline ) ---etc. Clean install required, what you have to do once the app is installed for the first time, is force close the app.
    https://mega.nz/file/IW5E1I5b#WV89Lbw5ryEtlyJ7CWdrxE8DxaskHsIqH52TE7fWZNc
    Lite https://mega.nz/file/ETQUya6S#VdVzBRkiF9SHXD9B8URpSLTC5CCbse-E3sHRPQPtP-g


    Never Forgot to scan arch with VirusTotal

    -----------------------------------------------------------------------
    5. satstat
    -App to test your GPS and network location (my Suunto 7 don't have Mobile network)
    -On map, blue circle is network fix and red circle is GPS fix.
    -https://f-droid.org/app/com.vonglasow.michael.satstat
    Download for wearOS https://mega.nz/file/4foFiJAJ#OdgqaI2i4fo9KPUtoBxrErWHUL9oJUbF7yWasMIMGvA