yashsingh1/xdaforums huggingface dataset:
[Galaxy S II General] Vivek_Neel:
I assume you are a great modder..

1.

Decompile secsettings.apk

Go to res/xml/settings_header.XML

Chose a section where you want to have your app in settingsheader ..

2.Header part:

-write android:title for first header.

-second header .ie sub header where your beautiful application will be shown.. (So write android:title and android :icon )

3.Intent part:

Write android:targetPackage=" " android:action="" android: Targetclass=""

See android:targetPackage=" "

android:action=""

android: Targetclass="" in manifest of the app which u want in settings ...now what?..don't wonder.

Just copy and paste .

Also am assuming you know for what this intent part is used.

4. then create an entry for both the header in strings.XML

Also create id in ids.xml.

5. Now obviously you need a png.. create one and place in drawable hdpi ..(name must be same as u wrote for android:icon for 2nd header)..OK?.

6. recompile.

7. celebrate.

P.s hello all ..:)

---------- Post added at 09:12 PM ---------- Previous post was at 09:10 PM ----------

Oops.

Meeped after a long time.

I was writing this long paragraph.. Lol
[Galaxy S II General] bombaybadboy:
Getting slow from lack of practice cfi but good to see your still about m8 :thumbup::)

Sent from my GT-I9500
[Galaxy S II General] engloa:
Hey look who's here

Hello there

Why create ids?

I don't do that. I compile and then recompile again. ids are generated automatically
[Galaxy S II General] Vivek_Neel:
Yes even I don't.

But I did not know why the hell I got the error .

Then I created an Id.

I did this very long ago for ROM control.. Haha

BTW .omg.. it was one hell of exam's journey (two months almost).. Feeling like a huge mass has been removed from my brain..

And so am here.

Hi engloa & BBB..(missed you guys so much):(:(

---------- Post added at 09:43 PM ---------- Previous post was at 09:37 PM ----------

Sorry.. (My Xda app is trolling me)

Messedup.

Quoted bbb's post..:D:D:D
[Galaxy S II General] Rekjezt™:
Any one have guide for change color/styles of clock,time, and date in display setting for samsung 4.1.2 jellybean rom??
[Galaxy S II General] remuntada78:
http://xdaforums.com/showthread.php?t=2488033 this is a general guide then you need to find smali file

Inviato dal mio GT-I9100 utilizzando Tapatalk
[Galaxy S II General] Rekjezt™:
Thanks
[Galaxy S II General] engloa:
I dont use samsung keyboard, but i think you can do that by modifying the csc features inside system/csc/feature.xml

try adding the following lines to feature.xml, save and reboot

<CscFeature_Sip_UseSymbolInCMKey>true</CscFeature_Sip_UseSymbolInCMKey>
<CscFeature_Sip_EnableSymbolInSecondary>en_GB;en_US;sq;ar;hy;az;eu;bn;bg;ca;zh;hr;cs;da;nl;et;fi;fr_FR;gl;ka;de;el;gu;iw;hi;hu;is;in;ga;it;ja;kn;kk;km;ko;lo;lv;lt;mk;ms;ml;mr;my;ne;nb;fa;pt_BR;pl;pt_PT;pa;ro;ru;sr;si;sk;sl;es_ES;sv;ta;te;th;tr;uk;ur;uz;vi;</CscFeature_Sip_EnableSymbolInSecondary>
[Galaxy S II General] remuntada78:
thanks for yuor reply but looking in my system i don't have csc folder, i'm on xwlsd 4.1.2
[Galaxy S II General] Vivek_Neel:
Because the dev did not extract cache.img.

Try it on other rom which has csc.
[Galaxy S II General] glowerita:
Hi remuntada78. :D

I also have Stock LSD 4.1.2 Stock. The Folder "CSC" must be present in "system/CSC".

You can try to put engola's suggest Strings in "system/CSC/others.xml". :)
[Galaxy S II General] remuntada78:
opss in this case the dev is me:thumbdown:

Hi glowerita:beer: do you have try it?

Inviato dal mio GT-I9100 utilizzando Tapatalk
[Galaxy S II General] glowerita:
Sorry, no. Like engola I don't use and i've never use Samsung Keyboard.

Really don't you find CSC folder? It is strange... :(
[Galaxy S II General] remuntada78:
No i don't have it because as corruptionfreeindia said i didn't extract cache.img

But if i use the kitchen to extract it and then put it in my device with root explorer it might work?

Inviato dal mio GT-I9100 utilizzando Tapatalk
[Galaxy S II General] Vivek_Neel:
Yes .

Select "extract csc from cache" something like that in advance plugin menu in kitchen. .
[Galaxy S II General] remuntada78:
yes i've done ,now i would like to know if i put it in my device with root explorer it might work?

edit

your yes answer is refer to root explorer part?
[Galaxy S II General] Vivek_Neel:
Yes...you can try

But Make a back up..just in case.

Set permission.
[Galaxy S II General] amirsat2012:
Goood...

Envoyé depuis mon GT-I9100 avec Tapatalk 4
[Galaxy S II General] engloa:
It'll work

You can also make a flashable zip which includes the /system/csc folder and files;)
[Galaxy S II General] remuntada78:
Ok the installation of the csc folder is ok thanks also to corruptionfreeindia but the strings added don't work thanks anyway

Inviato dal mio GT-I9100 utilizzando Tapatalk
[Galaxy S II General] engloa:
sorry it didnt work for you

also, no need to use kitchen to extract the .img files.

read this, download the files and you can extract the img files like system.img, cache.img,hidden.img etc
[Galaxy S II General] glowerita:
Try to add the Strings in "others.xml" (this is present in CSC Folder;).
[Galaxy S II General] remuntada78:
already done but the strings added doesn't work:crying:
[Galaxy S II General] glowerita:
A question for me too: how can I do to make compatible the folder "init.d" read in my Samsung Deodexed Stock?

I'm on Siyah Kernel, but Scripts inside this Folder are not read automatically when I boot the phone.

Thanks. :)
[Galaxy S II General] Many40:
I'm also on Siyah and init.d scripts work well. Maybe your scripts are faulty. As you probably know init.d scripts are quite sensitive - they can't include any Dos/Windows line ending marks - otherwise they will not work. The line endings have to be Unix type (use Notepad ++ PC app to check that).

Also permissions of the scripts have to be set as rwx r-x r-x

Read this for more info:

http://xdaforums.com/showthread.php?p=36493214
[Galaxy S II General] glowerita:
Thanks Very Much. May be, infact, that the Scripts I've try and put in "init.d" Folder was not OK.

Any case... This Evening, when i'll come Back home, I'll try Your method. :)
[Galaxy S II General] glowerita:
Ok.

1) I did as you suggested.

2) The script now works if I launch it with a script manager (I launch it through "Root Browser" that has this feature).

3) The problem is that each time I restart the Phone the Script is not maintained and I have to launch it again (on some method).

So... I think the Rom needs a change. I don't know how to do it. Can You or someone help me?

:)Thank you.
[Galaxy S II General] Many40:
For the first line of your script check if you have this:

#!/system/bin/sh

then check if in this folder you have "sh" binary.

Alternatively you can use also this command instead (if you have busybox in sbin folder):

/sbin/busybox sh

Then as a second command put:

su

Finally, as far as Siyah kernel and your ROM may use some initial customconfig scripts and overwrite commands from your script, try to postpone execution of your commands for some seconds, starting for example with 30 seconds then if doesn't help increase it to about 90 seconds.

Use this command in your third line:

sleep 30

where "30" is the delay in seconds.

Good luck.
[Galaxy S II General] glowerita:
Ok, it Works now! :p

First line was correct and I havn't touch anything:

#!/system/bin/sh

I've added the second one (like You su Suggested):

su

Then the Third one (like You Suggested):

sleep 30

1000 Thanks 4 You and Your patience and kindness. :) :) :)
[Galaxy S II General] Vivek_Neel:
i feel You are also very kind..

Haha..:):D

Enjoy.:)
[Galaxy S II General] Many40:
Multiple lockscreen mod

