yashsingh1/xdaforums huggingface dataset:
[Galaxy Note 3 Android Development] tdunham:
Yes, maam, that was it. I was doing that just as you posted but had to recompile and flash it to test so I would've gotten there eventually too. ;)

So here is what I have so far:

SystemUI smali edit

\smali\com\android\systemui\statusbar\phone\PhoneStatusBar.smali

Find the section below. The line in RED is original code, replace with line in BLUE as the edit.

Make certain your changed cond number matches the one further on down in the method in GREEN.

(there is no edit for the Green condition, just make sure your condition number matches that one)

.method private showHideQConnectLayout()V
.
.
.
iget-boolean v8, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mShowSFinderQConnectView:Z

if-eqz v8, :cond_5

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

[COLOR="Red"]if-nez v8, :cond_0
[/COLOR] [COLOR="Blue"] if-nez v8, :cond_5
[/COLOR]
iget-object v8, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mQsQConnectView:Landroid/view/View;

if-eqz v8, :cond_5
.
.
.
[COLOR="Green"]:cond_5
:goto_2
return-void
[/COLOR]
[Galaxy Note 3 Android Development] daxgirl:
One is glad to be of service.... ;)

Sent from my awesome g920f powered by 6thGear
[Galaxy Note 3 Android Development] metalfan78:
Excellent movie reference :)
[Galaxy Note 3 Android Development] daxgirl:
I know ;) (book actually)

Sent from my awesome g920f powered by 6thGear
[Galaxy Note 3 Android Development] Kamy:
Got the toggle working?
[Galaxy Note 3 Android Development] metalfan78:
Never read the book :(
[Galaxy Note 3 Android Development] tdunham:
Haven't tried yet. But I imagine this one will work:

Place toggle code in BLUE right ABOVE the original line in GREEN

[COLOR="Blue"] iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mContext:Landroid/content/Context;

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

move-result-object v0

const-string v1, "quick_connect_toggle"

const/4 v2, 0x0

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

move-result v0

if-nez v0, :cond_5
## Note - change the above if-nez to if-eqz if the toggle is backwards

[/COLOR]
[COLOR="Green"]if-nez v8, :cond_0[/COLOR]

Customsettings toggles:

<SwitchPreference android:title="Quickconnect Panel" android:key="quick_connect_toggle" android:summaryOn="Panel is hidden" android:summaryOff="Panel is shown" />
<Preference android:title="Restart SystemUI" android:key="tool#restartsystemui" android:summary="Tap after setting Quickconnect Panel" />

---------- Post added at 01:20 PM ---------- Previous post was at 01:02 PM ----------

Had to edit my original toggle post for the mcontext to work in this smali.

It does work but requires systemui restart which I added line for that along with the customsettings toggle.

On the fly could probably be accomplished with an invoke with an observer, but for now this will do. ;)
[Galaxy Note 3 Android Development] daxgirl:
The original post has a toggle guide that works. It works to turn it on even without reboot ui. I will have more time and make an observer for it. Should be fairly easy. Anyway, let me know how it works for you guys with the toggle I already have.

Sent from my awesome g920f powered by 6thGear
[Galaxy Note 3 Android Development] Kamy:
Edit: confirmed working on Note 3:good:

Linked this guide to OP, replaced with old guide thanks guys
[Galaxy Note 3 Android Development] Kamy:
Got the toggle also working, thanks [MENTION=1042140]tdunham[/MENTION] and [MENTION=4714483]daxgirl[/MENTION] you two re amazing.
[Galaxy Note 3 Android Development] daxgirl:
Pleasure, dear! Anything and always :)

Sent from my awesome g920f powered by 6thGear
[Galaxy Note 3 Android Development] JoHnNYBlaZE716:
What was the original method for the sfinder and qconnect removal again? I need to go back and undo it so I can do it the correct way with the toggle.
[Galaxy Note 3 Android Development] carl1961:
I think it was this http://xdaforums.com/showpost.php?p=61120581&postcount=3

<LinearLayout android:orientation="vertical" android:id="@id/sfinder_qconnect_layout" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:paddingLeft="@dimen/finder_connect_button_padding_right" android:paddingTop="@dimen/finder_connect_button_padding_top" android:paddingRight="@dimen/finder_connect_button_padding_left" android:paddingBottom="@dimen/finder_connect_button_padding_bottom" android:layout_width="fill_parent" android:layout_height="wrap_content">
<Button android:textSize="@dimen/tw_quick_panel_sfinder_qconnect_button_text_size" android:textColor="@drawable/tw_quick_panel_sfinder_qconnect_button_text_color" android:id="@id/sfinder_button_big" android:background="@drawable/tw_quick_panel_sfinder_qconnect_button" android:layout_width="0.0dip" android:layout_height="@dimen/finder_connect_button_height" android:layout_marginRight="10.0dip" android:text="@string/accessibility_sfinder_button" android:layout_weight="0.5" android:fontFamily="sec-roboto-light" />
<Button android:textSize="@dimen/tw_quick_panel_sfinder_qconnect_button_text_size" android:textColor="@drawable/tw_quick_panel_sfinder_qconnect_button_text_color" android:id="@id/qconnect_button_big" android:background="@drawable/tw_quick_panel_sfinder_qconnect_button" android:layout_width="0.0dip" android:layout_height="@dimen/finder_connect_button_height" android:layout_marginLeft="10.0dip" android:text="@string/accessibility_qconnect_button" android:layout_weight="0.5" android:fontFamily="sec-roboto-light" />
</LinearLayout>
<View android:id="@id/sfinder_qconnect_divider" android:background="@drawable/notification_bottom_line" android:layout_width="fill_parent" android:layout_height="1.0dip" />
</LinearLayout>
[Galaxy Note 3 Android Development] Er. Aditya:
bro is this all the edit needs to be done to make the toggle work ??
[Galaxy Note 3 Android Development] Kamy:
Yes. Are you using customsettings.apk?
[Galaxy Note 3 Android Development] Er. Aditya:
no sir , i guess thats the reason i cant use that

and also in my quick toggles i have flash light but it dissapears on its own , neither it shows in my edit quick toggles
[Galaxy Note 3 Android Development] Kamy:
So where do you set your toggle? For flashlight I think you need to clear manipulated data of Settings and SettingsStorage apps using titanium backup and reboot.
[Galaxy Note 3 Android Development] Walter.White:
[MENTION=4819130]kmokhtar79[/MENTION] Would you happen to know how to add/Enable Download Booster for Lollipop? If so, can you please share a guide?
[Galaxy Note 3 Android Development] Er. Aditya:
Flash light in settings guide on op is somehow related to the one in notification toggles ?
[Galaxy Note 3 Android Development] Kamy:
Nope. I have them both and don't cause any conflicting.
[Galaxy Note 3 Android Development] Er. Aditya:
Setup the notification panel torch with editing settings.db and it goes away own its own.... any guides to make it stick ?

I can refer to
[Galaxy Note 3 Android Development] Kamy:
No I didnt enable it through database as I am not sure if it's even exist in n3. There is a decent guide from our friend [MENTION=1042140]tdunham[/MENTION] which needs some smali edit and it would stick.

edit: [MENTION=5750672]Er. Aditya[/MENTION] it's here [Guide How-to] Enable Flashlight Toggle Android L
[Galaxy Note 3 Android Development] Kamy:
I am not sure how to enable it in a device which doesn't have that feature already but it's toggle can be enabled through settings.db.
[Galaxy Note 3 Android Development] Er. Aditya:
i guess there might be bit difference in note 4 lollipop , il check if i can get it to work

big thanks mate :)
[Galaxy Note 3 Android Development] JoHnNYBlaZE716:
Someone asked about where to put the toggle, in the Op of the thread I'm posting is a custom settings app. It is a wonderful app and can be used for many different things. Be sure to hit the thanks button while you're there.

http://xdaforums.com/showthread.php?p=46567731
[Galaxy Note 3 Android Development] usopjidin:
Dear friend here, thanks [MENTION=4819130]kmokhtar79[/MENTION] for starting this thread..

Does anyone here could guide me how to remove this chinese character. Which files to be edited.

Thanks in advance
[Galaxy Note 3 Android Development] Kamy:
That I guess, should be edited in SystemUI.apk\smali\com\android\systemui\statusbar\policy, DateView.smali. Just decompile it and compare it with an English version of the same samli or just drop your samli I would check.
[Galaxy Note 3 Android Development] usopjidin:
[MENTION=4819130]kmokhtar79[/MENTION] Thank you mate for the fast respond.. cheer
[Galaxy Note 3 Android Development] usopjidin:
[MENTION=3271517]carl1961[/MENTION] thank you mate.. well done and clear..
[Galaxy Note 3 Android Development] Er. Aditya:
found it and got the flash light toggle up and working thanks a ton buddy :D
[Galaxy Note 3 Android Development] Kamy:
Check this samli and compile it, let me know about the result
[Galaxy Note 3 Android Development] usopjidin:
[MENTION=4819130]kmokhtar79[/MENTION] [MENTION=3271517]carl1961[/MENTION] mates I manage to compile and flash it but it is funny that if or when i restore the save rom, I lost the status bar and the expandable status bar and the screen is just black..
[Galaxy Note 3 Android Development] carl1961:
When restoring from a backup with lollipop there does seem to be issues, the work around is after restoring a backup, before you leave recovery do a factory wipe then when rom boots skip through setup, go back to recovery and restore backup again without wipe.
[Galaxy Note 3 Android Development] usopjidin:
Thank you mate...
[Galaxy Note 3 Android Development] masterross:
Actually you can just flash systemui and SecSettings.apk and will be ok. No need to wipe.
[Galaxy Note 3 Android Development] Jemik33:
Is there has touchwiz lollipop 6x7??
[Galaxy Note 3 Android Development] Er. Aditya:
can someone provide custom settings apk with any mod done for reference ??

thanks
[Galaxy Note 3 Android Development] willowmaker420:
You can find in this post by [MENTION=3065070]Goldie[/MENTION]

http://xdaforums.com/showthread.php?p=46567731
[Galaxy Note 3 Android Development] tdunham:
[MENTION=1236525]and2[/MENTION]

Would you mind sharing the xml change for moving the pin higher in recent apps for screen pinning?

I figured out that if you use my back to kill mod, it kills the pinned app btw. The destroy method you posted doesn't seem to work on the S5, all I get is a settings FC with a null pointer exception when it has been added.

So I think that may be a useful workaround for those that are having trouble killing the pinned app. I want to release a screen pinning guide at some point too when I have all the info we need. :highfive:

Re: your problem with the pin windows status not changing to On, make sure this is corrected string value in BLUE

Search for credentials_reset to find this section. If you do not have that area, it will have to wait for the guide since there is extra smali change further on down the method too.

\smali\com\android\settings\SecuritySettings.smali

invoke-virtual {v0, v1}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z

:cond_13
:goto_8
:try_start_1
invoke-virtual/range {p0 .. p0}, Lcom/android/settings/SecuritySettings;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v49

const-string v50, "lock_to_app_enabled"

invoke-static/range {v49 .. v50}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;)I

move-result v49

if-eqz v49, :cond_td

const-string v49, "screen_pinning_settings"

move-object/from16 v0, v36

move-object/from16 v1, v49

invoke-virtual {v0, v1}, Landroid/preference/PreferenceScreen;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

move-result-object v49

invoke-virtual/range {p0 .. p0}, Lcom/android/settings/SecuritySettings;->getResources()Landroid/content/res/Resources;

move-result-object v50

[COLOR="Blue"]const v51, 0x7f0a0f21 ## type="string" name="switch_on_text"
[/COLOR]
invoke-virtual/range {v50 .. v51}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

move-result-object v50

invoke-virtual/range {v49 .. v50}, Landroid/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V
:try_end_1
.catch Landroid/provider/Settings$SettingNotFoundException; {:try_start_1 .. :try_end_1} :catch_1

:cond_td
:goto_td
const-string v49, "show_password"

move-object/from16 v0, v36

move-object/from16 v1, v49

invoke-virtual {v0, v1}, Landroid/preference/PreferenceScreen;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

move-result-object v49

check-cast v49, Landroid/preference/CheckBoxPreference;

move-object/from16 v0, v49

move-object/from16 v1, p0

iput-object v0, v1, Lcom/android/settings/SecuritySettings;->mShowPassword:Landroid/preference/CheckBoxPreference;

const-string v49, "credentials_reset"

move-object/from16 v0, v36

move-object/from16 v1, v49
[Galaxy Note 3 Android Development] and2:
Thank you i´ll try it right now.

For the pin icon position change the

android:layout_marginRight="15.0dip" android:layout_marginBottom="15.0dip"

in SystemUI/res/layout/recents_task_view.xml

I have for the marginBottom 288.0dip.

About the Destroy Method ther must be something different in the Note 3 software because darkera tried it on the Note 4 port and it dos not work. I just took the lines from the Nexus 6 settings.
[Galaxy Note 3 Android Development] tdunham:
That's what I was thinking too. If you want to look at my guide, I just posted for screen pinning in my thread (not on the OP, near the very last post), it shows where the string value is for the ON/OFF for the menu item. Maybe the code is missing in your smali and that is why you are getting the force close but at least you can see if you have any differences.
[Galaxy Note 3 Android Development] and2:
Great, yes the code is missing even "show_password" (i use Note 4 settings). But i´ll try it.
[Galaxy Note 3 Android Development] tdunham:
This worked perfectly btw and added it to the guide.

---------- Post added at 07:56 PM ---------- Previous post was at 07:27 PM ----------

