On the nexus6, google dropped their AOSP "Email" app, and replaced it with a more function GMail app. The new gmail app was given the ability to sync MS Exchange accounts (as well as pop, imap, etc.)
However, I personally don't like using gmail for my email. There are a couple of reasons, but the biggest one is that gmail doesn't allow a "combined" inbox view. (I sync with multiple MS Exchange servers, and I really like being able to look at a single list instead of having to tap all around to check individual accounts.)
So, I recompiled AOSP (for lollipop, of course) and pulled out the email (and exchange server service) apps, copied them to my device, and everything works the way I want again.
I'm sharing this non-work with other XDA users with the following caveats:
1. This is google's work, not mine. I've just recompiled it. The source is completely unaltered from AOSP 5.0.0.r5.
2. I'm not going to support this. I'll give detailed instructions on how to copy the files to your nexus device, and I might even package them into a recovery installable .zip file (if I remember tomorrow and have free time), but that's it.
3. If you understand and accept everything that might go wrong in doing this, then great. If you don't, please ignore this post and read another one.
That being said...
You need to have a rooted device, and be fluent with adb and a shell. If you aren't, just wait until I (or someone else) packages this into a zip you can install in recovery.
Really quickly, then:
Code:
adb push Email.apk /sdcard/
adb push Exchange2.apk /sdcard/
adb shell
su
mount -o remount,rw /system
cd /system/app
mkdir Email
chmod 755 Email
cp /sdcard/Email.apk Email
chmod 644 Email/Email.apk
mkdir Exchange2
chmod 755 Exchange2
cp /sdcard/Exchange2.apk Exchange2
chmod 644 Exchange2/
reboot
After that, you'll now have two "email" apps in your app drawer. One is a shortcut to gmail, and the other is the one you just copied in. (I think the gmail shortcut one is located in "/system/app/PrebuiltEmailGoogle" in case you want to get rid of it -- or read on for another way to get rid of it) Figure out which one is which, and you'll be good to go!
Yes, the AOSP email and gmail stuff can co-exist. Even the exchange services can co-exist.
However, the second "email" app icon is annoying. Instead of deleting the apk from /system, you can just go into settings->apps->all, and find the "Email" app that's 6.7MB (or the smaller of the two) and disable it.
If you want to disable the gmail version of MS Exchange support, go into settings->apps->all and notice that there are two "Exchange Services" apps. One of them is "version 6.xxx" (which is the one for gmail), and the other is "version 5.0.50.50.50.-eng-garyd9.xxxx". So, you'll disable the one for gmail and leave the one with "garyd9" in the version tag enabled.
Note: Nova Launcher's "teslaUnread" plugin will not work with this email.apk as a native google email app. The reason is simply because this isn't "com.google.android.email". It's "com.android.email". (It's different...)
Edit: For a recovery installable .zip file: scroll down (or just click here: http://forum.xda-developers.com/showpost.php?p=57161503&postcount=6)
Another Edit: Be warned that there are some problems with this. If you have multiple email accounts and used the "combined view", it can crash when you try to view an email. As well, under some circumstances, it will stop picking up mail (and contacts, etc) all together (unless it's manually polled.) I'll get around to looking at these issues at a later time.
Take care
Gary
UPDATE (2014-12-12): updated the email.apk with one that doesn't crash when viewing the "combined" view. Exchange2.apk still doesn't do push email properly, but that's going to take a bit more time.
Awesome! Thanks, I'll have to check this out....as I miss not having a combined inbox.
A flashable zip would be great if possible thank you
It might be a bit before I get around to making a flashable zip file... When I'm at my computer, I'm digging in the LED related code. Perhaps someone else would be kind enough to throw one together. (If so, I'll update the top post with a link to it.)
Sent from my Nexus 6
Oh this is awesome! I was just complaining about being forced to use GMail for my work email in another thread.
NICE!
Thanks for the hard work OP. The flashable zip below should take care of everything:
http://www.mediafire.com/download/mwbaqqsslqmaj9u/Old+School+Email+Restore.zip
ericwgarza1 said:
Thanks for the hard work OP. The flashable zip below should take care of everything:
Click to expand...
Click to collapse
Thanks - will link to this. FYI, leaving "PrebuiltEmailGoogle" intact can cause some issues with software that looks for com.google.android.email before checking for com.android.email. (It can impact TelsaUnread, buit that's broken right now anyway.)
garyd9 said:
Thanks - will link to this. FYI, leaving "PrebuiltEmailGoogle" intact can cause some issues with software that looks for com.google.android.email before checking for com.android.email. (It can impact TelsaUnread, buit that's broken right now anyway.)
Click to expand...
Click to collapse
I can edit the script to delete that folder when flashing if that would make things work easier and more compatible for everyone.
Using the attached... I'm noticing a crash if I have two exchange server accounts, set the message list to be the "combined" inbox, and then try to read any message.
I guess I'm going to have to debug google code again.
Code:
E/AndroidRuntime(10733): FATAL EXCEPTION: main
E/AndroidRuntime(10733): Process: com.android.email, PID: 10733
E/AndroidRuntime(10733): java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()
' on a null object reference
E/AndroidRuntime(10733): at android.support.v4.text.BidiFormatter.unicodeWrap(BidiFormatter.java:374)
E/AndroidRuntime(10733): at android.support.v4.text.BidiFormatter.unicodeWrap(BidiFormatter.java:427)
E/AndroidRuntime(10733): at com.android.mail.browse.SubjectAndFolderView.setFolders(SubjectAndFolderView.java:155
)
E/AndroidRuntime(10733): at com.android.mail.browse.ConversationViewHeader.setFolders(ConversationViewHeader.java
:102)
E/AndroidRuntime(10733): at com.android.mail.ui.SecureConversationViewFragment.setupConversationHeaderView(Secure
ConversationViewFragment.java:159)
E/AndroidRuntime(10733): at com.android.mail.ui.SecureConversationViewController.onActivityCreated(SecureConversa
tionViewController.java:132)
E/AndroidRuntime(10733): at com.android.mail.ui.SecureConversationViewFragment.onActivityCreated(SecureConversati
onViewFragment.java:141)
E/AndroidRuntime(10733): at android.app.Fragment.performActivityCreated(Fragment.java:2061)
E/AndroidRuntime(10733): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:912)
E/AndroidRuntime(10733): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
E/AndroidRuntime(10733): at android.app.BackStackRecord.run(BackStackRecord.java:833)
E/AndroidRuntime(10733): at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1452)
E/AndroidRuntime(10733): at android.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:483)
E/AndroidRuntime(10733): at com.android.mail.utils.FragmentStatePagerAdapter2.finishUpdate(FragmentStatePagerAdap
ter2.java:147)
Yes, I am getting Email FC's after installing the .zip. Figured I'd give it a shot.
So, I did it the long way through ADB Shell.
UPDATE: That was a no go too. Still getting a Force Close when opening Email.
Quick question.
I used the OP's method of installing this for the most part. I made my folders, copied my files and set my folder and file permissions with Root Explorer. The Email app works fine as far as I can tell but I'm not getting notifications. I have the app set to push but if I send myself emails or anyone else sends me emails, my phone doesn't notify me.
Now if I manually open the app and pull down it refreshes no problem and snatches my new email from our server.
If I setup my work email in the GMail app, it gets notifications.
Any suggestions?
I'm actually going to kill it from my phone and start over one more time and see if that helps.
So...
I just flash this .zip via recovery and thats all? Sorry, I was reading through and it looks like there are some issues and some folder permissions that need to be changed. I guess I missed something. LOL. I'm at work so I don't have access to my ADB on my home PC. I will try this later tonight when I get a chance to plug in. If I can keep my boy off of Minecraft long enough.
kdoggy said:
The Email app works fine as far as I can tell but I'm not getting notifications. I have the app set to push but if I send myself emails or anyone else sends me emails, my phone doesn't notify me.
Click to expand...
Click to collapse
I've noticed this as well. It appears that the exchange service can die (and doesn't come back until it's forced by email.apk.) In fact, the device isn't notifying because it's not talking to the exchange server whatsoever.
(I have a slight advantage: I have my own exchange server to test again, and can monitor the ports.)
Assuming another solution isn't found before then, I'll probably work on this more after I get the LED notifications working properly on the phone.
Added to top post:
Be warned that there are some problems with this. If you have multiple email accounts and used the "combined view", it can crash when you try to view an email. As well, under some circumstances, it will stop picking up mail (and contacts, etc) all together (unless it's manually polled.) I'll get around to looking at these issues at a later time.
Thank you for the reply! Yes definitely do not let me take you away from the LED project! I know I would much rather have the LEDs working because I keep forgetting to check my damn phone when I come into the room a lot of times lol. Thanks for all your hard work man!
I installed the AOSP Email from the Play Store last night and it works just fine. (shrug) So glad to have my regular mail back.
https://play.google.com/store/apps/details?id=com.google.android.email&hl=en
Baldilocks said:
I installed the AOSP Email from the Play Store last night and it works just fine. (shrug) So glad to have my regular mail back.
https://play.google.com/store/apps/details?id=com.google.android.email&hl=en
Click to expand...
Click to collapse
Lucky you. Tells me its already installed and wont let me do anything with it.
I just wanted to give a Thanks to the OP. I just completed this and it works wonderfully so far. I will keep you posted on any changes.
Thanks to the Devs and XDA, this site is awesome!
So, I found the bug that causes email.apk to crash in combined mode. The issues with exchange are a bit more involved and will take longer to fix. (I can't post the fix right now... I'm not at my computer and likely won't be until tomorrow night. )
Sent from my Nexus 6 using Tapatalk
Sorry it's taken me so long.... My paying job has been seriously eating into my personal time.
Anyway, I've updated the original post with a new Email.apk that fixes the combined view crash. (The problems with push exchange still exist, however.)
The patch to AOSP's Email client, in case anyone cares, is against packages/apps/UnifiedEmail:
Code:
diff --git a/src/com/android/mail/ui/SecureConversationViewFragment.java b/src/c
index 7c4a9d9..fc10f6e 100644
--- a/src/com/android/mail/ui/SecureConversationViewFragment.java
+++ b/src/com/android/mail/ui/SecureConversationViewFragment.java
@@ -156,8 +156,8 @@ public class SecureConversationViewFragment extends Abstract
@Override
public void setupConversationHeaderView(ConversationViewHeader headerView)
headerView.setCallbacks(this, this, getListController());
- headerView.setFolders(mConversation);
headerView.setSubject(mConversation.subject);
+ headerView.setFolders(mConversation);
headerView.setStarred(mConversation.starred);
}
Related
Don't know if anyone else has seen this yet (or cares), but since I love YouMail, I thought I'd post this up.
They have a link in this forum topic to download the .apk file, but since it says it's a closed beta, I'm not sure if you need to have YouMail allow your YouMail account to use the software.
LMK
http://api.youmail.com/forums/viewtopic.php?f=8&t=15
Downloaded. It works pretty well. No option to save MP3 messages to SD. Uses polling, which can be a total pain in the ass, and kinda pointless for a voicemail system.
I actually started writing this app about a month ago, but the project manager(i assume) didn't really understand what I was talking about. I tried explaining to him that polling from the device is kinda a kludgy approach, and they should try and implement a different system. I even went so far as to writing a small server side program that would ping the device when there was new messages.
Here's the weird thing though, I sent him a long email one day asking him a bunch of questions about the hardware and software they're using for this system(so I can better design this software), and he never got back to me. THEN, a few weeks later(a month maybe) calls me asking how things are going.
Mind you, I hadn't signed any agreement with them, no deal was in place, and I do have other responsibilities. After a week or so I just assumed they were going with another developer. I assumed from the beginning that there were multiple people working on multiple apps, and they would just release the best one first. Oh well, that's my run-in with them.
Other than all of the above, the service itself is VERY useful. As far as the app is concerned, I think it's a great first-go, but it needs a little refinement. It's a bit slow, and scheduled server checks just isn't going to cut it. Why manually check my messages when I can have them deliver it in MP3 for to my email directly on my phone?
In anycase, good job whoever wrote the app!
I installed it and it shows my messages however it doesn't play anything. I click open and it just sits there. Im running cm 3.4 with hero 1.2, maybe thats why
How is this compared to PF Voicemail?
Probably not as cool as a dedicated app, but I:
1. Simply turn on email notifications on the youmail website with the option to attach an MP3 of the voicemail and send the emails to my gmail account
2. then I setup a filter in gmail to label all youmail messages with attachments to "YouMail"
3. I put a shortcut on my homescreen by "add shortcut" "Gmail label" "YouMail"
4. for good measure I tell the Android message settings to sync emails in the youmail folder for 4 days worth of voicemail in case I run into a problem with my network connection.
Instant Visual Voicemail with push.
wagz said:
Probably not as cool as a dedicated app, but I:
1. Simply turn on email notifications on the youmail website with the option to attach an MP3 of the voicemail and send the emails to my gmail account
2. then I setup a filter in gmail to label all youmail messages with attachments to "YouMail"
3. I put a shortcut on my homescreen by "add shortcut" "Gmail label" "YouMail"
4. for good measure I tell the Android message settings to sync emails in the youmail folder for 4 days worth of voicemail in case I run into a problem with my network connection.
Instant Visual Voicemail with push.
Click to expand...
Click to collapse
Yea, that's pretty much what I do too...I wish you could set it up to automatically download attachments though, especially since the beta app kinda sucks right now.
The app is in Open Beta now - feel free to download and try it out.
The only thing we (I) ask is that if you find any problems, or have any suggestions - either send us an email ([email protected]) or join in the discussion on the forums.
And yes, currently you need a free YouMail account in order to use the app. At some point you'll be able to sign up as part of the installation process, but that's in a later version.
YouMail for G1
Hi,
Could I please ask that you send *me* a private email with details about who at YouMail you were talking to? I'm the one responsible for the Android app and this is the first I have heard of someone contacting us regarding this app.
Regarding your comments about polling. We would absolutely ***love*** to push your voicemail to the phone similar to the way our Blackberry cousins get their email. Problem here is that in order to do that YouMail would need an interconnect agreement with T-Mobile (and other carriers) letting us use their push technology (yes, the G1 software does support push). The chances of T-Mobile (and other carriers) allowing that to happen are pretty much nil. (We all know that competition is bad... don't we?)
So, out of the box, what the Android app does is:
* Poll every hour to catch up on changes you may have made via the dial-in interface, or the web site (you can adjust it to be as often as every 15 mins, or as infrequent as 'never')
* Poll a couple of minutes after you miss a call - to see if the caller left you a message
* Poll when one of YouMail's special TXT messages arrives (the kind that start with "New VM:....")
* Manually initiated
That's the best approximation to push that we've been able to come up with considering the limitations. The drain on battery is actually remarkably low.
Of course, if you choose to receive your voicemails via email go for it!
I'll put a post up on the YouMail forums explaining battery usage.
Thanks
Doug
InGeNeTiCs said:
Downloaded. It works pretty well. No option to save MP3 messages to SD. Uses polling, which can be a total pain in the ass, and kinda pointless for a voicemail system.
I actually started writing this app about a month ago, but the project manager(i assume) didn't really understand what I was talking about. I tried explaining to him that polling from the device is kinda a kludgy approach, and they should try and implement a different system. I even went so far as to writing a small server side program that would ping the device when there was new messages.
Here's the weird thing though, I sent him a long email one day asking him a bunch of questions about the hardware and software they're using for this system(so I can better design this software), and he never got back to me. THEN, a few weeks later(a month maybe) calls me asking how things are going.
Mind you, I hadn't signed any agreement with them, no deal was in place, and I do have other responsibilities. After a week or so I just assumed they were going with another developer. I assumed from the beginning that there were multiple people working on multiple apps, and they would just release the best one first. Oh well, that's my run-in with them.
Other than all of the above, the service itself is VERY useful. As far as the app is concerned, I think it's a great first-go, but it needs a little refinement. It's a bit slow, and scheduled server checks just isn't going to cut it. Why manually check my messages when I can have them deliver it in MP3 for to my email directly on my phone?
In anycase, good job whoever wrote the app!
Click to expand...
Click to collapse
mustang_52 said:
I installed it and it shows my messages however it doesn't play anything. I click open and it just sits there. Im running cm 3.4 with hero 1.2, maybe thats why
Click to expand...
Click to collapse
If you could send me some details I might be able to help.
The app downloads all message data via http.
Sistum Id said:
How is this compared to PF Voicemail?
Click to expand...
Click to collapse
This is what I'm waiting to hear about before taking the plunge...
Left myself a message and I got the alert. I ran the app and then it says I have a message. I click on the number that was the caller and well nothing seems to happen. I see what appears to be a download button and across a phone/speaker.
Nothing seems to make any noise.
Also this app was in my recently ran apps tray so does this app start on phone turn on or do you have to manually start for the alerts. Also the polling is that to check for messages or to pull down the audio?
The reason I ask this stuff is there really isn't any discriptions of what does what and most apps appear to be straight forward.
Looks like I just got a text now saying I have a message. Thats what brings me to the polling. Does it poll every hour on top of the text message?
kizer said:
Also the polling is that to check for messages or to pull down the audio?
The reason I ask this stuff is there really isn't any discriptions of what does what and most apps appear to be straight forward.
Looks like I just got a text now saying I have a message. Thats what brings me to the polling. Does it poll every hour on top of the text message?
Click to expand...
Click to collapse
I don't know if this is or isn't the info you're looking for, but this info was in the original post for somebody who seems to be working on the app...
ymDoug said:
So, out of the box, what the Android app does is:
* Poll every hour to catch up on changes you may have made via the dial-in interface, or the web site (you can adjust it to be as often as every 15 mins, or as infrequent as 'never')
* Poll a couple of minutes after you miss a call - to see if the caller left you a message
* Poll when one of YouMail's special TXT messages arrives (the kind that start with "New VM:....")
* Manually initiated
Click to expand...
Click to collapse
Heh...finally an app is developing for YM I had posted here and even emailed a couple of devs and got nowhere. Even emailed YouMail and got the standard "not at this moment, there are no plans on supporting Android".
omario117 said:
I don't know if this is or isn't the info you're looking for, but this info was in the original post for somebody who seems to be working on the app...
Click to expand...
Click to collapse
So I"m blind and dumb. Thanks
Now if it only pulled down the audio it would be awesome. I guess thats why things are work in progress.
kizer said:
So I"m blind and dumb. Thanks
Now if it only pulled down the audio it would be awesome. I guess thats why things are work in progress.
Click to expand...
Click to collapse
Only if you're calling yourself that, I'm not calling you anything
If you did think I was, I apologize, I was simply trying to make the posting of my info seem credible, as opposed to "here's information but I'm not going to mention where I got it" or "look at the first post by such and such"...
I'd like to thank mustang_52 for getting back to me and helping figure out what was wrong. I believe the app is working correct for him now.
Just in case anyone is interested, there was a problem on one of the back-end servers where it wasn't creating the MP3 file that the app needs, so you were seeing "downloading" forever... we fixed it around noon today and everything seems to be AOK now.
There is a forum set up on the YouMail site that explains how the app checks for messages and the trade-offs we had to make since 'push' technology is effectively unavailable to us at present. (Unless of course we have some senior management from T-Mobile watching, and they want to contact me about making it available.........)
The forum is at: http://forums.youmail.com/forums/viewforum.php?f=8
Doug
Everything is working great since you fixed it. Thanks for such a great app.
Love this YouMail app... THANKS!!!
Like many other users, I want to be able to sync my nook color with my work's exchange server. Unfortunately, the default email.apk wouldn't work for me. There is a well documented issue with Android 2.2 and its handling of security certificates... but I digress.
So, what's the fix? Well I found the fix here: http://laur.ie/blog/2010/09/exchange-2010-sp1-sync-with-android-froyo/
But I've saved you a trip and pasted the (slightly revised) instructions below.
Download the 2.2 stock Email.apk from here using the browser on your nook:
http://denness.net/Email.apk
[File is also attached]
Don’t attempt to install it, let it go in to your download folder on your SD card. The instructions below assume the file is in your /download folder on your SD card.
Open a terminal on your device. I use Terminal Emulator. (Type exactly what appears after "Run:" and hit enter)
Run: su
Run: mount -o remount,rw /system
Run: mv /system/app/Email.apk /sdcard/backup_Email.apk
Run: cp /sdcard/download/Email.apk /system/app
Reboot for good measure
Set up your sync, and enjoy a refreshing beverage
for your hard work
Nobody else had this problem?
eclair fix?
I had this problem on eclair/stock rom. Do you know of a fix for eclair?
Thanks it almost worked for me. I was able to add a exchange 2010 account. But it won't actually sync. Before I could only add a 2007 acount. So close, thinking I could try the email.apk from my Captivate?
Sent from my Nook Color (zoom2) using Tapatalk
Surprised that this would even work, I'd think it'd need more framework or other files. but I'm willing to give it a go.
Although honestly I don't think it'll help me, I don't think 2.2 supports the Exchange security that my works new Google Apps implementation requires. They keep saying "iPhone only, no other phones work". I still bet that Sense and Touchdown would work, but stock Android is missing some features.
khaytsus said:
Surprised that this would even work, I'd think it'd need more framework or other files. but I'm willing to give it a go.
Although honestly I don't think it'll help me, I don't think 2.2 supports the Exchange security that my works new Google Apps implementation requires. They keep saying "iPhone only, no other phones work". I still bet that Sense and Touchdown would work, but stock Android is missing some features.
Click to expand...
Click to collapse
The thing is, its only this build I have had this problem. The stock 2.1 and HC works. Also my Captivate on 2.2 works as well. Something with this build and exchange 2010. I checked the server but nothing made a difference. I played with imap/pop3 settings and tried to use that.
I wish I could port over the HC email app, that one is sweet. I can't for HC to be AOSP!
Purpose
With all the rage around getting a Google+ invite, there is a small problem: Even with an invite, you might not be able to get into Google+ for several days. nibras_reeza and I have been working on a script that, once you've received an invite, will keep checking the signup page to see if you can sign up. YOU MUST HAVE AN INVITE FOR THIS SCRIPT TO BE USEFUL!
Features
* Automatically checks Google for when registration is open
* Displays a running total of refreshes
* Works in Chrome, Firefox, and IE (w/ Trixie)
Special Thanks
Nibras Reeza - motivated and helped me write this; running the notification form and general debugging
"_mousey" - fixed a caching issue, IE support, and debugging
"thrasher9" - "how many times have I pinged Google?"
Version
0.000005 - Fixing stupid merge issues (thanks Nibras and _mousey!) and merged _mousey's IE support (http://forum.xda-developers.com/showpost.php?p=15456658&postcount=201)
0.000004 - Merged changes from Nibras, _mousey, and thrasher9 into the main script
0.000001 - Initial
Instructions
READ THIS!
1. Install this script. For Chrome, simply download the file, drag it to Chrome, and authorize the install
2. Go to your Google+ invite, click on the "Join Google+" link
3. The script should take over--your browser will jump to the "Field Test" page. You can monitor this progress by pressing Ctrl-Shift-J to view the javascript console.
4. When registration "opens", the script will stop refreshing. You should see a form on the page asking for some info to sign up. DO THIS AS QUICK AS POSSIBLE!
5. Come back here and post about your success!
Note 1: Just because you see the sign-up form doesn't mean you'll get in. Therefore, it is pointless to leave this running overnight; even though you may see a sign-up form in the morning, chances are it won't work.
Note 2: If Google is not displaying in English, then you'll need to edit line 45. More info here (Thanks _mousey!) http://forum.xda-developers.com/showpost.php?p=15430390&postcount=161.
Note 3: If you want to run this in IE, use Trixie (Thanks _mousey!) : http://forum.xda-developers.com/showpost.php?p=15425549&postcount=152
Implementation
(the boring stuff)
Original post: Link
Attached is a Greasemonkey script for Google Chrome (probably doesn't work for Firefox...). Install it in your browser, click the "view or comment" link in the invite you received. The script will find the "Join Google+" link, save the URL, then navigate to the page. If the page contains a DIV with "Field Trial", it will wait 5 seconds, then refresh. This should happen until either a) Invites work again, b) Google opens G+ to the world, or c) Google gets pissed at you and blocks your address.
Click to expand...
Click to collapse
I successfully used this script to sign up for Google+, and so have many other people.
Not necessary anymore. Use the version by Adam above. He integrated mine into his.
TIP for Android users:
(Some said this works but I can't make any guarantee. Worth a try.)
Apply for an invite in my form using a GMail account. Once you receive my invite, download Google+ from the Market(use Market Enabler or Root Toolbox and emulate a US carrier if you are outside US. You need ROOT.)
Now, sign into your GMail account on your phone. (Settings->Accounts and Sync->New Account->Google) Skip this if you submitted the account you already use on phone.
Open up Google+ on Android and sign in.
ONLY ONE PERSON HAS TO RUN THE SCRIPT. ANYONE CAN CHECK STATUS PUBLICLY.
SCRIPT UPDATED. USE THE NEW VERSION.
Here's a fork I made. This version logs available times publicly on a Google Docs Spreadsheet. I want someone who has a spare unused invite and has not registered to run it continuously.
And, I owe a lot for Adam to working so hard to write the script. He did all the hard work of digging into the code. xD I just made a fork. lol
Here's the public URL(TIME IS IN +0530GMT/+1030EST):
https://spreadsheets.google.com/spr...pUTOhdHdwLUZOTmlOWHNvbzR0M19iSTNzdmc&hl=en_GB
Just subscribe by notifications for changes made to the doc and you will be notified by email when registrations are open.
ONLY ONE PERSON HAS TO RUN THE SCRIPT. ANYONE CAN CHECK STATUS PUBLICLY.
SCRIPT UPDATED. USE THE NEW VERSION.
Click to expand...
Click to collapse
"Available" means registrations are open?
wascaa said:
"Available" means registrations are open?
Click to expand...
Click to collapse
Exactly.
Think of it as a club: You're standing in line (G+ invite) waiting to get in. The bouncer finally decides to let a few people in (registration is open). You get lucky and he lets you in (success).
Damn! Wish I had my invite right now!
Are you still sending invites to the ones that registered to your spreadsheet?
Great work anyway!
Just another quick question which time zone is used for the times?
wascaa said:
Damn! Wish I had my invite right now!
Are you still sending invites to the ones that registered to your spreadsheet?
Great work anyway!
Just another quick question which time zone is used for the times?
Click to expand...
Click to collapse
I did send an bulk invite a few minutes back. It's taking hours to go through.
The time on what? My spreadsheet which says when registrations are open? It's SLST(+0530GMT). I'll try to change it to EST.
Hello Nibras,
I installed the script and removed all cache and then clicked on the 'view or comment on Nibras's post'. It automatically navigated to the registration page but then never refreshed! or is it refreshing and I can't tell?
What do you mean by 'DIV with "Field Trial"'? How can I tell if the page contains it? sorry if this was a dumb question, but I don't understand it.
It's adam's script. Not mine. Don't bother about the div stuff. It just explains how the script works.
Just install the script on Chrome or Greasemonkey or Tampermonkey.
Click view or comment on nibras's post. Then the script will reload the signup page till Google allows signups. (Make sure you are signed into your Google account before you try all these.)
idk how to use this script? all it does is it blocks me from visiting the google plus website because it is killing my chrome with a lot of spamming a page which says: "available!" which will open many times until my chrome crashes
EDIT: damn my fault, i need to get the invite mail first! im sorry !
nibras_reeza said:
It's adam's script. Not mine. Don't bother about the div stuff. It just explains how the script works.
Just install the script on Chrome or Greasemonkey or Tampermonkey.
Click view or comment on nibras's post. Then the script will reload the signup page till Google allows signups. (Make sure you are signed into your Google account before you try all these.)
Click to expand...
Click to collapse
But it doesn't seem to refresh. Shouldn't I notice it refreshing every 5 secs.?
Open the Chrome JavaScript console, you should see a message every time it refreshes.
Sent from my ADR6300 using XDA Premium App
Not sure if I'm doing it right but I've been running it for an hour with no joy. I can see it refreshing but it always stays on Keep Me Posted
(This is with greasemonkey in firefox)
Anyone had any luck with the script? Seems like it should be exactly what I am looking for! (Thanks Adam!!)
The script worked for me. Thank you guys. ;-)
Sent from my Nexus One
monkley said:
Not sure if I'm doing it right but I've been running it for an hour with no joy. I can see it refreshing but it always stays on Keep Me Posted
(This is with greasemonkey in firefox)
Anyone had any luck with the script? Seems like it should be exactly what I am looking for! (Thanks Adam!!)
Click to expand...
Click to collapse
As long as it keeps refreshing your page, it is working. I would suggest moving the window off to the side and keep an eye on it. The right hand side of the page that tells you there is no room will switch to a log-in form whenever Google feels like it. The script itself doesn't make Google give you the invite any faster, it just makes you aware that you can sign-up within 5 seconds of it being available.
Mucho thanks, hopes I gets lucky now.
Adam.h.ogle said:
Open the Chrome JavaScript console, you should see a message every time it refreshes.
Sent from my ADR6300 using XDA Premium App
Click to expand...
Click to collapse
This is the console open for around 5 minutes with no msgs. I know its not refreshing, but I don't know why. I downloaded you zip file and extracted the JS file, then opened a blank chrome page and dragged the file into the blank page, it asked me if i want to install it and i clicked continue. When I go to extensions I can see G+ invited there. When I open the 'comment or view' link, it takes me to the post with the red button saying 'Join G+' and then automatically redirects me to the page attached, but it doesnt refresh.
Am I doing something wrong?
EDIT: it worked now after pressing Ctrl+F5 several time. I think it was a problem of cache, although I have deleted all cache and cookies.
Anyway thank you Adam and Nibras. Will let it run overnight and see what happens
Adam.h.ogle said:
As long as it keeps refreshing your page, it is working. I would suggest moving the window off to the side and keep an eye on it. The right hand side of the page that tells you there is no room will switch to a log-in form whenever Google feels like it. The script itself doesn't make Google give you the invite any faster, it just makes you aware that you can sign-up within 5 seconds of it being available.
Click to expand...
Click to collapse
I'll let it run over night then and maybe there'll be a present for me in the morning!
Thanks again for the script, I figured someone would sort something automated in the end and am happy to have found it.
I have another concern, could it be that chances for US residents are better than non US? do you advise me to use a proxy, or it doesn't matter?
I don't have any facts to back this up, more of just some thoughts into how I might implement the invitation system:
Let's say you start the script before going to bed around midnight. The script runs for 2 hours, Google allows some people into the system, your browser stops refreshing because you have a sign-up form. Success, right? I don't think so. My guess is that Google is allowing a set number of people to sign up at defined intervals. Just because you see the form doesn't mean that you will be able to create an account, otherwise, we could just sniff the form post and duplicate it for every member that wants an account[1]. So, you wake up in the morning, seeing a sign-up form, frantically fill it out, only to discover that you were ~8 hours too slow and too many other people beat you to it.
My recommendation is that you only run the script when you are within arms-reach of your computer, as I'm not sure how much time you have between seeing the form and having it rejected.
Thinking more about what Nibras and I have discussed, since this is a beta, Google would want to control the amount of people in the system. Also, they would need to have many servers to handle all the traffic. It would be dumb to put all those servers in one location (US or UK), as the latency would kill the experience for anyone outside of that country. So, if Google has a bunch of servers spread across the globe, then they would probably want to try to encourage people around the world to sign up, instead of just having 99% of their testers from one country. This might explain why we are seeing invites being sent at odd times, and why people are being allowed to sign up at odd times.
Alternatively, they may be releasing ~1000 invites at a time, first come, first serve. And there's some dude staring at a bank of monitors, watching all the threads across the net (just like this one), giggling as we try to figure out what they're doing. And this dude, whenever he gets bored, he presses a button and lets a few more people into the system.
[1] If anyone is nerdy enough to sniff the traffic, I would be curious what it is submitting, just in case I'm wrong. In theory, we could create accounts for everyone, at least until Google patches the issue.
EDIT: Odds for US or non-US people? I don't really think it matters.
I was running one of the mofo 5.0 images on my xt1096 until recently, and everything worked as expected (including exchange email). Recently I flashed the 5.1 mofo image from mikeoswego's thread on the topic:
http://forum.xda-developers.com/moto-x-2014/development/img-xt1096-victara-mofo-image-root-t3100145
(Can't post there, since the forum forces new users to start new threads instead of participating in existing conversations)
Since the move to the 5.1 image, my exchange accounts in the stock email app has stopped working. Looking around I see lots of chatter about Google's move away from the stock app in Lollipop. BUT...
Why did it work in the 5.0 image and not the 5.1?
And, more to the point, is there a way to get it working like it was in the 5.0 image??
claylong said:
I was running one of the mofo 5.0 images on my xt1096 until recently, and everything worked as expected (including exchange email). Recently I flashed the 5.1 mofo image from mikeoswego's thread on the topic:
http://forum.xda-developers.com/moto-x-2014/development/img-xt1096-victara-mofo-image-root-t3100145
(Can't post there, since the forum forces new users to start new threads instead of participating in existing conversations)
Since the move to the 5.1 image, my exchange accounts in the stock email app has stopped working. Looking around I see lots of chatter about Google's move away from the stock app in Lollipop. BUT...
Why did it work in the 5.0 image and not the 5.1?
And, more to the point, is there a way to get it working like it was in the 5.0 image??
Click to expand...
Click to collapse
There was a request to have Exchange3 instead of Exchange2 in the rom. You can setup your Exchange email accounts in GMail and things will be basically the same as with the old stock email app.
mikeoswego said:
There was a request to have Exchange3 instead of Exchange2 in the rom. You can setup your Exchange email accounts in GMail and things will be basically the same as with the old stock email app.
Click to expand...
Click to collapse
Does the switch from Exchange2 to Exchange3 eliminate the possibility of using the stock email app for exchange?
I have a few reasons why I want to use a separate email app for Exchange. The Exchange account is for work, gmail for personal, and so it is nice to keep them visually separate. Additionally, I want to be able to manage my Moto ActiveDisplay notification options differently (no notifications for Exchange emails, but yes for Gmail).
Is there a way to accomplish this with the current image I am using?
I do plan to S-OFF my device soon, and I assume that might open me up for more extreme options to get this working...
I've been using the Outlook app to supplement this functionality. It's not idea, and it seems to consume 10%-15% battery, which is much much more than the stock app used to.
I have absolutely no issues using an exchange account in the stock e-mail application. I am on stock 5.1 on my XT1095.
imaginaryenemy said:
I have absolutely no issues using an exchange account in the stock e-mail application. I am on stock 5.1 on my XT1095.
Click to expand...
Click to collapse
Thanks, imaginary, this confirms that the functionality was probably changed by the addition that mike made to the image. It's not a problem, necessarily, just unexpected.
imaginary, would you mind confirming the versions of your stock email app an Exchange Services (if you have it installed, it would be under Settings -> Apps -> All). Thanks!!
No problem. It's 5.1-5
Sent from my XT1095 using Tapatalk
claylong said:
Does the switch from Exchange2 to Exchange3 eliminate the possibility of using the stock email app for exchange?
I have a few reasons why I want to use a separate email app for Exchange. The Exchange account is for work, gmail for personal, and so it is nice to keep them visually separate. Additionally, I want to be able to manage my Moto ActiveDisplay notification options differently (no notifications for Exchange emails, but yes for Gmail).
Is there a way to accomplish this with the current image I am using?
I do plan to S-OFF my device soon, and I assume that might open me up for more extreme options to get this working...
I've been using the Outlook app to supplement this functionality. It's not idea, and it seems to consume 10%-15% battery, which is much much more than the stock app used to.
Click to expand...
Click to collapse
Unfortunately, Exchange2 for the stock email and Exchange3 for GMail didn't coexist so the old stock email is out. And the old Exchange2 can cause weird problems depending on how your Exchange admin set the server up. The new GMail has basically merged the old GMail and old pop3/imap/exchange program into one.
You ought to try setting up your Exchange account in GMail. While Gmail can combine everything into one inbox, it can be set to keep everything separate. You can select whether to sync or not for each account, whether to delete or not from the server when deleting from the phone for each account, notification on/off for each account, signatures, etc.
As a last resort, I could make you a patch that would restore the old Exchange2 and email but there is nothing the old email program did that GMail can't do in an almost if not completely identical way.
mikeoswego said:
Unfortunately, Exchange2 for the stock email and Exchange3 for GMail didn't coexist so the old stock email is out. And the old Exchange2 can cause weird problems depending on how your Exchange admin set the server up. The new GMail has basically merged the old GMail and old pop3/imap/exchange program into one.
You ought to try setting up your Exchange account in GMail. While Gmail can combine everything into one inbox, it can be set to keep everything separate. You can select whether to sync or not for each account, whether to delete or not from the server when deleting from the phone for each account, notification on/off for each account, signatures, etc.
As a last resort, I could make you a patch that would restore the old Exchange2 and email but there is nothing the old email program did that GMail can't do in an almost if not completely identical way.
Click to expand...
Click to collapse
I've been chewing this over. I don't doubt the gmail will provide the functionality, but I was really hoping to have different notifications, different icons, etc. Clear visual indicators between business and personal.
Been trying to make Outlook work, but yesterday it sucked up 25% of my battery. That's crazy, I don't even know what it's doing that whole time.
I hate to ask you to do anything like a patch. You've already done so much for the Verizon Moto X community (I know that I as convinced that we'd never get root and therefore any kind of decent dev community, but look where we are now!) and I'm sure you are busy.
At the point that I can S-OFF, maybe there a way that I can control my own Exchange2 / 3 fate. I'll have to start looking into that.
Thanks, mikeoswego, keep up all the good work!
claylong said:
At the point that I can S-OFF, maybe there a way that I can control my own Exchange2 / 3 fate. I'll have to start looking into that.
Click to expand...
Click to collapse
I don't know if you follow my thread but I did post yesterday a TWRP flashable zip that restores the stock mail and exchange2, removing exchange3, for the current stagefright patched rom. If you tell me exactly which mofo rom (and patch) your running, it really isn't a big deal to make a patch to put back the email and exchange 2 and I'll post it for others who might want it.
mikeoswego said:
I don't know if you follow my thread but I did post yesterday a TWRP flashable zip that restores the stock mail and exchange2, removing exchange3, for the current stagefright patched rom. If you tell me exactly which mofo rom (and patch) your running, it really isn't a big deal to make a patch to put back the email and exchange 2 and I'll post it for others who might want it.
Click to expand...
Click to collapse
I don't follow it, but I will now.
I still haven't taken the Sunshine plunge yet (have a question about needing to uninstall XPosed), so I'm not ready to use the TWRP images yet.
I think I have to break down and see if you are still willing to create a patch for the 5.1 mofo image... I am using the xt1096-5.1-v3.1g-pkg.7z (base image) with no patches.
For anyone interested, the use of the Outlook app has reduced my battery runtime from ~24 hours to about 10 hours.
claylong said:
I don't follow it, but I will now.
I still haven't taken the Sunshine plunge yet (have a question about needing to uninstall XPosed), so I'm not ready to use the TWRP images yet.
I think I have to break down and see if you are still willing to create a patch for the 5.1 mofo image... I am using the xt1096-5.1-v3.1g-pkg.7z (base image) with no patches.
For anyone interested, the use of the Outlook app has reduced my battery runtime from ~24 hours to about 10 hours.
Click to expand...
Click to collapse
I've made the patch but didn't read your post closely. The patch I made is for the current mofo image with the Stagefright patch, xt1096-5.1-23.32-25-5-mofo rather than 3.1g. If you can't upgrade to the latest for some reason, I can make you a patch for 3.1g later tonight.
The instructions to upgrade to the current version are here: http://forum.xda-developers.com/showpost.php?p=62791915&postcount=783
I posted the Exchange2/Email patch for that version here: http://forum.xda-developers.com/showpost.php?p=62966407&postcount=836
There is also a patch to removed Xposed in the xt1096-5.1-23.32-25-5-mofo archive if that is an issue when/if you decide to use Sunshine.
I can totally switch to the proper image then apply patches. It will be my first time, but I'm sure I'll manage.
Thanks so much for all your help! This is a most pleasant and refreshing community and you are a large contributor to that. Keep up the great work.
mikeoswego said:
I've made the patch but didn't read your post closely. The patch I made is for the current mofo image with the Stagefright patch, xt1096-5.1-23.32-25-5-mofo rather than 3.1g. If you can't upgrade to the latest for some reason, I can make you a patch for 3.1g later tonight.
The instructions to upgrade to the current version are here: http://forum.xda-developers.com/showpost.php?p=62791915&postcount=783
I posted the Exchange2/Email patch for that version here: http://forum.xda-developers.com/showpost.php?p=62966407&postcount=836
There is also a patch to removed Xposed in the xt1096-5.1-23.32-25-5-mofo archive if that is an issue when/if you decide to use Sunshine.
Click to expand...
Click to collapse
@mikeoswego, you are a lifesaver! I got the newer mofo image patched and flashed, and now I'm back in business with exchange through the stock email app. I am going to a theme park with the family tomorrow, and this means I won't be stuck with a dead phone by 3pm tomorrow but can still check in on work from time to time.
Thanks for everything!
so basically i want to monitor system wide app installation and uninstallation, including sideloading with dates? if possible to have it create a log and store it in a specific folder that is locked or can't be accessed or deleted without code. and to do a daily or weekly check to see if any changes were made.
also is there a task to block all installations including sideloading?
any help would be appreciated.
@ktmom
So tracking installed and uninstalled apps is straightforward.
I'm not aware of a way to lock the resulting file per se. Encrypt it, probably. But to prevent any other app from accessing it, I don't know how to do that. It could be uploaded to the cloud, e.g. Google drive. Then the local copy deleted. That's kinda fussy. Saving it as a variable array is doable, then Tasker can be locked.
If on every install / uninstall, the log is updated, why does there need to be a daily/weekly check?
I would have to test and see if the package manager can be "locked".
Is the device in question rooted?
This kinda sounds like something I might do to my kids phone [emoji6]. If this is actually the case, the file could be sent to your device or email on update. It wouldn't matter if the local copy was edited. You also could know immediately if an app had changed.
I asked in the other thread, do you have any familiarity with tasker?
@ktmom
device is non rooted,
file sent to email would be fine if that will get rid of daily/weekly checks. (<--- this was just something I wanted that maybe i'll just use in notepad++ to highlight the differences for a quick way of seeing changes.)
i have dabbled in tasker many years ago, only to enable/disable wifi and turn on vpn in geo fenced locations.
I haven't forgotten you. I should post a solution by the weekend. I'm just spending some time to make sure the kinks are out. You will need the MailTask plugin. I personally use a script in termux (requires cURL) to send via Google servers, but that is harder to setup, particularly with OATH. The plugin makes life much easier.
ktmom said:
I haven't forgotten you. I should post a solution by the weekend. I'm just spending some time to make sure the kinks are out. You will need the MailTask plugin. I personally use a script in termux (requires cURL) to send via Google servers, but that is harder to setup, particularly with OATH. The plugin makes life much easier.
Click to expand...
Click to collapse
ok great, thank you!
@BobMcGeez
Finally, I think I have this stable and able to handle multiple consecutive app installations and removals. I am working under the assumption that the use for this project is to monitor possible dangerous activity on a child’s device. I do not condone the use of this for monitoring a device without adult consent.
This project will send an email notification when a new app is installed or an existing app is removed. The email will include a CSV file with the remaining still installed apps. It should ignore apps that are being updated (they remove then install). The emails are sent silently and there should not be any indication to the user this is happening in the background. The CSV file is saved in the {storage}/Tasker/tasks/ directory. Each time an email is sent, the stored file is also updated. One instance of the previous file is saved as well.
First, you need MailTask installed. Please ensure that the MailTask plugin is fully configured and tested before installing this project. We are using OAuth Gmail authentication, so ignore SMTP stuffs.
Also, IMHO, I would use a GMail account maybe even created for this purpose, but at least one not setup to routinely access by the device user. This way, the user’s account will not reflect the sent messages.
To configure and test MailTask
Open MailTask from the app drawer on your device
Perform “Authorize Gmail Access” Use the account for the “from” you want to use in this project
Perform “Grant access to primary storage”
If your device has an SDcard, perform “Grant access to Sd card”
Now if you want, you can create a task in your Tasker installation to test the MailTask plugin
Create a test task
Add a MailTask action (Plugin -> MailTask -. send email)
Configuration:
From = Account used to Authorize Gmail Access above
To = Account where to send email
Subject = Testing MailTask
Body = Some text to take up space
Attachments = choose a basic file using the paperclip icon just for there to be an attachment
Test plugin by manually running the task.
If all is good, you can delete this test
Now install the project (taskernet link). On install, accept enabling the profiles. If you do, then the Installation task should run automatically. If you prefer not to, or if you need to re-run the installation, manually run the “Initial Setup” task.
This project may be shared under GNU v2. You may share, modify and use it provide you don't charge, the code is open and credit is provided.