-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve jadx #1221
Improve jadx #1221
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes like code formatting are necessary for passing build for this PR.
Although, I can fix these issues for you if you have any trouble.
lineNumbers = new LineNumbers(codeArea); | ||
/* lineNumbers = new LineNumbers(codeArea); | ||
lineNumbers.setUseSourceLines(useSourceLines); | ||
codeScrollPane.setRowHeaderView(lineNumbers); | ||
codeScrollPane.setRowHeaderView(lineNumbers);*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commenting code is not a fix, you just disable important feature (debug line number) instead fixing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll see what exactly it does, I didn't delete it on purpose because I wasn't sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I returned everything back, I thought it was a bug), and this is a feature, and fixed it so that it could only be worked on in decompiled java code, xml file not contains source lines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
xml file not contains source lines
Actually, AndroidManifest.xml have source lines sometimes. And there is no point in your new changes, please revert them too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AndroidManifest.xml have source lines sometimes
As far as I know, I have never seen them there, it is also turned on by default and I personally do not like it. It can even be rendered into a separate option. This function only bothers me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I see, I can add such option. Just don't disable feature you don't like 😄
@@ -158,20 +158,20 @@ private void search(int direction) { | |||
} catch (BadLocationException e) { | |||
LOG.error("Caret move error", e); | |||
} | |||
} | |||
}*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, commenting code is not a fix. If you don't know how to fix this, please open new issue with detail description.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This removes those crutches) from changing the background in the input field. In general, this needs to be rewritten so that it shows which position we are in from the found, like ide search bar.
@@ -119,7 +122,7 @@ private void enableSwitchingTabs() { | |||
lastTab = null; | |||
return; | |||
} | |||
FocusManager.focusOnCodePanel(tab); | |||
// FocusManager.focusOnCodePanel(tab); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another code commenting. And I don't see any relation to your changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But this caused a not very pleasant effect when every time a new class is opened when use new themes. Related to improving the ui.
@@ -29,7 +29,7 @@ | |||
|
|||
private static final Gson GSON = new GsonBuilder().create(); | |||
|
|||
private static final ImageIcon ICON = UiUtils.openIcon("icon_quark"); | |||
private static final ImageIcon ICON = UiUtils.openSvgIcon("ui/analyze"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to find SVG icon for official Quark icon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quark have icon? I don't see it on official repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generated from png logo. Seems to be fine
icon.zip
upaded variant
quark_icon.zip
import jadx.gui.ui.TabbedPane; | ||
import jadx.gui.ui.codearea.ClassCodeContentPanel; | ||
import jadx.gui.utils.OverlayIcon; | ||
import jadx.gui.utils.UiUtils; | ||
import sun.security.mscapi.PRNG; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused import which leads to compilation error.
Please format code before pushing PR, see Code Formatting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I looked at this, the format of the code in this configuration does not work correctly in my IDEA (2021.2) Windows system. I do not know what to do...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just execute gradle spotlessApply
.
the format of the code in this configuration does not work correctly in my IDEA
What kind of issue you have?
@jpstotz, @lbj-the-goat can anyone check or review changes to resources processing? |
@skylot I just checked the commit "fix(res): use lowercase name on deobfuscated\renamed resources names and id in hex format" 6f367d5 except for the code formatting it sounds reasonable to harmonize the resource id to format For commit 6bfe4f2 which adds more types to |
see this or see dumped arsc file using aapt\aapt2 or see file on raw format, or use ApkAnalyser from Android Studio to see arsc file. I watched everything for a long time. Those resources are resource types that in the list |
Hello, Unfortunately I am not familiar with resource formats.😁 |
My changes on this project:
Screenshot