Hi [MENTION=3065070]Goldie[/MENTION],

As you already know I tried some time ago implementing into XWMS1 / Neatrom the Multi lockscreen mod following

Didact74's guide

My first trial failed. After implementing the mod (strictly following the guide), new lockscreens were distorted/didn't work well.

After you adviced me on Neatrom Off topic thread to use your files (from Alliance rom) I made the second trial to that mod.

This is what I did in addition:

- replaced Didact's images (for s3 with higher density) with the ones from your rom,

- replaced Didact's xml files from framework-res/layouts with yours (adjusted accordingly)

- compared all IDs in new Didact's smali files with your smali and adjusted them (wherever there were any differences).

The results now are much better than before - all 4 additional locks work (Acer, BlackBerry, HTC and LG) but im not sure if the final result is 100% as it should be.

To check that I flashed your rom to see how the lockscreens realy work (the rom is great TBH - have to stay on it a little bit longer :)).

After that I noticed a few differences:

1. Acer lockscren - the screen is dimmed and after unlocking it becomes bright for the moment and unlocks. In your Acer lockscreen there is a special, let say: "accordion-folded" effect.

2. HTC lockscreen - the unlock ring is a half cut at the bottom (in your rom it's the same) however when I unlock the screen by swipping it up the screen, the screen unlocks. In your HTC lockscreen there is an addictional/special effect - just before unclockig - the ring goes to the upper part of the screen and gets enlarged.

So finally, after the long elaboration here is my question: did you implement something "special" for those effects into your rom or I just missed something while implementing the mod. Any hints appreciated. :)

At the end I would like to wish you and all the others reading this thread Merry Christmas and a Happy New Year.
[Galaxy S II General] Goldie:
Nothing special mate. Maybe didact missed some ids or made mistakes. Maybe try again with my smalis instead. Get a remapper for the ids. Save you manually changing them all :)
[Galaxy S II General] shoman94:
Re-mapper!!! DO TELL! Hom many cheat tools am I NOT using! UGH! :mad:
[Galaxy S II General] xmariox2:
Is there any possibility to solve white background issue with gradient statusbar? Samsung made that for Galaxy tab 3 7,0...
[Galaxy S II General] engloa:
Maybe this?

Happy holidays everyone :thumbup:
[Galaxy S II General] bombaybadboy:
And I always did it the hard way :) thanks m8

Merry Christmas or happy holidays how ever you celebrate guys :thumbup::)

Sent from my GT-I9500
[Galaxy S II General] :
Merry Christmas by beautiful family that I love so much, my friends and teachers. Wish you all the best for the coming year, I better stop talking, too much wine is making me talk like a parrot :):) Los amo a todos
[Galaxy S II General] Rekjezt™:
Anyone have guide tab setting like s4 mybe??

use XDA Premium 4
[Galaxy S II General] tdunham:
Tabbed Settings

http://xdaforums.com/showthread.php?t=2103158
[Galaxy S II General] Rekjezt™:
This is guide for 4.1.2 rom??

use XDA Premium 4
[Galaxy S II General] tdunham:
Yes it is.
[Galaxy S II General] Vivek_Neel:
What's tht issue?.I don't get it

pls.Show me the screen shot. .
[Galaxy S II General] xmariox2:
When I have gradient status bar become into the white color in several apps. For example Google Chrome, gmail, whatsapp, Splanner. Try it and you will see...
[Galaxy S II General] bombaybadboy:
Certain apks will effect a transparent statusbar and afaik there is no solution to that

Sent from my GT-I9500
[Galaxy S II General] tdunham:
I keep mine black for this very reason. Some apps show the status bar and so do some of the lockscreens. Not sure if there is a workaround for this either other than to replace the apps that display that way with modified or third party apps.
[Galaxy S II General] xmariox2:
I think there is a solution... Samsung made that for their Galaxy tab3 7.0 4.1.2 fw...
[Galaxy S II General] Vivek_Neel:
Where are you mate.?.:(
[Galaxy S II General] :
Send him a pm, if you two were friends , he will answer you for sure. I think he'll be happy to hear from his buddy CFI (right)
[Galaxy S II General] Vivek_Neel:
Thank u.

I have sent him a pm..

Waiting for his reply..finger:crossed

His last activity was on nov 30:)
[Galaxy S II General] :
Yes remember the last time, he'll be happy you guys remember him
[Galaxy S II General] Many40:
Hi mate,

Unfortunately I couln't manage to have transition effects (which I described here: http://xdaforums.com/showpost.php?p=48753190&postcount=1903) working properly. I differed again didact's smalis with your smalis from AllianceRom XWLSS ver9. Your files are almost identical (a few differences besides IDs which I also considered). I also thoroughly checked all IDs - now I have them all corresponding to the ones from your rom.

Also in your rom there are some other files but IMO they are additional lockscreens related but not 100% sure.

So after a lot of time spent on checking, replacing, comparing, decompiling/recompiling etc my current status is the same :(:confused:

There is also one more file provided by Didact74: android.policy.jar/smali/com/didact/widget/didactSettings.smali (previous name AllianceSettings.smali) which seems has no influence on the mod at all (after removing it the mod works in the same way).

So I'm stuck now with that and if you could help in any way sometime I would be grateful.
[Galaxy S II General] Many40:
Never mind. I finally found a reason. Silly me, it was nothing mod related - I forgot that I turned off "Animator duration scale" in "Developer options" :D

Now all new lockscreens work like a charm.
[Galaxy S II General] tdunham:
I'm trying to disable the SII radio but still leave GPS enabled for those users that still have the phone but want to use it for other things like WIFI & GPS.

It's beginning to look like the GPS and modem/radio share the same chip (wifi works fine, just not gps).

Anyone happen to know if this has been done?
[Galaxy S II General] Vivek_Neel:
How can I enable gesture settings in touchwiz launcher?

Like for e.g in apex/nova ..when we swipe up it shows recent apps.

The same feature I would like to include in touchwiz.

Possible?
[Galaxy S II General] Vivek_Neel:
Epic tool for themers.

http://xdaforums.com/showthread.php?t=2380513
[Galaxy S II General] engloa:
Another epic tool is your brain :D:D
[Galaxy S II General] Vivek_Neel:
Nailed it:)
[Galaxy S II General] tdunham:
Anyone happen to know how to remove or prevent from displaying this google contact icon from the TW 4.1.2 contacts list?

You can see the difference with a phone contact vs. google contact. It is much easier to read.

Edit: I would be happy just finding the blue 'G' icon. I have not had success finding it so far. :)
[Galaxy S II General] remuntada78:
In contacts press menu softkey choose contact to show and then choose sim contact.

Do you like this way?

Inviato dal mio GT-I9100 utilizzando Tapatalk
[Galaxy S II General] tdunham:
On our S2 variant, the choice is 'Phone'. It does not have a sim card. It is better for us to have all contacts saved on Google.

With a Sim card, maybe contacts do not get deleted when flashing new rom but for us they do get deleted when a new rom is installed.
[Galaxy S II General] remuntada78:
Oh ok ,then you need to modding but i don't know how sorry

Inviato dal mio GT-I9100 utilizzando Tapatalk
[Galaxy S II General] tdunham:
I found icon. I always seem to find things when I ask for help. :)

Image is either in GoogleServicesFramework.apk or GoogleLoginService.apk (I deleted several occurrences of image once I found them).

Now to see if I can reclaim space used by the icon also.
[Galaxy S II General] remuntada78:
Hi to all i'm trying to add the screenshot capture button in the status bar

to do this i added in tw_status_bar this line

[ <com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/global_screenshot" android:paddingLeft="2.0dip" android:paddingRight="2.0dip" android:focusable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_ic_sysbar_capture_normal" android:layout_toRightOf="@id/back" android:contentDescription="@string/accessibility_capture" />
/CODE][/HIDE]
but it not work,I suppose that keycode for screenshot is missing ,I tried to search for it but I have not found anywhere.
can someone helpe?
[Galaxy S II General] remuntada78:
Are 2 days using Google but nothing:banghead:

Inviato dal mio GT-I9100 utilizzando Tapatalk
[Galaxy S II General] glowerita:
No good answer mate.

Xda forum exist for...

make questions and have answerds. In the limit of possible, of a course. I think. ;)
[Galaxy S II General] remuntada78:
Ciao Ma55imo non problem for me ,I've searched also in xda forum and nothing:thumbup:

Inviato dal mio GT-I9100 utilizzando Tapatalk
[Galaxy S II General] Vivek_Neel:
:D:sorry
[Galaxy S II General] remuntada78:
already see the page but i have not tried because i think it refer exactly to the camera

but now I make an attempt

edit:tried with keycode 27 but it don't work :crying:
[Galaxy S II General] engloa:
Then I guess that means screen capture key isn't defined. Maybe a solution lies somewhere,will look around more
[Galaxy S II General] remuntada78:
If you find the right keycode i offer you a beer

Inviato dal mio GT-I9100 utilizzando Tapatalk
[Galaxy S II General] Spannaa:
I don't think anyone will be taking you up on the offer then as AFAIK, there isn't a KeyCode for screenshot/capture.

Unless you can work out a way of capturing simultaneous presses (3+26/Home+Power), I suspect you'll probably have to use smali for this...
[Galaxy S II General] Spannaa:
IIRC, for some reason, Samsung removed the screenshot button...
[Galaxy S II General] tdunham:
I agree with Spannaa on this one, smali is the way to go.

The command is "android.intent.action.TOUCH_CAPTURE_BTN".

You can refer to my thread:

[GUIDE][How-to] New Power Menu JB - With Screenshot

http://xdaforums.com/showthread.php?t=2125196

Perhaps you can reverse engineer it to work for you as a call for the statusbar. I'm not very good with statusbar editing. ;) And don't forget to download the support files at the bottom of the OP because that is the smali you will need to look at as well.
[Galaxy S II General] remuntada78:
Thanks but your way with script is too much harder for me, the screenshot was taken from my rom based on xwlsd firmware, it was just an attempt

Inviato dal mio GT-I9100 utilizzando Tapatalk
[Galaxy S II General] glowerita:
Can anyone Know how can I remove popup about low battery on JB:)?
[Galaxy S II General] engloa:
Navigate to systemui.apk/smali/com/android/systemui/power/powerui.smali

search for .method showLowBatteryWarning()V and put a return-void at the beginning of the method before the first const_string that appears. thats how i do it
[Galaxy S II General] Many40:
Try this:

http://xdaforums.com/showpost.php?p=47555301&postcount=10

thanks to [MENTION=369057]majdinj[/MENTION] (post no 10)

Edit: [MENTION=3973489]engloa[/MENTION] are you everywhere? ;)
[Galaxy S II General] engloa:
Yup.

Look at what my location says- here & there;)
[Galaxy S II General] Vivek_Neel:
:D:D:D:cool:

Engloa buddy is omnipresent:D
[Galaxy S II General] tdunham:
You folks are probably already aware of this since it is a pretty simple fix but thought I would share since it is a pretty big issue with the hardware buttons on our Galaxy SII phones.

[Guide/Mod] Disable Power Button in Jellybean 4.1.2

http://xdaforums.com/showthread.php?t=2624040
[Galaxy S II General] glowerita:
Thanks very much both. :)

Ok, done.

But... As always happens, however when I go to replace the SystemUi in System / app, after restart the Galaxy, I lose the notifications bar.

With Root Explorer I can see that SystemUi is not installed (tap on the properties of the same file with Root Browser).

The permissions are ok.

I've try with a Zip too (jet ready, I've replaced, in the corrects Directory, my File ) and Flash it by Recovery.

The result is the same. Lost notification bar and SystemUi non installed. NB.(the zip contain script to create a Symlink in preload folder too).

NB. If I try, with the same zip, to flash another any app... It works (the zip is Ok then). Only with SystemUi it doesn't works.

I don't understand what is wrong. :mad:

Thanks again. :)
[Galaxy S II General] Vivek_Neel:
Try to copy the metainf folder and androidmanifest.xml of original systemui.apk and paste them in modded systemui.apk

Then simply place the modded apk in preload/symlink/system/app and link to system/app with the permission rw r r

Am not sure if grand has preload partition too.

If it does not have then u know what to do..system/app:)
[Galaxy S II General] tdunham:
Yes, insert changes into virgin SystemUI. Do not use entire recompiled apk as this will change signature and is unpredicatable.

Ie. Only insert changed files like resources.arsc, classes.dex, xml files back into stock (or working custom) SystemUI.apk.

Edit: In your case probably just classes.dex since you only did smali edit.
[Galaxy S II General] glowerita:
Ok, thanks both. Tomorrow I will do so. :)

See you soon for report. :)

Xda is a big Community, full of competent and kindness people like all you. Thanks. :)

Inviato dal mio GT-I9100 con Tapatalk 2
[Galaxy S II General] glowerita:
Hello Friends! As suggested I replaced only the "classex.dex", the file that contains the "smali" (file I've changed).

Flash ok, no loss of "systemui" and ... No popup when the battery is low! :p

When I recompile the APK - and before to Flash it - I must remember to replace the files that I'havn't change, taking them from the original one (I always forget :mad:).

The modding's operations are no frequent for me and so... I forget :D .

I must remember that I have an old age too! :laugh:

Thanks again and a Wonderful time to all You. :)
[Galaxy S II General] Vivek_Neel:
Nice.

Thank u and congrats
[Galaxy S II General] glowerita:
I've try to bring lockscreen clock to bottom left in "layout/keyguard_screen_tab_unlock.xml" as you suggested,

I've try to change the value in all the layout folders that contains this string. Clock remain always in the middle. :(

Any other suggestion? :)

Thanks. :)
[Galaxy S II General] Vivek_Neel:
May be you need to play with the "margins" value.

Look in dimens.xml
[Galaxy S II General] Spannaa:
Getting a little confused here - I thought you were working on framework-res.apk\res\layout-hdpi\keyguard_circlelock_clockwidget.xml

If so, try [MENTION=3973489]engloa[/MENTION]'s suggestion and change android:gravity="center" to android:gravity="left" for the LinearLayout in this xml (Line 8 again).

You can push the clock down by changing the value for android:layout_marginTop and push it right by adding a left margin: android:layout_marginLeft
[Galaxy S II General] Vivek_Neel:
[MENTION=2948558]Spannaa[/MENTION]

Wont it work?mate

If he change the margin value

<dimen name="keyguard_lockscreen_status_line_clockfont_to p_margin">25.0dip</dimen>

<dimen name="keyguard_lockscreen_status_line_clockfont_bo ttom_margin">15.0dip</dimen>

Or am i wrong?
[Galaxy S II General] Spannaa:
I don't think that affects the default lockscreen clock as this is made of images.

The dimen appears in keyguard_screen_tab_unlock, keyguard_screen_unlock_portrait & keyguard_screen_unlock_landscape so it may well affect other lockscreens.
[Galaxy S II General] glowerita:
Yes, we are speaking about framework-res.apk\res\layout-hdpi\keyguard_circlelock_clockwidget.xml.

I follow your guide to drop down lockscreen clock down and all ok. :)

I'm not able to drop it on left. Following engola's and your suggestion step by step... the clock remains always in the some place. Don't understand. :eek:
[Galaxy S II General] engloa:
Did you try layout/keyguard_screen_tab_unlock?

Maybe it's there
[Galaxy S II General] glowerita:
Thanke engola. :)

Yes, of ourse.I've change android:gravity="center" to android:gravity="left" for the LinearLayout xml (Line 8 again, like suggested by spannaa) in layout/keyguard_screen_tab_unlock (like suggested you in a post of same time ago). Clock remain in centered

I've try too to modidied the value in every folders that layout/keyguard_screen_tab_unlock was content. No result.

I give up for now. I've flash framework-res.apk about 30 times since now, whitout result. :crying: