yashsingh1/xdaforums huggingface dataset:
[Android Software Development] peleeks:
Thank you for your hard work and for supporting this patch.

I've upgraded to CM11 M2 version for Nexus 5:

- v0.3.1 pre-release did nothing.

- v0.2 release (current stable) printed line about patching Settings app, did not display any errors. However it took less than second to patch it, I'm not sure it worked.

How to verify, that patch has worked? There are no log in /system/freecygn.
[Android Software Development] aejazhaq:
Hey thanks for the script...i flashed it but was wondering, how do i know if it works. I mean any way to be sure or see whats changed. I tried deleting the netstats to get a clean reset. I thought the Android OS would stop after this but it does not. any idea what that might be from?

PS: im also still getting google services usage too. I would love to know whats stopped.
[Android Software Development] wkwkwk:
If the script ran only for a second or so, it didn't work.

I had a look and after setting LD_LIBRARY and all the other stuff, all commands fail with segmentation fault.

Looks to be a bug in TWRP 2.6.3.0 (possibly earlier?), with the latest TWRP 2.6.3.3 it works just fine, upgrade and try again.

Not sure about CWM as I don't use it but if you run an older TWRP and it fails, try to upgrade to the latest one available.
[Android Software Development] Memethecat:
I can also confirm that the TWRP version seems to make a difference.

I flashed freecyngn in TWRP 2.6.3.0 it executed instantly (to fast to decompile), but the freecyngn script installed itself in /system/.

After updating to TWRP 2.6.3.3 freecyngn took 8-10 seconds to install, still fast but more reassuring. Again freecyngn script showed up in /system.

I ran network log and it showed (uid 1000 - settings/settings storage/key chain/android system/input device) all connecting to 149.254.x.x this is T-Mobile.

Previously on TWRP 2.6.3.0, uid 1000 had connected to T-Mobile and 173.194.x.x (Google) at the same time.

I can only assume that the 173.194.x.x packets were Google Analytics, and they've now stopped.

;))
[Android Software Development] chraso:
Hi marvin.

I want to make the rom/settings.apk analytics free from out of the box.

Please guide me how.
[Android Software Development] Liberr:
I love this script! :good: Does this mean CM doesn't communicate whatsoever with Google at any moment from any part of the OS? Or is there still a system thingy that phones home..?
[Android Software Development] MaR-V-iN:
Take a look at https://github.com/mar-v-in/NoAnalytics/

There are still parts of the system that are open source and communicate with Google (eg. AGPS and captive portal check). This is just to remove proprietary parts in CyanogenMod.
[Android Software Development] Liberr:
Thanks, I didn't know that. I understand your are more concerned with proprietary software then removing everything Google. Sorry if I digress but do you think AGPS and Captive Portal Check are things to worry about if one would prefer a ROM that doesn't let Google know too much (if anything) about user behaviour or data?

In context. It is sort of my aim to get a Google free rom (hence I use your tool), and use the F-Droid repository only..
[Android Software Development] aguaz:
You are a hero MaR-V-iN!

Currently there is no free ROM supporting my device, so I'm very thankful for your effort.

I'm on a late May cm-11 nightly. freecyngn took its time and according to the log noAnalytics was inserted fine:

Creating directory structure...
Extracting classes.dex from noAnalytics...
Archive: /system/freecyngn/noAnalytics-dvk.jar
inflating: classes.dex
Extracting classes.dex from Settings...
Archive: /system/priv-app/Settings.apk
inflating: classes.dex
Disassemble classes.dex from Settings...
Disassemble classes.dex from noAnalytics...
Remove old Google Analytics...
Insert noAnalytics...
Reassembling classes.dex...
Adding new classes.dex to Settings.apk...
updating: classes.dex (stored 0%)
Cleaning up apps...
Installing self-reflasher...

done

However the log does not mention anything related to CMAccount and Voice+. I'm not familar with those apps, but this is what adb says after applying freecyngn:

aguaz@linuxbox:~$ adb shell pm list packages | egrep "account|voice"
package:com.android.voicedialer
package:com.cyanogenmod.account

They both also still show up in Settings --> Apps --> All

?

---------- Post added at 12:27 AM ---------- Previous post was at 12:12 AM ----------

CM btw has just updated their terms: http://www.cyanogenmod.org/blog/privacy-policy-and-terms-of-use-update

Are there any changes affecting the ROM?
[Android Software Development] MaR-V-iN:
In fact, there is not much to fear about both AGPS and captive portal detection, as both use minimal requests without identifying tokens, which makes it impossible for google to distinguish users. However it should be possible to disable most of them:

To disable captive portal check for wifis, run

adb shell settings put global captive_portal_detection_enabled 0

with your phone connected to your pc. There is no easy way to disable mobile provisioning check, but you can change the test server, eg:

adb shell settings put global captive_portal_server localhost

To disable SUPL (which is the AGPS system used within android) you can change SUPL_HOST in /system/etc/gps.conf accordingly.

Thanks for pointing this out, recent changes on CMAccount caused freecyngn to not remove it. This affects all users: Please update freecyngn to v0.4 by flashing it over your current ROM (no wipe/etc required)

Voice+ is not VoiceDialer: Voice+ is a service to sync Google Voice SMS with Android native SMS, VoiceDialer is a small app using a registered speech-to-text service for some nice commands. VoiceDialer is completely free, but as there is no such service beside Google's one, I decided to add it to the list of removed files.

I can't say if this in any or all ways affects the ROM, as this terms apply to their site, services and products. However it seems like things are getting even worse, at least from what the pointed out in their blog post...
[Android Software Development] dvdram:
Hello!

I flashed the script to my Galaxy S3, which is running CM, latest nightly, but the script doesn't seem to do anything: there are still too many Google processes afterwards. The only thing I want to keep is the Play Store. Has any one made the same experience? Or can anyone point me to an appropriate thread? After all, I am aware that this is not the right place to discuss this. Thanks in advance very much!
[Android Software Development] aguaz:
For some reason freecyngn does not work when:

- data partition is empty (eg applying freecyngn directly after flashing CM after a full wipe including data)

- data partition is non existent

!?

CM 'sources' reveal actually 2 versions of Google Analytics. Also there is an Admob Ads SDK containing it

aguaz@linuxbox:cm-11$ find . -name *libGoogleAnalytics*.jar
./external/google/analytics_sdk/libGoogleAnalytics.jar
./external/google/analytics_sdk_v2/libGoogleAnalyticsV2.jar
./external/google/admob_ads_sdk/Add-ons/GoogleAnalyticsAndroid_2.0beta5/libGoogleAnalyticsV2.jar

Does your script take care of all of them?

Can Admob Ads somehow be removed from the ROM altogether?
[Android Software Development] sancho_panzer:
Yes, you must flash CM and make a reboot first before returning to recovery and flash freecyngn.

[MENTION=3999488]MaR-V-iN[/MENTION] v0.4.1 and v0.4 are the same file, LockClock isn't removed on v0.4.1, please correct the links.

You should also consider to change thread title to CM10/11.
[Android Software Development] bastei:
As my /data partition is encrypted that's a problem for me. [MENTION=3999488]MaR-V-iN[/MENTION] do you know if the /system/addon.d/ scripts are executed after entering the encryption password and mounting /data ? Then this would not be a problem, I think.

I noticed a second problem: Using 4ext recovery I'm getting much Segmentation Faults. The problem appears to be are the global variables (export) in the shell script. Removing the "export"s, it is working. Is there a chance to make freecyngn 4ext-compatible?

Anyway: Tanks for this outstanding script! :good:
[Android Software Development] aguaz:
twrp has encryption support, so you could run freecyngn from there.

Anyway it'd help to understand why data has to be populated in order for it to work.
[Android Software Development] gueschmid:
Only for my better understanding (using CM11 with freecyngn 0.40)

If locklock uses GCM but i have no GApps flashed, is there anything i msut be affraid of? Or do the feature only not work?
[Android Software Development] michelsberg:
If I am not totally wrong the GCM client is included in Google Play Services.

If you ha(d/ve) it installed you could/can access the GCM status via *#*#426#*#* (426=GCM) in the dialer.
[Android Software Development] gueschmid:
I use freecygcn, because do not want to have Google on my smartphone. But Sancho Panzer wrote that the where no differences betwenn 0.40 and 0.41. So the LockClock still have Probritary Google Code. My Question ist, what LockClock can do (phone home to Google) without having GCM installed.
[Android Software Development] sancho_panzer:
You should delete LockClock if you don´t care to lose weather. If you do it will be automatically replaced by system clock, even on lock screen. The advantages are no LockClock Wakelocks + no GPS/Network data = more battery and better privacy. ;)

My advise is you should delete it and if you want weather search F-Droid for something better, like DashClock Widget+BetterWeather.

Edit: I don't use it but I've heard good things about Chronus and it's the most similar to LockClock you can get:

http://xdaforums.com/showthread.php?t=2186734
[Android Software Development] mrrocketdog:
My advise is you should delete it and if you want weather search F-Droid for something better, like DashClock Widget+BetterWeather.

Edit: I don't use it but I've heard good things about Chronus and it's the most similar to LockClock you can get:

http://xdaforums.com/showthread.php?t=2186734[/QUOTE]

just deleted lockclock.

thank you. thank you.

i'v read this forum, been using freecyngn for awhile, is there a "delete list" that i missed somewhere?

thanks again.

peace

err on the side of kindness
[Android Software Development] lewonsky:
wil try this
[Android Software Development] xuhdev:
lockclock can be run without google component, I don't think it's fair to remove it, as Google stuff is not required.
[Android Software Development] sancho_panzer:
Do you want it? Just install it. It's a buggy, battery hungry, bad behaviour app. No thanks.

Device:

Samsung Galaxy S4 (GT-I9505)

ROM:

CyanogenMod 11/M12 (KK 4.4.4)

Kernel:

Alucard-V1.4qs

Recovery:

TWRP 2.7.1.0

Modem:

I9505XXUGNE8

Device:

Nexus 7 (Grouper)

ROM:

CyanogenMod 11/M9 (KK 4.4.4)

Kernel:

Default CM11/M9 3.1.10

Recovery:

TWRP 2.7.1.0
[Android Software Development] xuhdev:
You can install whatever you want, but since this script is supposed to remove proprietary things, not anything supposed to be "buggy, battery hungary" by a group of people. I request to remove this app from the list since propertiary components are optional in this app. I don't use it myself but just for the correctness of this script.

Please convince me when you have a reasonable reason.
[Android Software Development] sancho_panzer:
Oh, forget it! Don't even gonna bother to answer.
[Android Software Development] sancho_panzer:
[MENTION=3999488]MaR-V-iN[/MENTION] any plans to update this to CM12 (Lollipop)?

Device:

Samsung Galaxy S4 (GT-I9505)

ROM:

CyanogenMod 11/M12 (KK 4.4.4)

Kernel:

Alucard-V1.4qs

Recovery:

TWRP 2.7.1.0

Modem:

I9505XXUGNE8

Device:

Nexus 7 (Grouper)

ROM:

CyanogenMod 11/M9 (KK 4.4.4)

Kernel:

Default CM11/M9 3.1.10

Recovery:

TWRP 2.7.1.0
[Android Software Development] MaR-V-iN:
I guess this is a misunderstanding of what freecyngn is about. It is not intended to remove things that do not work without GAPPS, but it removes proprietary parts. CMAccount is not breaking (but just unusable) without GAPPS and Google Analytics tracking does not require GAPPS at all to function. However both use proprietary libraries to do their work.

LockClock includes the proprietary play services client library (see here) and as such is proprietary. As it's not easily patchable (as being done with the settings app to remove google analytics), the only way to remove the proprietary parts is to remove LockClock completely.

I didn't look a lot into CM12 yet, as some of the relevant proprietary parts (cmstats) are not (yet) merged. I'll wait for the first official cm 12 nightly before starting to port freecyngn.
[Android Software Development] riding1:
[MENTION=3999488]MaR-V-iN[/MENTION]

Thanks for this script that allows a cleaner ROM.

I installed it after cm-11-20141223-NIGHTLY-falcon.zip and I'm not sure if everything worked, as the log contains an error (please see below in red).

After some digging, I guess this means it didn't really work. I also noticed that the script tries to remove VoiceDialer.apk from /system/app/, but It's located in /system/priv-app/ in this case.

/system/freecyngn/log
[Android Software Development] MaR-V-iN:
Thanks for reporting [MENTION=6261904]riding1[/MENTION].

I released v0.5 to fix the problems. Everyone should update ASAP.
[Android Software Development] riding1:
[MENTION=3999488]MaR-V-iN[/MENTION]

I appreciate your commitment to keeping this tool working. It looks like updater-script is trying to set permission for "/system/freecyngn/zip", but there's no zip in that folder. That's probably what causes an error when flashing.

Edit: Using CWM produces an error, but I tried TWRP and it worked just fine, with no errors in the log. Thanks again!
[Android Software Development] user822:
Hi.

When building with NoAnalytics I get:

No rule to make "android/system/out/target/common/obj/JAVA_LIBRARIES/play_intermediates/javalib.jar"

Is there a fix for that?

regards
[Android Software Development] :
I am using AdAway on CM12 and therefore block google analytics completely. Will this script still have any use for me?
[Android Software Development] Tjee:
Does it block analytics? I thought it only modified the hosts file to block ads in apps.
[Android Software Development] riding1:
This removes it completely from within a system component of some ROMS. I say it's better. AdAway relies on the hosts file - it has to react to changes. It's still good in general, but this is more thorough and it removes other things as well. This doesn't work for CM12.
[Android Software Development] user822:
Hey MaR-V-iN , what about "com.qualcomm.location", which is probablly part of "IZat"

