[Q] Lock screen problems on TSM Resurrection - framework-res.apk - Fascinate Q&A, Help & Troubleshooting

I absolutely love the SGSII lockscreen on TSM Resurrection. But instead of AM/PM being displayed properly next to the time, I get Jan./Feb. instead. Looks like something inside the XML files inside framework-res.apk is messed up. I tried decompiling the APK and removing the AM/PM references in res/layout/zzz_keyguard_screen_clock.xml, but when I try to recompile and boot, the phone will get just hang at a black screen after the boot animation.
Any help would be appreciated.
Thanks.

sujaanj said:
I absolutely love the SGSII lockscreen on TSM Resurrection. But instead of AM/PM being displayed properly next to the time, I get Jan./Feb. instead. Looks like something inside the XML files inside framework-res.apk is messed up. I tried decompiling the APK and removing the AM/PM references in res/layout/zzz_keyguard_screen_clock.xml, but when I try to recompile and boot, the phone will get just hang at a black screen after the boot animation.
Any help would be appreciated.
Thanks.
Click to expand...
Click to collapse
it would actually be a resource id in android.policy.jar in one of the sgs2 lockscreen files....if i get a chance this week or next ill flash the rom and edit the file

No sweat, I know this is pretty far down on the list of priorities. If I can somehow figure it out before you do I'll post the file here. Thanks for the pointer. Trying to understand how this stuff works a little better...

OK, after decompiling android.policy.jar, I need to edit UnlockClockGB.smali to fix the AM/PM, but I don't know enough Java to figure out what's going on in there. I only know Python. I'd just remove the AM/PM reference, but don't know which method to change to remove it.
Just for your information, I'll keep working.

Related

Status Bar Help

Hey everyone,
I am currently working on brightening up the status bar a little bit and adding some color however I cannot locate a resource I need. Does anyone know how to change the background of the status bar? See where the red arrow is point in the image:
Edit: The image is statusbar_background.9
It's in framework-res.apk > res > drawable-hdpi
And the image is called "statusbar_background.9.png". Even though it's a .9 you don't have to resign the status bar bg. But that's the only exception.
sorry, (basic question) I was going to try and do something simular to this also and I was wondering how I can resign these files and how I would install the new framework-res.apk?
I made myself a rom a while ago on my eris but I have forgotten most of the stuff on resigning apk's and making packages to flash and such.
thanks in advance,
ljbaumer
ljbaumer said:
sorry, (basic question) I was going to try and do something simular to this also and I was wondering how I can resign these files and how I would install the new framework-res.apk?
I made myself a rom a while ago on my eris but I have forgotten most of the stuff on resigning apk's and making packages to flash and such.
thanks in advance,
ljbaumer
Click to expand...
Click to collapse
Resigning file you'd need Eclipse, or you can use Xeudoxus's xUltimate draw9patch resign tool. Send me a PM if you need more info.

[Q] Need help modifying framework-res.apk or twframework-res.apk and services.jar

Hello, maybe this is the wrong thread but i seem to not be getting any help over at Q&A's... I'm porting a theme from the captivate forums and for some reason my dropdown notifications have a transparent background and the text is black as well for any popup window like when you long press the homescreen to get widgets, and wallpaper chooser, so i think i need to modify either the framework-res.apk or the twframework-res.apk but don't kno exactly what file to modify to either get the text to white or get a background on those things... if anyone would advice me i'd appreciate it... thanks
Also if anyone could guide me into modifying the services.jar to change the clock color i would also appreciate it...
THIS IS THE LINK TO WHAT IM WORKING ON
danalex0829 said:
Hello, maybe this is the wrong thread but i seem to not be getting any help over at Q&A's... I'm porting a theme from the captivate forums and for some reason my dropdown notifications have a transparent background and the text is black as well for any popup window like when you long press the homescreen to get widgets, and wallpaper chooser, so i think i need to modify either the framework-res.apk or the twframework-res.apk but don't kno exactly what file to modify to either get the text to white or get a background on those things... if anyone would advice me i'd appreciate it... thanks
Also if anyone could guide me into modifying the services.jar to change the clock color i would also appreciate it...
THIS IS THE LINK TO WHAT IM WORKING ON
Click to expand...
Click to collapse
you need to edit the .xml files.
for notification you need to edit statubar_expand.xml and files that has similar name to that xml. dont exactly remember what its called.
its in framework-res.apk/res/layout
the notification pulldown background is in
twframework-res.apk/res/drawable-hdpi
eunkipark92 said:
you need to edit the .xml files.
for notification you need to edit statubar_expand.xml and files that has similar name to that xml. dont exactly remember what its called.
its in framework-res.apk/res/layout
the notification pulldown background is in
twframework-res.apk/res/drawable-hdpi
Click to expand...
Click to collapse
Well for the notification pulldown background ive got the one i wanted... what im referring to is when u have a notification, for instance you downloaded something from the market and u get successfully downloaded that one notification has no background it is set to transpare t and the letters are black so i can really read what it says...
anybody wishing to help?
If it is an image you need to edit to be non-black/transparent the file I think you're looking for is called "status_bar_item_background_normal.9.png"
Change that to a totally opposite color and see if that's it?
If you mean editing the color of the letters then I do not know what to edit in the .xml file.
Hope I helped!
How can I modify the XML files? 'cause when I extract them from apk file, all of them are protected, I can't read any codes. Can anyone show me how to fully unprotected them?
P/s: I always get this error "An invalid character was found in text content. Error processing resource..." whenever I open xml file with IE.
vnthantai said:
How can I modify the XML files? 'cause when I extract them from apk file, all of them are protected, I can't read any codes. Can anyone show me how to fully unprotected them?
Click to expand...
Click to collapse
^^ +1.....
danalex0829 said:
^^ +1.....
Click to expand...
Click to collapse
they must be decompiled with apk manager
additionally when you recompile make sure to check the log as there will be several images that will be renamed from. 9.png to png you must use the draw9patch program found in the tools folder of the android ask to 9patch these images otherwise your apks will not compile correctly. Im on my phone now so I can't provide the necessary video link how ever simply go on youtube and search how to use draw9patch there is a very good beginners explanation (2 part) of what a 9 patch is and how to use the 9 patch utility
Sent from my AXURA powered Vibrant
are all of images in "res/drawable-hdpi" folder 9.png formated files? or just some of them?
vnthantai said:
are all of images in "res/drawable-hdpi" folder 9.png formated files? or just some of them?
Click to expand...
Click to collapse
it varies, they can be in any folder really, but generally speaking that is where you will find most of them. Just check the logs and you will know exactly where to find them and what they were named.
was anyone able to figure out to edit services.jar in order to change clock color?
aamir123 said:
was anyone able to figure out to edit services.jar in order to change clock color?
Click to expand...
Click to collapse
Here you go man. http://forum.xda-developers.com/showthread.php?t=940692
That thread will explain that part. Be careful with it though, and make a backup cas if you mess it up you'll get a boot loop as I did
am trying to edit the framework-res.apk
am trying to change the images of the slider (jog_dial_bg_rev.png) but when i save it and then install or move the .apk to system/framework folder
the phone crashes? has this got anything to do with the MD5?
all i wanna do is change the slider image based on the CM7 pro v20 ROM
my reason is because the black shadow covers the incoming call number
kashem58 said:
am trying to edit the framework-res.apk
am trying to change the images of the slider (jog_dial_bg_rev.png) but when i save it and then install or move the .apk to system/framework folder
the phone crashes? has this got anything to do with the MD5?
all i wanna do is change the slider image based on the CM7 pro v20 ROM
my reason is because the black shadow covers the incoming call number
Click to expand...
Click to collapse
Instead of extracting, Just open it with winrar or 7zip and drag and drop image in the 7zip window.
Sent from samsung vibrant

Problem modifying the call answer or decline slider

