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

Contact aliases (restricting Whatsapp Contacts with XPrivacy) #1155

Closed
XS666 opened this issue Jan 24, 2014 · 41 comments
Closed

Contact aliases (restricting Whatsapp Contacts with XPrivacy) #1155

XS666 opened this issue Jan 24, 2014 · 41 comments

Comments

@XS666
Copy link

XS666 commented Jan 24, 2014

Because Whatsapp want all contacts from my phone I tried to restrict it. Whatsapp should only get only the telephone number and a nickname.

So I created some Contacts in my MS Outlook like "Nickname" and "Mobile Number". Thats all Information I want to share with Whatsapp. I restricted contacts for Whatsapp and allowed some contacts with XPrivacy. I did this one week ago and now there are a lot of linked contacts in my phonebook. Maybe Android, Samsung or Whatsapp everytime creates a new link for the contact???

screenshot_2014-01-19-00-05-20
screenshot_2014-01-19-00-05-27
screenshot_2014-01-19-00-05-53
24 januar 2014 035432 mez
screenshot_2014-01-24-03-05-37
screenshot_2014-01-24-15-07-10

@XS666
Copy link
Author

XS666 commented Feb 9, 2014

After about 10 Days I checked my phone... in my contact list were about 3.000 Entries which XPrivacy restricted. Can someone please check if this happens on other roms?

screenshot_2014-02-09-09-18-39

@M66B M66B added bug and removed enhancement labels Feb 9, 2014
M66B pushed a commit that referenced this issue Feb 9, 2014
@M66B
Copy link
Owner

M66B commented Feb 9, 2014

I cannot reproduce it and I have no idea why this is happening :-(

@XS666
Copy link
Author

XS666 commented Feb 9, 2014

I will test this week a little bit.

Maybe someone with a Samsung ROM would test it too?

@M66B
Copy link
Owner

M66B commented Feb 9, 2014

Steps to reproduce would help.

@XS666
Copy link
Author

XS666 commented Feb 9, 2014

okay...

I made some Contacts with Outlook just containing minimal Information

e.g.

WA (as Prefix) NAME + Mobile Phone Number, Group "Whatsapp" and private status.

WA Marcel +44 1234565
WA Stefan +49 123345564
WA Andre +49 123456789

Now I synced them with myphoneexplorer to my phone.

I restrict the complete contacts for Whatsapp. Then I allow some contacts and chose the WA-Ones.

Refresh Contact list in Whatsapp. Maybe restart app some time or reboot phone 2-3x. That should reproduce the problem.

I am not sure if this only happens to Samsung ROMS because I only use one phone with Whatsapp...

@M66B
Copy link
Owner

M66B commented Feb 9, 2014

Can you check again without using myphoneexplorer?

@XS666
Copy link
Author

XS666 commented Feb 9, 2014

Same issue without sync-tool.

I also allowed "Whatsapp-Account" in this screenshot
https://f.cloud.github.com/assets/4984999/1995254/41d2c7d6-8501-11e3-9269-0b10fa0b677e.jpg

Now i unchecked it and It seems that whatsapp is still running and no more contacts will be added to the android contact database. Must be a problem in reading/writing contacts??

@XS666
Copy link
Author

XS666 commented Feb 9, 2014

funny that Whatsapp is still working without having any access to the Whatsapp Account

@XS666
Copy link
Author

XS666 commented Feb 9, 2014

@M66B
Copy link
Owner

M66B commented Feb 9, 2014

Can you please try if this version fixes the problem:
https://github.com/M66B/XPrivacy/releases/tag/1.99.37-3

Make sure you restrict contacts/IccProvider (this is new)

@XS666
Copy link
Author

XS666 commented Feb 9, 2014

I will try, thanks!

Just to mention... Whatsapp is still working without having rights to its account but got an FC when I try to refresh contacts.

I will report.

Thanks! 👍

@XS666
Copy link
Author

XS666 commented Feb 9, 2014

no, still multiple whatsapp aliases. And some unknown contacts with no numbers, only whatsapp aliases in the phone book... :/

Maybe it is because Whatsapp gets limited information and then write the data to the whatsapp account?

I can simpyl reproduce it when I refresh my contact list - everytime there is a new alias for whatsapp in the phone book.

@M66B
Copy link
Owner

M66B commented Feb 9, 2014

Can you please try another time with this version:
https://github.com/M66B/XPrivacy/releases/

@M66B
Copy link
Owner

M66B commented Feb 9, 2014

You may need to allow contacts/profile

@XS666
Copy link
Author

XS666 commented Feb 9, 2014

I installed the release you posted above.

Now my complete phone book leaked because I see all Contacts in Whatsapp :/

contacts/profile was not getting in bold letters.

I am back to the latest beta now - now I only see the contacts I restricted.

BTW I am the only (crazy person with paranoia) that restrict the contact Information for Whatsap to a minimum???

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

M66B commented Feb 10, 2014

Can you give it another go with 1.99.37-6+
https://github.com/M66B/XPrivacy/releases

I rewrote most of the contact allowing now.

@M66B
Copy link
Owner

M66B commented Feb 10, 2014

You can also update to 1.99.38 from the Xposed repo and have some more functions ;-)

