Facebook Contact Sync for Lollipop AOSP/CM12/CM12.1 ROMs - Miscellaneous Android Development

UPDATE 29/03: Added version for Lollipop 5.1 (tested on CM12.1/AOSP ROMs).
UPDATE: Fixed zip file.
I have compiled a modified Lollipop ContactsProvider to allow the Facebook app to sync contacts on CM12/AOSP based ROMs.
To install:
Download the attached recovery flashable zip and copy it to your phone.
Clear data for the Facebook app and Contacts Storage (Apps > All). VERY IMPORTANT.
Reboot into recovery and flash the zip file.
When you log back into the Facebook app you may see the option to enable contact sync, if not it will appear at the bottom of the App Settings screen.
If you find your contacts are not appearing after enabling in the FB app, do the following:
Open a command prompt
adb shell
su
sqlite3 /data/data/com.android.providers.contacts/databases/contacts2.db 'ALTER TABLE raw_contacts ADD COLUMN is_restricted VARCHAR';
try the previous step a second time and if it was successful you will be told it already exists.
Reboot
This has been tested and works perfectly on a Galaxy S5 and HTC One M7 with both CM12 and AOSP based ROMs, but I would advise as always making a backup of things before flashing. I take no responsibility for any brickage that may occur.

Thanks, it's working (from the App Settings screen)!

bradstewart said:
UPDATE: Fixed zip file.
I have compiled a modified Lollipop ContactsProvider to allow the Facebook app to sync contacts on CM12/AOSP based ROMs.
To install:
Download the attached recovery flashable zip and copy it to your phone.
Clear data for the Facebook app and Contacts Storage (Apps > All). VERY IMPORTANT.
Reboot into recovery and flash the zip file.
When you log back into the Facebook app you may see the option to enable contact sync, if not it will appear at the bottom of the App Settings screen.
This has been tested and works perfectly on a Galaxy S5 and HTC One M7 with both CM12 and AOSP based ROMs, but I would advise as always making a backup of things before flashing. I take no responsibility for any brickage that may occur.
Click to expand...
Click to collapse
@bradstewart would you be able to type up a tutorial on what you edited to get facebook sync working I'm waiting to get this working on 5.1.

sapplegater said:
@bradstewart would you be able to type up a tutorial on what you edited to get facebook sync working I'm waiting to get this working on 5.1.
Click to expand...
Click to collapse
Version for 5.1 has been added.

killed my system. crash loop of android acore. am on cos12 on oneplus one.

KingNothingUA said:
killed my system. crash loop of android acore. am on cos12 on oneplus one.
Click to expand...
Click to collapse
It works on the oneplus you have to clear the fb app and contacts storage again while its crashing and once you wipe them it will stop I'm using it now on the cm12.1 nightly..

bradstewart said:
UPDATE 29/03: Added version for Lollipop 5.1 (tested on CM12.1/AOSP ROMs).
UPDATE: Fixed zip file.
I have compiled a modified Lollipop ContactsProvider to allow the Facebook app to sync contacts on CM12/AOSP based ROMs.
To install:
Download the attached recovery flashable zip and copy it to your phone.
Clear data for the Facebook app and Contacts Storage (Apps > All). VERY IMPORTANT.
Reboot into recovery and flash the zip file.
When you log back into the Facebook app you may see the option to enable contact sync, if not it will appear at the bottom of the App Settings screen.
If you find your contacts are not appearing after enabling in the FB app, do the following:
Open a command prompt
adb shell
su
sqlite3 /data/data/com.android.providers.contacts/databases/contacts2.db 'ALTER TABLE raw_contacts ADD COLUMN is_restricted VARCHAR';
try the previous step a second time and if it was successful you will be told it already exists.
Reboot
This has been tested and works perfectly on a Galaxy S5 and HTC One M7 with both CM12 and AOSP based ROMs, but I would advise as always making a backup of things before flashing. I take no responsibility for any brickage that may occur.
Click to expand...
Click to collapse
Can you make a 5.1.1 version?

Ragarianok said:
Can you make a 5.1.1 version?
Click to expand...
Click to collapse
I'm not running 5.1.1 myself yet so if somebody wants to supply a ContactsProvider.apk from a deodexed 5.1.1 ROM I should be able to mod it.

bradstewart said:
I'm not running 5.1.1 myself yet so if somebody wants to supply a ContactsProvider.apk from a deodexed 5.1.1 ROM I should be able to mod it.
Click to expand...
Click to collapse
Not really sure what you mean by deodexed. :/ But here's the the contactsprovider.apk from CM12.1 (5.1.1).

Anything for 5.1.1 yet?

bradstewart said:
I'm not running 5.1.1 myself yet so if somebody wants to supply a ContactsProvider.apk from a deodexed 5.1.1 ROM I should be able to mod it.
Click to expand...
Click to collapse
Can you just tell us how to mod the apk?

wee woo wee woo

Ragarianok said:
Can you just tell us how to mod the apk?
Click to expand...
Click to collapse
Ragarianok you find anything out lol?

n00b Samurai said:
Ragarianok you find anything out lol?
Click to expand...
Click to collapse
I cracked it!
I managed to mod the contactsprovider.apk from cm12 (5.1.1). You'll have to copy it over to system/Contacts Provider and change permissions to 644. Then reboot.
You might also have to do that extra thing in the first post in this thread (making a new column), but you can do that in Terminal Emulator from the Play Store.

Ragarianok said:
I cracked it!
I managed to mod the contactsprovider.apk from cm12 (5.1.1). You'll have to copy it over to system/Contacts Provider and change permissions to 644. Then reboot.
You might also have to do that extra thing in the first post in this thread (making a new column), but you can do that in Terminal Emulator from the Play Store.
Click to expand...
Click to collapse
If you don't mind me asking what you did mines working but its not doing quite right I have to keep re-adding the tables and it syncs all contacts instead of existing like I pick xD

n00b Samurai said:
If you don't mind me asking what you did mines working but its not doing quite right I have to keep re-adding the tables and it syncs all contacts instead of existing like I pick xD
Click to expand...
Click to collapse
What I did was:
-Uncheck Google Contacts sync
-Remove Facebook account
-Clear Data for Contacts Storage
-Copy ContactsProvider.apk to system/priv-app/ContactsProvider
-Reboot
-Add table with Terminal Emulator (after clearing data again, if necessary due to errors on boot)
-Re-check Google Contacts sync
-Login to Facebook
-Go to app settings
-Scroll down to Sync Contacts
-Choose either Sync All or Existing
I usually just sync all.

Ragarianok said:
What I did was:
-Uncheck Google Contacts sync
-Remove Facebook account
-Clear Data for Contacts Storage
-Copy ContactsProvider.apk to system/priv-app/ContactsProvider
-Reboot
-Add table with Terminal Emulator (after clearing data again, if necessary due to errors on boot)
-Re-check Google Contacts sync
-Login to Facebook
-Go to app settings
-Scroll down to Sync Contacts
-Choose either Sync All or Existing
I usually just sync all.
Click to expand...
Click to collapse
yep i did that XD its just not wanting to sync existing only lol
---------- Post added at 11:28 AM ---------- Previous post was at 11:06 AM ----------
trying to figure out what bradstewart did to make his work just right I remembered this link http://niranjanthilak.com/facebook-sync-for-android-ics-devices/ for ICS but it seems to be the same basic concept to make it work here....

n00b Samurai said:
yep i did that XD its just not wanting to sync existing only lol
---------- Post added at 11:28 AM ---------- Previous post was at 11:06 AM ----------
trying to figure out what bradstewart did to make his work just right I remembered this link http://niranjanthilak.com/facebook-sync-for-android-ics-devices/ for ICS but it seems to be the same basic concept to make it work here....
Click to expand...
Click to collapse
I'm really not sure what he did, but it's working for me... even it's a little tedious. I think I did pretty good for a beginner.

You did awesome man and I appreciate it I was just curious as to what exactly he did lol

Pics are blurry!
The sync works, thanks a lot about it. But is there any way to make the sync download high res pics from facebook to contacts ? All the synced pics are blurry :/

Related

[MOD!] GMail Application (GB + HC + ICS!) [EXTERNAL APP ACCESS ENABLED!]

UPDATE 3
--------------
Added modified GMail v3.2.1 for HC and GMail v4.0.3 for ICS based ROMs. Make sure you download the right one for your OS (GB, HC, or ICS).
--------------
Hey guys, for those of you who didn't know, the Gmail application now RESTRICTS access to your emails by third party apps. This basically means that any app that needs access to your email database (for example, Pure Messenger Widget) will be LOCKED OUT and therefore Gmail will be disabled in said application.
So I went ahead and modified the latest Gmail apk to ALLOW EXTERNAL ACCESS to re-enable support for apps that require it. Hope this helps anyone who needed it.
Install Instructions (YOU MUST BE ROOTED!)
--------------------------------------------------------------------------
0) DOWNLOAD CORRECT VERSION FOR YOUR OS AND RENAME TO Gmail.apk
1) Open Root Explorer (or any other root file manager you like)
2) NAVIGATE to /data/app
3) DELETE com.google.android.gm-1.apk (it might say com.google.android.gm-2.apk for some people or it may not exist at all)
4) NAVIGATE to /system/app
5) Mount Read/Write
6) DELETE Gmail.apk
7) COPY new modified Gmail.apk into /system/app
8) CHANGE permissions to Owner = read/write, Group = read, Others = read.
---(The following may not be necessary but its HIGHLY RECOMMENDED!)---
9) REBOOT into Recovery
10) Wipe Cache/Dalvik-Cache/Fix Permisions
------------------------------------------------------------------------
11) REBOOT!
NOTE: Some apps may require you to uninstall and reinstall the program before it is able to see the change in Gmail (for example, Pure Messenger Widget)
DON'T FORGET TO HIT THE THANKS BUTTON!
APK Re-added.
I was having issues with regards to getting the app to show up after reboot but realized it wasn't actually a problem with the modification, but it was a problem with the permissions.
lol guess i was the only one who needed this... ah well, if anyone needs it its here, hopefully people know how to use the search
lol...dont worry dude.. keep up the great work..!!
Thanks for this! Google are a bunch of tight ass losers for restricting access to Gmail...
Oz
BULL3TPR00F said:
lol guess i was the only one who needed this... ah well, if anyone needs it its here, hopefully people know how to use the search
Click to expand...
Click to collapse
Thanks for this, I've been looking for a way to make LED Flow change the LED color for emails from different contacts!
No problem everyone, I will keep this thread updated with newer modified versions as Google releases them.
What do you mean when you say "mount read/write" in step 5?
Nevermind, I figured it out. Explorer didnt allow me to mount r/w or change permissions so I installed Root Explorer and worked it out.....much better file system explorer btw. Thanks for the tutorial.
via x10i WB GB v4.0 edition
Uploaded hacked version of the newest Gmail application (v2.3.5.2).
Now we can have gmail timescape for the latest app
Yeah sorry i took so long to upload the new version, my phone has been disconnected for a few months now so i dont use it too much lol.
BULL3TPR00F said:
Yeah sorry i took so long to upload the new version, my phone has been disconnected for a few months now so i dont use it too much lol.
Click to expand...
Click to collapse
It doesn't seem to work with Launcher Pro's Gmail widget :/
Thanks for this. Just put it on my SGS, now SlideScreen works again, fully .
make sure keep this updated LOL
Slidescreen is back in businesssssss!
Subscribed
It works, thanks.
Working, nice job man, thanks!
Cant get this to work with slidescreen, but it works with launcherPro :s
THanks for this, it's exactly what I've been looking for however I seem to get stuck doing the steps involving pasting into system/data basically nothing ever pastes there despite me setting the read write permissions as suggested. Guy who got slidescreen working using this how exactly did you go about it? exactly as described?
Thanks so much for this fantastic hack!
Mind letting us know exactly what you did?
I ask because I'm using I'm already using a modded themed apk, and obviously I can't use both at the same time.

