Menu

Obfuscating main class.

Help
2015-04-30
2015-04-30
  • Zachary1234

    Zachary1234 - 2015-04-30

    -How do I have proguard obfuscate (change) the name of the class holding the main method, as well
    as change the name of the package holding that class, with regard to all the other renaming, for me?

    At the moment, it doesn't touch them and leaves them the same. How do I change this?

     
  • Eric Lafortune

    Eric Lafortune - 2015-04-30

    You could specify

    -keepclasseswithmembers,allowobfuscation class * {
        public static void main(java.lang.String);
    }
    
    -keepclassmembers class * {
        public static void main(java.lang.String);
    }
    
    -repackageclasses ''
    

    ProGuard will pick obfuscated names for the main classes. You could create a mapping file and use -applymapping if you want to pick the names yourself.

    Eric

     
    • Zachary1234

      Zachary1234 - 2015-04-30

      What are the gui settings with the latest gui version of the proguard program?

      To: 182456@discussion.proguard.p.re.sf.net
      From: lafortune@users.sf.net
      Subject: [proguard:discussion] Obfuscating main class.
      Date: Thu, 30 Apr 2015 02:18:08 +0000

      You could specify

      -keepclasseswithmembers,allowobfuscation class * {
      public static void main(java.lang.String);
      }

      -keepclassmembers class * {
      public static void main(java.lang.String);
      }

      -repackageclasses ''

      ProGuard will pick obfuscated names for the main classes. You could create a mapping file and use -applymapping if you want to pick the names yourself.

      Eric

      Obfuscating main class.

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/proguard/discussion/182456/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       
      • Zachary1234

        Zachary1234 - 2015-04-30

        Whereabouts in this .pro file should I put these 3 modifier lines?

        To: 182456@discussion.proguard.p.re.sf.net
        From: zachary1234@users.sf.net
        Subject: [proguard:discussion] Re: Obfuscating main class.
        Date: Thu, 30 Apr 2015 04:55:24 +0000

        What are the gui settings with the latest gui version of the proguard program?

        To: 182456@discussion.proguard.p.re.sf.net

        From: lafortune@users.sf.net

        Subject: [proguard:discussion] Obfuscating main class.

        Date: Thu, 30 Apr 2015 02:18:08 +0000

        You could specify

        -keepclasseswithmembers,allowobfuscation class * {

        public static void main(java.lang.String);
        

        }

        -keepclassmembers class * {

        public static void main(java.lang.String);
        

        }

        -repackageclasses ''

        ProGuard will pick obfuscated names for the main classes. You could create a mapping file and use -applymapping if you want to pick the names yourself.

        Eric

        Obfuscating main class.

        Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/proguard/discussion/182456/

        To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

        Obfuscating main class.

        Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/proguard/discussion/182456/

        To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/