yashsingh1/xdaforums huggingface dataset:
[Galaxy S II General] cbucz24:
I have a method for this but I'm at work right now. When I get home I'll share how it goes.

Probably should post it for [MENTION=369057]majdinj[/MENTION] to our since he's been super helpful
[Galaxy S II General] cbucz24:
ok here is my post. im being lazy and didnt want to type it twice...its how to add extra fonts to your system/fonts and be able to select them there without having to flash or add any new apks

http://xdaforums.com/showpost.php?p=47463793&postcount=564
[Galaxy S II General] glowerita:
Infact I havn't the layout-hdpi\keyguard_circlelock_clockwidget.xml in Layaut Folder. :(
[Galaxy S II General] cbucz24:
You wont have it in all the folders. But it will be in more than one, that I am for sure of...you may only need to change it in the one folder, but I always like to be safe and do it in all of them.

there is no telling sometimes what resolution everything likes to be at or has been programmed for...

I themed a pandora for myself, my wife, and teammates...for each different phone it took a diffferent set of icons to make it work. oh well
[Galaxy S II General] glowerita:
Yesssssssss. Sorry for my mistake.. :)

Tomorrow I'll Change Clock position. :) It's time to go bed 4 me now. :)
[Galaxy S II General] Javho:
Really thanks for the tut now my phone looks awesome :D, and I know how can I add more fonts in a closer future Hahaha xd
[Galaxy S II General] cbucz24:
Your welcome, glad to help :D
[Galaxy S II General] Javho:
hi all, anyone can help me with edditing the volume menu ? please,(appear when i upload/down the volume) i need change the background.. and all of them.Thanks in advanc
[Galaxy S II General] Goldie:
You mean the slide? That's tw scrubber and scrubber track in framework res
[Galaxy S II General] Javho:
yeah i think so its that :s, but not only the slider i need change the background (in the pick look in blue) also ... thanks for help :D
[Galaxy S II General] remuntada78:
for backgroung take a look for tw_dialog in framework-res ,but be careful they make change in powermenu popup too and in other popup dialog
[Galaxy S II General] cbucz24:
Lol, what goldie said too.

As far as the background, there's a ton of 9patch images in framework-res.apk.

What I've found is the best way to find things is to take a screen of the item your looking for so you can see exactly the colors, dimensions of lines, etc.

Obviously a 9patch isn't going to be the same size as your image. But using ur screen as reference, it helps being able to compare it.
[Galaxy S II General] Tired Storeman:
I would like to ask for some more help if i may.

After learning to edit .9.pngs, i am adding the Neat Rom log to the Settings Header on the settings screen of Neat Rom 5.3.1. with Blue Ginger Theme.

I have managed to achieve it, but i would like to make the logo slightly larger (see Screenshot 1)

I have added the Neat Rom logo to the tw_ab_transparent_dark_holo.9.png (see Screenshot 2)

I have made the logo as large as i can so that there is room for the 1 px black dot top and side, but the logo ends up to small.

I have played around with the black patch dots in different positions and lengths to try and make the logo larger, but to no effect.

My question is, is it possiable to use the black patch dots to make part of a png stretch larger and have a clear picture.

When ever i join multiple black patch dots i get bad patches when i check it with draw9patch.

I could always make a 480 wide png and put the logo on that, but i would have to also edit an xml file which would mean editing it every time i changed my rom version

It would be easier to flash an image only

Any help would be appreciated.
[Galaxy S II General] cbucz24:
Before you start scratching your head, yea I didn't like the size of the icons so I shrunk them an added more icons to the hotseat. :D

I just recently found out how to patch image files.

You can't do all images. But some do work.

See the alarm clock? It's a 9patch image but it contains clouds. The image basically has a big blank spot in the middle with 2 clouds on the sides. The patch is over the separation between the clouds on top.

On the left, it's above the clouds.

The image itself cannot stretch as it would never look right.

So your left with 2 choices now...

Either find a image you can separate accordingly.

Or make a fullsize image. I did that on my note3 samsungIME. It takes a 9patch background. What I did was create a whole picture an size it for the whole bg.

Then label the image keyboard.bg.9.png

The system doesn't know it's not really a 9patch. It doesnt try to stretch it cuz it's the full size.

Just experiment with image sizes until it looks right.
[Galaxy S II General] glowerita:
Hi guys! How can I change the background image in ''setting menu'' (like in Neat rom, for example)? Thanks. :)

