yashsingh1/xdaforums huggingface dataset:
[Galaxy Note 3 Android Development] edzamber:
Hi all,

I follow this guide to have clock and date centered in lockscreen.

http://xdaforums.com/showthread.php?p=61859260

But no luck on 5.1.1 S6 Edge Rom.

Maybe in smali...

Is someone know how to do ?

Cheers,

Edzamber
[Galaxy Note 3 Android Development] starbucks2010:
Try here or inspire yourself from my status bar xml.

Good luck.
[Galaxy Note 3 Android Development] edzamber:
Hi,

Thanks for reply :)

Its not statubar but Lockscreen clock position.
[Galaxy Note 3 Android Development] starbucks2010:
Ah, sorry. I thought that is about the status bar. My bad :)
[Galaxy Note 3 Android Development] edzamber:
No worries, i am looking over smali... It should be somewhere ;)
[Galaxy Note 3 Android Development] sieuan:
...........................
[Galaxy Note 3 Android Development] Goldie:
Never understood why it refers to a bool ID for ime switcher in that mod. Surely thinking about it it would make more sense to hardcode as 0x1 or remove the if statement completely and hence remove the need to correct that ID
[Galaxy Note 3 Android Development] sieuan:
Hi all

I'm trying to mod black theme for my Note 3 stock TW firmwave. Can someone help me change color of the notification button background here:

Thanks!

//// Solved.....
[Galaxy Note 3 Android Development] sieuan:
Can someone help me change color of the ON/OFF button too dark, thanks!
[Galaxy Note 3 Android Development] BRoy_98:
Hi, can anyone help me to theme my notification panel like lollipop.? It is Tab 4 7.0 running 4.4.2. Please help me. This theme is very borring.
[Galaxy Note 3 Android Development] filchi756:
On note5 port roms ,I think the 2 lines below in framework-res/res/values/dimens.xml, are responsible for those toggles. Am not sure if its the same on Note3 stock roms though,but maybe you can try them?

tw_switch_on_mtrl
tw_switch_off_mtrl
[Galaxy Note 3 Android Development] _Sofos_:
Hi, subscribed, great thread! Any ideas if it's possible to change the width of recent tabs in recent panel?

Thank you in advance.
[Galaxy Note 3 Android Development] yyh991013:
Hi guys?

What should I do if I want to change the background color of Status Bar？

Not the notification panel but the button panel?

来自我的 SM-N9200 上的 Tapatalk
[Galaxy Note 3 Android Development] ROBERT CM:
deleted
[Galaxy Note 3 Android Development] Goldie:
Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f0a03a1
[Galaxy Note 3 Android Development] Petreion:
thanks [MENTION=3065070]Goldie[/MENTION] happy holidays

I will try to add 0x7f0a03a1 in public end i make a test:)

---------- Post added at 08:04 PM ---------- Previous post was at 07:44 PM ----------

wow :) work thankx
[Galaxy Note 3 Android Development] bubenking:
what do you mean by framework>public ? i cant find.

it is for 5 way reboot. [MENTION=4819130]kmokhtar79[/MENTION]
[Galaxy Note 3 Android Development] edzamber:
res/values/public.xml file.
[Galaxy Note 3 Android Development] ROBERT CM:
Guys ..

How I can put notifications corner round SystemUI on TW Lollipop ?

Any idea

Thanks ..
[Galaxy Note 3 Android Development] kakkooran:
Decompile systemui got to res/values.open dimens.xml with notepaad++.Find the line"<dimen name="notification_material_rounded_rect_radius">2.0dip</dimen>

Change that value 2 to 9.Recompile the systemui.Done
[Galaxy Note 3 Android Development] bubenking:
but one is 0x0112000a and the other is 0x112000a on your example its not the same

what to do exactly there?

its the mod for 5 way reboot [MENTION=4819130]kmokhtar79[/MENTION] [MENTION=5792084]kakkooran[/MENTION] [MENTION=4507636]edzamber[/MENTION]

thx in advance :)
[Galaxy Note 3 Android Development] sieuan:
I tried with my Note 3 and successfully make a reboot option. Reboot working good, reboot download mode working good, but the reboot recovery get issue, when press reboot recovery, my phone was reboot system, not reboot to recovery. I dont know what the problem, can you help me? Thanks sir!
[Galaxy Note 3 Android Development] tdunham:
Get a logcat capturing the error. It will show where your mistake is.
[Galaxy Note 3 Android Development] sieuan:
Here is my logcat sir. I dont understand to read it. Can you help me read the error? Thanks!
[Galaxy Note 3 Android Development] ROBERT CM:
Works excellent thanks

but as I can remove these shadows in the corners of the notifications rounded.. It is possible to have rounded corners without these shadows?

Thanks :D
[Galaxy Note 3 Android Development] bubenking:
there isnt display-headers anywhere :eek: :rolleyes:
[Galaxy Note 3 Android Development] tdunham:
Different versions of android use different xml files. You may need to find the ones yours uses for settings layouts.

I cant find a fatal error in your log. Did you capture it while doing the action that causes the reboot? We need to capture the error as it happens.
[Galaxy Note 3 Android Development] bubenking:
Can you tell me where this file could be located ? :D
[Galaxy Note 3 Android Development] tdunham:
I think you're working with secsettings? All layout files for the menus we normally work with are located in res/xml of the decompiled apk. You will have to provide your version of android for someone to help with what you are doing and I don't really even remember what it was you were trying to add so you might want to refresh us on that too.
[Galaxy Note 3 Android Development] sieuan:
Solved

I found that the error because i've edited string code in SinglePressAction.smali[emoji16] changed it to original string code and finally it works good. Thanks sir!

BTW, can we change string of 5 ways to other language sir?
[Galaxy Note 3 Android Development] sieuan:
Hi sir! Can we change word "Torchlight" to other word? Such as "Torch light", or change in other language. I added string name

Torch light
Torch light

and also add in other language "values" folder.

But it still display "Torchlight", not "Torch light" or "xxx yyy",...
[Galaxy Note 3 Android Development] bubenking:
so it was for adding upsm menu in secsettings. my android version is 5.1.1, galaxy note 3 neo.
[Galaxy Note 3 Android Development] bleros:
Hello [MENTION=1042140]tdunham[/MENTION] in systemui lolipop code is not same as you posted is method public there is no private so i will replace this if-nez v5, :cond_0 to cond 5? do u agree or to cond_6 cuz all are cond_6

.method public showHideQConnectLayout()V
.locals 13

.prologue
const/16 v12, 0x64

const/4 v11, 0x1

const/16 v10, 0x8

const v9, 0x7f0e01f8

const/4 v8, 0x0

.line 7082
iget-boolean v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mShowSFinderQConnectView:Z

if-eqz v5, :cond_6

iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mQconnectSfinderView:Lcom/android/systemui/statusbar/QconnectSfinderView;

[COLOR="Red"] if-nez v5, :cond_0[/COLOR]

iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mQsQConnectView:Landroid/view/View;

if-eqz v5, :cond_6

.line 7083
:cond_0
const/4 v1, 0x0
[Galaxy Note 3 Android Development] tdunham:
Your v5 register is fine but your cond_0 is not correct. If you scroll down in my example, the condition points to the one in that method right before the return-void. Just make condition pointer the same as the one above the return void like the example.
[Galaxy Note 3 Android Development] bleros:
Stock is set to 0 so i will change to 6 is that ok ?
[Galaxy Note 3 Android Development] tdunham:
I don't know where cond_6 points to in yours because you did not show.

It needs to be changed to match the one right above the return-void like in my example in the same method where mine is cond_5:

:cond_5
:goto_2
return-void
[Galaxy Note 3 Android Development] bleros:
Yes but i cant see return-void here ? should be there under this i have posted codes

.line 7083

:cond_0

const/4 v1, 0x0

.line 7083

:cond_6

const/4 v1, 0x0
[Galaxy Note 3 Android Development] tdunham:
.line 7153
.end local v0 # "currentUserId":I
.end local v1 # "hide":Z
.end local v2 # "isKioskEnabled":Z
:cond_6
:goto_1
return-void

If you searched that method you would see cond_6 above the return-void so that is what to use.
[Galaxy Note 3 Android Development] SamuelBegui:
Searched everywhere but can't seem to find what is causing those out of place rectangular shadows :/
[Galaxy Note 3 Android Development] kakkooran:
Do you know how to make status bar and notification panel as marshmallow?
[Galaxy Note 3 Android Development] edzamber:
Hi all,

First Happy New year :)

I have a problem with id in globalAction$99.smali for 5way to reboot menu Mod.

My framework's public id type="bool" name="show-ongoing_ime_switcher" id is 0x0112000a

When i add my framework public id (0x0112000a) in globalAction$99.smali and recompil android.policy.jar, then decompil again my id becomes 0x112000a instead of 0x0112000a). So power menu doesn't working because it miss a 0 in public id).

I use TMA v12.

If someone can explain me why ?

Many thanks,

Cheers,

Edzamber.
[Galaxy Note 3 Android Development] tdunham:
Smali cannot use leading zero from framework, it is always this way in all smali.

If framework public id for resource is 0x09999999, smali can only use 0x9999999 so your problem is you used zero where it cannot be used or different problem.
[Galaxy Note 3 Android Development] edzamber:
Thanks for your answer :)

I restart guide again, maybe an another issue...
[Galaxy Note 3 Android Development] sieuan:
How about project restore (or porting) blocking mode function on note 3 sir?
[Galaxy Note 3 Android Development] bdorr1105:
Make sure Lcom/android/internal/policy/impl/GlobalActions got the same access$, it's access$500 at my end it might be different in different devices. Compare GlobalActions.smali with GlobalActions$99.smali

There is an id in GlobalActions$99;

Code:

const v2, 0x112000a

that also needs to be same as in framework>public

Code:

<public type="bool" name="show_ongoing_ime_switcher" id="0x0112000a" />

What??? Not sure what line i am looking, there are tons of const v2??? completely lost
[Galaxy Note 3 Android Development] edzamber:
Search for 0x0112000a into GlobalActions$99.smali and replace with your public show_ongoing_ime_switcher id.
[Galaxy Note 3 Android Development] bdorr1105:
Thanks for that, but I mean the $access number, the writing literally makes no sense
[Galaxy Note 3 Android Development] edzamber:
Its just a landmark to find the good const v2 where put id (just after line with acces$500 content)

In some devices, acces$ number is different, so needs to look into your GlobalAction.smali if "acces$500" is referenced, maybe its "acces$600" for exemple. So just verify and if its $600, you need to change it in GlobalAction99.smali into acces$600 instead of acces $500...

Got it ?
[Galaxy Note 3 Android Development] Rick1684:
Hello Im having the same issue. I dont quite understand. I have found the access$500 in the globalactions.smali. I added const v2, 0x112000a under the line with access$500. I checked the public.xml and it is correct id. Now when long pressing power phone reboots without popup.. Please help.
[Galaxy Note 3 Android Development] tdunham:
If you look at this in part in globalactions$99.smali:

# getter for: Lcom/android/internal/policy/impl/GlobalActions;->[COLOR="Red"]mContext[/COLOR]:Landroid/content/Context;
invoke-static {v2}, Lcom/android/internal/policy/impl/GlobalActions;->[B]access$500[/B](Lcom/android/internal/policy/impl/GlobalActions;)Landroid/content/Context;

I highlighted in red, it is looking to gain access to the method in main globalactions.smali that refers to mcontext. You may have to change the reference of access$500 to access$400 or whichever acess$xxx uses mcontext to match your version of globalactions.smali.

Here is example of my access$500, so mine is correct it gets mcontext:

.method static synthetic access$500(Lcom/android/internal/policy/impl/GlobalActions;)Landroid/content/Context;
.locals 1
.param p0 # Lcom/android/internal/policy/impl/GlobalActions;

iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->[COLOR="Red"]mContext[/COLOR]:Landroid/content/Context;

return-object v0
.end method
[Galaxy Note 3 Android Development] Rick1684:
Thanks, my access$500 in globalactions.smali. Looks identical to what you posted. It has the mContext already. So nothing needs to be changed?
[Galaxy Note 3 Android Development] tdunham:
Then you can rule that out I guess.

See if you can capture the error in a logcat so you can find the problem.

Search the log for the keyword 'fatal', it should provide area that is giving the problem.

Post it as zip if you cant figure out the log.
[Galaxy Note 3 Android Development] Rick1684:
Here is the logcat. Its right at the bottom of the txt. Thank you
[Galaxy Note 3 Android Development] tdunham:
Well, that wasn't a whole lot of help.

Looks to be something wrong in GlobalActions.smali but nothing specific.

---------- Post added at 02:55 PM ---------- Previous post was at 02:45 PM ----------

Post your smali in zip too.
[Galaxy Note 3 Android Development] Rick1684:
I just went back through the changes and everything seems correct. Hopefully I missed something.

Is it something about signature. Could it be something I did in Tma.? I recompiled, created flashable zip, and flashed with flashfire. Also when I pasted the smali files from op it asked me to overwrite one of the smali's. I dont know if that was normal since there was nothing about overwriting in post.
[Galaxy Note 3 Android Development] tdunham:
Your phone wouldn't boot if there was a signature problem.

Attach the rest of the files, including the 3 new ones you added that are new and GlobalActions$SinglePressAction.smali. You made sure id for imeswitcher matches your framework too?
[Galaxy Note 3 Android Development] Rick1684:
Yes I did, It was correct from the start. Did not change anything. Thanks, Im out of thanks for the day or I would be hitting the button on all these.
[Galaxy Note 3 Android Development] tdunham:
I'm working so can't look yet but I was thinking it would be easier for you to zip up fully decompiled stock and moDified android.policy.jars so we can compare them side by side with winmerge. It's easier to see all your changes that way.
[Galaxy Note 3 Android Development] Rick1684:
Sure thing. I really appreciate all the help.. I'm trying to bring a decent rom to a device that literally has none. We have stock deodexed 5.01 and no custom recoveries. S4 Active U.S. variant i537, Its a shame it is a very nice device.
[Galaxy Note 3 Android Development] tdunham:
In your:

\android.policy.jar\smali\com\android\internal\policy\impl\GlobalActions.smali

You changed an ID from

const v2, 0x1040103

to

const v2, 0x112000a

Change it back.

And the edit in Globalactions$99 you didn't do, the 0x112000a is still there.

Musta gotten confused. ;)

And I think you're supposed to change it FROM 112000a TO the ID in your framework that matches. Maybe it doesn't need to be changed, mine didn't need to be changed, its exactly the same in my framework-res.apk as 112000a.
[Galaxy Note 3 Android Development] Rick1684:
Thank you, I'm still not having any luck getting it working. It no longer reboots on pressing the power button. It is just working like normal now with the const changed back. I even pulled a new android.policy.jar and started over. Could you run that software on these files for me please. I appologize.
[Galaxy Note 3 Android Development] tdunham:
They look correct now.

You know the extended power menu only shows after you pick restart, right?

---------- Post added at 12:08 AM ---------- Previous post was at 12:07 AM ----------

Oh, and you don't have to do that edit for the imeswitcher, yours is the same as in the smali already.
[Galaxy Note 3 Android Development] Rick1684:
Yea. Unfortunately. I will try to look at the smalis. Maybe there's some little difference in those files I pasted.
[Galaxy Note 3 Android Development] ROBERT CM:
Guys ..

How make a rom control? To customize rom for lollipop (5.0.x & 5.1.1) any reference to guide this..