Hi,
I am a novice in Theming skills. I have just started with the basics. I was trying to modify the unlock slider and call answer/decline slider.
I am running GingerMod#5 with the stock motoblur theme.
I changed the following images in framework-res/res/drawable-hdpi
jog_tab_bar_left_end_confirm_gray.9.png
jog_tab_bar_left_end_confirm_green.9.png
jog_tab_bar_left_end_confirm_red.9.png
jog_tab_bar_left_end_confirm_yellow.9.png
jog_tab_bar_left_end_normal.9.png
jog_tab_bar_left_end_pressed.9.png
jog_tab_bar_right_end_confirm_gray.9.png
jog_tab_bar_right_end_confirm_green.9.png
jog_tab_bar_right_end_confirm_red.9.png
jog_tab_bar_right_end_confirm_yellow.9.png
jog_tab_bar_right_end_normal.9.png
jog_tab_bar_right_end_pressed.9.png
zz_moto_jog_tab_bar_down_begin.9.png
zz_moto_jog_tab_bar_down_end.9.png
zz_moto_jog_tab_bar_down_mute_begin.9.png
zz_moto_jog_tab_bar_down_vibe_begin.9.png
zz_moto_jog_tab_bar_left_begin.9.png
zz_moto_jog_tab_bar_left_end.9.png
zz_moto_jog_tab_bar_right_begin.9.png
zz_moto_jog_tab_bar_right_end.9.png
zz_moto_jog_tab_bar_right_mute_begin.9.png
zz_moto_jog_tab_bar_right_vibe_begin.9.png
zz_moto_jog_tab_bar_up_begin.9.png
zz_moto_jog_tab_bar_up_end.9.png
and few more for the slider. The unlock slider changed but the call answer/decline slider is still the blur one. Can someone point out to me which file to change? or am I changing the wrong ones.
Also, I wanted to modify the notification bar background at the top. So I tried modifying the following files. This does not work. Please point me to the correct file/configuration.
status_bar_header_background.9.png
zz_moto_status_bar_homescreen.png
zz_moto_status_bar_normal.png
Note: I have been careful with 9.png thing. The framework-res.apk decompiles and compiles properly i.e without error. framework-res.apk installs properly and there is no bootloop till now. Already tried wiping cache.
Thanks
Anupam
The answer and end call sliders are in the phone.apk status bar is in systemUI.
Sent from my MB860 using Tapatalk

Change pattern lock dots?

Hello,
I own a ZTE Crescent- Rooted/CWM recovery running CM7.
I was messing around with using CM9 and I like it but it isn't up for the kind of usage I'd like to use it for so I went back to CM7. One thing I really liked about CM9 was the pattern lock dots- On ICS they are a lot thinner and look slicker, whilst on GB they are thick and bulky and I dislike them.
So my question is; Would it be possible to flash a zip in CWM to change the pattern lock dots on my device? Or any other method?
Thanks,
Curtis.
It's certainly possible. You need to edit framework-res.apk. Within the apk, the images you want to edit I think are in /res/drawable-hdpi/(possibly in other drawable-XXXX folders as well). You need to edit/replace the following files I believe:
btn_code_lock_default.png
btn_code_lock_touched.png
indicator_code_lock_drag_direction_green_up.png
indicator_code_lock_drag_direction_red_up.png
indicator_code_lock_point_area_default.png
indicator_code_lock_point_area_green.png
indicator_code_lock_point_area_red.png
Not completely sure, you might be able to do it fairly easily with UOT Kitchen: http://uot.dakra.lt/kitchen/ (I can't check now as the kitchen is full, so I'm not sure if it supports theming the unlock pattern or not). If not, you can use apktool to unpack the APK, then edit the images you want changed, then repack it with apktool.
The other option is to use MetaMorph. It's an app you install on your phone for theming. Then download a lock pattern theme like this one: http://droidpirate.com/2011/01/15/metamorph-lock-pattern-liberty/, unzip it and replace the images inside with your own, then re-zip and use MetaMorph to install it. (Probably simpler than using apktool to manually edit the APK).
Thanks for the reply, I appreciate it!
I've gone with the metamorph option, seems much easier to do and I've used it once or twice in the past so I have a general idea on how to use it!
Thanks again
I couldn't find a theme for what I wanted- None even came close for Metamorph, so I decided to try and make my own. Unfortunately; I'm now stuck.
I copied the files you mentioned from the CM9 rom to the CM7 framework apk. I have the original CM7 framework app with the new icons in and a zip version of the framework with the files also in there. Now what should I do?
If anyone with more experience wants to take over then here are the files.
APK:
https://docs.google.com/open?id=0B5IQUxhoTn2XVVJiek01OGRNek0
ZIP:
https://docs.google.com/open?id=0B5IQUxhoTn2XWnRGVDhIdzRsa0k
I'd say the easiest way is to grab the metamorph theme I linked above, unzip it and replace the images inside with the ones you took from CM9. Then zip it back up and install using metamorph.
Trying it now, phone has just rebooted, time to check lock screen.
Edit-
Nothing has changed.
Hmm. I have no idea then, sorry.

[Q] Transparent notification background? (not dropdown window!)

I'm trying to figure out how to make the text of each notification in the dropdown window appear on a transparent background. I've figured out how to adjust everything else (toggle, status bar, and dropdown background transparency), but I simply cannot for the life of me figure out how to make the notifications actually have transparent backgrounds.
Is this not something modifiable from SystemUI.apk?
I've gone through a heck of a lot of .png files and looked through quite a few .xml files. Just can't figure this out.
edit: this part of the notification bar: http://s15.postimage.org/y8ad3u917/Screenshot_2012_10_03_17_59_49.png (from a different phone)
I've gone through a bunch of the SystemUI.apk files already, and now I've started going through framework-res.apk files. I can't compile framework-res.apk properly (not sure how to set two dependencies in apk multi-tool), so I've just been dropping files into the .apk and overwriting the originals.
In any case, I've made the following files transparent and still had no luck making the notification backgrounds transparent at all:
- notification_bg_low_normal.9.png
- notification_bg_low_pressed.9.png
- notification_bg_normal.9.png
- notification_bg_normal_pressed.9.png
Of course, those files aren't referenced by any of the .xmls in framework-res, but I thought I'd give it a shot. In fact, I have no idea what is actually being referenced for those backgrounds.
I opened up status_bar_latest_event_content.xml to see where it went, and it ends up pointing at transparent color values for non-pressed/focused notifications.
My completely unfounded and wild guess at the moment that the black background is a horrible mix of the #FF00FF00 and #FFFF00FF colors that are referenced in two separate places (the former is in colors.xml, the latter is in status_bar_latest_event.xml), but that would be ridiculous, since the latter never seems to reference the former. Argh.
Very confused.
Hi, u say u have figured most of the things in editing the system ui can you please help me?
I am trying to change the background in the notification pull down, i decompiled the systemui.apk i tried changing some images but when i put it back into my phone nothing happens
I can't find the correct file to change.
And i read somehwere that i have to change something in the xml file also to change the target to an image rather than a colour
The xml file is pointing to a colour (black)
How do i make it target to a image and after that where do i place the image file
I am running cm10
Btw i am sorry i couldnt answer ur question i just cannot find an answer to my question searched every where on xda, also the tutorial which are there, are for gingerbread.
Thankyou
I still need help figuring out the answer to this problem. Got horribly sick recently and haven't been able to put any more effort into figuring it out on my own, yet.
Help, please!
=======
Droidvenom said:
Hi, u say u have figured most of the things in editing the system ui can you please help me?
I am trying to change the background in the notification pull down, i decompiled the systemui.apk i tried changing some images but when i put it back into my phone nothing happens
I can't find the correct file to change.
And i read somehwere that i have to change something in the xml file also to change the target to an image rather than a colour
The xml file is pointing to a colour (black)
How do i make it target to a image and after that where do i place the image file
I am running cm10
Btw i am sorry i couldnt answer ur question i just cannot find an answer to my question searched every where on xda, also the tutorial which are there, are for gingerbread.
Thankyou
Click to expand...
Click to collapse
This is for stock, so I don't know if it will work in CM10. I somehow doubt it, but here's how it works in stock:
Decompile your SystemUI.apk and find the file "tw_status_bar_expanded.xml". It's in the res\layout folder.
Second line in the file should start with this:
Code:
<FrameLayout android:id="@id/notification_panel" android:background=
Replace whatever follows the android:background part with the file you want to use.
So, for example, if you changed status_bar_expand_default.png in the drawable-xhdpi folder into your background image, you'd write this (obviously without the red color):
Code:
android:background=[COLOR="Red"]"@drawable/status_bar_expand_default"[/COLOR]
and the full line would look like this:
Code:
<FrameLayout android:id="@id/notification_panel" android:background="@drawable/status_bar_expand_default" android:paddingTop="@dimen/notification_panel_padding_top" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="@dimen/notification_panel_margin_left"
I suggest you use a 9patch image for your background, so it expands and shrinks without getting stretched, but you can experiment with that yourself. The image I used in my example (status_bar_expand_default.png) is unused by the system, as far as I know, so it's a convenient image to use.
Bumping this again, still wondering.

Categories

Resources