salvogiangri / KnoxPatch

LSPosed module to get Samsung apps/features working again in your rooted Galaxy device.
GNU General Public License v3.0
688 stars 31 forks source link

Samsung Pass and Samsung Pay support #43

Closed Pharaoh2k closed 11 months ago

Pharaoh2k commented 11 months ago

Very useful project, thank you! :) Any plans to add Samsung pass and Samsung pay support?

salvogiangri commented 11 months ago

Fixing those two apps is not possible because the device integrity checks run in TEE. I shared more details in the XDA thread of the module (Post #28, Post #29).

Screenshot 2023-02-10 alle 09 50 03 Screenshot 2023-08-11 alle 10 53 57 Screenshot 2023-08-11 alle 10 55 36
mario6714 commented 10 months ago

Sorry to comment here, one question, Samsung cant apply that (security) in the others apps? thanks

salvogiangri commented 10 months ago

Sorry to comment here, one question, Samsung cant apply that (security) in the others apps? thanks

Nothing is impossible, I will of course keep an eye on the changes that might be implemented in the next Android iterations. As per the latest One UI 6 beta, their API’s haven’t changed.

mario6714 commented 10 months ago

Ok, thanks, i have a Samsung phone, can unlock bootloader (still off) but still not doing a root.

mio-19 commented 10 months ago

Fixing those two apps is not possible because the device integrity checks run in TEE. I shared more details in the XDA thread of the module (Post #28, Post #29).

Screenshot 2023-02-10 alle 09 50 03 Screenshot 2023-08-11 alle 10 53 57 Screenshot 2023-08-11 alle 10 55 36

I am wondering if it is possible to patch by modifying the binary of the Samsung Pay app or kernel

Pharaoh2k commented 10 months ago

Fixing those two apps is not possible because the device integrity checks run in TEE. I shared more details in the XDA thread of the module (Post #28, Post #29). Screenshot 2023-02-10 alle 09 50 03 Screenshot 2023-08-11 alle 10 53 57 Screenshot 2023-08-11 alle 10 55 36

I am wondering if it is possible to patch by modifying the binary of the Samsung Pay app or kernel

Even if it's possible, would you use a modified binary of a wallet app? I certainly wouldn't take that risk

mio-19 commented 10 months ago

Fixing those two apps is not possible because the device integrity checks run in TEE. I shared more details in the XDA thread of the module (Post #28, Post #29). Screenshot 2023-02-10 alle 09 50 03 Screenshot 2023-08-11 alle 10 53 57 Screenshot 2023-08-11 alle 10 55 36

I am wondering if it is possible to patch by modifying the binary of the Samsung Pay app or kernel

Even if it's possible, would you use a modified binary of a wallet app? I certainly wouldn't take that risk

I would trust a binary modified by myself.

Pharaoh2k commented 10 months ago

Then go for it

salvogiangri commented 10 months ago

I am wondering if it is possible to patch by modifying the binary of the Samsung Pay app or kernel

It's not possible. Even if you manage to bypass the anti-tamper check in the apps such as anti-hook, APK signature check in Samsung Account etc. you'd still need to patch the trustlets, which can't be done since they're signed as well. The only possible way (imho) would be via a TrustZone exploit

mio-19 commented 10 months ago

Does this also apply to Samsung Pay Watch plugin-in? This app: Screenshot_20230915_222119_MT Manager

salvogiangri commented 10 months ago

Does this also apply to Samsung Pay Watch plugin-in?

This app:

Screenshot_20230915_222119_MT Manager

No, the watch plugin should work fine as long as you have the Enhancer module installed.

n00b69 commented 8 months ago

What's different about Samsung Pass on devices running Android 7 or lower which makes it work even when rooted? Would it theoretically not be possible to spoof the app to think it's running on something like a Galaxy S7 on Android 7?

salvogiangri commented 8 months ago

I never saw those two apps working even on legacy OS.