如何去除jd-gui反编译后的

如何去除jd-gui反编译后的,第1张

背景说明

利用jd-gui反编译classs代码之后,导出来的java源代码里面含有/,其实这些标记是之前的java源码的注释,去掉这些标识了,需要利用jd-gui-cleanerjar工具进行去掉,有需要的可以进行下载使用。

jd-gui-cleanerjar简介

清除jd-gui反编译后注释的工具

图形界面, *** 作方便

在java环境下双击运行

运行后,先点input,选择源文件文件夹,再点output,选择输出文件文件夹,最后点start运行。运行后会将所有源文件夹中的文件处理后保存到输出文件夹中,并处理且只处理java文件
原理很简单,用java的正则表达式清理每个文件中的jd相关的注释。开发中发现java的正则表达式经常内存溢出,在国外网站中发现这是java的原因,建议不要使用“选择重复”的表达式,即:(A|B)。

An interesting note on Android SDK is that the code in androidjar is stubbed out This because the code inside the jar is never runs, so there’s no reason to make the SDK bigger because of this To better undersand, if you look at these classes using a decompiler (with jad for example) you will only see: public void something(…){ throw new RuntimeException(“Stub!”); } This means that you use androidjar only for the purpose of compiling the code, use autocomplete and imports in Eclipse
Moreover, androidjar contains only the APIs exposed for the level of applications development It’s a promise from Google that if you compile your application using this jar, you are guaranteed your application will run in future versions of Android There is a part of the compilation process in the Android system that removes methods and classes of API It’s used internally by the framework and should not be used for an Android developer Why does Google do it Well, I believe it’s because Google needs to write too much code to get API exposed A lot of code starting in the hardware until to get a high-level API, which can be changed from one version to another, even codes that may no longer exist in future versions

1、下载jdeclipse_update_sitezip,解压,将plugins文件下的jdideeclipse_013jar和jdideeclipsewin32x86_013jar复制到eclipse安装目录下的plugins里 2、在eclipse里安装,选择help下的安装插件install new soft 或者叫update

他们就是临时变量,因为你是反编译人家的代码,所以软件只能用临时变量来替代人家原来程序里面的临时变量。你只需要明白那个临时变量的含义和使用目的就可以了。
不过看一下你这个程序,那个tmp122_121的定义有问题,软件将他们标红,应该是提示这个地方有问题。


DABAN RP主题是一个优秀的主题,极致后台体验,无插件,集成会员系统
乐在赚 » 如何去除jd-gui反编译后的

0条评论

发表评论

提供最优质的资源集合

立即查看 了解详情