[Q] How to edit BrightnessPreference.smali in Settings.apk - Defy Q&A, Help & Troubleshooting

I want to edit BrightnessPreference.smali and SoundSettings.smali in Settings.apk. I extracted Settings.apk from android emulator images and it crashes every time when i select brightness settings and volume settings. i also extracted Settings.apk from cyanogenmod 10 builds, and moved smali files to my original settings.apk and it did not work. which part do i have to modify in these smali files?
Sorry For Bad English!

No replies?

Related

[help] compile framework-res.apk

Hi, i'm trying to add new language to my rom but when i recompile framework-res.apk i get boot loop.
when i recompile framework-res.apk to my HTC Desire its working good but on my Desire HD not,
please help, thanks.
BTW i'm using apk manager 4.9
1. Did you use a stock framework-res - if you compile modded framework, apktool will not compile most of the time
2. Did you replace another language folder in values or did you ADD the folder?

Editing XML's

Sorry if this is the wrong place for this post. I have spent the last 2 hours looking for an answer to this. What is the easiest and best way to edit xml files to change font color in the theme i am working on. I cannot find a method that works. I have tried a few of the big name xml editors out there and they wont even open the files. I would like to be able to open and edit them on my computer. I used 7zip to pull the individual xml's i wanna exit out and into their own folder. Now i just need a way to edit them, then use 7zip to put them back into the Framework.res apk. Thanks in advance for any help.
willjohnson said:
Sorry if this is the wrong place for this post. I have spent the last 2 hours looking for an answer to this. What is the easiest and best way to edit xml files to change font color in the theme i am working on. I cannot find a method that works. I have tried a few of the big name xml editors out there and they wont even open the files. I would like to be able to open and edit them on my computer. I used 7zip to pull the individual xml's i wanna exit out and into their own folder. Now i just need a way to edit them, then use 7zip to put them back into the Framework.res apk. Thanks in advance for any help.
Click to expand...
Click to collapse
i wondered this too as i was learning how to theme, first you have to decompile the .apk i was advised to use notepad++ on windows, use apktool located in your tools folder of sdk to decompile and then open your xmls in notepad++ then after you're done editing use the command window to use apktool build > the directory of ur decompiled .apk
Funnyface19 said:
i wondered this too as i was learning how to theme, first you have to decompile the .apk i was advised to use notepad++ on windows, use apktool located in your tools folder of sdk to decompile and then open your xmls in notepad++ then after you're done editing use the command window to use apktool build > the directory of ur decompiled .apk
Click to expand...
Click to collapse
This is the best advice. I just started using apktool myself.
willjohnson said:
Sorry if this is the wrong place for this post. I have spent the last 2 hours looking for an answer to this. What is the easiest and best way to edit xml files to change font color in the theme i am working on. I cannot find a method that works. I have tried a few of the big name xml editors out there and they wont even open the files. I would like to be able to open and edit them on my computer. I used 7zip to pull the individual xml's i wanna exit out and into their own folder. Now i just need a way to edit them, then use 7zip to put them back into the Framework.res apk. Thanks in advance for any help.
Click to expand...
Click to collapse
You can't just pull them with 7zip, you have to decompile the apk the xml files are in and then you can simply use notepad++ or any xml editor to edit them.
Use APK Manager to decompile and recompile.
Sent from my DROIDX using XDA App
willjohnson said:
Sorry if this is the wrong place for this post. I have spent the last 2 hours looking for an answer to this. What is the easiest and best way to edit xml files to change font color in the theme i am working on. I cannot find a method that works. I have tried a few of the big name xml editors out there and they wont even open the files. I would like to be able to open and edit them on my computer. I used 7zip to pull the individual xml's i wanna exit out and into their own folder. Now i just need a way to edit them, then use 7zip to put them back into the Framework.res apk. Thanks in advance for any help.
Click to expand...
Click to collapse
You can also use apkmanager. This makes editing xml's and any images a breeze...
http://forum.xda-developers.com/showthread.php?t=695701
Wow, put up a post, go to bed, wake up and all my answers are here. Thanks a lot guys for the info and quick responses. I think i can figure it out with all the info you have supplied. Thanks again
Apkmanager ended up being my favorite method. But use version 4.8, I had issues with 4.9 not compiling apk's properly.
Apkmanager lets you pull apk's, extract, compile, zipalign, sign, and push them back to your device.
I have been trying the apk manager and have not been able to get it to work. I pull the framework-res.apk from my theme with 7zip. Then put in the folder for modding in the manager folder. Then decompile. Edit in the projects folder as per instructions for apk manager. Then when i am done i recompile, sign and put into the theme again with 7zip. I get an error everytime with recompiling it, but it lets me continue to the end anyway, so i tried it out and it made my phone bootloop on install. So i had to sbf and start over. I get the same errors everytime, has to do with the .9 patch files i think. Too many errors to list in other words.
Read the log file. All the pngs with problems that have issues are listed at the beginning. Also, if there are extra pngs that are not used by the framework then remove them.
Tip. Open the log.txt clear it and save. When done and you get it to compile, don't sign it (its a system apk and does not require it. Then after it is successfully compiled. Unzip it, delete the meta folder and android.manifest file.
Copy the meta folder and android.maifest from the original apk and drop them into the newly compiled apk, and then tada...
Working framework.
FYI: The pngs with issues, just decompile the original framework and use those same pngs to correct your .9.pngs. (.9.pngs use the border for formatting, so duplicate the border in the ones you goofed up).
Sent from my DROIDX using XDA App

