SIMNumberSetter icon indicating copy to clipboard operation
SIMNumberSetter copied to clipboard

Problem with Lsposed

Open angeluskun opened this issue 2 years ago • 13 comments

I installed Lsposed zygisk versión and enabled the module from there AND grated root permission then reboot and the app dosent detect Lsposed and force me to close it

angeluskun avatar Feb 12 '22 03:02 angeluskun

What device and firmware?

KieronQuinn avatar Feb 12 '22 03:02 KieronQuinn

Poco x3 pro android 12 CRdroid

angeluskun avatar Feb 12 '22 03:02 angeluskun

Ok, it should work on that. Please post your LSposed logs.

KieronQuinn avatar Feb 12 '22 03:02 KieronQuinn

There's no error in there. Could you send a screenshot of the LSposed page for Sim Number Changer, showing the enabled apps?

KieronQuinn avatar Feb 12 '22 15:02 KieronQuinn

There's no error in there. Could you send a screenshot of the LSposed page for Sim Number Changer, showing the enabled apps?

Sure :)

angeluskun avatar Feb 12 '22 18:02 angeluskun

Screenshot_20220212-124227_LSPosed

angeluskun avatar Feb 12 '22 18:02 angeluskun

Yeah that should work, I have no idea why it's not doing, sorry.

KieronQuinn avatar Feb 12 '22 19:02 KieronQuinn

Yeah that should work, I have no idea why it's not doing, sorry.

Dont worry thanks for trying (8

angeluskun avatar Feb 12 '22 21:02 angeluskun

I just wanted to add that I get the same error with the app using LSPosed and Magisk 24 on my POCOPHONE F1 AwakenOS Android 12. Probably something to do with Xiaomi.

erayrafet avatar Feb 22 '22 13:02 erayrafet

Same on OnePlus 8 Pro, Magisk 24, OOS11

Ante0 avatar Feb 22 '22 17:02 Ante0

If you're using shamiko module remove it. It's messing with root privileges and lsposed's too

MMETMA avatar Feb 22 '22 17:02 MMETMA

Same here on realme 1 ricedroid 4.5 Android 12.1

ghost avatar Aug 13 '22 09:08 ghost

Install the riru flavor module as well as the riru version of LSPosed. This worked for me

Beat-YT avatar Nov 11 '22 06:11 Beat-YT

This shit doesn't work at all. Tried with zygisk lsposed, with riru, blacklist is disabled and is still doesn't connect! Magisk and lsposed are working completely fine. Android 13 MIUI 14 Mi 11

megapro17 avatar Mar 23 '23 18:03 megapro17

This shit doesn't work at all. Tried with zygisk lsposed, with riru, blacklist is disabled and is still doesn't connect! Magisk and lsposed are working completely fine. Android 13 MIUI 14 Mi 11

https://github.com/KieronQuinn/SIMNumberSetter/issues/2#issuecomment-1036276303

It works for everyone else. Blame MIUI.

KieronQuinn avatar Mar 23 '23 18:03 KieronQuinn

Angeluskun has not been able to get it to work on an AOSP-based FW either, as well as many other users that are not using MIUI.

Poco x3 pro android 12 CRdroid Same here on realme 1 ricedroid 4.5 Android 12.1 Same on OnePlus 8 Pro, Magisk 24, OOS11 LSPosed and Magisk 24 on my POCOPHONE F1 AwakenOS Android 12

megapro17 avatar Mar 23 '23 18:03 megapro17

Angeluskun has not been able to get it to work on an AOSP-based FW either, as well as many other users that are not using MIUI.

Poco x3 pro android 12 CRdroid Same here on realme 1 ricedroid 4.5 Android 12.1 Same on OnePlus 8 Pro, Magisk 24, OOS11 LSPosed and Magisk 24 on my POCOPHONE F1 AwakenOS Android 12

It's still a MIUI-origin device. I can't guarantee support on devices where the proprietary blobs are fucked with by Xiaomi.

Some see success with different LSPosed builds or by disabling other mods. Other devices are known to work. This is not something I can fix.

KieronQuinn avatar Mar 23 '23 18:03 KieronQuinn

If you can't fix it, then i'll do it myself. And I found a reason. It doesn't work because it fails at getting line1Number, which is not even needed, for changing this value. If i remove this line, i can sucessfuly change a number, and see it on other phone. That function is also deprecated https://developer.android.com/reference/android/telephony/TelephonyManager#getLine1Number()

Fucked up blobs yeah whatever

megapro17 avatar Mar 23 '23 19:03 megapro17

You're looking at the wrong class. It's not deprecated at all:

https://cs.android.com/android/platform/superproject/+/refs/heads/master:frameworks/opt/telephony/src/java/com/android/internal/telephony/PhoneInternalInterface.java;drc=5f971bfb26b0f0cf4ddca5da71e89a2690cba919;l=698

If OEMs mess with internal classes, how the hell am I supposed to support them without having every device available? I'm not crippling the app for them - the current number IS used, it's shown to the user to confirm the current number and that the change worked!

KieronQuinn avatar Mar 23 '23 19:03 KieronQuinn

well, i can agree that miui is not the best made firmware. I was just angry because the app was showing an error related to xposed, when it was something else entirely. Next time, it is better to describe each step in detail so that you understand the problem clearly.

megapro17 avatar Mar 23 '23 19:03 megapro17

That is what #10 is for.

KieronQuinn avatar Mar 23 '23 19:03 KieronQuinn

aren't you going to add some workaround if get sim number is not working?

megapro17 avatar Mar 29 '23 21:03 megapro17

If you can't fix it, then i'll do it myself.

Hei @megapro17 can i got your modified module app? I have a same problem with current SIM Number Setter app on MIUI 13.

maulana-kurniawan avatar Apr 13 '23 08:04 maulana-kurniawan

If you change a number in the MIUI settings, it's not written to the SIM card, it's only cached in the system. If you set an empty field, it will delete this cached value. So before you make a change you need to clear a field. Go to settings - sim - sim 1 number and set a blank field. Then eject and insert a card, change a number in the application, reeject again and look in settings, it should show a number that is stored in sim.

I will make a better version soon. base.zip

megapro17 avatar Apr 13 '23 08:04 megapro17

@megapro17 thanks a lot! Really appreciated it!

maulana-kurniawan avatar Apr 13 '23 12:04 maulana-kurniawan

If you change a number in the MIUI settings, it's not written to the SIM card, it's only cached in the system. If you set an empty field, it will delete this cached value. So before you make a change you need to clear a field. Go to settings - sim - sim 1 number and set a blank field. Then eject and insert a card, change a number in the application, reeject again and look in settings, it should show a number that is stored in sim.

I will make a better version soon. base.zip

Could it be that devices with mediatek chips cause issues??

And the app you provided (base.apk) is not even getting installed on my device.

CodexUnico avatar Dec 07 '23 23:12 CodexUnico

It's not just Xiaomi, same issue over here, everything is correct, yet it isn't connecting to LSPosed. I have a Samsung a52s

babyharpsea avatar Jun 20 '24 21:06 babyharpsea