Thanks :D
[Galaxy Note 3 Android Development] tdunham:
Anything is possible. I would try the modified jar on the stock rom.
[Galaxy Note 3 Android Development] starbucks2010:
Guys,

I had a quick look into your files and compared with mine. I found a big difference in GlobalActions$SinglePressAction.smali compared to my file. I'm far for understanding how smali works, but I don't see anywhere in your file calling for v7 and v8 added in

# direct methods

.method static constructor <clinit>()V

Just a wild guess.

PS. I attached my working decompiled android.policy.jar if you want to have a look.
[Galaxy Note 3 Android Development] Rick1684:
Edit thanks darn refresh
[Galaxy Note 3 Android Development] Rick1684:
I'm still not having any luck . Do you have any ideas on what to change? I see the difference but am not experienced enough to figure out what to change. I tried using

The globalactionssinglepressaction.small from yours and no change. Then I tried using all 5 modfed files from yours and softbricked. After a fresh install I tried my original corrected android.policy.jar and still nothing. So I can rule out xposed. Any help would be appreciated.
[Galaxy Note 3 Android Development] buggaty:
THANKS FOR THIS THREAD

PLZ HELP HOW CAN EDIT SETTING LIKE S6

FOR QUIK SETTING
[Galaxy Note 3 Android Development] ROBERT CM:
You can share your android.policy.jar original (no edit) for compared

Thanks :)
[Galaxy Note 3 Android Development] starbucks2010:
Sure. Here it is.
[Galaxy Note 3 Android Development] buggaty:
[MENTION=6947871]ROBERT CM[/MENTION]
[Galaxy Note 3 Android Development] asc1977:
Anybody know how to hide statusbar on lockscreen 5.1.1 Lollipop?

Gesendet von meinem SM-G928F mit Tapatalk
[Galaxy Note 3 Android Development] Amit.A:
this guide is making my phone boot loop and if this guide is done successfully in other ways then when holding power menu button i get fast boot instead of getting my power menu

---------- Post added at 01:23 PM ---------- Previous post was at 01:03 PM ----------

upsm guide not working and in my smail its different can you please guide me or chnage the lines in my systemserver.smail and so i can test please think this as a small help thank you

---------- Post added at 01:23 PM ---------- Previous post was at 01:23 PM ----------

upsm guide not working and in my smail its different can you please guide me or change the lines in my systemserver.smail and so i can test please think this as a small help thank you
[Galaxy Note 3 Android Development] Kamy:
[MENTION=6210191]Amit.A[/MENTION] there is no need to quote the entire post. Please edit yoilr your post. Drop your log for 4way reboot then I take a look at it. For UPSM mod I dont know. Those smalis are ported from S5 to be working on Note3 if you are on other device I guess you should try port it according to your android version and the device you are running on.
[Galaxy Note 3 Android Development] Amit.A:
OK.. i am in 5.1.1 android having touchwizrom my devices is note 3 neo but the 5 boot menu can you fix for me
[Galaxy Note 3 Android Development] thereassaad:
I done 5 way reboot many many times on s6 5.1.1 without any bootloop mate just retry it from zero & make sure there is no other mod on ur android.policy.jar ok
[Galaxy Note 3 Android Development] Amit.A:
these lines are not linked i mean not found in my golobe.smail can you please look into if if possible
[Galaxy Note 3 Android Development] Umair Ahmad:
[MENTION=4819130]kmokhtar79[/MENTION] mate ... can you help me i was trying to mod torchlight and screenshot in power menu and i get error in recompiling

here is my log
[Galaxy Note 3 Android Development] Kamy:
Check line 4290, 4292, 4588 in GlobalAction.smali most likely you insert a version that is not compatible with your method. Check other nonmodded lines you may have some hints.
[Galaxy Note 3 Android Development] buggaty:
[MENTION=4819130]kmokhtar79[/MENTION] PLZ HELP ME I WANT MODDED SETTING LIKE S6 SETTING AND THANKS
[Galaxy Note 3 Android Development] bdorr1105:
Hey [MENTION=4819130]kmokhtar79[/MENTION], Could I bug you for some help. I would like to do this on the LG v10, built in versus using Tweakbox, I can pm whatever you need
[Galaxy Note 3 Android Development] Er. Aditya:
turning out to be a request thread !!
[Galaxy Note 3 Android Development] :
Hello all. My question is off-topic but hope you can help me. I have GS4 I9500.

I used the AdvancedApkTool (given in the OP) to decompile deodexed GlanceView. I replaced my icons with the original ones and I edited some layout xmls to change color of date. Recompiled it and replaced it with in the system. It didn't work so I tapped on the modified apk and saw the "Problem parsing the package" error. This error gets fixed if I select recompile and sign in advancedapktool. I recompiled and signed and pushed it to system but the real problem is everytime I boot my GS4, it says "Unfortunately, GlanceViewMk stopped." If I turn off and turn on Quick glance in air gesture settings I can use the modified one but after the screen goes black (when GlanceView is done) it gives the same error: "Unfortunately, GlanceViewMk stopped." Can anyone help me fixing it?
[Galaxy Note 3 Android Development] Ouweshs28:
Make sure png are same name and size..

For the xml make sure the codes are right..with#
[Galaxy Note 3 Android Development] kmdangi:
Hi,

I am using Aurora ROM on Note 3 n900.

How can I change the Date text from Green to black in the Splanner icon ?
[Galaxy Note 3 Android Development] Kamy:
Use monitor from android sdk and find the color.
[Galaxy Note 3 Android Development] kmdangi:
Sorry Bro I could not get it :crying:... can you explain in details please ?
[Galaxy Note 3 Android Development] Er. Aditya:
android sdk > get android sdk tools and in tools you will have monitor that can be used to find specific things on your android devices .... try that
[Galaxy Note 3 Android Development] kmdangi:
I installed and configured SDK tools after long efforts !

Now how to find the Splanner text color info and modify it ?
[Galaxy Note 3 Android Development] Fe Mike:
Thank you for your contributions. I've been trying some of the s5 mods on the s6. It's been relatively similar coding. I'm still a Noob but have been progressing. With this mod, Im comparing the globalactions.smali with globalactions99.smali for the access500 line and they both have it. But the line const v2, 0x112000a that's in globalactions99.smali isn't in the other one. I did confirm that my device show-ime-switcher is 0x0112000a. Am I missing something or flat out misunderstood what I'm too compare between the two files. Thank you
[Galaxy Note 3 Android Development] kykint:
Hi. I successfully added 5way reboot in my phone and I wonder if I can use reboot strings(hot reboot, download mode...) from framework-res.apk, rather than hardcoding it inside the smali file. Any way I can do this?

Thanks in advance.
[Galaxy Note 3 Android Development] edzamber:
Hi,

Have a look here

http://xdaforums.com/galaxy-s5/development/mod-translatable-4-reboot-outsource-t2835432
[Galaxy Note 3 Android Development] kykint:
That's doesn't look much difficult. Thanks :)
[Galaxy Note 3 Android Development] janaman:
hi gus, how to change status bar (blue) color to green ?
[Galaxy Note 3 Android Development] sieuan:
Try this:

<item type="drawable" name="status_bar_background">
[Galaxy Note 3 Android Development] janaman:
wher can i find ? colors.xml ?

edit : problem solved.

colors.xml edit:

<color name="system_bar_background_opaque">#ff3983c2</color>

<color name="system_bar_background_semi_transparent">#00000000</color>

<color name="system_bar_background_transparent">#00000000</color>

<color name="notification_panel_solid_background">#ff3983c2</color>

& s-finder hidden :)
[Galaxy Note 3 Android Development] ROBERT CM:
A question to round the notifications in my case is also rounded the bottom of the curtain of notifications (SFinder and Quick connect )

Any idea to fix it ? [MENTION=3136944]Repulsa[/MENTION]

Thanks