mikeandrson / dexter Goto Github PK
View Code? Open in Web Editor NEWAn advanced DEX editor for Android.
License: GNU General Public License v3.0
An advanced DEX editor for Android.
License: GNU General Public License v3.0
Before in Dexter I don't remember in which version was the ability to open apk files, not only dex files and it was actually very useful option. Now Dexter can open only dex files and we have to take out dex files first. That's not so comfortable. Please return that ability.
İ like it and toss a star to your project! Happy NNN (31) days
it is important to update the Jadx version to the latest one, you know.
Hello sir how you implement jadx 1.2.0 in your latest GitHub Action Android CLI ?
The same thing when I try to implement in my project it is not working
See my code
public void _dex2Java(final String _outPath) {
prog = new ProgressDialog(MainActivity.this);
prog.setTitle("Dex2Java");
prog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
prog.show();
final Handler mHandler = new Handler() {
public void handleMessage(Message msg) {
prog.dismiss();
}
};
new Thread() {
public void run() {
Looper.prepare();
FileUtil.makeDir(_outPath);
try {
JadxArgs args = new JadxArgs();
args.getInputFiles().add(new File(dexPath_java.getText().toString()));
args.setSkipResources(true);
args.setShowInconsistentCode(true);
args.setRespectBytecodeAccModifiers(true);
args.setFallbackMode(false);
JadxDecompiler decompiler = new JadxDecompiler(args);
decompiler.load();
List<JavaClass> javaClasses=decompiler.getClasses();
for (int i = 0; i < (int)(javaClasses.size()); i++) {
JavaClass jcls = javaClasses.get(i);
jcls.decompile();
prog.setMessage(jcls.getFullName());
prog.setMax((int)javaClasses.size());
prog.setProgress((int)i);
String fullName = jcls.getFullName();
String code = jcls.getCode();
File javaFile = new File(DesPath(_outPath) + (fullName.replace(".","/")) + ".java");
FileUtil.writeFile(javaFile.getAbsolutePath(), code);
}
} catch (Exception e) {
showMessage(getApplicationContext(), e.toString());
}
mHandler.sendEmptyMessage(0);
Looper.loop();
} }.start();
}
public static String getPrefix(String path) {
String result = "";
File file = new File(path);
if (new File(path).isDirectory()) {
return "";
}
result = file.getName().subSequence(0, file.getName().lastIndexOf(".")).toString();
return result;
}
public String DesPath(String path) {
if (path.endsWith("/")) {
return path;
} else {
return path + "/";
}
}
public void saveFile(byte[] bfile, String filePath) throws Exception {
BufferedOutputStream bos = null;
FileOutputStream fos = null;
File file = null;
File dir = new File(filePath);
if (!dir.exists() && dir.isDirectory()) {//判断文件目录是否存在
dir.mkdirs();
}
file = new File(filePath);
fos = new FileOutputStream(file);
bos = new BufferedOutputStream(fos);
bos.write(bfile);
if (bos != null) {
bos.close();
}
if (fos != null) {
fos.close();
}
}
``
Do you think, it will be a good idea to add candle decompiler in dexter ?
When the back button is pressed, the application closes, it would be nice to have a function to avoid this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.