[PORT][MANY-IN-ONE]Music,Keyb,FB,Home,Gallery,TS,TM - apps from 2.3.4 for x10

Hi,
BIG CREDITS to Blackwatch89, kantk20111, tyris, chriscx, vmcms, IncubusUA... all helping people
ONLY a PART IS MY WORK
IMPORTANT:
If you installed any previouse applications from 2.3.4 use your backup to get not mixed rom.
Please be sure your phone contain only x10 2.3.3 files!
contains:
- music player, FB2 and Home
- swipe keyboard, thanks to Blackwatch89
- releated framework
- dlna app
- several widgets
- timescape with widget and plugins
- auto-brithness is now as a widget not in menu
- data monitor
- Gallery3D thx tyris
- TrackID (I noticed only loading animation is new)
- Email (count notification in icon)
- contacts storage (landscape possible when contact detail is showed) (i think old was the reason why FB contacts sometimes doubled)
- setup wizard
- theme manager (set only wallpaper)
- ...
Before flash:
- remove fb account from phone
MAKE BACKUP BEFORE USE
flash this:
flashable zip HERE, only for not modified stock 2.3.3 ROM
NOTE: If you were on v4 flash also original battery icon or battery icon in %.
Thx vmcms. I used framework.jar and framework-res.apk from vmcms's thread in v4. I learn from the files.
After flash:
- wipe cache
- wipe delvik cache
- widgets must be readded with the new Home
Troubles?
- in case of trouble with FB:
--- go on http://www.facebook.com/settings/?tab=applications and remove all xperia releated aplications, the phone will ask for permition again - thx Zulea for try and confirm solution
--- remove all facebook accounts from phone, reboot and add again
- in case of trouble with contacts - FB contacts doubled - Make sure you dont use contacs in phone but with the google account. Then go to Setting/Apps/Manage apps/All and delete data for Contact Storage. This will remove all contact in your phone. Then reboot and let the phone to sync and download all contacts again.
- in case of stuck at SE boot logo: reboot
Port also works well on Wolfbreak v6. Read this and this.
On WB v6 DLNA application FC - solution go into system/app and reinstall DLNA.
If you have xlaud and bravia flash this.
I used files from newest ROM 4.0.1.A.0.283 in the zip.
MAKE BACKUP BEFORE USE
New timescape and theme manager not worked yet.
New versions will come slow, sorry. I dont have many time now and need to do other things. I started this instead of asking for that - because no one other did. I just wanted the new keybord on the begin... I dont have proper knowledges to provide real support. Im going to improve my knowledges in this craft, which is not "three days task". Sorry if i will not answear all posts. I will try my best as much as is in my possibilities. I just share this with no guarantee. Feel free to make it better and provide I did not expect so many downloads. It makes me feel responsible but im not sure if am able to meet the accountability. Will try my best
This is what I do befor testing - get wiped and clean rom. I think the easiest way.
oldfiles do not use:
flashable zip BETA version 3 HERE, only for not modified stock 2.3.3 ROM
update from v2 to v3 HERE, only for stock 2.3.3 ROM with v2
flashable zip BETA version 2 HERE, only for not modified stock 2.3.3 ROM
files from LT18i_2.3.4_Build_4.0.1.A.0.266
This file contains:
-x10i 2.3.3 stock system apps it will overide almost all stock aps!
-x10i 2.3.3 stock framework except framework.jar and framework-res.apk....
ALL IN ONE FILE INTENDED FOR STOCK 2.3.3 HERE
THEN INSTALL THIS FIX 3 FILE
previouse fixes (only history, dont use)
Fix 1
Fix 2
This is my system.img with v2.
thank you so much
nice work man! thanks for porting all that stuff..
Z3US911 said:
nice work man! thanks for porting all that stuff..
Click to expand...
Click to collapse
Does it work?
EDIT: I don't care, just made backup Sorry for stupid question
I'm testing, it seems to work, Ive been able to share an app to facebook, I continue to test----
Ok, using for few minutes
- app share works
- media discovery etc. works
- music works
- widgets works
Some little issues: it is still asking for permissions (Facebook Inside Xperia) and Running Services FC
player works fine
FC with Timescape when trying to update events: closes com.sonyericsson.eventstream.extensions
in appshare app: my apps: connection error (i have french version so i translate about)
in account and sync: i have problem of sync for facebook inside xperia : only the with ALBUM
Is screen capture included?
Remove all fb accounts, go to appmanager, show all aps, remove all manualy. installed fb applications showed as updates, delete data for all fb releated apps, reboot and try to add account again... I think still is. Mixed FB1 and FB2. It maybe shows double fb accounts in your accounts.
neerajk said:
Is screen capture included?
Click to expand...
Click to collapse
No but im gonna test in installing screencapture.apk
EDIT: not like this, nothing in power menu
---------- Post added at 10:30 PM ---------- Previous post was at 10:15 PM ----------
_smurf said:
Remove all fb accounts, go to appmanager, show all aps, remove all manualy. installed fb applications showed as updates, delete data for all fb releated apps, reboot and try to add account again... I think still is. Mixed FB1 and FB2. It maybe shows double fb accounts in your accounts.
Click to expand...
Click to collapse
could you make me a list of apps to remove ?
EDIT: I removed personnal account: sync seems ok, still problem with timescape widget, im not sure which version I have: I see on the widget update and status above timescape widget
chriscx said:
No but im gonna test in installing screencapture.apk
EDIT: not like this, nothing in power menu
---------- Post added at 10:30 PM ---------- Previous post was at 10:15 PM ----------
could you make me a list of apps to remove ?
Click to expand...
Click to collapse
I hope yes. Its mixed in the zip not only in your phone. I played with the accounts and now it is working... I had repeated requests too when I removed accounts.
in app manager, there is only facebook 1.7.1 facebook extension 2.0.12 and semcfacebookproxy, widget timescape 3.0.1
so it must be eventstream apks ?
EDIT: I think I see a bit: I have timescape 0.9.6 the app, not the widget. and I guess it should be timescapeSpline 1.0.21 but if i install this it's getting worst
for all: delete /system/app/SEMCFacebookService.apk This file is not necessary anymore
_smurf said:
for all: delete /system/app/SEMCFacebookService.apk This file is not necessary anymore
Click to expand...
Click to collapse
I did it now
I have timescape 0.9.6 by the way
still FC in the widget
and still connection error in app-share app
EDIT: keyboard works great
for me it's not urgent anymore with facebook, relax !
I can confirm that you can remove SEMCFacebookService.apk it's not needed, and because of it you get constantly prompted for FB login.
I didn't try this, but installed everything with old methods, and removed SEMCFacebookService.apk before loging in FB for first time.
very nice, thanks
install please first fix: http://www.mediafire.com/?dybasc3zn6la5rj it will remove the file and add 2 next files from LT18i which i found suitable.
I just removed fb accounts and add back and it works great
com.sonyericsson.dlna
com.sonyericsson.eventstream.facebookplugin
force close on phone start
ps: i just made a clean install "full wipe...", installed wolf v6 stock on dooms stock kernel "bootloader unlocked"
just flashed wolf rom, wifi fix of the kernel, keyboard language, xloud&bravia..., and the 2 zips from the first post
Edit: i'm not able to log on my facebook account on timescape (i had the same issue when i deleted SEMCFacebookService.apk few days ago)
mordebip said:
com.sonyericsson.dlna
com.sonyericsson.eventstream.facebookplugin
force close on phone start
ps: i just made a clean install "full wipe...", installed wolf v6 stock on dooms stock kernel "bootloader unlocked"
just flashed wolf rom, wifi fix of the kernel, keyboard language, xloud&bravia..., and the 2 zips from the first post
Edit: i'm not able to log on my facebook account on timescape (i had the same issue when i deleted SEMCFacebookService.apk few days ago)
Click to expand...
Click to collapse
dlna works fine for me, timescape trouble confirmed
edited:
timescape fixed... uploading in the first post in a sec
so about the fix1, i didnt change for me, it was messy to sync again
the game/app app, it works half: the tab popular and recent work, but the tab myapps doesnt work well, sometimes connection error, only once it has worked, i clicked on all the tabs and it worked.
i have french version menu and tab may have other names...
im gonna check for timescape

