yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Gear] BarryH_GEG:
Yep. Didn't change anything. My Gear works fine on my 10.1-14 with MK7/1.5 but I get the security warning on my N3. They both use the Samsung mail client to connect to the same Exchange server using the exact same settings. The only difference is the 10.1-14 never had the Gear connected to it before and it has a Latin American CSC. I think the former is the issue as my N3 registered the Gear initially with one CSC and may have realized the same Gear was now on a different CSC. I'd bet hard resetting both the N3 and Gear would resolve the problem but I don't feel like spending the entire day rebuilding my phone. I may have to any way if the U.S. version of MK7 still has the problem when it's released.
[Samsung Galaxy Gear] dtuck5330:
Does exchange mail work with an alternate app like Touchdown?
[Samsung Galaxy Gear] inmnbob:
Same problem I am having. No exchange email other than a notification. The text if the message is missing. I am stock US
[Samsung Galaxy Gear] cydonian66:
I updated mine too and now it doesn't show content :/ Maybe cause I have a PIN enabled?
[Samsung Galaxy Gear] Action B:
Perhaps the new gear manager app is designed to function properly with the new US firmware. I would wait for the US version to update and see if the exchange problem is solved.
[Samsung Galaxy Gear] bujd:
Touchdown

I have Touchdown and am on the new firmware with expanded notifications. It works. Notifications include a portion of the text of emails.
[Samsung Galaxy Gear] spinkick:
howcome you use touchdown vs the built in email app? Other than this latest problem.
[Samsung Galaxy Gear] mhoepfin:
Short of resetting my phone, I've tried everything - resetting the gear, uninstall/reinstall of gear manager, etc.

The email app has to be sending some flag to the gear not allowing the mail to be read. Hmmm...
[Samsung Galaxy Gear] BarryH_GEG:
I think it's one or more of the Gear Manager's transfer conduits doing some sort of status check on the Gear and detecting a change from a previously connected status. Otherwise my Gear/10.1-14 wouldn't work on MK7/1.5 with identical mail settings. Going forward I'd expect altered Gear's (EG: rooted) to have similar security issues. Similar to AllShare Cast not working on phones with any status but "official." All just guesses of course.
[Samsung Galaxy Gear] mhoepfin:
Can someone try this in this order -

1 - Uninstall gear manager

2 - Remove all accounts from the email app

3 - Reboot

4 - Install gear manager and notice if by default the Email app is checked for notifications

5 - Add your exchange account to the Email app

6 - See if email is still checked and whether you are now getting the full notifications.

I don't have time today to check all this but I have a theory, which is upon install of Gear Manager it is checking something which is causing it to default to unchecked for Email notifications. Without any accounts in the email app this may pass the check that makes it work going forward.
[Samsung Galaxy Gear] BarryH_GEG:
Here's what I think the problem is. Even after hard-resetting the Gear and uninstalling and re-installing Gear Manager there are settings files that are retained on the N3. When I reconnect my kit after the above GM still knows the personalized name I've given my Gear and asks me if I want to restore. I bet that hard resetting the phone or connecting a different Gear would resolve the issue.
[Samsung Galaxy Gear] mhoepfin:
I basically followed my steps, including clearing data and cache on the email app. Still no dice. I now think it has to do with the admin policy that is pushed to the phone, which gear manager is probably reading and restricting sending the message to the gear. Off to decompile the email notification program....
[Samsung Galaxy Gear] BarryH_GEG:
But MK7/1.5 work fine on my N10.1-14 using the Samsung e-mail client to connect to the same Exchange server with the same settings. The biggest difference between the N3 and N10.1-14 setup is that I'd never connected the Gear to the N10.1-14 before so the first initialization was on MK7/1.5. If you've got "skillz," try finding the files/folders on your phone associated to your Gear's MAC address. I'm betting that if you completely eradicate any reference on your phone of your Gear ever having existed and then reconnecting it as if it were virgin Exchange will work properly.
[Samsung Galaxy Gear] mhoepfin:
After decompiling the Gear Manager apk I found this in DataEmail.java. Looks like if you have a USA country code your exchange will be blocked.

Remember this is from the phone side with gear manager, not the gear side. Wondering if this is a bug, since it doesn't make sense to block exchange emails based on country, does it?

try