Let me know. I can send you before and after smali to diff if you need to see more of the surrounding code.
[Galaxy Note 3 Android Development] and2:
Would be nice if you could give me the whole smali file. I always get a recompile failure "There is already a label with that name". I´m not sure that i choosed the right values for v50 and v51.

Thank you.
[Galaxy Note 3 Android Development] tdunham:
I think I know what it could be so pm me yours too and I'll send you mine.

---------- Post added at 11:56 PM ---------- Previous post was at 11:43 PM ----------

I think we might have to increase your end, start, catch statement values by 1. That was the same error I was getting when I tried to add it but you must have an additional one in there that isn't in ours.

---------- Post added at 11:57 PM ---------- Previous post was at 11:56 PM ----------

And I just noticed this is a Note 3 thread so it would be great to get it working properly for this phone too. ;)
[Galaxy Note 3 Android Development] Er. Aditya:
has anyone tried this on note 4 ?

tried this when i press restart systemUI , the custom setting fc and sometimes the method works and rest it dsnt

strange things are happening
[Galaxy Note 3 Android Development] tdunham:
You are missing stericson files in custom settings so it can get root access. I will post them for you later unless someone beats me to it.
[Galaxy Note 3 Android Development] Er. Aditya:
that sorts it out...thanks a million buddy and also no call end delay isnt working no fc , everything is working but the mod is not working
[Galaxy Note 3 Android Development] JoHnNYBlaZE716:
I have the end call delay working on my note 3, following the guide in [MENTION=1042140]tdunham[/MENTION]'s thread
[Galaxy Note 3 Android Development] Er. Aditya:
the toggle works properly bro ?
[Galaxy Note 3 Android Development] JoHnNYBlaZE716:
I've only really tried no delay and the default delay, and I can notice the difference
[Galaxy Note 3 Android Development] tdunham:
If you don't have the files yet for customsettings, they are in this post:

http://xdaforums.com/showpost.php?p=53836802&postcount=6
[Galaxy Note 3 Android Development] Er. Aditya:
Got it sir now the systemui mod is working super hot :D
[Galaxy Note 3 Android Development] tdunham:
Check to make sure your invoke is calling the correct virtual object. In my guide, I have two sections. One returns v1 and the other returns v2 so you have to make sure yours matches too for the invoke:

[COLOR="Blue"]move-result v2
[/COLOR]
invoke-static {p1, [COLOR="blue"]v2[/COLOR]}, Lcom/android/incallui/operator/usa/InCallUIExtension;->getDelayForDisconnect(Lcom/android/incallui/Call;I)I
[Galaxy Note 3 Android Development] Er. Aditya:
few things have changed in latest base OE4 india , now there's just 1 place where where we need to edit 0x1194
[Galaxy Note 3 Android Development] tdunham:
Every rom is different. I just saw one where the disconnect method was nearly two pages long. :rolleyes:
[Galaxy Note 3 Android Development] Er. Aditya:
Hahaha it still same...no errors no nothing just dsnt work

Il look tomorrow

Great support mate ...gn
[Galaxy Note 3 Android Development] usopjidin:
Anyone here could help me, which files under systemUI to be edited in order to restore back sfinder and quick connect for samsung Note3 touchwich lollipop 5.0.2

The rom developer has deleted or omitted the sfinder and quick connect

Thanks in advanced..
[Galaxy Note 3 Android Development] Kamy:
It's in PhoneStatusBar.smali, Did you check here: http://xdaforums.com/showpost.php?p=61158774&postcount=783
[Galaxy Note 3 Android Development] usopjidin:
[MENTION=4819130]kmokhtar79[/MENTION] Thank you friend
[Galaxy Note 3 Android Development] Er. Aditya:
i have tried alot but call end delay dnt works

can you take a look mate when you have time
[Galaxy Note 3 Android Development] tdunham:
Let me see the unedited version too please. One of the additions looks like it is in the wrong position.
[Galaxy Note 3 Android Development] masterross:
Find:

const/16 v2, 0x1194

replace with:

const/16 v2, 0x1

Find:

const/16 v1, 0x1388

eplace with:

const/16 v1, 0x1

Both have 2 places in file
[Galaxy Note 3 Android Development] tdunham:
That is for static change, he wants to use the variable one I posted the guide for custom end call delay.
[Galaxy Note 3 Android Development] Er. Aditya:
here sir
[Galaxy Note 3 Android Development] tdunham:
You have only one const/16 v1, 0x1194 to replace but you added two sections.

My guide shows replacing TWO 0x1194 occurences, but you only have one so you should have questioned that I think. I guess I'll have to update the guide somewhat.

