[Completed] How to edit assets folder ,simply ? - XDA Assist

hi
I know an application called apk editor which simply edits res folder of the applications...
Now I would like to find a simple way to edit assets folder , in the application file.
Could anybody help me , please?

hmdphantom said:
hi
I know an application called apk editor which simply edits res folder of the applications...
Now I would like to find a simple way to edit assets folder , in the application file.
Could anybody help me , please?
Click to expand...
Click to collapse
Hi and thank you for using XDA Assist
Try using Apktool, it's much easier to modify apks.
Good luck!

nilac said:
Hi and thank you for using XDA Assist
Try using Apktool, it's much easier to modify apks.
Good luck!
Click to expand...
Click to collapse
thank you.
I found the app , downloaded from 4shared...
Now I get these errors :
*] *****\xdaAutoAPKTool_V4.0.2\_INPUT_APK\instasize_78.fl
recompiling *****\xdaAutoAPKTool_V4.0.2\_INPUT_APK\instasize_78.fl...
Exception in thread "main" brut.androlib.AndrolibException: java.nio.file.NoSuchFileException: bin/
at brut.androlib.Androlib.buildUnknownFiles(Androlib.java:570)
at brut.androlib.Androlib.build(Androlib.java:293)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:233)
at brut.apktool.Main.main(Main.java:88)
Caused by: java.nio.file.NoSuchFileException: bin/
at com.sun.nio.zipfs.ZipFileSystem.checkParents(ZipFileSystem.java:863)
at com.sun.nio.zipfs.ZipFileSystem.newOutputStream(ZipFileSystem.java:528)
at com.sun.nio.zipfs.ZipPath.newOutputStream(ZipPath.java:792)
at com.sun.nio.zipfs.ZipFileSystemProvider.newOutputStream(ZipFileSystemProvider.java:285)
at java.nio.file.Files.newOutputStream(Unknown Source)
at java.nio.file.Files.copy(Unknown Source)
at java.nio.file.CopyMoveHelper.copyToForeignTarget(Unknown Source)
at java.nio.file.Files.copy(Unknown Source)
at brut.androlib.Androlib.insertFile(Androlib.java:590)
at brut.androlib.Androlib.buildUnknownFiles(Androlib.java:566)
... 4 more
The system cannot find the drive specified.
---------------------------------------------------------------------------------------------------------------------
Can you tell me what is needed to solve the problem?
Is apktool complete ? does it work on all applications?

nilac said:
Hi and thank you for using XDA Assist
Try using Apktool, it's much easier to modify apks.
Good luck!
Click to expand...
Click to collapse
problem solved....
But I like to hear your answers...
------------------------------------------------------------------------
The solution is to extract files directly from (apk or zip) file and mix with decrypted file
then uninstall last version of the app on the phone.
Install the new one....

nilac said:
Hi and thank you for using XDA Assist
Try using Apktool, it's much easier to modify apks.
Good luck!
Click to expand...
Click to collapse
Could some one just extract files from apk, change the files and then rename the file to zip and sign the file?
Could it be that easy?

hmdphantom said:
Could some one just extract files from apk, change the files and then rename the file to zip and sign the file?
Could it be that easy?
Click to expand...
Click to collapse
Yes , done.
that easy....
Apktool one of the bests.
Thanks for the helps.

Related

[APP] Galaxy Note Photo Editor .apk

Hi all,
Here is the freshly extracted .apk of photo editor from i9000's value pack system/app.
There was no .odex.
Its can be installed anyway (system/app or normal installation)
Its opening but force closes after selecting picture!
My rom is'nt deodexed. So someone please try it on a deodexed ROM.
THANKS!
force close on a deoxed rom ddkp3
I think it needs porting of some framework files also....try out to find which one....
I think it needs a correct lib file!
Can someone please post the correct lib file to run this?
Sent from my GT-I9003 CM9
I have a note. Which files do you need?
Sent from my GT-N7000 using XDA App
jaskiratsingh said:
I have a note. Which files do you need?
Sent from my GT-N7000 using XDA App
Click to expand...
Click to collapse
No. we dont' need a file from galaxy note.
Its taken from i9000.
and also dont know which file to take!
Maybe someone would HELP!
So. We might get this app in our value pack!!
Sent from my GT-I9003 CM9
May be we can get
Actually, This is integrated with some .so files which CAN NOT be just decompiled, changed and Re-compiled!
So, You need a hardcore linux guy to reverse engineer it.
bangalorerohan said:
Actually, This is integrated with some .so files which CAN NOT be just decompiled, changed and Re-compiled!
So, You need a hardcore linux guy to reverse engineer it.
Click to expand...
Click to collapse
And that file is?
Skander1998 said:
And that file is?
Click to expand...
Click to collapse
A java file. Look in the logcat u will know
Sent from my GT-I9003 using Tapatalk 2
Try on dxkp9, logcat show android runtime error.
Not able to load few java runtime cmd.
not working for me.
I got it to work. I tried to make an update.zip but I dont think it works. Its best if you just copy over the files manually to there respective directories.
How would you put this file where it goes any instructions ?
Ayway to get this app to work on galaxy s3?
Would really appreciate it if someone could help
khrizg35 said:
Would really appreciate it if someone could help
Click to expand...
Click to collapse
Apps is /system/app with rw-r--r--, lib files(.so files) in /system/lib. Anyway just flash the value pack, it has photo editor too.
Sent from my GT-I9003 using xda app-developers app
I tried to flash it but seemed failed so I copied them to the respective folders and changed permission:
system\app
PhotoEditor.apk
system\lib
libContourJNI.so
libMI_Color_JNI.so
libMI_Effect_JNI.so
libMI_Motion_JNI.so
libMI_ObjectSel_JNI.so
libMI_Tool_JNI.so
yet still FC when trying to open a photo.....
btw, I'm using N7000 Note, it used to have this app but after upgrading to Jellybean no more exists.....:crying:
I got it by following the step(app and lib file)
but there is no drawing pen not like before!!!
this is what I want!!!
[APP] Galaxy Note Photo Editor .apk for note 10.1???
hey I cant download the apk from samsung apps: Photo editor so I need the apk please!!!
It is 30MB because I found some apk for Samung S3, S4 when I installed on my note 10.1 it shows the app working in a screen like mobiles

help how to rename package directory is root/data/data

here is what im saying... when i install the app you can find root/data/data
"com.folder.name.here"
i want to change it to
"com.my.project"
already edit the apk from manifest nothing happen.. it still creating the old package name folder hope someone can help me with this!
btw its not my app i just want redevelop it but just a newbie here
gaaramadarax said:
here is what im saying... when i install the app you can find root/data/data
"com.folder.name.here"
i want to change it to
"com.my.project"
already edit the apk from manifest nothing happen.. it still creating the old package name folder hope someone can help me with this!
btw its not my app i just want redevelop it but just a newbie here
Click to expand...
Click to collapse
please help

To make duplicate apk file using apktool for phone

I want to make a duplicate apk by using apktool 4.6 for phone.
example wechat.apk to wechat01.apk
And to install both on same device..
PLEASE PROVIDE TUTORIAL FOR DOING IT...
THANKS
I think u can't do it easily just with apktool, you might need modify content in smali files, which is too complicated for me to make it...
Sorry for my bad English...
Sent from my HTC Desire 200 using XDA Premium 4 Mobile app
Nit Patel said:
I want to make a duplicate apk by using apktool 4.6 for phone.
example wechat.apk to wechat01.apk
And to install both on same device..
PLEASE PROVIDE TUTORIAL FOR DOING IT...
THANKS
Click to expand...
Click to collapse
You need to change the appId in (AndroidManifest.xml) but the consequence of that is that the MainActivity class also needs to be adjusted to match that new id which is not going to be easy unless you have the source code available.

Apk Tool App for Android

I was recently looking for system ui smali mods and I came across this apk tool app and I thought I would share it, I think it works good so far but your working with a smaller screen other wise its really nice
Download: ApkTool v4.7.apk
Update fix for Lollipop Roms :ApkToolUpdate.zip
Instructions :
After you install the apk be sure to go to your Framework apks and hit import framework before you do anything
Also Copy system apks to SD card or you with get decompile errors
If you have problems with decompiling system apps on Lollipop flash update zip that has updated jars
You shouldn't have any problems with kit kat though I believe so no need to flash update.zip
Flash via FlashFire
And Finally Enjoy
davidhacks said:
I was recently looking for system ui smali mods and I came across this apk tool app and I thought I would share it, I think it works good so far but your working with a smaller screen other wise its really nice
Download: ApkTool v4.7.apk
Click to expand...
Click to collapse
I'm not familiar with decompiling apks but for the xml files wich program do you use?
Sent from my SM-G900V using XDA Free mobile app
killa408shark said:
I'm not familiar with decompiling apks but for the xml files wich program do you use?
Sent from my SM-G900V using XDA Free mobile app
Click to expand...
Click to collapse
I would normally use the computer Verison of apk tool and then use note pad ++ for looking at the xml files
killa408shark said:
I'm not familiar with decompiling apks but for the xml files wich program do you use?
Sent from my SM-G900V using XDA Free mobile app
Click to expand...
Click to collapse
At some point I will decompile the app and update the baksmali and so on to the lollipop Verison
PHP:
killa408shark said:
I'm not familiar with decompiling apks but for the xml files wich program do you use?
Sent from my SM-G900V using XDA Free mobile app
Click to expand...
Click to collapse
Try Axel on the playstore. You can view and edit.
Documentation on this app is hard to find
Documentation on this app is hard to find, did you write this? From what I can gather it turns your active rom into a rom package for redistribution? I'm assuming that's what they mean by create rom? Who wrote this gem? Amazing app

Need help decompile APK file for reverse engineering

