I tried to change an image in systemui.apk. First I decompiled it with apkmanager,the I changed the image,I compiled and signed it.Then, with android commander I pushed systemui.apk. Now , my status bar doesn't appear. What is the problem ? Please help me.
s3bytzzu said:
I tried to change an image in systemui.apk. First I decompiled it with apkmanager,the I changed the image,I compiled and signed it.Then, with android commander I pushed systemui.apk. Now , my status bar doesn't appear. What is the problem ? Please help me.
Click to expand...
Click to collapse
Use winrar for theming. Apkmanager is nly for .xml editing or smali editing.
Sent from my GT-S5670 using xda premium
Feras.Rehman said:
Use winrar for theming. Apkmanager is nly for .xml editing or smali editing.
Sent from my GT-S5670 using xda premium
Click to expand...
Click to collapse
if we use winrar then how to go back to .zip to .apk ...
is renaming the file from .zip to .apk works out ??
ahh don't do that way! -_-
just open the apk directly using winrar..then open the folder wer you want to change the .png images..just drag and drop the images in the winrar window and the rest will be done the winrar itself..you don't even need to extract all those files and recomplie them again!
thanks ! it's working !
Ravi H Basawa said:
if we use winrar then how to go back to .zip to .apk ...
is renaming the file from .zip to .apk works out ??
Click to expand...
Click to collapse
there is no need of winrar all u need are the images photo resizing software
Related
Tried everything I can find and no luck with this with Sony framwork-res.apk doing my head in, My new resources.arsc is alwyas about 200kb smaller aswell after recompiling, furthest ive got is bootanimation then restart lol. Anyone had any luck with it? All i need to change is 1 bloody line in style.xml to change bottom popup menu to black, driving me mad lol
go3asy said:
Tried everything I can find and no luck with this with Sony framwork-res.apk doing my head in, My new resources.arsc is alwyas about 200kb smaller aswell after recompiling, furthest ive got is bootanimation then restart lol. Anyone had any luck with it? All i need to change is 1 bloody line in style.xml to change bottom popup menu to black, driving me mad lol
Click to expand...
Click to collapse
Have you followed this guide to the letter?
I changed the progressbar_horizontal.xml in my framework using this guide and it worked!
yeah , changed that worked fine but the style.xml file isnt viewable unless you decompile the apk then when you recompile the folder value with style.xml is compiled into the above file resources.arsc and not had any luck with it at all lol
Try asking Mr.Rusch or Calum?
Sent from my X10a using XDA App
go3asy said:
yeah , changed that worked fine but the style.xml file isnt viewable unless you decompile the apk then when you recompile the folder value with style.xml is compiled into the above file resources.arsc and not had any luck with it at all lol
Click to expand...
Click to collapse
Hmm style.xml is not viewable but also not any other .xml is viewable or readable if you do not decompile.
So I return to My_Immortal's initial question. Have you followed calum's guide about decomipling/recompiling the resources to the letter? What about the part where you take the .asrc file from the unsigned.apk and you chose to add it to the copmressed .zip file (which is the original signed apk that you have renamed). Have you done that exactly as you should?
_calum_ said:
This will create a new framework-res.apk in a subfolder out.
IMPORTANT: Do not push this apk to your phone unless you want to reflash
Extract the xml files and images from the newly generated apk (you can use the original images, but the xml files must be the newly compiled ones from the new apk). Add these files to the original framework-res.apk that you want to push to your phone (see the previous post).
Extract the resources.arsc from the root of the apk
Rename the original framework-res.apk from your theme to framework-res.zip
Right-click the extracted resources.arsc and choose the 7zip menu item ‘Add to archive’
In the dialog that appears set the achive field at the top to the framework-res.zip from step 7. And set the archive format to zip. Now set the Compression level to store and click OK(if you do not do this your phone will not boot). The settings are in the attached screenshot.
Rename framework-res.zip to framework-res.apk and double check that the compressed size or resources.arsc is the same as the original size (see screenshot)
Done. Push the new framework to your phone.
Click to expand...
Click to collapse
Its tge re compiling tgatsvthe problem aleays get sources not founf error in apktool. Read that it might be im not using fresh framework files tgat havent already been fiddlef eith but dont have any originnalsat the moment they all gave battery mod
Sent from my X10i using XDA App
Hey Guys I just want to be able to create my own themes for sense ui, can anyone help me out..... I think i need to change the rosie apk and do I need m10 tools?
there's a couple of files to edit. someone in the themes & apps section did a rough outline of what to do, you may want to search through there.
I think you need to edit images from framework.apk
Hi
You will need to edit the images in the framework-res.apk, systemui.apk and com.htc.resources.apk
For some of the apks like Rosie and the lockscreen you will need the m10tools. For the others you do not.
Sent from my Desire HD using XDA App
What program do I use? apk manager? I am not sure how to use it...
darryll4sh0 said:
What program do I use? apk manager? I am not sure how to use it...
Click to expand...
Click to collapse
Yes you can use APK manager. If you are editing only the images then a better idea would be to open the APK with winrar and drop the images in the respective folders. Do not extract the APK. If you want to edit the XML files then you will need to decompile it using APK manager.
APK manager is simple to use. Start the program and place the APK file in the place-apk-here-for-modding folder. In the program select option 22 and choose your APK.
Then select option 9 and decompile the APK. Once it has decompiled, you can go into the projects folder and edit whatever you want. After you have finished editing, select the compile option in the program and then zipalign the APK.
Sent from my Desire HD using XDA App
If i edit the files with winrar, do i need to zipalign it? also do i have to flash it in or just install it?
darryll4sh0 said:
If i edit the files with winrar, do i need to zipalign it? also do i have to flash it in or just install it?
Click to expand...
Click to collapse
Also how can i actually see the xml files (like pictures)
darryll4sh0 said:
If i edit the files with winrar, do i need to zipalign it? also do i have to flash it in or just install it?
Click to expand...
Click to collapse
Yes you will have to zipalign it. You will have to flash it. Installing it will not work.
darryll4sh0 said:
Also how can i actually see the xml files (like pictures)
Click to expand...
Click to collapse
XML files store data and text, they are not pictures. Anyways to see the pictures you can extract the APK using winrar, or you can decompile it using APK manager.
Sent from my Desire HD using XDA App
Thanks about the winrar tip! I think it would be easier for me to replace the pngs through there than something else. right now i'm looking through my iphone for all pngs,but the problem is that the scan has found over 90 thousand pngs! Its going to take a while to sort that out but when i'm finished I bet its going to be good.
Guide to decompile android application
REQUIREMENT
Apktool [ http://www.mediafire.com/?ooaflvs6nvo5xvq ][Thanks to brut.all for this apktool]
Java JDK/JRE 32 bit [please google it guy's]
Little knowledge on cmd
__________________________________________________ __________________________________________________ _____________________
Preparation before WORKING
Process :-
1)now install the java in your pc/lappy
then copy the apktool.zip & goto directory C:/
make a folder name apktool (u can name it by watever u like)
now goto that folder & paste the zip
extract that zip there...
2) now copy the .apk or jar file which u wnt to decompile
& paste it on apktool folder.....
also copy the framework-res.apk of that rom &
paste it on that folder..
Decompiling application
3) now open cmd
Your cmd will probly look like this..
C:\users\yourname>
so type in
cd.. (yes include the '..' and press enter after you type each command)
this will get you to back directory so now you will see
C:\users>
so type again
cd..
you should now see this:
C:\>
now type
cd apktool (and you are in the apktool directory)
4)Installing Framework
Now that you are in directory we need to install the device's framework to your system for it to compile correctly so type this:
apktool if framework-res.apk
this will install the devices framework to your system (need to do this)
5)now to decompile the apk you want to edit.. type this:
apktool d music.apk mod
music.apk is the apk your decompiling
mod is the folder you're creating for the decompiled apk
do whatever you want to do with your apk...
NOW RECOMPILING
6)now to recompile your new apk type this:
apktool b mod music-new.apk
mod is the folder with your edited files
music-new.apk is your new apk file
Now we are NOT done... we cannot use the new apk's...
now make two separate folder a & b
copy-paste the original music.apk in 'a'
& music-new.apk in 'b'
use something like 7zip, take the 'resources.arcs' file and any other xml files you edited out of the "new-edited" apk and copy them into Original apk
now add to archive ...the origanl apk in zip format
& at the end of the file name .apk ( i mean give the file format name as .apk insted of .zip)
Now you are almost done..... :good: :good:
IF it is a system app then don't sign it....otherwise u have to sign that app....
That's all
don't forget to hit thanks or comment.... :good: :good:
Quick info: It doesn't work for chineese roms
lozohcum said:
Quick info: It doesn't work for chineese roms
Click to expand...
Click to collapse
is sony roms r chinese?!
Sent from my GT-S5360 using xda app-developers app
No but you can't use it for MIUI/Lewa porting, just saying
lozohcum said:
No but you can't use it for MIUI/Lewa porting, just saying
Click to expand...
Click to collapse
hmm its for gb,ics and jb based roms.. and its very simle guide :good:
ASK
Sorry Bro.. I am trying this method to decompile and recompile *.apk in system, but it say needed "twframework-res.apk" / 2.apk .. where i can get this file..? because there is nothing twframework-res.apk file in my phone...
thanks..
Java_Indo said:
twframework-res.apk
Click to expand...
Click to collapse
It is in system/framework
But be very careful
Because it may cause your handy not to boot
Regards
Naney said:
It is in system/framework
But be very careful
Because it may cause your handy not to boot
Regards
Click to expand...
Click to collapse
sorry , twframework-res.apk cannot found in framework folder,
btw do you have twframework-res.apk for tipo?
if ya, would u like to share with me...
thanks for your explanation.
Java_Indo said:
do you have twframework-res.apk for tipo?
Click to expand...
Click to collapse
Which ROM are you using?
Naney said:
Which ROM are you using?
Click to expand...
Click to collapse
sorry .. usually iam using JB ROM Cyanogen, but for now iam using MIUI v5 . ..
Java_Indo said:
do you have twframework-res.apk for tipo?
Click to expand...
Click to collapse
Here you are...
I need to edit eri.xml and that is why I am trying to decompile framework-res.apk
I tried decompiling with apktool 1.4.2 and compiling with 1.4.3. I tried extracting androidmanifest and meta-inf from the original apk and adding them to the newly compirled apk and the mobile loops when rebooting.
Also tried with the newest apktool(1.5.2) and still have the same problem.
Has anyone successfully decompiled and rebuilt the framework-res.apk?
xiltepin said:
I need to edit eri.xml and that is why I am trying to decompile framework-res.apk
I tried decompiling with apktool 1.4.2 and compiling with 1.4.3. I tried extracting androidmanifest and meta-inf from the original apk and adding them to the newly compirled apk and the mobile loops when rebooting.
Also tried with the newest apktool(1.5.2) and still have the same problem.
Has anyone successfully decompiled and rebuilt the framework-res.apk?
Click to expand...
Click to collapse
Try decompiling and recompiling using the same version without modifying it to see if you still get the error. If you don't, make sure your modification isn't affecting other files. I don't have any issues decompiling & recompiling apks including framework-res
Sent from my XT925 using xda app-developers app
Lol zip it up sand rename to. Apk
Sent from my MB886 using xda app-developers app
saloums7 said:
Try decompiling and recompiling using the same version without modifying it to see if you still get the error. If you don't, make sure your modification isn't affecting other files. I don't have any issues decompiling & recompiling apks including framework-res
Sent from my XT925 using xda app-developers app
Click to expand...
Click to collapse
Saloums, Have you done that with your XT925? Which version of apktool have you used? I tried decompiling and recompiling with the newest version. 1.5.something. I can't remember because I am not at home but it didn't work with that version.
EcHoFiiVe what do you mean to rename it to apk? it is already an apk. Do you mean to zip the .apk and rename it again to .apk?
xiltepin said:
Saloums, Have you done that with your XT925? Which version of apktool have you used? I tried decompiling and recompiling with the newest version. 1.5.something. I can't remember because I am not at home but it didn't work with that version.
EcHoFiiVe what do you mean to rename it to apk? it is already an apk. Do you mean to zip the .apk and rename it again to .apk?
Click to expand...
Click to collapse
I think it was 1.5 or something I'm not quite sure I'll check once I get home. And yes I've done it with my XT925. This week I don't have much time for messing around with my phone but I'll give it a shot again once I have some time and tell you exactly the steps I do
Sent from my XT925 using xda app-developers app
What I did was
1- decompile
2- edit eri.xml
3- recompile
4- extract androidmanifest and meta-inf from the original apk and add them to the newly recompiled apk
5- extract all files to a new folder from the newly recompiled apk
6- with winrar create a new zip file and add all the files again choosing the option store
7- pushed the new apk to my phone and it worked.
Isn't it weird? I extracted to the apk again and decompiled it to verify the edited file and all was fine...
I am not sure if this process is the correct one which I don't think so but it worked
Porting framework
EcHoFiiVe said:
Lol zip it up and rename to. Apk
Sent from my MB886 using xda app-developers app
Click to expand...
Click to collapse
I want to port z3 framework... Zipping it and renaming will work?
Hey! I dont have res folder in ,,my systemui. Im already rooted . Alcatel903D . ive factory resetted it . but i still don't find it . help. how to find
The "res" folder contains the layouts, styles, colours, drawables, images, and XML codes for an app to function properly.
Res stands for "Resources". So obviously there has to be a res folder in your SystemUI.apk
Decompile SystemUI and you will find a Res folder. Or just open the .apk using winrar or something.
Krish (TheArc)
TheArc said:
The "res" folder contains the layouts, styles, colours, drawables, images, and XML codes for an app to function properly.
Res stands for "Resources". So obviously there has to be a res folder in your SystemUI.apk
Decompile SystemUI and you will find a Res folder. Or just open the .apk using winrar or something.
Krish (TheArc)
Click to expand...
Click to collapse
hey. i promise i cant find it. help pls.
So when you extract the file. What do you see in it?
aww
TheArc said:
So when you extract the file. What do you see in it?
Click to expand...
Click to collapse
Only metainf folder and android manifest only.
Wow, that's odd 0.0 is your ROM odexed or de-odexed?
TheArc said:
Wow, that's odd 0.0 is your ROM odexed or de-odexed?
Click to expand...
Click to collapse
Odexed. Sir