Help decompiling framework-res.apk? - Motorola Atrix 2

So, I have been using supercharged V5 for a while and am loving it. However, I have been unable to update to either update one or two without having massive moto fc's.
Eventually I found out that the app I use to change my window animations is what's causing it. Cause the fc's don't happen until I install the animations and reboot. What's weird is that the fc's don't happen on the initial release.
Sooooo, I know that animmod (the app) changes the framework-res.apk for the animations and I'm thinking that maybe if I track down what it changes, I can figure out why it does it on the updates and not the initial.
So I guess I need to decompile the apk. But I have no clue how to do that or what that apk even does.
I'm PC savvy, but Java and Linux are brand new to me. Help would be awesome! I'd love to be able to update and keep the app!
Sent from my MB865 using xda premium

I have had some luck in the past using apk edit

alldoom65 said:
I have had some luck in the past using apk edit
Click to expand...
Click to collapse
Sweet man I'll give it a whirl!
So you're recommendation led me here: http://forum.xda-developers.com/showthread.php?t=890199
And this is leading me to believe this is for editing application apk's, not necessarily system apk's?
Or have you used it for that?
Sent from my MB865 using xda premium

Fall of Enosis said:
Sweet man I'll give it a whirl!
So you're recommendation led me here: http://forum.xda-developers.com/showthread.php?t=890199
And this is leading me to believe this is for editing application apk's, not necessarily system apk's?
Or have you used it for that?
Sent from my MB865 using xda premium
Click to expand...
Click to collapse
I have edited the system apk once before with it.

I'd try 7zip...
Sent from my MB865 using XDA

So I was able to decompile both my current modded framwork-res.apk and the un-modded one straight from supercharged V5.
The differences lie in the "anim" folder. (imagine that?)
All the xml files in the folder are the same except mine (the modded ones) are bigger in size.
What on god's green earth could be changing in the updates that causes all the Moto FC's? Thoughts anyone?
I've attached both of the framework's if someone get's curious or bored. Help would be rad!

Related

Anyone modify vringo?

