Page 1 of 5

[App] decrypt spm J/K/M

Posted: Thu Nov 11, 2021 11:55 am
by zoelechat
Binary that decrypts individual encrypted widget files (*.spm).

Code: Select all

usage: decrypt_spm <license_file> <spm_file>
Extract decrypt_spm to SYSROOT/usr/bin, and find ID of widget you want to decrypt files using command:

Code: Select all

wascmd -l
There get "app_package_name" value, e.g.:

Code: Select all

[...]
--------------app_tizen_id                          =9Ur5IzDKqV.TizenYouTube-------------
--------------app_package_name                      =9Ur5IzDKqV-------------
[...]
Then you'll find widget.license file to be used as first arg of decrypt_spm:

Code: Select all

/opt/usr/apps/<app_package_name>/res/widget.license
Encrypted files are to be found in widget folder too, often in a squashfs image with .tmg extension (you can browse with 7zip for example). Anyway if you need to decrypt spm files, it means you know where they are :)
Only one file (.spm passed as 2nd arg) is decrypted at once and written to original folder, make batch by yourself if needed.

Credit goes to @racocvr

Re: [App] decrypt spm J/K/M

Posted: Wed Apr 13, 2022 8:50 pm
by JeppeTh
Hmm - this sounds like what I have been looking for. Great! Too bad lightning broke my router and the TV upgraded :roll:

Re: [App] decrypt spm J/K/M

Posted: Wed Apr 13, 2022 9:18 pm
by sectroyer
JeppeTh wrote: Wed Apr 13, 2022 8:50 pm Hmm - this sounds like what I have been looking for. Great! Too bad lightning broke my router and the TV upgraded :roll:
Really strange, I had many router problems and if they break they block everything not allow updates :D

Re: [App] decrypt spm J/K/M

Posted: Wed Apr 13, 2022 11:24 pm
by JeppeTh
Haha - yeah desperate for internet I connected another old router without thinking :oops:

Re: [App] decrypt spm J/K/M

Posted: Thu Apr 14, 2022 6:39 am
by sectroyer
JeppeTh wrote: Wed Apr 13, 2022 11:24 pm Haha - yeah desperate for internet I connected another old router without thinking :oops:
So user error :D what FW do you have ?

Re: [App] decrypt spm J/K/M

Posted: Thu Apr 14, 2022 5:04 pm
by JeppeTh
Yep, K 1243.2

Re: [App] decrypt spm J/K/M

Posted: Fri Apr 15, 2022 8:35 am
by sectroyer
JeppeTh wrote: Thu Apr 14, 2022 5:04 pm Yep, K 1243.2
This one should be rootable with latest method. Did you check ?

Re: [App] decrypt spm J/K/M

Posted: Fri Apr 15, 2022 3:10 pm
by JeppeTh
Ok I've missed that you have released root for later. I'll try 😊

Re: [App] decrypt spm J/K/M

Posted: Sun Apr 17, 2022 6:40 am
by zouhirzed
can we encrypt back to tmg(spm files) after modifying files and generate widget.license somehow with this or other utility?
I'm also trying to extract app installed from tizen store and extract widget.license and app.tmg to use them in another no rootable tv (usb auto install with userwidget) is this even possible ? thanks

Re: [App] decrypt spm J/K/M

Posted: Sun Apr 17, 2022 10:18 am
by zoelechat
Don't think so. You'd need to create a new custom widget using Tizen Studio.