混淆首选项
混淆首选项控制对包进行混淆的过程。
EclipseME使用Proguard 来完成混淆过程。
首选项项目:
项目 |
内容 |
Proguard Root Directory |
在这里你可以指定Proguard安装路径。
如果你要对你的程序混淆,必须安装Proguard。
|
Use Specified Arguments |
默认情况下, EclipseME会使用如下参数来调用Proguard进行混淆:
-dontusemixedcaseclassnames -dontnote -defaultpackage ''
在某些场合你需要指定不同的参数时, 可以将"Use specified arguments"(使用指定参数)
这个选项选中并且在文本框里填上参数。
Microsoft Windows 用户特别注意:
默认情况下, ProGuard假定你使用的操作系统会区分文件名中的大小写。
(比如 A.java 和 a.java
是两个不同的文件)很明显,Microsoft Windows不是这样的操作系统。
Windows用户要确定为ProGuard指定了-
dontusemixedcaseclassnames
选项。 如果你没有这样做,而你的工程文件又超过了26个类的话, ProGuard默认
使用变换大小写的方式为混淆后的类命名。显然这会覆盖原来的类。
安全起见,从EclipseME 0.9.0发行版开始
-dontusemixedcaseclassnames 选项被包含到了传给
ProGuard的默认选项中去。 如果你是*NIX用户并且你的工程中的类超过26个的话,
去掉该选项你可以得到一个稍微小点的JAR文件。
|
Proguard Keep Expressions |
在这里你可以设置一个表达式是的某些类不被混淆。表达式中用到的关键字
请参阅Proguard文档。
默认的表达式会保留所有的MIElet类以及他们的方法不被混淆。
|
回头看看Proguard的配置资料
http://proguard.sourceforge.net/
JME Wireless Toolkit Integration
ProGuard can be seamlessly integrated in Sun's Wireless Toolkit (WTK)
for Java Micro Edition (JME).
The WTK already comes with a plug-in for ProGuard. Alternatively, ProGuard
offers its own plug-in. This latter implementation is recommended, as it more
up to date and it solves some problems. It is also somewhat more efficient,
invoking the ProGuard engine directly, instead of writing out a configuration
file and running ProGuard in a separate virtual machine.
In order to integrate this plug-in in the toolkit, you'll have to put the
following lines in the file
{j2mewtk.dir}/wtklib/Linux/ktools.properties
or
{j2mewtk.dir}/wtklib/Windows/ktools.properties
(whichever is
applicable).
obfuscator.runner.class.name: proguard.wtk.ProGuardObfuscator
obfuscator.runner.classpath: /usr/local/java/proguard/lib/proguard.jar
Please make sure the class path is set correctly for your system.
Once ProGuard has been set up, you can apply it to your projects as part of
the build process. The build process is started from the WTK menu bar:
Project -> Package -> Create Obfuscated Package
This option will compile, shrink, obfuscate, verify, and install your midlets
for testing.
Should you ever need to customize your ProGuard configuration for the JME WTK,
you can adapt the configuration file proguard/wtk/default.pro
that's inside the proguard.jar
.
分享到:
相关推荐
Eclipse+ProGuard配置 Eclipse+ProGuard配置
eclipseme 是一个用来开发J2ME应用程序的Eclipse插件 ; proguard压缩、优化和混淆Java字节码文件的免费的工具
java 源码加密 混淆,proguard 配置文件,很详细,经测试可以用
Eclipse配置ProGuard.doc
[独家奉献]Eclipse+ProGuard配置! [独家奉献]Eclipse+ProGuard配置!
proguard6.0.13最新版本的资源。proguard6.0.13最新版本的资源。
1.支持ant 使用proguard标签 2.支持windows环境混淆代码 3.支持Java8+ 新版本6x系列不再提供编译好的jar包 需要自己手动编译,7系列使用的gradle编译管理 国内不太好用,6x系列基本满足Java8+ 的代码混淆,具体可以...
proguard4.10 官方版软件,免费下载 1、官网地址:http://proguard.sourceforge.net/ 截止2013-12-15 官网正式版本为4.10, 提供4.11Beat版 2、 解压 proguard4.10.zip ,运行官方例子如下: cd examples java -...
proguard 6.2.2的魔改版本用于混淆app、jar、class等,将所有a,b,c等等的字符改成不可见字符,从而提高安全性。里面包括源码和编译好的jar包。编译源码使用core/build.sh,编译好的jar包在lib目录下。android app...
proguard配置文件包含混淆算法,不混淆所有的set/get方法,不混淆所有特殊的类,这套配置满足项目基本混淆
proguard6.0.3官方最新版本jar包,解决了在混淆并读取配置文件时,配置文件乱码的问题。官方网址:http://proguard.sourceforge.net/
This ProGuard used to obfuscate Java source code.
proguard-7.2.2.tar.gz
android proguard5.3.3混淆包 替换Jar包以后使 混淆的类名方法名变成空白 使用方法 直接 替换 5.3.3版本的 混淆jar包 Mac 路径为 Contents/gradle/m2repository/net/sf/proguard/proguard-base Win gradle/m2...
#android-proguard-configs ##Introduction android configs - proguard ##How To Use 克隆 repo,并将所有 proguard 配置文件复制到 /tools/proguard。 对于 App,建议使用 proguard-android-app-optimize.txt。 ...
对如何使用proguard以及配置文件参数都进行了详细的说明
这个ZIP文件包含了ProGuard版本7.4.0的所有必要文件和配置。 下载和使用方法: 下载ZIP文件: 点击下载按钮获取proguard-7.4.0.zip文件。确保你选择了适合你操作系统的版本。 解压文件: 下载完成后,使用解压软件...
proguard混淆打包工具proguard混淆打包工具proguard混淆打包工具
ProGuard是最受欢迎的Java字节码优化器。它使您的Java和Android应用程序缩小了90%,速度提高了20%。ProGuard还通过模糊类,字段和方法的名称来提供对逆向工程的最小保护。 ProGuard可以免费使用,以处理您的应用...