[Tutorial] Decompile/Recompile Apk with Apk Multitool + Decompile/Recompile Jar Files - Xperia Arc Themes and Apps

" This thread will cover various useful guides starting from how to Decompile/Recompile Apk & Jar files. Me & my friend Aneel will provide new guides/tutorial day by day so that you guys can get many handy guidance in one place. Please Suggest us If you need any guide & we will try to post it If we actually can. Also If you find our guides useful then support us my giving feedback, hitting thanks & adding in credits section "
1st Let's start with [How to decompile & recompile with Apk Multitool]:
*Requirements*
Latest Java
Latest JDK+JRE (get everything from http://www.oracle.com/technetwork/java/javase/downloads/index.html)
Apk Multi Tool (Download from attachment)
Steps
1. Unzip Apk Multi Tool into a folder
2. Now run Setup.bat. It will look like this
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
3. Now choose 3. Setup Directories & press enter
4. This will create the folders needed. It will look like this
5. Now place the apk you want to decompile in place-apk-here-for-modding
6. Place a framework-res.apk, SemcGenericUxpRes.apk & SystemUI.apk in other folder. Preferebly it should be from the same package of apk/same apks of a Rom which you placed in the place-apk-here-for-modding folder. If there is no corresponding apks then you can try with other framework & systemUI apks also.
7. Now again run Setup.bat & press enter & choose 2. Installing Framework-Res. It will look like this
8. Now choose option 1 & enter to install framework & again option 4 & enter to install SystemUI
9. Now run Script.bat & press enter to activate various menu. Choose option 9 to decompile the apk. Then press enter. It will look like this
10. Once decompile is complete close the script & go to projects folder
11. Do the necessary changes you want to
12. When editing is done again run Script.bat
13. Choose option 11 to recompile & press enter. It will prompt a message after sometimes, Aside from the signatures....of errors (y/n)
14. Input y & press enter
15. Now after sometimes, it will again ask you to delete everything you have modified from keep folder & also delete resources.arsc if you have modified any xml. Minimize the script, delete the xml(s) you have modified (other than from values folder, it won't appear in keep folder) & also resources.arsc. If you have modified any png (not added) then delete it too. Then press enter when you are ready.
16. Now your new apk is ready. You can find it in place-apk-here-for-modding folder. Note that, your original apk will also be in the same folder with original name. Your modified apk will have System_ attached in the name.
17. Copy it to some other place & rename to original apk name & enjoy.
18. When you want to work on the next project then delete everything from place-apk-here-for-modding & projects folder. Now follow the same steps again from Number 5 of this guide.
[How to decompile & recompile Jar Files]:
*Requirements*
Winrar/7zip
Deodexed Jar files
smali.jar
baksmali.jar (both are in the attachment)
Command Prompt/Terminal
0. Take the classes.dex from jar file by opening it with 7zip/Winrar.
1. Open a new folder in Desktop named suppose "Jar"
2. Place smali.jar & baksmali.jar in the folder
2. Open Command Prompt. On windows type cmd in Run
3. cd to your directory where you have opened the new folder. In my case it is
Code:
C:\Documents and Settings\USER\Desktop\Jar
4. Write
Code:
cd C:\Documents and Settings\USER\Desktop\Jar
& press enter. Note that, on your case the directory will be different from mines. So get the correct directory by going into that directory from C:
5. Now type this to Decompile. Note that, there is a "space" before "classes.dex"
Code:
java -jar baksmali.jar -o classout\ classes.dex
& press enter
6. When Decompiling is done there will a folder named "classout" be placed in Jar folder. Minimize the cmd.
7. Now make the necessary changes inside the classout folder
8. When done,type this to recompile & press enter. Remember, there is a "space" before "new-classes.dex"
Code:
java -Xmx512M -jar smali.jar classout\ -o new-classes.dex
9. When recompiling is done there will be a new file in the folder named "new-classes.dex"
10. Now rename new-classes.dex to classes.dex & put it in the jar file with 7zip/Winrar
..............That's All. Thank You.................
​
Credits:
@raziel23x for Apk Multitool
@iONEx for teaching me about Apk Multitool when I was a noob
@Hero for Decomping jar files concept

Nice share... BTW, can mod MiuisystemUI.apk with this tool? I've heard Miui uses different aapt.

Aciong.Aksaya said:
Nice share... BTW, can mod MiuisystemUI.apk with this tool? I've heard Miui uses different aapt.
Click to expand...
Click to collapse
yes you can just follow this cause miui has more than one framework-res.apk & you don't need twframework in this case http://forum.xda-developers.com/showthread.php?t=2306397

saqib nazm said:
yes you can just follow this cause miui has more than one framework-res.apk & you don't need twframework in this case http://forum.xda-developers.com/showthread.php?t=2306397
Click to expand...
Click to collapse
The tool is great but I can't seem to do what should I do the centered clock for MiuisystemUI.apk I can't seem to find decent tutorial.

Aciong.Aksaya said:
The tool is great but I can't seem to do what should I do the centered clock for MiuisystemUI.apk I can't seem to find decent tutorial.
Click to expand...
Click to collapse
here is the guide http://en.miui.com/thread-4353-1-1.html

Hell there is an error in your compiling code of your smali/jar
it should be "-o new-classes.dex"

Razor! said:
Hell there is an error in your compiling code of your smali/jar
it should be "-o new-classes.dex"
Click to expand...
Click to collapse
Right! Thanks Razor,now it's correct :good:

saqib nazm said:
Right! Thanks Razor,now it's correct :good:
Click to expand...
Click to collapse
Welcome
Press thanks if you like my work/advice

@saqib nazm, it would be good if you add tut on how to recompile apks after making changes in androidmanifest.xml.. Because I have observed it gives bootloops.. As signing of apps just puts meta inf and doesn't do anything to androidmanifest.. Just a suggestion..
Sent from my MT11i using xda premium

sandy7 said:
here is the guide http://en.miui.com/thread-4353-1-1.html
Click to expand...
Click to collapse
Ive been into that place if you knew david guetta face in the thread thats me. Thanks for your kindness to redirect me. The OP is not just very much accommodating geez...

Aciong.Aksaya said:
Ive been into that place if you knew david guetta face in the thread thats me. Thanks for your kindness to redirect me. The OP is not just very much accommodating geez...
Click to expand...
Click to collapse
I suggested you to install the proper framework files to decompile miui stuffs properly, though this thread is for compiling & decompiling with apk multi tool,not how to center clock on miui I beg your pardon? & I didn't say anything else because sandy already directed you to a guide, that's probably I would also gonna do If I were in the 1st place like sandy replied. You cannot say words which can hurt other people. Cause If I would know how to "Center clock on miui" I would open a thread with that guide,isn't it?

First of all,Thank you for work but I have a lot of problems.Can you help me about thats? I did everything step by step.No problems with 1 to 6 steps.I placed the apk place-apk-here-for-modding and I placed a framework-res.apk, SemcGenericUxpRes.apk & SystemUI.apk in other folder.
After that,in step 7&8,when I choose option 1 & enter to install framework & again option 4 & enter to install SystemUI,I get this screens
So,in step 9,Run Script.bat & press enter to activate various menü choose option 9 to decompile the apk. Then press enter,I get errors like this
And so,projects folder is empty.What is the problem and what can I do?

Mazellat said:
First of all,Thank you for work but I have a lot of problems.Can you help me about thats? I did everything step by step.No problems with 1 to 6 steps.I placed the apk place-apk-here-for-modding and I placed a framework-res.apk, SemcGenericUxpRes.apk & SystemUI.apk in other folder.
Click to expand...
Click to collapse
that could be a problem with that apk, you cannot decompile it. If you have done all the steps properly as you said can you try with any other apk? so to be sure if that's the problem with that apk

Aciong.Aksaya said:
Ive been into that place if you knew david guetta face in the thread thats me. Thanks for your kindness to redirect me. The OP is not just very much accommodating geez...
Click to expand...
Click to collapse
saqib nazm said:
I suggested you to install the proper framework files to decompile miui stuffs properly, though this thread is for compiling & decompiling with apk multi tool,not how to center clock on miui I beg your pardon? & I didn't say anything else because sandy already directed you to a guide, that's probably I would also gonna do If I were in the 1st place like sandy replied. You cannot say words which can hurt other people. Cause If I would know how to "Center clock on miui" I would open a thread with that guide,isn't it?
Click to expand...
Click to collapse
Hi Saqib Nazm, Yes it it but this is a full misunderstanding. The OP I am referring to is the OP on the link that Sandy gave.
Mea Culpa...

Aciong.Aksaya said:
Hi Saqib Nazm, Yes it it but this is a full misunderstanding. The OP I am referring to is the OP on the link that Sandy gave.
Mea Culpa...
Click to expand...
Click to collapse
Oh ok I am extremely sorry then. Have a nice day

Hi saqib i want to ask again. If I make own fragment in settings_header.xml. How?
Sent from my LT25i using xda premium

danisariandi said:
Hi saqib i want to ask again. If I make own fragment in settings_header.xml. How?
Sent from my LT25i using xda premium
Click to expand...
Click to collapse
bro I have told you how to do it that day in the original thread, which part you didn't understand? You asked about smali files, you don't need any smali files man.

Kjkkkkkkkkk

poria1999 said:
Hi all members
I have some problem in recompiling apk files...
When i compile apk and delete resources.arsc+xmls that i have modified them,anything didnt change in apk ...
i am working on framework-res.apk ...
please helpe me...
Click to expand...
Click to collapse
what were you trying to change? & what you did?

Yyyyyyyyyyyyyyyyyyyyyy

Related

[Tutorial] Decompile and recompile APK's using ApKManager

IMPORTANT - APK decompilation is needed only when you are going to edit some xml's or other stuff. If you want edit or replace png's, you need to extract the apk instead of decompiling it.
If you want to extract an apk for theming, read this tutorial - http://forum.xda-developers.com/showthread.php?t=1665674
1) Download apkmanager ( http://www.apkmultitool.com/?q=node/5 ) and install it.
2) Put the apk you want to decompile in 'place-apk-here-for-modding' folder.
3) Double click on 'script'
4) Ignore the 'adb not found' command and press enter
5) Type 22 i.e. 'set current project' and press enter.
6) Type 1 and press enter
7) Type 9 and press enter to decompile apk.
8) Wait until the decompilation finishes.
9) Minimize command line and go to projects -> filename.apk -> make the required changes
10) Switch back to command-line, type 11 and press enter.
11) After sometime you'll get a message 'is this a system apk?', type y and press enter.
12) You'll get another message 'aside from......... of errors', type y and press enter.
13) Wait until you get this message - 'In the apk manager.... this script' , dont do anything, minimize command-line, go to keep folder and delete resources.arsc
14) Switch back to command-line and press enter.
15) Wait until the command-line comes back to its initial look.
16) Go to 'place-apk-here-for-modding' folder, your new file will be unsignedfilename.apk
Read step 17 if you have modded framework-res.apk, otherwise skip it.
17) Open framework-res.apk and unsignedframework-res.apk using 7-zip or winrar or any other archive manager. Drag and drop resources.arsc from unsignedframework-res.apk into framework-res.apk (do not extract them, just open them using any archive manager and do the drag-drop stuff)
18) Copy the file to SD card, rename it and remove 'unsigned' from file's name.
19) Push the file to original folder using root explorer and set proper permissions.
EG - If you modded framework-res.apk, push your old file ( first move resources.arsc from new to old framework and then move the old framework) to /system folder. Set permissions to rw-r--r-- and then move the file to /system/framework folder.
PS - Make a nandroid backup before doing this if you modded framework.
Sent from my GT-S5830 using Tapatalk 2
Fr
I'll update this with more info when I get access to my PC
Sent from my GT-S5830 using Tapatalk 2
Huh, finally. Thanks a lot dev. This is much better than all those crap tutorials I found when I searched on Google. If you copied from someone, please give credits
Sent from my GT-S5830 using xda premium
Rishris said:
lIf you copied from someone, please give credits
Click to expand...
Click to collapse
No, I did not copy. I wrote on my own :beer:
Sent from my GT-S5830 using Tapatalk 2
Why no one uses apktool and 7-zip
Sent from my GT-i9070 using xda premium
tj_droid said:
....19) Push the file to original folder using root explorer and set proper permissions.
EG - If you modded framework-res.apk, push your new file to /system folder. Set permissions to rw-r--r-- and then move the file to /system/framework folder.
Click to expand...
Click to collapse
This part is very important. Push directly to /system/framework folder may will be end with bootloop, FC...
(from my exprience)
btw good tutorial.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
i did it like 10 times! dont have resource.arsc after compiling
here is the log http://dl.dropbox.com/u/54790911/New%20Text%20Document%20%282%29.txt
When i decompile framework-res from Miracle v4, i get a lot of errors with png, how do i fix this?
R4Ck said:
When i decompile framework-res from Miracle v4, i get a lot of errors with png, who do i fix this?
Click to expand...
Click to collapse
He might use bad pngs like .9.pngs that arent .9.png build
Sent from my GT-i9070 using xda premium
CoolCatGetHome said:
He might use bad pngs like .9.pngs that arent .9.png build
Sent from my GT-i9070 using xda premium
Click to expand...
Click to collapse
Yeah, in the log shows some message with .9 png, but i can extract them with winrar, the problem is when i compile
R4Ck said:
Yeah, in the log shows some message with .9 png, but i can extract them with winrar, the problem is when i compile
Click to expand...
Click to collapse
You should follow the tutorial by music.soul on patching .9.png s. U cant just edit them like normal pngs.
And, sorry , thanked u by mistake.ENJOY
Sent from my GT-S5830 using Tapatalk 2 Beta-5
Apk tool is better.100%.
Apk manager doesn't compile right.
paravoz.98 said:
Apk tool is better.100%.
Apk manager doesn't compile right.
Click to expand...
Click to collapse
+1
when you edit .9.png (I'm using Photoshop CS5)
after flatten image & save for existing image, it not save with .9.png.
for example:
filename.9.png it will be save to filename.png.
you must manually put .9.png
paravoz.98 said:
Apk tool is better.100%.
Apk manager doesn't compile right.
Click to expand...
Click to collapse
I know its better. Even I use apktool. But many people think apktool is confusing and they cant understand how to go about this decompiling and compiling stuff. That's why I wrote this guide so that people who cant understand apktool can try APKmanager
I am thinking of writing an apktool guide also
Sent from my GT-S5830 using Tapatalk 2
tj_droid said:
I know its better. Even I use apktool. But many people think apktool is confusing and they cant understand how to go about this decompiling and compiling stuff. That's why I wrote this guide so that people who cant understand apktool can try APKmanager
I am thinking of writing an apktool guide also
Sent from my GT-S5830 using Tapatalk 2
Click to expand...
Click to collapse
I prefered apktool. Both tools are better it defend on how we using it.
Both are can't functions properly if our give wrong commands, wrong prefix...etc
thanks tj_droid now i don't need to request anyone to edit apk's for me thanks a tonne
vaibhavx said:
thanks tj_droid now i don't need to request anyone to edit apk's for me thanks a tonne
Click to expand...
Click to collapse
My pleasure
Sent from my GT-S5830 using Tapatalk 2
i also use apk manager only recently i edited mms app and did many modifications in that like transparent background, new notification logo
but this gave me fc also while editing keyboard AxT9IME ( i was changing background ) thats why i asked CoolCatGetHome for help, dont know what he used but then it worked fine.
i think he used apktool
while Decompiling AxT9IME.apk i got this error hope CoolCatGetHome or someone can help on this.
here is the log file also Download
mor_1228 said:
i also use apk manager only recently i edited mms app and did many modifications in that like transparent background, new notification logo
but this gave me fc also while editing keyboard AxT9IME ( i was changing background ) thats why i asked CoolCatGetHome for help, dont know what he used but then it worked fine.
i think he used apktool
while Decompiling AxT9IME.apk i got this error hope CoolCatGetHome or someone can help on this.
here is the log file also Download
Click to expand...
Click to collapse
Actually apkmanager is outdated now. I read somewhere that the dev has fixed bugs and added new features and renamed it to APK Multi-tool
Sent from my GT-S5830 using Tapatalk 2
tj_droid said:
Actually apkmanager is outdated now. I read somewhere that the dev has fixed bugs and added new features and renamed it to APK Multi-tool
Sent from my GT-S5830 using Tapatalk 2
Click to expand...
Click to collapse
u have links for that ? if yes then can u post tutorial.
i need to learn how to edit xml files androidmanifest.xml because i want to change the name of a app. can u do that for me ?
like app name is abc but i want xyz. this the name which we see in app drawer or manage applications.

[GUIDE][GB] How to use UxpNxtLockscreen.apk on GB ? - with lockscreen music control

Hey guys, finally I started successfully using Xperia Sola apks on my Xperia arc stock 42 rooted phone..
Tested on Xperia arc(Sola apks), LWW(Sola,Go apks both) and must work on other devices too.
UPDATED GUIDE:
Note: When u did all steps if you still dont have a working lockscreen just try going for Xperia Go apks and android.policy.jar of Xperia Go!
I dont share a flashable zip file because I use Xperia arc, you use Neo, LWW etc.. This is a guide for you to make yourselves.
- First download the FILES.rar which includes all necessarily files,on the link.
http://www.mediafire.com/?obrb493z1x4ayza
- On the phone, go to system/framework and copy android.policy.jar to your desktop.
In pack, I added baksmali-smali folder/files for you to edit your classes.dex file of android.policy.jar
1- Open your android.policy.jar file with 7zip (right click-7zip-open archive) and then drag&drop classes.dex file to BAKSMALI-SMALI folder.
2- Run CMD in that folder and write this code and enter >> java -jar baksmali-1.3.3.jar -o classout/ classes.dex
Classout folder must be generated. Go to BAKSMALI-SMALI\classout\com\android\internal\policy\impl
3- Copy ExternalLockScreen.smali and LockPatternKeyguardView.smali files which are in MY FILES.RAR pack , inside ../impl folder. (LockPatternKeyguardView will overwrite)
4- Delete classes.dex file in BAKSMALI-SMALI folder and run CMD again and write this code and enter again>> java -jar smali-1.3.3.jar classout -o classes.dex
5- Now your new classes.dex file is ready. just open archive your android.policy.jar file with 7zip again and drag&drop new classes.dex in it..
-Second you will find Xperia_Sola_app_files folder in FILES.RAR pack. It includes Xperia Sola Settngs.apk and UxpNxtLockScreen.apk files.
Normally just copy these files to system if you use root explorer, set permissions & move system/app folder and android.policy.jar to framework folder. reboot and All done! Alternative way is Android Commander PC programme.
>> But I dont suggest you to use Settings.apk of Xperia Sola. It has bug on brightness. best way is decompiling your own Settings.apk with apk manager/tool (best working Wanam's apk manager ICS on GB) and adding lines from Xperia Sola Settings.apk display settings to your own apk. Sorry I don't have much time to explain editing XML on apk manager /compiling/ decompiling it..
If all is ok here is the picture ;
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
If it doesn't work; u must edit your framework-res.apk (/system/framework/framework-res.apk)
These are quoted from Sudanminipro's topic which is here >> http://forum.xda-developers.com/showthread.php?t=1837501
a)DECOMPILE your framework-res.apk
b)Add this line to the AndroidManifest.xml >> <permission android:label="@string/permlab_external_lockscreen" android:name="com.sonyericsson.permission.EXTERNAL_LOCKSCREEN" androidrotectionLevel="signatureOrSystem" android:description="@string/permdesc_external_lockscreen" />
c)Add these lines to the end of the strings.xml (/res/values/strings.xml) >>
<string name="permlab_external_lockscreen">You May Write Anything Here</string>
<string name="permdesc_external_lockscreen"> You May Write Anything Here </string>
d)Add these to the end of string names in public.xml (/res/values/public.xml) >> <public type="string" name="permlab_external_lockscreen" id="0xXXXXXXXX" />
<public type="string" name="permdesc_external_lockscreen" id="0xXXXXXXXX" />
the important thing is XXXXXXXX hex codes should be written in a way as a continuation of the codes that was above..
0x0104051b,0x0104051c for example..
e)RECOMPILE. Thats it.
Click to expand...
Click to collapse
Bugs:
- Settings.apk Lockscreen menu allows you to change your lockscreen wallpaper but it has low quality.
Bugfix: go into Settings.apk display settings and Lockscreen control, select a new wallpaper, then on computer find a wallpaper which u want to use and set pixels and save it as named wallpaper.PNG . On the phone go into data/data/com/sonyericsson.uxplockscreen folder and copy wallpaper.png inside it.. finally just try a few time screenoff&on.. Must be ok.
- Facebook notifications don't work!
- Don't work on landscape mode!
- You tell me more..
I'm not a developer, just modding my Xperia arc.. If any developers can help for these bugs, that will be great..
Cheers! If this is helpful for you please use thanks button.
Special thanx to Orochixxx for .smali file names and Sola system folder..
then all must be ok. Thanks & Regards AeonWorld for his tutorial and Sudanminipro for their work..
Good job :good:
one question , will it work on cm9 ??
Sent from my Arc S using Tapatalk 2
XnightX said:
one question , will it work on cm9 ??
Sent from my Arc S using Tapatalk 2
Click to expand...
Click to collapse
No mate, is CM9 a GB rom??
Nope
Sent from my Xperia Neo V with Supercharged ICS 4.0.4
can you make please a flashable zip arhive ?
Did all the steps, but Lockscreen didn't change! It's same as before. Using Zohaib's Xperia S GB ROM.
soumya_digi said:
Did all the steps, but Lockscreen didn't change! It's same as before. Using Zohaib's Xperia S GB ROM.
Click to expand...
Click to collapse
Same here Using stock .62 fw.
soumya_digi said:
Did all the steps, but Lockscreen didn't change! It's same as before. Using Zohaib's Xperia S GB ROM.
Click to expand...
Click to collapse
Same here. Using stock .42, Xperia Play.
i confuse on your steps , like " copy classes.dex file to folder, run CMD and enter code: java -jar baksmali-1.3.3.jar -o classout/ classes.dex
"To where I must copy classes.dex file ( what folder ) ?, And I cannot run java -jar baksmali-1.3.3.jar -o classout/ classes.dex ( it said unable to..............)
I will try this today, thought I never decompiled anything...we need a developer to make flashable .zip for this :/ ... at least I'll learn something new xD.
Using back smali and smali is a complicated method, instead of that you guys can use x10modtool here http://forum.xda-developers.com/showthread.php?t=842060 to decompile and recompile android.policy.jar
Sent from my SK17i using xda premium
No classes.dex in my android.policy.jar??? Can anyone post a screenshot of their decompiled android.policy.jar folder?
I only see bunch of .smali files in that .jar ... Edit: works with winrar, that x10modtool won't work with classes.dex, but thx anyway
EDIT: Dude... no way... where to put that externallockscreen.smali and other file... in classes.dex? in baksmali-1.3.3.jar? How? Please update the tutorial, I want this lockscreen.
And me too...
topic updated..
Can we port the ics lockscreen with shortcuts on lockscreen....?????can we do it in gb with shortcuts on lockscreen..????
If I could post my framework-res.apk here, coukd any of you decompile it, add those lines p is a p), recompile and post it back here. I'm having a problem recompiling the framework-res.apk with the x10modtool posted earlier.
Thanks
HussainQ said:
If I could post my framework-res.apk here, coukd any of you decompile it, add those lines P is a p), recompile and post it back here. I'm having a problem recompiling the framework-res.apk with the x10modtool posted earlier.
Thanks
Click to expand...
Click to collapse
Me too, if I click recompile it makes a new folder in "rec" folder but it is empty...
Erhany, please, do me a favour....
I'm giving you my classes.dex from android.policy.jar, and 2 smali files from your pack (to make it easier for you ).
Why?
Because classout folder doesn't show up after the first command and I can't edit classes.dex ... I guess this is an easy step to you because it is working for you. So please edit it for me and reupload here, this mod is killing me :crying:
Other steps are easier, but if it comes to recompiling framework-res, I quit .
This mod never work
Maybe there is one more needed file that is missing
framework-res.apk,
android.policy.jar,
UxpNxtLockScreen.apk,
Settings.apk,
framework.jar (tryed it but nothing)
But the old lock screen is still there?
maybe we need a lib file?
XMP 2.3.4.....58
Guys Im so sorry for cant helping you. I work 12hours in a day and being so tired and dont have time for modding..
I use this files in my Xperia Arc and if u do not use any special mod, jus try loading Xperia Arc Big Pack v3.. I have it now and didnt add any lines for framework-res or etc..
Just backup your whole phone and try this arc big pack v3 mod.. After that use my files.. It will work %100..
When I have time, I will try to recompile your files..
Sorry and good moddings..

[TUTORIAL] How to Decompile and Recompile ICS .Apk Files][Easy ONE]

This is an Easy Tutorial, How to Decompile .apk and Recompile .apk Files​If u like this Tutorial, Hit THANKS Button​CREDITS
Memnoc - For Gud Ideas.
Xavierjohn22 - the amazing author of AutoApktool go Here, Hit thanks to Him Too.
Sandy7-For Motivation.
Requirements
Java (last version)
JDK (last version)
JDR (last version, usually included in JDK or Java)
Auto_Apktool 2.0.0 (DOWNLOAD THIS ONE NOT OTHERS)
HOW TO DO
NOTE: before start, select Apktool version with option 21, YOU MUST CHOOSE 1.4.1 version
1) Download and simply unpack Auto_ApkTool
2)Click on "autoapktoolmain.bat", prompt will open
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
3)put the apk you want to EDIT, in "_INPUT_APK"
4) Nw u Should Choose "option 6" for 'decompiling .apk
5) when option 6 is being selected, drag the apk from _INPUT_APK folder into the windows prompt and click enter
6) A Note window will appear, and will show IF the decompiling process has been done properly. Once you close that window, you will see the decompiled folder in _INPUT_APK folder
7) do your edits (xml, smali, or png, WHATEVER)
8) recompile with option 7 (NOTE: this time you MUST drag all the FOLDER, NOT the apk)
9) Once recompiling finished, u will Get a Dcompiled NOTE window that Shows your apk is sucessfully Compiled, Close that Window, Once open the decompiled folder, go to "dist" folder, and here you got your edited apk
10) NOW this is the Last step, since u cannot Sign System app, u will have to Copy the META-INF foldrer frm the Orginal apk to the edited apk, for more Info See the "Screen"
11) Rename the apk if Needed, and push it.
Reserved, HOW to decompile .jar file and recompile it, Soon.
Reserved 2, If i get Time, All in one Video Tutorial.
FAQ's​Why can't we use Apktool???
Well, you can, but it's more difficult, that's it.
Why do you say "must use 1.4.1 apktool version"??
The reason why is that since 1.4.2 version, apktool generate java code while recompiling process is going on, and this lead to errors that 9/10 makes decompile process fail
good job my friend.
One little suggestion to add.
if you install jdk leaving its custom destination directory you might get "java not found" error (even if there's the jdk file in system32 folder).
To solve this (on win 7) you need to:
- open start menu and type system in search bar
- Select "advanced system settings" from menu on the left
- Open the "system variables" on the bottom of the page
- Go to the PATH value and add the path to the jdk bin folder
- Create a new variable named JAVA_HOME and give it the same path as above.
Cheers.
Rudjgaard said:
One little suggestion to add.
if you install jdk leaving its custom destination directory you might get "java not found" error (even if there's the jdk file in system32 folder).
To solve this (on win 7) you need to:
- open start menu and type system in search bar
- Select "advanced system settings" from menu on the left
- Open the "system variables" on the bottom of the page
- Go to the PATH value and add the path to the jdk bin folder
- Create a new variable named JAVA_HOME and give it the same path as above.
Cheers.
Click to expand...
Click to collapse
Bro, in this Apktool u Wont have tis Problem, Jst need to install java acoording to ur system, Ex 64 or 32 bit, and also install the Java rutime environment, tool will work perfet..!
stanlin salu said:
FAQ's​Why can't we use Apktool???
Well, you can, but it's more difficult, that's it.
Why do you say "must use 1.4.1 apktool version"??
The reason why is that since 1.4.2 version, apktool generate java code while recompiling process is going on, and this lead to errors that 9/10 makes decompile process fail
Click to expand...
Click to collapse
While i have apktool 1.5 by iBotpeaches , nothing is wrong with that.Im saying that because ibotpeaches is actively developing apktool. Its faster to get updates from him. Autoapktool may still need to wait for source codes from ibotpeaches not trying to spoil your thread. Just siggesting you to add one more additional info.
And there are just simple codes. I suggest you to add them too. Its just a framework code. And two commonly used codes to decompile and recompile. And yes i do know the codes. Hard to even forget.
Personally i make batch files for commonly decompiled apk for faster decompiling.
Sent from my WT19i with Real Xperia r1
kokzhanjia said:
While i have apktool 1.5 by iBotpeaches , nothing is wrong with that.Im saying that because ibotpeaches is actively developing apktool. Its faster to get updates from him. Autoapktool may still need to wait for source codes from ibotpeaches not trying to spoil your thread. Just siggesting you to add one more additional info.
And there are just simple codes. I suggest you to add them too. Its just a framework code. And two commonly used codes to decompile and recompile. And yes i do know the codes. Hard to even forget.
Personally i make batch files for commonly decompiled apk for faster decompiling.
Sent from my WT19i with Real Xperia r1
Click to expand...
Click to collapse
If so, jst PM me the codes, I wil look to it , and wil add it .
Sent from my WT19i using xda premium
And guys, tis too, is faster, easy and userfriendly , try and report to me guys! :beer:
Sent from my WT19i using xda premium
stanlin salu said:
Bro, in this Apktool u Wont have tis Problem, Jst need to install java acoording to ur system, Ex 64 or 32 bit, and also install the Java rutime environment, tool will work perfet..!
Click to expand...
Click to collapse
I had this issue, that's why i reported it. it happens when you install sdk on a partitioned hd without putting it in the C:\ directory, it then goes in %appdata% and gives the java not found error, talking out of experience not my a$$
Rudjgaard said:
I had this issue, that's why i reported it. it happens when you install sdk on a partitioned hd without putting it in the C:\ directory, it then goes in %appdata% and gives the java not found error, talking out of experience not my a$$
Click to expand...
Click to collapse
No offence bro, any how tat was a gud tip, I wil look to it, thanks!
Sent from my WT19i using xda premium
Can you link the JAVA required and JDR req pls .......I'm not sure about which one should i dl ?
Sorry for the Noob question.
Ghostfreak NB said:
Can you link the JAVA required and JDR req pls .......I'm not sure about which one should i dl ?
Sorry for the Noob question.
Click to expand...
Click to collapse
Bro, u can download the java frm 'java.com' and jst search in google for EX: 'JRE for windows 7 - 32 or 64 bit' wich u r running jst install both these ten u r ready to go!
Sent from my WT19i using xda premium
Ty,bro... Will try tonight!
Btw you could just link it to that page in your OP
It could avoid such noob questions!
Sent from my MT11i using xda premium
Ghostfreak NB said:
Ty,bro... Will try tonight!
Btw you could just link it to that page in your OP
It could avoid such noob questions!
Sent from my MT11i using xda premium
Click to expand...
Click to collapse
Ok!
Sent from my WT19i using xda premium
stanlin salu said:
7) do your edits (xml, smali, or png, WHATEVER)
Click to expand...
Click to collapse
would you please create some tutorial for it? like deleting some message dialog?
superderon said:
would you please create some tutorial for it? like deleting some message dialog?
Click to expand...
Click to collapse
Alread there are many great tutorial how to edit xmls and stuffs to modifiy the apk, I can do a help my adding all the thread links to the OP, so u can easily get wat u want!
Sent from my WT19i using xda premium
Trying to use your tool here, but when I try to recompile - #7 - I get this:
[*] C:\auto-apk\AutoAPKTool2.0.4\_INPUT_APK\AngryBirdsSeason
recompiling C:\auto-apk\AutoAPKTool2.0.4\_INPUT_APK\AngryBirdsSeason...
I: Smaling...
I: Building resources...
I: Copying libs...
I: Building apk file...
The system cannot find the drive specified.
I followed your instructions closely, though when I ran the decompile and hit return after dragging and dropping the .apk onto the Command window, it showed the whole path to the .apk file; I hit return, and the word "test" came up. The decompile went well - the Notepad popped up and all that - but then after I edited one .png file and went to recompile, I couldn't drag the folder onto the Command window, so I had to kill the notepad and the Command window and restart, in order to select #7. That's when I got the above error.
Any ideas here? Win 8, 64-bit, BTW. Java 1.6.0.4
Thanks! My ONLY goal is to make hi-res icons for my Kindle Fire HD, 7". If you know a simpler way, I'd love to hear it!
Eric
ClarkSt said:
Trying to use your tool here, but when I try to recompile - #7 - I get this:
[*] C:\auto-apk\AutoAPKTool2.0.4\_INPUT_APK\AngryBirdsSeason
recompiling C:\auto-apk\AutoAPKTool2.0.4\_INPUT_APK\AngryBirdsSeason...
I: Smaling...
I: Building resources...
I: Copying libs...
I: Building apk file...
The system cannot find the drive specified.
I followed your instructions closely, though when I ran the decompile and hit return after dragging and dropping the .apk onto the Command window, it showed the whole path to the .apk file; I hit return, and the word "test" came up. The decompile went well - the Notepad popped up and all that - but then after I edited one .png file and went to recompile, I couldn't drag the folder onto the Command window, so I had to kill the notepad and the Command window and restart, in order to select #7. That's when I got the above error.
Any ideas here? Win 8, 64-bit, BTW. Java 1.6.0.4
Thanks! My ONLY goal is to make hi-res icons for my Kindle Fire HD, 7". If you know a simpler way, I'd love to hear it!
Eric
Click to expand...
Click to collapse
The above process, is nt an error, jst go to the 'dist' folder u wil find the recompiled apk.
Sent from my WT19i using xda premium

[TUTORIAL]Create your own MIUI ROM![BOTH BL'S]

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
So, i learnt how to make my MIUI rom out of this tutorial (all credits to sandy7), but with time the tut got old due to some bugs in miui rom, and if you use that, the rom will probably boot but with some bugs like reboots, launcher fc, etc etc. So i will make a complete guide including the tutorial by sandy with the additional files to make a fully working MIUI rom. Enjoy!
Click to expand...
Click to collapse
Code:
[SIZE="3"][FONT="System"][COLOR="Red"][I][B]*I'm not responsible for any damage you do to your device, however i will provide full support.[/B][/I][/COLOR][/FONT][/SIZE]
The basics!​
Things you'll need
Notepad++ - the notepad we will use to edit basically all files. Normal one won't work so don't even think about it
Base LT18i MIUI rom we will use this to get apps, fonts, etc
7-zip used to rebuild the rom
APKTool used to install apks in the PC so you won't get errors decompiling
ApkManager used to decompile and build apks
base MIUI rom! this is the base, i already fixed some bugs on it and deleted stuff
Click to expand...
Click to collapse
Let's get started with this!
1-Unrar the MIUI base rom i gave up in some folder you like, and open the lt18i one with winrar or 7zip.
2-Copy the folders app, fonts, framework and media from the LT18i ROM to the MIUI base. Don't worry if it doesn't ask you to replace anything. Delete SemcHdmiControlService.apk in miui base after copying
3-Open lib folders in both base and lt18i, and copy this from lt18i to base:
content-types.properties
liblbesec.so
liblocSDK_2.5OEM.so
libshell.so
libshell_jni.so
libshellservice.so
4-Open etc folders, and do the same as step 3 but with these files:
yellowpage.db
telocation.td
5-Open permissions foder in /etc, and same as step 3 with these files:
miui-framework.xml
com.google.android.media.effects.xml
com.google.widevine.software.drm.xml
com.google.android.maps.xml
6-Open xbin in both base and lt18i, and copy from lt18i to base:
shelld
Build.prop mods! Make your own!
In MIUI base, there's a folder named dev. If you don't know what that is, i'll try to give you a brief explanation: there are 4 xperia mdpis. In order to make a ROM that works on all of them with aroma, you need some files they require (like camera lib files) that are flashed right after the rom. There are 4 build.props in total, each in one dev folder, you can edit all or just the one that suits your phone, if rom is for personal use.
Open the build.prop you want, and edit the red lines with whatever you want:
Code:
ro.build.id=[COLOR="Red"]4.1.B.0.587[/COLOR]
ro.build.display.id=[COLOR="red"]MIUIAndroid 3.1.18[/COLOR]
ro.build.version.incremental=[COLOR="red"]3.1.18[/COLOR]
ro.rommanager.developerid=[COLOR="red"]miuiandroid[/COLOR]
ro.modversion=[COLOR="red"]MIUIAndroid-3.1.18-EN-WT19i[/COLOR]
ro.goo.rom=[COLOR="red"]MIUIAndroid-EN-WT19i[/COLOR]
Note: after ## Project Fluid™ ## in build.prop, you can delete everything, those are tweaks i forgot to remove, you just delete them and add the ones you like
Decompiling! Take that stupid black bar!
First of all, you need to install 3 files in order to make this work. Search for this files in /framework (MIUI base rom, not lt18i) and move them to apktool folder:
framework-res.apk
framework-miui-res.apk
SemcGenericUxpRes.apk
1-Shift-Right-click any blank space in APKTool folder, and click "Open command window here"
2-Copy and paste these 3 lines separed by enter (copy one, press enter, copy another, blabla):
apktool if framework-res.apk
apktool if framework-miui-res.apk
apktool if SemcGenericUxpRes.apk
Disabling auto-brightness and make the leds work
1-Copy framework-res.apk from miui base to apkmanager folder called place-apk-here-for-modding and open Script.bat
2-In the script, select 22, then select framework-res.apk, and then select 9 (decompile apk)
3-Once it's done, go to projects folder in apkmanager, open framework-res.apk, and go to res/values/bools.xml (right click, edit with notepad++)
4-Change this line:
Code:
<bool name="config_automatic_brightness_available">[COLOR="Red"]true[/COLOR]</bool>
to this:
Code:
<bool name="config_automatic_brightness_available">[COLOR="red"]false[/COLOR]</bool>
5-Go back to script.bat and choose option 11 (build apk)
It will ask "Is this a system app?" say yes to that
Then it'll ask "Do you wanna copy over any additional content..." say no to that
And we're done with framework-res.
Click to expand...
Click to collapse
Remove SystemUI black bar
1-Copy MiuiSystemUi.apk from miui base to apkmanager folder called place-apk-here-for-modding and open Script.bat
2-In the script, select 22, then select MiuiSystemUi.apk, and then select 9 (decompile apk)
3-Once it's done, go to projects folder in apkmanager, open MiuiSystemUi.apk, and go to res/values/drawables.xml (right click, edit with notepad++)
4-Delete this line:
Code:
<item type="drawable" name="notification_header_bg">#ff000000</item>
5-Go back to script.bat and choose option 11 (build apk)
It will ask "Is this a system app?" say yes to that
Then it'll ask "Do you wanna copy over any additional content..." say yes to that
It will pop-up a dialog, DO NOT PRESS ENTER!, go to keep folder in apkmanager and delete resources.arsc. Now, go to script.bat and press enter. Recompiling is done with no errors
And we're done with black bar
Click to expand...
Click to collapse
META-INF changing! Your ROM, not mine!
1-Go to META-INF/com/google/android and open aroma-config with notepad++
2-Edit these lines adding anything you want:
Code:
ini_set("rom_name", "[COLOR="Red"]MIUIv4[/COLOR]");
ini_set("rom_version", "[COLOR="red"]3.1.18[/COLOR]");
ini_set("rom_author", "[COLOR="red"]anerik[/COLOR]");
ini_set("rom_device", "[COLOR="red"]Xperia MDPI[/COLOR]");
ini_set("rom_date", "[COLOR="red"]18 jan 2013[/COLOR]");
3-Go to META-INF/com/google/android/aroma and open changelog.txt, write anything you want.
Now you have everything setted up, select all 4 folders and make a zip out of it with 7-zip. This will be 100% clean MIUI, in the next posts (tomorrow, sleep time now) i will add more addons like scripts, supercharger, etc! Just flash the ROM, it should boot fine, no launcher FC, no themes working bad, nothing.​
anerik said:
1-Right-click any blank space in APKTool folder, and click "Open command window here"
Click to expand...
Click to collapse
I don't know about linux but in windows it should be Shift+Right-Click...
BTW thanks for the tut....really helpful...will press the thanks button afterwards because this 8-thanks limit will not let me press it....
Regards,
AJ
alokbina said:
I don't know about linux but in windows it should be Shift+Right-Click...
BTW thanks for the tut....really helpful...will press the thanks button afterwards because this 8-thanks limit will not let me press it....
Regards,
AJ
Click to expand...
Click to collapse
lol such a noob error, my bad, thanks for pointing out
anerik said:
lol such a noob error, my bad, thanks for pointing out
Click to expand...
Click to collapse
Ur welcome buddy....
---------- Post added at 01:34 PM ---------- Previous post was at 01:03 PM ----------
So it is for all mdpi or a single device??
alokbina said:
Ur welcome buddy....
---------- Post added at 01:34 PM ---------- Previous post was at 01:03 PM ----------
So it is for all mdpi or a single device??
Click to expand...
Click to collapse
all mdpi!
:good::good::good::good::good:
sandy7 said:
:good::good::good::good::good:
Click to expand...
Click to collapse
:laugh:
Thanks in advance BRO! :good:
Really good tuturial.
kovacslaszlo13 said:
Thanks in advance BRO! :good:
Really good tuturial.
Click to expand...
Click to collapse
Thanks!!
Bugfixes!​
Bad keyboard!
-Yes, i forgot to replace keyboard. To fix:
1-Go to /system/app delete LatinImeGoogle.apk
2-Download this or any keyboard you like, and flash it or just unpack it on your ROM. Don't forget to hit thanks to the autor.
No wi-fi!
-This might just be kernel problem, but in any case, here are the modules, just unpack and copy folder lib to your system folder, replace if asked. Then flash
FC's!
-Kernel problem, i am unable to fix since i am on stock with locked bl. Just change your kernel
When i switch bluetooth on, bootloop?
-I believe kernel problem aswell, tested that a hundred times with no bootloop, stock talking.
cool thread dude.. is it possible to use a stock-rom as base for miui??
kulas1987 said:
cool thread dude.. is it possible to use a stock-rom as base for miui??
Click to expand...
Click to collapse
Yep the base he provided was of stock only just apps, fonts, framework and media folder was deleted
Best Regards,
AJ
alokbina said:
Yep the base he provided was of stock only just apps, fonts, framework and media folder was deleted
Best Regards,
AJ
Click to expand...
Click to collapse
yeh he right!
Thanks for the nice tutorial bro:good::good:
I'm using micromax A100.So far only one custom rom for it.I would like to port a miui rom for it..how do i select the appropriate version making sure that it will work on my phone?..I'm a noob.I'm sorry if i'm confusing you.:silly:
looks like not work for me,anyway thank for the tutorial
want to create latest miui rom for karbonn s5
I want to create latest version of miui rom for my karbon s5 titanium. So which version of miui can i used as a port ram.....?
and also ri8 now i m using miui v5 3.8.9, it working fine for my mobile, so can i use this rom as a base rom
Many thanks. Really helpful for me )
Sent from my ST18i using XDA Free mobile app
want to make/port a miui v5 rom for Nokia X2 dual sim...plz help
can i make a miui v5 rom for nokia x2 dual (android v4.3) using your tutorial?
plz give me some specific suggestions... there are no custom roms for this device.so, i want to make one..plz help.
this will mean a lot.
Any one ported MIUI 6 ?
how to repack MIUI rom then ?

[TUTORIAL][How-To] Edit .jar or .apk files using VTS

----------------------------------------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
----------------------------------------------------------------------------------------------------------
PREFACE
Hello guys, first of all I want to say thanks to all the real developers (and not just rom-modder like me) that are here, helping us to get better performance and features everyday, so thanks to FXP, CosmicDan, DooMLorD, wedgess, smokerman, krisdee, Spizzy, Keiran, fareneith, Pizza_Dox, Bakisha, and many, many others.​
This guide is intended for those who want to make some mods, for example touchpads fix to their rom, and it's not too hard to understand how to do it (we will just use an IDE to achieve that, so it'll be pretty simple).
Let's start!​
Click to expand...
Click to collapse
----------------------------------------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
----------------------------------------------------------------------------------------------------------
DECOMPILING .APK AND .JAR FILES
without custom framework
Make sure you have installed NetFramework 4.5,
if not download it from here and then install ;
You can now install Virtuous Ten Studio (VTS):
download it from here and follow the passages to install it ;
Run VTS (you could easily find it under Start) ;
Now you can create a new Project:
simply click on File (on the left top) and select New Project ;
Projects can be of 4 kinds: apk, jar, m10 and boot.
Select apk if you want to edit an apk; select jar if you want to edit a jar ;
Compile the fields on the bottom (Solution and Project name) ;
Wait for VTS to create the folders...;
Now you can import the file you want to edit:
simply right-click on the project you have created (you can find it under Solution Explorer bar, on the left)
and select Import File, then find and select the file you want to edit ;
Here we go! VTS will now decompile our file, and when it finishes,
Solution Explorer bar will be updated to show you what your file contains (smali files and whatever) ;
Now you can make every modification you want to do;
When you have finished, you can recompile that file by right-clicking your project and selecting Build Project:
you can easily find your modded file, just click Binary (under Home tab on the top) and select your file project name;
Here we are! If you've got some questions, just ask here!
Click to expand...
Click to collapse
​​
Click to expand...
Click to collapse
​​
​
----------------------------------------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
----------------------------------------------------------------------------------------------------------
DECOMPILING .APK FILES
with custom framework
first of all, you must know what to do: just take a look at the guide above and follow the steps (from 1 to 7) ;
now you must take the custom resources needed from the apk you want to decompile to work (that resources file is another apk, generally located under /system/framework and its name contains always something like Res or Resources - for example SemcGenericUxpRes -) then place it wherever you want ;
once you've done that you can create your project (DON'T import now the app you want to modify, because you'll get errors related to missing resources) and set-up a custom framework: just right-click on your project and go under Properties ;
find External tools on the left and click on apktool: select Add single framework, import the custom-resources apk that you took from your rom ( see first step ) and set a Tag (the name you want to assign to that file) ;
now you must select that framework to be used instead of the default one: right-click on your project and go under properties; here you can find a selector called Framework tag: select the one you've just setted ;
that's it! Now you can import your custom-framework-based apk ( if you don't know how just take a look at the guide above - step 8 ) .
​
Click to expand...
Click to collapse
​
Click to expand...
Click to collapse
----------------------------------------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
----------------------------------------------------------------------------------------------------------​
When i have the time, i really have to give this program a chance. Tnx for tutorial
Sent from my R800i using xda app-developers app
Good job, I've used vts.for awile now.its a great program.
Dark Lords Development Team
Needed to learn Apk Decompiling, now i can!,
simpler than apk tool..and easy to use in small changes..comes handy. nice post.
i have a problem with decompiling resource files can anyone help plz???
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
and this is my log
raminta said:
and this is my log
View attachment 2048601
Click to expand...
Click to collapse
It seems apktool is missing, maybe an incorrect installation? Have you tried reinstalling?
CriGiu said:
It seems apktool is missing, maybe an incorrect installation? Have you tried reinstalling?
Click to expand...
Click to collapse
Yes but nothing has changed
Sent from my R800i using xda premium
raminta said:
Yes but nothing has changed
Sent from my R800i using xda premium
Click to expand...
Click to collapse
try using an older version of VTS, but I can't promise anything
it's clearly related to missing binary, and that's strange. does this happen just with that specific apk, or with all of them?
And keep in mind that you're decompiling an apk with a custom framework, so before you can decompile it, you must add its resources by right-clicking on your project, selecting properties, going under External tools and clicking on Apktool, selecting Add single framework (here you must place your resources apk file: it's generally located under /system/framework folder of your rom - the rom from which you're taking the apk you're modifing - it's something having for name SonyResources or something like that).
Then you must set that framework to be used instead of the "stock" one by right-clicking on your project and going under properties; here you can find a selector called Framework tag: select the one you've just placed in.
CriGiu said:
try using an older version of VTS, but I can't promise anything
it's clearly related to missing binary, and that's strange. does this happen just with that specific apk, or with all of them?
And keep in mind that you're decompiling an apk with a custom framework, so before you can decompile it, you must add its resources by right-clicking on your project, selecting properties, going under External tools and clicking on Apktool, selecting Add single framework (here you must place your resources apk file: it's generally located under /system/framework folder of your rom - the rom from which you're taking the apk you're modifing - it's something having for name SonyResources or something like that).
Then you must set that framework to be used instead of the "stock" one by right-clicking on your project and going under properties; here you can find a selector called Framework tag: select the one you've just placed in.
Click to expand...
Click to collapse
Ok thanks for replying:thumbup:
Sent from my R800i using xda premium

Categories

Resources