yashsingh1/xdaforums huggingface dataset:
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
1. As long as you're inside the right method or constructor it doesn't matter if there is a difference between register numbers. Also remember that you are on different devices and same methods might have different number of locals. And as I can see it works.

2. Removing the title should not be a problem. I am talking about the 'Device Options' which falls under category of dialog title. I will have a look into it tonight. In general your way of working should be something like this:

A. Find the string 'Device options' in framework-res in strings.xml

B. Note the name of that string and then have a look inside public.xml. find public id for that string and copy the number (do not copy 0x... or any 0 that comes after that. If any. Start copying from the first non zero number).

C. Open GlobalActions.smali and look for the number you copied. You will see something like... const v5, 0x"yournumber" (doesn't have to be v5, just an example... any register ).

Right after that you should see invoke-... something.... that calls for a method which will have setTitle in it.

D. Theoretically you can remove those two entries. that theoretically will give you a dialog without title.

Now I am writing all this without seeing the code. It's in theory. But that is how you mod things like that. That is how you start looking for them.
[Galaxy S 5 Android Development (Snapdragon)] starbucks2010:
Thanx for the answer. I searched through public.xml but no "Device options" inside. File attached.
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
You need to search through strings.xml first for 'Device options' and then get the NAME of that string and search for THAT NAME in public.xml

Edit: I wish I could help you more. But I am at wotk and I don't have my pc with me. I will check this out in depth later on tonight when I get home.
[Galaxy S 5 Android Development (Snapdragon)] starbucks2010:
Finally I found it. Actually I should have searched for "global_actions" instead of "Device options".

Now my problem is which lines should I delete.

I attach here the 3 files implicated into this subject.

PS. How about the white background from under the 3 sound icons? Can be done black?

Once again, thank you for your support.
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
Well yeah. That's what I meant. Global actions is the name of the string. Device options is what is shown on the screen. I am glad my theoretical modding works well... lol

Yes, the white color can be changed. I need to be in front of decompiled framework-res to see how and where. I will look for it tonight and give you ideas.
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
alright, I think I found it. But I didnt try (sorry, I am a white junkie... lol)

In framework-res go to /res/layout-sw360dp-xxxhdpi/global_actions_silent_mode.xml

Look for the following line:

android:background="@drawable/tw_device_popup_light_bg"

You can see the android:background is set to tw_device_popup_light_bg

Change it to tw_device_popup_bg

You will have several occurences of that BG in that xml. Change them all.

Recompile and I think that will do it.

Let me know if that helped.

I do not recommend changing the png itself (it's a .9.png) because it appears in other places in the OS. It might give you really ugly appearence of black text on dark blue bg if you change the png.

This modifying should give you a consistent tw_dark look for the entire dialog. If you wish to make that BG completely black, change all the above mentioned entries to android:background="#ff000000"

Show us what you got :)

P.s. [MENTION=4376579]BoBCatRoM[/MENTION] how happy are you NOW? ;)
[Galaxy S 5 Android Development (Snapdragon)] starbucks2010:
Nice! It looks very nice now. You have really good skills for modding :o

First picture looks nice but the 2nd one it could be nicer if I could make the whole background black and the entire window a little bit smaller. Do you think that is possible?

If your spare time allows you, can you please check about how to remove the "Device option" header?

Thank you very much for your support and patience.

PS. I don't want to sound greedy but if you have a guide or a link to a guide for making backgrounds black in system or how to change the Samsung bootscreen from qmg to bootscreen.zip it will be a great help. For bootscreen I opened a thread 2 days ago and not a single answer, so I suppose that it is still a tabu subject on 4.4.4.

Best regards and my respect for your knowledge and supporting spirit.
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
I will look into removing the dialog title for you.

As for other things:

1. There is a guide somewhere as to how to use bootanimation.zip. if I remember correctly you put it in data/local... and remove the samsung files from system media. But I am not sure. There is definately a guide. Look it up.

2. For the general theming - take my advice, study some android app basics. Especially the resources part. That will help you alot. All this needs is some basic knowledge and practice. It will come to you faster than you think. And it's fun to try and error. We all did it. We still do ;)

3. I don't have any guides reference for you, but I know there are tons of guides on theming. but as I said, mostly and foremostly it needs practice.

good luck! And we're always here if you need advice for a specific matter.
[Galaxy S 5 Android Development (Snapdragon)] xZabuza:
Can someone make me a flash zip file for network speed meter.. or if is there a place with it here on xda please tell me.. thanks in advanced. .
[Galaxy S 5 Android Development (Snapdragon)] aukhan:
Anna respect I am looking at all your guides, your the most patient full lady on Xda who does so much contribution [emoji7]. I really respect your guides and thanks for sharing so much knowledge.

Powered by ET !
[Galaxy S 5 Android Development (Snapdragon)] devadip:
Tanks Roby and daxgirl for this very helpful guide.

Roby you're always a master
[Galaxy S 5 Android Development (Snapdragon)] edzamber:
Hi,

I have follow exactly OP but when i try to recompil android.policy.jar its fail. Its about reboot menu id into Smali : log say that it needs Strings_litteral instead of public id

Any idea how can i do ?

Thanks a lot for help :)
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
You probably left the line like this:

const-string v2, "your id"

instead of :

const v2, "your id"

If you leave the string part it will expect an alphabetical string.. It gets instead a number of an id so it gives you error..
[Galaxy S 5 Android Development (Snapdragon)] edzamber:
Yes !!! It was that !

Many thanks :)
[Galaxy S 5 Android Development (Snapdragon)] nodz13:
In samsung Grand.. i cant find GlobalActions$99.smali
[Galaxy S 5 Android Development (Snapdragon)] DaOldMan:
Did you make the basic 4 way reboot mod first? Probably not and that's why you miss those smali files.
[Galaxy S 5 Android Development (Snapdragon)] nodz13:
No, im not.

This is for first time.

Can help me?
[Galaxy S 5 Android Development (Snapdragon)] ROBERT CM:
Great work..!! but on my android.policy.jar I cant find GlobalActions$99 in android.policy.jar\smali\com\android\internal\policy\impl

on Galaxy S5 G900M

HELP ME PLEASEEE...
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
Read the op and requirements for the mod.
[Galaxy S 5 Android Development (Snapdragon)] ROBERT CM:
Yes, I have

-stock DEODEX

-apk tool for decompilar and recompilar apk, jar

-framework.res. apk no problem

"problem is android.policy.jar I cant find GlobalActions$99 in android.policy.jar\smali\com\android\internal\poli cy\impl"

In custom rom for S5 have GlobalActions$99 on android.policy.jar

no understand, any idea?

Sorry for my bad english

thanks
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
You need to have a working 4 or 5 way reboot in your framework to make this mod work. GlobalActions$99 is part of expanded reboot menu mod. You need to build it first and then translate it.
[Galaxy S 5 Android Development (Snapdragon)] Martillero:
You need to change the string of your reboot_title, use something else like reboot_title_custom or other thing.

In log, it says that you have duplicated the reboot_title string in line 251 and 2931 from strings.xml
[Galaxy S 5 Android Development (Snapdragon)] ROBERT CM:
thanks for answering

to re-compile framework-res.apk in my case "values-es" it was successful to recompile for the language, unlike in the case where there gave me error "values" for the language

but at the root explorer replace the framework-res.apk and give permissions rw-r-r and restart NOT apply changes

some solution to this problem, thank you very much :o:o:o
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
so you have edited android.policy.jar removing the hardcoded string and put the public value for the strings you added in framework-res.apk? please check again because if you remove hardcoded string from smali and it doesn't find the correct id it should soft reboot, if it doesn't or is fine or you didn't edited globalActions i suppose
[Galaxy S 5 Android Development (Snapdragon)] Petreion:
Great work mate :)
[Galaxy S 5 Android Development (Snapdragon)] mihaitosca:
Hello Guys

I made the power menu to look like in image 1 ,but i dont like it

i want to look like in image 2 . What do i change
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
You need to look for layout for global actions dialog item in framework-res and set appropriate padding for the root view.
[Galaxy S 5 Android Development (Snapdragon)] mihaitosca:
Thanks for the reply, but honestly.........I do not understand what to do

I can not find this file (global actions dialog) in framework-res / res / layout ( in any layout )
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
You will need to read more on the ming threads then. This is a modding thread and I can only give you a general idea where to look. A lot of the times those things are try and error kinda learning.

You can try doing it backward, find the public id for the layout that the dialog adapter inflates in smali and find which layout it refers to by using public.xml.

I am afraid that's all the help I can give you, since I am not a themer. I know how android framework is built and how it works, but I don't theme.
[Galaxy S 5 Android Development (Snapdragon)] mihaitosca:
Ok

Thanks again .... I will try
[Galaxy S 5 Android Development (Snapdragon)] mihaitosca:
And....

I made it ...
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
Wow perfect!!! Congrats!!!
[Galaxy S 5 Android Development (Snapdragon)] ROBERT CM:
only edited framework-res.apk because can´t GlobalActions$99 en my android.policy.jar to complete this guide on GALAXY S5 SM-G900M STOCK DEODEX

HOW BUILD GlobalActions$99 in my android.policy.jar ?

I have only these files for example:

GlobalActions$1

GlobalActions$2

GlobalActions$3

GlobalActions$4

GlobalActions$5

GlobalActions$6

GlobalActions$7

GlobalActions$8

GlobalActions$9

GlobalActions$10

GlobalActions$11

GlobalActions$12

GlobalActions$13

GlobalActions$14$1$1

GlobalActions$14$1

GlobalActions$14...........

GlobalActions$27

GlobalActions$Action

GlobalActions$ConfirmDialogReceiver......etc..

it is important this files or without also work?

other files I can use for this mod work ok, on android.policy.jar?

thanks :rolleyes::rolleyes::rolleyes::)
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
as dax told you , you can see in requirements a working 4 way reboot which means that if you don't have globalAction$99 there 2 options.. you don't have a 4 way reboot or the smali have been named to another number which is a bit strange because recently anyone uses as 99..

so you have a working 4 way reboot hardcoded in the android.policy.jar already? no apps no xposed modules.. original 4 way reboot

if you don't have go finding a guide for it and apply it then when it is working came back to this
[Galaxy S 5 Android Development (Snapdragon)] ROBERT CM:
Wuby986 one question bro.

then as they have 4 way to reboot in custom rom S5 such XtreStoLitev2.1 by [MENTION=3959407]edgar28[/MENTION] (TW based 5.0) & Sixperience v7 mod by [MENTION=3136944]Repulsa[/MENTION] (TW based on S6Edge 5.1.1 for S5)

in such cases if they have in their android.policy.jar

GlobalActions $ 99 $ 1

GlobalActions $ 99

but how to modify it is more like this guide, but just try it but I'm missing those files

http://xdaforums.com/galaxy-note-3/development/dev-tw-lollipop-torch-5way-reboot-t2997748

Thanks :):)
[Galaxy S 5 Android Development (Snapdragon)] Martillero:
Hi mate.

You first need to follow the guide of that thread by kmokhtar79:

http://xdaforums.com/showpost.php?p=58056150&postcount=2

The files you will need (smalis) are down there on the Attached Files.

Then, after having that mod working, you can follow daxgirl guide :good:
[Galaxy S 5 Android Development (Snapdragon)] ROBERT CM:
Martillero bro

I followed the tutorial you left me

but when compiling android.policy.jar gives me error apktool

copy and paste the 3 files in the zip smali

GlobalActions$99$1

GlobalActions$99

GlobalActions$RebootAction

any ideas?

Thanks you so much

Sorry for so many questions

Log For : android.policy.jar

Log Type : Recompiling

Log Recorded At : mar. 10-13-2015 20:04:12.34

Log Recorded By : Advanced ApkTool v4.1.0 By BDFreak

------------------------------------------------------

..\3-Out\android.policy.jar\smali\com\android\internal\policy\impl\GlobalActions$99.smali[1,0] required (...)+ loop did not match anything at input '?'

Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/android/internal/policy/impl/GlobalActions$99.smali

at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:71)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:55)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)

at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:349)

at brut.androlib.Androlib.buildSources(Androlib.java:289)

at brut.androlib.Androlib.build(Androlib.java:275)

at brut.androlib.Androlib.build(Androlib.java:250)

at brut.apktool.Main.cmdBuild(Main.java:225)

at brut.apktool.Main.main(Main.java:84)

------------------------------------------------------
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
My friend, studying and learning is a blessed agenda, however, those questions you're asking should be addressed at the thread with the guide for 4/5 way reboot. People there made those mods and can help you debug them.

This is a development thread with pre-requirement of having a working extended reboot mod. This mod is pretty straight forward. Once you have done the extended reboot, have more experience, you will have no problem achieving it.

You come from little modding experience and that's alright. We have all been there. Nevertheless, there is a place to ask each question and this thread is not the place to ask about 4 way reboot. Please address your question on a thread to which you were referred by [MENTION=4830018]Martillero[/MENTION]

Once you have a working expanded reboot menu, you can try this mod again.

Thank you for understanding.
[Galaxy S 5 Android Development (Snapdragon)] sieuan:
Hi sir! How to add ScreenRecord to global menu sir? Please guide me, thanks!
[Galaxy S 5 Android Development (Snapdragon)] mihaitosca:
I don't know to add Screen Record to Global Menu .

It is Tamirda's Phoenix Rom for G900F
[Galaxy S 5 Android Development (Snapdragon)] millo1978:
Thanks a lot for this wonderful guide :)

I made it on my S3 Custom ROM (4.4.4 back-to-n00t by arter97 based).

Now we can translate it but we don't know all languages, and "Google translate" isn't so good! :(

We could write translations here, so everyone can have it simply.

We already have English, Italian and French translation...

other are missing...

Thanks in advance for your help :)

Edit:

maybe German and Spanish could be these (see attachment)?

Write me better translation ;)
[Galaxy S 5 Android Development (Snapdragon)] lucadalba:
Hi [MENTION=4714483]daxgirl[/MENTION] ,

thanks for your very useful guide!

I've noticed some changes for S5 G900F Marshmallow.. I've followed this perfect guide by [MENTION=4819130]Kamy[/MENTION] for andvenced reboot menu.

So advanced reboot menu is now in services.jar and not in android.policy.jar

So for MM we need services.jar and not android.policy.jar .

Obviously the GlobalActions$99.smali is now in smali/com/android/server/policy .

And this old string:

sget-object v2, Lcom/android/[COLOR=red]internal[/COLOR]/policy/impl/GlobalActions$SinglePressAction;->reboot[COLOR=red]Options[/COLOR]:[Ljava/lang/String;

Now is:

sget-object v2, Lcom/android/[COLOR=blue]server[/COLOR]/policy/GlobalActions$SinglePressAction;->reboot[COLOR=blue]String[/COLOR]:[Ljava/lang/String;

(now there is NOT "/impl/" between policy and Global...)

Anything else.

Thank you again.

I hope this info can help you and everyone :)
[G3 Q&A, Help & Troubleshooting] skel4877:
I have a G3 on Verizon, that I just pulled out of my pocket and when I turned the screen on my phone reverted back to the setup wizard screen where I could choose my language. I was confused as I have had my phone for a week now so I restarted my phone and my phone went back to the stock start up screen. I'm confused as to how this happened, does anyone have any experience with this?

I was running complete stock, no modifications, I did not change it to ART at any point I've had my phone. Anyone know what's up? Should I exchange the phone?
[G3 Q&A, Help & Troubleshooting] hawkswind1:
Sounds like maybe you thigh dialed and entered your password incorrectly 10 times and it factory reset?
[ONE Accessories] QuBeX:
Which would you buy guys?

TUDIA: http://www.amazon.com/TUDIA-Bumper-Protective-OnePlus-Smartphone/dp/B00LWT7AXI/ref=pd_rhf_dp_p_img_1

DIZTRONIC: http://www.amazon.com/Diztronic-Ful...=1406942747&sr=1-1&keywords=diztronic+oneplus
[ONE Accessories] Bl00dRunzC0ld:
Diztronic all the way. Only cases I buy
[ONE Accessories] zephiK:
Diztronic. Owner of their previous cases and am happy with them, also like how diztronic talks to users on xda.
[ONE Accessories] Xust:
I actually bought both because I liked the Diztronic's blue TPU case more, yet I wanted a black case as well. So, I went and bought the Tudia in black. :p

Gonna switch off on them every now and then, along with my current bumper case, cause I like having a variety. :D
[ONE Accessories] espeanage:
Diztronic for me. I hope they carried over the smooth matte texture to the OPO.
[ONE Accessories] Severose:
It depends... Do you want to support Nazi terrorism!? If not, go with Diztronic!
[ONE Accessories] :
Diztronic, you know the people behind the case from xda. A fellow XDA-er :)

Sorry Tudia had to change my opinion

Good work [MENTION=1744309]OneStepAhead[/MENTION]
[ONE Accessories] Severose:
Glad I have a fan, thanks man I appreciate your vote!
[ONE Accessories] :
was a bluff, but calling someone/ or company that is totally not done.
[ONE Accessories] danop2004@gmail.com:
I see that the Tudia is still on preorder, have they started delivery?
[ONE Accessories] drakester09:
Diztronic.

5/5 cases I've bought from them have been excellent. They are doing a great job.
[ONE Accessories] Swiftb12305:
Diztronic for a few reasons, no gloss on the side like Tudia and the owner provides great info and updates on here and im a sucker for great customer service. lol
[ONE Accessories] Hilbe:
As reported in the other thread(s). I had the Nexus 5 Ditztronic and my wife the Nexus 5 Tudia case. The Tudia case stained over time like most TPU colored cases seem to do. The Tudia Nexus 5 case is actually a bit thinner than the Diztronic. The OnePlus Tudia looks a bit thicker than the Nexus 5 variant based on the pictures, but I could be wrong. I personally ordered the Ditztronic again, but the Tudia should also be a great product. Either way I don't think you can go wrong.
[ONE Accessories] Xust:
I bought it off Newegg when they "accidentally" had it in stock. My shipping order has already been processed, so I'm guessing they'll send out my Tudia case the moment it comes into their warehouse. :)
[ONE Accessories] Xephrey:
Anyone know if Orzly tempered glass fits with these on?
[ONE Accessories] Severose:
Admittedly, it was a bad joke in retrospect, but I don't think anyone took me seriously. If I was asked nicely, I would have taken it down. I do apologize if I offended anyone.
[ONE Accessories] vw671:
Don't like the current Diztronic color options..ordered the Teal Tudia.
[ONE Accessories] Stealyourface:
I want the diztronic but I also want to get the bamboo back so I'd need a clear case. Which they don't offer.
[ONE Accessories] BoboBrazil:
Any reviews of either of these out there yet?
[ONE Accessories] zephiK:
No. They haven't been delivered to our house yet.
[ONE Accessories] BoboBrazil:
Yeah, thought they might give some to sites/youtuber's for early reviews.
[ONE Accessories] zephiK:
Nope. its the first batch that has ever been available. it'll be available this week, mines already shipped.
[LG G2 Mini] cripii5:
Hi!

I'm from Uruguay South America and I'm an owner of a LG G2 Mini. I don't speak in english very well so I'm just gonna try beacuse I thing Google translator is worst than me.

I'm kind of seek with the bootanimation of my cellphone company (I don't mean LG) so as I did before in another ol Android that I have (Samsung GT-I5500) I tried to change the bootanimation.

As I know the boot animation folder is system/media and there it is... bootanimation.zip. For knowledge reasons, I copy bootanimation.zip in to my PC and extract it and surprisingly it was the original bootanimation from LG, not from my cellphone company.

With root explorer y search for "bootanimation.zip" and there is only 1 file with that name, the one I found, the LG bootanimation.

The question is, what the hell just happened? Why I'm not watching the original LG bootanimation when I turn on my phone? and where is the bootanimation working in my phone? how can I change my bootanimation if I can't even find it?

Thanks for any anwsrer and again sorry for my REALLY bad english
[LG G2 Mini] Vagelis1608:
Is there any other file in /system/media/ ?

BTW, I also have a GT-I5500 :D

Sent from my D620R [Stock 4.4.2]
[LG G2 Mini] cripii5:
Well, another folder with the audios, ringtones, etc.

Anyway i have found the solution by myself. The bootanimation.zip working in my phone is in cust/poweron (or poweroff for the animation when the phone turn off). So y copy de bootanimation.zip from system/media to cust/poweron and the same in shutdownanimation.zip in cust/shutdown and it works. I don't know if looking for any boot animation on the internet with the same resolution (540x960) and put it in that folder will work, I guess it does, because I don't see any difference, but I'm really scary about bricking my phone (I love it) so I'm not even gonna try. If someone wants to do it, by your own risk.

Is a big difference between the i5500 and the G2 mini, I'm still using both. I have 4 years with the i5500, I hope the LG stay with me at least 4 years too lol
[LG G2 Mini] v3n0m93:
I think it's not possible to brick the phone by changing bootanimation, anyway I have removed the animations from cust/poweron and poweroff and now my phone is using the ones found in system/media. And if u remove them completly then it boot with black screen or with android inscription flashing.
[LG G2 Mini] cripii5:
I've found in Google Play a bootanination changer app and in the comments I see a lot of people speaking about brick for using a wrong bootanimation resolution, I don't know how true it is.
[LG G2 Mini] v3n0m93:
These are pics of my g2 mini with cm boot animation and my nexus 7 with normal, too big and too small boot animations. I really can't imagine how to brick a device by changing them.
[LG G2 Mini] eta82:
I think it's not possible to brick the phone by changing bootanimation. I found in my G2 mini hidden folder "data/.OP/ORG_COM/poweron/bootanimation.zip" and there I switched animations.