Decompiling/Recompiling help - G4 Q&A, Help & Troubleshooting

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?

Related

Hangs at Splash (Was:Rounded corner on taskbar??)

Thanks to prash and *black*silva* for helping below, but I have a new problem/question:
I have made some changes that I want to the akirah3.0 ROM and have manually pushed them via ADB in recovery and it has worked fine with some apps (Launcher, Phone, Contacts, Browser) but when I try to push the new framework-res.apk and reboot, my phone hangs at the T-Mobile G1 splashscreen. Even if I take the original framework-res.apk and unpack, then repack it still hangs. I have tried pushing both an unsigned and a signed apk.
I am able to push the framework-res.apk, android.policy.jar, and services.jar from the blackened theme and it worked fine, so it must be something I am doing, so if anyone has any pointers I'd appreciate it.
Any ideas? Eventually I will put these in an update.zip, but I thought pushing manually would be easier to test.
Code:
I posted this in Q&A yesterday and didn't get any bites. I'm hoping a themer here could help:
I love how some theme's (and Cyan's 4.1.99) have rounded corners on the taskbar. I am attempting to compile a theme for myself and was wondering how this is achieved? I am not seeing anything in the png's that looks like a mask to accomplish this.
Just edit the taskbar image to have rounded corners and fill the rest with black. Its an illusion but since the edges are black it looks smooth.
hmm that seems too easy
I was looking through some themes trying to find the taskbar image that has rounded corners and didn't find any so I figured it was something else.
Did I mention I'm a noob at themeing Clearly I've got more research to do. Thx Prash
edit: Duh, found it. sorry for the clutter
go get 4.1.99 and the extract it then go to system, framework, then extract framework-res.apk, then go to res, then drawable then look for statusbar_background.png thats what you want.
Edit,
sorry didnt notice you found it out already lol.
thx, new problem
Thx prash and *black*silva* I figured it out with your help, but I have a new problem. I added it to the first post and changed the subject title.
framework-res.apk hates to be pushed, the only way i have been able to get it to work is through and update.zip.

Need help with APK manager please

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.

[REQ] Could someone edit the MMS.apk and add these emoji?

