Velocity is Like OpenTable on Steroids

We all enjoy a night out with friends or our significant other from time to time. However, there is … more

Android Lollipop Lands for the Sony Xperia Z Ultra

The undisputed king of the beasts–at least in Sony’s current stable,is the … more

Android 5.0 Lollipop in 3D–EVO 3D, That Is!

It is that time of the year once again. Flowers bloom (or snow falls, depending on which … more

Gaming Console with Lollipop? Ouya Gets an Android TV Port

Android is a very flexible platform, and it can be used on a large variety of … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP sylentprofet

20th December 2013, 11:09 AM   |  #1  
OP Senior Member
Flag Sacramento
Thanks Meter: 1,411
 
211 posts
Join Date:Joined: Jun 2010
Donate to Me
More
--- 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 by sylentprofet; 20th December 2013 at 11:26 AM.
The Following 55 Users Say Thank You to sylentprofet For This Useful Post: [ View ]
28th December 2013, 05:32 AM   |  #2  
hp420's Avatar
Senior Member
Flag NY
Thanks Meter: 882
 
1,769 posts
Join Date:Joined: Jul 2011
More
Does anyone have a flashable nexus 4 rom/fastboot image for this? I'd love to give it a try, but my system isn't up to building from source right now.
28th December 2013, 06:57 AM   |  #3  
OP Senior Member
Flag Sacramento
Thanks Meter: 1,411
 
211 posts
Join Date:Joined: Jun 2010
Donate to Me
More
Quote:
Originally Posted by hp420

Does anyone have a flashable nexus 4 rom/fastboot image for this? I'd love to give it a try, but my system isn't up to building from source right now.

This right here should do the trick
The Following 3 Users Say Thank You to sylentprofet For This Useful Post: [ View ]
24th February 2014, 08:35 AM   |  #4  
kami2k's Avatar
Senior Member
Flag Kashmir
Thanks Meter: 107
 
1,416 posts
Join Date:Joined: Feb 2011
More
any apk for this to use with any rom? plz
7th August 2014, 08:46 PM   |  #5  
Senior Member
Thanks Meter: 19
 
114 posts
Join Date:Joined: Jan 2014
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 ----------

Quote:
Originally Posted by sylentprofet

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
15th August 2014, 04:40 PM   |  #6  
Senior Member
Thanks Meter: 107
 
772 posts
Join Date:Joined: Jul 2014
hpw to use this on already installed rom? folow the procedure or what?
16th August 2014, 03:46 PM   |  #7  
biopsin's Avatar
Senior Member
Flag oslo
Thanks Meter: 89
 
403 posts
Join Date:Joined: Nov 2010
More
Quote:
Originally Posted by lewonsky

hpw to use this on already installed rom? folow the procedure or what?

follow M-A-R-V-I-N's original post
28th August 2014, 08:13 PM   |  #8  
Senior Member
Thanks Meter: 2,213
 
2,101 posts
Join Date:Joined: Feb 2012
hi . is there any update of this?...
does that still work with 4.4.4?
thanks
28th August 2014, 11:43 PM   |  #9  
OP Senior Member
Flag Sacramento
Thanks Meter: 1,411
 
211 posts
Join Date:Joined: Jun 2010
Donate to Me
More
Quote:
Originally Posted by desalesouche

hi . is there any update of this?...
does that still work with 4.4.4?
thanks

works fine.

as of android L though this may become obsolete because they natively compile it with JDK 1.7, which is what was used in the original release of NoAnalytics

The Following User Says Thank You to sylentprofet For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Tags
android, compile, library, mod, noanalytics
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes