I know, wicked noob question.. Im just trying to tweak something. Every text editor I've used, including so-called "xml editors", have failed to properly display the contents of any of the android xml files. What do you smart guys use to view and edit Android xml?
Sent from my nonsensikal froyo using XDA App
XML files are compiled to binary form, you can't open them. Use apktool from my signature (or some wrapper tool like Apk Manager) to decode them.
The APK has to be decompiled before you can edit them (when you will be able to use a normal text editor). Search for 'APK Manger' for an easy way to decompile / recompile apk's
Sent from my HTC Hero using Tapatalk
Thanks!
Sent from my nonsensikal froyo using XDA App
please did it work for you???
mindnumbinglyfun said:
Thanks!
Sent from my nonsensikal froyo using XDA App
Click to expand...
Click to collapse
Please did it work for you?
I have opened some xml, plist etc files before. I came across one recently that will not open no matter the editor. It says error blah blah blah.
i guess it's the encoding thing. please can you help?
I have also attached the file i want to open and the image of the error message received so you can be informed of exactly what I am saying.
Related
There is a rom for the hero that I am interested in porting to the eris. I have dsixda's kitchen, and have experimented with it. I just need a little bit of instruction or a guide through the porting process. I am also a little confused with update-scripts and updater-scripts. Any help would be appreciated.
Anyone? I was trying to port aospCMod, the gingerbread rom that has a working camera on the hero. I am confused in dsixda's ktchen when it asks about update scripts and updater scripts. Please somebody help.
Update: I tried it. I have no idea AT ALL if it works. If anyone wants to try it, PM me. However, do it at your own risk. I have no idea if it might mess up your phone. I'm too scared to try it on my own phone.
I tried port it also. I got it all working but the softkey and the button lights.
Sent from my Droid Eris using XDA App
Did you just use the port feature in the kitchen or did you edit anything in build.prop? I wasn't sure if I should change things from heroc to desirec in build.prop as well.
Sent from my FroyoEris using XDA App
I can post my build.prop if you like.
my build.prop is ok but I tried flashing mine last night but I got an update script error on line 83 installing busy box which I didn't even add to the rom. Any ideas?
Sent from my FroyoEris using XDA App
You changed it from "updater-script" to "update-script"?
Leave it as "updater-script".
So which option in the kitchen should I choose: concert the script, let the kitchen create it for me, or do nothing?
Sent from my FroyoEris using XDA App
Do nothing.
Ok I tried again this time there was a prop error so I assume that means my build.prop is wrong. Could you please post your build.prop like you mentioned before?
Edit: disregard that I know what's wrong I don't need it.
Sent from my FroyoEris using XDA App
If you guys don't mind, could you post your build.prop?
What build.prop edits have worked for ya'll? I've been experimenting but no luck yet.
Sent from my ERIS using XDA App
asiandrg0n said:
If you guys don't mind, could you post your build.prop?
Click to expand...
Click to collapse
You can extract build.prop files from any ROM you like by unpacking the "boot.img" file.
To unpack the boot.img file, the tools you need to do this are:
- split_bootimg.pl (which needs perl)
- gunzip, cpio, and perl
If you are exclusively on Windows, you can install Cygwin to get a Unix emulation shell (command window) with all of the above utilities. (The Cygwin installer is quite straightforward and easy to use).
You can find the "split_bootimg.pl" perl script plus a detailed tutorial on how to do this at this android-dls.com page
Apologies in advance if you already knew this.
bftb0
Ok not sure if this is the correct place to post so if its not op please move it.
Ok im trying to mod the launcher2.apk to remove default wallpapers and some homescreen widgets i have used apktool to decompile and i have removed wallpapers and widgets plus all references then i compile using apktool if i push the file to my system dir and reboot all works fine but the problem is if i add this new launcher2.apk to my custom oxygen rom then flash the phone boots up but launcher2.apk does not load im sure this is a sign problem. Does any one know how to solve this problem and what sign keys does the oxygen system apks use.
The reason im trying to do this is i dont use any default wallpapers and i can get the launcher2.apk from 4.68mb to less then 500kb i will share the apk after its done. Thanks in advance.
Did you try installing it as a normal app ?
Forever living in my Galaxy Ace using XDA App
Yes it just says application not installed.
Sent from my HTC Desire using Tapatalk
Any one?
Sent from my HTC Desire using Tapatalk
If you recompiled the app, try resigning it.
With what ?i tryed sign it with testkeys and platform and still does the same thing.
Please delete.
Sent from my chameleonized SGS2 using my brain.
I was under the impression that if you're going to make changes to an .apk file, you had to decompile the .apk and make your changes, then take the folders you changed and push it to the regular launcher2.apk instead of recompiling and using the recompiled .apk. Doing it that way keeps the original signature intact.
I could be completely wrong though, so I would appreciate it if someone could confirm or deny this.
Edit: Just realized this thread was from 2011... My bad.
U shud have just zipaligned and batch optimized lol
Sent from my PG86100 using xda app-developers app
I would like to replace the stock MMS emoticons with the ones provided in this zip file as Icon_pack.zip according to the array.xml map provided; also in the zip file I have been trying all day to compile the replacement but apparently my xdaAutoTool just isn't set up right. I have also provided my framework-res.apk; I am currently using HyDrOG3N-ICS-03-31-12-SGS2 based on AOKP 4.0.4. How do I do this?
I will provide anyone willing to assist with any other files necessary.
Any help would be appreciated.
I am even willing to buy anyone a beer if necessary (Paypal Only)
Is the aforementioned process even possible?
If you are just replacing the emoticon images why decompile? You can just replace those using zip software's right?
Sent from my GT-I9100 using xda premium
bala_gamer said:
If you are just replacing the emoticon images why decompile? You can just replace those using zip software's right?
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
thanks for your response because I would like to edit out the noses and replace some of the keystrokes with others that I commonly use like the ({}) for hugs
if you change anything syntax, its client sided only, you'll be the only one whos gonna see it
Sent from my GT-I9100 using xda premium
toinktoink said:
if you change anything syntax, its client sided only, you'll be the only one whos gonna see it
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
Blackberry use those codes so when my GF sends from her BB majority of these emoticons like the hug ({}) i don't see the picture smiley so i wanted to have them implemented into my messenger its just that i can't seem to get the compiling done on my pc and would wish if someone could just compile the apk with the array.xml provided
Success
I have done it have compiled and built my tailored mms.apk with emoticons of my choice.
I have uploaded a copy of my work the MMS33.apk uses 33x33px sized emoticons while the MMS48.apk uses 48x48px sized emoticons.
Sighz after a lot of reading and trial and error it's been done the MMS.apk is based on a copy obtained from HyDrOG3N-ICS 31-03-12 (AOKP ICS 4.0.4) anyone is free to use. I will just buy myself that beer!!!!! willing to help anyone with there customisation of the stock MMS.apk
EDIT: The noses have been removed and the syntax is heavily based on BB/iPhone
Can you share how to disable noses from message smileys? IT would be great
You need to decompile the MMS.apk and edit the array.xml file changing the smileys to without the noses and recompile and build a useable MMS.apk you can try the newest build I have made of the 4.0.4 for AOKP with smileys and emojis
How?
bigoisking said:
I have done it have compiled and built my tailored mms.apk with emoticons of my choice.
I have uploaded a copy of my work the MMS33.apk uses 33x33px sized emoticons while the MMS48.apk uses 48x48px sized emoticons.
Sighz after a lot of reading and trial and error it's been done the MMS.apk is based on a copy obtained from HyDrOG3N-ICS 31-03-12 (AOKP ICS 4.0.4) anyone is free to use. I will just buy myself that beer!!!!! willing to help anyone with there customisation of the stock MMS.apk
EDIT: The noses have been removed and the syntax is heavily based on BB/iPhone
Click to expand...
Click to collapse
Hey, will you please tell me how you worked out while changing images? It's because every time I try to put that apk in my phone(after decompile/recompile with stock images replaced), no such app is shown in app drawer.
Help me what to do after replacing images.
Thanks.
I would suggest you extract the mms.apk from the current ROM you are using and decompile replace the emoticons you want with .jpg if the same name edit out the noses if you wish and then recompile. Copy to system/app directory removing the previous mms.apk that was there first. Change the newly copied mms.apk permission to (rw- r-- r--) and restart it should show up in the drawer. If it doesn't head over to system/app again and touch the mms.apk and install it once installation is complete it will show.
NB. There should be no errors when decompiling and recompiling your mms.apk
Sent from my GT-I9100 using xda premium
Hi all,
I have a new Korea phone which I decompiled the Mms.apk and edited the xml to allow sending more than 160 chars.
On my first attempt to push it back to system, it wouldn't install. I was thinking maybe the signature was altered so I copied the compiled xml files into the original apk file and push it back into the system and this time it installed however sms is still limited to 80 chars.
My question now is that what are the other apk files that could affect sms settings and what other settings or files in the Mms.apk did I missed?
Sent from my IM-A860K using xda premium
Leechoonhwee said:
Hi all,
I have a new Korea phone which I decompiled the Mms.apk and edited the xml to allow sending more than 160 chars.
On my first attempt to push it back to system, it wouldn't install. I was thinking maybe the signature was altered so I copied the compiled xml files into the original apk file and push it back into the system and this time it installed however sms is still limited to 80 chars.
My question now is that what are the other apk files that could affect sms settings and what other settings or files in the Mms.apk did I missed?
Sent from my IM-A860K using xda premium
Click to expand...
Click to collapse
Did you copy all the xml files only the mainfest and meta inf is to be copied
More over this cannot be achieved by xml modding you need mod smali files or preferably compile Mms.apk from its source editing required filed
Sent from my GT-S5302 using Tapatalk 2
Hit Thanx Button if i helped you!
sak-venom1997 said:
Did you copy all the xml files only the mainfest and meta inf is to be copied
More over this cannot be achieved by xml modding you need mod smali files or preferably compile Mms.apk from its source editing required filed
Sent from my GT-S5302 using Tapatalk 2
Hit Thanx Button if i helped you!
Click to expand...
Click to collapse
Basically I decompiled the Mmk.apk and I edited the xml and then recompile it again but it didnt want to be installed so I just copy the compiled xml into the original apk file and push it back into the system.
Compiling from source means I gotta get hold of a AOSP mms.apk source file and compile it from there?
Leechoonhwee said:
Basically I decompiled the Mmk.apk and I edited the xml and then recompile it again but it didnt want to be installed so I just copy the compiled xml into the original apk file and push it back into the system.
Compiling from source means I gotta get hold of a AOSP mms.apk source file and compile it from there?
Click to expand...
Click to collapse
Things like this are not controlled by xml files they are done within the code so grab a aosp source if you know java or mod the smali files
Sent from my GT-S5302 using Tapatalk 2
Hit Thanx Button if i helped you!
sak-venom1997 said:
Things like this are not controlled by xml files they are done within the code so grab a aosp source if you know java or mod the smali files
Sent from my GT-S5302 using Tapatalk 2
Hit Thanx Button if i helped you!
Click to expand...
Click to collapse
Thanks. Modded the smali but still no go and it seems that it is the framework.jar that is needed to be changed but that's a different ball game so probably I might just try to port cm over to my device and solve everything in one go.
Sent from my IM-A860K using xda premium
Hi, I am hoping that one of the Android developers on here might be able to give me a bit of advice please regarding editting my 'framework.jar' file.
I have a Jiayu G3 phone running Android Jelly Bean 4.1.2 but my caller ID is not functioning properly because it is not matching local & international numbers. Having done a lot of searching it appears that this is probably due to the parameters in the 'framework.jar' file as per this post on xdadevelopers here
I have succesfully decompiled the 'framework-res.apk' file using apktools and confirmed that the 'config_use_strict_phone_number_comparation' variable is set to false. However, I am having trouble decompiling the 'framework.jar' file.
I have copied the 'framework.jar' file from my phone and opened it in a Jave decompiler. However, all I am presented with is the following:
Code:
META-INF
MANIFEST.MF
preloaded-classes
(See attached image)
In the xda post it says the following:
II) Check for and fix MIN_MATCH constant in telephony framework
1) Decompile framework.jar
2) Open smali/android/telephony/PhoneNumberUtils.smali
3) Search for MIN_MATCH constant and set it to 0x7
Click to expand...
Click to collapse
...but I don't appear to have that in mine.
Am I doing something wrong.
If anyone could offer any advice I would be very grateful.
Many thanks
Russell
P'S. I tried replying about this in the original xda post itself but I don't have authorisation to post in the developers section so I thought I would try here instead.
So, is no one able to help me with this then. All the searching I've done indicates that when I decompress 'framework.jar' then I should have 'classes.dex' inside. However I don't have that.
Can anyone explain to me why this is please before I pull the rest of my hair out.
Thanks
Russell_S said:
So, is no one able to help me with this then. All the searching I've done indicates that when I decompress 'framework.jar' then I should have 'classes.dex' inside. However I don't have that.
Can anyone explain to me why this is please before I pull the rest of my hair out.
Thanks
Click to expand...
Click to collapse
You have to use apktool and apply the command to decompile..
eg.
apktool d framework.jar
this in cmd, will create a new folder named framework.jar.out, then you navigate inside this folder were all the smali's files are etc..
PS. you can't open framework.jar in java decompile, you can open framework.jar extract the classes.dex then use dex2jar tool and turn it back into framework_classes.jar this is the one that can be viewed with java decompilers
Does annybody know....
Where i can find a clean Settings.apk for the GE 4.3 (i9505) that i can mod? (Decompile/Recompile)
frapedas said:
You have to use apktool and apply the command to decompile..
eg.
apktool d framework.jar
this in cmd, will create a new folder named framework.jar.out, then you navigate inside this folder were all the smali's files are etc..
PS. you can't open framework.jar in java decompile, you can open framework.jar extract the classes.dex then use dex2jar tool and turn it back into framework_classes.jar this is the one that can be viewed with java decompilers
Click to expand...
Click to collapse
Thanks for the help. I'm away this week but I'll give it a go next weekend when I'm back.
Sent from my GT-I9100 using Tapatalk 2
Force it into submission
be rough with it
Sent from my HTC One using Tapatalk 4
Russell_S said:
then I should have 'classes.dex' inside. However I don't have that.
Click to expand...
Click to collapse
Are you using a deodexed ROM?
XperienceD said:
Are you using a deodexed ROM?
Click to expand...
Click to collapse
You've got me there. How would I find out?
Sent from my GT-I9100 using Tapatalk 2
Ok, I'm gradually learning here. Having done a bit of research it appears that my rom is odexed (I have .apk and .odex files in my /system/app folder).
I'm assuming then that this will scupper my plans to edit my framework.jar file.
Sent from my GT-I9100 using Tapatalk 2
Russell_S said:
I'm assuming then that this will scupper my plans to edit my framework.jar file.
Click to expand...
Click to collapse
No no, you just need to deodex your ROM then, luckily for you I've got a little thread here - [Info/How-To/Tools] Deodexing Made Easy... - which will help you with that, obviously ignore the Xperia Z Users part and give the rest a read.
XperienceD said:
No no, you just need to deodex your ROM then, luckily for you I've got a little thread here - [Info/How-To/Tool] Deodexing Made Easy... - which will help you with that, obviously ignore the Xperia Z Users part and give the rest a read.
Click to expand...
Click to collapse
Thanks very much for that, I shall digest the information while I'm on holiday ready to act on it when I get back.
I'll let you know how I get on.
Sent from my GT-I9100 using Tapatalk 2