See https://github.com/adil192/SamsungAppsPatcher for the updated version of this guide. This gist is now unmaintained, but may work on other operating systems.
(Same as the above link.)
(Same as the above link. You are still welcome/encouraged to use the provided keystore.jks and ks-pass.txt.)
-
Download the apks of each of these (I got them from apkmirror.com, links for each app provided in the full guide). I also got the galaxy buds plugin (com.samsung.accessory.fridaymgr).
- Samsung Accessory (com.samsung.accessory)
- Galaxy Wearable (com.samsung.android.app.watchmanager)
- Galaxy Watch PlugIn (com.samsung.android.geargplugin)
- Samsung Health (com.sec.android.app.shealth)
-
Rename each apk to something simpler (e.g. rename the Galaxy Watch PlugIn app to
geargplugin.apk
and so on) and move them to asamsungapps/apks
folder. Additionally, create asamsungapps/patched
folder to hold your patched apks. -
Open a terminal in the
samsungapps
folder. Do the following to patch wearable.apk (Galaxy Wearable):-
Install framework with
apktool if apks/wearable.apk
. -
Decompile with
apktool d apks/wearable.apk
. -
Change to the wearable folder with
cd wearable
. -
Use dansimko's command to remove the samsung check:
find . -type f -name "*.smali" -exec sed -i 's/sget-object \(v\|p\)\(.\+\), Landroid\/os\/Build;->\(MANUFACTURER\|BRAND\):Ljava\/lang\/String;/const-string \1\2, \"letitbeheardthisphoneistobetreatedasifitwereofabranddifferentfromtheonestartingwiths\"/g' "{}" \;
-
If this app needs patching (i.e. a patch for it exists in the patches folder), run the following with the right filename. I don't know if this works in Windows or macOS, so you might need to look up how to apply a patch with your OS.
patch -p0 -d . < ../patches/wearable_remove_device_restrictions.patch
-
Go back a directory with
cd ../
and rebuild the apk withapktool b watchmanager --use-aapt2
. -
In the
samsungapps/wearable/dist
folder, you should find awearable.apk
. We need to zipalign this and then sign it.zipalign -f -p 4 wearable/dist/wearable.apk patched/wearable.apk apksigner sign --ks keystore.jks --ks-pass file:ks-pass.txt patched/wearable.apk
-
-
Repeat the above for the other apps.
-
You should now have all your new patched apps in the
samsungapps/patched
folder. Install these apks to your phone, and go through the regular setup.
(Find the pre-made downloads on the main repo here.)