[Q] Change Apk Name and Icon - General Questions and Answers

I would like to change only the name and icon of an apk. It is not a system app. I am not rooted. Is it possible to decompile it, change it, recompile it, repack it and sign it so that it can be installed on my phone.

oakpress01 said:
I would like to change only the name and icon of an apk. It is not a system app. I am not rooted. Is it possible to decompile it, change it, recompile it, repack it and sign it so that it can be installed on my phone.
Click to expand...
Click to collapse
if you want you can use go launcher to change app icons and names.
otherer wise use the xposed module, or use aptool to decompile, edit and all the rest.
press thanks if i helped!

Related

[Q] Editing more than just images in Phone / contacts apks

Howdy all,
I am wanting to kno if there is anything special about editing certain system apps, do they all need to be signed with the same keys. i think i read this somewhere.
cause when i decompile the phone.apk then recompile with no changes / or with changes, signed it with autosigner or APK-Manager, it just FC's on the phone and i cant make sence of the logs...
oh and i tried pushing the file with adb and x10 mod tool, tried in the emulator, still no joys.
been googling for hours... and i feel i am searching for the wrong things...
Thanks in advance
Pvy.
you can use 7zip to browse the apk as an archive and replace png's and .9.png's inside the drawable folders.
you wouldn't have to resign the apk this way, but i would recommend zip-aligning the apk after you replace the png's.
i would also make sure you know how to work with .9.png's before replacing them. not doing .9.png's correctly will break the app.
I have edited the pngs there is no prob there I can put all the images in.
I am editing the xmls and the manifest... I tried drag and drop but it seems to break the apk...
Thanks tho.
Sent from my X10i using XDA App
Go ahead and compile with apk manager, say yes to 'is it a system apk?'.
Then open the new apk with 7zip and pull out the xmls, etc. you changed.
After that open the original apk w/7zip and drag in the compiled xmls along with your images.
That should work.
So I did this,
compiled phone.apk chose system app when it asked.
drag and dropped the 3 pngs I modded, and a few xml files, and the modded androidmanifest.xml to the original
Pushed it to my phone, rebooted...
But it wont install.
It appears the signing breaks.
Pvy
AyDee said:
Go ahead and compile with apk manager, say yes to 'is it a system apk?'.
Then open the new apk with 7zip and pull out the xmls, etc. you changed.
After that open the original apk w/7zip and drag in the compiled xmls along with your images.
That should work.
Click to expand...
Click to collapse
Sent from my X10i using XDA App
Changing default image
I wondered if anyone could help me out with this
Many thanks
pvyParts said:
So I did this,
compiled phone.apk chose system app when it asked.
drag and dropped the 3 pngs I modded, and a few xml files, and the modded androidmanifest.xml to the original
Click to expand...
Click to collapse
My suggestion is after doing this add the now modded original .apk into a flashable.zip and use xRecovery/FreeXperiaRecovery to install the app.
If you don't know how to make a flashable.zip just use 7zip to replace the phone.apk in a theme update.zip and delete any other folders/.apks that you don't want being reinstalled (framework-res etc.).
Not sure if this will work because I haven't tried this after modding .xml files, but it works after I make any other changes, even changing .9.pngs.
Best of luck, hope this works.
nope that didn't work either... took me a while but once i figured out the update.zip i got it going. and still no joy.
thanks heaps guys for all your help, i think i must have to compile from source or something silly like that...
I'll keep at it and let you all kno how i go...

Editing CM7 APK's?

ive decompiled the apk and reziped it both unsigned and signed with the apk manager and for some reason whenever i edit the theme apk then reinstall or push it it shows 1/4 in the theme manager but only lets me select the 3 basic themes. its like the one i edited and pushed/installed is hidden..
searched but found nothing. any ideas?
n388mm said:
ive decompiled the apk and reziped it both unsigned and signed with the apk manager and for some reason whenever i edit the theme apk then reinstall or push it it shows 1/4 in the theme manager but only lets me select the 3 basic themes. its like the one i edited and pushed/installed is hidden..
searched but found nothing. any ideas?
Click to expand...
Click to collapse
Did you edit androidmanifest xml correctly? At times if your preview.png is not in the right place then there is no preview but the name should show up from androidmanifest with blank preview.
i didn't think i needed too. i pulled a already build theme. changed out 1 png file. re zipped it and it disappears. if i install off the sd card, adb install, or adb push it produces the same result.
n388mm said:
i didn't think i needed too. i pulled a already build theme. changed out 1 png file. re zipped it and it disappears. if i install off the sd card, adb install, or adb push it produces the same result.
Click to expand...
Click to collapse
if you are just changing a png, just use 7zip or an equivalent program. But in the op you said decompile and recompile with apk manager, then you better update the Androidmanifest.xml and might need to change values and style xmls as well. but either ways I would use the application installer for this instead of ADB. So if its an existing package with the same name , browse to the apk with say Astro and it will take you to the installer, uninstall first and then install the new one.
I just use 7zip, way easier...
quick question relating to CM7 themes.If i wanted to change the look of the Latin IME keyboard that the theme changes it thru theme itself where would those files be located
djnarcotics said:
quick question relating to CM7 themes.If i wanted to change the look of the Latin IME keyboard that the theme changes it thru theme itself where would those files be located
Click to expand...
Click to collapse
through theme changer? it would be in the theme apk, drawable-hdpi folder... theme apk is most likely in system/app directory...
WFG said:
through theme changer? it would be in the theme apk, drawable-hdpi folder... theme apk is most likely in system/app directory...
Click to expand...
Click to collapse
searched in there but couldn't seem to find the files
bump..... 10 char
djnarcotics said:
quick question relating to CM7 themes.If i wanted to change the look of the Latin IME keyboard that the theme changes it thru theme itself where would those files be located
Click to expand...
Click to collapse
Very likely in the Drawable folders. Or go through the redirections xmls and you should be able to reverse engineer. I think it depends on what your base apk is.

[Mod] Remove NFC Icon from Statusbar (Without XML edit)

If you find this icon as ugly as I do you probably researched and figured out that you could remove this by changing the OTHERS.XML in /system/csc/
If you have no problem editing the XML that is probably the easiest solution, however if you are like me and need to have a solution that works as a flashable zip that is indepenedent of the random carrier settings in others.xml this solution might help you.
This is the NFC apk from LL1 samsung release and should in theory be backwards and forwards compatible.
Tested on LL1 / TWRP.
If this works for you please give me thanks / rate the thread. If it doesn't let me know so i can figure out a more universal solution.
http://www.mediafire.com/?ycsa44am50rrfdi
I kinda like the NFC icon but I changed it to something else. Just swap out the icon with another icon.
just_visiting said:
I kinda like the NFC icon but I changed it to something else. Just swap out the icon with another icon.
Click to expand...
Click to collapse
Hi
Can You explain how did u done it? pls!
Where is the icon located?
Greets! Nick
etecdailey said:
Hi
Can You explain how did u done it? pls!
Where is the icon located?
Greets! Nick
Click to expand...
Click to collapse
Should be found in the NFC.apk in res/drawable-xhdpi
andybones said:
Should be found in the NFC.apk in res/drawable-xhdpi
Click to expand...
Click to collapse
Thank You!
andybones said:
Should be found in the NFC.apk in res/drawable-xhdpi
Click to expand...
Click to collapse
Hmm.. What kind of "apk tool" did u use to decompile & compile back?
I've tried APK Tool and it's not working.
etecdailey said:
Hmm.. What kind of "apk tool" did u use to decompile & compile back?
I've tried APK Tool and it's not working.
Click to expand...
Click to collapse
Winrar or 7zip will do. Drag the 'res/drawable-hdpi' folder out to and make the changes. Then drag the folder 'res/drawable-hdpi'' back into the apk. Depending on your Windows configuration, make sure there are no 'thumbs.db' files in ANY of the folder in the apk file before you replace the file in your phone or else you're gonna get some force-close upon reboot. Good luck.
PS: After you're comfortable with replacing icons then you go ahead and start replacing icon in all your other programs. systemui.apk, phone.apk, contacts.apk, email.apk, maps.apk, etc...
just_visiting said:
Winrar or 7zip will do. Drag the 'res/drawable-hdpi' folder out to and make the changes. Then drag the folder 'res/drawable-hdpi'' back into the apk. Depending on your Windows configuration, make sure there are no 'thumbs.db' files in ANY of the folder in the apk file before you replace the file in your phone or else you're gonna get some force-close upon reboot. Good luck.
PS: After you're comfortable with replacing icons then you go ahead and start replacing icon in all your other programs. systemui.apk, phone.apk, contacts.apk, email.apk, maps.apk, etc...
Click to expand...
Click to collapse
Nice! Actually it worked
I've made it useful with two icons - dont know why it didn't work with apk tool's...
Thanks one more time! (my work attached)

Can I override CM 11 theme with Xstana navigation bar mod

I like my custom Xstana module nav bar but my android L theme replaces it and I can't overwrite it.
Also I don't particularly like the keyboard of the android L theme and I can't seem to customise it back to normal?
You can replace the keys within the .apk manually through a computer.
For the keyboard, same thing. You can also download an alternative keyboard, if you're using the Google Keyboard, there are many that look like it, and so on.
Curiousn00b said:
You can replace the keys within the .apk manually through a computer.
For the keyboard, same thing. You can also download an alternative keyboard, if you're using the Google Keyboard, there are many that look like it, and so on.
Click to expand...
Click to collapse
Oh alright I'll give it a ****, how do I browse them on my computer? Android SDK?
lopuandroid said:
Oh alright I'll give it a ****, how do I browse them on my computer? Android SDK?
Click to expand...
Click to collapse
If you pull the theme.apk from your phone, you can explore the APK with Win-RAR/7-zip, and whatever else.
But since you plan on reinstalling, I recommend checking APKTool. You need to decompile, edit, then recompile the APK.
Curiousn00b said:
If you pull the theme.apk from your phone, you can explore the APK with Win-RAR/7-zip, and whatever else.
But since you plan on reinstalling, I recommend checking APKTool. You need to decompile, edit, then recompile the APK.
Click to expand...
Click to collapse
Thanks a bunch
Please do not post non development related threads in the development section
Questions belong in the Q&A section
Thread moved
Curiousn00b said:
If you pull the theme.apk from your phone, you can explore the APK with Win-RAR/7-zip, and whatever else.
But since you plan on reinstalling, I recommend checking APKTool. You need to decompile, edit, then recompile the APK.
Click to expand...
Click to collapse
You don't need to decompile / recompile to swap images. You can do this in winrar and 7zip, as long as you delete the old images first and add the new images with no compression (store)
You only need to decompile if you're adding new images (not swapping) and editing XML
Sent from my Nexus 5 using Tapatalk

[Guide] How to edit app icons using Apktool

Hello,
This is a guide that will show you how to edit app icons, by decompiling the apk file using Apktool X (current version is: 7.2.2a- Black).
But why would You want to edit a app icon using this method?
Well, at the time of speaking Android N doesn't have support for Xposed so you can't use Flipster for example... Or if you don't have root, by following this guide you can edit app icons system- wide.
Firstly download Apktool X by Andro Black.
After that you want to install it, and find a apk file you want to modify.
After you found the apk, press it once and chose: Decompile res
After that is done (depending on your phone and the apk size it might take several minutes), Use a file manager and open the "Base_src" > "res".
Then find " minimap-*****-** (the "*" could be for example xxhdpi-v4).
Then open one of those minimap folders ( I recommended the first or last one so you could keep track of it where you replaced the icons).
Copy your preferred .png icon and paste it in one of the folders. In the minimap folder you should find the .png icon... Usually it has a name ic_launcher.png.
Delete it, and rename your icon to the name of the stock icon.
Repeat the process in every minimap folder.
After you did that, go to Apktool X and find the Base_src file that you just edited.
Long press it and chose recompile.
Now wait... A few moments/minutes...
When it's done you will get a base_src.apk.
Press it and chosse "Sign".
After that install the base_src_sign.apk
After installation i recommended disabling updates for that app, because a future update will (most likely) overwrite your icon.
Special thanks to: @iBotPeaches for making the original Apktool, and Andro Black for updating the app.
Hope this help's Your OCD :laugh:
In case this guide doesn't help you, leave a question, and i will kindly answer as soon as i can.
In case this works for You, it would be great if You could leave a thumb's up
Links:
Apktool by Andro Black: https://www.androidfilehost.com/?w=profile&uid=24562946973631820
Tags: Edit app icons, no root, icon pack, system wide
Screenshots:
-Here is: Kernel Auditor with a modified icon:
Whatsapp with S8 icon plz
Editing app's totally
Open an app as zip file then res>midmap.
You can see three or four midmaps, there will be a png called ic_launcher.png or icon.png change it manually which icon you want and rename it as what the icon name is in midmap that's all it will be change completely.
Thank you for reading.:

Categories

Resources