yashsingh1/xdaforums huggingface dataset:
[Galaxy S II General] ch3mistry2222:
Hi, any u guys here know how to build long press menu to go to google search or kill apps???

Thanks for ur help
[Galaxy S II General] Jeetu:
Here you go - http://xdaforums.com/showthread.php?t=2255500
[Galaxy S II General] SkyaTura:
Does anyone knows where I find this circle? (Is that option of developers settings which show where we touch)

View attachment 2356252
[Galaxy S II General] glowerita:
Sorry for the silly question, but I really don' t find any solution. I found a topic related to the Nexus, but the method doesn't work.

Let me explain: I would like to eliminate the Dividers in the menu settings (see attached photo).

I tried to decompile the framework-res.apk, edit Dividers (are PNG.9), recompiled framework-res.apk (with APKTOOLS), but nothing change about the Dividers. At this point I think that I have to change some string, but do not know where.

Can anyone help me? Thank you.

P.S.I opened a new topic in the Help section & Troubleshooting Galaxy S2 (http://xdaforums.com/showthread.php?p=46909048#post46909048). Jeetu advised me to post my question here.. :)
[Galaxy S II General] MyLifeRocks10:
Which 9.png did u change? If IRC it should be list_divider_holo_dark.9.png but for TW it may be tw_list_divider_holo_dark.9.png. Try changing both.
[Galaxy S II General] glowerita:
Don't remembr and now I can't ceck (I'm at work). Those PNG are allways inside Framework-res, isn't it? Thanks for now. :)

Inviato dal mio GT-I9100 utilizzando Tapatalk
[Galaxy S II General] glowerita:
I've change those, the onlyone possible. I'm on JB 4.1.2 Stock Samsung.

1) tw_divider_horizontal_dark.9

2) tw_divider_popup_horizontal_holo_dark.9

3) tw_divider_popup_horizontal_holo_light.9

4) tw_divider_popup_vertical_holo_dark.9

5) tw_divider_popup_vertical_holo_light.9

6) tw_divider_vertical_dark.9

7) tw_divider_vertical_dark_switch.9

8) tw_divider_vertical_holo_dark.9

9) tw_divider_vertical_holo_light.9

With Paint.net I've delate the color inside the Offset.

I've replaced all these Files with the Originals in "framework-res.apk".

Replaced "Framework-res.apk" with a Root Browser in correct Directory.

Restart Phone.

Nothing change.

Question: is enough to edit these files and replace them after the change... or I have to decompile APK (framework-res), make the changes and recompile all to get the result? Is it the same?
[Galaxy S II General] gaosphappy:
I'm a mere novice but i'm sure you need to decompile to edit .9png. good luck
[Galaxy S II General] cbucz24:
You are correct, to do it properly you should decompile, edit, then recompile.

But keep in mind since its a 9patch file that you have to keep the patch marks on the edges.

One thing I like to do after editing a 9patch is check it in the draw9patch program. It tells you if it's good or broken.

It also will help you determine where your text is going to layout
[Galaxy S II General] glowerita:
Thank you. Yes, I have kept unchanged all the offsets, of course.

The strange thing is that,after changed the PNG and repositioned in the new "framework-res.apk", if with a Root Browser I enter in "framework-res.apk/res/drawable-hdpi phone ... I see the PNG modified, but the lines in the menu "Setting" remain. Do not understand. :crying:
[Galaxy S II General] HighlanderZA:
Did you look at the 15 divider_xxxxx files that are in drawable-hdpi in FW as well?

I'm not sure which ones are used here, but they are worth checking I think!
[Galaxy S II General] glowerita:
In framework-res.apk there are 2 Groups of Divider. Firstone has 15 png, second one 9. I've change both. ;)

Inviato dal mio GT-I9100 utilizzando Tapatalk
[Galaxy S II General] Tired Storeman:
Hey mate, i use this to remove the dividers, all i did was delete the color from the pngs, unfortunatly the .9 patches have been removed as well, but it does the job.

If anybody wants to fix the .9 patches, go for it( Unfortunatly i cannot make .9.pngs)

As always, make a backup before you flash.
[Galaxy S II General] glowerita:
Have I to Flash the Zip from CWM?

Which Rom belong the Screen You Post? :)

Thanks. :)
[Galaxy S II General] Tired Storeman:
Yes flash from cwm, ss is from Neat Rom 5.2. The zip should work for aosp and stock roms.
[Galaxy S II General] glowerita:
Just Flash Zip. The Winner Is... YOU!!! :laugh::laugh::laugh:

It works! :laugh::laugh::laugh:

You're a Big! Thank you!!! Thank you!!! Thank you!!! :laugh::laugh::laugh:
[Galaxy S II General] Tired Storeman:
Glad I could help,
[Galaxy S II General] glowerita:
You Know which are PNG to remove the grey lins around Switch too? (Wi-Fi ON/OFF, Bluetooth ON/OFF ecc...).
[Galaxy S II General] Tired Storeman:
I think so, can you take a screenshot and highlight exactly the ones that you want to remove for me, just so we are talking about the same ones?
[Galaxy S II General] glowerita:
Thanks again. :)
[Galaxy S II General] Tired Storeman:
Yes i think so, leave it with, and i will see what i can do for you, if that is okay.
[Galaxy S II General] remuntada78:
ciao Massimo i think for switch is one of the tw__switch_bg.9.png in framework-res
[Galaxy S II General] glowerita:
N1m0Y?? :laugh: Hi!

Now I search about for. Thanks. :)
[Galaxy S II General] cbucz24:
Lol you ever get your files patched?
[Galaxy S II General] glowerita:
Yes Yes Yes! I hate all the unnecessary gray lines. :D :cool::p

I miss to eliminate only the vertical one, near the buttons. :mad:
[Galaxy S II General] remuntada78:
no N1m0y. was that the png?
[Galaxy S II General] glowerita:
Yes, it works! :laugh: As mentioned in the previous post I've left only the vertical line next to the buttons. You know their PNG's name?

P.S. How do you know my "Androidiani' s name"? I know you? :p
[Galaxy S II General] remuntada78:
i don't know for the vertical line i'm sorry.

I'm nicola78 :D
[Galaxy S II General] glowerita:
Big Nicola!!! Big! Big!!! :laugh::laugh::laugh:

Thanks again. :)
[Galaxy S II General] Tired Storeman:
Remove Grey Line From Beside Switches

To remove the grey line from the left of the switches you can flash this zip by [MENTION=2948558]Spannaa[/MENTION]

A big thankyou to spannaa for making this zip:good:

It will remove the grey line and add "On" and "Off english text to the switches.

If you do not want the On and Off text, open zip with winrar or similar and delete everything

except

tw_divider_vertical_holo_dark.9.png

BEFORE YOU FLASH THE ZIP

from vrtheme/system/framework/framework-res.apk/res/drawable-hdpi.

As always make a backup before you flash.

I did not make this zip, i am simply reposting spannaa's work.
[Galaxy S II General] Tired Storeman:
No, still trying:eek:
[Galaxy S II General] cbucz24:
Zip em up an I'll do them for you in the morning.
[Galaxy S II General] Tired Storeman:
Thanks mate, i would appreciate that:good:
[Galaxy S II General] glowerita:
Very very Thanks to spannaa (he help me in another mod too), but an another Mega Thanks to you for all your kindless and your help. :)

P.s I love Australia I've direct parents here.

Sorry little OT. :p

Edit: [MENTION=4644111]cbucz24[/MENTION] A Big thanks to You too. :):laugh::)

Inviato dal mio GT-I9100 utilizzando Tapatalk
[Galaxy S II General] gaosphappy:
[MENTION=4608459]bombaybadboy[/MENTION] If i may be so bold? For some time now i have been using a guide to modify the lock screen to full screen and with transparent status bar.

If i may i would like to personalize this mod to the s2 with relevant links and were thanks must go.....

Firstly the link to the original mod HERE [MENTION=4948919]xperiacle[/MENTION] has put together an awesome guide and it has been a bible to me and the version i have used on my s2 ever since i found it (probably through this thread) so ALL thanks to him and you.

As you will see in his guide you need to decompile android.policy.jar for this i use VTS an awesome app that is free but one i hope to soon and is very much worth a donation too.

If you follow the guide posted and decompile etc all i need to tell you is that the first part

will give you transparent status bar on Full lock screen. You need only search for 0x100800 (its the only mention) in keyguardveiwmanager.smali

and change it as above.. (You do however, As mentioned. need to have a transparent status bar on home screen)

for the FULL lock screen with NO status bar (The sencond part of the guide) you need only search for

there are a few mentions of this but only one that i have found with

after the

and

and pop the red text in the correct place.

I would like to point out and affirm that this is not the first time i have mentioned this guide for thanks or indeed thanked it. I hope only that my little bit of added information will help some body with an S2 continue were i have started with all the thanks to the tread above.

this truly is one of the simplest smali mods anyone will ever do and is well worth a crack at for any beginner.

I'd like to finish by saying that if i can help or have missed out anything then please PM me all reasonable requests are answered and also thank you [MENTION=4608459]bombaybadboy[/MENTION] for this awesome guide without which i would not be as far along today as i am :good:
[Galaxy S II General] cbucz24:
alright, here ya go..

fixed

Few pointers for you.

images have to be larger than 1x1px. they have to be minimum 3x3 or 4x4. reason is the actual patch takes up room. the patch itself is 1px wide on each side. the patch app will fail opening it if there isnt enough room to draw it.

second, when your patching files, make sure the directories they are in do not contain any spaces or special characters in any point. this means no matter how deep in a directory, they cannot have any of these. the patch app cannot recognize these items and will fail saying it cannot find the specified file.

thats probably the 2 biggest things ive found that took forever to figure out. there isnt much documentation what so ever on this app...and nobody really made a better one so were stuck using this crap...

either way, heres your patched files. :laugh:
[Galaxy S II General] glowerita:
The png that I Flashed before works anyway correctly, without any problem. :eek:
[Galaxy S II General] cbucz24:
Well with a fully transparent png it's a little different. There isn't an image it's attempting to stretch.
[Galaxy S II General] Tired Storeman:
Thanks mate, really appreciate the .9.png's, and thankyou for the lesson, :good:i will go and try some more patching.

---------- Post added at 05:00 AM ---------- Previous post was at 04:55 AM ----------

No there isnt any difference visually, but it stuffs up decompiling the apk, (cannot find .9 patch in so and so, converting to .png):eek:
[Galaxy S II General] Tired Storeman:
Hey mate, have you been able to remove the grey switch background as yet?
[Galaxy S II General] glowerita:
Hi, friend! :) Yes, all now is like I really wanted.

A big thanks to [MENTION=2948558]Spannaa[/MENTION], [MENTION=3185822] remutanda78[/MENTION], [MENTION=4644111]cbucz24[/MENTION] and in first YOU about help and great utility in this my little project. :)

Inviato dal mio GT-I9100 utilizzando Tapatalk
[Galaxy S II General] glowerita:
Edit: text ON-OFF in Toggle is very Nice too! :D

Inviato dal mio GT-I9100 utilizzando Tapatalk
[Galaxy S II General] Tired Storeman:
I have just taken a video screen capture to help ask a question, can anybody tell me what format it needs to be, to be able to upload it to xda, i cannot figure it out from the available upload options, i used Screencast to make the capture?
[Galaxy S II General] avirk:
Upload on Youtube and link here will do the job mate.

Sent from my GT-I9100
[Galaxy S II General] Tired Storeman:
I dont know if anybody has noticed it or not

but when you press the power button and the device options screen pops up,

some sort of overlay covers the screen, i guess so you can read what is in the popup.

My question is does anybody know what the name of this overlay is and its location,

i am wanting to change its color.

I thought it might have been

"screen_overlay_bg_layer.png"

in Framework/res/drawable-hdpi,

i have tried changing its color, but that had no effect.

Please see video screen capture below.

Any insite to its where abouts would be greatly appreciated.

It is a fairly short video, so if you dont see the overlay at first,

hide the video then show it again and you will be able to play it again.

[youtube]kgS1lo0HWoY&feature=youtu.be&noredirect=1[/youtube]
[Galaxy S II General] Goldie:
I would guess this is not an overlay but a dimming in the same way that dropdown dims the screen (the one that can be toggled in alliance). In which case it will likely be in GlobalActions smali
[Galaxy S II General] Javho:
Hi anyone knows if is possible make a transparent status bar but when I stay in the lock screen I never see in the notification area the wallpaper of my launcher...please

Enviado desde mi GT-I9070 mediante Tapatalk
[Galaxy S II General] gaosphappy:
A page maybe 2 back. Posted by me. Just do the first part! :confused:
[Galaxy S II General] Javho:
Yep I found it xd, now I have two Q more :(, the first is if possible the status bar make black in apps, because when I enter in the play store the status bar is white ...and I like more black, but when I stay in lock screen or launcher I prefer transparent...

And the second Q is how can I elimated the carrier name for the notification window ...

Thx for everything guys :D

Enviado desde mi GT-I9070 mediante Tapatalk
[Galaxy S II General] HighlanderZA:
On Q1 can't help much!!!

On Q2:

Edit tw_status_bar_expanded.xml - it's in SystemUI.apk

and change the code at the bottom:

<com.android.systemui.statusbar.phone.CloseDragHandle android:layout_gravity="bottom" android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="33.0dip">
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<RelativeLayout android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="@dimen/tw_close_handle_height" android:src="@drawable/tw_status_bar_close" android:scaleType="fitXY" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="left|center" android:layout_gravity="bottom" android:id="@id/carrier_label" android:layout_width="fill_parent" android:layout_height="@dimen/tw_close_handle_height" android:layout_marginBottom="8.0dip" />
</RelativeLayout>
</LinearLayout>
</com.android.systemui.statusbar.phone.CloseDragHandle>
</FrameLayout>

Put something like

android:visibility="gone"

in the code for the Carrier ID and it should disappear - experiment until you get it right.
[Galaxy S II General] remuntada78:
Hi for the second Q open SystemUI\res\layout\tw_status_bar_expanded.xml and delete the red line:

<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="@dimen/tw_close_handle_height" android:src="@drawable/tw_status_bar_close" android:scaleType="fitXY" />
[COLOR="Red"] <TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="center" android:layout_gravity="bottom" android:id="@id/carrier_label" android:layout_width="fill_parent" android:layout_height="@dimen/tw_close_handle_height" android:layout_marginBottom="10.0dip" />[/COLOR]
</RelativeLayout>
[Galaxy S II General] gaosphappy:
On first point your only real option that I know of is to mess with the transparency level and try find a balance between full and none try 25% will gray the lock screen a bit but you'll just have to strike a balance. Having both is not possible ATM AFAIK. Good luck.
[Galaxy S II General] Spannaa:
Hi Namoi,

Thought we might see you here!

One for [MENTION=3973489]engloa[/MENTION] maybe...
[Galaxy S II General] bombaybadboy:
Sorry I found a really good guide, not quite for our devices but close enough and added it to OP, BryanChia you really need to have a look at it. Its called the ultimate guide on first post.

Yes that sounds out of my league defo a job only engloa could handle :)

Edit:- could be handy to see the mod, it would help more than just a description
[Galaxy S II General] Namoi:
Well, yeah i took my time but i think this great thread is most appropriate ;) all of you here ... just hope Goldie could join the show :)

Just hope we could achieve something, as i am very doubtful that we will have 4.2 and have to stick to this CM ported powerwidget on SGS2.

Cheers

Edit: didn't saw Sun post : most appropriate :) should go to the Meme thread, but it would be kind of private joke :)

Well, i have a lot to say to Bryan : a nice guy which "suffered" a kind of hard start in Neat ;) but I am sure will become a great contributor. :)

Just need to takes the time to read and to understand what he is trying to do, but i am sure he will be even greater... as he proved already.

:thumbup: to him and all of you.

I would like to have more time to participate more as i enjoy your company a lot.

Thanks to Sasha for all of this to happen.

Cheers
[Galaxy S II General] engloa:
Lol :D:D

[MENTION=4296852]Namoi[/MENTION], didn't know about that problem. Will look at it ASAP.

Just curious, you were pretty adamant that it's the fault of SystemUI, have you checked without the 23 toggle mod? Does the same thing happen?

Sent through my Neighbor's Open Wifi.
[Galaxy S II General] Namoi:
Hi Engloa,

Well if you refer to the stock Sammy toggles, they don't provide that kind of ... toggles.

I am sure the problem arised since JB (except the leak as i didn't tried it.)

... Sorry, have to go right now or wife will kill me ;)
[Galaxy S II General] electricsheepdreamer:
Hi Namoi and all,

Sunny :D

Is this the bug you're talking about.

http://xdaforums.com/showpost.php?p=35970145&postcount=1912
[Galaxy S II General] Namoi:
Hi ESD,

Well yes it seems it is the same. I missed it... i follow this thread "religiously" though ;)

BTW, it was also reported in the wanamlite thread about decompiling/recompiling lidroid for JB without answer from Wanam...

Can provide the link, but i am sure you know that thread.

But as the one used in JB Reloaded must be build from Wanam tuto or cherry picked (with all respect to Crussader, but why redoing something already done ) from one who build it refering to the same thread, we eventually have all the same buggy version.

This one is kind of tricky. If it works on AllianceRom (to be confirmed) , i am sure Goldie found a way as the powerwidget used in Alliance is based from CM powerwidget or trunked from the one ported initially by Lidroid for GB then moded by Wanam for ICS and lately (with bugs indeed) for JB... and as we know, systemui from Alliance is based on stock sammy AFAIK.

Cheers and thanks for supporting this.
[Galaxy S II General] electricsheepdreamer:
I guess this guy knows about the issue. :)

http://xdaforums.com/showpost.php?p=35566394&postcount=1871
[Galaxy S II General] Namoi:
My point too. I am sur Goldie found a way. [MENTION=3690986]salesale[/MENTION], Sasha, maybe if you could find the time, and as i know Goldieking will gladly listen to you, maybe you can PM him to have a look here ? Thanks mate.
[Galaxy S II General] bombaybadboy:
Have you tried asking Goldieking yourself, hes been very helpful to me in the past. There are a lot of devs (as long as you dont pester them) can be really helpful on problems like that. They just dont like can you build this for me can you add that for me.
[Galaxy S II General] Namoi:
Well, if a more recognized member won't do it (don't misinterpret me here, i don't want to give it up or "throw the hot potatoe" to someone else ... ;) ), i will do it, but I think as Goldie must be overcrawded by PMs, maybe a message from a knowed pal would be better.

But i will do anyway.

Cheers
[Galaxy S II General] BryanChia:
knew this was gonna happen to me. everybody went rage at me <:o

i know im **** at this, really..

i haven't started it doing it again yet, school now atm, im sorry i get you guys pissed at me, im really bad bad and 0 knowledge at these things

i've seen the tut on video, dont quite get it, i followed exactly what he showed in it until he drag the picture into 9patch.

well i guess i might try it the last time, if its not working well, i'll have to give up, otherwise if i keep on asking more and more uneccesary questions, things will get worst.

I'll keep my mouth close for now :(
[Galaxy S II General] bombaybadboy:
M8 no one is mad at you but you do seem to want to no it all straight away. Its taken me months to learn this stuff not just days and you do ask questions that have been answered many times on many threads. You have the top site of xda that has hundreds of threads with more info than anyone can take in.

That new thread I added is a prime example and a member has taken a long time to build. Now its time for you to take the time to read that thread and others till you understand. In xda you need to search - read - and search again. If you cant find the answers after that then you can ask.
[Galaxy S II General] NoRulesForMe:
I thought search - read - experiment - apply :p :D

Sent from my GT-I9100 using Xparent BlueTapatalk 2
[Galaxy S II General] Vivek_Neel:
Buddy..

Where is MLR10?.
[Galaxy S II General] engloa:
esd posted that the brightness toggle works for one cycle, after that it switches from auto-100.

So what if we create a new condition to counter that? bbb?

This needs testing...
[Galaxy S II General] electricsheepdreamer:
That black background, that's where. It shows when you change DPI. :)

I'm here. :)

Brightness slider works, anyway.
[Galaxy S II General] MyLifeRocks10:
Should I mod it so that it shows without changing DPI?:p:D:laugh:
[Galaxy S II General] Tired Storeman:
Remove Carrier Name

Another way to Remove Carrier Name
[Galaxy S II General] cbucz24:
lol, thats how ive always done it. its not technically removing it. its more of hiding it. good share, i always get too buried to remember:good:
[Galaxy S II General] Javho:
Hi it's me again xd, I've one question... But I think this is little off topic.. And it's how I can change the fonts in the Sammy roms?

Enviado desde mi GT-I9070 mediante Tapatalk
[Galaxy S II General] Jeetu:
Well there are fonts apks which you can install and then able to change them from settings. :)
[Galaxy S II General] glowerita:
if you want i post some apk tn install some of them. :)

Inviato dal mio GT-I9100 utilizzando Tapatalk
[Galaxy S II General] Javho:
But for example I like the new kit kat fonts but the only way to get it is via flash the archieves with Cwm. And now when I flash the zip nothing change and I don't know why.... If anyone can help me I really appreciate they help. Thanks in advance
[Galaxy S II General] glowerita:
Sorry about, but -if you want- i can give you the ringtones, in apk format. ...but I'm not able to help you about your problem. :(

Inviato dal mio GT-I9100 utilizzando Tapatalk
[Galaxy S II General] glowerita:
Edit; not ringtones, but Font.

Sorry about my write mistake. :)

Inviato dal mio GT-I9100 utilizzando Tapatalk
[Galaxy S II General] Spannaa:
How to lower the clock on the "Swipe to unlock" lockscreen

(Re-posted from the NeatROM thread)

Decompile framework-res.apk

Open res\layout-hdpi\keyguard_circlelock_clockwidget.xml

Find Line 8:

<LinearLayout android:gravity="center" android:orientation="vertical" android:id="@id/clock_time_and_date" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="4.0dip">

Increase the top margin from:

android:layout_marginTop="4.0dip"

To:

android:layout_marginTop="150.0dip"

Recompile framework-res.apk

Result:
[Galaxy S II General] cbucz24:
Yep exactly, but just keep in mind that you may also have to change it in a few locations.

Check all the layout folders an change all with that line reference. Don't worry about the landscape ones
[Galaxy S II General] Spannaa:
Yep, true ;)

The original post in the NeatROM thread was specifically for NeatROM Lite 5.3.1 and editing just the one xml works in this case.

Good to see another RT around here :good: