Decompiling an app - AT&T Samsung Galaxy S II SGH-I777

I ask a question on your site several weeks ago about the default messaging app on Samsung Galaxy s2 aokp jelly bean. It seems that if someone sends me a picture with text the picture covers to text and I can't read it. I asked if there was any way to correct it and below is the answer I got. I am sorry to disagree with whoever posted this however that is not a simple fix. I have Google and look for how to decompile a app and I am unable to find a app to edit a apk file. I am NOT asking for a step by step but surely someone can recommend an app I can download that would allow me to open the MMS app and edit it. Once again this is not a simple fix perhaps it is for you but it is not for me thank you for your time
This is a simple issue that the user can fix. Just have to decompile the apk and adjust the spacing. A search would have saved you opening a new thread.
Thread closed.
Sent from my SGH-I777 using xda app-developers app

lishron said:
I ask a question on your site several weeks ago about the default messaging app on Samsung Galaxy s2 aokp jelly bean. It seems that if someone sends me a picture with text the picture covers to text and I can't read it. I asked if there was any way to correct it and below is the answer I got. I am sorry to disagree with whoever posted this however that is not a simple fix. I have Google and look for how to decompile a app and I am unable to find a app to edit a apk file. I am NOT asking for a step by step but surely someone can recommend an app I can download that would allow me to open the MMS app and edit it. Once again this is not a simple fix perhaps it is for you but it is not for me thank you for your time
This is a simple issue that the user can fix. Just have to decompile the apk and adjust the spacing. A search would have saved you opening a new thread.
Thread closed.
Sent from my SGH-I777 using xda app-developers app
Click to expand...
Click to collapse
If you search xda or google you will find plenty of tools that will do that for you.

I really do appreciate all the hard work that xda developers do. I do not like posting on here because I know your time is important but I also don't want to feel belittled. Have searched your site perhaps I'm poor at searching. Is there an app you would suggest that I could download to my phone or Android tablet to edit apk file. Thanks so much
Sent from my SGH-I777 using xda app-developers app

lishron said:
I really do appreciate all the hard work that xda developers do. I do not like posting on here because I know your time is important but I also don't want to feel belittled. Have searched your site perhaps I'm poor at searching. Is there an app you would suggest that I could download to my phone or Android tablet to edit apk file. Thanks so much
Sent from my SGH-I777 using xda app-developers app
Click to expand...
Click to collapse
Apktool, the app by virtuous team, and i think apk manager
Sent by from my Zanpakuto using Getsuga Tensho!

Thanks so much however after posting this I updated to the newest aokp and the issue is resolved. It does still have the sender's name overlapping the date but not the picture overlapping the message. Thanks so much and I will still try the suggested APK editor.
Sent from my SGH-I777 using xda app-developers app

Go check out the Android development guide by Google, you can get several tools to decompile an apk. As well as .dex file
Sent from my SGH-I777 using Tapatalk 2

I agree that response was pretty rude. I'm guessing they were trying to scare you away rather than giving advice on next steps. That if you don't know how to do what they said you'd leave it to those that do know how.
But on to your original question...
Wikipedia's location for APK format (can't post link as I'm too new) says that the file is just a ZIP file (or JAR file). So likely 7-zip or your favorite program that can open ZIP's/JAR's will work. You might have to rename the extension to .ZIP or .JAR for the program to recognize it.

Nobody was being rude. We told him to search and that there are plenty of resources already available to him. Nothing wrong with that. Good luck and happy flashing.

The post was mine and it was not rude in the least. The information for what you need to do is posted. Has been for a few years now. Ever since people started doing customs themes. You will not be able to do this without a computer. All you have to do is decompile the apk, find the XML that displays the mms message and adjust the spacing by a few pixels. And then recompile the apk. There are tut all over the place on how to do this
You may have to be creative in your searches to be lead where you need to go but that is part of the learning that android requires. Sometimes you need to think outside the box to get the outcome you desire.
Batcom2

OneOfMany07 said:
I agree that response was pretty rude. I'm guessing they were trying to scare you away rather than giving advice on next steps. That if you don't know how to do what they said you'd leave it to those that do know how.
But on to your original question...
Wikipedia's location for APK format (can't post link as I'm too new) says that the file is just a ZIP file (or JAR file). So likely 7-zip or your favorite program that can open ZIP's/JAR's will work. You might have to rename the extension to .ZIP or .JAR for the program to recognize it.
Click to expand...
Click to collapse
This only works for 35% of the apk as the XML files are encrypted until decompiled as are the .9 pngs
Batcom2

Related

Text Messaging .apk Swap

First, let me say by no means should I be trying any of this, because I don't really know much about how to modify software on Android devices. I've seen the .apk from AOSP taken and used on the Thunderbolt to replace the stock HTC text messaging app. Is there any way possible to take the .apk from some Motorola version of Android to swap in the Motorola text messaging app? That was by far the best looking messaging app in my opinion. I've tried simple .apk swaps and that doesn't do it. I'm just trying to figure out if its even possible or is it to entangled in the Blur b/s for me to even ask for help?
sent from my BAMF Thunderbolt!
Not unless you have the software for it. Called backsmali or somethin like that. You could try posting on a dev page and ask for it
hippofisher said:
Not unless you have the software for it. Called backsmali or somethin like that. You could try posting on a dev page and ask for it
Click to expand...
Click to collapse
Tried to post it in the developer section here but it got moved here.
sent from my BAMF Thunderbolt!
Bumping this to the top, hoping someone can help!!!
Sent from my ADR6400L using XDA Premium App

