Exetools  

Go Back   Exetools > General > Community Tools

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 06-16-2024, 12:36
Mendax47's Avatar
Mendax47 Mendax47 is offline
Family
 
Join Date: Jun 2016
Location: Earth..
Posts: 251
Rept. Given: 79
Rept. Rcvd 11 Times in 10 Posts
Thanks Given: 793
Thanks Rcvd at 302 Times in 116 Posts
Mendax47 Reputation: 11
Just a question... is it possible to patch jar or apk file using JEB..? as far as i know i can only view or decompile jar or apk file.
Reply With Quote
  #2  
Old 06-16-2024, 17:52
Go2Crck Go2Crck is offline
Friend
 
Join Date: Nov 2023
Posts: 4
Rept. Given: 0
Rept. Rcvd 1 Time in 1 Post
Thanks Given: 0
Thanks Rcvd at 4 Times in 2 Posts
Go2Crck Reputation: 1
Quote:
Originally Posted by Mendax47 View Post
Just a question... is it possible to patch jar or apk file using JEB..? as far as i know i can only view or decompile jar or apk file.
AFAIK JEB cannot edit APK directly because it requires signing later which is manual.

Check out these resources:
https://www.pnfsoftware.com/jeb/manual/actions/
https://www.pnfsoftware.com/jeb/manual/android/
Reply With Quote
  #3  
Old 06-17-2024, 09:03
mongza mongza is offline
Friend
 
Join Date: Dec 2022
Posts: 5
Rept. Given: 0
Rept. Rcvd 1 Time in 1 Post
Thanks Given: 26
Thanks Rcvd at 0 Times in 0 Posts
mongza Reputation: 1
Quote:
Originally Posted by Mendax47 View Post
Just a question... is it possible to patch jar or apk file using JEB..? as far as i know i can only view or decompile jar or apk file.
for JARs, try recaf

https://github.com/Col-E/Recaf/releases
https://github.com/Col-E/recaf-3x-issues/releases
Reply With Quote
  #4  
Old 06-17-2024, 10:36
PermaNull PermaNull is offline
Friend
 
Join Date: Nov 2019
Posts: 8
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 1
Thanks Rcvd at 1 Time in 1 Post
PermaNull Reputation: 0
Quote:
Originally Posted by mongza View Post
for JARs, try recaf

https://github.com/Col-E/Recaf/releases
https://github.com/Col-E/recaf-3x-issues/releases
APK aren't JAR. Unless you do dex2jar and back the other way.

Options are full decompilation/recompile or modifying the java bytecode afaik. Though with dex2jar you could possibly use Recaf's java editor but I recommend v4 if you do it with this way, otherwise apktool -d and modify the bytecode then re-assemble and sign.

If you're looking to patch/modify it another option is Frida too which would allow you to write JS like syntax, you could modify the bytecode to load Frida agent from libs dir of APK when it's started and place all your code there. This is how Oculus Quest apps are cracked.
https://frida.re/

If I wanted to do this without modifying bytecode and could see actual java code via something like JEB, Frida would be my preferred approach due to the ease-of-use vs trying to manipulate the software via bytecode.
Reply With Quote
  #5  
Old 06-17-2024, 12:23
mongza mongza is offline
Friend
 
Join Date: Dec 2022
Posts: 5
Rept. Given: 0
Rept. Rcvd 1 Time in 1 Post
Thanks Given: 26
Thanks Rcvd at 0 Times in 0 Posts
mongza Reputation: 1
Quote:
Originally Posted by PermaNull View Post
APK aren't JAR. Unless you do dex2jar and back the other way.

Options are full decompilation/recompile or modifying the java bytecode afaik. Though with dex2jar you could possibly use Recaf's java editor but I recommend v4 if you do it with this way, otherwise apktool -d and modify the bytecode then re-assemble and sign.

If you're looking to patch/modify it another option is Frida too which would allow you to write JS like syntax, you could modify the bytecode to load Frida agent from libs dir of APK when it's started and place all your code there. This is how Oculus Quest apps are cracked.
https://frida.re/

If I wanted to do this without modifying bytecode and could see actual java code via something like JEB, Frida would be my preferred approach due to the ease-of-use vs trying to manipulate the software via bytecode.

Please re-read Mendax47's question.
Reply With Quote
  #6  
Old 06-17-2024, 15:22
PermaNull PermaNull is offline
Friend
 
Join Date: Nov 2019
Posts: 8
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 1
Thanks Rcvd at 1 Time in 1 Post
PermaNull Reputation: 0
Quote:
Originally Posted by mongza View Post
Please re-read Mendax47's question.
My issue, I only read the quoted post after where it was discussing APK and not the OP. Regardless, both were mentioned, and the solutions provided by either of us should work.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there any Lua 5.4 Decompiler? SMH17 General Discussion 1 10-04-2021 16:51


All times are GMT +8. The time now is 01:46.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )