Editing .smali files?? - HTC EVO 3D

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

Related

editing the framework-res.apk

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

[Q] Problem with SystemUI.apk/res/layout/status_bar_expanded.xml

Sorry for all the questions lately, even though I'll probably have more.
I'm working on the SystemUI.apk from IE20 and my method of compiling consists of using the keep folder method and deleting all the files I changed with apk manager 4.9.
Now I can change the Status_bar.xml and status_bar_tracking.xml without a hitch, however if I delete status_bar_expanded.xml from the keep folder (whether I change anything in it or not) I get force closes when I get it loaded onto my phone.
There's no error in the log so I'm pretty lost...So I was wondering if there's something else I have to do that anyone knows of?
Thanks if you can help!
The only thing that should be deleted are images that you edited (if you didn't edit any images just leave the folder). But if you edited ANY xml ONLY delete the resourses.arc from the keep folder. But don't delete any individual xml's from keep. And yes the size will change because of the compression used in apk mgr.
good day.
chopper the dog said:
The only thing that should be deleted are images that you edited (if you didn't edit any images just leave the folder). But if you edited ANY xml ONLY delete the resourses.arc from the keep folder. But don't delete any individual xml's from keep. And yes the size will change because of the compression used in apk mgr.
good day.
Click to expand...
Click to collapse
Thanks for the response,
However, by not deleting the xmls I edited in the keep folder it seems it just replaces them with the stock files.
Soo...This stopped the force closes, but none of my edits took.
Maybe it's time to to switch to a linux build environment...I'm frustrated to say the least. Google'd every possible problem and nothing...
EDIT: But before I do that could someone possibly try to compile this SystemUI.apk with a color edit in the res/layout/status_bar_expanded file?
Would highly appreciate this ^^^

Modify framework-res.apk Help needed

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

[Q] Recent Apps borked

Hey guys.
I tried my hand at some modding last night and was able to de/recompile with no problems and get the mods to work, but I noticed this morning that my Recent Apps menu isn't showing anything.
The things that I edited were Rosie.apk and SystemUI.apk.
I followed some of the mods in the Dev section, and didn't do anything that other than what was told to do.
I attached a screenshot. If anyone could help that'd be great!
same problem here buy I havent done anything but flash a ROM (OMJ's) flash the hotspot hack, and mod for the battery gauge.
OK, I have traced it down to the 1x/3x mod on the systemUI file, but I don't understand why it's doing what its doing.
Do you have to include the AndroidManifest.xml file when you copy everything from apktool into the Modded apk?
I'm also including the classes.dex and resources.arsc from the build/apk.
Any advice would be greatly appreciated!
no clue but over here (http://forum.xda-developers.com/showthread.php?t=1681063) it talks about the same issue. This is also where I got the mod that I flashed. He is working on a fix from the sounds of it
From looking at it, his mods include the 1x/3x, which would leave me to believe that this mod is either not being implemented properly, or it doesn't work.
I checked the 1x/3x Mod forum, but the OP closed it down right after he posted it...

[Q] Modifying framework-res.apk

Hello,
I'm just kind of playing around and I would like to modify the "intensity" of some of the haptic feedback. I found the following post:
http://forum.xda-developers.com/showthread.php?t=1796789
I guess my question is, will this process work the same for ICS? I see the same entries mentioned and presume they will have the same affect. I'm still a doing a little research to understand creating an APK I can then flash to replace my current framework-res.apk. Thanks to any help or explanation someone can provide.
Yes its the same process and in the same location.
Full-Throttle Team
I have a question if anyone can answer this. I am using apktool, following the following link for information:
http://forum.xda-developers.com/showthread.php?t=1753659
I have installed all the additional "framework" files (blur-res.apk, moto-res.apk, SystemUI.apk, and then framework-res.apk) via apktoolif. I can decompile framework-res.apk without issues, and for fun I simply recompiled it (no changes). The odd part is the resources.arsc is noticeably smaller in the "new" one I created (and this is extracted from the archive so no compression). Is that normal, or is there something I'm missing.
I know I should just take the plunge replace /system/framework/framework-res.apk with mine and see what happens, it just seems to me that my newly compiled resources.arsc should be exactly the same size shouldn't it? Or am I missing something?
Well I went ahead and loaded my new framedwork-res.apk, and it worked fine. So I guess all my worrying was for nothing, at least so far.
Ya its normal for it to shrink.
Full-Throttle Team
Thanks
thanks for the info bro! im modifying framework-res.apk for my project using apk-multi-tool.

Categories

Resources