I'm looking to edit the stock MMS.apk, and replace the green smileys with the real emoji that are supposed to be used.
I've tried editing the apk through apkmanager and apktool, both on a PC and mac, with no success, so I'm asking someone to do this task for me.
I have already found the correct emoji.png files, and I've put them into a folder which I am going to attach to this post. All I need [you] to do is put them into /res/drawable-xhdpi through reengineering (apkmanager/apktool)
Thanks to anyone who can do this! (I'm on the 10/5 nightly of CM10 w/ franco.kernel if that makes a difference)
yoseir2 said:
I'm looking to edit the stock MMS.apk, and replace the green smileys with the real emoji that are supposed to be used.
I've tried editing the apk through apkmanager and apktool, both on a PC and mac, with no success, so I'm asking someone to do this task for me.
I have already found the correct emoji.png files, and I've put them into a folder which I am going to attach to this post. All I need [you] to do is put them into /res/drawable-xhdpi through reengineering (apkmanager/apktool)
Thanks to anyone who can do this! (I'm on the 10/5 nightly of CM10 w/ franco.kernel if that makes a difference)
Click to expand...
Click to collapse
Not sure which version of the phone you have but this MMS has the emoji support http://forum.xda-developers.com/showthread.php?t=1745830 if you have the GSM model like me you can use the ICS version of his app (unfortunately I couldn't seem to find it just now) I believe there is a stock version of the ICS mms but I won't swear on it. The mms.apk doesn't replace the green androids that you would normally make it gives you the emoji's separatly. Even has a quick support button to get to them fast. Hope this helps you
I found this thread googling for the exact same thing. I can't stand the green emoji and after reading a few threads I finally decided to just try doing it myself. Turns out it was incredibly easy. Here is the latest mms (11/10) pulled from justunbean's inverted apps (http://forum.xda-developers.com/showthread.php?t=1797292) with the hideous green emoji replaced with the stock iphone-ish ones. Here is the apk and also a cwm flashable zip of it.
You shouldn't need to use apk manager or apk tool for images just open the apk put the images where they go and make sure they are named correctly.
Sent from my Galaxy Nexus using xda premium
Beamer9408 said:
You shouldn't need to use apk manager or apk tool for images just open the apk put the images where they go and make sure they are named correctly.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Yup, thats all I did was open the apk with 7-zip and dropped in the images from an older version.
cicatriz63 said:
I found this thread googling for the exact same thing. I can't stand the green emoji and after reading a few threads I finally decided to just try doing it myself. Turns out it was incredibly easy. Here is the latest mms (11/10) pulled from justunbean's inverted apps (http://forum.xda-developers.com/showthread.php?t=1797292) with the hideous green emoji replaced with the stock iphone-ish ones. Here is the apk and also a cwm flashable zip of it.
Click to expand...
Click to collapse
Thanks for this man, was looking for something like that and your link just fit the bill
cicatriz63 said:
I found this thread googling for the exact same thing. I can't stand the green emoji and after reading a few threads I finally decided to just try doing it myself. Turns out it was incredibly easy. Here is the latest mms (11/10) pulled from justunbean's inverted apps (http://forum.xda-developers.com/showthread.php?t=1797292) with the hideous green emoji replaced with the stock iphone-ish ones. Here is the apk and also a cwm flashable zip of it.
Click to expand...
Click to collapse
Wow. Very nice. But I really hate the inverted MMS (to each his own), and you said it was very simple to do, but I spent 1-2 hours on it and could not get it to work properly, so do you think you could do the same with the stock MMS.
MMS.apk attached, from the CM10 nightly that I'm running (11/5 I believe)
yoseir2 said:
Wow. Very nice. But I really hate the inverted MMS (to each his own), and you said it was very simple to do, but I spent 1-2 hours on it and could not get it to work properly, so do you think you could do the same with the stock MMS.
MMS.apk attached, from the CM10 nightly that I'm running (11/5 I believe)
Click to expand...
Click to collapse
Here you go..takes about 3 seconds now that I figured out what to do. For anyone curious you just right click the .apk and open it with 7zip, browse to \res\drawable-xhdpi\ and select all of the files that start with emoji_ and delete them then just drag the ones you want in. The ones I used were from an older apk so all the names were the same, just extract the good ones and drop them into the apk with 7zip.
cicatriz63 said:
Here you go..takes about 3 seconds now that I figured out what to do. For anyone curious you just right click the .apk and open it with 7zip, browse to \res\drawable-xhdpi\ and select all of the files that start with emoji_ and delete them then just drag the ones you want in. The ones I used were from an older apk so all the names were the same, just extract the good ones and drop them into the apk with 7zip.
Click to expand...
Click to collapse
Yeah.... I'm on a mac... And I can't seem to find an application that replicates these features.
cicatriz63 said:
Here you go..takes about 3 seconds now that I figured out what to do. For anyone curious you just right click the .apk and open it with 7zip, browse to \res\drawable-xhdpi\ and select all of the files that start with emoji_ and delete them then just drag the ones you want in. The ones I used were from an older apk so all the names were the same, just extract the good ones and drop them into the apk with 7zip.
Click to expand...
Click to collapse
Hmm.. I seem to be having trouble. I've tried replacing my MMS.apk in system/app with both of the .apk files you have posted, but both times, the MMS.apk app disappears, and when I click on it to attempt to install it, I get an error with parsing the package.
Also, I tried flashing your invertedmms.zip, which didn't work and I also used an empty flashable with the non-inverted themed apk file you posted, which also didn't work. I'm going to play around with it a little more to try and find something that does work.
EDIT: I finally got it to work, just had to sign the apk.
***Unfortunately, the apk you had uploaded the 2nd time was actually the same one you uploaded the first time... The inverted one...***
EDIT 2: NVM. Used apk manager to extract/zip/change back to apk, and I successfully have an MMS.apk with all iOS emoji (still lacking the iOS 6 emoji, which will be my next project)
yoseir2 said:
Hmm.. I seem to be having trouble. I've tried replacing my MMS.apk in system/app with both of the .apk files you have posted, but both times, the MMS.apk app disappears, and when I click on it to attempt to install it, I get an error with parsing the package.
Also, I tried flashing your invertedmms.zip, which didn't work and I also used an empty flashable with the non-inverted themed apk file you posted, which also didn't work. I'm going to play around with it a little more to try and find something that does work.
Click to expand...
Click to collapse
You can't simply install system apps. Try placing it in system/app, making sure it's named correctly (and that the old one is named something different or deleted), setting permissions to rw-r-r, and rebooting. If that doesn't work, there's probably some ROM incompatibility.
dirtygoldfish said:
You can't simply install system apps. Try placing it in system/app, making sure it's named correctly (and that the old one is named something different or deleted), setting permissions to rw-r-r, and rebooting. If that doesn't work, there's probably some ROM incompatibility.
Click to expand...
Click to collapse
Not sure how mine worked then.
What my process was:
1. Download nightly build of CM10 (same version as one running on my phone)
2. Extract .zip file of CM10 rom, and find MMS.apk
3. Using APK Manager, extract apk file.
4. Replace emoji files in drawable-xhdpi as needed.
5. Zip apk using apk manager (now have unsigned-mms.apk)
6. Using this tool I signed the apk file.
7. Use bluetooth and send "unsigned-mms-signed.apk" to phone.
8. Install app from solid explorer.
9. Insert emojis as needed.
yoseir2 said:
Not sure how mine worked then.
What my process was:
1. Download nightly build of CM10 (same version as one running on my phone)
2. Extract .zip file of CM10 rom, and find MMS.apk
3. Using APK Manager, extract apk file.
4. Replace emoji files in drawable-xhdpi as needed.
5. Zip apk using apk manager (now have unsigned-mms.apk)
6. Using this tool I signed the apk file.
7. Use bluetooth and send "unsigned-mms-signed.apk" to phone.
8. Install app from solid explorer.
9. Insert emojis as needed.
Click to expand...
Click to collapse
That sounds a lot more complicated than necessary, but hey, if you got it working then that's that.
dirtygoldfish said:
That sounds a lot more complicated than necessary, but hey, if you got it working then that's that.
Click to expand...
Click to collapse
Yup. So I found that rebooting took it away, so I just took my apk that I found that was working after an install and dragged it into /system/app and renamed it to mms.apk
Is anyone interested in me making this an (un)official release in themes&apps?
yoseir2 said:
Hmm.. I seem to be having trouble. I've tried replacing my MMS.apk in system/app with both of the .apk files you have posted, but both times, the MMS.apk app disappears, and when I click on it to attempt to install it, I get an error with parsing the package.
Also, I tried flashing your invertedmms.zip, which didn't work and I also used an empty flashable with the non-inverted themed apk file you posted, which also didn't work. I'm going to play around with it a little more to try and find something that does work.
EDIT: I finally got it to work, just had to sign the apk.
***Unfortunately, the apk you had uploaded the 2nd time was actually the same one you uploaded the first time... The inverted one...***
EDIT 2: NVM. Used apk manager to extract/zip/change back to apk, and I successfully have an MMS.apk with all iOS emoji (still lacking the iOS 6 emoji, which will be my next project)
Click to expand...
Click to collapse
Doh you're right. I updated that post with the correct apk.
yoseir2 said:
EDIT 2: NVM. Used apk manager to extract/zip/change back to apk, and I successfully have an MMS.apk with all iOS emoji (still lacking the iOS 6 emoji, which will be my next project)
Click to expand...
Click to collapse
Any updates getting the iOS 6 emoji added?
I just added the emojis (not iOS6 ones) to the cm10.1 MMS. If anyone wants it I have it on Dropbox.
http://db.tt/YiCwxSA2
Sent from my SGH-T999
sing1gnis said:
Any updates getting the iOS 6 emoji added?
Click to expand...
Click to collapse
I'm not sure how I would do this, because I think you need to add some things to the arrays.xml, because when I looked there the code had something along the lines that was
If character=xxxxxxxxxxxxxxxx, then emoji=yyyyyyyyyyyyyyyyy
or something like that
I'm not sure where I would find those values for the iOS6 emoji, but if someone knows how to do this, I will gladly go through the handcent emoji extension and find all the new iOS6 emoji for you and give them to you in a .zip.
I'm another dude that hates those green little creatures...I wanted some normal smileys , the basic ones not the extra emojis, and none of the apk in this thread did it for me...so I made one: it is stock with the green smileys replaced with the HTC ones ,the ones used in this post http://forum.xda-developers.com/showthread.php?p=40647802#post40647802 .

[Q] Framework-res.apk editing

Hey guys am doing some Framework-res compiling editing etc. I got everything working great but one small thing. Once installed into a ROM and you go to reboot It seems the shutdown.zip is forced into landscape mode. (Only during shutdown.) Anyone have an Ideas?
Wanna bring this back up and see if anyone knows what this could be or where to look been digging in the framework-res files for a while now.

Cannot save screenshot, try again

has anyone else run into this? i've found threads from various other phones on this, but none of the fixes ive tried have worked - delete /sdcard/pictures folder, clear data for quickmemo+, nada
as soon as i take a screenshot, the notification "saving screnshot" is stuck in my panel and cannot be swiped away. the screenshot actually saves, but a toast message comes up saying "Cannot save screenshot, try again".
SOLVED: DO NOT DISABLE CLIPTRAY
I'm having the same problem.
I've gone and unfroze everything and that didn't work so I factory reset this thing and still no luck.
edit: Extreme you rooted? I am rooted but I originally could take screenshots.
Eagle1337 said:
I'm having the same problem.
I've gone and unfroze everything and that didn't work so I factory reset this thing and still no luck.
edit: Extreme you rooted? I am rooted but I originally could take screenshots.
Click to expand...
Click to collapse
yes, i'm rooted with an at&t H810 on 10g. ****, i was about to unblock everything and hope that fixed it
bump, found some errors in a logcat:
Code:
W/ResourcesManager(15856): Asset path '/system/framework/com.lge.systemui.jar' does not exist or contains no resources.
W/ResourcesManager(15856): Asset path '/system/framework/com.lge.mdm.jar' does not exist or contains no resources.
W/ResourcesManager(15856): Asset path '/system/framework/com.lge.zdi.splitwindow.jar' does not exist or contains no resources.
funny thing is, i havent modified any framework files or the systemui since root. i've only tinkered with the build.prop. full logcat attached
ExTREmE99 said:
bump, found some errors in a logcat:
Code:
W/ResourcesManager(15856): Asset path '/system/framework/com.lge.systemui.jar' does not exist or contains no resources.
W/ResourcesManager(15856): Asset path '/system/framework/com.lge.mdm.jar' does not exist or contains no resources.
W/ResourcesManager(15856): Asset path '/system/framework/com.lge.zdi.splitwindow.jar' does not exist or contains no resources.
funny thing is, i havent modified any framework files or the systemui since root. i've only tinkered with the build.prop. full logcat attached
Click to expand...
Click to collapse
wanna bet it's systemui that's causing the problem?
Eagle1337 said:
wanna bet it's systemui that's causing the problem?
Click to expand...
Click to collapse
probably, now to find someone with a freshly rooted systemui
ExTREmE99 said:
probably, now to find someone with a freshly rooted systemui
Click to expand...
Click to collapse
Why not just reflash the system.img?
Sent From My LG G4
Rydah805 said:
Why not just reflash the system.img?
Sent From My LG G4
Click to expand...
Click to collapse
true that. ill give it a whirl tonight
I have this issue too. It's definately a systemui issue as Force closing System UI clears the notification.
It started happening to me after root, so guessing it's something to do with the system ui in that image.
IIIIkoolaidIIII said:
I have this issue too. It's definately a systemui issue as Force closing System UI clears the notification.
It started happening to me after root, so guessing it's something to do with the system ui in that image.
Click to expand...
Click to collapse
My issue is with a different variant and it was working after root.
Sent from my LG-H812 using XDA Forums Pro.
Eagle1337 said:
My issue is with a different variant and it was working after root.
Sent from my LG-H812 using XDA Forums Pro.
Click to expand...
Click to collapse
Ah didn't notice which variant you were on. Though it's still an issue with system UI somewhere though. Tried everything can find, centering folders, unfreezing apps, etc.
well, reroot/flashing the rooted systemimg did work. ive gone back and disabled all bloat again, and screenshotting still works. no idea what changed
edit: andddd i broke it again. it was working fine, did a whole bunch of restarts after blocking a few apps taking screenshots along the way. eventually screenshotting broke again. unfroze a few apps that i froze in Titanium and screenshotting is still broken. i am so confused
ExTREmE99 said:
well, reroot/flashing the rooted systemimg did work. ive gone back and disabled all bloat again, and screenshotting still works. no idea what changed
edit: andddd i broke it again. it was working fine, did a whole bunch of restarts after blocking a few apps taking screenshots along the way. eventually screenshotting broke again. unfroze a few apps that i froze in Titanium and screenshotting is still broken. i am so confused
Click to expand...
Click to collapse
did you disable cliptray? i did a similarish test but i used solid explorer to remove the permissions from cliptray and my screenshot ability died!
Eagle1337 said:
did you disable cliptray? i did a similarish test but i used solid explorer to remove the permissions from cliptray and my screenshot ability died!
Click to expand...
Click to collapse
holy ****, good call. i did disable cliptray. i guess screenshot on this stupid ROM writes the screenshot directly to the cliptray, so when its disabled, it cant write it to the cliptray, and thus the persistent saving notification..
There is a nice app which should be used with option B, this preserves screenshot funtionallity.
play store: https://play.google.com/store/apps/details?id=com.jfsoftware.disablecliptray
pOpY

Categories

Resources