yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] arghya18:
Hi,

Firstly many thanks for the patch, it really removed my concern.

kindly help me solving the below issue.

I am using Moto E + cyanogenmod 13 + GFE 2.7.1.390 + GFE patch 3.5.

I am able to send/receive emails but not able to view attachment and getting the below error as reported by others also

"Opening this file type outside Good is blocked by your IT administrator"

I have gone through the thread but couldn't find any solution, please help on this as we send most of the information using excel attachment.

Note: Non-rooted and Stock ROM users can view attachments.
[Android Software/Hacking General [Developers Only]] ghbuur:
at least one solution would be to forward those emails to your private mail like gmail or whatever ;)
[Android Software/Hacking General [Developers Only]] catzilla:
The company might frown upon business documents ending up in personal mailboxes...
[Android Software/Hacking General [Developers Only]] arghya18:
Unfortunately my client does not allow to send emails to personal mailboxes.:(

Looking for a solution that's why! :)
[Android Software/Hacking General [Developers Only]] lion567:
What GFE version non-rooted users use to see the attachment? I guess 3.x?

It seems to be a kind of drawback of this hack. Current GFE (3.2.2.442) included special restricted version of SmartOffice 2.5 for attachments viewing without dropping file on device outside GFE. Several versions before it was QuickOffice. I don't remember in which version Good introduced this feature, so it may be that GFE 2.7.1.390 lacks this feature or it was broken by patch.
[Android Software/Hacking General [Developers Only]] arghya18:
Thanks for your input :)

Anyone have succeed in opening attachment using this hack, please confirm.
[Android Software/Hacking General [Developers Only]] ddimple4:
Using 2.7.1.390 with patch and can open attachments using regular apps.

I followed the post about allowing root and replacing the file.
[Android Software/Hacking General [Developers Only]] catzilla:
After Good auto updating despite me unchecking the checkbox (just like you warned me), I knew I need to wipe it from Google Play.

However, I can't seem to get this to work. First, I had to install busybox for wc and sqlite3 (wasn't installed on my device).

Still not working, complaining that "fi" is invalid syntax (wtf??)

I've trimmed it down to one line to be run daily:

am force-stop com.android.vending; sqlite3 /data/data/com.android.vending/databases/library.db "DELETE from ownership where doc_id='com.good.android.gfe'"; sqlite3 /data/data/com.android.vending/databases/localappstate.db "DELETE from appstate where package_name='com.good.android.gfe'"; sqlite3 /data/data/com.android.vending/databases/package_verification.db "DELETE from verification_cache where package_name='com.good.android.gfe'"

I can run this from terminal just fine with no errors, but I can't seem to get it to work from Tasker:

How did you get it working?

Could you perhaps share the Tasker task/profile you made?
[Android Software/Hacking General [Developers Only]] arghya18:
Could you elaborate a bit, i have applied the patch but did't replace any file. Which file i have to replace?

I guess we can to replace some file for 64 bit phone.
[Android Software/Hacking General [Developers Only]] lion567:
AFAIK there is configurable setting on GFE server that prohibit attachments opening via regular Android apps. It seems that [MENTION=4255382]ddimple4[/MENTION] is lucky and this security setting does not enforced on GFE server he is working with.

Attachments viewer (a part of SmartOffice code) is embedded in GFE apk, so there is nothing to replace.

If your device is running 64-bit Android

root@A10-70L:/ # uname -m
aarch64

there is a weird workaround from [MENTION=2221071]xaueious[/MENTION] and [MENTION=4931919]munchee[/MENTION] for 64-bit platform http://xdaforums.com/showpost.php?p=62970150&postcount=1380 But it seems you don't need this workaroud - it address GFE + Xposed crash on 64-bit Android.

Try to specify full path to am and sqlite3 binaries, for example, if you have sqlite3 in /system/xbin (commonplace)

/system/bin/am force-stop com.android.vending;
/system/xbin/sqlite3 /data/data/com.android.vending/databases/library.db "DELETE from ownership where doc_id='com.good.android.gfe'"
[Android Software/Hacking General [Developers Only]] paffo:
In tasker I am calling script which is placed in /system/xbin

This is my own script I place again here (added "exit 1" code for Tasker to be able to start again Google Play if it was killed).

#!/system/bin/sh

goodcheck1=`sqlite3 /data/data/com.android.vending/databases/library.db "SELECT * from ownership where doc_id='com.good.android.gfe'" | wc -l`
goodcheck2=`sqlite3 /data/data/com.android.vending/databases/localappstate.db "SELECT * from appstate where package_name='com.good.android.gfe'" | wc -l`
goodcheck3=`sqlite3 /data/data/com.android.vending/databases/package_verification.db "SELECT * from verification_cache where package_name='com.good.android.gfe'" | wc -l`

if [ $(($goodcheck1+$goodcheck2+$goodcheck3)) -ne 0 ]
then
am force-stop com.android.vending
sqlite3 /data/data/com.android.vending/databases/library.db "DELETE from ownership where doc_id='com.good.android.gfe'"
sqlite3 /data/data/com.android.vending/databases/localappstate.db "DELETE from appstate where package_name='com.good.android.gfe'"
sqlite3 /data/data/com.android.vending/databases/package_verification.db "DELETE from verification_cache where package_name='com.good.android.gfe'"
exit 1
fi

Like you noticed, busybox and sqlite3 is needed. But your error with "fi" is ok, cause its not a command, only and of "fi" loop.

Copy paste all above code block to a file, place it in /system/xbin, and add execute attributes.

To do it after creating file on your internal memory with example name GoodFix.sh - you need run bellow commands from the shell (after "adb shell" on your PC)

su
mount -o remount,rw /system
cp /data/media/0/GoodFix.sh /system/xbin/
chmod +x /system/xbin/GoodFix.sh
mount -o remount,ro /system

Then you will have working command "GoodFix.sh" and you can use this in Tasker without path to that file.

WARNING:

In my settings I seen that autoupdate in Google Play must be disabled at all. Otherwise in some period of time all apps will be updated - this is maybe expected, but... my workaround with removing Good from the list is from time to time is overwritten and then all settings regarding this app is also set to default (autoupdate checkbox for this app will be set).
[Android Software/Hacking General [Developers Only]] arghya18:
Hi,

Sorry, i could not get that completely. As i mentioned in my earlier post i am not able to view attachment, what should i do to view?

I am using Moto E + Cyanogen 13 + GFE 2.7.1.

Please help.
[Android Software/Hacking General [Developers Only]] paffo:
You cant do much, choose one:

1. Use unrooted, not modified rom with latest Good

2. Ask good administrators for changing the policy (or create one less strict specially for you), cause like lion567 said GFE server have such settings to allow or deny opening attachments in external apps.

EOT
[Android Software/Hacking General [Developers Only]] arghya18:
Thanks for your input.

Firstly i am using rooted phone so first option is not ok for me.

Secondly my client will never change policy for an employee:D

Is there any other hack?
[Android Software/Hacking General [Developers Only]] lion567:
If you use root embedded in CM 13 (cm-su) you could try to temporary disable root access in settings - for developers before starting GFE.
[Android Software/Hacking General [Developers Only]] paffo:
I forgot about two other options:

3. Forward email with attachment to private account (I know you are not allowed)

4. Leave your client for god sake...

There is no other options, but do not hesitate to ask again :)

---------- Post added at 08:08 PM ---------- Previous post was at 07:56 PM ----------

Actually this can be a good idea, but question is if its so simple to unroot and Good wont have any problems with other checks he perform.

If it is possible, I would rather disable root at all and create profiles in Tasker for apps that need root to run and killing Good service as well (probably freezing Good with Titanium Backup).

I would rather order some device from the client to be in contact (tablet probably would be better), then used this Good 2.7.x.x on private phone only to receive notification, or read/write emails without attachments. In case there is some file in the email - second device can be used. If this would be phone and we can expect some calls from client, then we can simply set call forwarding (like I do).
[Android Software/Hacking General [Developers Only]] BatDroid:
i didn't understood a single thing about what it is and how it works!
[Android Software/Hacking General [Developers Only]] catzilla:
I observed today that Good itself is putting itself back into Google Play.

Therefore the only safe way to avoid updating Good but to allow autoupdate of other apps is to run the script every time after exiting Good.

And I'll probably make the deletes unconditional. I observed that your third condition did not become true after Good put itself back in Google Play with "autoupdate" checked.
[Android Software/Hacking General [Developers Only]] paffo:
First of all in my script if any condition is true - databases will be cleaned.

Second - Goolge Play has a lot of receivers and can be invoked for example if you connect/disconnect device to/from charger, so invoking the script after exiting Good is not enough. Probably best would be to do this every hour or so, but if you choose to long interval - there is a chance that Google Play databases will be refreshed and Good will be updated.

Third - to clean databases, Google Play need to be killed, and this will generate error, so probably very soon service will be started and synchronization will be repeated.

Fourth - If you disable auto-update globally you can update all apps with one click - simple, and with my workaround you wont see Good in the list.

Off topic: IMHO - the most important in disabling autoupdate is the fact that from time to time updates spoil features crucial for you. Its good to check release notes and comments and if some people are yelling, or new features are not important, or new version fixes error you haven't ever seen - do not update :)
[Android Software/Hacking General [Developers Only]] royal_eagle:
guys,

this version 2.7.1.390 is not working with exchange 2013, right ?
[Android Software/Hacking General [Developers Only]] napes22:
Is anyone working on a solution for Good Works? The new platform breaks out GFE into a chat, email, and intranet application. Apparently they all check for root and Xposed access.
[Android Software/Hacking General [Developers Only]] payne_307:
Everyone saying we need to turn off auto update is wrong. I have been using Good for over 3 years now. In the last 1 & 1/2 years I have been running without any special hack. All you need to do is go play store, open good which would already be prompting you to update the app (don't update the app). On the top right corner of the Play Store app (while staying on the GFE app screen in Play Store) there is a 3 dot menu. Uncheck the option there to auto-update. Done !! It never auto updates the Good app ever, however your other apps will continue to get auto-updated. In case you want to manually update some bunch of apps by clicking update all, there is a warning that comes up as the very first window asking you whether you want to Auto Update Good since you have skipped its auto update. Choose skip on that and then again all the other apps will update but Good won't.
[Android Software/Hacking General [Developers Only]] napes22:
Anyone? The old version of Good is being shut down at my firm mid June.
[Android Software/Hacking General [Developers Only]] zrzhu:
Hi just want to confirm that GFE 2.7.1.390 is still working on Marshmallow. I have a working version on Lollipop now. I will follow steps below to install CM 13 and GFE:

1. Back up the working GFE app and data

2. After installing CM13, i'll install Xposed Framework for ARM64 from here

http://xdaforums.com/showthread.php?t=3034811

3. In Xposed Framework, i'll download and activate GFE disable Module

4. Restore GFE app and data

5. In /data/app/com.good.android.gfe-1/lib/arm directory, copy libsyncengineradio-lib.so to overwrite libsyncengineradio-lib2.so. For this step, can I just delete the original libsyncengineradio-lib2.so then rename libsyncengineradio-lib.so to libsyncengineradio-lib2.so?

Did I miss anything? Thanks.
[Android Software/Hacking General [Developers Only]] payne_307:
Yes for your initial question about marshmallow.

Please reboot after step 3. Step 5 is not needed if you don't have a 64 bit device.
[Android Software/Hacking General [Developers Only]] sml12:
Will this module work with Good Work? ( not Good for Enterprise).
[Android Software/Hacking General [Developers Only]] zrzhu:
I don't think so. Someone mentioned it did not work.
[Android Software/Hacking General [Developers Only]] lion567:
Surely it shoudn't. Only exact (and rather old) GFE version 2.7.1.390 works with this module. Newer GFE versions detects Xposed by itself and prohibits to start. Very likely that Good Work behavior would be the same.
[Android Software/Hacking General [Developers Only]] tdelet:
GFE 3.2.2.442 working on rooted device

I just re-installed Pure Nexus on my 6P (the current release uses systemless root) and I was surprised to find that both Android Pay and Good for Enterprise (GFE) are working seamlessly. I do have rootcloak installed, but I don't really know if I need it.

That's the current version of (the horrible, awful, god-I-wish-my-company-wouldn't-make-me-use-it) GFE app - not the 2.7 version that has worked on rooted devices in the past. To be honest, I don't see any difference between 2.7 and 3.2. I can't imagine what the developers at Good are doing to make this crappy software even worse, but it looks exactly the same.
[Android Software/Hacking General [Developers Only]] payne_307:
Thanks for the update. I think it's dependent on each company's IT rules. Some companies using good allow rooted devices, some don't. I wish I could use a setup like yours. I think the newer version of the app is a bit less buggy. I'm also using Systemless root but it's a OnePlus One on stock OS. I don't know if for 6P the implementation is different than OPO, but on mine anything other than v2.7.1 doesn't work without the Xposed module. I don't even know if we would ever get an upgraded patch for the newer version of the app.
[Android Software/Hacking General [Developers Only]] elpeterson:
I can't find the 2.7.1 apk anywhere, does some have a link to it?
[Android Software/Hacking General [Developers Only]] ghbuur:
https://www.dropbox.com/s/eafxhg7a7...gfe-c22bda0160189fca98cf522c95507763.apk?dl=0

;)
[Android Software/Hacking General [Developers Only]] elpeterson:
You are the man! Thanks so much!
[Android Software/Hacking General [Developers Only]] illwafer:
Just another data point. Running latest GFE on my rooted 6.0.1 T-MOBILE V10. Once install Xposed, Android Pay no longer works, and I have to use GFE 2.7.1 only. For now, I'll be using it without Xposed.
[Android Software/Hacking General [Developers Only]] zrzhu:
Can anyone share libsyncengineradio-lib.so with me? So I can get my GFE working on my HTC m9, 64bit device. Thanks.
[Android Software/Hacking General [Developers Only]] zrzhu:
Anyone?
[Android Software/Hacking General [Developers Only]] gorthon:
Is anyone using a current version of GFE with systemless root AND Xposed installed?

I just upgraded to marshmallow and would like to update GFE as well, as 2.7 is kind of annoying. For example, I cannot open most attachments and the address book sync to Android does not work, so I don't are who's calling.
[Android Software/Hacking General [Developers Only]] mayanknshah:
Appreciate if someone can guide me.

I have VZW Note 3 on 6.0.1 running Darklord s7 Edge Rom.

I installed the Xposed framework for samsung tochwiz rom (by wanam)

I installed the module - Xposed GFE security patcher -- checked it on in module and rebooted

Downloaded 2.7.1 apk and gave GRANT access on the prompt