Hey guys.
I've been using vringo for months and now I got the itch to modify it as the ui is pretty ugly.
I already got some things modified but have some questions...
1) What controls the background color when a call is coming in? I think it's a value in ringer.xml but after I decompile, change that value, recompile, sign I get force closes when trying to open the app (installs fine).
2) anyone have modded theirs and can post a picture for inspiration?
Thanks!
Swyped from my HTC Evo 4G on the MetroPCS 1X network!
Its the eastern asian version of vlingo! (couldn't resist)
Sent from my PC36100 using XDA App
johncjenc said:
Its the eastern asian version of vlingo! (couldn't resist)
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
lol "vrrringo vrringo" haha
You guys are great!
how about some helpful answers now?
Swyped from my HTC Evo 4G on the MetroPCS 1X network!
are you using the correct xml code for the color?
Don't install the recompiled apk... recompile it then take out the changed files from the recompiled apk and drop then into an untouched apk. Then resign that one.
Hope that makes sense!
Sent from my PC36100 using XDA App
t3project said:
are you using the correct xml code for the color?
Click to expand...
Click to collapse
not sure? the original color was #ff404040 so I changed it to #ff000000 hoping for black...but then again, got the force close.
ASimmons said:
Don't install the recompiled apk... recompile it then take out the changed files from the recompiled apk and drop then into an untouched apk. Then resign that one.
Hope that makes sense!
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
it does. let me try it out and see if that works out!
ASimmons said:
Don't install the recompiled apk... recompile it then take out the changed files from the recompiled apk and drop then into an untouched apk. Then resign that one.
Hope that makes sense!
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
this method worked, in the sense that the app worked and no force closes. however, I'm guessing I edited the wrong file because the background color hasn't changed...now trial and error takes over I guess!
EDIT: worked!!! i edited two more .xmls but i'm thinking it was ringerapi.xml. now it's black and looking much better. tonight i'll fix up the graphics, but that's easy
Swyped from my HTC Evo 4G on the MetroPCS 1X network!

Can of worm's.

I did some Googling and came up with 2 conflicting answers...some dudes say they are replacing .9.png with regular .png and not having any problems...I tried doing the same and once again all sorts of witchery happened. Do I have to use drawn9 and eclipse (or whatever the hell they're called) to get it to work?
Thanks!
Sent from my PC36100 using XDA App
Abracastabya said:
Do I have to use drawn9 and eclipse (or whatever the hell they're called) to get it to work?
Thanks!
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
Short answer, yes.
Envynet said:
Short answer, yes.
Click to expand...
Click to collapse
Damn.
Thanks though
Sent from my PC36100 using XDA App
It depends on the .9 image. some of the images never stretch. I notice a lot of people have made the pull down notification background a regular png and not a .9 but if you have it like this your framework file will not be able to re compile.
rujelus22 said:
It depends on the .9 image. some of the images never stretch. I notice a lot of people have made the pull down notification background a regular png and not a .9 but if you have it like this your framework file will not be able to re compile.
Click to expand...
Click to collapse
Exactly what I'm running into...thanks for your input!
Sent from my PC36100 using XDA App

[Request] Droid in notification window

I've been trying to figure out how to add Andy the Android to the semi-transparent notification window but I just can't seem to get it right. I've seen this on some ROMs before and it adds a really nice touch. I'm unfamiliar with adb but know my way around a phone. Can anyone instruct me on how to do this? I'm using the shooter Rom from team nocturnal (nightly #2). I'll attach the framework.res apk and the png I'm trying to use.
I'd appreciate any help with this guys. Thanks!
EDIT: just got home and attached the framework-res.apk and the .png file
Sent from my PC36100 using XDA Premium App
well i figured it out. in the ROM im using the necessary changes were in systemUI.apk NOT framework-res.apk. issue solved. ill leave this thread here just in case anyone else runs into a similar problem down the road.
So how did you install? I'm running decks gb would really like this
Sent from my PC36100 using xda premium

[REQ] AOSP ICS MMS apk

Nothing pains me more than the lag in the stock ICS messaging app when you hit send. The stupid animation doesn't look fluid, and it doesn't initiate at the right time.
I've been searching all over for an AOSP messaging app that will work with our leak, and I've found one that actually installs into /system/ but whenever you open a conversation it FC's.
I found it in the Galaxy s II app forum. Anyone know what we can do to get it up and running on our ROM? I've tried this on odexed and deodexed systems by the way.
Feel free to post your experience if you try to use it!
On a side note, I also tried the app that's in the market with ads, and it FC's the same way as well.
Sirgatory said:
Nothing pains me more than the lag in the stock ICS messaging app when you hit send. The stupid animation doesn't look fluid, and it doesn't initiate at the right time.
I've been searching all over for an AOSP messaging app that will work with our leak, and I've found one that actually installs into /system/ but whenever you open a conversation it FC's.
I found it in the Galaxy s II app forum. Anyone know what we can do to get it up and running on our ROM? I've tried this on odexed and deodexed systems by the way.
Feel free to post your experience if you try to use it!
On a side note, I also tried the app that's in the market with ads, and it FC's the same way as well.
Click to expand...
Click to collapse
sorry to bust your bubbles but it won't work until its fixed from dev point of side. As far as actual sms app from cm9 then its forecloses and freezes system so thats a no go. i don't know what else to suggest.
We were able to take the cm7 mms and install it on nexus mod 4... Idk I'd like to have working one for ics but that's also along with camera and phone and contacts so i splits i should just wait till aosp rom lol
Sent from my SAMSUNG-SGH-I727 using xda premium
droid512 said:
We were able to take the cm7 mms and install it on nexus mod 4... Idk I'd like to have working one for ics but that's also along with camera and phone and contacts so i splits i should just wait till aosp rom lol
Sent from my SAMSUNG-SGH-I727 using xda premium
Click to expand...
Click to collapse
i want aokp rom too but its still broken. yeah gb was different right now we're on leaked rom so it might not be even this rom that might be released as "offical" or "stable"
I have the apk files pulled from my nexus1 of the camera, phone, contacts, and others if anyone can find a way to make them work :/ I'm too dumb for that
Sent from my SAMSUNG-SGH-I727 using xda premium
Let me see what I can do. Will update soon.
Any way I could get GB MMS/SMS app on ICS? I liked that it was black, not white, and obvious the forceclose issue (for me at least)
Would like the AOSP version but would be happy with the old GB version too.
How are people theming the stock TW mms.apk? I keep trying to decompiling, even with dependencies, and it's giving me a bad magic value error and won't decompile. Trying to compare the SR mms.apk to the AOSP one to see if I can make some edits to prevent the FC.
Fortune090 said:
How are people theming the stock TW mms.apk? I keep trying to decompiling, even with dependencies, and it's giving me a bad magic value error and won't decompile. Trying to compare the SR mms.apk to the AOSP one to see if I can make some edits to prevent the FC.
Click to expand...
Click to collapse
Same here. Can load framework but cant decompile crap. There's some stuff in the general forum about it but it seems windows users are having all the good luck.
R4INS said:
Same here. Can load framework but cant decompile crap. There's some stuff in the general forum about it but it seems windows users are having all the good luck.
Click to expand...
Click to collapse
Same. Unless I can decompile the samsung ****, I cant get the AOSP mms to work. I need its code!
hansmrtn said:
Same. Unless I can decompile the samsung ****, I cant get the AOSP mms to work. I need its code!
Click to expand...
Click to collapse
ahaha do you guys wanna know why? because samsung has changed "hex" code in their files meaning anytime when you decompile you'll get "bad magic value" lol. way around that is download apktool 2.0.0 then use 7zip manager and extract the classes.hex and then decompile with apktool not apk manager. and you're good. thank me if it helped which i know it will
Really hope that gets it working, looking forward to it!
Have been messing with it all day lol. Possibly gonna have it for you guys tonight when I get home from the kids tball game and test it out
Sent from my SGH-I777 using Tapatalk 2 Beta-4
playin4sheezy said:
Have been messing with it all day lol. Possibly gonna have it for you guys tonight when I get home from the kids tball game and test it out
Sent from my SGH-I777 using Tapatalk 2 Beta-4
Click to expand...
Click to collapse
Thanks man i know we would all appreciate it
Sent from my SAMSUNG-SGH-I727 using xda premium
playin4sheezy said:
Have been messing with it all day lol. Possibly gonna have it for you guys tonight when I get home from the kids tball game and test it out
Sent from my SGH-I777 using Tapatalk 2 Beta-4
Click to expand...
Click to collapse
playin'4sheezy we know you're 1 person that we can fallback and yet you'll pick it up and make it into something we can't even imagine. thanks alot bro. and good to hear you're still around. gonna do ics soon or what?
wali01x said:
playin'4sheezy we know you're 1 person that we can fallback and yet you'll pick it up and make it into something we can't even imagine. thanks alot bro. and good to hear you're still around. gonna do ics soon or what?
Click to expand...
Click to collapse
Also we have missed you
Sent from my SAMSUNG-SGH-I727 using xda premium
For those decompiling system apps, you need to update adapt.bat with the latest copy from the android sdk and add the framework-res.apk and twframework-res.apk resources to your apktool framework.
Copy the two apk files to your apktool folder. Then run 'apktool if framework-res.apk' and then 'apktool if twframework-res.apk' from a command line. You should be able to decompile after that.
If you're using APK Manager, your apktool script and aapt.bat is located in the apk_manager/other folder.
I've been able to decompile without problems. It's compiling that is giving me problems right now.
Sent from my SAMSUNG-SGH-I727 using Tapatalk
any progress?

Request - Water live pond with leaves

Hello, I am looking for apk and instructions for the water live wallpaper, it is a reelection in a pond with dark blue water and leaves floating and ripples. Very common wallpaper.
Please help, it is not included in ICS, BUT I really like it.
Thanks.
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
badrsj said:
Hello, I am looking for apk and instructions for the water live wallpaper, it is a reelection in a pond with dark blue water and leaves floating and ripples. Very common wallpaper.
Please help, it is not included in ICS, BUT I really like it.
Thanks.
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1161063
here u go.
The link in that thread is dead....just saying'
Sent from my SAMSUNG-SGH-I727 using xda premium
http://forum.xda-developers.com/showpost.php?p=18261034&postcount=48
Yes I know, but a few posts down the apk files were posted. I'm pleased to have them, though I'm working on the permissions, because these keep force closing on me. Thanks for the responses.
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
I've tried a few files and they have all FCed on me.
Sent from my SAMSUNG-SGH-I727 using xda premium
I even tried changing ownership to root. Not working damn it
Sent from my SAMSUNG-SGH-I727 using xda premium
I wish this could be installed like a user app, and save us all the trouble.
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
See this its inside the apk. Try swapping these with the same files from your systemui app
Then adb push the app to your system app and manually set permissions for it
Or do it with root explorer and set permissions to rw-r-r.
Also, that file browser looks NICE Xplore. I'll have to check the market for it.
Sent from my PC36100 using xda premium
Yeah its awesome. I have it included in my rom. U can open apps as zips and copy files in and out of them with out decompileing Same deal with rom zips
silver03wrx said:
Yeah its awesome. I have it included in my rom. U can open apps as zips and copy files in and out of them with out decompileing Same deal with rom zips
Click to expand...
Click to collapse
If you really want to you can pull the livewallpapers.apk and lwppicker.apk from my rom and push those to system/app, i have that wallpaper along with a few other AOSP ICS ones.
M0D1441 said:
If you really want to you can pull the livewallpapers.apk and lwppicker.apk from my rom and push those to system/app, i have that wallpaper along with a few other AOSP ICS ones.
Click to expand...
Click to collapse
Damn....I pulled from embryo and alien and thought they had that particular lwp...and was let down. Didn't think of pulling yours. Thanks a bunch dude. Of all that crap I went through lol
Sent from my SAMSUNG-SGH-I727 using xda premium
M0D1441 said:
If you really want to you can pull the livewallpapers.apk and lwppicker.apk from my rom and push those to system/app, i have that wallpaper along with a few other AOSP ICS ones.
Click to expand...
Click to collapse
could anybody put the two apks online? will they work for any ics? thanks a lot.
Very Encouraged by the responses, but want User Apks
Dear Fellow XDA users and specially developers, I am very encouraged there is so much liking and demand for this particular wallpaper, i wish however, there was a way these APK's could be installed as User apps - cause that would really free this wonderful wallpaper from any constraints.
Short of this - there will be need for putting this in ROMS and installing via root and such - which may not be convenient for people of all skill levels.
badrsj said:
Dear Fellow XDA users and specially developers, I am very encouraged there is so much liking and demand for this particular wallpaper, i wish however, there was a way these APK's could be installed as User apps - cause that would really free this wonderful wallpaper from any constraints.
Short of this - there will be need for putting this in ROMS and installing via root and such - which may not be convenient for people of all skill levels.
Click to expand...
Click to collapse
+1,....am very much looking for this Water LWP as a user app .apk !
Check out Alive Video Wallpaper on the Store! Really nice & it stops running in the background while another app is open!
Sent from, The Eclectic Chair.

Categories

Resources