[Samsung Galaxy Watch] maaydin:
Well I bought a samsung galaxy watch for my dear but she was not able to connect her watch to her f*cking samsung phone! After some investigations found that it's the hardcoded memory limit of the Galaxy Wearable application which doesn't allow android devices which have less than 1.5 GB of memory. Finally I am able to pair the watch and phone and here how it goes:

Step 1 - Prepare decompile environment

- Ensure jdk installed, can be downloaded at at the url: www(dot)oracle(dot)com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

- Ensure apktool installed, can be downloaded at at the url: ibotpeaches(dot)github(dot)io/Apktool/

Step 2 - Download Galaxy Wearable apk

- This is the app that connects your watch and android device which also have hardcoded memory limit with no reason! Can be downloaded at at the url: www(dot)apkmirror(dot)com/apk/samsung-electronics-co-ltd/samsung-gear/

Step 3 - Decompile Galaxy Wearable apk

- Open a terminal window and run below command

java -jar /path/to/apktool_x.x.x.jar d /path/to/com(dot)samsung(dot)android(dot)app(dot)watchmanager_x(dot)x(dot)xx(dot)xxxxxxxx-xxxxxxxxxx_minAPI18\(nodpi\)_apkmirror(dot)com(dot)apk

- This will create a folder in the working directory with the name of apk, like: com(dot)samsung(dot)android(dot)app(dot)watchmanager_x(dot)x(dot)xx(dot)xxxxxxxx-xxxxxxxxxx_minAPI18\(nodpi\)_apkmirror(dot)com which will be called as "/path/to/apkdecompiled" here after.

Step 4 - Change the hardcoded memory limit

- Open the smali folder with text editor like sublime

- Search for "0x4098000000000000L" or "1536"

- Find should match with the HostManagerUtils.smali file at /path/to/apkdecompiled/smali/com/samsung/android/app/twatchmanager/util/HostManagerUtils.smali

- Replace "0x4098000000000000L" with "0x4050000000000000L" which updates the hardcoded limit to 64MB. This converter url: babbage(dot)cs(dot)qc(dot)cuny(dot)edu/IEEE-754(dot)old/Decimal(dot)html can be used to calculate value for a different number.

- Save the file.

Step 5 - Recompile Galaxy Wearable apk

- Open a terminal window and run below command

java -jar /path/to/apktool_x.x.x.jar b /path/to/apkdecompiled

- This will create an apk file in the /path/to/apkdecompiled/dist directory with the name of apk, like: com(dot)samsung(dot)android(dot)app(dot)watchmanager_x(dot)x(dot)xx(dot)xxxxxxxx-xxxxxxxxxx_minAPI18\(nodpi\)_apkmirror(dot)com(dot)apk

Step 6 - Sign the recompiled Galaxy Wearable apk

- Open a terminal window and run below command

keytool -genkey -v -keystore galaxy-wearable.keystore -alias galaxy -keyalg RSA -keysize 2048 -validity 10000

- then run below command

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore galaxy-wearable.keystore /path/to/apkdecompiled/dist/com(dot)samsung(dot)android(dot)app(dot)watchmanager_x(dot)x(dot)xx(dot)xxxxxxxx-xxxxxxxxxx_minAPI18\(nodpi\)_apkmirror(dot)com(dot)apk galaxy

Step 7 - Install the recompiled Galaxy Wearable apk

- Upload the file to your phone and install the apk

- You will also need the Galaxy Watch Plugin apk, can be downloded at the url: www(dot)apkmirror(dot)com/apk/samsung-electronics-co-ltd/galaxy-watch-plugin/

- Enjoy your watch!

No idea about java, apktools, text editor etc? Just follow these easy steps (at your own risk):

- Download the already recompiled apk at at the url: uploadfiles(dot)io/o4dty and install

- Download the galaxy watch plugin apk at at the url: www(dot)apkmirror(dot)com/apk/samsung-electronics-co-ltd/galaxy-watch-plugin/galaxy-watch-plugin-2-2-05-18102551-release/galaxy-watch-plugin-2-2-05-18102551-android-apk-download/download/ and install.

- Enjoy your watch!

P.S.: Replace all "(dot)"s with a ".".