Hi,
I have a HTC incredible s with sensitive buttons not working. So I decided to install ICS on it (I have virtous quattro ) and to enable On Screen Buttons.
I tried to get the apktool working, it decompiles, but when trying to build I' ve got all kind of errors. Maybe it's something in my config that went wrong but anyway, I give up on this.
I would like someone to modify this file and rebuild it for me so I can install it on my phone.
I tried to follow these instructions
Thank you
i never got apktoolkit to work with "the latest" jar on ics files. you'll find dozens of people complain all over the net about this. the fix is simple, decompile your framework with an older version. decompile and compile apks with the latest. i have no idea why, it just worked, after spending days on this.
the problem right now is, i have no idea whom to credit for this, i found the info on a page somewhere in the net, he even included the tools. and since im not on my computer i cant give you the correct version numbers. maybe later if you haven't found it by yourself then.
---------- Post added at 05:21 PM ---------- Previous post was at 05:14 PM ----------
okay, looked it up. you need 1.4.2 (!) for decompiling the framework-res. you need 1.4.3 (!) for decompiling everything but, and compiling.
this is from memory, there could be errors. install framework, decompile it and put it back together.
apktool142 if framework-res.apk
apktool142 d framework-res.apk
apktool143 b framework-res
update,
just by searching for the version numbers right now i found somethig interesting on rootzwiki: http://rootzwiki.com/topic/16728-how-to-random-mods-for-the-do-it-yourself-er/page__st__10 this could reduce the hassle. i'll use it myself if it works.
Ok i'll try when getting back home.
Thank you
this version really works: http://dl.dropbox.com/u/405475/working-apktool.zip
i got it from the linked rw thread. it seems to fix two major issues:
- you needed 1.4.2 & 1.4.3 to compile ICS apk's - not anymore
- you needed to run apktool in the same folder in which your apk is located - put it whereever you want
it's the first time that tool doesn't give me a major headache. although i do recognize how much work it must have been to write it, i only whish it had error checking in it, stupid little things like having the jar file in the same folder cost me days to figure out because the error messages just blurb about nothing at all. whatever, now it works ... happy modding!
edit:
seems like aapt.exe still needs to be present locally in the same folder for whatever reason.
I'm trying that righ now. It builds OK. I didn't realized that it was so complicated to put the framework back in the phone
wow. incredible. I managed to get my lazy ass to understand and put all that back on the phone. Everything seems ok except when I build I have this lil warning "W: Could not find sources".
Put that on the phone via adb push and reboot, nothing ! It's like I've done nothing !
I've been able to modify framework-res.apk successfully using this set of instructions:
http://forum.xda-developers.com/showthread.php?t=1525045
It will be my try for tomorrow. Thank you !
for ics or gingerbread??
ICS. I'm on virtuous quattro
Related
Sorry if I missed the answer I'm looking for but I did search first, I tried editing a few .png files and after pushing the framework-res.apk back everything on my phone went into a force close loop, I tried pushing the original back and it did the same thing, any help?
I tried editing a PNG file the in call screen pic and pushed it to phone and same thing happened to me,no idea why
After you edit framework-res it must be signed you cannot simply flash it, first you must edit the images you choose, make sure the names stay the same, make it an apk, sign the apk, the reload in the rom by pushing it.
Cheers,
Captainkrtek
Pm if you need help
How do you go bouts signing it
I've never had to resign that one after making any changes. Just a reboot would suffice.
Edit: Maybe try using Metamorph to make your changes. That's what I did recently on that particular apk without a problem. I mistakenly thought I pulled/pushed that one, but maybe I didn't.
PPCGeek01 said:
I've never had to resign that one after making any changes. Just a reboot would suffice.
Edit: Maybe try using Metamorph to make your changes. That's what I did recently on that particular apk without a problem. I mistakenly thought I pulled/pushed that one, but maybe I didn't.
Click to expand...
Click to collapse
heres a good instruction for theming and a singningzip for your sdk tools folder... http://forum.cyanogenmod.com/topic/56-mods-blackbar-etc-50x/page__st__20__p__3320#entry3320
Im trying to teach myself here and actually reading unlike others at times, but What my GOAL: is to remove the GPS icon in my ROM when it is not active. I may be wrong so please correct me if I am...
I started with "APKtool" to decompile my "systemUI.apk" I then edited "HtcCdmaStatusBar.smali" located in "com/android/systemui/statusbar/policy"
I ran into a problem with compiling it back together with errors (after trying for hours to find my mistake) I moved on to...
"APK-Manager"
Again following instructions I decompiled "systemUI.apk" using "com.htc.resources.apk" as well since its a system file..
It seems to have worked, it said to delete whatever I modified in the "keep" folder well the ".smali" files don't appear only XML and system images but I went ahead and tried to take that "SystemUI.apk" that I recompiled with the edited files and dropped it in my phone via root manager
(well yea that didnt seem to work)
I moved on to this link http://forum.xda-developers.com/showthread.php?t=549309
I used it as a reference to edit the files I wanted to and not the the ones that were on the guide. well I had no errors and I and did everthing correctly, as i thought and the finally step I pushed the "SystemUI.apk" via adb and then rebooted
That resulted in a force close on my "status bar" i believe it said when I booted it up, after i cleared the force close my phone worked fine except the fact I had NO TASKBAR what so ever...
I am running "Showdown 1.0'
http://forum.xda-developers.com/showthread.php?t=1209777
Like always, Thanks for any help or ideas in advanced....
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to Q&A
Where did the thread go? Dont see it in Q &A forum??? Having the same problem
I was JUST having a very similar issue.. I was trying to decompile and recompile rosie but it kept giving me errors. Someone said try apkmanager 4.9 (I was using 5) and my problems went away. Also I noticed if you are using a file that has already been modified apkmanager didnt seem to like that. I had to take a stock one, make the xml changes, build it then replace whatever images I had replaced in the original
and now I cant get the ***** to build right. I'm not trying to mod it so the pull down notification bar is semi-transparent but it wont build correctly
pastebin of my apkmanager log file http://pastebin.com/uZ8JacJL
Choose to post this here, instead of the General Section... God I could only imagine the issues. If you feel it needs moving, then by all means.
De-odexed the ICS system dump. This wasn't my system dump, as I don't have a Prime yet, so hopefully everything is here, and if there's a app or two that isn't stock, well.... not my fault.
I started doing each file manually, then got to the app folder and saw over 100 .apks, and was like hells NO, so I went the automated rout. The only .odex file I couldn't get to deodex was the Dictionary.apk/odex (that's why that .odex file is still there); kept throwing a boot class path error I couldn't resolve. If someone can get that .apk deodexed that would be great; if not, I doubt it will hurt anything.
Hopefully, all is working correctly, like I said, I don't have my Prime yet, otherwise I would have tested it. But as always, make a backup of the original files.
Since we don't have a recovery to flash this yet, guess we'll have to adb push it.
If you're gonna try it out, let me know if it works or not. Haven't tested it yet, and haven't had to deodex a system in a while.
Don't forget to either delete, or rename the .odex files to .bak, still in your /system/app & /system/framework folders too.
P.S. I am not responsible if this bricks, soft bricks, or makes your device explode!! in any way. Remember you choose to install this.
http://www.mediafire.com/download.php?chlsxuvkkr3g1vu
*If you don't know what this is please leave it alone... but if feel compelled to learn: http://www.addictivetips.com/mobile/what-is-odex-and-deodex-in-android-complete-guide/
TRANSFORMER PRIME ENTHUSIAST GET YOUR THEME ON!!!
much appreciated, but without recovery, i'm too scared to try this out.
recovery
i agree i would love to start testing but until recovery is easy and safe i wont be modding my prime
Great news. I will give this a run later.
Sent from my Sensation Z710a via the XDA Premium App
Theme started ®
sent from my AL60R!THM Atrix
marko! said:
Theme started ®
sent from my AL60R!THM Atrix
Click to expand...
Click to collapse
Love to seem some themes soon
tylermaciaszek said:
Love to seem some themes soon
Click to expand...
Click to collapse
if you have any suggestions pm me or http://forum.xda-developers.com/showthread.php?t=1388541
sent from my AL60R!THM Atrix
So anyone tried this yet, if I only use 1 or 2 files from this, will it still work correctly?
Edit: no longer need the answer.
Doktaphex said:
So anyone tried this yet, if I only use 1 or 2 files from this, will it still work correctly?
Edit: no longer need the answer.
Click to expand...
Click to collapse
Where you going with this Doktaphex?
I am looking into deodexing from a tf201 blob and I was wondering if you had any tips as to the classpath includes. I have a set that works for my SGS2 but I am not sure what I need to include for the TF201. Any hints?
EDIT:
Looks like I got it down, just included the ususal ones.
Code:
:core.jar:bouncycastle.jar:ext.jar:framework.jar:android.policy.jar:services.jar:core-junit.jar:javax.obex.jar:com.google.android.maps.jar
so i can decompile these apks with no problem and then recompile them and run them on a stock rooted prime? or would i need to odex them again? i tried systemui.apk a while back and couldnt get it to decompile with apkmanager and today i was trying camera.apk and couldnt get it to decompile either.
fcortes626 said:
so i can decompile these apks with no problem and then recompile them and run them on a stock rooted prime? or would i need to odex them again? i tried systemui.apk a while back and couldnt get it to decompile with apkmanager and today i was trying camera.apk and couldnt get it to decompile either.
Click to expand...
Click to collapse
Yeah, alot of the stock apks won't decompile.... these are old anyway. If you really want to theme something, get into non-stock roms, the systemui should decompile just fine with those. Also apks like the camera, you probably won't be able to decompile or recompile successfully. Apktool / apk manager still has a lot of problems with ICS apks.
Sent from my CM7 Atrix.
http://forum.xda-developers.com/showthread.php?p=24317850#post24317850
I came across this and I thought it would be cool to do. I have been trying to work on this but but I am getting an error when trying to recompile the program. I am putting it here to see if anyone else can have success with it? It does look cool and I think it would be a great add in for some roms we have here!
1. I have decompiled the rom
2. I did the settings changes that were directed
I am a noob to all of this stuff. This is my first decompile apk project and I do not know what I am doing lol.
I see that there are files to download but the guide does not tell us where to place that.
3. when trying to recompile on step 7/8 I get errors that it does not there is no resources and then it fails.
My question is do you think this is possible with our phone? Does anyone want to give it a try. I actually have a Milestone x2 running 2.3.6. But I wanted to see if this worked for Droid x2 as well. Please let me know I would greatly appreciate it!
Good lord now I have something to do in my spare time! I'm gonna give this a shot and report my results. Might be a few days though, semester is ending.
I'm not entirely sure why you are getting errors when recompiling. It would be nice if I could actually mess around on your pc to figure it out but that's obviously not an option. Lol
Sent from my MB870 using xda premium
lol, I think this might be really neat! Let me know what you come up with. I am very new to this whole thing so it might be something I am doing or something that is written that I might be missing or skipping.
I didn't actually click the link you provided (to tired and lazy atm ), but I'm assuming your using either APK Manager or APK Multi-Tool (I highly recommend Multi-Tool as it's the new APK Manager and the dev keeps it up to date)
Usually if your getting an error like that while trying to compile it's due to missing or out of date APKTool files. Google "APKTool" it should be your first link.
Make sure you have these files up to date and stored correctly (Windows directory)
Also make sure APK Multi-Tool is up to date (version 1.0.2)
Hope this helps.
I've seen previously that you can modify 'more_keys_for_smiley' in LatinIME.apk to modify the predefined smilies in the keyboard ( http://forum.xda-developers.com/showthread.php?p=23362533 ).
I'm trying to do this for LatinImeGoogle.apk.
I've got it decompiled with apktool, but I can't seem to find where 'more_keys_for_smiley' is defined to change it. The only reference to it inside of that apk is in key_styles_common.xml where it has:
<key-style latin:moreKeys="!text/more_keys_for_smiley" latin:backgroundType="functional" latin:keyOutputText=" " latin:keyLabel="" latin:keyLabelFlags="hasPopupHint" latin:styleName="enterKeyStyle" />
Can anyone help me locate more_keys_for_smiley so I can modify it? Does the "!text" refer to a different package?
Thanks in advance for any help.
Ok, thanks to someone's help I was able to figure out that the string is now located in the odex file for the keyboard. I was able to deodex LatinImeGoogle.odex using baksmali and edited the file com/android/inputmethod/keyboard/internal/KeyboardTextsSet.smali. I then used smali to recreate the odex file, but pushing it to my device and rebooting causes the keyboard to not load. Do I need to do anything special with this new odex file?
I tried following tutorials ( http://forum.xda-developers.com/showthread.php?t=1208320 ) and using automatic batch scripts ( http://forum.xda-developers.com/showthread.php?p=31360029 ) for recreating the new odex file and copying the signature from the old one, but I could not get it to work. At best I got the keyboard to load and instantly crash, at worst it wouldn't even load the keyboard upon boot.
Anyone want to offer some advice or take a stab at this?
Seems like your doing exactly what i'm trying to accomplish, and had success, so i'm gonna ask a couple questions, but first some background info.
I'm using a (Verizon) Galaxy Nexus, CM10.1 Clockwork Recovery, GAPPS. (no custom Kernels, etc)
I'm a windows guy, definitely a noob to linux, i'm comfortable following the more complicated instructionals, but traveling off the beaten path is difficult for me.
I was able to use apktool tool to decompile Latinime.apk, and i found KeyboardTextsSet.smali, and the smileys i want modified.
Is it as simple as recompiling and installing it? (remove/uninstall keyboard via TitaniumBackup first?)
You refer to a LatinImeGoogle.odex, is this only relevant to someone using an odexed rom?
I appreciate greatly any assistance you are able to provide!:good:
PrettyPistol555 said:
Seems like your doing exactly what i'm trying to accomplish, and had success, so i'm gonna ask a couple questions, but first some background info.
I'm using a (Verizon) Galaxy Nexus, CM10.1 Clockwork Recovery, GAPPS. (no custom Kernels, etc)
I'm a windows guy, definitely a noob to linux, i'm comfortable following the more complicated instructionals, but traveling off the beaten path is difficult for me.
I was able to use apktool tool to decompile Latinime.apk, and i found KeyboardTextsSet.smali, and the smileys i want modified.
Is it as simple as recompiling and installing it? (remove/uninstall keyboard via TitaniumBackup first?)
You refer to a LatinImeGoogle.odex, is this only relevant to someone using an odexed rom?
I appreciate greatly any assistance you are able to provide!:good:
Click to expand...
Click to collapse
Yes, you should be able to modify KeyboardTextsSet.smali and then recompile and install the keyboard. I never achieved any success because I'm on an odexed ROM and couldn't get reodexing to work properly.
Tried but no joy, then realized it could be because the apk was from a previous nightly (couple days) than the one currently installed. Crossing my fingers that it's the reason it didn't work.
I'll try again.
sent from my vzw Galaxy Nexus / CM10.1 (nightlies)