Hello everyone,
I want to decompile this file for reverse engineering. I tried using apktool. However, it was impossible. If I try to decompile it... following error occurs. It is used for the Android Head Unit. Is there anything I am missing?
FILE : Launcher.apk
I: Using Apktool 2.4.1 on Launcher.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: java.util.zip.ZipException: invalid CEN header (encrypted entry)
at brut.androlib.ApkDecoder.hasResources(ApkDecoder.java:315)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:103)
at brut.apktool.Main.cmdDecode(Main.java:170)
at brut.apktool.Main.main(Main.java:76)
Caused by: brut.directory.DirectoryException: java.util.zip.ZipException: invalid CEN header (encrypted entry)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:55)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:38)
at brut.directory.ExtFile.getDirectory(ExtFile.java:52)
at brut.androlib.ApkDecoder.hasResources(ApkDecoder.java:313)
... 3 more
Caused by: java.util.zip.ZipException: invalid CEN header (encrypted entry)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:53)
... 6 more
Click to expand...
Click to collapse
Best regards,
KIM
gloriashield said:
Hello everyone,
I want to decompile this file for reverse engineering. I tried using apktool. However, it was impossible. If I try to decompile it... following error occurs. It is used for the Android Head Unit. Is there anything I am missing?
FILE : Launcher.apk
Best regards,
KIM
Click to expand...
Click to collapse
Hi,
I'll try to decompile it on my side, did you find any framework-res.apk apk or an equivalent you can install on apktool ? (That's my first time with android auto so idk how the system works)
gloriashield said:
Hello everyone,
I want to decompile this file for reverse engineering. I tried using apktool. However, it was impossible. If I try to decompile it... following error occurs. It is used for the Android Head Unit. Is there anything I am missing?
FILE : Launcher.apk
Best regards,
KIM
Click to expand...
Click to collapse
As far as I know, Apktool hasn't been updated in a while. You might need to find a different tool or method.
Sent from my SM-S767VL using Tapatalk
gloriashield said:
Hello everyone,
I want to decompile this file for reverse engineering. I tried using apktool. However, it was impossible. If I try to decompile it... following error occurs. It is used for the Android Head Unit. Is there anything I am missing?
...
KIM
Click to expand...
Click to collapse
Droidriven said:
As far as I know, Apktool hasn't been updated in s while. You might need to find a different tool or model.
Click to expand...
Click to collapse
Yup, I can confirm. I tried to decompile it with apktool, but same errors.
If you really need to decompile it, you can use JEB Decompiler. I've used it when apktool failed and it was successful. I used it only for the trial time, but you can install it and use your free trial to decompile this apk.
https://www.pnfsoftware.com/
Hi friends,
@Raiz, @Droidriven
My reply is late. I'm very very very sorry. COVID-19's got me out of my mind. There was a confirmed case in my company. Everything's all right now.
Hi,
I'll try to decompile it on my side, did you find any framework-res.apk apk or an equivalent you can install on apktool ? (That's my first time with android auto so idk how the system works)
Click to expand...
Click to collapse
Thank you for your interest. There's no framework-res.apk. I tried decompile in the usual way. I'm guessing this APK file needs a password for decompile. However, using the password-finding program did not produce any results.
As far as I know, Apktool hasn't been updated in a while. You might need to find a different tool or method.
Click to expand...
Click to collapse
Thank you for your good idea. Aren't most of them apktool-based programs? Do you know any programs? Please recommend something.
Yup, I can confirm. I tried to decompile it with apktool, but same errors.
If you really need to decompile it, you can use JEB Decompiler. I've used it when apktool failed and it was successful. I used it only for the trial time, but you can install it and use your free trial to decompile this apk.
Click to expand...
Click to collapse
Thank you! You're my hero. I'll go back home and test it out! I didn't know there was an alternative like this.
Thank you everyone! Have a nice day!
KIM
gloriashield said:
Hi friends,
...
Thank you! You're my hero. I'll go back home and test it out! I didn't know there was an alternative like this.
Thank you everyone! Have a nice day!
KIM
Click to expand...
Click to collapse
You're welcome, and an apk doesn't need a password to be decrypted, it need to be decompiled only. Buy if the tools aren't up to date with the lastest compiling and decompiling methods, you'll get errors like this one.
Enjoy your APK
Raiz said:
You're welcome, and an apk doesn't need a password to be decrypted, it need to be decompiled only. Buy if the tools aren't up to date with the lastest compiling and decompiling methods, you'll get errors like this one.
Enjoy your APK
Click to expand...
Click to collapse
Thank you for your advice! :good:
I tried to decompile it using the JEB decompiler. I was able to see the source code successfully and found the code I wanted to find. But I don't know how to re-compile with APK. Do you know the JEB decompiler manual? I couldn't find it. Please help me.
Best regards,
KIM
gloriashield said:
Thank you for your advice! :good:
I tried to decompile it using the JEB decompiler. I was able to see the source code successfully and found the code I wanted to find. But I don't know how to re-compile with APK. Do you know the JEB decompiler manual? I couldn't find it. Please help me.
Best regards,
KIM
Click to expand...
Click to collapse
Here you can find more info : https://www.pnfsoftware.com/jeb/manual/
(Check the hamburger menu on your left, there are multiple categories)
What I do it decompile with JEB and Recompile with apktool, but maybe they added the recompile feature. If you don't find a solution, use apktool and hopefully it'll work just fine.
Raiz said:
Here you can find more info : https://www.pnfsoftware.com/jeb/manual/
(Check the hamburger menu on your left, there are multiple categories)
What I do it decompile with JEB and Recompile with apktool, but maybe they added the recompile feature. If you don't find a solution, use apktool and hopefully it'll work just fine.
Click to expand...
Click to collapse
gloriashield said:
Thank you for your advice! :good:
I tried to decompile it using the JEB decompiler. I was able to see the source code successfully and found the code I wanted to find. But I don't know how to re-compile with APK. Do you know the JEB decompiler manual? I couldn't find it. Please help me.
Best regards,
KIM
Click to expand...
Click to collapse
You could also probably use Linux with some terminal commands to recompile the apk.
Sent from my SM-S767VL using Tapatalk
Droidriven said:
You could also probably use Linux with some terminal commands to recompile the apk.
Click to expand...
Click to collapse
Hi,
Thx for sharing that, I didn't about it and I think it will come handy sometimes for me. Do you have any links, commands,... ?
Raiz said:
Hi,
Thx for sharing that, I didn't about it and I think it will come handy sometimes for me. Do you have any links, commands,... ?
Click to expand...
Click to collapse
No, I don't know them specifically, but I'm pretty sure I've seen it discussed before. Just do a search for:
"How to decompile/recompile apk files using Linux"
I'm sure it will find something, if I'm correct.
Sent from my SM-S767VL using Tapatalk
Droidriven said:
No, I don't know them specifically, but I'm pretty sure I've seen it discussed before. Just do a search for:
"How to decompile/recompile apk files using Linux"
I'm sure it will find something, if I'm correct.
Sent from my SM-S767VL using Tapatalk
Click to expand...
Click to collapse
Thanks to friends,
I was able to see the source code when I used JEB. The problem is.. it couldn't extract all of the resources(maybe). Looks like structure is different, it is questionable whether the APK file can be recreated. (And, I was able to see the code even using classyshark. But, it is not decompiler.)
I used about 20 programs, but most of them failed.

Categories

Resources