After that i am only seeing a WHITE screen .. Can someone please help?
[Android Software/Hacking General [Developers Only]] emplox:
Would also love to know if there is any method of getting the latest version of GFE working with root. Has anyone tried magisk?
[Android Software/Hacking General [Developers Only]] Sleestax:
Hey, does Good only check for root the one time? Can I uninstall the Xposed framework after I get good configured and synched? Or. Does it check for root on each launch?
[Android Software/Hacking General [Developers Only]] dabrowsk:
Unfortunately you cannot :( it checks it each time.
[Android Software/Hacking General [Developers Only]] chronometal:
i really wish there was an alternative to good. it's a really shtty app to begin with.

I want to root my NX 6P but because i need to have access to good...i dont want to chance it. very inconvenient

:(:rolleyes:
[Android Software/Hacking General [Developers Only]] Sleestax:
Chainfire released a new way to hide root from apps. Can anyone try this out and report back? I've asked for new good pins too often and my last conversation was dangerously close to having the admin not issue a new pin.

http://xdaforums.com/apps/supersu/suhide-t3450396

If it works, that will breathe new life into Good (as long as someone gets the latest apk before they update again to detect root.)
[Android Software/Hacking General [Developers Only]] adlx.xda:
Just wondering ... Would it be possible to use another app and fake it somehow so that it appears as Good, using for example an Xposed module ? How does Good talk to the server? In case of an exchange server, I guess a Good client will advertise itself using some kind of User Agent string, maybe we could force another client like Nine to change the user agent string into Good's one? Does anyone know if that could work?
[Android Software/Hacking General [Developers Only]] gorthon:
That would still keep is from using xposed, unless good doesn't detect systemless xposed.
[Android Software/Hacking General [Developers Only]] dabrowsk:
Unfortunatelly it doesn't work for me.

But... I did a process of changing from system to systemless root, so maybe here is an issue.
[Android Software/Hacking General [Developers Only]] gorthon:
My theory is that with this module hiding root from good works fine. Our problem is just that newer good versions detect xposed. So we need a way to hide xposed and newer versions should work with this module.

Has anyone tried systemless xposted with this module yet?
[Android Software/Hacking General [Developers Only]] Sleestax:
That's why I was excited by the new chain fire root hider. No need for Xposed at all anymore if it worked. I only have Xposed installed for the GFE Patcher module.
[Android Software/Hacking General [Developers Only]] gorthon:
Well, that would keep you from using Xposed for many other usefull things, like GravityBox or YouTubeAdBlocker.
[Android Software/Hacking General [Developers Only]] Niraj251:
Hey bro Can you Help Me related to this Error i m on Redmi note 3[Snapdragon] 3Gb 32Gb

Miui8 6.9.22 global Beta rom [MM 6.0.1]

Rooted Also tried your Module but App is still detect Google security...
[Android Software/Hacking General [Developers Only]] anks329:
Just wondering, does Good care if you've unlocked the bootloader and have a custom recovery/rom? I'm seeing some mixed reports that it does/doesn't care about it. Ideally, I'd want to have a custom rom without root installed on my phone versus being stuck with the stock rom.
[Android Software/Hacking General [Developers Only]] gorthon:
It definitely doesn't care. I have the current good work app running on a galaxy s3 with cm13 and TWRP recovery (root set to disabled in cm, of course).
[Android Software/Hacking General [Developers Only]] CravingMender9:
I'm pretty sure it does. It is one of the checks for them that determines if it'll work or not.

Though it is up to your Enterprise admin to ensure it is enforced. i.e. if your admin allows it, GOOD doesn't care.

I know this because our admin doesn't allow it. I had a stock ROM and I was still blocked.

I found out that GOOD were previously flagging *ANY* app developed by Chainfire. I had to work with GOOD devs to actually explain that not all Chainfire apps were root related and give them the regex to ignore all his apps but SuperSU (not sure if they used it or used their own code ;)).

---------- Post added at 09:41 AM ---------- Previous post was at 09:40 AM ----------

That is because your admin allows it. GOOD has the checks in place to care if your workplace admin cares.
[Android Software/Hacking General [Developers Only]] anks329:
Well that's annoying; and there's no way to know beforehand on what my workplace admin has set up until I try it. I'm assuming they are going to be more strict as I have a completely vanilla phone and it's not allowed because it's not a Good Certified phone and fails the hardware compliance policy.
[Android Software/Hacking General [Developers Only]] rmccurdy:
This guy I know Bob used the old as hell GFE at his old company

https://rmccurdy.com/stuff/GFE_WORKING_10292017_pw_is_password.zip
[Android Software/Hacking General [Developers Only]] mentalinc:
Is there any way that this could be changed to work on magisk?

Ofcourse still works fine with xposed, but wondering if the move to magisk would get us any mileage?
[Android Software/Hacking General [Developers Only]] fillippe:
I'm systemless with magisk and Good works until Xposed is installed. The problem now is that Good detects Xposed.
[Android Software/Hacking General [Developers Only]] ddimple4:
Is that with Magisk Hide enabled?
[Android Software/Hacking General [Developers Only]] ghbuur:
until now we were stock to MM coz of xposed. with the newest magisk 11.6 i wanted to give another try to nougat and check if gfe works. and surprisingly it does! here my steps:

-backup working gfe (old version) with titanium

-update s7e to superstock nougat with magisk

-set up everything you need

-check safetynet passes (hide system ui and disabled usb debugging)

-install gfe from play store

-hide it in magisk

-uninstall gfe, restore from backup

-reboot phone

enjoy gfe on nougat ;)
[Android Software/Hacking General [Developers Only]] Jainyankee1993:
How are you backing up gfe with titanium without root...
[Android Software/Hacking General [Developers Only]] ghbuur:
ah i came from MM and backed it up there already, root/xposes was necessary of course. then updated to N and after magisk steps just restored my apps incl. gfe.

additionally i changed signature of the old gfe apk to get rid of the update notification in play store ;)
[Android Software/Hacking General [Developers Only]] gorthon:
Does anyone have experience whether good / BlackBerry work works with Magisk?
[Android Software/Hacking General [Developers Only]] ghbuur:
just updated gfe to newest version and it works. magisk is doing its magic ;)
[Android Software/Hacking General [Developers Only]] gorthon:
But the days of GFE are counted, companies are migrating more and more to BlackBerry work, which is what I meant. Haven't found a solution yet to run that on a rooted phone with xposed and thought maybe Magisk could do it.
[Android Software/Hacking General [Developers Only]] timurdis:
ugh... my company has now moved to Blackberry Work now.

I am using Moto G (Falcon) with Tesla ROM Nougat 7.1.1. with SuperSU & no Xposed, can't use Blackbery work right now. Can anyone tell if Magisk work in this case?

What steps should I follow if I want to try Magisk in this case? Sorry for being noob. Thanks in advance.
[Android Software/Hacking General [Developers Only]] ghbuur:
disable adb debugging in advanced settings, flash unsu zip (search), flash kernel and then flash magisk v12. reboot, enable magisk hide, tick system ui and your app you want to use. that works at least for me, s7e with superstock rom