[Q] cant make any changes to framework, help editing apk - Samsung Galaxy Nexus

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?

Related

Editing a Rom/Theme-How to change dialer and launcher

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...

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] Crashed my SystemUI.apk

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

Decompiling/Recompiling help

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?

Categories

Resources