[Android-development] proguard

maitai at virtual-winds.org maitai at virtual-winds.org
Wed Feb 18 06:39:54 CET 2015


Thanks Harri for replying

I can see in the .so from the apk that all labels, class names etc are 
not obfuscated, so proguard is not called.

Do you know if project.properties is generated through a template or 
something similar I could modify?

Philippe.

Le 17-02-2015 21:47, Harri Pasanen a écrit :
> If you look at compile output in Qt creator, I think you'll see some
> proguard commands go by...
> This is from memory, so I could be wrong.
> 
> But obviously proguard only touches the java parts.
> 
> If you explode the generated .apk and run strings on select pieces, you
> should see either proguard mangled strings or something familiar.
> 
> My fast 2 cents without actually trying any of the above...
> 
> Harri
> 
> On 17/02/2015 19:08, maitai at virtual-winds.org wrote:
>> Hi,
>> 
>> Back on this after many hours of research... still no solution...
>> 
>> I can see that project.properties in android build directory ask to
>> uncomment a line to activate proguard obfuscating but since this file 
>> is
>> regenerated at each build (by qmake as it seems?), the cbanges are 
>> lost
>> of course.
>> 
>> Is there a master file somewhere I am missing or an option for that?
>> 
>> Any tip welcomed..
>> 
>> Thanks
>> Philippe
>> 
>> Le 16-02-2015 16:38, maitai at virtual-winds.org a écrit :
>>> Hello again,
>>> 
>>> If I want to obfuscate and/or optimize apk with proguard, is it
>>> something I can configure from qt-creator somehow? Or maybe it's done
>>> already automatically from the SDK?
>>> 
>>> At build time in creator I can see:
>>> 
>>> ...
>>> -release-obfuscation-check:
>>>        [echo] proguard.config is ${proguard.config}
>>> 
>>> -pre-build:
>>> 
>>> -check-env:
>>>    [checkenv] Android SDK Tools Revision 24.0.2
>>> ...
>>> 
>>> But it's not clear to me if proguard is actually called or not, and
>>> eventually how if I can change options.
>>> 
>>> Thanks
>>> Philippe Lelong
>>> _______________________________________________
>>> Android-development mailing list
>>> Android-development at qt-project.org
>>> http://lists.qt-project.org/mailman/listinfo/android-development
>> _______________________________________________
>> Android-development mailing list
>> Android-development at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/android-development
> 
> _______________________________________________
> Android-development mailing list
> Android-development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/android-development



More information about the Android-development mailing list