Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Dual/Multi SIM Support #1366

Closed
Dreamdance61 opened this issue Feb 17, 2014 · 18 comments
Closed

Dual/Multi SIM Support #1366

Dreamdance61 opened this issue Feb 17, 2014 · 18 comments

Comments

@M66B
Copy link
Owner

M66B commented Feb 17, 2014

There is little to find about the multi SIM feature in the source code.
Can you please post the output of

service list

@M66B
Copy link
Owner

M66B commented Feb 17, 2014

I also like to see a full logcat while using the SIM card app.

@Dreamdance61
Copy link
Contributor Author

XPrivacy V1.99.45

service list: http://pastebin.com/806fQ859
logcat SIM Card (GT-S7562_logcat_SIMCard.7z): http://www64.zippyshare.com/v/76544695/file.html

M66B pushed a commit that referenced this issue Feb 18, 2014
@M66B
Copy link
Owner

M66B commented Feb 18, 2014

At least some things were restricted:

I/XPrivacy/XTelephonyManager( 2958): get 10096/getPhoneType phone=restricted
I/XPrivacy/XTelephonyManager( 2958): get 10096/getSimCountryIso phone=restricted 3 ms
I/XPrivacy/XTelephonyManager( 2958): get 10096/getSimCountryIso phone=restricted (cached)
I/XPrivacy/XTelephonyManager( 2958): get 10096/getSimOperator phone=restricted 4 ms
I/XPrivacy/XTelephonyManager( 2958): get 10096/getSimOperator phone=restricted (cached)
I/XPrivacy/XTelephonyManager( 2958): get 10096/getSimOperatorName phone=restricted 10 ms
I/XPrivacy/XTelephonyManager( 2958): get 10096/getSimOperatorName phone=restricted (cached)
I/XPrivacy/XTelephonyManager( 2958): get 10096/getNetworkCountryIso phone=restricted
I/XPrivacy/XTelephonyManager( 2958): get 10096/getNetworkCountryIso phone=restricted (cached)
I/XPrivacy/XTelephonyManager( 2958): get 10096/getNetworkOperator phone=restricted 3 ms
I/XPrivacy/XTelephonyManager( 2958): get 10096/getNetworkOperator phone=restricted (cached)
I/XPrivacy/XTelephonyManager( 2958): get 10096/getNetworkOperator phone=restricted (cached)
I/XPrivacy/XTelephonyManager( 2958): get 10096/getNetworkOperator phone=restricted (cached)
I/XPrivacy/XTelephonyManager( 2958): get 10096/getPhoneType phone=restricted (cached)
I/XPrivacy/XTelephonyManager( 2958): get 10096/getNetworkOperatorName phone=restricted 2 ms
I/XPrivacy/XTelephonyManager( 2958): get 10096/getNetworkOperatorName phone=restricted (cached)

but I don't understand why not all things.

@M66B
Copy link
Owner

M66B commented Feb 18, 2014

The next version of XPrivacy will have some additional logging for this issue.

In the mean time I like to see the first 1000 lines of a logcat capture, started before you turn on your device, so I can check if all hooks were successful.

@M66B
Copy link
Owner

M66B commented Feb 18, 2014

Version 1.99.47 has the extra logging.

@Dreamdance61
Copy link
Contributor Author

Hello Marcel, needed some time because i have only access to phone at the evening ...

Logged with XPrivacy V1.99.47
GT-S7562_Logcats.7z: http://www22.zippyshare.com/v/44361486/file.html

Archive contains four files:
GT-S7562_Logcat_Boot.txt: device switched off -> Boot process
GT-S7562_Logcat_SimCard0.txt: after boot started XPrivarcy, started App "SIM Card"
GT-S7562_Logcat_SimCard1.txt: Deactivated Sim1, activated Sim1, started XPrivacy, started App "SIM Card"
GT-S7562_Logcat_SimCard2.txt: switched to Sim2, started XPrivacy, started App "SIM Card"

@M66B
Copy link
Owner

M66B commented Feb 18, 2014

With the help of @Tungstwenty we are a little bit closer to the source of the problem, but not yet to the solution of it. The problem seems to be hooking native functions, before the associated native library has been loaded, like this one:

public native java.lang.String android.telephony.MSimTelephonyManager.getSimSerialNumber(int)

M66B pushed a commit that referenced this issue Feb 19, 2014
M66B pushed a commit that referenced this issue Feb 19, 2014
@M66B
Copy link
Owner

M66B commented Feb 19, 2014

Could you please check if this version solves the problem: http://d-h.st/9fk

@M66B
Copy link
Owner

M66B commented Feb 19, 2014

You can instead better download this version:
https://github.com/M66B/XPrivacy/releases/tag/1.99.48

@Dreamdance61
Copy link
Contributor Author

You're to fast for me ...

Logged with XPrivacy V1.99.48
GT-S7562_Logcats_V1.99.48.7z: http://www34.zippyshare.com/v/5270160/file.html

Archive contains four files:

  • Logcat_Boot.txt: device switched off -> Boot process
  • Logcat_SimCard0.txt: after boot started XPrivarcy, started App "SIM Card"
    screenshot_2014-02-19-15-59-37_anon
    screenshot_2014-02-19-15-59-44_anon
  • Logcat_SimCard1.txt: Deactivated Sim1, activated Sim1, started XPrivacy, started App "SIM Card"
    screenshot_2014-02-19-16-02-32_anon
    screenshot_2014-02-19-16-04-51_anon
  • Logcat_SimCard2.txt: switched to Sim2, started XPrivacy, started App "SIM Card"
    screenshot_2014-02-19-16-02-40_anon
    screenshot_2014-02-19-16-04-57_anon

@M66B
Copy link
Owner

M66B commented Feb 19, 2014

Is there anything changed compared to the previous version?

@Dreamdance61
Copy link
Contributor Author

No, it*s the same output :-(

BTW: I don't understand the correlation from SimCard app with uid=10096 to the other Applications

I/XPrivacy/XSystemProperties( 2816): get 10096/gsm.sim.operator.iso-country phone=restricted
==>I/XPrivacy( 2816): get setting uid=10096 Application.de.hafas.android.db=false 63 ms
==>I/XPrivacy( 2816): get setting uid=10096 Application.de.schildbach.oeffi=false 149 ms
I/XPrivacy( 2816): get setting uid=10096 Country=XX 149 ms
I/XPrivacy/XTelephonyManager( 2816): get 10096/getSimCountryIso phone=restricted 2 ms
I/XPrivacy/XTelephonyManager( 2816): get 10096/getSimCountryIso phone=restricted (cached)
D/plugin  (  679): getDefaultSubscription()
I/XPrivacy/XSystemProperties( 2816): get 10096/gsm.sim.operator.numeric phone=restricted
I/XPrivacy/XTelephonyManager( 2816): get 10096/getSimOperator phone=restricted
I/XPrivacy/XTelephonyManager( 2816): get 10096/getSimOperator phone=restricted (cached)
D/plugin  (  679): getDefaultSubscription()
I/XPrivacy/XSystemProperties( 2816): get 10096/gsm.sim.operator.alpha phone=restricted
==>I/XPrivacy( 2816): get setting uid=10096 Application.com.google.android.apps.maps=false 48 ms
I/XPrivacy( 2816): get setting uid=10096 Operator=DEFACE 21 ms
I/XPrivacy/XTelephonyManager( 2816): get 10096/getSimOperatorName phone=restricted
I/XPrivacy/XTelephonyManager( 2816): get 10096/getSimOperatorName phone=restricted (cached)
D/plugin  (  679): getDefaultSubscription()
I/XPrivacy/XSystemProperties( 2816): get 10096/gsm.operator.iso-country phone=restricted
I/XPrivacy/XTelephonyManager( 2816): get 10096/getNetworkCountryIso phone=restricted
I/XPrivacy/XTelephonyManager( 2816): get 10096/getNetworkCountryIso phone=restricted (cached)
D/plugin  (  679): getDefaultSubscription()
I/XPrivacy/XSystemProperties( 2816): get 10096/gsm.operator.numeric phone=restricted
I/XPrivacy/XTelephonyManager( 2816): get 10096/getNetworkOperator phone=restricted
I/XPrivacy/XTelephonyManager( 2816): get 10096/getNetworkOperator phone=restricted (cached)
D/plugin  (  679): getDefaultSubscription()
I/XPrivacy/XSystemProperties( 2816): get 10096/gsm.operator.alpha phone=restricted 2 ms
==>I/XPrivacy( 2816): get setting uid=10096 Application.com.navigon.navigator_select=false 55 ms
I/XPrivacy/XPackageManager( 2816): get 10096/queryIntentActivities system=restricted (cached)
I/XPrivacy/XTelephonyManager( 2816): get 10096/getNetworkOperatorName phone=restricted 12 ms
I/XPrivacy/XTelephonyManager( 2816): get 10096/getNetworkOperatorName phone=restricted (cached)

@M66B
Copy link
Owner

M66B commented Feb 19, 2014

Too bad nothing changed :-(

==>I/XPrivacy( 2816): get setting uid=10096 Application.de.hafas.android.db=false 63 ms
==>I/XPrivacy( 2816): get setting uid=10096 Application.de.schildbach.oeffi=false 149 ms

The app tries to access application info, XPrivacy is checking here if the packages are on the allow list, which they aren't.

@Dreamdance61
Copy link
Contributor Author

No need for high speed ... most devices are covered with your solution and i think the release of next major version has much higher priority.

Thanks for your explanation and your great commitment!

M66B pushed a commit that referenced this issue Feb 19, 2014
It doesn't solve the problems

Refs #1366
M66B pushed a commit that referenced this issue Feb 19, 2014
M66B pushed a commit that referenced this issue Feb 19, 2014
@M66B
Copy link
Owner

M66B commented Feb 19, 2014

I have good hope this version will fix your problem: http://d-h.st/1gp

@Dreamdance61
Copy link
Contributor Author

Sorry for late answer but i had a hard fight against my S3 and XP V1.99.49.

Good message: Your Dual Sim modification has fixed the problem! 👍

@M66B
Copy link
Owner

M66B commented Feb 21, 2014

Thanks for reporting back!

@M66B M66B closed this as completed Feb 21, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants