smali help - Sony Xperia C

hello everyone
i searched a lot but couldnt find anything so postiong here
i was trying to add some featues to home.apk and i got some errors while recompiling
so i tried decompile and recompile without editing anything...i didnt even open the decompiled home apk folder LOL
but i am getting lots of smali errors only in styles.xml
i think that apktool removes some templates from styles.xml i dont know what it means i just got it from my search
so can someone help me in fixing that error....
@serajr
 @SpaceCaker
 @marcussmith2626
 @iSiddharth

Either wrong framework loaded or using wrong apktool version
And please stop abusing the mention system - I won't reply to anymore mentions

marcussmith2626 said:
Either wrong framework loaded or using wrong apktool version
And please stop abusing the mention system - I won't reply to anymore mentions
Click to expand...
Click to collapse
Ah sorry
But what do u mean by WRONG apktool version??

abhishekr700 said:
Ah sorry
But what do u mean by WRONG apktool version??
Click to expand...
Click to collapse
use
gingerbread/ics/jb 1.5.2
https://code.google.com/p/android-apktool/downloads/list
jb/kitkat/lolipop apktool rc3
https://bitbucket.org/iBotPeaches/apktool/downloads
use correct framework-res
plus any other framework eg tw-framework

Use Advanced APK Tools for decompiling the APK files and you can also use the Attached Dex Editor to edit classes.dex files.....
Advanced APK tools is specially made for Xperia devicex. (use your "framework-res.apk" to install firmware in Advanced APK Tools)
(Drag and drop classes.dex in "Quick-Baksmali.cmd" to decompile and drag and drop the output folder is "Quick-Smali.cmd" to recompile.
Advanced APK Tools : http://forum.xda-developers.com/showthread.php?t=2639400

Related

[Q] CM 6 Theming

Hope posting this here is OK- I never get answers in Q&A...
I have made & modified themes for the SE stock 'rom' and as you know the framework-res and system apks do not need to be recompiled or signed when just exchanging images.
Is it the same for CM 6 'roms'?
I am looking into theming Wolfbreak's rom and noticed the framework-res that I'm using as a base says "signed by SignApk" when I open it in winrar.
Do I need to recompile & sign or not?
Thanks in advance!
AyDee said:
Hope posting this here is OK- I never get answers in Q&A...
I have made & modified themes for the SE stock 'rom' and as you know the framework-res and system apks do not need to be recompiled or signed when just exchanging images.
Is it the same for CM 6 'roms'?
I am looking into theming Wolfbreak's rom and noticed the framework-res that I'm using as a base says "signed by SignApk" when I open it in winrar.
Do I need to recompile & sign or not?
Thanks in advance!
Click to expand...
Click to collapse
Hi,
You dont need to sign regardless of OS if you are only swapping images for system files. But remember to use optimized pngs and zipalign as final step to minimize resources consumption.
If you are modding any resources.arsc you need to decompile to do that and recompile and sing accordingly.
Ok, thanks- just making sure... the winrar message threw me off...
AyDee said:
Ok, thanks- just making sure... the winrar message threw me off...
Click to expand...
Click to collapse
try 7-zip.....hope seeing themes from u soon....

Do not enter.

Mod is down: The new thread: HERE
Moderators, feel free to delete this post.
Good Start Man, Hope someone will advise very soon.
Thanks for your effort.:good:
Only de- and recompiling will not really lead to anything.
You have to solve each error here step by step. And as you can see there are many entries missing when recompiling against a framework from a different device and/or Android version.
This means that resolving the missing entries (like simply deleting them in each file) won't help because even if the recompile succeeds it will never run because of errors in the dependencies of the apk etc..
you should specify where you've changed
Tried almost everything but i cant get it working. Also tried VRTheme ZIP but it doesnt work too, it doesn't recognize the 9.png files and show the UI stretched... This is not my work, its for Not-i, Majdinj, Zai89 and other amazing themers for this amazing device (sorry if i forgot other users). I've seen it in S2 forums (Themes and Themed roms too) with the TW2013 UI for 4.1.2 so i dont think it will be very hard to an experienced themer. Thanks for the support. Good Luck to everyone!
You are compiling a a 4.2.2-based apk file with 4.1.2 installed framework, if you see in another thread they must have same version or it is themed apk file.
Can just use X-plore open apk as zip file n copy all the themes but not xml to another apk open as zip file.
not much changes wif just a framework.res.apk n options is alittle too small to fit it..
so no point to make a mod just framework.res.apk
@galaxynote2
The pictures in the attachment aren't useful!
If you want to change the png's, then take them from the original apk out!
Don't decompile it!
So, never use 9.png's from decompiled apk!
Try it again with the 9.png's from the original apk. Just copy them from the apk to your new one. Don't decompile it.
If you try to add some 9.png (from decompiled source), then they looks ugly with the vrtheme system...
(and can't build it with apktool too...)
@tkari4 thank you for the answer! I will try again now..
galaxynote2 said:
@tkari4 thank you for the answer! I will try again now..
Click to expand...
Click to collapse
@galaxynote2
Not working, sorry never made something like that.
The solution for your problem:
Install the 4.2 framework-res.apk (command in the CMD window: apktool if c:/framework-res.apk)
Now decompile your 4.2 framework-res.apk
From the decompiled folders you can add the 9.png's to your 4.1 farmework-res.apk
Install the 4.1 framework-res.apk again
Build your apk and so must work...
tkari4 said:
@galaxynote2
Not working, sorry never made something like that.
The solution for your problem:
Install the 4.2 framework-res.apk (command in the CMD window: apktool if c:/framework-res.apk)
Now decompile your 4.2 framework-res.apk
From the decompiled folders you can add the 9.png's to your 4.1 farmework-res.apk
Install the 4.1 framework-res.apk again
Build your apk and so must work...
Click to expand...
Click to collapse
@tkari4 some progress (attached files). That is my result putting the non-decompiled images in a vr-theme:
Popups are still bugged, 9.png resizing doesnt worked.
Action bars themes (Holo Light and Holo Dark) are now working!
Almost all buttons, checks and ticks are now converted and working.
What to do:
Fix the bugged popups
Convert Text fields (wich are 9.png too so its the same as the popups problems...)
__________________________________________________________________________________________
Can you provide me an S4 framework? Im using the Touchwiz 2013 theme for 4.2.2 Galaxy S3 flasheable zip for converting. I cant find the S4 framework-res to download.
galaxynote2 said:
@tkari4
Can you provide me an S4 framework? Im using the Touchwiz 2013 theme for 4.2.2 Galaxy S3 flasheable zip for converting. I cant find the S4 framework-res to download.
Click to expand...
Click to collapse
Yeah, must have the original apk and decompile it with the 4.2 framework.
You can find it here: http://forum.xda-developers.com/showthread.php?t=2272392
tkari4 said:
Yeah, must have the original apk and decompile it with the 4.2 framework.
You can find it here: http://forum.xda-developers.com/showthread.php?t=2272392
Click to expand...
Click to collapse
@tkari4 Ok, downloaded... (Slow connection).
So, first i need to install the recently downloaded framework in apktool and then decompile my 4.1.2 Note Framework?
Nevermind! Recompiled without problems! I've modified some pngs to se if it works and worked, so now im porting the fully theme. Thank you!
galaxynote2 said:
After all S4 mods for our Note, this is the last touch to have the new Touchwiz Interface in this amazing device.
Click to expand...
Click to collapse
You are gonna be rocked,,
Waiting for download link, As I understand without TW interface out grear Note is useless.
Thanks for your effort and share.:good:
mjrifath said:
You are gonna be rocked,,
Waiting for download link, As I stand without TW interface out grear Note is useless.
Thanks for your effort and share.:good:
Click to expand...
Click to collapse
Could you don't quote the whole thread next time please? Just click the reply button thats all
Juhan Jufri said:
Could you don't quote the whole thread next time please? Just click the reply button thats all
Click to expand...
Click to collapse
Thanks for the info mate. Post edited:laugh:
When you realese this mod?
____________
YES WE SCAN!!!
This thread has to be closed since no updates from OP or there is no any valid MOD
mjrifath said:
This thread has to be closed since no updates from OP or there is no any valid MOD
Click to expand...
Click to collapse
for people who can't wait , you can try flashing this one
http://forum.xda-developers.com/showthread.php?t=2297906
el5arsawi said:
for people who can't wait , you can try flashing this one
http://forum.xda-developers.com/showthread.php?t=2297906
Click to expand...
Click to collapse
Thats for 4.2.2
Please op just provide the s4 style launcher
Sent from my GT-I9100 using xda app-developers app

[Guide] How To Deodex Jar Files Without Deodexing Rom

Note:- Select aapt version same as your android version
like for jb 4.1.2 aapt = 4.1
for jb 4.2 aapt = 4.2
Requirements:-
Apktool 1.5.2 (mobile apktool)
Busybox installed
framework.jar
framework.odex
Patience.apk
Brain.jar
Procedure:-
1) Create A folder named Deodex in your sdcard.
2) Copy framework.jar and framework.odex to it.
3) Now using apktool decompile framework.odex
4) When it gets decompiled recompile it again.
5) When it gets recompiled , it will either form framework.dex or classes.dex ,,,, click on it and select add to the jar of same name.
6) Now your jar file is completely deodexed.
I have taken the example of framework.jar but you can do it with other jars also with same procedure.
Dont forget to hit thanks
Credits:- Apktool Developer and Apps Developer
eboybasit said:
Note:- Select aapt version same as your androidversion
like for jb 4.1.2 aapt = 4.1
for jb 4.2 aapt = 4.2
Requirements:-
Apktool 1.5.2 (mobile apktool)
SystemUI.apk
SystemUI.odex
Patience.apk
Brain.jar
Procedure:-
1) Create A folder named Deodex in your sdcard.
2) Copy SystemUI.apk and SystemUI.odex to it.
3) Now using apktool decompile SystemUI.odex
4) When it gets decompiled recompile it again.
5) When it gets recompiled , it will either form SystemUI.dex or classes.dex ,,,, click on it and select add to the apk of same name.
6) Now your apk is completely deodexed.
I have taken the example of systemui.apk but you can do it with other apks also with same procedure.
Dont forget to hit thanks
Credits:- Apktool Developer and Apps Developer
Click to expand...
Click to collapse
http://forum.xda-developers.com/android/development/guide-how-to-deodex-app-pcfully-t2979042
For your information I already posted this guide here..... That also around 5 months ago
sdeepb said:
http://forum.xda-developers.com/android/development/guide-how-to-deodex-app-pcfully-t2979042
For your information I already posted this guide here..... That also around 5 months ago
Click to expand...
Click to collapse
oh sorry i didn't it saw
sdeepb said:
http://forum.xda-developers.com/android/development/guide-how-to-deodex-app-pcfully-t2979042
For your information I already posted this guide here..... That also around 5 months ago
Click to expand...
Click to collapse
I changed my guide now its for jar files
eboybasit said:
oh sorry i didn't it saw
Click to expand...
Click to collapse
It's okay..... So what you'll do now
sdeepb said:
It's okay..... So what you'll do now
Click to expand...
Click to collapse
My thread applicable to jar files now ,,,, so no issues with your thread
Okay....
sdeepb said:
Okay....
Click to expand...
Click to collapse
Okay
Thread closed.
We already have an apk tool thread
http://forum.xda-developers.com/android/development/guide-how-to-deodex-app-pcfully-t2979042

[Q]HOW TO EDIT .xml Files?

Hey , I want to customize my system apps but whenever i open .xml files Like AndroidManifest , layouts etc it didn't open in simple language .
So my question is can anyone tell me how to edit the .xml files...
Any help is really appreciated
Thanks
Rajaks said:
Hey , I want to customize my system apps but whenever i open .xml files Like AndroidManifest , layouts etc it didn't open in simple language .
So my question is can anyone tell me how to edit the .xml files...
Any help is really appreciated
Thanks
Click to expand...
Click to collapse
First decompile a android app with apktool,after that u can easily edit any .xml file with notepad++ without any language problem.
If u extract an app.apk with winrar,7zip...etc or any android app like esfile explorer,zarchiver....etc then u can't edit .XML file & u face language problem.
So, decompile apk with apktool & then edit .XML files.
How to decompile apk, just Google it.
Thanks:
Yes! THANKS DUDE
Sent from my Sparkle V using XDA Premium 4 mobile app

SYSTEMUI DECOMPILE(SNAPDRAGON)oreo

Can someone tell me how to decompile systemui on Oreo. I have tried many guides about fixing the 9.png and moving files from one apk to another using 7zip. can someone please help me on to how to DECOMPILE systemui. Apply mods on to it. And recompile and be able to flash it without having ANY problems?!
Cheemaa said:
Can someone tell me how to decompile systemui on Oreo. I have tried many guides about fixing the 9.png and moving files from one apk to another using 7zip. can someone please help me on to how to DECOMPILE systemui. Apply mods on to it. And recompile and be able to flash it without having ANY problems?!
Click to expand...
Click to collapse
If you still need help message me and I will give you my hangouts and will show you what to do

Categories

Resources