[REF] CM9/CM10 apps, CWM flashable

Update: Feb. 26, 2013 - Added CM10.1 Email app (Email2.apk). Delete existing Exchange account off the device, flash Email2.apk zip (listed below), reboot, clear data on 'Email' and 'Exchange Services' apps, re-setup Exchange account on device. Exchange services may FC once or twice, but will then work fine and begin syncing email/contacts/calendars.
Update: Oct. 15, 2012 - Update Genie Widget to version from Google apps 10.11.2012 (v 4.1.2)
Update: Oct. 11, 2012 - Existing apps tested with CM10 10112012 M2 build, confirmed working. Also added CM10 Email app, and bumped Nova Launcher to current 1.3.1 build.
Here are a couple of CWM flashable apps for CM9/CM10 that I've put together. Each zip is configured with the addon.d backup and restore functionality so that the app is automatically backed up and restored as part of flashing a nightly build. No need to reinstall them every time.
Installation: Download the zip(s) to your phone, reboot into cwm recovery, flash one or more of the zip packages, and then reboot.
I'll add more if there are specific requests.
Google apps (ics) 04.29.2012: gapps-ics-20120429-signed.zip
Google apps (jb) 10.11.2012: gapps-jb-20121011-signed.zip
-- Not my work, just linking for convenience.
WISP Service: wisp-service-cwm.zip -- This is the AT&T Hot Spots service that performs automatic login to AT&T WiFi networks such as attwifi, hhonors, or other AT&T WiFi provided networks.
Email Exchange (CM9) : cm-9-EmailExchange-4.1-nosec-cwm.zip -- This is the Email.apk and Exchange.apk 4.1 for the latest CM9 nightly builds which has been modified to disable the Device Administrators policy.
Email (CM10): cm-10-Email-4.1-nosec-cwm.zip -- CM10 Email.apk with Device Administrators disabled.
Email (CM10.1): cm-10.1-Email-4.1-nosec-cwm.zip -- CM10.1 Email2.apk with Device Administrators disabled.
Nova Launcher 1.3.1: NovaLauncher-1.3.1-cwm.zip -- This is the stock Nova Launcher 1.3.1 packaged with the addon.d functionality. Did not touch the apk, provided for convenience.
Digital Clock Widget: digital-clock-cwm.zip -- This is the digital clock widget from the stock AT&T rom with the touchwiz references removed so that it will run on CM9.
Digitial Clock Widget (transparent background): digital-clock-transparent-cwm.zip -- Same as digital clock above, but with transparent background.
Digitial Clock Widget (JB UCLK4 leak): digital-clock-jb-tw-cwm.zip -- Digitial clock from UCLK4 JellyBean leak (transparent, updated font.)
Genie Widget (transparent background): geniewidget-transparent-cwm.zip -- Stock Gapps News & Weather widget with a transparent background, instead of black. Note: flash this after gapps zip if you are flashing both, otherwise gapps version will overwrite this one. 10/15/2012 - Updated to gapps-jb-20121011 version (v 4.1.2).
Added digital clock widget to OP.
Added digital clock and genie widget with transparent backgrounds to OP.
Nice work cschmitt. Is there any way you can do the same mod work to the actual clock application? Would be nice to have the Samsung alarm clock, stop watch and timer app.
Thanks.
The stock clock package has a bunch of touchwiz dependencies.
cschmitt said:
The stock clock package has a bunch of touchwiz dependencies.
Click to expand...
Click to collapse
After posting on your thread I did more searching and found someone else already trying to do it. Yeah, it looks like it has deep ties into touchwiz. Oh well, one of the things to miss when going away from the samsung rom. I can find all of the functions scattered around the market and xda, but nobody does a real good job of building an all-in-on clock app. Found alarm clock ultra, probably the closest.
Thank you.
osiedacz said:
After posting on your thread I did more searching and found someone else already trying to do it. Yeah, it looks like it has deep ties into touchwiz. Oh well, one of the things to miss when going away from the samsung rom. I can find all of the functions scattered around the market and xda, but nobody does a real good job of building an all-in-on clock app. Found alarm clock ultra, probably the closest.
Thank you.
Click to expand...
Click to collapse
BeautifulWidgets is pretty good. It's like $2.99 or something like that, but it's a really nice set of widgets that includes clock, weather, alarms, and its got a nice look.
aycockonxion said:
BeautifulWidgets is pretty good. It's like $2.99 or something like that, but it's a really nice set of widgets that includes clock, weather, alarms, and its got a nice look.
Click to expand...
Click to collapse
Thanks, I actually own it. I was really looking more for the clock app, with the stop watch, timer, world clock and alarm. The Samsung app is pretty nice. Both the one from our skyrocket and the one from the s3.
Sent from my Transformer Prime TF201 using Tapatalk 2
I love these and still use some of them. (The no security exchange is amazing)
Is there any need to update these for CM10? The email still works with the CM10 nightlies, I was just curious if there's a benefit to using the newer apk's
I saw a topic about how to remove the security settings, but making it flashable and having it restore after nightly updates is confusing me still
Thanks!
burgeswe said:
I love these and still use some of them. (The no security exchange is amazing)
Is there any need to update these for CM10? The email still works with the CM10 nightlies, I was just curious if there's a benefit to using the newer apk's
I saw a topic about how to remove the security settings, but making it flashable and having it restore after nightly updates is confusing me still
Thanks!
Click to expand...
Click to collapse
Like the Genie, your wish is my command...
Check the OP, added CM10 Email.apk from cm-10-20121011-EXPERIMENTAL-skyrocket-M2 build. Note that in CM10 only the Email.apk needed to be modified to disable Device Administrators, so Exchange2.apk wasn't touched.
Bumped Nova Launcher package to current 1.3.1 build.
The remaining apps in the OP function just fine in CM10.
cschmitt said:
Like the Genie, your wish is my command...
Check the OP, added CM10 Email.apk from cm-10-20121011-EXPERIMENTAL-skyrocket-M2 build. Note that in CM10 only the Email.apk needed to be modified to disable Device Administrators, so Exchange2.apk wasn't touched.
Bumped Nova Launcher package to current 1.3.1 build.
The remaining apps in the OP function just fine in CM10.
Click to expand...
Click to collapse
Thank you so much!
Sent from my SAMSUNG-SGH-I727 using xda premium
Flashed the Exchange CM10 package on my GNexus and still getting a device administrators prompt on CM10. Does this only work on the GSII?
Crion629 said:
Flashed the Exchange CM10 package on my GNexus and still getting a device administrators prompt on CM10. Does this only work on the GSII?
Click to expand...
Click to collapse
You will still get the prompt, but the device administration won't be enabled.
cschmitt said:
You will still get the prompt, but the device administration won't be enabled.
Click to expand...
Click to collapse
I followed up by looking at the enabled device administrators section of security settings and sure enough email was listed in there. Does it show up but not take effect? The version I had previously on a 4.1.1 ROM worked and I never got prompted and it never showed up in the device administrators either.
Crion629 said:
I followed up by looking at the enabled device administrators section of security settings and sure enough email was listed in there. Does it show up but not take effect? The version I had previously on a 4.1.1 ROM worked and I never got prompted and it never showed up in the device administrators either.
Click to expand...
Click to collapse
There should be no entry for Email under Device Administrators.
I just tested this a couple of times this morning. Wiped the phone, flashed CM10.0.0, flashed cm-10-Email-4.1-nosec-cwm.zip, factory reset, reboot. (Not the it's necessary to wipe and factory reset, just wanted to ensure a clean slate for the test.)
Opened Email to configure exchange account, was prompted with 'Remote security administration', The server .... requires that you allow it to remotely control some security features...', clicked OK, but there was no second prompt to activate the Device Administrator and there is no Email configuration under Security -> Device administrators.
Just to be clear, if an exchange account is currently configured, it must first be deleted along with the corresponding Device Administration entry. Then flash cm-10-Email-4.1-nosec-cwm.zip, reboot, and re-configure the exchange account.
cschmitt said:
There should be no entry for Email under Device Administrators.
I just tested this a couple of times this morning. Wiped the phone, flashed CM10.0.0, flashed cm-10-Email-4.1-nosec-cwm.zip, factory reset, reboot. (Not the it's necessary to wipe and factory reset, just wanted to ensure a clean slate for the test.)
Opened Email to configure exchange account, was prompted with 'Remote security administration', The server .... requires that you allow it to remotely control some security features...', clicked OK, but there was no second prompt to activate the Device Administrator and there is no Email configuration under Security -> Device administrators.
Just to be clear, if an exchange account is currently configured, it must first be deleted along with the corresponding Device Administration entry. Then flash cm-10-Email-4.1-nosec-cwm.zip, reboot, and re-configure the exchange account.
Click to expand...
Click to collapse
I'm still getting the Device Administrator prompt. This is the first time setting up the account on CM10 so it didn't exist previously. My process is, reboot into cwm, wipe data/factory reset, wipe cache, wipe dalvik cache, install cm-10-toro.zip, install gapps, reboot, setup gmail, install apps from play store, update apps (if necessary), reboot into cwm, flash cm-10-Email-4.1-nosec-cwm.zip, reboot, setup exchange and I still get the device admin prompt.
I went into root explorer and found that the date/time stamps for the email.apk and exchange.apk under /system/app looked to be from 2008 so it appears that they are not updating when the zip is flashed. Went ahead and manually copied the email.apk from the zip into /system/app and didn't get a device administrator prompt but the exchange service fc'd. I'm guessing it's because I don't have a corresponding exchange.apk. I thought of extracting the two apks from my old rom but that one was not built off aosp so I think the files are emailgoogle.apk and exchange2google.apk so I don't think those will work. Any other ideas?
Anything flashed while in recovery will have an 2008-08-01 file date.
I haven't tested it on anything other than a Skyrocket-- should work, but can't guarantee it and have no way to test on other hardware.
BTW, I've experienced the Exchange FC once or twice when initially syncing an exchange account, just re-opened Email after the FC and it worked fine.
Are you installing the appropriate gapps package first?
Wipe - install cm10 - install gapps - install this email zip
If you are copying the apks manually, you will just copy the email apk from the zip into system, then change permissions on the apk, and then clear data for email and exchange
I've run this package on both the gapps from July and the ones from October that rpr had in his nightly builds
Sent from my SAMSUNG-SGH-I727 using xda premium
cschmitt said:
Anything flashed while in recovery will have an 2008-08-01 file date.
I haven't tested it on anything other than a Skyrocket-- should work, but can't guarantee it and have no way to test on other hardware.
BTW, I've experienced the Exchange FC once or twice when initially syncing an exchange account, just re-opened Email after the FC and it worked fine.
Click to expand...
Click to collapse
Got it working. Had to manually move the files over instead of flashing from cwm but it worked after the one exchange fc.
burgeswe said:
Are you installing the appropriate gapps package first?
Wipe - install cm10 - install gapps - install this email zip
If you are copying the apks manually, you will just copy the email apk from the zip into system, then change permissions on the apk, and then clear data for email and exchange
I've run this package on both the gapps from July and the ones from October that rpr had in his nightly builds
Sent from my SAMSUNG-SGH-I727 using xda premium
Click to expand...
Click to collapse
I did precisely what you said first, twice and i still got the entry in Device Administrators. Not sure what's up. GNex and CM10 stable, etc.
Got it working. Had to manually move the files over instead of flashing from cwm but it worked after the one exchange fc.
Click to expand...
Click to collapse
Did this and it worked. For any newbies like me make sure you move the \system\app\email.apk to your root \system\app\ and replace the other one. After that make sure it has Owner Read/Write permissions, Group read, and Others read permissions. Then clear data and execute it from that folder to install.

[APP][Updated 2015-11-12] HTC One A9 Camera/Gallery/Editor for Marshmallow GPE

I pulled the Camera (Camera2), Gallery (HMS_Gallery_GP) and Photo Editor (HMS_PhotoEnhancer_GP) apps from LlabTooFeR's A9 dump (link). I wanted to see if they'd work on my GPE-converted HTC One M8 running Android Marshmallow 6.0 (MRA58K).
Update: I've uploaded a new version that I hope works without needing to flash the APK afterwards. Additionally, at least for me, the Photo Editor is now working, including some of the Duo effects that haven't worked on my GPE for a long time. UFocus and Foregrounder don't appear to be working correctly, but at least they don't FC.
Flashable zip. I use TWRP2. Root is required.
Please note: It's been pointed out to me that the standard GPE image leaves very little space in the system partition. Not enough for the HTC apps, which are sort of large. If you're seeing that the zip isn't flashing correctly, please clear some space on your system partition (removing unwanted System G/Apps), before flashing.
Thanks to Arkaydez for some debugging.
Thanks to danial.aw for pointing out issues with GPE system partition size.
Post back with your experience. I'd like to know if it's working for everyone.
Download (Version 2)
Just flashed, Camera app showed up but force closes. Neither the Gallery or Editor app are installed.
j91hernandez said:
Just flashed, Camera app showed up but force closes. Neither the Gallery or Editor app are installed.
Click to expand...
Click to collapse
Thanks for giving it a try and feeding back. Feeling like helping me debug it?
Here's my experience when I flash it:
- When the phone restarts, there is a permission request waiting for the Gallery app.
- When you start the camera app, it requests three permissions.
- The applications and their associated libraries are installed to:
/system/priv-app/Camera2/
/system/priv-app/HMS_Gallery_GP/
/system/priv-app/HMS_PhotoEnhancer_GP/
Does your experience reflect that?
Thanks!
2 days ago I just downloaded this A9 camera from Google Play. It installed normally, for first run it asked for permission and work great. But every next open cause FC. Anyway, I think that original camera app from M8 is better, it is also to download from GP and doesn't FC.
I flashed the zip and Apps isnt shown in the menu. So I opened the zip and installed the apk's manually. Camera and Photo Editor gave FC. Gallery is opened but didnt show any pic.
Didnt work for me.
My rom is GPE Android 6.0 - Build MRA58K.H6
saslann said:
I flashed the zip and Apps isnt shown in the menu. So I opened the zip and installed the apk's manually. Camera and Photo Editor gave FC. Gallery is opened but didnt show any pic.
Didnt work for me.
My rom is GPE Android 6.0 - Build MRA58K.H6
Click to expand...
Click to collapse
You can't install the apks manually, unfortunately. They need to go into priv-app, since they require system permissions. That's what's causing the FCs. If you've installed them, and they're sitting in /system/app, you can move them (root explorer, etc.) to /system/priv-app. Then at least the camera and gallery should work.
grzybiarz91 said:
2 days ago I just downloaded this A9 camera from Google Play. It installed normally, for first run it asked for permission and work great. But every next open cause FC. Anyway, I think that original camera app from M8 is better, it is also to download from GP and doesn't FC.
Click to expand...
Click to collapse
Interesting. Unfortunately, for me, when I go to Google Play, it tells me that both versions of the HTC camera (Camera and Camera2) are incompatible with my phone and won't let me install. I assumed that's because it was a GPE. If you download and install from APK Mirror, or install it from the market somehow, I think that it puts the APKs and libraries into /system/app, which will cause it to FC. The camera assumes it's pre-installed into /system/priv-app, and is therefore entitled to system permissions. When it's installed to /system/app, it makes system storage calls, which aren't allowed, and FCs.
That's why I thought the flashable zip would be the way to go.
I was able to avoid all the FC's by 1st flashing your zip and then installing the a9 cam apk from apk mirror. b
arkaydez said:
I was able to avoid all the FC's by 1st flashing your zip and then installing the a9 cam apk from apk mirror. b
Click to expand...
Click to collapse
Link please
hoang555 said:
Link please
Click to expand...
Click to collapse
Here's the APK Mirror link.
arkaydez said:
I was able to avoid all the FC's by 1st flashing your zip and then installing the a9 cam apk from apk mirror. b
Click to expand...
Click to collapse
Thanks for that. I had previously installed the APK from APK mirror, so maybe there's some secret sauce missing from the zip. Does the Photo Editor work for you now, or does it still FC?
[deleted]
How about slow motion video? Is it working?
WonderTwinPowersActivate said:
You can't install the apks manually, unfortunately. They need to go into priv-app, since they require system permissions. That's what's causing the FCs. If you've installed them, and they're sitting in /system/app, you can move them (root explorer, etc.) to /system/priv-app. Then at least the camera and gallery should work.
Click to expand...
Click to collapse
hi...what i did was to push the latest camera downloaded from htc apk site, if i m not mistaken link was provided above, into /system/priv-app, and chmod folder to 755 n file to 644 n reboot. after rebootin, i open the camera but it FC. i reinstalled the same apk, n it works ok
I just installed the apk and it works for me
i installed the zip file .and then the file from apkmirror .The camera isn't FC-ing. but it doesn't save any picture when i take one. can it be due to converting my SD into internal ?
also, when i click "reset to default". it starts FC-ing
RhishabMukherjee said:
i installed the zip file .and then the file from apkmirror .The camera isn't FC-ing. but it doesn't save any picture when i take one. can it be due to converting my SD into internal ?
also, when i click "reset to default". it starts FC-ing
Click to expand...
Click to collapse
I'm not sure. Have you tried the new (v2) zip? Did it prompt you for permissions for storage? The camera should have prompted you for 4 permissions, and the gallery for 1.
esqiro said:
How about slow motion video? Is it working?
Click to expand...
Click to collapse
No. Although I don't know why. I'll look into it.
working great but i guess camera from m8 is much better...maybe cause its designed for our ultrapixel camera....
How different is it from the Sense 7 version?
Sent from my HTC One_M8 using Tapatalk

Making Gmail & Google Contacts work on rooted HD 10 2017

Hey guys,
If this is a duplicate please let me know, but I personally didn't find any information here before I tried a few methods to make these work.
Make Gmail Work
Convert the following apps to system apps:
Gmail
Google Play Services
Google Services Framework
Make Google Contacts Work
Disable Amazon's default contact app.
Install Google Contacts and convert it to system apps.
Download Google Contacts Sync (remember to download version 5.x for api level 22), install, and make it system.
Wipe app cache / data if needed.
Both apps mostly works, Gmail still crashes occasionally, but WAY better than before and is now usable. Edit: Gmail failed after rebooting and did not work again after that short, sweet, few minutes of working... But Contacts work pretty well.
Going through logs, looks like it's Amazon's download manager causing the crash. If anyone knows where to find a replaceable download manager let me know! Google's only supports 7.1 and up.
Good catch! Have you tried apkmirror? What's the namw of the Google's download​manager? I have older lg tablet(android 5.1.1) , maybe that one will work.
Nevemind, I've found it and extracted. Let me just find some file host.
Sent from my LG-V940n using Tapatalk
---------- Post added at 04:31 PM ---------- Previous post was at 04:22 PM ----------
Google downloader from version 5.1.1
http://www.mediafire.com/file/urd9xiyy94qqt2k/com.android.providers.downloads.apk.7z
Zeljko1234 said:
Good catch! Have you tried apkmirror? What's the namw of the Google's download​manager? I have older lg tablet(android 5.1.1) , maybe that one will work.
Nevemind, I've found it and extracted. Let me just find some file host.
Sent from my LG-V940n using Tapatalk
---------- Post added at 04:31 PM ---------- Previous post was at 04:22 PM ----------
Google downloader from version 5.1.1
http://www.mediafire.com/file/urd9xiyy94qqt2k/com.android.providers.downloads.apk.7z
Click to expand...
Click to collapse
Your Google Downloader doesn't work. Couldn't get the apk to install, even if I put it in the system folder manually.
Anyway, in the process I accidentally deleted the .odex file for the original download manager. If you or someone else could provide me theirs so I can fix this, I would really appreciate it. Can't download anything on the play store or amazon app store now.
@wilburblin
Have you tried oldies but goodies to get GAPPS going?
http://rootjunkysdl.com/files/Amazon Fire 5th gen/SuperTool/AmazonFire5thGenSuperTool.zip
There is no reason this should not work ...
wilburblin said:
Make Google Contacts Work[/B][/U]
Disable Amazon's default contact app.
Install Google Contacts and convert it to system apps.
Download Google Contacts Sync (remember to download version 5.x for api level 22), install, and make it system.
[*]Wipe app cache / data if needed.
Click to expand...
Click to collapse
I've been running contacts for a few days now, converting to system and wiping cache isn't necessary, in my experience. I can't get gmail working stable for the life of me though. I read some discussions that said the reason why it fails is because it has a permission to auto download without a prompt (for attachments) and that Fire OS has a problem with that. I've tried running older versions of gmail, and I've rebuilt gmail with the download activity removed, tried converting gmail to system and to priv-app. No luck.
I got gmail working. It's a user app and I used appsettings module v1.15 for xposed to set orientation to force autorotate. I don't know why it worked, but it's survived many reboots now. I have all the google services installed and the Amazon email app is installed but I'm deep hibernation via rom toolbox. Hope this helps
mistermojorizin said:
I got gmail working. It's a user app and I used appsettings module v1.15 for xposed to set orientation to force autorotate. I don't know why it worked, but it's survived many reboots now. I have all the google services installed and the Amazon email app is installed but I'm deep hibernation via rom toolbox. Hope this helps
Click to expand...
Click to collapse
Can you try sending yourself an email with an image and then try to open that image in gmail?
Gmail works fine for me on the Fire 10 2017 apart from crashing when opening images.
hoofoo said:
Can you try sending yourself an email with an image and then try to open that image in gmail?
Gmail works fine for me on the Fire 10 2017 apart from crashing when opening images.
Click to expand...
Click to collapse
I tried to show the picture and it didn't crash. I tried the force autorotate method but failed for a few times. Then I chose not to show the picture automatically (&force autorotate) and it worked, at least for now.
hoofoo said:
Can you try sending yourself an email with an image and then try to open that image in gmail?
Gmail works fine for me on the Fire 10 2017 apart from crashing when opening images.
Click to expand...
Click to collapse
oscarcx said:
I tried to show the picture and it didn't crash. I tried the force autorotate method but failed for a few times. Then I chose not to show the picture automatically (&force autorotate) and it worked, at least for now.
Click to expand...
Click to collapse
Here's my experience: an embedded image is fine, an image as an attachment will crash it. i messed with this for a while, couldn't get it to work, and went back to 9folders email. It makes sense, since from what I read, the reason it crashes is because it doesn't get permissions to download attachments (because of a signature problem between gmail and download manager). I think someone already tried to replace the download manager with a google signed one and the result was a bootloop. I wonder if there is any way to give gmail root rights, so that it gets all of the permissions. Or to sign gmail with the same signature as our download manager.

Categories

Resources