The package is accessing the location and removing it did not change anything. (I removed the /system/permissions/com.qualcomm..location.xml file and it disappeared, was that right?)
[Android Software Development] ela1103:
This script not working in yu yureka device
[Android Software Development] user822:
Is this working on CM12?
[Android Software Development] Uran-235:
[MENTION=5208894]user822[/MENTION]

Look a couple of posts before yours...

http://xdaforums.com/showthread.php?p=57650528
[Android Software Development] user822:
Is this still in development, maybe working again with the snapshot builds?
[Android Software Development] sancho_panzer:
Sorry to bother you and I'm not asking for any ETA, but did you had any chance to take a look at this subject recently. CM12 isn't perfect yet but is working fine and would be great to see your fabulous contribution to make it more "secure".

Device:

Samsung Galaxy S4 (GT-I9505)

ROM:

CyanogenMod 11/M12 (KK 4.4.4)

Kernel:

Googy-Max3 CM-Kernel 1.2.5

Recovery:

TWRP 2.8.4.0

Modem:

I9505XXUGNE8

Device:

Nexus 7 (Grouper)

ROM:

CyanogenMod 11/M12 (KK 4.4.4)

Kernel:

Default CM11/M12 3.1.10

Recovery:

TWRP 2.8.4.1
[Android Software Development] MaR-V-iN:
Remove /system/app/com.qualcomm.services.location.apk or /system/priv-app/com.qualcomm.services.location.apk

Until now, cyngn seems not to have added Google Analytics to CM12.

It has always been the main task of freecyngn to remove these. Everything else can easily be done by opening the zip file before flashing and removing critical apps from there. The list of apps that are to be removed, is https://github.com/mar-v-in/freecyngn/blob/master/freecyngn.sh#L73

I don't want to release anything for CM12 while in nightly and Google Analytics not added back again, because I don't want that users trust in freecyngn while an cm update ships a version of Google Analytics that is not removed by freecyngn.
[Android Software Development] sancho_panzer:
Perfect and quick answer. Thank you so much.

Device:

Samsung Galaxy S4 (GT-I9505)

ROM:

CyanogenMod 11/M12 (KK 4.4.4)

Kernel:

Googy-Max3 CM-Kernel 1.2.5

Recovery:

TWRP 2.8.4.0

Modem:

I9505XXUGNE8

Device:

Nexus 7 (Grouper)

ROM:

CyanogenMod 11/M12 (KK 4.4.4)

Kernel:

Default CM11/M12 3.1.10

Recovery:

TWRP 2.8.4.1
[Android Software Development] n76:
Updating freecyngn?

Looks like there have been a number of updates to freecyngn since I installed mine back in July. . . I don't see specific instructions on how to update it, so do I simply do a install of the new version? Do I have to remove the old version first? If so, how? Thanks!
[Android Software Development] Bushman87:
CM12 issues

I installed the current nightly for my device and freecyngn did nothing (No output from in logs).

But when I started my phone I was asked to create a CM account etc.

I flashed using the CM recovery. Maybe this is the problem. Any advise on which recovery to use?
[Android Software Development] Ultramanoid:
TWRP is a good recovery but this is besides the point. Freecyngn has not been updated for CM12, because it removes Google Analytics, which is present in CM11 but not in CM12 ( at least not yet ), as explained a few posts back :

http://xdaforums.com/showpost.php?p=59342994&postcount=79
[Android Software Development] Bushman87:
I thought freecyngn removes all proprietary parts. In freecyngn.sh, all the CM apps are removed. So my question is: Why are they not removed in CM 12?
[Android Software Development] MuhammadA:
OmniROM

Hi thanks for this, I tried it on unofficial OmniROM 0.7 for MotoG found here on XDA, as that that Settings which would constantly connect to Google Inc. servers, the script ran fine and the log has no errors and looks like it worked well. However now instead of Settings connecting to Google, the "Android System" is connecting to the same address :

216.58.209.238:80

Any ideas?

UPDATE:

I take that back, settings has appeared again connecting to the same ip.
[Android Software Development] Doc Sniper:
CM 12 is using Google Analytics. They switched recently from V2 to V3:

http://review.cyanogenmod.org/#/c/95993/

The patch commit message was:

---------- Post added at 10:58 ---------- Previous post was at 10:47 ----------

The Apps are no more removed in CM 12 because Google changed the App paths, e.g.:

CM 11 (Android 4.4): /system/app/WhisperPush.apk and /system/priv-app/CMAccount.apk

CM 12 (Android 5.0): /system/app/WhisperPush/WhisperPush.apk and /system/priv-app/CMAccount/CMAccount.apk

The paths in the freecyngn script need to be changed because of that.
[Android Software Development] MaR-V-iN:
I'm working on it.

Removal of Analytics will become tricky because of ART (ART is usually initialized during the first boot of the ROM/update, and the recompiling step is not possible when it's not initialized)
[Android Software Development] Doc Sniper:
How about deleting the corresponding pre compiled file in /data/dalvik-cache/arm then it should be recompiled at boot time ?
[Android Software Development] MaR-V-iN:
The problem is that we want to patch the system before it boots, but the patching is currently done using components that run on Java and thus requiring ART to be initialized, which normally only happens at the first boot after an update...
[Android Software Development] Doc Sniper:
I deleted the file /data/dalvik-cache/arm/system@priv-app@Settings@Settings.apk@classes.dex and after rebooting it was recreated, but OK I think I understand what you mean, ART is not available in recovery.
[Android Software Development] n76:
For 5.1 it sounds to me like I'll be updating to ZMod http://xdaforums.com/galaxy-nexus/development/rom-cyanogenmod-12-beta-builds-t3060319 instead of CyanogenMod once the issues are resolved that are keeping me from upgrading from CM11.
[Android Software Development] Pehpe:
deleted
[Android Software Development] n76:
I am also just about ready to install the ZMod distribution of Android 5.1 on my Galaxy Nexus and am wondering about the freecyngn that is currently on the phone. It is my understanding that I will not need freecyngn once I ditch CM11.

I plan on wiping everything and going from scratch when I install ZMod and will reformat /system. Will that be enough or is there some other thing I need to do to remove freecyngn?

Thanks!
[Android Software Development] Dudebowski:
Unless zmod includes proprietary CM copyrighted apps, you don't need this anymore. You'll have to wipe your system partition clean before installing zmod, so there's no remnants of either CM or freecyngn.
[Android Software Development] sanioclement:
I have already using pure CM 11 with gapps when i just flashed this zip i dont see any differents. Please assist . thanks
[Android Software Development] 4non:
i have an error flashing freecyngn, i checked the updater-script and see that set_perm command, but there is no "zip"-binary included in flashable zip:

set_perm(0, 0, 0755, "/system/freecyngn/zip");
[Android Software Development] xavihernandez:
Are you kidding ? :D.

This removes proprietary stuff from CM. Gapps is proprietary, so if you flash Gapps, you have a lot of proprietary stuff, and this script won't do anything.
[Android Software Development] Pehpe:
The small difference is to flash Gapps is your OWN decission. The Google Analytics stuff in the CM-code is not your decission.

Shure, you can decide to use CM or not. But CM is not that transparent. When people flash CM and not Gapps, most people think they are Google-free. But isn't true.
[Android Software Development] xavihernandez:
I don't get your answer.

I just told him that flashing this script and Gapps is funny since you want to remove proprietary stuff and on another side you add proprietary stuff.
[Android Software Development] :
Why does CyanogenMod ship with Google Analytics? What information is sent back to Google?
[Android Software Development] n76:
Probably better to ask that on the CyanogenMod forum. For example: http://forum.cyanogenmod.org/topic/111173-personal-information-and-data-metrics-on-cyanogen-mod/

I suspect that they are trying to collect metrics for themselves but are using Google tools rather than build their own with the result that Google also gets the information.
[Android Software Development] :
hi guys

i wish to switch from omnirom (because its not supported anymore on my device) to cyanogenmod, and then flash this freecyngn.

how would i go about this? can anyone please tell me a step by step guide? i would really appreciate it.
[Android Software Development] n76:
Are you going to CM12? If so, then I don't think this script is working for that. . . For CM11, just follow the directions on the original post on this thread.
[Android Software Development] :
i wish to have lollipop since omnirom on the Oppo find 5 is ages behind. is the CM12 lollipop?

Is there some kind of alternative for freecyngn?

also i've read on a link posted here that the google analistics can be set to opt-out.
[Android Software Development] n76:
CM12 and CM12.1 are Lollipop (Android 5.0 and 5.1). It might be possible to opt out of the collection of statistics that Cyanogen does.

Personally, I found a different distribution/ROM that is very close to being straight AOSP and does not, to the best of my knowledge, have that type of tracking built in. However I have different hardware than you so what worked for me is not available for you. You might try looking around here at xdadevelopers for other ROMs that bring Android 5.1 (Lollipop) to your hardware.