I know how to edit and do minor changes with .jars, with smali's.
But i have no idea where this would be or if its an xml/smali file i should be looking for in a .apk file.
Im trying to just completely delete the default voicemail notification from the status bar. Can someone point me in the right direction or be willing to edit the files for me?
Related
Hey all, I'm wondering if anyone knows how to remove the time and date from the Eclair lockscreen? I'm using this on a Sense build and since the background is transparent, the time is kind of redundant so I'm trying to get rid of it.
I've decompiled the classes.dex file in the android.policy.jar file, however I have no clue which .smali file to edit (I'm looking at LockScreen.smali right now) nor do I have any clue what I need to change in the file. If anyone knows how to do this, I'd appreciate the help!
Thanks.
Hi, I am wondering how I would go about changing the colour of the progress bar (in downloads etc)?
I am pretty sure the setting resides in an .xml file within the "framework-res.apk" but I don't know which one needs changing or how to edit these files?
Any help would be much appreciated.
jpool81 said:
Hi, I am wondering how I would go about changing the colour of the progress bar (in downloads etc)?
I am pretty sure the setting resides in an .xml file within the "framework-res.apk" but I don't know which one needs changing or how to edit these files?
Any help would be much appreciated.
Click to expand...
Click to collapse
Not sure.. but i would think it was a .png-file actually
Thanks, but all the .png files I can see are just the progress bar containers. There are no coloured images there at all.
in BeHero+ (a 2.1 rom) it's found at:
framework-res.apk\res\drawable-mdpi\statusbar_background.png
Ah, no I am referring to the "progress bar" that you see when downloading a file from the Browser, not the status/notification bar. Or what you see in the Market when downloading a file. By default it's green.
jpool81 said:
Hi, I am wondering how I would go about changing the colour of the progress bar (in downloads etc)?
I am pretty sure the setting resides in an .xml file within the "framework-res.apk" but I don't know which one needs changing or how to edit these files?
Any help would be much appreciated.
Click to expand...
Click to collapse
It's in framework-res/res/drawable/progress_horizontal.xml
Use apktool to decompile and rebuild the files.
Cool, thanks
I'm having trouble using the apktool. I am on Windows but can't get the right command lines. To be fair I've not used this tool before so would appreciate some kind of "dummy" guide.
jpool81 said:
I'm having trouble using the apktool. I am on Windows but can't get the right command lines. To be fair I've not used this tool before so would appreciate some kind of "dummy" guide.
Click to expand...
Click to collapse
Code:
apktool.bat d -s framework-res.apk out
that will extract/decompile it to the folder out. There is however some issues when you try to rebuild framework-res again. What I do is put the altered files into a framework-res from a 1.5 rom, and rebuild it. That works. Command to rebuild is:
Code:
apktool.bat b out
Thank you. Will give it a go. Much appreciated
Digging a bit into the cappy and wanting to see if I can handle editing classes.dex in the services.jar to get rid of the fully charged notification on stock KH3.
I have found this post:
http://forum.xda-developers.com/showpost.php?p=9369187&postcount=4
Wanting to know if that is the process to edit and I do not know which line I am supposed to edit out in services.jar?
Hoping someone can just let me know that the process is sound and what line to kill to eliminate the stupid fully charged notification.
I also want to learn how to add back the stay awake setting in the dev settings but one step at a time..
Thanks for reading and appreciate any tips you can give to let me know what needs to be modified in services.jar.
weav2k4 said:
Digging a bit into the cappy and wanting to see if I can handle editing classes.dex in the services.jar to get rid of the fully charged notification on stock KH3.
I have found this post:
http://forum.xda-developers.com/showpost.php?p=9369187&postcount=4
Wanting to know if that is the process to edit and I do not know which line I am supposed to edit out in services.jar?
Hoping someone can just let me know that the process is sound and what line to kill to eliminate the stupid fully charged notification.
I also want to learn how to add back the stay awake setting in the dev settings but one step at a time..
Thanks for reading and appreciate any tips you can give to let me know what needs to be modified in services.jar.
Click to expand...
Click to collapse
If you just want to remove sound try deleting these files from system/media/audio/ui -
TW_Battery_caution.ogg & TW_Low_Battery.ogg
else the code is now in SystemUI.apk. When you decompile it you can edit playTone method in smali\com\android\systemui\statusbar\policy\Status BarPolicy.smali
watsa said:
If you just want to remove sound try deleting these files from system/media/audio/ui -
TW_Battery_caution.ogg & TW_Low_Battery.ogg
else the code is now in SystemUI.apk. When you decompile it you can edit playTone method in smali\com\android\systemui\statusbar\policy\Status BarPolicy.smali
Click to expand...
Click to collapse
You are just exceptional my friend!! Thanks for the assist and will try my hand at modding stock.. wish me luck!
Best,
weav
I need help creating a theme for Go Contacts. I have all of the .png's ready to go but after I replace all of the original .png's and pack it into the .zip and then into the .apk and put it on the phone I go to instal it. But every time after trail and error it says "Application not installed". I have gone through each and every .png to see if I have made an error and I believe I haven't. Any idea to what I could be doing wrong?
Same problem here, does anyone know the answer?
EDIT:
masonspisz12, did you use apk manager?
Basically I decompile the apk, swap images, compile apk then sign it.
Other things to do before compiling:
To change the name, its in res/values/strings.xml
Version number is in AndroidManifest.xml
Till this part the theme will still install over whatever theme you based it on.
To make it it's own, you need to change the package name.
The package name can be found in AndroidManifest.xml (package="blah.blahblah.something")
But changing that is not enough.
Go into the smali folder, right to the deepest folder.
There change the package name too.
Then change the folder structure names in the smali folder.
I got the hints for package name stuffs from the following posts:
http://forum.xda-developers.com/showpost.php?p=14547534&postcount=2
http://forum.xda-developers.com/showthread.php?t=725870
Go Contacts theme .zip format
Hey Guys! I wasn't sure if I should ask but I hoped you might not mind. I really need a go contacts theme file in .zip format instead of .apk. I have searched everywhere to no avail. I saw your posts and thought maybe you may have one you're willing to share? If not I understand! Thank you! Email: [email protected]
For the life of me, I can't get the Camera.apk to decompile.
(I wan't to mod the battery percentages and maybe the shutter sound)
Still refuses when I add twframework-res.apk.
I'm using APK Multi-tools, but I'm doing something wrong.
Can someone please point me in the right direction?
Thanks in advance,
Daan
Use "7z zip" and do extract it. just select as "Open Archive" then drag and drop the file u want edit. after edit again drag n drop to same folder u Opened.
Right that took care of the "focus sound", already deleted the "click sound" in /data/media/audio/ui/
But without decompling I won't be able to edit anything else than drawables, raws and some xml's.
Thanks though.
Does anyone know how to decompile Camera.apk?
DaanJordaan said:
Right that took care of the "focus sound", already deleted the "click sound" in /data/media/audio/ui/
But without decompling I won't be able to edit anything else than drawables, raws and some xml's.
Thanks though.
Does anyone know how to decompile Camera.apk?
Click to expand...
Click to collapse
Note that using 7zip/winzip is a wrong method of decompiling an apk.You can open it with 7zip/winzip and edit photos and audio files but not any xml file.If you use this method to edit xml file,you wont be able to run the camera app.So you should only use apk-multitool to decompile apks.What does apk-multitool say when you try to decompile it?First try to decompile it without any dependencies and if it doesnt work try with dependencies.
The dependencies would most probably be services.jar,framework.jar.Dont forget to use the same frameworks from which you pulled your camera.apk Frameworks are not interchangeable in all situations