[Android General] TimoVer:
Hi everyone!

I got the idea for this guide because I just spent about half a day finding a solution to this problem... As I couldn't find any guide for this (or atleast I couldn't find it after some searching on google and this forum), I decided to create my own guide!

DISCLAIMER: I do not hold any rights to the Timely app or trademarks. This guide is purely for educational purposes.

Timely: Installing a custom sound

FAQ:

1) Wait... Timely does not support using custom sounds!

Yes, out of the box, Timely does not support using custom sounds. But what we are doing here is trick Timely into using our own alarm sound by masking it to be a "built-in" sound. This way, selecting the sound in Timely will let Timely play your own alarm sound, thinking it's one of the built-in ones.

2) Does this work on my X device running X android version?

I'm sorry... I just don't know. The only way for you to know is to try out this guide for yourself!

Now, normally, if your phone is correctly rooted and running an android version which the Timely app supports (aka: you can install Timely from the Google Play Store and run it), then you shouldn't have any problem.

The Guide:

Step 0: Prerequisites

- Your Android phone needs to be rooted to perform this operation (as we are going to extract the apk from your phone). Please search on Google or these forums for guides on how to root your phone.

- You need to have a file manager installed onto your android phone which supports Root. Great ones are Root browser, ES File Explorer or Root Explorer (or choose anything you like ;)).

- You need to have WinRAR installed (I tried doing this with 7-zip, but 7-zip does not easily allow me to change to mode to store).

- You need to have a sound file in OGG format. You can easily convert your mp3/aac/etc... files online to an OGG format. A great site for doing this is http://media.io/

- You need to have basic command line skills. For now, this guide is Windows-only. So you need access to a Windows PC.

Step 1: Downloading/Installing all the necessary files

- Download the latest Java JDK by going to this link: http://www.oracle.com/technetwork/java/javase/downloads/index.html. Afterwards, install it.

- Create a folder called "timely" in your C drive (C:\timely). Place your OGG file in this folder.

- Please download the "SignApk.zip" at the bottom of this post and place its contents in C:\timely. Big shoutout to A_U for providing it in his post about apktool (http://xdaforums.com/showthread.php?t=2213985)!

Step 2: Extracting the Timely APK

Download and install the Timely app from the Google Play Store onto your device (https://play.google.com/store/apps/details?id=ch.bitspin.timely).

Open your file manager and go to /data/app. Your file manager will request root permissions to access this folder. Copy "ch.bitspin.timely-1.apk" to /sdcard/Download.

Connect your device to your computer. On your computer, go to <devicename>/Download and copy the "ch.bitspin.timely-1.apk" to your timely folder.

At the end of this step, your timely folder should look like this:

Step 3: Modding the Timely APK

Open WinRAR and navigate to your Timely folder:

Click the "ch.bitspin.timely-1.apk" file to go explore the innards of timely!

Go to /res/raw. This folder contains all the built-in alarm sounds of timely.

Allright, now we are going to add our custom sound! What we are going to do is replace one of the built-in sounds with our own custom sound, tricking Timely to believe it's actually a built-in sound when we are setting up our alarm!

Choose one sound you want to replace. You WILL NOT be able to use this sound again, as we are going to replace it. In this example, we are going to replace the "Awakening" sound. Rename your custom sound to "awakening.ogg" and drag and drop it into the /res/raw folder:

In the WinRAR popup window, select "Store" as the mode. Afterwards, click on OK.

Step 4: Signing the Timely APK

In order to reinstall our modded Timely APK to our device, we need to sign it.

Open a command prompt and navigate to your timely folder (using the cd command). Then, execute this command:

java -jar signapk.jar certificate.pem key.pk8 C:\timely\ch.bitsign.timely-1.apk C:\timely\ch.bitsign.timely-1-signed.apk

This will create a new apk in our timely folder called "ch.bitsign.timely-1-signed.apk".

Step 5: Installing our modded Timely APK

First, uninstall the original Timely from your Android Phone, if you hadn't uninstalled it already.

Move "ch.bitsign.timely-1-signed.apk" to your Download folder on your Android Phone and rename it to "ch.bitsign.timely-1.apk".

Go to your android phone, open your file manager and click on the APK file in the download folder (/sdcard/Download). Your modded Timely should now be installed!

Step 6: Enjoy your custom alarm sound!

When you now set up an alarm in Timely, select the Awakening ringtone and now, your custom sound will play when your alarm goes off!

Have fun!