Remove the second section and change the move-result at the end of the first one from v2 to v1 and try it again.
[Galaxy Note 3 Android Development] Er. Aditya:
ok sir let me give it a shot :)
[Galaxy Note 3 Android Development] Er. Aditya:
i made changes but this dsnt seem to work as well
[Galaxy Note 3 Android Development] kpirnie:
Hey bro, you wouldn't happen to know where I look to set the default widgets and number of screens for TouchwizHome_K would you? I did a mod awhile back, and can't remember what the f* I changed, and borked adding the weather widget ;)

I thought it was in SystemUI, but now I'm not so sure...
[Galaxy Note 3 Android Development] Martillero:
I think it is in some file of the xml folder of touchwizhome, I don't remember which one.
[Galaxy Note 3 Android Development] Goldie:
Default_workspace I believe
[Galaxy Note 3 Android Development] and2:
For the number of screen it is in TouchWizHomexxx/res/values-xx/integers.xml and change the value for

<integer name="config_workspaceMaxScreenCount">9</integer>

For the others i don´t understand what you mean, sorry.

Edit: Oh, i see i did not understand anything what you mean [emoji56]
[Galaxy Note 3 Android Development] Kamy:
default_workspace_cp.xml in CSC folder
[Galaxy Note 3 Android Development] kpirnie:
You guys rock! :)

Thanks for this

---------- Post added at 10:02 AM ---------- Previous post was at 09:50 AM ----------

You wouldn't happen to know what I'm doing wrong here would you?

ui_print("@ XPosed Installer");
package_extract_dir("kev/xposed/system", "/system");
symlink("/system/bin/app_process32_xposed", "/system/bin/app_process32");
set_metadata("/system/xbin/dex2oat", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:dex2oat_exec:s0");
set_metadata("/system/xbin/patchoat", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:dex2oat_exec:s0");
set_perm(0, 2000, 0755, "/system/bin/oatdump");
set_perm(0, 0, 0644, "/system/xposed.prop");
set_perm(0, 0, 0644, "/system/framework/XposedBridge.jar");
set_perm(0, 0, 0644, "/system/lib/libart.so");
set_perm(0, 0, 0644, "/system/lib/libart-compiler.so");
set_perm(0, 0, 0644, "/system/lib/libart-disassembler.so");
set_perm(0, 0, 0644, "/system/lib/libsigchain.so");
set_perm(0, 0, 0644, "/system/lib/libxposed_art.so");
set_perm(0, 0, 0644, "/system/framework/core-libart.jar");

The framework installs, but the installer app states it's not, and I'm not able to use any xposed mods...
[Galaxy Note 3 Android Development] masterross:
oh. Sorry.

Where is your guide?

Also do you know how to activate charging effects on S5?

I did try and i can select them from settings but nothing happen on the lockscreen when I plug the charger.
[Galaxy Note 3 Android Development] Er. Aditya:
can you send me your sec settings apk :)
[Galaxy Note 3 Android Development] balla48801:
No problem here it is

SecSettings
[Galaxy Note 3 Android Development] Er. Aditya:
if i am not wrong this is same under display , you can turn it on by volume up ?

if yes gimme some time :highfive:
[Galaxy Note 3 Android Development] balla48801:
Im not sure I understand the question?

If you mean am I trying to add the torch toggle in the display settings tab and activate it by volume up then yes that is what I am trying to accomplish.
[Galaxy Note 3 Android Development] Er. Aditya:
uploading the apk mate

edit : https://www.androidfilehost.com/?fid=24052804347757672

remove balla from front and replace manually and do let me know if it works
[Galaxy Note 3 Android Development] balla48801:
It worked. Your the man. Please dont leave me hanging though. What did I do wrong or not do?

Update: Nevermind I see what it is. This might help someone else. When you search for torchlight_settings in public.xml there are 3 instances. Make sure you pick the one with type="xml".
[Galaxy Note 3 Android Development] starbucks2010:
Anyone know if potato clock is working in Lollipop?

Thank you.
[Galaxy Note 3 Android Development] JoHnNYBlaZE716:
I have potato clock working on my phone running lollipop
[Galaxy Note 3 Android Development] Kamy:
That would be a good reference to describe how to mod it. are smalis same and is that same layout to be editted?
[Galaxy Note 3 Android Development] robbieraw:
Charging Effect help

I'm using Norma Rom version 23 and everything is working perfectly for me right now. I was wondering if there is a guide that anyone can point me to that tells you how to add the charging effect to your lock screen? I know there are a couple of mods out there but none of them are compatible with my version of SecSettings and SystemUI which I'm sure will have to change. Plus I like doing things like this myself ;)

I have searched high and low without any luck. Thanks in advance