FORUMS

Analysis & Opinion

Top Forum Discussions

[TOOL/SCRIPT] freecyngn - Removing proprietary userspace parts from CM10/11

348 posts
Thanks Meter: 1,148
 
By MaR-V-iN, Senior Member on 1st December 2013, 12:10 PM
Post Reply Subscribe to Thread Email Thread
Introduction
Though CyanogenMod always claimed to be open-source, there were only few versions that had an open userspace (Some drivers and firmware have always been proprietary, but it's not CMs fault).

The first CM version I ever installed on a device was CM7 and it contains koush's proprietary ROM Manager app. CyanogenMod 9 seemed to have no proprietary parts, but since CM10 they included Google Analytics Client library (libGoogleAnalyticsV2.jar) within cmstats in the settings app (so it's not even possible to disable it). In CyanogenMod 10.1 CMAccount was included. It relies heavily on Google's Cloud Messaging service and includes the proprietary Google Play Services Client library (google-play-services.jar).

There are some people here at xda (including myself) that installed CyanogenMod because it does not ship GAPPS and is a fully (except vendor files) open-source and free rom. Since i noticed it's not, i started building CM without these closed-source stuff, but it's a pity to do so. That's when the idea of freecyngn started.

What is freecyngn
freecyngn is a tool you can run from recovery, that removes some known proprietary things (or apps relying on proprietary extensions) from CyanogenMod. At the moment this is Google Analytics (from CMStats in CM10/11), CMAccount, LockClock, SetupWizard, Voice+, VoiceDialer and WhisperPush.

Installation Instructions
  1. Copy or download the zip file to the sdcard of your android device
  2. Boot your device into recovery.
  3. If not already done, install CyanogenMod as usual from recovery - DO NOT REBOOT
  4. Install freecyngn as if it was a rom, but DO NOT WIPE /system before

CyanogenMod 12/12.1
The version for CyanogenMod 12 should not be used on nightlies before July 9!

Changelog
v1.0: First release for CM12

Downloads
Latest release (v1.0): https://github.com/mar-v-in/freecyng...hable-cm12.zip
All releases: https://github.com/mar-v-in/freecyngn/releases
Source: https://github.com/mar-v-in/freecyngn
CyanogenMod 10/11

Changelog
v0.5: Latest fixes, better logs
v0.4.1: Remove LockClock (uses Google Play Services)
v0.4: Adapt to latest changes, remove VoiceDialer as well
v0.3.1: addon.d based auto repatching
v0.3: fixed logging
v0.2: Now creating logfile: /system/freecyngn/log

Downloads
Latest release (v0.5): https://github.com/mar-v-in/freecyng...ble-cm1011.zip
All releases: https://github.com/mar-v-in/freecyngn/releases
Source: https://github.com/mar-v-in/freecyngn

How it works (technical stuff)
freecyngn disassembles (using [bak]smali) the CyanogenMod settings app and removes the proprietary Google Analytics component. It then replaces it with NoAnalytics, so that existing bindings from cmstats do not break and reassembles the settings app.


FAQ
Q: My recovery hangs while flashing?
Q: Why is this script so slow?
A: freecyngn need plenty of time and is sometimes even slower than flashing the rom itself. This is bcause most recoverys underclock the cpu, which is no problem for just copying files from zip to partition or format a partition, but it is a problem for disassembling and reassembling, which are cpu intensive tasks.
Q: Do I need to apply the patch after every update?
A: Since v0.3.1 this is no longer needed. Patching is done automatically.
Q: What's about other custom ROMs?
A: AOKP is patchable with freecyngn as well. Paranoid contains Google Analytics in the proprietary ParanoidSettings app instead of the system settings and thus does not work with this patch. OmniROM does not contain Google Analytics. Note that some slimmed-down CM/AOKP-custom-builds will not work with freecyngn. If you use such, check the log file /system/freecyngn/log after flashing.

XDA:DevDB Information
freecyngn, Tool/Utility for the Android General

Contributors
MaR-V-iN
Source Code: https://github.com/mar-v-in/freecyngn


Version Information
Status: Stable
Current Stable Version: v1.0
Stable Release Date: 2014-08-07

Created 2013-12-01
Last Updated 2015-08-07
Last edited by MaR-V-iN; 10th January 2015 at 04:15 PM.
The Following 101 Users Say Thank You to MaR-V-iN For This Useful Post: [ View ]
 
 
1st December 2013, 07:38 PM |#2  
Senior Member
Flag HEART
Thanks Meter: 232
 
More
Its work in android 4.4 kitkat Ah?
2nd December 2013, 05:28 AM |#3  
broodplank1337's Avatar
Recognized Contributor / Recognized Developer
Flag Nijmegen
Thanks Meter: 10,154
 
Donate to Me
More
Pretty interesting stuff, I didn't knew you could assemble/disassemble dex files on the device. Anyways, I wanted to tell you, you can just boot the cpu freq to make it faster.

just grep cpuinfo_max_freq and use that number for scaling_max_freq
The Following 3 Users Say Thank You to broodplank1337 For This Useful Post: [ View ]
3rd December 2013, 12:27 AM |#4  
joshm.1219's Avatar
Senior Member
Flag Philadelphia
Thanks Meter: 1,715
 
More
This is really cool... definitely going to try this out,
3rd December 2013, 01:54 AM |#5  
Ravicai's Avatar
Member
Thanks Meter: 4
 
More
Subscribed
3rd December 2013, 02:37 AM |#6  
SketchyStunts's Avatar
Senior Member
Flag GA.
Thanks Meter: 401
 
More
Flashed on cm10.2 on evo3d. Only took about 3seconds for me. Thanks

Sent from my Evo 3D CDMA using XDA Premium 4 mobile app
3rd December 2013, 04:55 AM |#7  
Senior Member
Thanks Meter: 43
 
More
Quote:
Originally Posted by MaR-V-iN

Introduction

What is freecyngn
freecyngn is a tool you can run from recovery, that removes some known proprietary things (or apps relying on proprietary extensions) from CyanogenMod. At the moment this is Google Analytics (from CMStats), CMAccount and Voice+.

I always remove CMAccount and Voice+ as they are system apps but isn't removing CMStats the same as disabling About Phone>CyanogenMod Statistics>Enable Reporting?
3rd December 2013, 05:33 AM |#8  
Senior Member
Flag Mossel Bay
Thanks Meter: 421
 
Donate to Me
More
Quote:
Originally Posted by ela1103

Its work in android 4.4 kitkat Ah?

I'm on beanstalk 4.4 and worked fine.

Sent from my GT-N7105 using Tapatalk 4
The Following User Says Thank You to jdstrydom For This Useful Post: [ View ]
3rd December 2013, 06:02 AM |#9  
Revertron's Avatar
Member
Thanks Meter: 19
 
More
Thanks, will try this now!
3rd December 2013, 07:42 AM |#10  
Senior Member
Flag HEART
Thanks Meter: 232
 
More
Thumbs up
jdstrydom

thank for u reply
3rd December 2013, 08:24 AM |#11  
Sir what is the use of it
I.mean by removing the google support what will we get
And how is this useful
Please tell me sir
Last edited by vanessaem; 28th December 2014 at 09:45 PM.
The Following 2 Users Say Thank You to sharingan For This Useful Post: [ View ]

Read More
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes