[REQUEST] Calendar widget with transparent header? - Nexus 5 Q&A, Help & Troubleshooting

Hi, on my previous phone I used the standard calendar widget but it had a transparent white header (actually I am not sure if that was standard or if I had a modified calendar app it is so long ago). I would like the same widget on Nexus 5 but the standard calendar widget has a blue header. Does anyone know how this can be modified to be transparent like my previous one? I have shown pictures of the difference between them in attachments.
I think it might be a case of editing PNG file(s) in the APK and then rebuilding it. I had a look inside the calendar APK from the \system\apps folder and I can see some PNG files that look like they are the header. I can use an image editing app to modify the image files but I am not sure about the process of rebuilding the APK (I have odex files as well as APK in my \system\apps folder).
I have attached the files that seem to be the background PNGs. The one called BLUE is the one from Nexus 5 and the one called TRANSPARENT is from my previous Android 4.1.2 phone. The calendar APK in the Nexus 5 has two copies of the file in two different folders in the res section.
If anyone can help I would appreciate it

Found the solution myself. I found the image for the header in the old Calendar app and took a sample of the colour and transparency and edited and replaced the corresponding image in the new Calendar APK (resizing to fit new screen density). I found a tool to odex and transfer to my phone and now the widget is showing with the header like my old one did.

dgmorland said:
Found the solution myself. I found the image for the header in the old Calendar app and took a sample of the colour and transparency and edited and replaced the corresponding image in the new Calendar APK (resizing to fit new screen density). I found a tool to odex and transfer to my phone and now the widget is showing with the header like my old one did.
Click to expand...
Click to collapse
Care to share your modified apk?

Radar73 said:
Care to share your modified apk?
Click to expand...
Click to collapse
Attached is my modified APK. It is a modified version of v201308021 calendar app which came with the original Nexus 5 ROM. I am not sure if any of the subsequent OTA updates have upgraded the version since that one.
Note that the widget preview still shows it with the blue header but if you add it to your homescreen the widget will display with my modified transparent white header.
I used this tool and instructions to odex my modified APK file:
http://forum.xda-developers.com/showthread.php?t=1879128

dgmorland said:
Attached is my modified APK. It is a modified version of v201308021 calendar app which came with the original Nexus 5 ROM. I am not sure if any of the subsequent OTA updates have upgraded the version since that one.
Note that the widget preview still shows it with the blue header but if you add it to your homescreen the widget will display with my modified transparent white header.
I used this tool and instructions to odex my modified APK file:
http://forum.xda-developers.com/showthread.php?t=1879128
Click to expand...
Click to collapse
Much appreciated ...thanks!

Related

Editing widgets/.apk files?

Hey guys. Just a quick question. I've successfully edited the images inside a few .apk files to match my theme and then installed them on my phone without any problems.
However, now I'm trying to edit some .apk files that are apps with widgets. Specifically, Advanced Task Manager and N1 Torch. I wanted to edit the widgets' image files so that the "focused" and "pressed" highlights of these apps' respective widgets are no longer Android's hideous orange color. But when I make changes to the widgets and install my modded .apk files, the widgets are broken. They won't load. Any advice? Thanks.
mabe http://forum.xda-developers.com/showthread.php?t=669577
Never mind. Got it all settled. Fixed my widgets. Thanks.

Editing PNGs on PowerAMP

I want to replace the icons and edit the color of the widget text. I found the files and edited them for the text and photo-shopped the icons. Rezipped it and resigned it. I uninstalled the old poweramp (left the unlocker installed). Installed the new re-signed one using root-explorer but it says can't open modified apk install poweramp from market. Pretty annoying I just wan't to edit the icons for the widget is there another way replace icons for the widgets without editing the apk?

UOT Kitchen and Signal Bars

Hey all, I'm using UOT Kitchen to change my status bar icons and battery icon. The battery worked out fine but the status bar icons are being a little uncooperative. The signal bar icons change sometimes, but often revert back to stock signal bars. The fact that the look keeps changing is annoying. I've read that it's because UOT gives the images the wrong names in the .zip, and I need to change the names for the phone to display the images at the right time. But question is, how do I do this? I assume I'd have to match each image to the corresponding stock image and make them have the same name, then just replace the images in the systemui.apk file, if possible.
JoeyofBladez said:
Hey all, I'm using UOT Kitchen to change my status bar icons and battery icon. The battery worked out fine but the status bar icons are being a little uncooperative. The signal bar icons change sometimes, but often revert back to stock signal bars. The fact that the look keeps changing is annoying. I've read that it's because UOT gives the images the wrong names in the .zip, and I need to change the names for the phone to display the images at the right time. But question is, how do I do this? I assume I'd have to match each image to the corresponding stock image and make them have the same name, then just replace the images in the systemui.apk file, if possible.
Click to expand...
Click to collapse
Yep that should do the trick...you can use 7zip to browse the files of an apk
If that doesn't work then you may have to decompile the apk.and do some smali/and or xml edits...I really depends on the icons you choose I think...what you would be doing is changing the references from stock to the uot
Sent from my HTC PH39100 using Tapatalk 2
mg2195 said:
Yep that should do the trick...you can use 7zip to browse the files of an apk
If that doesn't work then you may have to decompile the apk.and do some smali/and or xml edits...I really depends on the icons you choose I think...what you would be doing is changing the references from stock to the uot
Sent from my HTC PH39100 using Tapatalk 2
Click to expand...
Click to collapse
While in 7zip viewing the .png images, I click on them and Windows Photo Viewer comes up... but for some reason, no image loads. How can I view the images in the .apk so I can tell which images match up? I need to view the .png files but it doesn't seem to want to let me see a preview with Windows Photo Viewer.
JoeyofBladez said:
While in 7zip viewing the .png images, I click on them and Windows Photo Viewer comes up... but for some reason, no image loads. How can I view the images in the .apk so I can tell which images match up? I need to view the .png files but it doesn't seem to want to let me see a preview with Windows Photo Viewer.
Click to expand...
Click to collapse
You can extract them then view them, edit them, rename them etc...once your done with your edits just delete the old ones from the APK and add your new modified/renamed one...
The only images you can't edit (you can still rename...just make sure you leave the ".9" in front of the ".PNG" ) are .9.pngs -if you want to actually edit a .9.png with you will need to decompile the apk with apktool...and even then they still need to be edited in a special way. In case your wondering a .9.PNG is basically an image with no set dimension...as in it can be minipulated by .xmls to stretch (an example of one is the message box in the SMS app...the longer the text message the bigger the message box...it gets stretched down)
Sent from my SGH-I997 using Tapatalk 2

[MOD] AOSP themed Moto Contacts / Phone / Messaging v1.8.3 now with dark Contacts!