[Q] Editing AndroidManifest.xml is system apks

So im wondering, when I edit a system apk this is the process I use:
Open apk with 7zip, I dont extract.
Replace all png's I want to and exit.
Simple yes? Heres the problem. How do I edit AndroidManifest.xml and add it back in? I can get the xml un-encyrpted and edit it but do I need to make the file encypted again before I put it back?
Any comments/suggestions welcomed
Thanks!
Sent from my U20i using XDA App
Possibly the best way I can answer that is by pointing you in this direction: http://forum.xda-developers.com/showthread.php?t=849223
This is a very handy guide to fiddling with your system apps and will not only answer your question but may answer questions you didn't even know you had..
Wow thanks, just what I needed, I had a feeling I had to decompile/recompile it then move the files into the existing one. You'd think they made these things simple huh? XD
Sent from my U20i using XDA App
Oh, but this is simple. Relatively, at least. You just wait until you start having to write smali..
I just had a look, its pretty overwhelming. I code php though so its not that bad. I know the challenges ahead
Sent from my U20i using XDA App
jimcantfixit said:
I just had a look, its pretty overwhelming. I code php though so its not that bad. I know the challenges ahead
Sent from my U20i using XDA App
Click to expand...
Click to collapse
Oh really?? I used to do a lot of C++ back in the day so I'm okay with java but then it starts going over my head a bit. When I'm next in the mood to hack into the code of our little machine, I may end up stalking you mercilessly..

Change folder icon?

I know there are many apps out there to change icons but I am wondering if it is possible to change the .JPEG in the root of the phone and where the original is located, I have not been able to find anything on this. Thank you for any help
Sent from my PG86100 using XDA
Sorry...
USE the xda search engine before you open a new post, there's an high probability that someone already asked your question, in this case in fact you should refer to this thread: http://forum.xda-developers.com/showthread.php?t=1528752
no solution yet, but let's get this thing being heard in just 1 thread

[Q] how to mod app icons?

Hey mates, I got a question:
How can I modify the icons of an app? I want to modify the icons only from system apps....
I already searched this forum for a thread, but didnt find one, if you know i would be happy about a link
I know that there is an app that "changes icons of apps", but it only creates custom shortcuts, I need "real" new icons...
Hope you can help me
Greets
Sent from my X10i using xda app-developers app
Quick and dirty method:
Download 7zip to your computer. Take the apk you want (camera, for example) onto your computer and open (not decompress) it with 7zip. Find any instances of icon.PNG within all the folders inside the res/ folder. Check their pixel dimensions. Ensure the PNG file you want to use is the same as the original file's. Copy New file and replace the original file in 7zip. Back out of the (example:camera) app using the back button in 7zip. That should do it. If it is an app like settings.apk or any other system dependant app, you need to flash it in recovery (best to just do it this way, regardless). Search the forum for instructions on that. If it is a system app updated via the market (gmail, maps, etc) you will have to redo this every time it updates.
Better method: find a thread here on how to theme, and change the above png using their instructions.
Wow thank you very much
it is systemapps that i want to change to original, i just came to the idea that i could also flash the original apps, I am stupid -.-
but i want to make my own theme anyways so thanks again
Greets
Sent from my X10i using xda app-developers app
No prob. Read all you can! There is a lot of info on theming here, and several methods and programs available to help. I've tried several tutorials and did successfully make one theme.. the learning process is a bit painful. So start small and simple. Also an easy tip to remember: if you theme an app that is a paid app from anywhere, do not share it!!
I have no paid apps only a few books, but not really need them...
so, i wont even come to the idea to edit and share one
Greets
Sent from my X10i using xda app-developers app

Modifying an apk

Hopefully I've done enough searching, but couldn't find anything.
To those of you who have heard the Carbon app for twitter, and tried it, know that their refresh limit for notifications is 15 minutes, which is far too long for me.
I'm wondering if other 3rd party apps like Falcon and Tweedle can do it, why can't Carbon?
Is there any way I can modify its apk so that I can change the refresh time to maybe 1/2 minutes?
I've tried searching the twitter's developer site but honestly I'm like a lost sheep there, I've decompiled the apk with apktool.
Thank you for any help!
No, Twitter api limit is15 minutes, not any apps fault that is in the play store.
Sent from my SCH-I500 using Tapatalk 2
How come other apps are able to stream?
Sent from my One V using xda app-developers app
RedGoblinz said:
Hopefully I've done enough searching, but couldn't find anything.
To those of you who have heard the Carbon app for twitter, and tried it, know that their refresh limit for notifications is 15 minutes, which is far too long for me.
I'm wondering if other 3rd party apps like Falcon and Tweedle can do it, why can't Carbon?
Is there any way I can modify its apk so that I can change the refresh time to maybe 1/2 minutes?
I've tried searching the twitter's developer site but honestly I'm like a lost sheep there, I've decompiled the apk with apktool.
Thank you for any help!
Click to expand...
Click to collapse
Yes you can change the refresh rate,you will need to decompile the apk and find the right xml file that has that info,so you might want to learn about editing xml files and how to decompile and compile apks,before attempting this.
It depends on where the setting is kept: it may be in an xml file, but it could also be in a database, or even hard coded in the app. Either way you could possibly change it, it's just a question of whether you change a value in xml, sqlite, or a smali file.
Sent from my SCH-I545 using xda app-developers app
Hm, I've decompiled it and it seems to be using the twitter4j Java library. Everything inside are smali files. Where would this setting usually be at? o:
Sent from my One V using xda app-developers app

Categories

Resources