yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] mb:
I'm not happy with the latest PhilZ kernel that came with my shiny new NEAT ROM and want to revert to Speedmod (CRT off doesn't work unless Wifi is on and it's draining my battery much faster). What is the "safest" way to do this, given the fact that Good now works very well? I'm thinking of:

1. Running the disable Good, enable Root script

2. Reboot

3. Install the kernel, check it's all alright with AdFree updates, etc.

4. Run Disable Root Enable Good script

5. Reboot.

Whaddya think?
[Android Software/Hacking General [Developers Only]] calisro:
your going to reflash the gfe zip after the kernel flash. all else looks good.
[Android Software/Hacking General [Developers Only]] mb:
BANG! Got me, despite doing all this. I've given up and cancelled the service.
[Android Software/Hacking General [Developers Only]] RichMD:
I also had given up with trying this approach. Please understand that I appreciate the effort but it is very hard for me to get new PINs, etc and I run the risk of our enterprise risk group learning that I have been trying repeatedly to bypass the policy. For what it's worth, the approach I have been hoping will work is to have dual-boot for the phone so I can have one ROM with root removed completely to run Good and then my personal ROM. I have the Galaxy Note II and here is a thread to a kernel that works for both and the DEV (DerTeufel1980) just got dual-boot working > http://xdaforums.com/showthread.php?t=2239453

Sorry if this appears to be a "hijack" of the thread. That is not my intention. I just wanted others that can't use this method to consider an alternative.
[Android Software/Hacking General [Developers Only]] calisro:
Dual boot is an option for phones that support it. thx for the suggestion for others. I have had one lock out in 6 months but I recognize that others may have intermittent issues depending on rom, kernel, apps, and user error...
[Android Software/Hacking General [Developers Only]] EVOme:
Any idea why I get "No shell" when running the script???
[Android Software/Hacking General [Developers Only]] calisro:
what's your permissions on /system/xbin/fu?

and who owns the scripts? change them to root. chown root:root /system/xbin/script_name
[Android Software/Hacking General [Developers Only]] EVOme:
Errr...sorry, I have no idea what you're asking me. I didnt change any permissions

Permissions on /system/xbin/fu are read yes write yes hidden no
[Android Software/Hacking General [Developers Only]] calisro:
reflash the zip. permissions and file ownership isn't correct. Did you manually install this or flash it?
[Android Software/Hacking General [Developers Only]] EVOme:
I flashed it. Oddly enough I was able to get the edgr to run by fumbling around in Smanager....It launched good and I configured it. Checked the console and I am not compliant. I cannot get dger to run at all. I installed a root checker and it says I am not rooted, so edgr did remove everything.

I am reflashing it now

---------- Post added at 10:58 PM ---------- Previous post was at 10:38 PM ----------

Ugh! I have tried every way to run the dger script and it won't at this point. I installed Connectbot and got the same "No Shell" message.

Is there a manual way to get my root back?

One odd thing is when I open SManager and hit new script I get this box below. I type in /system/xbin/dger or edgr and I get a message saying

"/ \ are invalid characters.
[Android Software/Hacking General [Developers Only]] calisro:
you can reflash root. If your using supersu,

http://xdaforums.com/showthread.php?p=23427715

if your using superuser:

http://www.androidpolice.com/2013/0...for-apps-to-declare-root-permission/#download

EDIT:btw, these scripts didn't cause what you are seeing. the "fu" is a su binary and the "now we be xxxx:xxxx" message is supposed to read "now we be 0:0". 0 is root. The fu can't even get root. Something changed crap on your phone....
[Android Software/Hacking General [Developers Only]] Milkman00:
Hoping someone can clearly answer these questions for a noob like me.

I have stock recovery, so I can't flash the file. Basically I copied the files in /system/xbin from the zip to /system/xbin to my phone. Here are my questions:

Using Root Explorer, what exactly should the permissions be on the 5 files?

I know the fu file is the renamed su file, but I am not sure which of the 4 files I should run to disable root and enable root.
[Android Software/Hacking General [Developers Only]] Milkman00:
Figured it all out on my own and it is working well.
[Android Software/Hacking General [Developers Only]] viper_insane:
Has anyone tested the update that just came out on GFE with this workaround? It sounds like they changed quite a few things froma UI perspective, but didn't want to update if unsafe (like if they added any more root checks).

This mod works flawlessly!!! Thanks!!
[Android Software/Hacking General [Developers Only]] calisro:
New GFE working fine for me.
[Android Software/Hacking General [Developers Only]] ceo.mtcl:
Same here. It worked flawlessly even after the update. Thanks Calisro.
[Android Software/Hacking General [Developers Only]] viper_insane:
Yup, same here, update is flawless. Calendar looks different on the s4. Thanks!!
[Android Software/Hacking General [Developers Only]] Fallon:
Still working here after the update. No compliance issues despite the scripts being installed at least. Haven't rooted in quite a while though.
[Android Software/Hacking General [Developers Only]] Fallon:
Still working great.

Finally got around to doing a lot of maintenance on my phone with no GFE problems.

Rooted

Titanium Backup of phone

Wiped phone

Flashed to stock

Unlocked phone

Flashed CM 10.1 RC5

Flashed the GFE/Root scripts

Restored DeviceID with Titanium Backup

Restored stuff from Titanium Backup (Including GFE, was planning on manually reinstalling & activating it, but I guess I forgot about it)

Tweaked & fiddled with my phone for a while

Ran the de-root & enable GFE script

GFE fired right up & asked for admin permissions

It downloaded some E-mail from today (GFE had been offline for a couple days) then stopped

Deactivated admin privileges

Wiped app data

Attempted to get a new PIN, failed, contacted our GFE guy who had the same error with the GFE web portal (makes me think our GFE server had issues & I didn't need to go down the wipe the app data on my phone)

Finally got new PIN

Reactivated GFE
[Android Software/Hacking General [Developers Only]] djcyph:
just discovered this thread...will read through most of it after work. quick question though....my good app was working fine when first installed yesterday, then it wasn't syncing so i re-installed and got an error, upon googling the error i saw a bunch of links saying verzion charges you $15 a month to use it.

how can i tell if good isnt working because rooted or because vzw detected it? will this block VZW detection too?

im only stock rooted, no rom..dont know if that makes a difference
[Android Software/Hacking General [Developers Only]] calisro:
This just helps stop root detection. VZ still wants their money as ludicrous as it is being that data is data and it should be treated like any other data. That being said, it should work over WIFI still or through a VPN connection since VZ can't see your data using both of those methods.
[Android Software/Hacking General [Developers Only]] djcyph:
thanks....so i uninstalled and reinstalled the app and installed on wifi and still go the error....so its because its detecting root correct? or does VZW send something saying i havent paid when i initially installed and its still there?
[Android Software/Hacking General [Developers Only]] calisro:
Whats the error?

EDIT: You still may need the feature code to enable it. I bet you got a new PIN from your IT it would work under wifi until of course you turn off wifi. :) . If your on a corporate plan the feature codes are free. If not, it costs money. If you have a device that doesn't have mobile data ( wifi only device ) then obviously you dont need a feature code.
[Android Software/Hacking General [Developers Only]] djcyph:
im on a business account with vzw, but i need good for a different company that i work for. gonna call vzw and try get #73666 for free....anyone know if they will give it free since my phone is a business account?
[Android Software/Hacking General [Developers Only]] viper_insane:
Did anyone see the new update from GFE today? It says "security enhancements". So I'm a bit worried. I got caught with a root thread open and had to get a new PIN yesterday, don't want to do this again... LOL Anyone try it?
[Android Software/Hacking General [Developers Only]] calisro:
working for me.
[Android Software/Hacking General [Developers Only]] Fallon:
Still working here too.
[Android Software/Hacking General [Developers Only]] djcyph:
one last question guys...so i got it working, vzw added the feature code at no cost...im rooted and its still working, does that mean my IT department doesn't care about root?

also, im stock rooted...if i install a rom would it be any different? My pin for GFE never expires so i can keep using it.
[Android Software/Hacking General [Developers Only]] calisro:
Maybe. Root detection is a configurable policy by your IT. But I have also seen GFE work on devices with root even though the policy is set to detect root. On my older epic 4g slider it worked flawlessly without unrooting attached to the same policy as I have now. So it could either be that something is making the detection not work or the policy doesn't care about root. But if its working, leave it alone. If you get a policy break, then come back here and try it out.
[Android Software/Hacking General [Developers Only]] phositadc:
Question about ES File Explorer. I see in the first post that Good can detect it if it has ever been granted root privileges. Does this apply even if I have deleted ES File Explorer? Or will deleting ES File Explorer prevent Good from detecting old root privileges?

I used to be rooted and used ES. But today I deleted superuser.apk, su, ES File Explorer, and Titanium Backup. I then rebooted and attempted to install Good, but it denied me, saying that I'm rooted.

I do not need root. I'm just trying to figure out what is causing me to get denied, and the only thing I can think of is the possible fact that I have previously used ES File Explorer in root mode, even though I deleted it before installing Good.

Any thoughts?
[Android Software/Hacking General [Developers Only]] calisro:
es hangs on to a session if it has root. at least the older versions. if you've uninstalled it then there is nothing to detect. also just deleteing su and superuser.apk doesn't unroot you. there are other things that can "hang around"...
[Android Software/Hacking General [Developers Only]] viper_insane:
I have no issue with ES after I have "unrooted". But I have found you have to be very careful after you extend unrooted permissions to something. I only grant root privileges 15 minutes or one-time only. Then after that I reboot, then "unroot" before I run GFE again.

I've only had one problem when I made a mistake of running Ktweaker (or something else), and left a thread open hen I pulled up GFE. It has worked flawlessly, even after multiple rom and kernel changes...
[Android Software/Hacking General [Developers Only]] viper_insane:
EEek, the new MF8 rom I used didn't have busybox, so I had to reinstall, Ran open GFE and bam, compliance failed. Ugh...
[Android Software/Hacking General [Developers Only]] calisro:
Its unlikely busybox itself is being detected. There are lots of unrooted roms and phones that have busybox. Busybox isn't only for root. I've never used that rom so I don't know much about it.
[Android Software/Hacking General [Developers Only]] viper_insane:
Agreed, I've gotten a new PIN, and have rebooted a few times, so I must have had a root thread open somewhere when I was trying to bring this stuff back up. All good now :) Great scripts!!
[Android Software/Hacking General [Developers Only]] gveloce:
Not again...

Hi guys Yesterday I have again been busted by GFE Not having changed anything for the last months. I will try to get new PIN to reactivate and feeedback, Any similar issues for you?

GV
[Android Software/Hacking General [Developers Only]] calisro:
Not here.
[Android Software/Hacking General [Developers Only]] gveloce:
Really strange.... Reinstalled Good, activated with fresh PIN and works fine for the last 3 days.

GFE drives me nuts.

GV
[Android Software/Hacking General [Developers Only]] Fallon:
No compliance issues here, even after the last update. At some point GFE stopped working for me... GFE window started almost instantly dissappearing. I could see a flash of E-mail, then poof, gone. Icons in the notification bar still worked.

Had some other issues with the phone, so wiped it and updated to the latest CM 10.1.1 nightly. Only restored a few select things with TiBU (not GFE). Worked fine after a new install & PIN.
[Android Software/Hacking General [Developers Only]] segelfreund:
With the new 4.3 on the nexus 4. The script doesent work for me.
[Android Software/Hacking General [Developers Only]] calisro:
I've never tried 4.3 nor do I have a place to try it yet. Once I get my phone up to 4.3 i'll take a look. THat being said, if you provide the info from the debugging section that may help.
[Android Software/Hacking General [Developers Only]] segelfreund:
Okay i can do it tomorrow.

Gesendet von meinem Nexus 7 mit Tapatalk 2
[Android Software/Hacking General [Developers Only]] segelfreund:
If i used these

"/system/xbin/dger;sleep 5;kill $PPID

<enter>"

it shows me

/system/xbin/dger: basename: not found
[Android Software/Hacking General [Developers Only]] calisro:
your missing the basenam command from busybox. just add it.
[Android Software/Hacking General [Developers Only]] sean.trinidade:
Anyone else having issues on 4.3

Have upgraded my Nexus 7 to 4.3, and after re-rooting, it looks like the scripts are broken.

Am guessing that's because Google has modified how su can be used (not 100% sure of the details) and now the only way to actually run the scripts is to run su first - which either fails (when disabling GFE and enabling Root as no root available to run su) or creates an exception and wipes good (as su is still running when it opens GFE)

Anyone else having issues on 4.3?
[Android Software/Hacking General [Developers Only]] calisro:
A few have complained about 4.3 but I do not have anything to test on yet. 4.3 isn't ready for my device. That being said, no one has posted any useful debugging information either so there is nothing to 'look into' until someone does.

Run this:

su
mount > /sdcard/mount.log
ls -l /system/xbin/ | egrep "egdr|dger|fu" >> /sdcard/mount.log

Give me the following logs:

/sdcard/mount.log

/sdcard/egdr.......log

/sdcard/dger.......log
[Android Software/Hacking General [Developers Only]] sean.trinidade:
logs attached. Let me know if you need anything else.
[Android Software/Hacking General [Developers Only]] calisro:
Per Koush (wrote superuser):

It appears my 'fu' binary no longer works on 4.3 either. That's a shame... We may be able to lean on supersu's su (renamed to 'fu') along with its daemon process.

Unfortunately, I have no way to test any of these changes until I have a 4.3. I'm going to try to figure out a temporary work around for 4.3 users until I can get these to work again. I may look into a set of flashable zips to root/unroot until I have this sorted.

Stay tuned. For now,

This is NOT working on 4.3

. I am going to update the OP with that info but this *WILL* be working for 4.3 as soon as I can test things. There is no reason I cannot do the exact same thing that supersu does with a daemon process. I'll also look at how Koush is working around this.
[Android Software/Hacking General [Developers Only]] danifunker:
Hi there,

This is slightly unrelated but I was hoping to get some clarification.

Say I wanted to load CM10.2 on my device, I don't care about having a rooted device (my phone hasn't even been modified since I purchased it back in December). I understand the newest versions of CM doesn't grant root by default, would GFE pickup CM10.2 as a rooted device or would it not? Has it been tested?

I am the admin of the GFE solution for my environment but I don't want to make a bypass policy (it would look pretty bad).

Thanks
[Android Software/Hacking General [Developers Only]] calisro:
I took a stab at using supersu's daemon process (say thanks to Mr. Chainfire when you get a chance). I have NO WAY of testing this on 4.3 but am interested if it works but it still works on 4.2. If someone wants to try it and report back, that would be great. Nandroid before please and do

not

test this if getting a GOOD PIN is a pain in the ass for you.. I am unclear if this will cause issues for an existing supersu installation or not. If you try this, *please* report back and also let me know what super user you have installed along side this (native superuser or supersu).

If you are on 4.2 or less, don't bother with this yet. stick with the zip in the op for now.

What I am doing is basically doing an installation of supersu with renamed binaries and without the actual application. It should work along side a regular installation of supersu. This is hackery.... So that we are clear, this isn't tested and may not work but its worth a try. :cool:
[Android Software/Hacking General [Developers Only]] calisro:
At the application layer, CM won't grant root if you haven't enabled it. But at the system level, you have root. You would need to UNROOT your CM install to make it unrooted and for GFE not to detect it..

