My apologies if this is in the wrong thread!
I've searched around but I couldn't find anything that correlates with what I'm doing.
Basically, I wanted to add ios6 emoji's onto an already modded with previous emojies, MMS.apk.
Steps that I took:
I extracted the emoji .png files from handcent and i placed them in the folder with all the other emojis.
I then went into values > public.xml and I edited the id codes so that all of the ios6 emojis would be in this file (I also extracted this from handcent but I had to re-write the id code. While doing so, I also had to re-write some of the id codes for other items that weren't emojis because if I didnt, the id codes would duplicate since I went in order while writing the id code).
But when I recompile the apk, it wont recompile. I've tried previous versions of apktool and also apkmanager.
I've attached the public.xml file and the emoji folder, so if anyone can help me, I would very much appreciate it
I have also included the original MMS.apk and my framework-res.apk
For some reason, it wont upload onto xda so I uploaded it on my dropbox!
https://www.dropbox.com/s/4ai24xs951zhe6a/MMS Project.zip
Thanks in advanced!
moomingstarz said:
My apologies if this is in the wrong thread!
I've searched around but I couldn't find anything that correlates with what I'm doing.
Basically, I wanted to add ios6 emoji's onto an already modded with previous emojies, MMS.apk.
Steps that I took:
I extracted the emoji .png files from handcent and i placed them in the folder with all the other emojis.
I then went into values > public.xml and I edited the id codes so that all of the ios6 emojis would be in this file (I also extracted this from handcent but I had to re-write the id code. While doing so, I also had to re-write some of the id codes for other items that weren't emojis because if I didnt, the id codes would duplicate since I went in order while writing the id code).
But when I recompile the apk, it wont recompile. I've tried previous versions of apktool and also apkmanager.
I've attached the public.xml file and the emoji folder, so if anyone can help me, I would very much appreciate it
I have also included the original MMS.apk and my framework-res.apk
For some reason, it wont upload onto xda so I uploaded it on my dropbox!
https://www.dropbox.com/s/4ai24xs951zhe6a/MMS Project.zip
Thanks in advanced!
Click to expand...
Click to collapse
you don't have to edit public.xml, the ids get added automatically
Related
I looked everywhere tried every program from APK Edit, APK Tool, APK Manager, Eclipse and a few others, I cannot figure out how to edit the Strings.xml in APK files.
APK Edit and APK Tool / APK Manager just gives me issues when i try to edit the strings, when i finally get them changed over and push to the phone it doesn't install the .apk, tried this on two different devices with no change.
I'm making theme files but i require to edit the strings value so the names are different, and i'm using an OEM file as my base file.
When I edit the .apk with my themed graphics and go to install it, it always wants to overwrite the original, but i've found that others have been able to just rename the strings value to another name so it wouldn't replace it.
What i'm trying to do is not replace original skins in HTC sense 2.x. Since there installable they can be installed multiple times if there values are changed in strings.xml, allowing for massive customization options.
I need the developers community to show me how to do this, i've tried on my own and i've failed each time, and i also tried contacting the themers that have done this on there own but they refuse to help me.
I have a bunch of skins i'm working on but i can't render my skins and theme the apk files until i can do this
You guys are my last bit of help i can find.
alright guys im having some trouble theming the messages app. i want to switch out the bubbles around sent and received texts with the ones from handcent. i pulled the pngs from handcent and want to replace the .9.pngs in the mms.apk with those. i resized them in photoshop, opened with draw9patch from sdk tools added the .9 borders and whatnot, saved them. decompiled mms.apk and replaced the old ones with the ones i made (renamed them exactly the same and made sure theres the same number of pixels) then recompiled and signed the mms.apk. i renamed the one on my phone in system/app to add .bak and then copied the new mms.apk from my sd card and changed the permissions to match. but now when i open it it just force closes. what did i do wrong? im using apk manager 4.9 to do the decompiling btw
Here's what I would do. Use xUltimate-d9pc-x86 to compile the draw9patch after you make your draw9patch adjustments, then put open your Mms.apk via 7zip. Then drag your 9.png's you modified over to hdpi folder. Done. PM me if you have any problems.
Trying to modify contacts.apk to make the dialer multi-dpi compatible. Did that and it works.
My issue is recompiling the apk. Everytime I recompile the apk with apktool it looses over a megabyte in size. In my case went from 4.49MB to 3.19MB after rebuilding. Only file modified was dialer_app.xml and it's size stayed about the same.
I've brought framework-res.apk and twframework.apk into apktool. After copying the resulting contacts.apk back to the device it is not recognized.
I've also tried copying the META-INF directory from the original apk over to the new one. Still no luck. I'm new to this and if anyone has some help for me it would be greatly appreciated!
Did you sign your new apk after recompiling it ?
Do you have classes.dex and resources.arsc files in your new apk ?
since its a system apk I've read it shouldn't be signed. Only thing I did was copy the META-INF folder to the new apk. In the new apk I do see classes.dex and resources.arsc. All the files appear to be there but the apk has shrunken in size.
I'm guessing I'm missing something simple here. But I'm new to this. Been at it for a few hours haven't had any luck.
I am new in development field. I have two questions 1. Is there same meaning for building and recompiling using apk tool? 2. I know framework-res.apk is needed for apktool d com, but where and the what is the use of twframework.apk file. Please explain anyone .
Recompiled apks will be quite a bit smaller as they will have more compression applied, this is normal, just be careful as if the tool compresses it to much you will get fc's. But it should work fine.
idhbar said:
I am new in development field. I have two questions 1. Is there same meaning for building and recompiling using apk tool? 2. I know framework-res.apk is needed for apktool d com, but where and the what is the use of twframework.apk file. Please explain anyone .
Click to expand...
Click to collapse
Read the apktool website for info about framework files, as far as which one to use, if you are decompiling a la2 or la4 base use a kl2 or kk5 framework without jkays built in as the laX frameworks are kinda buggy.
Sent from my GT-I9100 using Tapatalk
So I'm trying to do a little themeing and I have some questions. For instance, if I modify idlescreen_base.apk, do I have to sign that and then also sign the .zip? I'm trying to do a full on theme, modifying every little part of the ROM. When do you have to sign the .apks and .zips? One thing I don't like is the bubble around the four icons on the lock screen, so I went in to modify that and then found more files to change and so it began. And so while I'm on it, why do some m10s decode and some don't? Gingeritis3D and ShiftS3NS3 v3.0 have a default folder, but others have Blue Sky, etc. The default folder that has sharedm10 will decode but the others don't. Just curious. I'm using ShiftS3NS3 v3.0 as my base ROM to theme, by the way.
TheBeardedMann said:
So I'm trying to do a little themeing and I have some questions. For instance, if I modify idlescreen_base.apk, do I have to sign that and then also sign the .zip? I'm trying to do a full on theme, modifying every little part of the ROM. When do you have to sign the .apks and .zips? One thing I don't like is the bubble around the four icons on the lock screen, so I went in to modify that and then found more files to change and so it began. And so while I'm on it, why do some m10s decode and some don't? Gingeritis3D and ShiftS3NS3 v3.0 have a default folder, but others have Blue Sky, etc. The default folder that has sharedm10 will decode but the others don't. Just curious. I'm using ShiftS3NS3 v3.0 as my base ROM to theme, by the way.
Click to expand...
Click to collapse
I'm not much of a themer, but I might be able to help you with the signing.
You have to sign an APK any time you decompile and recompile it. Alternatively, if you use apktool, build the apk, then take the META-INF folder and AndroidManifest.xml from the original apk and copy them to the /build/app folder of the decompiled apk. Rebuild and your apk is signed. Your essentially taking the signature from the original apk and copying it to the one you recompiled.
If you want the zip to flash, you have to sign it. If you remove anything from an already signed zip, you have to resign it.
orkillakilla said:
I'm not much of a themer, but I might be able to help you with the signing.
You have to sign an APK any time you decompile and recompile it. Alternatively, if you use apktool, build the apk, then take the META-INF folder and AndroidManifest.xml from the original apk and copy them to the /build/app folder of the decompiled apk. Rebuild and your apk is signed. Your essentially taking the signature from the original apk and copying it to the one you recompiled.
If you want the zip to flash, you have to sign it. If you remove anything from an already signed zip, you have to resign it.
Click to expand...
Click to collapse
That makes total sense. I get it now. Thanks!
orkillakilla said:
I'm not much of a themer, but I might be able to help you with the signing.
You have to sign an APK any time you decompile and recompile it. Alternatively, if you use apktool, build the apk, then take the META-INF folder and AndroidManifest.xml from the original apk and copy them to the /build/app folder of the decompiled apk. Rebuild and your apk is signed. Your essentially taking the signature from the original apk and copying it to the one you recompiled.
If you want the zip to flash, you have to sign it. If you remove anything from an already signed zip, you have to resign it.
Click to expand...
Click to collapse
Sorry I seen this thread, and was wondering if you use metamorph to theme if you add the META-INF folder and the AndroidManifest.xml to the respective theme will the .apk be able to be installed into the data/app folder?
Deftoolfinch said:
Sorry I seen this thread, and was wondering if you use metamorph to theme if you add the META-INF folder and the AndroidManifest.xml to the respective theme will the .apk be able to be installed into the data/app folder?
Click to expand...
Click to collapse
Not sure. I don't use metamorph so I can't help you there. Sorry.
Sent from my ADR6400L using xda premium
I don't use metamorph. I modify the .apk then flash in recovery. Meta and ninja morph aren't necessary once you get the hang of flashing .zips.
Hi guys, I'm new to this forum and if its possible I'm gonna ask for help here.
I'm losing hope with this, I followed all the guides regarding in modifying touchwiz however whenever I edit an xml file even just a letter and recompile it again, it won't work. I set the permissions to rwx-rxx-rxx in the /system/app but still its not listed as an installed application in all application lists. TB shows it as an uninstalled app/orphan. I already managed to deodexed my touchwiz so I don't know the problem anymore. What I'm trying mod with my touchwiz is as follows:
*5 icons dock (original icons) /no dock background or some line above dock just like original
*5 rows homescreen
*application_name=Samsung home to Home
*transparent menu_background
*fly in effect
*launcher:defaultScreenCount = 1
*automatically sorting apps to alphabetical
*disable homescreen app labels
I downloaded an already modded touchwiz3 to set as my model for editing, its perfect however what I don't like in it is the line above the dockbar and whenever I set the homescreen number to only 1, the homescreen icons/widgets are scrolling. I uploaded the 3 files (original/downloaded/my modded), could someone check what I'm missing in my work? BTW, I'm on a stock S5300DXLF2.
I'll appreciate all the help in advance, thanks.
set permission to.rw-r--r--.
MANYGREEEEEEEETZ!!!
---------- Post added at 01:05 AM ---------- Previous post was at 12:59 AM ----------
edit.how did u named the apk?
MANYGREEEEEEEETZ!!!
Yes, I set the permissions to rw-r--r-- but still its not showing up as an installed application. I deodexed the original touchwiz using this guide http://forum.xda-developers.com/showthread.php?t=1600805 but still it won't let me edit a single line in an xml file. What could be the problem?
Regarding your question about how did I named the apk, are you talking about the filename.apk (TouchWiz30Launcher.apk)? I didn't change that in the /system/app directory.
try to sign the apk
I finally managed to make it work, I copied all the files I edited from the new compiled apk to the original apk and I pushed back the original apk. However the application name and the menu background transparency didn't change at all. Since I don't know where the values folder goes after recompiling an apk, I don't know where to copy it from the new apk to paste to the original apk.
DarkEyes23 said:
I finally managed to make it work, I copied all the files I edited from the new compiled apk to the original apk and I pushed back the original apk. However the application name and the menu background transparency didn't change at all. Since I don't know where the values folder goes after recompiling an apk, I don't know where to copy it from the new apk to paste to the original apk.
Click to expand...
Click to collapse
This is the problem of signing the app... use vts to compile, decompile and signing... I guess it will work...
Sent from......... I guess you know it...
I tried using VTS, but that didn't help either changing the application name. I'm having another problem adding rows to homescreen, I changed the longaxiscells to 5 but I'm getting FC.
how is it .. is it good ?
Any of this is like the one in JellyBlastV3 rom??? With the transperant dock and stuff??? And I just push it using root explorer??? And set permissions??
Sent by a Payphone