作者:韩梦飞沙

Author:han_meng_fei_sha

邮箱:313134555@qq.com

E-mail: 313134555 @qq.com

===

==

=============

====

.class反编译

jd-gui

java 编译成 .class

javac HI.java”(javac后面加空格),敲回车,这时如图所示,java文件上方会多出一个class文件(如果没有class文件说明编译不成功)。

this.mActivityToTraceText.addModifyListener(new GLTraceOptionsDialog.5(this));

this.mActivityToTraceText.addModifyListener(new GLTraceOptionsDialog(this));

GLTraceOptionsDialog

===========

No Connected Devices

直接修改 会报错。

=====

jclasslib bytecode viewer

JClassLib

点击软件的 File -- Open Class File 打开你刚解压出来的class文件

4)点击methods--getAllDataBase--Code

methods是表示方法不用说吧

getAllDataBase是刚在jd-gui里面找到的方法名

Code包含了getAllDataBase方法里所有的信息

找到"不能打开数据库连接,请检查!"

----

首先创建一个工程,把刚刚下载jclasslib文件夹下bin目录下jclasslib.jar引入

android studio java工程

android studio run debug configuration

点击菜单栏的“Run”->“Edit Configurations...”。然后会打开Run/Debug Configuration窗口。

没有任何与配置相关的挠文件

no scratch file associated with configuration

​​导入中文包后编译时出现报错:

报错是没有scratch file(临时文件),然后需要配置scratch file。

先把edit configure窗口关闭,打开工具(tools),选择新建scratch文件:

选java语言

接下来在重新编译,在弹出的edit configuration窗口中的path to scratch file:输入scratch文件路径:(一般可以直接看到,没有就在 X盘\...\.IdeaIC2016\config\scratches\scratch_1)

图片参考图片一,我的设成默认scratch file没法复现过程。

然后是编译成功:

===

Android Gradle 构建目标:org.gradle.工具。
Gradle连接异常:无法创建工具API实现的一个实例 使用指定的 Gradle安装“C:\ \用户管理员\ .gradle \包装\ dist \ Gradle - 3.3 \ 55 gk2rcmfc6p2dg9u9ohc3hw9 \ Gradle - 3.3”。

错误:Android Gradle Build Target: org.gradle.tooling.GradleConnectionException: Could not create an instance of Tooling API implementation using the specified Gradle installation 'C:\Users\Administrator\.gradle\wrapper\dists\gradle-3.3-all\55gk2rcmfc6p2dg9u9ohc3hw9\gradle-3.3'.

只要

然后对这个plugin禁用后,对关联项全钩子去掉,然后重启。

import java.io.*;
import org.gjt.jclasslib.io.ClassFileWriter;
import org.gjt.jclasslib.structures.CPInfo;
import org.gjt.jclasslib.structures.ClassFile;
import org.gjt.jclasslib.structures.constants.ConstantUtf8Info; /**
* Created by Administrator on 2017/8/10.
*/
public class Test {
public static void main(String arg[]) throws Exception{
System.out.println("韩梦飞沙");
String filePath = "D:\\DevicePanel.class";
FileInputStream fis = new FileInputStream(filePath); DataInput di = new DataInputStream(fis);
ClassFile cf = new ClassFile();
cf.read(di);
CPInfo[] infos = cf.getConstantPool(); int count = infos.length;
for (int i = 0; i < count; i++) {
if (infos[i] != null) {
System.out.print(i);
System.out.print(" = ");
System.out.print(infos[i].getVerbose());
System.out.print(" = ");
System.out.println(infos[i].getTagVerbose());
if(i == 236){
ConstantUtf8Info uInfo = (ConstantUtf8Info)infos[i];
uInfo.setBytes("没有连接的设备 no connected device!999".getBytes());
infos[i]=uInfo;
}
}
}
cf.setConstantPool(infos);
fis.close();
File f = new File(filePath);
ClassFileWriter.writeToFile(f, cf);
}
}

  

=====

android monitor 汉化的更多相关文章

  1. android monitor 汉化 ddms

    作者:韩梦飞沙 Author:han_meng_fei_sha 邮箱:313134555@qq.com E-mail: 313134555 @qq.com android.jar\com\androi ...

  2. 第五章:Reminders实验:第一部分[Learn Android Studio 汉化教程]

    Learn Android Studio 汉化教程 By now you are familiar with the basics of creating a new project, program ...

  3. [Learn Android Studio 汉化教程]第四章 : Refactoring Code

    [Learn Android Studio 汉化教程]第四章 : Refactoring Code 第四章 Refactoring Code    重构代码 在Android Studio中开发,解决 ...

  4. [Learn Android Studio 汉化教程]第三章:使用 Android Studio 编程

    [Learn Android Studio 汉化教程]第三章:使用 Android Studio 编程 本章包含如何在 Android Studio 中书写或生成代码. Android Studio ...

  5. [Learn Android Studio 汉化教程]第一章 : Android Studio 介绍

    注:为了看上去比较清晰这里只转载了中文 原地址:  [Learn Android Studio 汉化教程]第一章 : Android Studio 介绍 本章将引导您完成安装和设置开发环境,然后你就可 ...

  6. android studio 汉化 svn插件汉化。布局文件 属性 汉化 public.xml

    android studio 汉化 SvnBundle.properties D:\Android Studio\plugins\svn4idea\lib resources_en.jar\org\j ...

  7. 安卓工作室 android studio 汉化后,报错。 设置界面打不开。Can't find resource for bundle java.util.PropertyResourceBundle, key emmet.bem.class.name.element.separator.label

    安卓工作室 android studio 汉化后,报错. 设置界面打不开. Android studio has been sinified and reported wrong.The setup ...

  8. 第七章 : Git 介绍 (下)[Learn Android Studio 汉化教程]

    Learn Android Studio 汉化教程 Let’s reset even further to remove all traces of your work on the deprecat ...

  9. 第七章 : Git 介绍 (上)[Learn Android Studio 汉化教程]

    Learn Android Studio 汉化教程 [翻译]Git介绍 Git版本控制系统(VCS)快速成为Android应用程序开发以及常规的软件编程领域内的事实标准.有别于需要中心服务器支持的早期 ...

随机推荐

  1. Python模块学习 - fnmatch & glob

    介绍 fnmatch 和 glob 模块都是用来做字符串匹配文件名的标准库. fnmatch模块 大部分情况下使用字符串匹配查找特定的文件就能满足需求,如果需要更加灵活的字符串匹配,就没有办法了,这里 ...

  2. ARMV8 datasheet学习笔记4:AArch64系统级体系结构之存储模型

    1.前言 关于存储系统体系架构,可以概述如下: 存储系统体系结构的形式 VMSA 存储属性   2. 存储系统体系结构 2.1.    地址空间 指令地址空间溢出 指令地址计算((address_of ...

  3. ftruncate(改变文件大小)

    ftruncate(改变文件大小) 定义函数 int ftruncate(int fd,off_t length); 函数说明 ftruncate()会将参数fd指定的文件大小改为参数length指定 ...

  4. python标准库之secrets

    secrets secrets是python3.6加入到标准库的,使用secrets模块,可以生成适用于处理机密信息(如密码,帐户身份验证,安全令牌)的加密强随机数. 导入 import secret ...

  5. [学习笔记]Java代码中各种类型变量的内存分配机制

    程序运行时,我们最好对数据保存到什么地方做到心中有数.特别要注意的是内存的分配.有六个地方都可以保存数据: (1) 寄存器 这是最快的保存区域,因为它位于和其他所有保存方式不同的地方:处理器内部.然而 ...

  6. STM32F412应用开发笔记之七:片上ADC的应用测试

    在我们的应用项目中需要采集一些模拟量,这些量使用MCU自带的ADC就可以满足要求.在NUCLEO-F412ZG实验板上的STM32F412ZG有一个16通道的ADC,我们试验用它采集几个数据. 在NU ...

  7. CCF2016093炉石传说(C语言版)

    问题描述 <炉石传说:魔兽英雄传>(Hearthstone: Heroes of Warcraft,简称炉石传说)是暴雪娱乐开发的一款集换式卡牌游戏(如下图所示).游戏在一个战斗棋盘上进行 ...

  8. PHP时间类完整实例

    <?php header("Content-type:text/html;Charset=utf-8"); class time{ private $year;//年 pri ...

  9. 性能测试二十一:环境部署之mysql

    在正常工作中,mysql应该部署到 一台独立的服务器上,不与tomcat共用服务器,由于成本原因,现部署到一起 为避免出错引起麻烦,先备份: 一:环境清理:先卸载系统自带的mysql 停止mysql: ...

  10. locust的安装与使用

    Contents Locust这一款开源性能测试工具.然而,当前在网络上针对Locust的教程极少,不管是中文还是英文,基本都是介绍安装方法和简单的测试案例演示,但对于较复杂测试场景的案例演示却基本没 ...