To be honest though, the term 'rooted' is so freakin vague. Are you rooted if you could have access to root in seconds? Because if you have an unlocked bootloader and/or custom rom you could do that in seconds by flashing a supersu or superuser package in recovery.
[Android Software/Hacking General [Developers Only]] danifunker:
Is it possible to unroot a CM ROM? Has anything like that ever been done? Yes, I am pretty good with root and understand exactly what it does, and realize that using any custom recovery would effectively allow you to do almost anything you could do with root on the filesystem, but all I care about is GFE not having root :)
[Android Software/Hacking General [Developers Only]] calisro:
yes. Pretty easy. On cm10.2 just delete su and any symlink to it. On older versions you have to delete the app too but in new cm versions the app is built into the framework and gfe doesn't seem to care...
[Android Software/Hacking General [Developers Only]] MegaMan X:
I'm actually quite interested in this topic as well.

I don't have any programming experience, but if I currently have CM10.2, GFE will work and not detect root at all?
[Android Software/Hacking General [Developers Only]] calisro:
If you unroot it and you have a true cm build that doesn't re-root itself on a reboot... You can probably just rename su to something else as well. My scripts are for stock, asop, etc do that's why they do more. they also make sure gfe is disabled correctly before rerooting...

But you can just rename su or delete it and be fine as long as your not using supersu or superuser that has an app.....
[Android Software/Hacking General [Developers Only]] calisro:
btw, all of this is subject to change... with the new super user android permission and the need for a deamonized process to handle this on 4.3 it may become even more difficult to work around all of this... if gfe improves their mechanism.
[Android Software/Hacking General [Developers Only]] viper_insane:
Thanks up for the heads up on 4.3, I was about to make a move up... I'll watch here first. thanks!!!
[Android Software/Hacking General [Developers Only]] segelfreund:
Ok, the new script for android 4.3 doenst work for me.

Do you need any logs?
[Android Software/Hacking General [Developers Only]] calisro:
If you have them post them. might be something obvious... otherwise once I get 4.3 I can dig deeper.
[Android Software/Hacking General [Developers Only]] AndroidGraphix:
An unknown error occured 0x90047

Is this a work around with error : An unknown error occured 0x90047. I have Verizon and they require me to pay 15.00 extra per month to "Activate" this service". What's even worse, is they WILL NOT add this good mobile messaging feature to an unlimited data plan...lame. I pretty much have to downgrade my plan or get a new line.
[Android Software/Hacking General [Developers Only]] calisro:
Read the op.
[Android Software/Hacking General [Developers Only]] AndroidGraphix:
Sorry dude but your op talks about using the device on a rooted phone, scripts and how to run the scripts. What I'd like to know is if any of this will bypass Verizon requirement of enabling this feature. Kind of like the hack we do for tethering
[Android Software/Hacking General [Developers Only]] calisro:
nope.
[Android Software/Hacking General [Developers Only]] Milkman00:
Just wanted to thank you for all of your work on this. I am really shocked that there aren't more people that are making this kind of functionality into an app, so that it may be a little easier/prettier. :)

TBH I don't even use it for GFE!!! I use it so I don't have to see my company scanning application warning me of root every week or so, plus the ability to watch movies and use other apps that check for root. I use root quite infrequently but I am glad it is there for when I do need it.
[Android Software/Hacking General [Developers Only]] calisro:
I'm actually working on making it an app rather than scripts... And yes.. I want to make it more generic for use as just a temp unrooter. ;) THANKS for the thanks!
[Android Software/Hacking General [Developers Only]] iamryfly:
Quick Question + Thanks

Do I have to run the dreg script after every reboot or does everything stay intact? i.e. If I always want to run GFE but my device gets wonky and I need tp reboot, is there anything special I need to do?

On another note, that you so much for putting this all together! Last week I upgraded from a rooted Galaxy Nexus running a 4.2.2. custom ROM to a Galaxy S4. Of course I spent hours rooting, roming, and customizing my phone to my liking. GFE was one of the last apps I installed and I was shocked to find it disabling itself after finding out I was rooted (which was surprising to me because I never had an issue on my Galaxy Nexus).

Anyways, I need to request a new PIN at work tomorrow and if all goes well I will be back in the corporate email game (as exciting as that can be!) Thanks for your hard work!