@XS666
Copy link
Author

XS666 commented Feb 10, 2014

Hi Marcel, there is also a 1.99.38-2 - should I try this one?

This evening I will check it - is there something to check or uncheck?

@M66B
Copy link
Owner

M66B commented Feb 10, 2014

Yes, try the latest version, please.

@XS666
Copy link
Author

XS666 commented Feb 10, 2014

screenshot_2014-02-10-18-26-27

Settings okay or should I restrict the red ones too?

I tried to test with the latest Version but same behaviour.

There are also unknown Contacts in my PhoneBook right now - without any link to a contact:
screenshot_2014-02-10-18-25-11

Here a specific contact:
screenshot_2014-02-10-18-25-18

strange:
screenshot_2014-02-10-18-25-26

@XS666
Copy link
Author

XS666 commented Feb 10, 2014

now I...

  • checked all checkboxes under Contacts for Whatsapp
  • allowed Accounts for Whatsapp (no checks)
  • deleted contacts database, restarted the device
  • synced all my contacts back on the device (in memory Phone)

Same issues.

There are several unknown contacts and for every refresh in the whatsapp contact list there is a new link in the phonebook contact.

@M66B
Copy link
Owner

M66B commented Feb 10, 2014

"checked all checkboxes under Contacts for Whatsapp"
Try without restricting the dangerous functions.

@XS666
Copy link
Author

XS666 commented Feb 10, 2014

When Accounts is disabled (or enabled and Whatsapp allowed) there are no new entries in the phonebook. It seems that Whatsapp produces lot of data in the phone and the phone links them together to a bunch of waste :)

@XS666
Copy link
Author

XS666 commented Feb 10, 2014

it also seems that the unknown contacts are the contacts which I allowed for Whatsapp but they don't have an account - yet.

@M66B
Copy link
Owner

M66B commented Feb 10, 2014

There is little more I can do here, because these are limitations of the contact provider.
It is not possible to get a (raw) contact ID in all circumstances.
I will leave this issue open, but marked as lowprio.

@M66B M66B added the lowprio label Feb 10, 2014
@XS666
Copy link
Author

XS666 commented Feb 10, 2014

Thanks Marcel.

Workaround for me:

  • "fresh Contacts"
  • restricting contacts for Whatsapp
  • restricting accounts for Whatsapp after first start and refresh

Now I can use it without having 3000+ Contacts in my Phonebook because whatsapp is not able to write to the phonebook. But... when I refresh the contacts I get a FC and new contacts cannot be found. But I can live with that for now...

@M66B
Copy link
Owner

M66B commented Feb 10, 2014

If you provide a logcat of the FC, I will look into it.

@XS666
Copy link
Author

XS666 commented Feb 11, 2014

http://pastebin.com/XAutDrZa :)

@M66B
Copy link
Owner

M66B commented Feb 13, 2014

Reported to have been fixed.

@M66B M66B closed this as completed Feb 13, 2014
@XS666
Copy link
Author

XS666 commented Feb 13, 2014

who reported? :o

@JayjohnX
Copy link

Hello,
had this problem too. I fixed it by reinstalling whatsapp (plus deleting still existing whatsapp folder) and before starting it then the first time, I didn't allowed accounts (even not whatsapp account). My whatsapp works fine. The only "thing" is that there is no whatsapp-connection shown in the contacts - before whatsapp created an entry thats shows the whatsapp icon, now I have no information about it in the contacts. But better than having a lot of clones.
I am using the newest version of XPrivacy (2.2.1) and to unrestrict some of the contacts I bought the pro license.

@M66B
Copy link
Owner

M66B commented Jul 31, 2014

@JayjohnX maybe it is an idea to document this here for easy reference:
http://forum.faircode.eu/forums/forum/android/xprivacy/applications/

@XS666
Copy link
Author

XS666 commented Jul 31, 2014

Thanks JayjohnX. That might solve the problem for other Whatsapp-User. I canceled my Whatsapp-Account, now I am using Threema. Still some missing contacts but the whole thing is a lot safer than WA.

@JayjohnX
Copy link

I will do a comment there. I think there are a lot of save chat apps but whatsapp is that one all of my friends are using...

@JayjohnX
Copy link

JayjohnX commented Aug 1, 2014

Please see: http://forum.faircode.eu/forums/topic/com-whatsapp-contact-aliases-restricting-whatsapp-contacts-with-xprivacy/

or search for [com.whatsapp] Contact aliases (restricting Whatsapp Contacts with XPrivacy) in http://forum.faircode.eu/forums/forum/android/xprivacy/applications/

@Ano11
Copy link

Ano11 commented Nov 5, 2014

Hi there Marcel and others,

I just purchased XPrivacy Pro in order to restrict WhatsApp from getting all of my phonebook contacts. After installing WhatsApp, I restrict the "Contacts" group in XPrivacy and start WhatsApp: the contact list in WhatsApp is empty, as it should. Next, I select several contacts in XPrivacy to be allowed for WhatsApp. When I re-open WhatsApp and choose "Refresh", the selected contacts are found. So far so good.

But after a reboot of the phone, the contact list in WhatsApp is empty again, refreshing the contacts list still leaves the list empty.
When I now go to "Allow contacts" in XPrivacy again, each contact I selected earlier to allow is now shown in the list twice! One of them is checked, one is not checked. When I check the second one as well, the contacts appear in the WhatsApp contact list again after a refresh.

After another reboot, the contacts are still are not there in the WhatsApp contact list. When I open XPrivacy and I look at the "allow" list in XPrivacy, the double contacts are still there but the second one is unchecked again! Putting a checkmark there again, the contacts are found in WhatsApp.

Conclusion: I can live with the fact that my WhatsApp contacts appear two times in my phonebook, if that is what it takes for XPrivacy to work. However, every time when I reboot I have to manually run XPrivacy and have to re-check all my contacts in the "allow list" again in order for WhatsApp to see them. That's very annoying, especially when you have many, many contacts in your phonebook...

Is this something that can be resolved? I am using a double-sim Nokia X phone.
Thanks!

@M66B
Copy link
Owner

M66B commented Nov 5, 2014

@Ano11
I have no idea about how to fix this.
Contact handling on Android is quite complex and there seems to be some interaction between Android, Whatsapp and XPrivacy. Whatsapp is probably maintaining its own contact group, which Android probably is merging with the main contact list.
Restricting contacts is done using the contact IDs and it seems that these are in your case changing after reboot.

@Ano11
Copy link

Ano11 commented Dec 17, 2014

@M66B
I have a new phone (Samsung GH-130H) with Android 4.4.2.
Now it works fine, no problems with disappearing contacts anymore ;-)

@M66B
Copy link
Owner

M66B commented Dec 17, 2014

So, it looks like this was an Android problem after all.

@Ano11
Copy link

Ano11 commented Dec 17, 2014

Well, there still seems to be an issue...
Everything looks fine in WhatsApp itself and in the phone's Contact list, however, the "Allow contacts" list in XPrivacy gets longer and longer...
Everytime I reboot a new entry is added for the selected contacts, for each allowed entry one is ticked and the others are unticked. I guess after 1,000,000 reboots this might result in an over flow error ? ;-)
Or is there another way to force XPrivacy to use the 'old' settings before the reboot?

@XS666
Copy link
Author

XS666 commented Dec 17, 2014

Hi there,

when I opened this issue I had Android 4.2.2 on my S4. I switched to 4.4.2 in April and I also had this issues after upgrading Android. Since I deleted Whatsapp in August I can't help out anymore :/

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

4 participants