[APP][FIX] Database file does not exist (Social Contact Photo Sync & CoSy) - Android Apps and Games

This thread is is related to a temporary fix for the app SCPS (Social Contact Photo Sync) & CoSy where it is unable to read the Facebook app's database file
Root Required (This fix is for the root only method)
Q. Why does this happen?
Ans. I'm not sure. I checked the logs of CoSy and it turns out it is looking for the database file in 3 locations:
[
/data/user/0/com.facebook.katana/databases/contacts_db2
/data/data/com.facebook.katana/databases/contacts_db2
/data/user/0/com.facebook.katana/databases/contacts_db2
]
The highlighted path is the storage path of the database in my phone. Since, SCPS and CoSy both have ROOT access, they were still unable to access the file. That's why I'm not sure why this error occurs. I have emailed the Developer about this and hopefully this will be fixed soon (Not even sure if it is the SCPS's problem or my phone's (OnePlus3 running Android Oreo 8.0.0 OxygenOS- 5.0.3)).
THE FIX
You will need to ROOT.
Download the official Facebook, Messenger, ES File Explorer (you can download any other root file explorer too) and SCPS apps from the PlayStore. (CoSy isn't useful because it can't import from Messenger yet)
YOU CAN SKIP THIS STEP IF YOU HAVE BEEN USING FACEBOOK FOR A WHILE
Log in Facebook and go to your profile and open the list of your friends. Scroll down a few times so it starts caching the friends data. It can take a few minutes depending on your connection and the number of your friends (You don't need to scroll all the way through all your friends, a couple of times is enough. For example, I have about a 1000 friends on Facebook and my database size was about 6MB, so it took a few seconds to cache the list).
Log in to Messenger.
Open ES or your file explorer and give it root access.
Go to /data/data/com.facebook.katana/databases/ and look for contacts_db2 file.
If the folder does not exist, check for contacts_db2 in both the paths specified above.
Copy the contacts_db2 file and go /data/data/com.facebook.orca/databases (or wherever you found your apps data to be from the above given two paths) and overwrite the contacts_db2 file over there.
Open SCPS. and click on Facebook. Select "Setup facebook" and then select "Preferred app" as "Messenger App". Let the other settings be the default and click on OK.
Click on Facebook again. This time select "Enable network".
If "Enable network" is not visible, select "Reload the network".
Voila. It should be able to read all of your Facebook friends now.
Now, you can proceed and setup Auto-Sync for your contacts.

Hi! I stumbled on your post Googling for this same problem with CoSy, but I also think I've found a simpler fix that allows CoSy to be used.
The problem appears to be a permissions issue with the Facebook app's data store. I noticed that com.facebook.orca and com.facebook.katana folders have different permissions, with the former being a more permissive 0751 (rwxr-xr-x). I changed katana's permissions to match and away it goes!

Tardeaux said:
Hi! I stumbled on your post Googling for this same problem with CoSy, but I also think I've found a simpler fix that allows CoSy to be used.
The problem appears to be a permissions issue with the Facebook app's data store. I noticed that com.facebook.orca and com.facebook.katana folders have different permissions, with the former being a more permissive 0751 (rwxr-xr-x). I changed katana's permissions to match and away it goes!
Click to expand...
Click to collapse
Oh, that makes sense why it was not able read Facebook's DB, but read Messenger's. I never bothered to check the directories' permissions.

For me basic com.facebook.orca and com.facebook.katana folders have 700 and database folder inside them has 771. Sadly can't make SCPS to sync.
Edit: set com.facebook.katana to 751 recursive and SCPS sync fine. Ty

Have same problem but... there is no "databases" in Facebook directory. I don't have Facebook directory under "root/data/data/". Why?

Related

How to create start menu item for Java program? (i.e. Gmail client?)

I think I've searched the forum pretty well, but i still can't find out how to add a start menu item to my HTC Fuze (Touch pro) gmail client (which is a java app). I've seen in other threads how to set up gmail with the native email client on the phone, but i'd like ot use the actual java gmail client without having to navigate from start menu -> java -> gmail. how do i do this?
also, how do i set the client so it's signed? it always asks me for permission to access the internet when i want to refresh or send a message. how can i sign gmail so it doesnt ask this?
thanks!
first of you ned to uninstall gmail from your midlet manager and then goto its directory and then into the appdb subdir and note the LAST "suite" file (they have a number after them) and then reinstall gmail and then go back to the appdb folder and note the NEW suite file made and then make a duplicate of any lnk in the start menu and then go into its properties and change the location to this
"Storage Card\Program Files\JBed3dMod\Jbed.exe" -run s69_"
of course adjust the above path to MATCH your midlet managers location AND THE SUITE NUMBER
any problems pm me as i will probably forget i posted here
Where can I find the midlet mannager?I installed some java apps and I don't know how to access them again!
Kostas-Pro said:
Where can I find the midlet mannager?I installed some java apps and I don't know how to access them again!
Click to expand...
Click to collapse
Well, most would likely has the word Java in the Start->Program. If you use cooked rom, it might be moved to other folder in Start->Program.
Great thanks! Just FYI to other readers: since gmail was the first midlet i installed (and i'm running ROMEOS latest which starts out with no midlets installed) then in the \windows\appdb folder there was only one suite file set to choose from (a bunch of files all starting with s1_). Thus, I created a link in the "\windows\start menu" folder with following line in the properties (including the quotation marks)
"\Windows\jbed.exe" -run appdb\s1_"
It worked! now when i click this item in the start menu, it brings up gmail. If only i could change the icon...
What about the signing problem? Whenever I refresh Gmail's inbox or try to send an email, it asks me if i'm okay with it being "untrusted". I've found other posts that explained how to use the native email client with Gmail, but I'd like to get the java gmail client to work without the repetitive questioning. How can we tell the phone to let the Gmail midlet do what it wants? (i know i know...i'll go read the wiki
Changing the security permissions
hamx0r said:
What about the signing problem? Whenever I refresh Gmail's inbox or try to send an email, it asks me if i'm okay with it being "untrusted". I've found other posts that explained how to use the native email client with Gmail, but I'd like to get the java gmail client to work without the repetitive questioning. How can we tell the phone to let the Gmail midlet do what it wants? (i know i know...i'll go read the wiki
Click to expand...
Click to collapse
Here's how to deal with the 'trust' issue with Gmail in Java from an article on pdaphonehome.com regarding the Opera Mini midlet. This works the same for the Gmail app.
Skipping the Connection Permission Prompt (Only applies to JBed)
One of the only negatives of using Jbed, over Jeodek, used to be that any time an application wanted to access to the Internet, Jbed would ask twice if you want to allow the action. It will also forget this permission next time you ran the application, so you would have to give permission every time you ran a Midlet that tried to access the Internet. Thanks to forum user g-funkster, a work around for this annoyance has been found!
1.) Copy the file \windows\appdb\selector.utf to your PC (make sure backup this file first in case something goes wrong!)
2.) Remove read-only attribute
3.) Open the file with a hex editor, and find the line
Code:
domain=untrusted, \
Replace the text untrusted with the text tckmax. Add space characters between the x (in tckmax) and the comma (otherwise connection warnings or a nullpointerexception error may occur). The above line may appear multiple times in the "selector.utf" file, each corresponds to a different Java Midlet you have installed in JBed.
Code:
domain=tckmax , \
If hex editing is too blackhat for you, g-funkster has created a desktop application that can do this for you automatically! You can find it here.
Click to expand...
Click to collapse
I used Notepad++ to edit the file and it worked perfectly.

exchange app help

Not sure if this is a known bug or whether there is a setting but when I originally set up my exchange account I accidentally added a favourite folder at the top of the inbox list. So when I open the app I see the 'favourite' folder then 'show 45 more folders' then my emails. I have even deleted that 'favouite' folder from the server but it just replaces that folder with a new 'favourite'. I have been through all the settings I can think of to remove it but this annoying folder just stays there. Even deleting the account and reinstating it again still shows this favourite folder at the top of my inbox.
Can anyone help in what I thought would be a simple removal procedure
jamesbond_28_007 said:
Not sure if this is a known bug or whether there is a setting but when I originally set up my exchange account I accidentally added a favourite folder at the top of the inbox list. So when I open the app I see the 'favourite' folder then 'show 45 more folders' then my emails. I have even deleted that 'favouite' folder from the server but it just replaces that folder with a new 'favourite'. I have been through all the settings I can think of to remove it but this annoying folder just stays there. Even deleting the account and reinstating it again still shows this favourite folder at the top of my inbox.
Can anyone help in what I thought would be a simple removal procedure
Click to expand...
Click to collapse
Anyone:crying:

Removal of favourite folder on exchange app

Not sure if this is a known bug or whether there is a setting but when I originally set up my exchange account I accidentally added a favourite folder at the top of the inbox list. So when I open the app I see the 'favourite' folder then 'show 45 more folders' then my emails. I have even deleted that 'favouite' folder from the server but it just replaces that folder with a new 'favourite'. I have been through all the settings I can think of to remove it but this annoying folder just stays there. Even deleting the account and reinstating it again still shows this favourite folder at the top of my inbox.
Can anyone help in what I thought would be a simple removal procedure

[APP][4.2+] Social Contact Photo Sync

Social Contact Photo Sync
Just try this app. It allows to link local contacts with social contacts and to keep the local contacts automatically in sync with a linked social contact.
It supports:
GooglePlus
Twitter
Instagram
Facebook (only with ROOT and the original facebook app)
WhatsApp (you have to force whatsapp to download new pictures by opening a contacts picture in whatsapp, the rest is handled by the app)
Viber (still in there, actually, this is currently not really usable, you can just link a contact with a viber picture, but you can't sync with new picutures)
The app tells you in more detail, what you have to care about, if you want to automatically sync your contact pictures...
Any feedback or suggestion is appreciated.
The app is completely free, the in app purchase just removes the adds. Functionality is free
Get the app from the playstore: Social Contact Photo Sync
Guide/Tutorial: http://www.michaelflisar.com/social-contact-photo-sync-general/
how can i force the app to automatch the contct sync???
Start the batch auto sync setup dialog and click the headers of the groups (like 90 to 100% and so on, all the way down to 0 to 10% if you really want that), this will select the complete group at once. This way you can select all your contacts and use the best match as auto sync contact...
I still advice you to once look through the list and disable or correct all the wrong matches... Afterwards my advice would be to scroll through your contacts and only look at the ones withaut an auto sync contact and if you know you have this friend in one network, manually set up those contacts one by one... This is my prefered way to do it...
PS: a complete guide is online here: http://www.michaelflisar.com/social-contact-photo-sync-general/
Is there any place where I can download older versions? Becuase I wanna test if I am doing something wrong (even if I believe I do the same as earlier) or the last 2 versions are buggy in importing facebook friends via csv copy - getting error code 14.
this error code comes from using the root method normally - just change the root method of facebook to method 3, this one should work (click on the facebook card on the home screen and click setup facebook)
If you really just want to import the csv and don't have a facebook app installed and are not rooted, then just send a feedback via the app after something went wrong...
prom85 said:
this error code comes from using the root method normally - just change the root method of facebook to method 3, this one should work (click on the facebook card on the home screen and click setup facebook)
If you really just want to import the csv and don't have a facebook app installed and are not rooted, then just send a feedback via the app after something went wrong...
Click to expand...
Click to collapse
I am on Android N Preview 3 which is not working with the root method. And meawhile, I realized that the fault is mine, not the app's. I opened the csv file with a different text editor (Solid Explorer's), not with that one which I used earlier (MiXplorer's text editor) and somehow it showed in a different format I guess which I copied and the app didn't like that. I reinstalled MiXplorer, opened the csv file with it, copy paste and now it's importing fine again.
zalcsooo said:
I am on Android N Preview 3 which is not working with the root method. And meawhile, I realized that the fault is mine, not the app's. I opened the csv file with a different text editor (Solid Explorer's), not with that one which I used earlier (MiXplorer's text editor) and somehow it showed in a different format I guess which I copied and the app didn't like that. I reinstalled MiXplorer, opened the csv file with it, copy paste and now it's importing fine again.
Click to expand...
Click to collapse
thanks for the info...
prom85 said:
Social Contact Photo Sync
[*]Facebook (only with ROOT and the original facebook app)
Click to expand...
Click to collapse
any way to avoid the dinosaur-official fb app?
Either use the non root method or just deinstall the Facebook app again after my app has imported the contacts
Opened WhatsApp image bt nothing happened.
The app says we need to manually open WhatsApp image then share it to this app then select which contact to be changed.
Sent from my XT1562 using XDA-Developers mobile app
@prom85 Could you please let me know where all the pictures are stored (exact location)?
jerryn70 said:
Opened WhatsApp image bt nothing happened.
The app says we need to manually open WhatsApp image then share it to this app then select which contact to be changed.
Sent from my XT1562 using XDA-Developers mobile app
Click to expand...
Click to collapse
The new WhatsApp changed in the way that there is no local image I could use anymore... so this new integration is all I can offer...
perce_ption said:
@prom85 Could you please let me know where all the pictures are stored (exact location)?
Click to expand...
Click to collapse
Don't know what you want to know... my app only stores the images directly in your contacts...
prom85 said:
Don't know what you want to know... my app only stores the images directly in your contacts...
Click to expand...
Click to collapse
I am just looking for the way of removing all pictures at once. Or sync-forcing (with overwritting of old pics).
perce_ption said:
I am just looking for the way of removing all pictures at once. Or sync-forcing (with overwritting of old pics).
Click to expand...
Click to collapse
Whereever your Android contacts app does save it. Normally it's a database.
You can force my app to auto sync all contacts without checking if an image was changed though, go to general settings, click on advanced settings and click on the last entry in the dialog that pops up... afterwards an auto sync will overwrite an contacts image with an active auto sync without checking if the images has changed or not
I just purchased the pro version! I have had android for seven or eight years but never really had correct contact photos so thank you for this wonderful app. It makes it so easy. I noticed this app's logo shows the linkedin logo but syncing with the linkedin network isn't obvious to me. How can I do this?
LinkedIn is not working anymore. I had a root method that worked once, but then they changed their app and now this method is not working anymore.
Official LinkedIn integration is not possible either (via login to LinkedIn), I already tried it but they won't accept my app. As a primary business network they do not accept apps that access data in background without direct user interaction, this is against their usage rules.
I'm still getting the {"code": 403, "error_type": "OAuthForbiddenException", "error_message": "You are not a sandbox user of this client"} when trying to add Instagram. Just wanted to know if everyone else is still seeing this?
westhaking said:
I'm still getting the {"code": 403, "error_type": "OAuthForbiddenException", "error_message": "You are not a sandbox user of this client"} when trying to add Instagram. Just wanted to know if everyone else is still seeing this?
Click to expand...
Click to collapse
Everyone should have this error... LinkedIn changed their usage rules at 01.06.2016, so I had to submit my app again and currently am waiting for approval... I'm not sure if they will though...
I have the same error code.

Android WhatsApp - Revoke Contacts Permission while offline, app won't update

Hi. I want to be able to change my settings for WhatsApp while offline. Specifically, if I've granted contacts permission, once I'm offline I'd like to be able to revoke contacts permission and then see it reflected the next time I open WhatsApp (so no contact names are see for chats/calls). If I just do the basic steps, this does not happen. I need to connect to wifi or a network to see the change.
Is there a way to get around this?

Categories

Resources