[Q] Possible to change the Orange Selection Colour in Stock builds

Hi Guys,
Is it possible to change the colour of the selection colour in Stock Android (I think it's already Green in Sense Roms)? But in Stock it's Orange, I want to know if there's a way to change it to Green?
I'm guessing i just need to alter a colour code in some xml file somewhere but absolutely no idea where to start looking!
Cheers
Paul
Its in the framework-res.apk in the /system/framework folder. There are png files that you need to edit.
Use APK Manager 4.9 to decompile the file, then edit with Photoshop and compile the file again.
Make a flashable CWM zip file and flash it.
Search on the board for the how-to's.
brainmaster said:
Its in the framework-res.apk in the /system/framework folder. There are png files that you need to edit.
Use APK Manager 4.9 to decompile the file, then edit with Photoshop and compile the file again.
Make a flashable CWM zip file and flash it.
Search on the board for the how-to's.
Click to expand...
Click to collapse
Cheers Brain - Exactly what i was after! I'll give this a go this evening!
Well...if you succeeded, would you mind sharing it with us? Thats one thing im searching for since using gingerbread.

[Q] Apk png change problem

I used vts for changing png of an apk (specifically that GS3 launcher made by Sam-rom)
after changing the png's i recompile it and then i install it manually with system app replacer , the install is successfull but the launcher is not installed.
I can manually install all the other versions but i have problems installing after i changed the pngs.
Decompile the apk with apk tool
Change pngs
Recompile
Sign apk
Put in flashable zip & flash with system mounted
Png must be the same file name & dimensions of the original
marcussmith2626 said:
Decompile the apk with apk tool
Change pngs
Recompile
Sign apk
Put in flashable zip & flash with system mounted
Png must be the same file name & dimensions of the original
Click to expand...
Click to collapse
I used vts for compiling/decompiling which uses apktool.
I signed the apk with mh mahadi's tool
Still the same prob
try this > decompile it then compile it back > sign it > zip it > flash it > It works without mods? Yes, then you're playing with .9.png images wrongly | No, there is a problem in apktool!

[Q] stat-bar

How to change status bar icons on stock odex?
There is no bad choises. Only bad results.
deodex the rom first
then root phone
extract systemui.apk to your pc
change apk extention to .zip
use winrar to extract zip
goto res/drawable-ldpi
change any png not ending in .9 keeping all file names the same
rezip everything
change extention back to apk (you will have to enable show file extentions in folder options in control panel)
put in flashable zip
flash in cwm with system mounted
iv explained this a few times now so search next time
also this method is only for changing png images - do not use it to edit anything else like xml files - you will need to decompile with apktool for that

Categories

Resources