disable_stats_collection

disable_stats_collection

airinterfaceairinterface Posts: 3Member
My App doesn't aim for sdk 28. I successfully removed  bosewearableui-release.aar,
but BoseWearable uses analytics, which rely on androidx. 

How can I disable analytics? 

Comments

  • daniel@bose[email protected] Posts: 33Moderator
    @airinterface
    Hey thanks for your comment.   Unfortunately there's currently no way to de-couple the analytics from Bose AR. 
    I'll take your suggestion to our team. 

    @[email protected]



  • airinterfaceairinterface Posts: 3Member
    Thanks for your info. I was able to dynamically disable it.

    public void updateAnalyticsKey(){
    mDisableAnalyticsStr = null;
    if( mContext != null ) {
    String str = "disable_stats_collection:android:" + mContext.getPackageName();
    MessageDigest md = null;
    try {
    md = MessageDigest.getInstance("SHA-1");
    md.update(str.getBytes(), 0, str.length());
    mDisableAnalyticsStr = Util.bytesToHexString(md.digest());
    } catch (NoSuchAlgorithmException e) {
    e.printStackTrace();
    }

    }

    }

    My challenge was to disable the feature that uses 'androidx' library as a replacement of support-v4, support-v7. 
    Per we are trying to integrate to existing platform that still uses. And Analytics code uses androidx. 



Sign In or Register to comment.