LSPatch icon indicating copy to clipboard operation
LSPatch copied to clipboard

[Bug] Issue with Snapenhance feature

Open erevos13 opened this issue 1 year ago • 23 comments

Steps to reproduce/复现步骤

  1. Patch snapchat with Snapenhance module
  2. Go to user interface > message indicator > enable adds a lock icon next to the messages that have been sent only to you
  3. Open snapchat, send a snap only to a single friend and ask them to send a snap only to you
  4. Lock icon will not appear or will appear for the snap which you have sent but not for the snap u have received

Expected behaviour/预期行为

Lock icon appears for the snap which you have received i.e the person have send snap only to you

Actual behaviour/实际行为

But lock icon is not appearing

It was working on official lspatch but suddenly it stopped working because lspatch started crashing and switched to forked version What i believe is patching conflicts or messing up with encryption keys ?

The se dev responded this but it is not working "When you log in, it generates an encryption key pair and this is sent to Snapchat servers, so other users receive your public key and then they can send you encrypted snaps. Their encryption is slightly different, but the concept remains the same." "The lock icon means that the Snap has been encrypted with fidelius encryption (usually between two users). If your friend has recently been added, the keys may not have been exchanged. Unfortunately I can't fix this, you can try reconnecting to your account that should regenerate those keys."

So can you take a look at it maybe lspatch is messing up with encryption?

Xposed Module List/Xposed 模块列表

SnapEnhance

LSPatch version/LSPatch 版本

0.6-421

Android version/Android 版本

14

Shizuku version/Shizuku 版本

13.5.4

Version requirement/版本要求

  • [X] I am using latest debug CI version of LSPatch and enable verbose log/我正在使用最新 CI 调试版本且启用详细日志

Apk file/Apk 文件

No response

Logs/日志

# Replace this line with the log / 将此行用日志替换

erevos13 avatar Oct 23 '24 20:10 erevos13

Are you able to take logs using adb? Please first try the latest debug CI build, and then post your logs using

adb logcat -s AndroidRuntime LSPatch LSPosed LSPatch-MetaLoader LSPatch-SigBypass LSPosed-Bridge LSPlant LSPosedContext zygisk64 LSPlt Dobby LSPosedService '*:E'  > lspatch.log

Remember to keep catching your logs till that your issue appears.

JingMatrix avatar Nov 20 '24 18:11 JingMatrix

I ll check and post

erevos13 avatar Nov 21 '24 09:11 erevos13

Which method to use when patching Snapchat with Snapenhance? Loader dex enabled ?

erevos13 avatar Nov 21 '24 09:11 erevos13

I suggest not to check the option Inject loader dex.

JingMatrix avatar Nov 21 '24 10:11 JingMatrix

Where are logs saved ? I am finding nothing

erevos13 avatar Nov 22 '24 11:11 erevos13

The command here https://github.com/JingMatrix/LSPatch/issues/15#issuecomment-2489317025 will save logs to a file lspatch.log.

JingMatrix avatar Nov 22 '24 12:11 JingMatrix

Thats what i am saying there is no lspatch.log file i am finding !? Otherwise it usually saves log files in my platform tools folder but i am not finding it anywhere!

erevos13 avatar Nov 22 '24 12:11 erevos13

Could you please test if adb devices shows your device? If that is correctly setup, then adb logcat will print your logs on screen.

Please provide screenshot so that I can see the errors or problems.

JingMatrix avatar Nov 22 '24 13:11 JingMatrix

Provide the screenshots of your command so that I can help.

JingMatrix avatar Nov 27 '24 11:11 JingMatrix

Does this print anything on your screen:

adb logcat -s AndroidRuntime LSPatch LSPosed LSPatch-MetaLoader LSPatch-SigBypass LSPosed-Bridge LSPlant LSPosedContext zygisk64 LSPlt Dobby LSPosedService '*:E'

Once again, provide your screenshot.

JingMatrix avatar Nov 27 '24 12:11 JingMatrix

Does this print anything on your screen:

adb logcat -s AndroidRuntime LSPatch LSPosed LSPatch-MetaLoader LSPatch-SigBypass LSPosed-Bridge LSPlant LSPosedContext zygisk64 LSPlt Dobby LSPosedService '*:E'

Once again, provide your screenshot.

yes alot of things.. but i found out that when i unplug the device with command on after that lspatch log file is saved.. i am uploading it

erevos13 avatar Nov 27 '24 12:11 erevos13

Instead of unpluging, you press Ctrl + C to terminate the recording of logs, which will then give you the log file.

JingMatrix avatar Nov 27 '24 12:11 JingMatrix

lspatch.log

erevos13 avatar Nov 27 '24 12:11 erevos13

The uploaded log is not completed, please record sufficient time to capture the problem of current issue.

JingMatrix avatar Nov 27 '24 12:11 JingMatrix

wait

erevos13 avatar Nov 27 '24 12:11 erevos13

lspatch.log Log in which encrypted snap lock icon is showing

erevos13 avatar Nov 27 '24 12:11 erevos13

Log in which encrypted snap lock icon is showing You meant the issue is solved or what?

JingMatrix avatar Nov 27 '24 12:11 JingMatrix

Log in which encrypted snap lock icon is showing You meant the issue is solved or what?

Encryption works if the other person logs in og lspatch and send snap Now i m not understanding how the key is getting exchanged?

erevos13 avatar Nov 27 '24 13:11 erevos13

If I understand correctly, for the encryption icon of recevied messages on A that are sent from B, we have different cases

  1. A no patch, B no patch, icon is shown;
  2. A patched with JingMatrix/LSPatch, B (unkown status ???), no icon is shown;
  3. A patched with JingMatrix/LSPatch, B patched with LSPosed/LSPatch, icon is shown;

Are these what happening currently?

I suggest you both to use latest JingMatrix/LSPatch from GitHub CI and tell me the result.

JingMatrix avatar Nov 27 '24 13:11 JingMatrix

1 is incorrect because that icon is a feature of Snapenhance 2. True 3. True 4. Icon works if the other person first logged in lspatch then shifted to jingmatrix

erevos13 avatar Nov 27 '24 13:11 erevos13

Okay, it is not a problem of JingMatrix/LSPatch, which should better be used by both users.

JingMatrix avatar Nov 27 '24 13:11 JingMatrix

Hey jingmatrix as for this problem i found a solution.. if i use npatch(based on jingmatrix lsposed) latest ci build lock icon works but not with jingmatrix lspatch.. how ? After a long time lock icon solution i found which used to work on stock lspatch.. look into this also !! What is the reason of this issue ?

erevos13 avatar Sep 03 '25 16:09 erevos13

Okay, it is not a problem of JingMatrix/LSPatch, which should better be used by both users.

It is the problem of jingmatrix lspatch.. which npatch latest update based on ur fork fixed .. don't know how !!

erevos13 avatar Sep 03 '25 16:09 erevos13