Code Monkey home page Code Monkey logo

Comments (12)

maxGerards avatar maxGerards commented on June 2, 2024 1

After deleting all data from the app (wearable,watch plugin, acceessory) and deinstall them it now works.

from knoxpatch.

XDABlackMesa123 avatar XDABlackMesa123 commented on June 2, 2024

Thank you for your interest in my project!
I did try the app with my old Gear S3 and I confirm the app will just get stuck at the pairing loading page. I found by debugging that this is caused by a system service called WSM, I'll need to find a way to bypass this service and I think I'm gonna struggle a bit with this since the check is done via native libs, which Xposed can't hook (afaict)

from knoxpatch.

maxGerards avatar maxGerards commented on June 2, 2024

Thank you for the good work.
I've been dealing with the topic for a long time and the verification only happens on Samsung devices. Unfortunately, a fake from the manufacturer and model did not bring any improvement on the samsung fold4. If you find a way it would be very cool.

from knoxpatch.

XDABlackMesa123 avatar XDABlackMesa123 commented on June 2, 2024

Thank you for the good work. I've been dealing with the topic for a long time and the verification only happens on Samsung devices. Unfortunately, a fake from the manufacturer and model did not bring any improvement on the samsung fold4. If you find a way it would be very cool.

Yeah seems like spoofing the device manufacturer/brand doesn't works. The only way I could find to get Galaxy Wearable to work again is to rename/delete libhal.wsm.samsung.so in /system, but doing it via app is not a good idea since it would require the user's interaction and might also not work great/at all on devices with dynamic partitions/F2FS. Bind mounting the file via a Magisk module would be possible, but that would require a separate module just to fix that single app. There must be another way...

from knoxpatch.

maxGerards avatar maxGerards commented on June 2, 2024

Deleting/renaming a file in /system doesn't sound like a good solution. The solution with magisk sounds better, but it may differ depending on the device. It would be good to know what wsm checks to manipulate this check.
Unfortunately, my programming skills in the android area are very weak, so unfortunately I'm not much help.

from knoxpatch.

XDABlackMesa123 avatar XDABlackMesa123 commented on June 2, 2024

@maxGerards you think you can give a try to this? It's a Magisk module, install it via the Magisk app and try pairing your Watch.

kp_enhancer_test.zip

from knoxpatch.

maxGerards avatar maxGerards commented on June 2, 2024

Unfortunately, the module does not work. The watch still won't pair, I checked the log but didn't find anything suspicious. But I noticed that the file in the module was only overwritten in /lib and /lib64. I can also find the libhal.wsm.samsun.so file under /system/vendor/lib64/libhal.wsm.samsun.so

from knoxpatch.

XDABlackMesa123 avatar XDABlackMesa123 commented on June 2, 2024

Vendor libs shouldn't be a problem since VNDK will prevent linker to load them. In the logs you should see WSM TA returning an error when pairing the device (the pairing actually happens in the Samsung Accessory app, not in Galaxy Wearable)

from knoxpatch.

maxGerards avatar maxGerards commented on June 2, 2024

can you send me the log command to only see the log from Samsung Accessory app?

from knoxpatch.

XDABlackMesa123 avatar XDABlackMesa123 commented on June 2, 2024

can you send me the log command to only see the log from Samsung Accessory app?

adb logcat --pid=`adb shell pidof -s com.samsung.accessory`

I doubt it will capture the WSM TA logs since it's run on a different process, but it's still worth to try.

from knoxpatch.

XDABlackMesa123 avatar XDABlackMesa123 commented on June 2, 2024

Closing this issue since support for this app has been added in the new Enhancer Magisk module, thank you for your time!

from knoxpatch.

maxGerards avatar maxGerards commented on June 2, 2024

Great Work

from knoxpatch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.