[ MOD ] noAnalytics Remix - compile ROMs without Statistics Reporting!

sylentprofet

Senior Member
Jun 10, 2010
283
1,857
0
Sacramento
--- copied with permission from nathanpfry.com ---​

Developers Only

Inspired by MaR-V-iN's work on freecygn and noAnalytics, I bring you noAnalytics Remix!

Using Mar-V-iN's source, I recompiled the jar with JDK 1.6 and jumped through a few flaming hoops.

Now it will natively compile with any Android source. No more statistics reporting!

Usage:

1.. Locate "libGoogleAnalyticsV2.jar" usually in [androidSource]/vendor/[romFlavor]/prebuilt/common/lib
2.. Rename it something like "libGoogleAnalyticsV2.jar.backup"
3.. Copy-paste "noAnalyticsRemix.jar" into the folder, and rename it "libGoogleAnalyticsV2.jar" to match the original structure.
4.. Build the ROM like you normally would!

This has been tested working with AOKP 4.4.2 (kitkat) source. Let me know how it works for you!

Credit goes to MaR-V-iN for the code. Thanks dude!

My contribution was spending a couple of days learning Android Studio and how to compile jar files from source.

Download noAnalytics Remix:

noAnalyticsRemix.jar via MediaFire

Feel free to buy me a coconut water (donate) if you like my work. It would be greatly appreciated!

Please hit the "Thanks" button if you like my work!

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

Contributors
sylentprofet, Mar-V-iN

Version Information
Status: Stable
Current Stable Version: 1.0
Stable Release Date: 2013-12-20

Created 2014-02-28
Last Updated 2014-09-11
 
Last edited:

aguaz

Senior Member
Jan 16, 2014
136
31
0
Building NoAnalytics.jar with ant

Code:
$ git clone -b master git://github.com/mar-v-in/NoAnalytics
$ cd NoAnalytics/NoAnalytics/
$ touch build.xml
Save the following content into build.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<project>
        <property name="src.dir" value="src"/>
        <property name="build.dir" value="build"/>

        <target name="jar">
                <mkdir dir="${build.dir}"/>
                <copy todir="${build.dir}"> <fileset dir="${src.dir}"/> </copy>
                <jar destfile="NoAnalytics.jar" basedir="${build.dir}"> </jar>
        </target>
</project>
Code:
$ ant jar
$ ls -l NoAnalytics.jar
All Credits to @MaR-V-iN, @sylentprofet

---------- Post added at 04:46 PM ---------- Previous post was at 04:46 PM ----------

Locate "libGoogleAnalyticsV2.jar" usually in [androidSource]/vendor/[romFlavor]/prebuilt/common/lib
cyngn ships it as part of the android_external_google repository.
In the source tree you'll find it at external/google/analytics_sdk_v2/libGoogleAnalyticsV2.jar
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone