[Q] disabling gmail accounts, from ADB? - Nook Touch General

Hey all,
I attached my gmail account to the gmail app in my rooted nook. Now, I'm finding that I'm eating a lot more battery life than I used to. I'm guessing it has to do with the work of syncing the google mail. The problem, is that in the app, whenever I get into the settings area for controlling the account, the nook reboots. I'm not sure why.
I'd love to disable the gmail app or otherwise keep it from updating, but I can't get at it from any menus on the device. I was thinking ADB, but I'm open to other ideas.
AN IMPORTANT POINT: I don't want to remove my google account from the device, because I'm loading apps via the Market that way. I just want to stop the gmail mail account app from eating my battery through it's activity!

Something is fishy about that Gmail installation. Maybe try reinstalling the app? Or if you used the GappsAttack (or whatever), just redo that.
Failing that, you can disable the apps (as I did when Gmail kept failing to send mail without deleting the accounts and adding them anew--a known issue with older versions of the app) by renaming the apk files as .old or .bak or something. To do that you will need a Root Browser of some sort (like the free app of the same name). Then go to system/app and there rename Gmail.apk and GmailProvider.apk
When I was using Gmail I had it set to check "never", meaning I could check manually when I wanted. Now that I am using the Email.apk provided by NFHimself here I have it set the same way and it works great--all the time.

Related

[Q] Help recreating my Exchange account?

Earlier today I decided to try out an alternative version of Email.apk, so I backed up the original version of that file, installed the newer version...which proceeded to FC...and then rebooted and restored the original version. Now I can't seem to access information on my corporate Exchange server which was my only account in Email (I also have a Gmail account, but I use the Gmail app for that).
I've tried clearing settings for Email, Calendar (and storage), Contacts (and storage), and Google Services Framework, deleting and recreating the account repeatedly, rebooting after each attempt, etc., but still no luck. Basically it lets me add the account after successfully connecting to the Exchange server, but then it doesn't download email and it doesn't see any calendars or contacts. I know the problem isn't with the Exchange server because all of my other clients (Outlook, OWA, iPhone, etc.) still work fine.
It seems as if there's some kind of cruft floating around from before that's not quite enough to allow Email to work properly, but enough to keep it from properly recreating the account. Is there a particular app database I need to clear/flush in order to recreate this account?
Thanks much for any help!!!
A little research led me to this issue with Android 2.3.3 that seems to be similar if not the same:
https://code.google.com/p/android/issues/detail?id=15356
Looks like it's been fixed in 2.3.4. Assuming that the patch in the middle of that thread is the actual fix, it doesn't look like it should be that hard to integrate into CM7, though I've never done a build of Android/CM7 so I don't know enough to comment. Any thoughts?

Google Calendar

I hope someone can help me. I've rooted, added Gapps without a problem. I just can't get my Google Contacts to show up.
Is there anyway you do this. I have tried a few Contact.apks to no avail. I've set permissions.
What do you all think?
Thank you,
John
You don't seem to be able to use the Google Contacts app, it doesn't work because it has phone hooks that aren't available on the KF (unless there is a tablet specific version which I haven't seen). You'll need to use the built in Contacts app, which will sync fine with Google if you have the sync adapter.
Here is the version I ripped off my phone - GoogleContactsSyncAdapter.apk, drop this in /system/app, and set the permissions to rw-r--r--
You are my hero. . . for today. Unless CM7 comes out today.
If you have an Android phone, there are a lot of files you can test out in your KF. I moved a couple files from my Droid 3 to the KF to increase functionality. Including the CalendarSyncService.
Slightly off topic but does anybody know what files handle the "Add shortcut" option in the CarDock? I tried a couple of the Application... files but none worked. Thanks!
One other thing to mention that I've found a fix for is that as well as syncing just "My Contacts", it also syncs "Other Contacts" as well. Other contacts are people you've sent emails to that aren't necessarily in your contacts list already. I just didn't care to see these on my KF, so there is a two step process for getting rid of them if you so desire.
1. Tick and then delete all the "Other Contacts" via the Gmail web interface, making sure that any of the ones you need to keep are created in "My Contacts".
2. In Mail Settings under the General tab there is a setting called "Create contacts for auto-complete". Set this to "I'll add contacts myself".
This should clear the Kindle Fire (assuming you have added the sync apk mentioned above) of the rouge contacts and ensure that any new ones don't get a Contact added under "Other Contacts".
Has anyone gotten this working for the Google Calendar app?
There was some sort of Amazon Calendar.apk and CalendarProvider.apk in the system app folder but I overwrote those with the Google ones from my phone. Maybe I need those original files to get it to work? Can anyone pull them from their system/app folder and upload a copy?
ags29 said:
Has anyone gotten this working for the Google Calendar app?
There was some sort of Amazon Calendar.apk and CalendarProvider.apk in the system app folder but I overwrote those with the Google ones from my phone. Maybe I need those original files to get it to work? Can anyone pull them from their system/app folder and upload a copy?
Click to expand...
Click to collapse
Yup, it's working perfectly. Grab the two .apk's from this post and follow the instructions.
Did you rename the google .apks, or just chose to replace the existing Amazon ones when tyring to install? Sorry, I would pull the original Amazon ones for you but I'm at work and left my KF at home. If they're not up by the time I get home I'll put them up.
1 of the 2
ags29 said:
Has anyone gotten this working for the Google Calendar app?
There was some sort of Amazon Calendar.apk and CalendarProvider.apk in the system app folder but I overwrote those with the Google ones from my phone. Maybe I need those original files to get it to work? Can anyone pull them from their system/app folder and upload a copy?
Click to expand...
Click to collapse
Here's the CalendarProvider.apk and for some reason I don't have an AmazonCalendar.apk in /system/app. My /data folder is completely empty (unrooted, so idk if that's why it's empty) so it may be in there. Maybe someone else can post that one? If not I'll root again tonight or tomorrow and post it for you.
Sorry, I'm not gonna have time right now. Oh, and btw this is the first time I've tried pulling an .apk off the KF so please let me know if I didn't do it correctly.
It worked, thank you!
Cool, glad I could help.
Sent from my MB860
Btw, I don't care much for it because I use the Calendar most in Agenda view, but does your month view look like this with an orange Android?
Edit: Nvm, there was a copy of calendar.apk in system/app that wasn't supposed to be there and removing that fixed it
ags29 said:
Btw, I don't care much for it because I use the Calendar most in Agenda view, but does your month view look like this with an orange Android?
Click to expand...
Click to collapse
Woah, no it doesn't. It's just the standard month view.
tried this and follow every step, still can't get contacts and calendar to sync.
gmail doens't really sync either, have to manually refresh each time. is it because I have an account set up under the default email client?
I have copied the calendar sync adapter and contacts sync adapter to /system/app and chmod 0644 it. then i rebooted and installed calendar.apk normally. doesn't appear to work.
gmail I have the option for sync for my email set to on, but I don't think it's working.
Am I missing something? Market is working fine, apps install normally.
Are you sure that the permissions for the GoogleCalendarSyncAdapter.apk and GoogleContactsSyncAdapter.apk files in system/app look like this..?
ags29 said:
Are you sure that the permissions for the GoogleCalendarSyncAdapter.apk and GoogleContactsSyncAdapter.apk files in system/app look like this..?
Click to expand...
Click to collapse
What app is that that you are using to change permissions? thanks.
It's Root Explorer (a must have for root users).
Does this work?
chaose said:
tried this and follow every step, still can't get contacts and calendar to sync.
gmail doens't really sync either, have to manually refresh each time. is it because I have an account set up under the default email client?
I have copied the calendar sync adapter and contacts sync adapter to /system/app and chmod 0644 it. then i rebooted and installed calendar.apk normally. doesn't appear to work.
gmail I have the option for sync for my email set to on, but I don't think it's working.
Am I missing something? Market is working fine, apps install normally.
Click to expand...
Click to collapse
For Calendar: When you go into Menu>More>Calendars are the calendars your trying to sync visible and synced? It took a few minutes for my events to properly load up.
Gmail: From inbox, Menu>Accounts>Menu>Account settings>[email protected] and make sure Gmail is selected (as well as any other google servies you want synced). My gmail was turned off initially. I also made the mistake of thinking Menu>More>Settings was the only sync option for gmail.
Don't have contacts set up, sorry.
ghost_og said:
Don't have contacts set up, sorry.
Click to expand...
Click to collapse
My experience is, after setting amazon's default e-mail app,
gmail.app also can use contacts.
But I don't know which one app works.
Maybe either GoogleContactsSyncAdapter.apk or amazon contacts works.
Does anyone get a grey bar at the top of their Google Calendar that partially covers the first row of dates in the month view and the midnight hour block in the other views? How do I get rid of it?
I am also struggling with calendar sync. My other apps recognize my account (gmail/reader/music), but my calendars don't show up in settings.
Device is rooted, permissions applied, and contacts are synced.

Changing Google account on NSTG

I needed to change the Google account in my NSTG but couldn't find an obvious way to do it from the existing apps or tools in my rooted device. Removing accounts.db from /data and rebooting seemed to do the trick - I was then able to add a new Google account by using the Market app. Mail, calendar, etc. sync, Google Talk works and installed apps can be updated via Market. I don't know what effect this has on the B&N account and on-line library as I don't use their services but at least the stock reader app and library continue to work OK.
You might have been able to do it through the Gmail app's settings.
Thanks. At least in the Gmail app that I have there's only an option to add an account. Maybe it would allow me to delete the old account after adding a new account but I'm not going to test that now that everything is working perfectly. If someone could confirm that - whether one Google account can be deleted if there are multiple accounts present - I'd appreciate it.

[Q] Reinstallilng native 'email' app on Nexus 7

I installed the K-9 email app on my tablet. It seemed like the native app (titled 'Email') was causing some syncing problems, so I disabled it, or so I thought. When I realized that the syncing issue was probably not related to the Email app, I went to reactivate it, but I could not find it anywhere; I looked in Settings > Apps > All, but didn't find it.
I'm not sure what happened, though I'm pretty darn sure I didn't uninstall the app (someone on another thread said you can't uninstall the native Android/Google-supplied apps only disable them)
So can anyone take a stab and telling me what may have happened here? And how I might be able to get the app reinstalled on my Tablet.
As an aside, there are some things that I really like about K-9 email app over the native one, mostly that it has a 'select all' feature, so I can more easily select emails in the Trash folder to delete them. The native app only let you select emails one at a time--even in the Trash and Spam folders--which was a royal pain in the toosh. One downside to K-9 is it doesn't seem that the Trash folder is synced up to the Trash folder on my ISP's server. I can delete emails in the trash folder in K-9, but they are still waiting there for me when I view them back on my PC in either webmail or in Thunderbird. Not sure why this is happening, but it only seems to be true for the Trash folder.
Best, David
freedda said:
I installed the K-9 email app on my tablet. It seemed like the native app (titled 'Email') was causing some syncing problems, so I disabled it, or so I thought. When I realized that the syncing issue was probably not related to the Email app, I went to reactivate it, but I could not find it anywhere; I looked in Settings > Apps > All, but didn't find it.
I'm not sure what happened, though I'm pretty darn sure I didn't uninstall the app (someone on another thread said you can't uninstall the native Android/Google-supplied apps only disable them)
So can anyone take a stab and telling me what may have happened here? And how I might be able to get the app reinstalled on my Tablet.
As an aside, there are some things that I really like about K-9 email app over the native one, mostly that it has a 'select all' feature, so I can more easily select emails in the Trash folder to delete them. The native app only let you select emails one at a time--even in the Trash and Spam folders--which was a royal pain in the toosh. One downside to K-9 is it doesn't seem that the Trash folder is synced up to the Trash folder on my ISP's server. I can delete emails in the trash folder in K-9, but they are still waiting there for me when I view them back on my PC in either webmail or in Thunderbird. Not sure why this is happening, but it only seems to be true for the Trash folder.
Best, David
Click to expand...
Click to collapse
If all you did was disable the app from the App Info page, you'll find it in one of two places.
a) If you're running Android 4.3, the furthest list to the right in the Apps settings menu will be Disabled apps.
b) If you're not, then scroll to the very bottom of the list and you should see any disabled apps there.
Re-installing Email app
Thanks for info. I did look in the apps 'all' list and Email is not there, so it looks like--despite my best intentions--I did delete the app. I wonder if there's a way of re-installing it? From what I've read, it is not an app that's been made available on its own by Google. Maybe there's a place I can request it?
In the mean time, I still have K-9 email app, which is working, but has some quirks to it.
Best, David
Rirere said:
If all you did was disable the app from the App Info page, you'll find it in one of two places.
a) If you're running Android 4.3, the furthest list to the right in the Apps settings menu will be Disabled apps.
b) If you're not, then scroll to the very bottom of the list and you should see any disabled apps there.
Click to expand...
Click to collapse
freedda said:
Thanks for info. I did look in the apps 'all' list and Email is not there, so it looks like--despite my best intentions--I did delete the app. I wonder if there's a way of re-installing it? From what I've read, it is not an app that's been made available on its own by Google. Maybe there's a place I can request it?
In the mean time, I still have K-9 email app, which is working, but has some quirks to it.
Best, David
Click to expand...
Click to collapse
That really shouldn't be possible. The stock e-mail app is installed to /system, so you can roll back any (of the non-existent) updates or disable it, but not uninstall it by default. What exactly are you running on your tablet right now?
Use a file explorer (ES File Explorer) and navigate to the /system/app directory and check to see if the email apk is there. If not, then you must somehow have uninstalled it. If that's the case, then here are the links to Email.apk and Exchange2.apk. Move them to /system/app and set permission to rw-r--r--
http://db.tt/vOwdMNPh
http://db.tt/oktx8ekd
Sent from my Nexus 7 using Tapatalk 4

GApps in the post-Market era

This is more or less information for those new to the NST/G and maybe contemplating whether to install Google Apps via NTGAppsAttack.
At the end of June 2017, Google ended Market access from Android 2.1 devices. That means no more direct access to market apps from the NST/G, not even through the SearchMarket app. It's over. Of course there are other ways to get apps. But this situation does beg the question "do I need/want GApps on my NST/G"?
The set of user apps installed is pretty basic (see list in the linked installation post). Of those apps, many now do not work.
GMail never worked properly. It picks up mail fine (still) but only sends a few messages and then has to be reinstalled if you want to send more. There is no apparent fix as this is a known issue for the version in the package. The simple email client I use can send and receive GMail on demand but does not require GMail sync to be working. Others may be similar. However, GMail is needed to set up sync for other things, as described in the NTGAppsAttack post.
Calendar never synced properly. A search of the forum will reveal various other apps people have used with varying success.
Contacts will not sync. Well, there actually is no Contacts app. Apparently the resident B&N contacts regimen interferes. Again, a forum search will yield various apps people have tried in place of Contacts.
Google Talk may or may not work. You can sign in, but that may not mean much.
Google News and Weather, aka Genie Widget, has been dead for some time now.
Calculator works Of course you could probably just drop that apk into your system/app folder and reboot. No GApps needed. And there are other calculator apps out there.
Other than Market access, the whole reason to want GApps is the ability to sync with information on Google servers. There is still one thing that works: Google Books (1.2.2). You can't just install Google Books and expect it to work without GApps because in addition to the apps listed, there is a slew of other stuff involving accounts and sync that is also installed with the NTGAppsAttack.
So the long and short of it would seem to be that if you're not interested in Google Books (for as long as it continues to work), then you don't need GApps on your system. If you do want Google Books, then you need GApps, but certainly not all of it.
Since the demise of market access I have been slowly disabling parts of GApps that seem safe to shut down. My list may not be exhaustive, but it does leave me with a functioning system. To disable an app in system/app, use a root browser to rename the apk file. I chose to rename Calendar.apk to Calendar.OLD, etc. Anything will do. GMail and GMailProvider can be disabled once you have set up sync for Books.
Here's the list of GApps I have disabled successfully:
Calendar
CalendarProvider
Gmail
GmailProvider
MarketUpdater
Talk
TalkProvider
Vending
If you have disabled others without breaking the system, I'd like to know. Always better to quiet the system down instead of having apps trying to phone home to no avail.
Edit: see also Regain Market access on your NST/G

Resources