Inviato dal mio GT-I9100 con Tapatalk 2
[Galaxy S II General] Jeetu:
If you are using Neatrom than you can use my neatrom aroma . Click on my signature. ;)
[Galaxy S II General] remuntada78:
you can do it like Jeetu said otherwise normally the png is tw_background_holo_dark in framework-res\res\drawable-nodpi but be careful it change other background like in dialer ,conctacts
[Galaxy S II General] Tired Storeman:
[MENTION=4644111]cbucz24[/MENTION] I just wanted to thank you for your tip about using a full size image and renaming it .9.png, worked like a charm:highfive:

I played around with Neat Roms "status bar close png" and resized it to the correct size and renamed it tw_ab_transparent_dark_holo.9:victory:

"Why", you might ask,................Just because i can, :silly:
[Galaxy S II General] Goldie:
https://www.youtube.com/watch?v=zmyKvGONb3k&feature=youtube_gdata_player

....tried again for transparent lockscreen and finally got it! First one since sammy jb I think. It used to be easy on ics and gb but since jb ive always failed. It only worked on aosp based. Not anymore! :D
[Galaxy S II General] engloa:
What code did you change?

Would be cool if you can give a hint as I've abandoned that,nothing i tried worked:p closest i got was a white blank screen
[Galaxy S II General] Goldie:
I tried allsorts before but thought I would try a different way. It works on aosp by editing WindowAnimator and KeyguardViewManager but the stuff to edit doesn't exist in Sammy so I figured I needed to port those 2 files from aosp. That was pretty easy just a method or two missing. That gave a black screen though.

Then in WallpaperWidget and EnhancedWallpaperWidget I setAlpha to 0x0 for all the mlockscreenbackground and bingo!

I need to clean up the code though as it probably only needs one setAlpha. Will post once I know exactly which to change.

Oh and it doesn't affect ripple. And you dont need a transparent wallpaper image. With a normal image set ripple works as usual and other locks become transparent :)
[Galaxy S II General] Many40:
Hi,

Short question: I try to change a simply thing (I thought) - "Flight mode" text in Power menu. So I found a corresponding line in framework-res.apk/res/values/strings.xml, edited and recompiled. However the text stays still unchanged. Has someone got an idea if I should change something more?

Thanks
[Galaxy S II General] engloa:
Maybe the string is also defined in other values language folder like values-en...

Edit: I see that string also inside values-en-rGB so you'll need to change that too
[Galaxy S II General] remuntada78:
Hi to all ,can someone help me with this?http://xdaforums.com/showthread.php?p=47591323#post47591323
[Galaxy S II General] Goldie:
E/PackageParser( 2200): Package com.sec.android.app.launcher has no certificates at entry AndroidManifest.xml; ignoring!

W/PackageManager( 2200): Failed verifying certificates for package:com.sec.android.app.launcher

What did you mod?
[Galaxy S II General] remuntada78:
I tried to implement a set text color for the popup menu

Inviato dal mio GT-I9100 utilizzando Tapatalk
[Galaxy S II General] Goldie:
Replaced original manifest? Im not familiar with odex mods. Have you modded apks in this way before?
[Galaxy S II General] remuntada78:
Yes i always do in this way , there are only 2 more steps deodex and reodex , next time i'll try to replace with the original manifest

Always thank you

Inviato dal mio GT-I9100 utilizzando Tapatalk
[Galaxy S II General] glowerita:
I modified the file, but when I go to replace the Framework-res.apk the Galaxy enters in bootloop.

This happens because I have to keep the original "resource.arsc" and the "AndroidManifest "?

I use APKTool and the program did not give me any error in the recompilation.

Can Someone help me? : O
[Galaxy S II General] Spannaa:
Did you set the correct permissions on framework-res.apk when you replaced it?

Another way to do it would be to extract the single modded xml from the recompiled apk and drop it into a VRTheme zip.
[Galaxy S II General] glowerita:
Yes, of course. The permissino was ok in replacement. :p

I don't understand the Botloop reason. APKTool doesn't give me any error recompiling the APK. :(

VRTheme zip? Where can I find it?

Thanks. :)
[Galaxy S II General] cbucz24:
If your modifying an xml you shouldn't need to be concerned with the arsc file. Just change the xml file, recompile, drag the manifest, pow.

Only time is when you edit bools, dimens, etc
[Galaxy S II General] glowerita:
Then... The problem may be that I've to drag the Original Manifest in the APK after recompiled it? Is it correct?
[Galaxy S II General] Many40:
Hi,

What I do I always pull original META-INF and AndroidManifest and put them to a recompiled apk.
[Galaxy S II General] glowerita:
Ok, got it. Thank you all. :fingers-crossed:

Last question, sorry. You are all very nice and I take this opportunity...

To get the clock in the Lock Screen Not in the middle, but at the bottom left ... What values ​​should I set?:D
[Galaxy S II General] Spannaa:
Lol.

Look at the margins...
[Galaxy S II General] glowerita:
Yeah... I can lower it (increasing the 150dpi value), ok... but to bring it completly to the left too .. how should I do?
[Galaxy S II General] engloa:
try setting android:gravity="left" in layout/keyguard_screen_tab_unlock.xml

thats what i do to get it centered;)
[Galaxy S II General] remuntada78:
Ok putting original AndroidManifest.xml in the modded SecLaunche2.apk the installation work but i am disappointed because the mod i've implemented doesn't work:mad:

Inviato dal mio GT-I9100 utilizzando Tapatalk
[Galaxy S II General] Goldie:
Post the code :)
[Galaxy S II General] remuntada78:
I tried to implement set text colorl with colorpicker in popup menu

I'm not sure for the smali but i tried with ListMenuItemView.smali

the original code was:

.method public setTitle(Ljava/lang/CharSequence;)V
.locals 2
.parameter "title"

.prologue
const/16 v1, 0x8

.line 119
if-eqz p1, :cond_1

.line 120
iget-object v0, p0, Lcom/android/launcher2/popup/ListMenuItemView;->mTitleView:Landroid/widget/TextView;

invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

.line 122
iget-object v0, p0, Lcom/android/launcher2/popup/ListMenuItemView;->mTitleView:Landroid/widget/TextView;

invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

move-result v0

if-eqz v0, :cond_0

iget-object v0, p0, Lcom/android/launcher2/popup/ListMenuItemView;->mTitleView:Landroid/widget/TextView;

const/4 v1, 0x0

invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

the modded code was:

.method public setTitle(Ljava/lang/CharSequence;)V
.locals 5
.parameter "title"

.prologue
const/16 v1, 0x8

.line 119
if-eqz p1, :cond_1

.line 120
iget-object v0, p0, Lcom/android/launcher2/popup/ListMenuItemView;->mTitleView:Landroid/widget/TextView;

invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

[COLOR="Red"] invoke-virtual {p0}, Lcom/android/launcher2/popup/ListMenuItemView;->getContext()Landroid/content/Context;

move-result-object v2

invoke-virtual {v2}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v2

const-string v3, "text_color"

const v4, -0x1

invoke-static {v0, v3, v4}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v2

invoke-virtual {v0, v2}, Landroid/widget/TextView;->setTextColor(I)V[/COLOR]

.line 122
iget-object v0, p0, Lcom/android/launcher2/popup/ListMenuItemView;->mTitleView:Landroid/widget/TextView;

invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

move-result v0

if-eqz v0, :cond_0

iget-object v0, p0, Lcom/android/launcher2/popup/ListMenuItemView;->mTitleView:Landroid/widget/TextView;

const/4 v1, 0x0

invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
[Galaxy S II General] Goldie:
Not sure from memory if right file but this line....

invoke-static {v0, v3, v4}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

Should be...

invoke-static {v2, v3, v4}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

The ContentResolver is in v2 not v0. v0 is the TextView :)
[Galaxy S II General] remuntada78:
You're right:good: , but like before this mod has no effect in any place in my launcher:confused:
[Galaxy S II General] gaosphappy:
Hi guys I have a question if I may....

I'm trying to pull res/values/(ANY FILE).XML but can't find the values file in the apk. I plan to put it in a .zip so need it to be a compiled xml . so my ? How do I get that compiled file or is there a way to compile the XML on its own. TIA
[Galaxy S II General] Spannaa:
By "I plan to put it in a .zip", do you mean a VRTheme.zip?

The res/values folder is compiled into resources.arsc so, if you decompile the apk and then mod anything in this folder, you'll need to include resources.arsc from the recompiled apk in the zip ;)
[Galaxy S II General] gaosphappy:
thanks for the reply m8.... this leads to hopefully the last question.... Lets say for example i wanted to put framework/res/vaules/dimens.xml into a vrtheme.zip how would i go about this. My guess is as you say putting the resources.asrc file in the zip or the whole apk. but being a total noob at most (all) of this i'm unsure. I'd much rather just the .xml at best just the values folder were would this file go (vrtheme/system/framework/framwork-res.apk ? ) Help i'm getting a headache just thinking about this now :laugh::eek:

*edit* i just read that back... did i answer that myself???
[Galaxy S II General] Goldie:
Bear in mind putting resources.asrc into a vr type theme will make it firmware specific. If the dev changes anything in ids or adds to the resources flashing it may cause the mod to be removed or a loop or fc and mod would need redoing for each version :)
[Galaxy S II General] Spannaa:
Probably :good:

The only way to add an xml from the values folder to a vrtheme zip is to include the resources.arsc from the recompiled apk (and any smali changes mean you have to include classes.dex)

Yep ;)
[Galaxy S II General] cbucz24:
Yes, to add to this...

This also makes it rom specific. As [MENTION=3065070]Goldie[/MENTION] said, anytime a dev changes the xmls in those sections and yours isn't updated it will break the system.

Making generic mods an themes are difficult at best. Best idea is include the whole apk. That's the only way to assure it will work.

But...that will also remove any mods done to that apk as well. And...if there are any dependencies on items in that apk, that will also cause fc.

Biggest apks to be careful with are systemui.apk and framework-res.apk. those are typically the files edited most...
[Galaxy S II General] Spannaa:
Agreed, but what's the pint of including a whole apks when only a few files have been edited in each?

If it's made clear exactly what device/rom the vrtheme is made for and there's a revert zip provided to get back to stock, I don't see the problem.

(Unless you include users that don't bother reading the OP of the theme's thread).
[Galaxy S II General] cbucz24:
Lmao, ok what planet are you on that you think people read anything even resembling instructions?

Yea that's a rough one to say. I made 5 themes for one of our roms. As we updated the rom it got harder and harder to keep up.

To the point now, if you flash one it just breaks everything. :(
[Galaxy S II General] Spannaa:
TBH, if people flash zips without knowing what what they're for and then have issues, that's their problem.

Yep, unfortunately, themes usually need completely re-making every time a rom is updated - lots of work and a barrage of demands for the update.

Luckily, some people appreciate the effort ;)
[Galaxy S II General] Javho:
Deleted
[Galaxy S II General] reza2388:
Nice thread .. And Friendly guide :o
[Galaxy S II General] Javho:
hi all, anyone knows how can i add the dividers for the blue section ?, thnaks in advance :)
[Galaxy S II General] Many40:
Hello everybody,

I have short question: has anyone tried recently to add something to riple lockscreen? Are there any limitations to do so? I'm asking this because yesterday I was fighting with framework-res.apk/res/layout/keyguard_circlelock_main.xml, trying to place there a "next alarm time" text but it always failed (recompiled but text didn't appear). Strange because similar code works on AOSP lockscreen.

Or maybe I chose incorrect xml ... :confused:

Thanks in advance.
[Galaxy S II General] Goldie:
What did you add and where?
[Galaxy S II General] Many40:
Thanks for your quick reply. Sorry, I couldn't reply back earlier.

I just took this line from keyguard_screen_tab_unlock.xml (made very small modification):

<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:ellipsize="marquee" android:id="@id/alarm_status" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />

and placed it just below this in keyguard_circlelock_main.xml:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:id="@id/circle_lockscreen_root" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:id="@id/circle_lockscreen_clock" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true" />

Result - nothing displayed.

Afterwards tried to put into the same place following line (just to see if a basic text can be displayed in there):

<TextView android:textColor="#ffe6e6e6" android:gravity="center" android:id="@+id/test_text" android:text="Test text" android:layout_width="wrap_content" android:layout_height="wrap_content" />

and text was displayed properly.

I tried with "alarm_status" in similar way like for "test_text" but it didn't help.

Have no idea why an "alarm_status" info can be dispalyed on AOSP lockscreen but not on Riple lockscreen. Maybe it's related to "alarm_status" andoid id but can't figure out how so far.

Thanks for any hints.
[Galaxy S II General] Goldie:
Alarm is set by keyguardstatusviewmanager in aosp lock. There is no call to it in ripple. Maybe thats why :)
[Galaxy S II General] Many40:
Don't laugh at me plaese ;):D

I've just started learning - long way in front of me :)

Thank you very much Goldie - you are too good to me.
[Galaxy S II General] Goldie:
Lol. Im guessing mate. Dont take my word for it. Especially as I would expect a loop rather than blank space! :D
[Galaxy S II General] Tired Storeman:
Would anybody be able to tell me the name of the .9.png highlighted in screen shot 1

and would anybody be able to tell me which xml file controls the width of the toggle on off indicators,

i would like to reduce their width screen shot 2
[Galaxy S II General] Spannaa:
Can't remember exactly where the first one is but it'll be in the drawable-sw320dp-hdpi folder of either SecPhone or SecContacts.

The second ones are tw_quick_panel_off.9.png & tw_quick_panel_on.9.png from SystemUI.apk so, to shrink the displayed part, you'll need to edit the images and the 9 patches.
[Galaxy S II General] Tired Storeman:
Hey mate, thanks for the reply,

the blue part of the png is 1pxl x1pxl,

i didnt think it was possible to make it any smaller.

thats why i was hoping to find where the .9.png had its size set, so i could reduce the stretched size
[Galaxy S II General] Spannaa:
But the .9.png doesn't have to be 1x1 (or 3x3 if you include the patches).

As long as the .9.png you use isn't longer than where you want to use it, it'll be fine.

For example, it could be 21x1 (or 23x3 with the patches), the two ends being 10x1 transparent, the middle pixel being blue and just this pixel being stretched.
[Galaxy S II General] Tired Storeman:
So what sets the finished size of the middle blue pixel, isnt there some where that tells it to stretch to say 10 pixels wide and 2 pixels high for example
[Galaxy S II General] Tired Storeman:
i finally figured out the first part of my post

it is tw_tab_selected_bar_holo.9

in framework-res/res/drawable/hdpi
[Galaxy S II General] Spannaa:
:o I got that one wrong then...

It looks like they're set in \layout\tw_quick_setting_button.xml & \values\dimens.xml

<ImageView android:layout_gravity="center" android:id="@id/btn_status_image" android:paddingLeft="4.0dip" android:paddingTop="@dimen/quick_setting_button_status_padding" android:paddingRight="4.0dip" android:paddingBottom="@dimen/quick_setting_button_status_padding" android:layout_width="fill_parent" android:layout_height="@dimen/quick_setting_button_status_height" android:scaleType="fitXY" android:drawable="@drawable/tw_quick_panel_off" />

<dimen name="quick_setting_button_status_height">8.0dip</dimen>
<dimen name="quick_setting_button_status_padding">2.0dip</dimen>

So width = "fill_parent" and height = "@dimen/quick_setting_button_status_height" which is 8.0dip and there's 2.0dip of padding on the top & bottom and 4.0dip of padding on the left & right.
[Galaxy S II General] Rekjezt™:
Any one have guide 4.2.2 status bar for 4.1.2:what:
[Galaxy S II General] Goldie:
http://xdaforums.com/showthread.php?t=2366476
[Galaxy S II General] avirk:
http://xdaforums.com/showthread.php?p=43660827

That is what I have atm, may be any other and better guide could be refer by other experienced user.

[MENTION=2911923]Tired Storeman[/MENTION] buddy you have great idea's yoi work so hard. Any chance for looking at cook at your own ROM? :p :D

Sent from my GT-I9100
[Galaxy S II General] Goldie:
I know a good rom that needs porting to new fw and some brand new mods adding.... :rolleyes::D
[Galaxy S II General] avirk:
So you want to use my talent on modding to port a new fw. :D

You know mate I'm not that great nodder like you or others are here. ;)

Sent from my GT-I9100
[Galaxy S II General] Goldie:
Just hunting for someone to carry on alliance on s2 so I can focus on trying new mods. Keeps coming back to me that it needs to be moved to latest fw and all our new mods adding. ;)
[Galaxy S II General] Tired Storeman:
I dont think i am up to that standard yet, i am okay at modding other peoples work,

where i can make a backup and play around with things,

and try putting this here and that there, sometimes it works, sometimes it doesn't.

But not so good at making things from scratch.

I can edit xml's but not smali.
[Galaxy S II General] Rekjezt™:
ask

:ohai there...

any one have a guide for add stock toggle samsung 4.1.2??

thanks.
[Galaxy S II General] cbucz24:
http://xdaforums.com/showthread.php?t=2038675

Think I copied the right one. It's a thread by [MENTION=369057]majdinj[/MENTION]
[Galaxy S II General] ildar2099:
How to add an application to settings ?
[Galaxy S II General] engloa:
http://xdaforums.com/showpost.php?p=47555493&postcount=8