Git Product home page Git Product logo

Comments (6)

Fusion avatar Fusion commented on July 29, 2024

Silly question, I know: do you see the same error if you completely disable proguard?

from roottools.

mwinters-stuff avatar mwinters-stuff commented on July 29, 2024

I would have hit my head on the keyboard if my cat had not been between it and me, for not thinking of doing that, Just have done so, with the proguard off, it worked fine, proguard on, its doing the above..

in my build.gradle,

 buildTypes {
    release {
      minifyEnabled true
      shrinkResources true
      proguardFile getDefaultProguardFile('proguard-android-optimize.txt')
      proguardFile "proguard-project.txt"
      signingConfig signingConfigs.myConfig
    }

the proguard-project.txt is


-keepattributes SourceFile,LineNumberTable,*Annotation*
-renamesourcefileattribute SourceFile
-dontwarn com.google.ads.**,org.springframework.**,org.ietf.**,com.jcraft.jzlib.**,javax.naming.**,sun.misc.Unsafe,com.google.common.collect.MinMaxPriorityQueue
-dontwarn com.squareup.okhttp.**,com.google.appengine.api.**,com.google.apphosting.api.**

-dontwarn libcore.icu.ICU

-dontwarn com.google.vending.licensing.**
-dontwarn com.android.vending.licensing.**
-dontwarn com.google.analytics.tracking.android.AdMobInfo
-dontwarn sun.misc.Unsafe


-keep class com.google.analytics.** {*;}
-keep interface  com.google.analytics.** {*;}
-keep class com.google.tagmanager.** {*;}
-keep interface  com.google.tagmanager.** {*;}

-keep class com.google.android.gms.** {*;}
-keep interface  com.google.android.gms.**{*;}
-dontwarn com.google.android.gms.**

-keep class com.google.ads.** {*;}
-keep interface  com.google.ads.** {*;}

-keep class org.androidannotations.** {*;}
-keep interface  org.androidannotations.** {*;}


-keep class android.support.** {*;}
-keep interface  android.support.** {*;}


-dontwarn com.google.analytics.tracking.android.**
-dontwarn com.google.vending.licensing.**
-dontwarn com.android.vending.licensing.**
-dontwarn rx.**

-keep class org.acra.** {*;}
-keep interface org.acra.** {*;}

-keep class retrofit.** {*;}
-keep interface retrofit.** {*;}
-keepnames class * implements retrofit.** {*;}

-keep class com.stericson.RootTools.** { *; }
-keep interface com.stericson.RootTools.** { *; }

-keep class com.google.gson.** { *; }
-keep interface com.google.gson.** { *; }

-keep class com.doomonafireball.betterpickers.** { *; }
-keep interface com.doomonafireball.betterpickers.** { *; }

-keep class nz.org.winters.android.unlockchecker.gson.** { *; }
-keep class nz.org.winters.android.gnfastcharge.gson.** { *; }
-keep interface nz.org.winters.android.gnfastcharge.gson.** { *; }

#-keep class org.spongycastle.** { *; }
#-keep interface org.spongycastle.** { *; }
#-dontwarn javax.naming.**
#-keep class net.schmizz.concurrent.** { *; }

-dontskipnonpubliclibraryclassmembers

# Google play services
-keep class * extends java.util.ListResourceBundle {
    protected Object[][] getContents();
}

-keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable {
    public static final *** NULL;
}

-keepnames @com.google.android.gms.common.annotation.KeepName class *
-keepclassmembernames class * {
    @com.google.android.gms.common.annotation.KeepName *;
}

-keepnames class * implements android.os.Parcelable {
    public static final ** CREATOR;
}
#-assumenosideeffects class android.util.Log {
#    public static boolean isLoggable(java.lang.String, int);
#    public static int v(...);
#    public static int i(...);
#    public static int w(...);
#    public static int d(...);
#    public static int e(...);
#}

-keep class com.google.gson.** { *; }
-keep class com.google.inject.* { *; }
-keep class org.apache.http.* { *; }
-keep class org.apache.james.mime4j.* { *; }
-keep class javax.inject.* { *; }
-keep class retrofit.* { *; }
-dontwarn rx.*
-keepattributes Signature
-keep class sun.misc.Unsafe { *; }


# should be copied to application proguard rules config
-keep class com.android.vending.billing.**

-assumenosideeffects class org.solovyev.android.checkout.Billing {
    public static void debug(...);
    public static void warning(...);
    public static void error(...);
}

-assumenosideeffects class org.solovyev.android.checkout.Check {
        *;
}

from roottools.

Stericson avatar Stericson commented on July 29, 2024

Chris,

Do you know why proguard might be causing issues here?

from roottools.

mwinters-stuff avatar mwinters-stuff commented on July 29, 2024

No idea, I couldn't figure it out, have moved to using libsuperuser and
have not had a problem with that..

On 25 November 2014 at 12:41, Stephen [email protected] wrote:

Chris,

Do you know why proguard might be causing issues here?


Reply to this email directly or view it on GitHub
#24 (comment).

Mathew Winters
See my other apps
https://play.google.com/store/apps/developer?id=Mathew+Winters
https://play.google.com/store/apps/developer?id=Mathew+Winters

from roottools.

Stericson avatar Stericson commented on July 29, 2024

Would you be willing to try a new version?

https://drive.google.com/file/d/0B5Amguus3csDQW1zV04waEhXNkE/view?usp=sharing

I think I fixed one of the issues that MIGHT have caused this. I saw a RootDenied exception being thrown in some cases and tracked it down to an issue with ProcessBuilder.

Even if you don't use the library in your application, it would be very helpful to know if this resolved the issue.

from roottools.

mwinters-stuff avatar mwinters-stuff commented on July 29, 2024

I can give it a go let you know in a couple of days..

:)

On 25 November 2014 at 12:56, Stephen [email protected] wrote:

Would you be willing to try a new version?

https://drive.google.com/file/d/0B5Amguus3csDQW1zV04waEhXNkE/view?usp=sharing

I think I fixed one of the issues that MIGHT have caused this. I saw a
RootDenied exception being thrown in some cases and tracked it down to an
issue with ProcessBuilder.

Even if you don't use the library in your application, it would be very
helpful to know if this resolved the issue.


Reply to this email directly or view it on GitHub
#24 (comment).

Mathew Winters
See my other apps
https://play.google.com/store/apps/developer?id=Mathew+Winters
https://play.google.com/store/apps/developer?id=Mathew+Winters

from roottools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.