Hi guys,
Long time stalker, first time poster.
I am trying to use APK manager to edit some third party app apk's themes.
When i use option 9 to decompile, i try using option 11 to compile again straight away just to see if everything works ok...
If i decompile and change an image in res/drawable hdpi, i always get an error message when i try and compile it again...
Even if i only change one image and then compile it, it will show an error.
Does anyone know why im getting this error?
Thanks for any help you guys can give, its really frustrating!
Does anyone know why?
use the older version of the apktool.jar file. You can get it from his google code page.
Also remember if the image your changing is a 9.png then you need to make sure the all black, and totally clear edges stay that way or else you'll get an error compiling them again.
Another good idea is to post the portion of your log.txt file showing what's causing the error, cause otherwise we're just guessing.
And a final good idea is to ask your question in the apk manager thread. You'll get better support there.
Related
I have been driving myself crazy trying to get this to work, and after almost 6 hours of no luck, I ve finally just had to ask.
Im basically trying to remove a "feature" of a ROM and add it to another ROM, but without using metamorph. On Clays Reremix of CSDI, he has this little android guy that is in the background on the dialer. Im wanting to move that file over to the original CSDI ROM, but I just cant figure out exactly which files will need to be moved. Is that file stored in the "Phone" apk? Is it just a matter of swapping that apk with the original "phone" apk found in CSDI?
And, Im trying to add the launcher from a theme called Android Plus and move it over to CSDI. I was successful one time in moving the little android dude to the dialer screen, but I havent been successful in changing the launcher ( it always ends in a fc loop after getting past the Google setup). It seems that everytime I sign the zip and flash when Im done, that even with swapped apks, the ROM stays the same.
Is it even possible to accomplish what Im trying to do, or am I simply too much of a n00b to be able to do it?
The easiest thing to do is to push both files using adb. Take both files from Clay's rom and put them where you can find them, plug in your phone to the usb, and use the command:
adb push C://*location*/Launcher.apk /system/app/Launcher.apk
and
adb push C://*location*/Phone.apk /system/app/Phone.apk
That will erase the original launcher and dialer and replace it with the new ones. If you don't know how to use adb, find the thread in the development section and follow that. It's not hard to do.
Or, you can use an app called system app backupper. Backup the apps you want from clays rom, and restore them on csdi.
Awesome! Thanks alot for your help! Btw, Im from Tampa myself. I ve been in Germany for 8 years now. Nice to know we still got the helpful people! j/k
???
If the dialer your talking about is before the call is connected, it's in the Contacts.apk.
thanks for your help!
Thanks RichieDaze, glad I scrolled down...
this is my first time trying to edit my framework apk. i used apktool, decompiled it, made the changes, recompiled it, then moved the resources file from my brand new apk i just compiled, into the old apk, then flash the old apk... correct? i have tried every single variation of these and cannot get a single change to work. its as if it was never changed at all. im trying to remove my navbar on jbsourcery 3.1, (a 4.1.2 rom) and cant find a single way to do it that works. after 4 hrs of trying every single method i can imagine, reading every guide about apk editing i can find, nothing is working. can someone please help?
Guys can you help me out,
I was trying to edit SystemUI.apk with this tuto http://forum.xda-developers.com/showthread.php?t=2527867 Then I needed to put it on my phone following this tuto http://forum.xda-developers.com/showthread.php?t=2235956
Now my phone keeps putting "Unfortunately, System UI has stopped." I tried rebooting, same thing. What did I do wrong? Maybe in the signing? The video tutorial used "zipalign -fv 4 ...." command while I read on other tutorials you should copy the original manifest and I don't know which files but in the video he didn't do it...
Please help, the error message keeps coming in the way and I can't to anything.
LG Nitro HD, CM 10.1.3 Wind kernel.
EDIT: I managed to have access to CWM by fast clicking before the error appears so I could reboot into recovery, does this help?
EDIT 2: The video told us to replace old meta-inf and android manifest in the new apk but he didn't show it so I didn't do it, was that the problem?
Truepeace said:
Guys can you help me out,
I was trying to edit SystemUI.apk with this tuto http://forum.xda-developers.com/showthread.php?t=2527867 Then I needed to put it on my phone following this tuto http://forum.xda-developers.com/showthread.php?t=2235956
Now my phone keeps putting "Unfortunately, System UI has stopped." I tried rebooting, same thing. What did I do wrong? Maybe in the signing? The video tutorial used "zipalign -fv 4 ...." command while I read on other tutorials you should copy the original manifest and I don't know which files but in the video he didn't do it...
Please help, the error message keeps coming in the way and I can't to anything.
LG Nitro HD, CM 10.1.3 Wind kernel.
EDIT: I managed to have access to CWM by fast clicking before the error appears so I could reboot into recovery, does this help?
EDIT 2: The video told us to replace old meta-inf and android manifest in the new apk but he didn't show it so I didn't do it, was that the problem?
Click to expand...
Click to collapse
Reinstall, your Rom. Next time make a backup 1st.
Sent from my LG-P930 using xda app-developers app
Swetnes said:
Reinstall, your Rom. Next time make a backup 1st.
Sent from my LG-P930 using xda app-developers app
Click to expand...
Click to collapse
I re edited systemui.apk with signing this time then I put it in a flashable zip file the author of the status bar modding gave me and then I sideloaded it in CWM and flashed it. Now I can use my phone but my status bar has disappeared.
What do you advise me to do? To reflash the original SystemUI.apk of my rom? I will try all this tomorrow.
Edit: I forgot to say that I had disabled SystemUI because if I enable it the error will come again.
So I tried to I tried reputting my original SystemUI.apk and flashing it but I still didn't have the toolbar and the crashes. So I think I am gonna reinstall my ROM like you said.
Solved
Finally I made it
I factory reset the phone and wiped cache but the root was gone so I re rooted it and reflashed my custom rom and gaaps and kernel,
Then I followed this tuto http://forum.xda-developers.com/showthread.php?t=2203166 that was much simpler and easier than the video one I saw previously for editing systemUI.apk and how to compile/recompile.
I pushed it through via file manager after I set the correct permissions and rebooted my phone. Now the status bar has my text in it
Dear All,
I recently discovered the atrocious 'security feature' Google is forcing upon it's Nexus users that disallows any downloading of certain compressed file types if they are sent to you via Email.
For those that don't know... send yourself a ZIP file (for instance) as an email attachment and your Nexus device will NOT let you download it once you receive the email within either the 'Email' or 'Gmail' app (other third party apps work fine).
I have searched high and low for a solution to this issue but it seems a fix hasn't been implemented even by the CyanogenMod community.
The closest I came to a fix is the following:
http://forum.xda-developers.com/galaxy-nexus/help/opeing-zip-files-email-t1377475/page3
I have tried the solution suggested in the above thread which involves decompiling Email.apk, modifying some code, recompiling and implementing the new apk but I am now struggling.
I have decompliled the systems email.apk using apk tool... found the correct lines of code for my version of android ( http://grepcode.com/file/repository...Utilities.0UNACCEPTABLE_ATTACHMENT_EXTENSIONS ) and modified the file in question accordingly.
It is here where it all goes wrong... I cannot for the life of me figure what I am doing wrong when trying to implement the new Email.apk.
I copy it into system/apps using root explorer and reboot (after removing the old apk)... nothing. Email app has in fact disappeared.
Could anyone shed some light on this please?
I know there are work arounds such as using webmail but that's no good to me... I am extremely surprised that even at this stage of Android development we still have this kind of restriction so would appreciate all thoughts on how to get this going.
Maybe someone out there has some more information about the issue that I haven't been able to find?
PLEASE HELP!
UPDATE:
Managed to get my modified email.apk loaded but the amendments have not been successful.
Does anyone know any other parts of the source code I should be looking at?
bump
Audio Oblivion said:
bump
Click to expand...
Click to collapse
Can't help you with the source code just wanted to say that I am able to download zip files with the newest version of the Gmail app (v 4.9) just fine. Sent a zip to my yahoo account and tried to use the Email app and keep getting "Couldn't download. Touch to retry." I thought they had fixed both but apparently not.
Has anyone been able to successfully decompile/edit/recompile any system apps? I think I managed framework-res.apk, even LGSystemUI.apk ok, but trying to recompile LGTeleService.apk just gives me constant errors (trying to get rid of that insufferable floating bubble that persists on top of the screen while you're on a call). Decompiling looks fine, but recompiling errors. I don't know if I have the wrong framework files or what, but I can't seem to figure it out. Anyone have any luck/tips? Thanks!
itiskonrad said:
Has anyone been able to successfully decompile/edit/recompile any system apps? I think I managed framework-res.apk, even LGSystemUI.apk ok, but trying to recompile LGTeleService.apk just gives me constant errors (trying to get rid of that insufferable floating bubble that persists on top of the screen while you're on a call). Decompiling looks fine, but recompiling errors. I don't know if I have the wrong framework files or what, but I can't seem to figure it out. Anyone have any luck/tips? Thanks!
Click to expand...
Click to collapse
You might want to post what the errors are so we can look.. Without them can't be of much help
Use Apktool 2.0.1
Enviado desde mi LG★G4★H815®
Never mind. Turns out it's a shared library issue. Certain apks on the g4 can't be decompiled properly yet, including LGTeleservice and LGSettings
itiskonrad said:
Never mind. Turns out it's a shared library issue. Certain apks on the g4 can't be decompiled properly yet, including LGTeleservice and LGSettings
Click to expand...
Click to collapse
well that blows. i hate that stupid phone call dialog. absolutely useless when the notification shade has the same damn function
itiskonrad said:
Has anyone been able to successfully decompile/edit/recompile any system apps? I think I managed framework-res.apk, even LGSystemUI.apk ok, but trying to recompile LGTeleService.apk just gives me constant errors (trying to get rid of that insufferable floating bubble that persists on top of the screen while you're on a call). Decompiling looks fine, but recompiling errors. I don't know if I have the wrong framework files or what, but I can't seem to figure it out. Anyone have any luck/tips? Thanks!
Click to expand...
Click to collapse
how to compile and decompile systemui?