[Resolved] [Q] Change Application Names? - General Questions and Answers

I'm the New Guy.
Can you change an app's label/name if you have the apk?
I've attempted with no success.
I used the APK MANAGER 4.8 by Daneshm90, it de-compiles and converts android xml to xml and back. Whenever I try changing any viewable text (ie. example.apk via Apk Manager creates an out folder: ~\out\res\values\strings.xml -> "<string name="app_label">Messaging</string>" >--> "<string name="app_label">In4nerd's SMS</string>") ultimately it doesn't accept it and wont recompile.
Any help?
Ps: can't posts links
Pss: I'm using CM 5.0.8 update 2.1, if it even matters (which I think it might because Mms.apk only works for its target version and under<-assumption; meaning CM 6's Mms.apk does not work on CM508's..I've tried it too)
null above this arrow ^
EDIT:
I found a way. I can now edit everything about anything in any app (icon, app title, text in the app, graphics in the app..etc) [including sys apps] [without damaging its structural integrity]. I changed sys app "Messaging" to "DANO!". Thnx for all your help xda...(sarcasm sigh).
Post script: if any of you guys wants to know what the problem I had with this originally was, let me know.
Also, I'm not going to abuse this ability to steal app code or take credit for any app not made by me; I only will use this to make an app more appealing to myself, and my system.
kthxbai
New Guy: 1 Rest: -562

Related