{

if (SystemProperties.get("ro.csc.country_code").equals("USA"))

{

NotiLogs.LogD("EmailService", "It is from USA!");

if (isEASAccount(paramInt))

{

NotiLogs.LogD("EmailService", "EAS Security has been applied!");

localNotificationDataStructure.setMainText("");

localNotificationDataStructure.setTextMessage("");

localNotificationDataStructure.setCustomField1("EAS");

}

}
[Samsung Galaxy Gear] cvondra:
Can you remove USA and put China in as an example and recompile/sign the apk?
[Samsung Galaxy Gear] BarryH_GEG:
That explains why my N10.1-14 works; its got a non-US CSC. With the B2B market in the U.S. being so big I thought about the U.S. being potentially treated differently at the behest of U.S. IT. Can somebody recompile the APK with the code you referenced edited?
[Samsung Galaxy Gear] mhoepfin:
Someone may, I just don't have the time...
[Samsung Galaxy Gear] BarryH_GEG:
Thanks for isolating the issue. It saved people a ton of time trying to figure out whether it was the Gear, GM, or CSC related. If I use 1.5 with MII I still lose Exchange preview so it confirms what you found to be true; At least for us in the U.S.
[Samsung Galaxy Gear] mhoepfin:
No problem... Still scratching my head on this one why they would do that. Thinking it is by choice since there is probably similar code in the notification screen since after the install of GM Email was the only one not checked by default. But why?
[Samsung Galaxy Gear] BarryH_GEG:
Gmail's penetration in the Fortune 1K is less than 10%. Personal use of Exchange is probably equally low so the driver (and concern about pissing Gear users off) isn't the B2C side. For the U.S. to treated differently I'm guessing it's due to forces outside of Samsung.
[Samsung Galaxy Gear] spinkick:
I'm not a programmer, but how hard would it be to fix this for people that use exchange in the US?
[Samsung Galaxy Gear] razorf150:
How to Roll Bace

How do I roll back to the previous gear manager? I need my exchange to work on my Gear.

Thanks.
[Samsung Galaxy Gear] BarryH_GEG:
Uninstall 1.5 and install 1.2 from this link...

https://mega.co.nz/#!YoYVlaLZ!Kn9i2XEcMr8IzQFNvQDEUQE91VctyZqaUgp5_u8d-4o

If you updated your Gear to MK7 you need to go back to MII because MK7 requires Gear Manager 1.5 to work. You'll get errors using 1.2 and MK7.

You can find MII here...

http://hotfile.com/dl/254805549/2eef987/XAR-V700XXUAMII-20131108111500.zip.html
[Samsung Galaxy Gear] doroyce05:
I had to revert back. Now i can only see the title of the exchange email. can you guys see the full body of the email?
[Samsung Galaxy Gear] BarryH_GEG:
Are you on both MII on the Gear and 1.2 on the Gear Manager? If you are and still can't see body text than you need to hard reset the Gear. Follow the directions for getting in to download mode but instead of choosing "download" choose "reset." When you connect the Gear to Gear Manager after you've reset it choose "reset" on GM vs. "restore." You'll have to rebuild your setup but it should get body text back in e-mail.
[Samsung Galaxy Gear] Tikerz:
Where is this exactly? I can't seem to find it.
[Samsung Galaxy Gear] mhoepfin:
It is in the SANotifprovider.apk which is one of the 20 or so apk's that gear manager installs.
[Samsung Galaxy Gear] Tikerz:
No wonder lol. Thanks!
[Samsung Galaxy Gear] mhoepfin:
Yeah sorry guess I should have been more specific haha..
[Samsung Galaxy Gear] Tikerz:
Add this to your phone's build.prop, save, and reboot. Then make sure Email is checked in Gear Manager notifications. Let me know what happens for you.

ro.csc.country_code=USA

I get a notification from my Exchange server but it tells me I can't view it on my Gear for security reasons.

EDIT: I changed it SPAIN and now I can read my exchange emails on my Gear!

ro.csc.country_code=SPAIN

That's probably what that line of code for USA check is for. If country is USA adhere to security rules!
[Samsung Galaxy Gear] jeff b:
Well, I attempted to decompile/edit/ recompile using android multitool but the result will not install. First try though so I am sure I did something wrong.

Decompile gear manager, do I then decompile the SANotifprovider.apk? I did that, used notepad ++ to edit the 2 lines in it with USA (changed to UAS)

recompile SANotifprovider.apk, copy androidmanifest and meta folder from unmolested SANotifprovider.apk using 7 zip, then sign

Copy SANotifprovider.apk back into the decompiled gear manager,

compile gear manager

copy androidmanifest and meta folder from unmolested gear manager

sign gear manager

copy to phone and install but at end it says

xApplication not installed
[Samsung Galaxy Gear] mhoepfin:
You could probably just get away with recompiling SANotifprovider and not worry about getting it back into the gear manager apk.
[Samsung Galaxy Gear] jeff b:
I tried installing just SANotifprovider after I recompile and sign and it wont install either.

---------- Post added at 11:14 PM ---------- Previous post was at 10:49 PM ----------

Nevermind, I am an idiot.......

Decompiling moves to decompiled folder, recompile moves to recompile, signing moves to signed folder.........Missed the last step and kept using the unsigned version.

Installs Now, but it doesnt work (get an exception when connecting to gear)

Trying something else...
[Samsung Galaxy Gear] Tikerz:
Try my build.prop solution? I get exchange notifications on my Gear now.
[Samsung Galaxy Gear] jeff b:
doesnt that require root?
[Samsung Galaxy Gear] Tikerz:
Yeah, it would since it requires editing the phone's build.prop. I should clarify, root on phone, not on Gear.
[Samsung Galaxy Gear] BarryH_GEG:
Root breaks KNOX. Devices with a tripped KNOX flag are now being denied access to secure networks because most recently updated MDM s/w audits the status of the flag before granting access. A device with a tripped KNOX flag will never be allowed on a secure network eventually. Not unlike a broken NFC secure element.

Can someone extract the "noti" APK from 1.2 and see if it can be installed on top of 1.5?
[Samsung Galaxy Gear] Tikerz:
I don't see how knox relates to being able to read exchange emails on the Gear with the new APK update? It's just a tool for companies to use if they want to deploy secure devices if they wish. Exchange email notifications worked fine with the new Gear Manager update and old firmware, but not new firmware.
[Samsung Galaxy Gear] cvondra:
I have all knox **** removed and have no issues connecting to secure network.
[Samsung Galaxy Gear] Tikerz:
Just add this to your phone build.prop and reboot. Then you'll be able to read exchange emails on your Gear.

ro.csc.country_code=SPAIN

As long as it's not USA, it will work.
[Samsung Galaxy Gear] ArborRes:
I have tried this method and it works! Thank you much for this simple solution!

Now I am truly getting all my notifications!!!:D
[Samsung Galaxy Gear] Tikerz:
Awesome!
[Samsung Galaxy Gear] highlordkram:
This all sounds great, now I just need to figure out how to root the phone. I am sure it is on here in several places though. Thank you very much for your work on this.
[Samsung Galaxy Gear] Tikerz:
My guess is that this is a required security feature in the USA that if you exchange server has certain security features enabled, then you cannot view the emails on you Gear. It might have been overlooked at first, but Samsung fixed it?
[Samsung Galaxy Gear] dave0812:
Not finding that line anywhere in mine. Us cellular. Cdma

Would that make a difference?
[Samsung Galaxy Gear] Tikerz:
You have to add it. It won't be there.
[Samsung Galaxy Gear] dave0812:
Add it anywhere in particular ?
[Samsung Galaxy Gear] jeff b:
root on the verizon gs4 on 4.3 stock.........

-----

Not sent from a PC......or a red delicious.....but from a robot with a human appearance.
[Samsung Galaxy Gear] Tikerz:
Nope. I just added it at the end.
[Samsung Galaxy Gear] dave0812:
Thanks. worked like a charm
[Samsung Galaxy Gear] BarryH_GEG:
Sorry, that was a long and verbose reply suggesting rooting isn't really an answer for everyone and more so as time elapses because of the adoption of KNOX h/w and s/w features for BYOD and COPE.

I connect to five managed networks. Three read the KNOX status indictor on Samsung devices using Samsung's SAFE API and restrict access if it's tripped. One company has adopted a policy that all Android devices (BYOD and company provided) used on the network must be KNOX capable (EG: Samsung only). All five have written policies people accessing the networks must sign agreeing that using a compromised device (EG: a rooted device) on the network is a terminable offense even if there's no security compromise or breach. Post-Snowden network security is a huge priority for Fortune 1K equivalent companies. So while it may not affect you personally it's affecting a lot of people and more as time progresses.
[Samsung Galaxy Gear] Brendo:
Can someone try this mod. I'm not in US (however could try build.prop mod I guess). I included signed and unsigned apk as one or the other may not work. You'll need to uninstall currently installed Gear Manager (which in turn will wipe your device as you'll need to connect it again). It's not as simple as deleting/removing specific apk as the Gear Manager will just redownload it automatically (although could try replacing with no internet access turned on)

http://www.mediafire.com/folder/4nd9xqnnwxw0u/US_Mod
[Samsung Galaxy Gear] mhoepfin:
Doesn't changing the country code on the build prop affect things like the play store?

---------- Post added at 02:48 AM ---------- Previous post was at 02:44 AM ----------

Problem is that it doesn't look for any specific security features. It looks to see if your country code is USA, and if it is then checks to see if it is an exchange account, and if it is doesn't show the message. Nothing about pin lock, security, etc.

I think it is either a bug or something that was done half baked and never removed and the developer/testers aren't in the US so never noticed.
[Samsung Galaxy Gear] Tikerz:
No change there as far as I can tell.
[Samsung Galaxy Gear] dave0812:
Mine appears to be working fine as well
[Samsung Galaxy Gear] cvondra:
Thanks for the explanation. I understand that if you have KNOX based policies configured on the server side you will find issues. Makes total sense there. I am fortunate to have control of my exchange environment so I don't deal with sec policies that someone on the other end has decided to adopt in relation to spec. outside environmental changes. Good explanation on when it is an issue for many based on def. of secure network, with the understanding that not everyone is dealing with as stringent of policy application as this. Thanks again!
[Samsung Galaxy Gear] jeff b:
Neither works for me. Unsigned wont install, and signed has same issue as the one I compiled, it has an error when trying to connect to gear and then just fails to connect.
[Samsung Galaxy Gear] Brendo:
Doh...back to the drawingboard
[Samsung Galaxy Gear] archerks:
What App\Program to edit with

What program/app would you suggest to use for finding and editing the file? I am rooted....
[Samsung Galaxy Gear] Tikerz:
I used Root Explorer. I think ES File Explorer would work too.
[Samsung Galaxy Gear] jeff b:
May have another easier option. I installed the stock android email app (emailgoogle.apk I used the 4.4 one) and exchange services and setup my exchange account there. Deleted account from Samsung email app.

Unchecked the stock samsung email app in gear manager notifications and checked email in more notifications. Seems to be working!
[Samsung Galaxy Gear] Brendo:
Couple of new versions to test

- Gear manager version where I replaced the contained apk with 7zip (if it won't work, will try decompile/recompile instead)

- The actual modded notification apk is located in preinstalled folder. Suggest putting phone into airplane mode, then removing apk from device, then installing modded apk
[Samsung Galaxy Gear] BarryH_GEG:
Tried the first one. It goes through the installation process and then craps out at the end. Thanks so much for your efforts; especially considering you're not even in the U.S. :good:
[Samsung Galaxy Gear] potahov:
Stock android app from 4.4 does not work with Gear, I'm not getting notifications on Gear even I checked it on at "More Notifications"
[Samsung Galaxy Gear] Action B:
I will give it a shot tomorrow after my last test for the week and report back.
[Samsung Galaxy Gear] jeff b:
Weird, mine works.

My biggest issue now is if i have an email come in, notification is great. If i have a second come in (before i look at it on the phone) the second notification isnt as good. It says 2 new messages and has less detail. 3rd is worse again. Same for gmail and other apps.

Is there any way to change this?

-----

Not sent from a PC......or a red delicious.....but from a robot with a human appearance.
[Samsung Galaxy Gear] highlordkram:
It worked!

Thank you very much for this idea. It worked fine and I am getting notifications on the watch now and they look great. And the emails look even better on the phone with a large box with the initial of the person's last name that you can use to easily delete or move the emails.
[Samsung Galaxy Gear] Action B:
The thing about the Samsung email is that it has a spam box. I go to college and exchange won't let me filter any emails with the colleges domain name. Samsung solved this problem by sorting it for me as they arrive at the phone. Is it possible to filter spam in the google email?
[Samsung Galaxy Gear] potahov:
Reinstalling Gear Manager helped in my case, now notifications work fine.
[Samsung Galaxy Gear] Mr Ian B:
Can u link me to the app you r using for stock Android email please. Downloaded 2 and had no luck getting them to work for setting hotmail.com account.

Are u using a Note 3 with Gear?

Is either one rooted?

I am running Note 3 and Gear non rooted both.

tia,

IAN B
[Samsung Galaxy Gear] jeff b:
google googleemail.apk and the second result is androidpolice with the links.

using GS4, and neither is rooted.
[Samsung Galaxy Gear] potahov:
Or google for com.google.android.email-6.0-920375.apk and com.google.android.exchange-6.0-920375.apk to get versions newer than on androidpolice. Installed both on non-rooted Note 3.
[Samsung Galaxy Gear] Mr Ian B:
Thanks for your help. I found both apks, downloaded them and installed them. Set up my hotmail.com account and now I get full message and text in the Gear. Now this Gear is perfect in my book and battery rock solid at 96% after 5 hours of use today.

Thanks again,

Ian B
[Samsung Galaxy Gear] dhedge:
Thanks!!

This worked perfectly! I can now use my gear again. Thanks again
[Samsung Galaxy Gear] doroyce05:
So, if i have a US phone i need to change it to SPAIN so that i can read my exchange emails on my gear?
[Samsung Galaxy Gear] Mr Ian B:
Look at my post 88. Follow his steps, disable Samsung email app and you will be good to go with the google stock mail app. You need to download and install both for an exchange email address as hotmail.com

Ian B
[Samsung Galaxy Gear] BarryH_GEG:
The stock e-mail app's pretty poor for use with Exchange. It's great that it's a solution for some of you guys but it still doesn't explain or excuse Samsung taking away functionality and doing so for only a single market (the U.S.).
[Samsung Galaxy Gear] jeff b:
Whats so bad about the stock app? Honest question, since i have never had an issue with it.

I think its pretty obvious they are trying to adhere to the corporate IT crowd, who enforce PIN locks on devices. Being able to read emails on your watch is a violation of that policy. Since they havent rolled out the update to the US, the complete block is likely just an initial step to make sure that leaked versions will "adhere" to corporate policies.

With the addition of knox samsung is eyeing the corporate market more and more.

-----

Not sent from a PC......or a red delicious.....but from a robot with a human appearance.
[Samsung Galaxy Gear] BarryH_GEG:
I connect to five different Exchange accounts not counting my personal one. The Samsung e-mail client allows each to be managed with individual controls and security certificates. A lot of companies that use Good, Touchdown, or K9 will still allow use of the Samsung client as a secondary option. I've never seen a company (at least those I've worked with) allow HTC's or Google's clients on their networks.

Whatever concerns Samsung now about displaying Exchange body text on the Gear existed from day one. And for multinational companies only blocking e-mail text on phones purchased in the U.S. isn't a solution if that's the driver. Putting a control or toggle in the e-mail client worldwide makes more sense then f-ing around with Gear Manager based on phone CSC. This whole thing is stupid and not very well thought out.
[Samsung Galaxy Gear] jeff b:
Doesn't that describe the gear in general? Rushed and not really ready?

-----

Not sent from a PC......or a red delicious.....but from a robot with a human appearance.
[Samsung Galaxy Gear] BarryH_GEG:
I like most here bought the Gear as a play thing. It's been surprisingly useful and it's made me more productive. TripIt, Glympse, Vivino, and Path are great on the Gear. I've gotten some incredible pics on the camera and use it a lot. I'm happier than I thought I'd be; especially for a V1 product. That why I'm so pissed Samsung's taking features away while seeming to be focused on introducing meaningful improvements. All just my opinion of course. ;)
[Samsung Galaxy Gear] nascar24usa:
Help please

OK, great!!
[Samsung Galaxy Gear] bralkan:
Thank you sir! Kingo root and this is awesome!
[Samsung Galaxy Gear] inmnbob:
I did what was in the post 88 about installing the android email and exchange app and installed.thr GM 1.5 app. I disabled in the notifications the gear manager for the Samsung email but don't have an option to enable the New email app.

Did I need to install the new watch firmware too?
[Samsung Galaxy Gear] ttevis:
sync error - waiting for sync

Installed, deleted stock email, powered off/on still get sync error.
[Samsung Galaxy Gear] BarryH_GEG:
Yes. It's the watch firmware that enables the additional notifications. You need to install MK7 on your Gear.
[Samsung Galaxy Gear] mhoepfin:
Did the build.prop change this morning. Actually very easy since Rom Toolbox has an editor. Anyway, working great with no side effects.
[Samsung Galaxy Gear] BarryH_GEG:
Possible side effects:

- "Custom" or "Modified" status breaks some DRM protected apps and definitely breaks AllShare Cast.

- Some apps and all of Samsung's determine what content is available (EG: Play/Samsung Apps) based on CSC. For example my N10.1-14 from Latin America can't access Samsung Music or Movies via Samsung Hub because its CSC is blocked.

The CSC is stored in other places too so changing it in the build prop may cause conflicts when they don't match. Or the other locations are what's read so it could mean nothing. ;)
[Samsung Galaxy Gear] Action B:
My device status on my note 3 : Custom

My allshare cast dongle: Working

I thought this is odd myself because i remember my note 10.1 not working with allshare cast when I flashed a custom recovery. Anyhow, I'm not complaining.
[Samsung Galaxy Gear] mhoepfin:
As I said, no ill effects. Rather than live scared and not try it, I'll keep the change in build.prop until something doesn't work that I need and then I'll remove it. I haven't looked enough but obviously it is also stored somewhere else, the entry wasn't even there to begin with. Also I expect Samsung will fix this in the Gear Manager code at some point anyway.