Hi!
I further AOSP themed the Mods from Shaftenberg (all credits to him) to my needs and put them in together in one CWM flashable zip.
Only flash, when you are on Jelly Bean 4.1.2!
Do a Nandroid backup before flashing (or backup contacts.apk, phone.apk, messaging.apk and the corresponding .odex files if you are on a odexed rom), just in case you want to revert later.
What I did:
- Exchanged all remaining Moto icons with original or adapted CM10 AOSP icons - quite a lot.
- Boosted the contrast of the dark and light AOSP faces a little. Dark faces are displayed in (dark) Phone and Messaging. Light faces in Contacts.
- Adjusted some text, background and highlight colors.
- Changed the emoticons in Messaging to their CM10 counterparts (green androids).
- Darkened the very bright green Mailbox icon.
If someone still finds some ugly Moto icons, please post a screenshot.
These are all themed original Motorola APKs - so you won't get any side effects. Everything works as reliable as stock.
Brazilian users need to use the special braziian version.
Tools used for my modding activities:
- Virtuous Ten Studio
- ImageMagick (command line image manipulation)
- win-bash (UNIX Bash Shell for Windows)
- Greenfish Icon Editor Pro
- WinMerge
- Notepad++
- my brain
Changelog:
v1.1: Made the text in the thread selection screen of Messaging.apk brighter for better readability
v1.1.1: Recompiled APKs with the signature keys from the original files (they didn't work in some setups before). Corrected updater-script.
v1.2: Exchanged some more icons in Messaging.apk: Outgoing message face (only visible if you don't have a picture of yourself in Contacts), group icon.
v1.3: Background of unread messages in thread list is now colored in visible dark holo blue. Text color of outgoing messages is now standard holo light blue (#33b5e5). Exchanged emoticons to higher resolution versions.
v1.3_grey: In- and outgoing SMS/MMS messages in dark grey "message bubbles". (a little darker than shaftenberg's grey version, and without the grey background of the text input area). Text colour of outgoing messages white.
v1.4_grey: Edited the green smileys. Two of them were blurred, smaller and in a slighty different colour. These are now perfectly matched to the others. Smileys in text are displayed a little larger. Exchanged some more icons to AOSP/CM icons (messaging icon in notfication area and in Contacts, small grey faces on contact photos).
v1.5_grey: Edited the above mentioned smileys again. They had a little offset and I shifted them in the right position. Exchanged the messaging icon on the incoming call screen and ajusted the ring colour when locked on the messaging icon.
v1.6_grey: Exchanged some more icons I had overseen. Incl. send message icon in the missed call dialog on the notification list, and some other icons that I haven't seen in the running program yet (e.g. the high priority message icon on the notification bar, for which I had to make an own icon cause it has no correspondent on CM10)
v1.6.1_grey: Corrected the brightness of the voice search icon on the dialpad to match the other buttons on the dialpad.
v1.7: Changed green phone receiver symbols to grey AOSP version except the one on the dialer. trash symbol on "long press" symbol bar was darker than the other symbols, corrected that. Changed all icons on these long press menus to AOSP versions. Changed the order of icons on this menu on recent calls list to resemble the icon order on the corresponding menu in contacts. Changed some icons in messaging to AOSP version (new message, phone receiver, attachment clip, made a AOSP style foward message symbol as there is none in cm10)
v1.7.1: Changed the "angry" text emoticon because Moto used a completely wrong one.
v1.8: Now with extended set of AOSP smileys (6 more). Rearranged the smiley order. Changed some of the corresponding text emoticons to more common ones. Extended the emoticon parser with a lot of synonym emoticons.
v.1.8_darkContacts: I finally did it! And it was a lot of hard work to do all the necessary editing and find out all the switches in the XML files. Even had to change some values in the smali files. Now with hopefully perfectly "Holo dark" themed Contacts.apk. Please post screenshots if you find something not matching the dark holo theme.
v1.8.1: Some minor corrections. Reworked favorites star symbols (intensity, color, edges). Now holo blue instead of yellow in dark Contacts version. Search icon on Phone now has the same brightness as on Contacts, corrected the voice search icon on the dialpad to have the same brightness too.
v1.8.2: I finally found the reason for the white background on contact detail view in landscape view. It was a completely unnecessary background color definition very well hidden in the xml files. Simply a bug by the Moto coders. Removed it and now the background resembles the actual theme in both versions. Found some invisible icons in dark Contacts, corrected that. Did some minor color corrections in Messaging.
v.1.8.3_darkContacts: Found some light grey faces in group members editing screen. Changed them to dark version.
Screenshots are always appreciated, but that sounds nice. Specifically the green androids emoticons :highfive:
Omar-Avelar said:
Screenshots are always appreciated, but that sounds nice. Specifically the green androids emoticons :highfive:
Click to expand...
Click to collapse
Im aware of this. But in this case Screenshots would have contained way too much personal information.
So I can install it without cwm ?
If so could you provide the original files to revert it if we don't like the new look?
purplet said:
So I can install it without cwm ?
If so could you provide the original files to revert it if we don't like the new look?
Click to expand...
Click to collapse
If you want to install without cwm then use Root Explorer or any other root capable file explore, extract the zip, copy the apks to /system/app change permissions to -rw-r--- delete the corresponding .odex files if they still exist and reboot.
Backup the original apks and .odex files before you do this (or rename them to .apk.old and .odex.old) if you want the possibilty to revert.
Phone.apk, Contacts.apk not works on JB EU Retail, but the sms Works perfect.
anthen32 said:
Phone.apk, Contacts.apk not works on JB EU Retail, but the sms Works perfect.
Click to expand...
Click to collapse
Try this new version.
I changed the updater script to delete the .odex files because the new apks are deodexed.
Also made the text colour in the first screen (thread selection) of the messaging app brighter for better readability.
hypophysis said:
If you want to install without cwm then use Root Explorer or any other root capable file explore, extract the zip, copy the apks to /system/app change permissions to -rw-r--- delete the corresponding .odex files if they still exist and reboot.
Backup the original apks and .odex files before you do this (or rename them to .apk.old and .odex.old) if you want the possibilty to revert.
Click to expand...
Click to collapse
if I DO want to cwm, I just need to flash it?
kelvinmorcillo said:
if I DO want to cwm, I just need to flash it?
Click to expand...
Click to collapse
Yes, it's a CWM flashable ZIP. Do a Nandroid before, just in case you don't like it or something goes wrong.
hypophysis said:
Try this new version.
I changed the updater script to delete the .odex files because the new apks are deodexed.
Also made the text colour in the first screen (thread selection) of the messaging app brighter for better readability.
Click to expand...
Click to collapse
Nop, not working
anthen32 said:
Nop, not working
Click to expand...
Click to collapse
I never had any problems. But to evaluate your problem I reverted to stock, installed my zip and as you said Phone and Contacts are not working.
I investigated a little and it was a problem with the signature of the apks. I recompiled with the original signature from the stock files and now everything is confirmed to be working.
Sorry for the inconvenience.
consi omeltti
hypophysis said:
I never had any problems. But to evaluate your problem I reverted to stock, installed my zip and as you said Phone and Contacts are not working.
I investigated a little and it was a problem with the signature of the apks. I recompiled with the original signature from the stock files and now everything is confirmed to be working.
Sorry for the inconvenience.
Click to expand...
Click to collapse
Works perfect! thanks and good job!
It works fine on armans infiniROM :good:
I love the CM-emoticons on sms.
What I noticed right now, that the sms-limit is up to 9.998 instead of the stock-maximum of 1.000
Is this your work or is this in armans ROM? I couldnt find any answer in your changelog or in the changelog of infiniROM
ICuaI said:
Is this your work or is this in armans ROM? I couldnt find any answer in your changelog or in the changelog of infiniROM
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2212235
ok, it seems to be a german co-production
I further AOSP themed the Mods from Shaftenberg
Click to expand...
Click to collapse
in the OP :silly:
v1.2 available!
Download from first post.
v1.3 available!
Download from first post.
Looks better now :thumbup:
Did you still thought about inverting the Contacts.apk? I am searching for hours now, but cannot find a working one for razr i. I am going to desperate now. :what:
Sent from my XT890 using xda app-developers app
A version with dark grey "message bubbles" and white outgoing text on the SMS app is now available.
It's very similar to shaftenberg's grey version, but with a little darker grey shades and no other grey backgrounds.
Download on first post.
V1.4 available. Download on first post.

[Q] Changing all icons to black&white

Hi there,
So recently I got Nexus 5 after 4 years of HTC Desire. Quite a huge leap performace wise I might add, and this phone is absolutely a sweetheart. The first thing I did was rooting the phone :laugh:
Anyways, I am thinking to change the color of all icons (including icons of applications) to black and white. I get it that I would need to extract the icons first, and then change the color using some icon or icon editing program or simply a photo editing program etc.
Now what I would need to know is that how can I repack the icons back to the application? or would I need to place it in some directory and fiddle with some xml file?
Cheers!
oombongo said:
Hi there,
So recently I got Nexus 5 after 4 years of HTC Desire. Quite a huge leap performace wise I might add, and this phone is absolutely a sweetheart. The first thing I did was rooting the phone :laugh:
Anyways, I am thinking to change the color of all icons (including icons of applications) to black and white. I get it that I would need to extract the icons first, and then change the color using some icon or icon editing program or simply a photo editing program etc.
Now what I would need to know is that how can I repack the icons back to the application? or would I need to place it in some directory and fiddle with some xml file?
Cheers!
Click to expand...
Click to collapse
Why don't you just use a Launcher that allow you to use custom icons? with Nova and Apex you can do it
oombongo said:
Now what I would need to know is that how can I repack the icons back to the application? or would I need to place it in some directory and fiddle with some xml file?
Cheers!
Click to expand...
Click to collapse
Icons are icons. The colour of icons does not need xml files. Its all controlled by images.
You can actually repack quit easily, but also takes a lot of effort. You need to look at the villain rom theme engine. It is a flashable zip that unpacks each apk and replaces whatever you have in the zip in the apk. Essentially you would have /system/app_name/res/icon.png (pretending that this is the location of the icon in the apk, each will be different I expect)... but you have to do this for every app.

Categories

Resources