APK Edit v0.4, allows you to edit your apk file

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Download​
Buy me a beer​
The download is based on old source code, I don't have that source anymore due to a hard-disk failure.
I'm rebuilding the application as a open source project.
Source code C# version (Windows)
Source code Java version (Windows / Mac OS / Linux)
With this little program you can simply change icons of your android application.
It even lets you change the applications name.
But wait mike..... there's more.....
It even lets you edit the text used in applications.
Sounds to good to be true...
Well... to be honest.... it is.
But I've come a long way from that initial question to the final answer.
My conclusion so far, it works for most of my applications.
It probably will work on most of yours as well.
(Caution: when overwriting an existing application you will loose your associated data!!!)
Special thanks goes out to:
Brut.all for creating Apktool, the backbone of this little project.
Requirements:
Java & .Net Framework 3.5 (Why build on one platform if you can build on two? I know, I know....)
For installing system apps - S-OFF
Nice to know:
Clicking on the [Icons:] tag in the General tab will open a browser window and search for icons in "Google images".
Donations will be "forwarded" to fellow developers like Brutt.all and others, reinforcing the greatness of today's world.
How the magic works:
When opening an APK file it first tries to decompile it using APK Tool (with the version selected in the settings tab)
If decompile failed, because of a missing framework file, it tries to find this file on your phone.
Most of the times it will find what its looking for, pull it off your phone and tries to recompile the whole thing again.
If somehow it cannot find the required framework file, it will provide you a list of possible files on your phone. You can then choose the correct file yourself.
Assuming this process finishes without any problem you now can edit the apk file.
When you press Apply it will recompile the apk and then sign the newly compiled file.
- System APK files (APK files that needed an additional framework file) will get a copy of the original signature.
- Other APK files will get a brand new signature.
When you Click the phone animation it will push the APK to your phone
- System APK files will be pushed to /system/app (ADB PUSH)
- Other APK files will be installed the normal way (ADB INSTALL)
If install failed due to some signature failure it will do some additional fancy tricks and try it again.
Upcoming features:
New option in settings tab -> Only allow one instance of APK Edit to open at once.
New option in settings tab -> Add/remove APK file association to registry.
New option on startup -> Option to open up a "Phone Explorer", lets you edit APK files directly from phone.
Known issues:
CarHomeGoogle.apk - Doesn't save changes
Quickoffice.apk - Doesn't show up after installing
Version history:
Code:
[I]0.4e - Minor update[/I]
Added: Some more debug logging on startup of the application.
Fixed: Version number in settings tab now shows correct version.
[I]0.4d - Minor update[/I]
Fixed: Fixed startup crash if some APK properties are empty (like screensize/densities/locales), like in Settings.apk.
Fixed: A little bug in the fancy install mechanism, mainly experienced when installing system apk's
[I]0.4c - Minor update[/I]
Fixed: Compatibility issue with Windows XP, causing program to crash on startup.
[I]0.4b - Minor update[/I]
Fixed: Error extracting signature.
Changed: Extended logging.
[I]0.4a - Minor update[/I]
Changed: Logging is enabled by default.
Added: Some debug messages for when opening of apk goes wrong.
[I]0.4 - Major rewrite[/I]
Did a major rewrite of the code.
Added: Option to choose APK tool version
Added: Logging feature
Added: Auto retrieve required dependency files from phone if needed (for editing system apps)
Added: Details panel, shows information about the package.
Added: Restore original file link, for when thing's get really messed up.
Added: Donate button, for those who wanna celebrate with me.
Fixed: Some annoying issues ([URL="http://code.google.com/p/android-apktool/issues/detail?id=100"]APKtool Issue 100[/URL]) / ([URL="http://stackoverflow.com/questions/4709291/android-no-resource-identifier-found-for-xlargescreens"]XLargeScreens bug[/URL])
Removed: QR Code installation support
Removed: AdbWireless installation support
[I]0.3 - Update[/I]
Added: Language support.
Added: Installation method (USB Cable).
[I]0.2 - Minor update[/I]
Added: Save confirmation dialog (as req by [URL="http://forum.xda-developers.com/member.php?u=2987317"]droidzone[/URL])
Changed: Recreated the loading animation so that it theme's better with the rest of the application.
[I]0.1 - Initial release[/I]
For the record... only use on you're own apk files, otherwise it's not that legal I think.
Looks nice..
I got an error on one apk though..There seems to be an unhandled exception when the filename contains special characters..
Other than that, the program looks and works awesome..Will comment in detail after I decompile something major..
Thanks//
One question:
The program shows smali files below the main prog, and on selecting the folder it opens in explorer. Would changing the smali be updated in the main prog on clicking Apply? Also a dialog to say that the file has been saved with changes, would be nice.
Tnx for the input, will look into the filename handling!
In the background it recompiles the whole thing, so changes to the smali code should be included in the application if you press apply.
About that dialog.... it's being grown in its incubator now..
Think it will hatch tomorrow
Anoniem100 said:
Tnx for the input, will look into the filename handling!
In the background it recompiles the whole thing, so changes to the smali code should be included in the application if you press apply.
About that dialog.... it's being grown in its incubator now..
Think it will hatch tomorrow
Click to expand...
Click to collapse
Excellent! Thanks again, will pop in later to get the revisions
droidzone, tried out some weird combinations for the filenames but couldn't simulate your problem. Could you give an example?
When i try to open it, Windows 7 says it has stop working???
Anoniem100 said:
droidzone, tried out some weird combinations for the filenames but couldn't simulate your problem. Could you give an example?
Click to expand...
Click to collapse
I can do better.
My filename is Sample of Filename★(1.1).apk
Maybe the★ character is doing it
I've attached screenshots of the error.(Exception1.jpg)
Error Handle: The directory name C:\Users\Kpcc\AppData\Local\Temp\Sample of Filename?(1.1) is invalid.
I'm also attaching a text file with the actual error code given in the exception>Details. ( exception error text.txt)
The blanked out part is my actual username. Just an alphanumeric. Let it be Kpcc.
Edit: Got one more exception. This occured after inputting the ip of my phone in adb wireless and pressing enter. (Exception2.jpg, Exception2.txt)
max63094 said:
When i try to open it, Windows 7 says it has stop working???
Click to expand...
Click to collapse
Maybe a missing .NET framework? The filename handle is the only error I'm getting in Win 7 Ultimate 64bit. And the filename I used is of course not "normal"..
By the way, a few more items on my wishlist:
1. Advanced Search (and replace?) for strings, with ability to use F3 for finding the next instance
2. Sorting the strings/variables in alphabetical and order of occurence, and another coloumn in the content tab with the name of the smali file in which the string appears.
3. Ability to Save As, without modding the source file.
4. Adb push via cable
5. Listing all the smalis in a tab, and ability to manual edit each one individually (Opening up Notepad would be fine. Maybe a Shell "Start file.txt"?)
Just a few wishes which would make it a powerful tool..
@max63094 Hmmm, what could go wrong... think droidzone is onto somthing with his comment about .net framework.
I used the .Net Framework 3.5 to create the whole thing.
You can download this for free at Microsoft
@droidzone, tnx again for the input and will work on the file issue, nice wishlist btw!!
Stuff I get exited about
I'm afraid I can't promise you all the requested features, have to check the required ammount of effort for some of them.
Have to balance my time, you know how it is whahaha
Sorting alphabetical shouldn't be that big a problem, as for the save as and adb push via cable.
Will work on those first!
Anoniem100 said:
@max63094 Hmmm, what could go wrong... think droidzone is onto somthing with his comment about .net framework.
I used the .Net Framework 3.5 to create the whole thing.
You can download this for free at Microsoft
@droidzone, tnx again for the input and will work on the file issue, nice wishlist btw!!
Stuff I get exited about
I'm afraid I can't promise you all the requested features, have to check the required ammount of effort for some of them.
Have to balance my time, you know how it is whahaha
Sorting alphabetical shouldn't be that big a problem, as for the save as and adb push via cable.
Will work on those first!
Click to expand...
Click to collapse
Of course..I know how even the tiniest of things can go wrong in an effort which involves file i/o..I'm rather amazed that your Version 0.2 is so finished! A month ago, I was working on a Gui File Explorer for Android, with Adb and Fastboot commands..However time didnt allow me to complete it..
Have you used apk manager? That's what I use when it comes to decompiling apks. Of course once it decompiles, all the rest of functions has to be done by hand. If you havent, check it out. It's the only other program which comes close to a gui. That uses batch commands of course.
@droidzone, Yeah, time sucks! ever finished a beta?
Funny you mention apk manager.
I'm fairly new to the android scene, but i bumped into apk manager yesterday.
Looks very promising, thinking of replacing the backbone with the crazy work of our dear friend Daneshm90.
Read some interesting stuff about the compression size in correlation to compatibility it could provide.
Maybe a little slider in the settings tab, giving you a simple tweaking mechanism.
Something like:
Big size (compatible) -------------------- Small size (less compatible)
Anyhow.... my brain is making overtime here ;-)
hmm .. just took an app .. changed the icon and the title .. and uploaded it back to the phone.
App doesn't appear anymore.
What might have gone wrong?
Not even a beta. It exists as several separate modules, which have to be joined together. Work stopped when I had to give my phone for service.
Via T3 phone of the year 2010 - HTC Desire
daniello8 said:
hmm .. just took an app .. changed the icon and the title .. and uploaded it back to the phone.
App doesn't appear anymore.
What might have gone wrong?
Click to expand...
Click to collapse
Euhm... I renamed the title once and couldn't find it in its original place.
The app drawer will place icons alphabetical.
But maybe that was just me being stupid (this really happened whaha) and your app really vanished....
Is it just one app that has this behaviour?
droidzone said:
Not even a beta. It exists as several separate modules, which have to be joined together. Work stopped when I had to give my phone for service.
Via T3 phone of the year 2010 - HTC Desire
Click to expand...
Click to collapse
To be continued...
Anoniem100 said:
Euhm... I renamed the title once and couldn't find it in its original place.
The app drawer will place icons alphabetical.
But maybe that was just me being stupid (this really happened whaha) and your app really vanished....
Is it just one app that has this behaviour?
Click to expand...
Click to collapse
I only need a new icon for this one app .. so I didn't try others. Sorting is not the problem. I was hoping that someone gets a deja vu.
@daniello8, what method did u use for installing?
Anoniem100 said:
@daniello8, what method did u use for installing?
Click to expand...
Click to collapse
adb push <appname> /data/app
Edit: Just tried with astro .. but install fails :-(
Edit2: The app icon displays correctly though *fwiw*
daniello8 said:
adb push <appname> /data/app
Edit: Just tried with astro .. but install fails :-(
Click to expand...
Click to collapse
O oh... anyone...
Hmm... probably has to do something with compression levels...

Help required for Renaming Apps

I have an Unlocked Samsung Focus(thanks to windowsbreak). I have deployed HTC apps on my phone but currently these HTC apps are spread across since they start with different names
I wanted to know whether I can somehow rename all the HTC apps to start with HTC and then the app name so that all HTC apps will be grouped together
Example: Notes to renamed to HTC Notes, so it will appear along with HTC Hub itself.
Waiting to hear back from you guys
I suppose you could edit the individual xap manifest files but you might be better off just installing the folders application.
I didnt want to go the folder way since even if I go the folder way still in the main App Menu still the apps would be located at different locations. So just wanted to sort out the Apps.
Just trying to making the App Menu look good with everything arranged properly
MJCS said:
I suppose you could edit the individual xap manifest files but you might be better off just installing the folders application.
Click to expand...
Click to collapse
How do I go about changing the manifest files? I didnt find an entry for the name of the app in WMAppManifest.xml or AppManifest.xaml
EDIT: Got it. Edited the title in WMAppManifest.xml and it worked. Thanks
renaming apps and changing icons
try this new app called app swap to rename apps and change icons.

Disable smileys/emoticons on HTC One X?

Okay, well today, I picked up a new HTC One X. First impressions were pretty good, and I have to say that as of yet, it's looking like it's a pretty good handset.
However; there's one thing about it that really bugs me. SMS messages apparently force you to use these utterly horrific smileys. I was never a fan of the old android icons that occasionally popped up, but these icons are just plain god-awful. Is there any way of disabling them?
(To be honest, I'd much prefer just to have your standard ASCII faces... Not to mention, if you happen to need to send a message that just happens to have the characters in that order, I'd rather not have badly made face icons appearing in the middle of it..)
bump. I can't believe htc require you to install a 3rd-party sms app in order to be able to get rid of emoticons. I'm a 40-yr old man, I don't want to see a crappy cartoon face in my text messages...
thanks for this nice q
3lliot said:
bump. I can't believe htc require you to install a 3rd-party sms app in order to be able to get rid of emoticons. I'm a 40-yr old man, I don't want to see a crappy cartoon face in my text messages...
Click to expand...
Click to collapse
My thoughts exactly... Not to mention, they're so badly designed that I spend more time working out what emotion they're actually supposed to convey, rather than reading the actual message...
Seems slightly out of place, too. The rest of the UI is nice and clean, fairly sleek looking - then you have these ridiculous cartoon faces slapped accross all of your texts..
I'm going to go ahead and bring this thread back from the dead.
Last time I tired to fix this by modifying my framework files and ended up soft-bricking my phone.
There's got to be a better way.
bump?
Untested Solution
EDIT: I looked more into it, and it gets pretty complicated. According to a StackExchange post I found (link in the attached .txt file), you can go through a process to retrieve the source code from the original .apk file BUT it requires the classes.dex file to be intact. That means you have to de-odex the Message+Nonprime.odex file, "re-dex" it into classes.dex, and add it to the Message+Nonprime.apk archive (can simply change the extension to .zip and add the file before continuing the linked steps).
After following all of those steps, I ended up with the source code and readable XML files. Unfortunately, trying to open them in Eclipse does not work, as I'm apparently missing key HTC resources (or I just don't know where the resources files should be pointing). I was hoping for the ability to just change the name across any necessary files, then repackage, but it doesn't seem to work like this.
I've also tried taking the original APK, adding the .dex file (created from the .odex -> files/folders -> dex process) inside, and signing the package (after deleting the META-INF folder containing HTC's signed information). I was hoping that signing the package after renaming it to Message2.0.apk would allow me to install it as a user application (I don't have root or the ability to change the bootloader to overwrite system applications, due to the 4.2.2 update) but the install always fails since "the application is already installed." If I knew how to modify the files within classes.dex properly, I'm sure I could rename the entire package and create a "New" application, but for now I've hit a brick wall. Hopefully if anyone reads this they can build on my failed attempts.
======================================================
======================================================
I stumbled on this (admittedly old) thread, and I don't know if anyone cares, but I've figured out what seems to be key in disabling smiley images from appearing. Below is the information of the phone I'm working with:
Phone Model Number: HTC One X
Android Version: 4.2.2
HTC Sense Version: 5.0
Software number: 5.18.502.1
HTC SDK API level: 5.41
Android uses "SmileyParser" to watch for certain key combinations and replace them with preset images. The theory is that by changing the strings SmilelyParser checks, it won't ever find a match, and they won't be replaced.
I found the Message application under /system/app/Message+Nonprime.apk. HTC's Message application utilizes Android's android.com.mms but has custom functionality/themes (I'm assuming)
Using ADB (Android SDK tool to browse filestructure), I used "adb pull [source] [local]" to copy the .apk and .odex files
I used "smali-#-#-#.jar" and "baksmali-#-#-#.jar" to convert the .odex file
The output of the tool gives a file structure with editable files. I navigated to com/android/mms/util/
In this folder, there are two key files: SmileyParser.smali, and SmileyParserOne.smali. I believe the "One" version may be modified to work with HTC One phones, but I'm not 100% sure (content looks similar)
I opened each file with Notepad++ and found "const string" references with the text version of an emoticon. The code seems to match those with "aput objects" but I don't know 100%
I modified each string (within the quotes) by just adding an 'x' to hopefully thwart the string match. Basically, the phone should wait until x or x is fully matched before replacing the smiley
I'll note again, I did the EXACT same process in both .smali files I mentioned, and I touched ABSOLUTELY NOTHING ELSE. There's no telling what you'll break if those don't compile correctly (which is why I also avoided adding a longer string, in case memory allocation issues cropped up)
I then repackaged the entire output I created into a new .odex file
Now, here's where things get tricky. I don't have a rooted phone, so I can't actually replace the .odex inside of the /system/app folder. I may work on testing on my phone (but I don't get a lot of time and really would not like to brick it), but I'm worried since I'm running a very recently updated Sense version (and there may not be reliable root processes, I have no idea).
If anyone has a rooted HTC One X (check above for the exact software version I have) that would like to try out the modified .odex file (apk is mostly UI/theme, .odex contains the actual programming logic) I am providing the .zip containing the apk and odex files. I've also tried installing the apk+odex with "adb install X/X.apk" but the application has a name buried in the structure (probably everywhere) and I have no idea how to rename it everywhere that's required.
If someone knows how to take a package and re-compile it with a new name, I could potentially re-install "Message 2.0" as a user app without any root privileges required. That's another option I'm looking into (since I'd really rather not root and potentially lose my stored data).
The same problem is still occurring in 2018. I would try your solution, but it's outdated. I'll have to dive in and edit the files myself if a solution isn't found. Although, in that case, I would probably match something further from the x, preferably with 2 bytes because as you said, memory issues might pop up and I'm not sure just how far they went with this.

[Q] Exit xml in a protected market app (swiftkey 3)

The purpose of this thread is not to pirate swiftkey 3, but to edit the keyboard to allow custom smilies and hotkeys. Using APKtool 1.5 HERE I can decompile, but cannot recompile. Ideally it would be nice to be able to just replace the applicative xml file that is customized into the app that will then be installed. However, recompiling fails, and replacing the xml does not allow the apk to be installed (even after resigned).
When swiftkey is decompliled, /values/strings.xml has a list of all the keys and their outputs; if the app can be successfully recompiled, we can make completely custom layouts.
I have a feeling that swiftkey uses an encrỳpted apk; how can we get around that to edit the apk at will?
The underlying purpose here is to be able to convert xml from an apk to readable xml then reconvert into binary xml so that simple xml replacement can be achieved.
If it makes a difference, I downloaded swiftkey 3 from the amazon appstore. (I have a feeling that the amazon appstore has some sort of custom encrỳption)
shameless bump because I've been looking for an answer for months now
Same thing
Hey man, I've been trying to do this for the past few days. I could not get around it at all! Tried few different things, but no luck!
Developers are making their apps now so they can't be edited this way. I know of a few that are doing it so that the min they are decompiled they corrupt the code so it it can't be recompiled and ran. This is most likely what is happening
Wayne Tech Nexus

[Q] I really need some help dealing with image files...

So basically what I am doing is fixing some of this application's code(and I assure that the developer of this app allowed free modification). Currently, this app shows pl_starthere.png for certain time, and apparently is stated as an bitmap file. But I wanted to put animated gif file instead of it.
So I changed the animated file's name into pl_starthere.gif, deleted the original png file, and fixed the file name in the smali file into that gif file. However, it showed me stationary image.
The point is, how can I make it animated? I could probably copy and paste the whole code onto this thread if necessary, but I thought this may be enough for code gurus at xda(and really hope it actually is).
Well, thanks for reading. I would really appreciate any kind of help.
I'm still new to Android myself but from my experience with Windows I know that the program being used to display the image has to be coded to be able to display animated images otherwise it treats them as static. Which means code would have to be added to the app for that.

Categories

Resources