Recaf | The modern Java bytecode editor | Bytecode library
kandi X-RAY | Recaf Summary
kandi X-RAY | Recaf Summary
An easy to use modern Java bytecode editor that abstracts away the complexities of Java programs. Recaf abstracts away:. Don't know bytecode? That's ok because Recaf supports recompiling decompiled code and inserting single line Java statements into the bytecode. For more information: Read the documentation.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Generate an invocation dynamic statement
- Build a tag AST
- Parse arg
- Handle a line
- Update auto - completion prompt
- Suggest opcodes
- Returns the last word of the given text
- Run the consumer
- Builds the notes
- Decompile the class
- Parses the output of the command line
- Generate a method instruction
- Get the selection
- Creates a context menu for resource root
- Apply mappings
- The assembly wrapper
- Add the scope to the tree
- Generate a switch instruction
- Visits a LDC instruction
- Process a table switch instruction
- Parse the link
- Scan classpath for bootstrap classes
- Parses the text
- Create an LdcIn instruction
- Parses the given text
- Parses the output of the file
Recaf Key Features
Recaf Examples and Code Snippets
Community Discussions
Trending Discussions on Recaf
QUESTION
I decoded an .dex to smali using apktool, but I couldn't find a way to edit DEBUG, a boolean defaulted to false (reading 0x0000000 in Java Bytecode Editor), to always return true. I've attempted to edit the 0x0000000 field directly via JBE, recaf, and HxD, but the program either can't edit a boolean field (JBE and recaf) or won't recognoze the .class after hex editing.
Any help, whether it's about how to change the .smali code or .class code, will be greatly appreciated.
...ANSWER
Answered 2019-Dec-26 at 19:01The java compiler will usually inline references to static final fields at compile time. So even if you change the value of the field, it won't actually affect anything, typically.
Instead, you would need to modify the value at the point(s) where it was actually used, in the original code. Unfortunately, it's not easy to determine where that is now. Because after the compiler inlined the value, it will just be something like const v0, false
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Recaf
Clone the repository via git clone https://github.com/Col-E/Recaf.git. Open the project in an IDE or generate the build with maven. For additional information, join the Discord server (https://discord.gg/Bya5HaA).
Import the project from the pom.xml IntelliJ Eclipse - (Warning: Eclipse's custom compiler cannot compile Recaf because of incorrect generics parsing)
Create a run configuration with the main class me.coley.recaf.Recaf
Execute build Follow the prompt in the script to build the project.
Run the generated build: java -jar target/recaf-{version}-jar-with-dependencies.jar
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page