yashsingh1/xdaforums huggingface dataset:
[Galaxy Note 3 Android Development] wcoast:
[MENTION=4819130]kmokhtar79[/MENTION] afternoon and how are you doing mate, any update on display_settings add on code for auto start
[Galaxy Note 3 Android Development] Rajada:
You just need to follow the original tutorial:

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

and thank the creator of the mod [MENTION=4872623]DaRk-L0rD[/MENTION]

<header android:icon="@drawable/ic_settings_autostarts" android:id="@id/autostarts_settings" androidgeneral:title="@string/autostarts_title" android:fragment="com.android.settings.autostarts.LewaManageAutostarts" />

add the code above to res/xml/general_headers.xml

immediately below of this line:

<header android:icon="@drawable/ic_settings_default_apps" android:id="@id/launch_application_settings" android:title="@string/launch_application_settings" android:fragment="com.android.settings.LaunchApplication" />
[Galaxy Note 3 Android Development] wcoast:
I get this error.... SecSettings.apk\res\xml\general_headers.xml:31: error: Error parsing XML: unbound prefix
[Galaxy Note 3 Android Development] tdunham:
It means the line isn't formed properly. You probably left out something in line 31.
[Galaxy Note 3 Android Development] wcoast:
This is what I have in line 31

<header android:icon="@drawable/ic_settings_autostarts" android:id="@id/autostarts_settings" androidgeneral:title="@string/autostarts_title" android:fragment="com.android.settings.autostarts.LewaManageAutostarts" />
[Galaxy Note 3 Android Development] Rajada:
try this code instead:

<header android:icon="@drawable/ic_settings_autostarts" android:id="@id/autostarts_settings" android:title="@string/autostarts_title" android:fragment="com.android.settings.autostarts.LewaManageAutostarts" />
[Galaxy Note 3 Android Development] wcoast:
Great, no error now..... thanks a lot
[Galaxy Note 3 Android Development] Rajada:
i'm happy for you.

sorry for my mistake, but I do not use this mod, it was just for the pleasure
[Galaxy Note 3 Android Development] wcoast:
After changing the ids I got;

..\3-Out\SecSettings.apk\smali\com\android\settings\autostarts\AppItem.smali[25,4] Error for input '.parameter': Invalid directive
..\3-Out\SecSettings.apk\smali\com\android\settings\autostarts\AppItem.smali[26,4] Error for input '.parameter': Invalid directive
..\3-Out\SecSettings.apk\smali\com\android\settings\autostarts\AppItem.smali[25,15] mismatched input '"context"' expecting END_METHOD_DIRECTIVE
..\3-Out\SecSettings.apk\smali\com\android\settings\autostarts\AppItem.smali[27,4] Error for input '.parameter': Invalid directive
..\3-Out\SecSettings.apk\smali\com\android\settings\autostarts\AppItem.smali[28,4] Error for input '.parameter': Invalid directive
..\3-Out\SecSettings.apk\smali\com\android\settings\autostarts\AppItem.smali[126,4] Error for input '.parameter': Invalid directive
..\3-Out\SecSettings.apk\smali\com\android\settings\autostarts\AppItem.smali[127,4] Error for input '.parameter': Invalid directive
..\3-Out\SecSettings.apk\smali\com\android\settings\autostarts\AppItem.smali[126,15] mismatched input '"context"' expecting END_METHOD_DIRECTIVE
..\3-Out\SecSettings.apk\smali\com\android\settings\autostarts\AppItem.smali[128,4] Error for input '.parameter': Invalid directive
..\3-Out\SecSettings.apk\smali\com\android\settings\autostarts\AppItem.smali[129,4] Error for input '.parameter': Invalid directive
..\3-Out\SecSettings.apk\smali\com\android\settings\autostarts\AppItem.smali[130,4] Error for input '.parameter': Invalid directive
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/android/settings/autostarts/AppItem.smali

This is my SecSetting if anyone can be kind enough to assist me.... https://www.dropbox.com/s/wla73u5mfm76yh8/SecSettings.apk?dl=0
[Galaxy Note 3 Android Development] tdunham:
Try removing all the .parameter lines at the beginning of every method in the AppItem.smali and recompiling.

Edit: I see a couple of other errors too so it may still not recompile with your version of apktool.

Maybe you need to wait for someone to reupload the corrected smali.
[Galaxy Note 3 Android Development] wcoast:
I have used bak/smali to change the ids and end up with errors too....
[Galaxy Note 3 Android Development] Kamy:
I used the tool I posted in OP. Did you try it?
[Galaxy Note 3 Android Development] wcoast:
Yes I did and no luck, a friend that got it working on S4 is helping me......
[Galaxy Note 3 Android Development] masterross:
I dont get this part:

So I skipped it on S5.

Now when i try to reboot nothings happens for few sec and the phone reboots itself.

Can you help me?

Attaching the file:
[Galaxy Note 3 Android Development] Goldie:
Lol. You can't just skip stuff! You need to look at the access methods in GlobalActions and make sure they match with global actions 99
[Galaxy Note 3 Android Development] nip_miniw:
I decompile the SecSettings.apk (using AdvancedApkTool introduced in first post) but there's no "com/android/settings" and "PreviewFragment.smali" (see screenshot).

What's the problem?!

Device: G900H running stock lollipop...
[Galaxy Note 3 Android Development] evilvoice:
You are not deodexed.
[Galaxy Note 3 Android Development] gabesir:
First, Thank you for the write up but I need a bit of help.

I followed the directions for the 5way reboot option . changed the I'd. Fully did the whole thing but still can't get the power options to come up
[Galaxy Note 3 Android Development] gabesir:
here is the file I moded If anyone has a little time to look over it and tell me what am i doing wrong . Thank you !
[Galaxy Note 3 Android Development] Er. Aditya:
i tried the 5 way reboot on note 4 everything went well but when i changed the files nothing changes
[Galaxy Note 3 Android Development] evilvoice:
Did you change the smali files correctly? I ask because i came across your post in JBD thread that you couldn't deodex android.policy.jar. Did you get that sorted? You can't just drop files in an odex jar file and expect it to work. The other issue is you can't just deodex 1 framework file. You have to deodex the whole framework folder to get rid of boot.oat and another file. If you do not, the odex file will take precedence. You need to deodex the whole rom before trying mods. Apk mods for the most part work without having the whole rom deodexed, but framework is the issue.

So, deodex the whole rom and try again, it should work. This also goes for anyone asking why the mod doesn't work.
[Galaxy Note 3 Android Development] Er. Aditya:
thankyou for taking out all the points that i might or anyone might be doing wrong

but i have now a deodexed rom , yes mate i have now sorted that issue and deodexed nicely

but it still dsnt works , here's an attached i tried but dint worked :(

i guess this is the part i am doing wrong

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
[Galaxy Note 3 Android Development] evilvoice:
It'll be in a few hours before i can look at file. Working. If possible, could you zip up the files you changed and i can look at those. I don't need folder structure as I'm just looking at your edits, I'll assume you have files in correct place. Last question, does the phone boot without fc?
[Galaxy Note 3 Android Development] Gizmundo:
MOre people was complaining on this part, because it is really no accurate for someone who doesn't know. I have sort it with changing GlobalActions$99 to 0x112000a but till now I still confused from access$500.. maight be it would help you
[Galaxy Note 3 Android Development] Er. Aditya:
i am a beginer so thankyou for your support , here are the files i made changes , if you can look at
[Galaxy Note 3 Android Development] thermax04:
any pics to show how it looks?
[Galaxy Note 3 Android Development] masterross:
you can see them here:

http://xdaforums.com/galaxy-note-3/themes-apps/mod-t3024624
[Galaxy Note 3 Android Development] jay.illicit:
how to turn on call merge button for PA roms. Please advise. Thanks much.
[Galaxy Note 3 Android Development] Kamy:
Did you link your ID (0x7f100707) correctly?

Edit: ignore it as you said it's matched but I am not really sure about your samli if it can be working, wait for the rest they may have better answer
[Galaxy Note 3 Android Development] tdunham:
Try getting a log of the error and if that doesn't help narrow it down, try removing items from the new xml to narrow down the line that is probably giving you trouble.

I would go as far as deleting the bottom half of them and if it still is doing it, try deleting the top half next time. A matter of trial and error to narrow down which line(s) are giving you issues perhaps?

If still nothing, try only adding a line/section or two at a time to see if you can successfully access the xml. I went through something similar on another phone trying to get a settings xml to play nice.

Edit: You could try adding sections of that code into an already established xml to see if you can narrow down the issue too.
[Galaxy Note 3 Android Development] masterross:
Guys,

Anyone knows how are AccuWeather and Lockscreen connected?

I'm asking because in my Note 4 port 5.0.1 I can use AccuWheather on lockscreen without Current Location enabled!

But on stock 5.0 I cant!

So if you have some info please share it.

I guess it's something in framework-res.apk but what exactly?

Thanks in advance!
[Galaxy Note 3 Android Development] dkonect:
This thread is really good, a ton of knowledge here, do you know if the same's thread exist for TW kitkat?

I haved search but no results.

Thanks
[Galaxy Note 3 Android Development] tdunham:
Link is in my signature.

This thread has a link there too. :thumbup:
[Galaxy Note 3 Android Development] daxgirl:
For one thing. .. your header doesn't have id. .. I don't k ow if i am not mistaken a header has to have an id. At least on Samsung devices.

And make sure THIS (0x7f100707) id matches the public type xml for your "cooked" xml file.

Sent from my awesome g920f powered by 6thGear
[Galaxy Note 3 Android Development] bluflight:
On L there are no solution to be able to reinsert png in notification panel like in kk like here?

I changed values on status_bar_expanded.xml in android:background="@drawable/notification_background_color" but after compile,add my png (.9 of course) and flash SystemUI nothing happend.. Is really impossible on L? Or now must to touch smali?
[Galaxy Note 3 Android Development] tdunham:
If you are talking about the pulldown image then the answer is no.

Right now there is no way to customize the pulldown background image in lollipop.
[Galaxy Note 3 Android Development] edzamber:
It's possible but the problem is that png change lockscreen background too. So Lockscreen image become the same than Pulldown.
[Galaxy Note 3 Android Development] tdunham:
Yes, pulldown is transparent and shares that with the lock screen. Once you take that away, it becomes the foreground picture for the lock screen. It's pretty annoying. Wish someone would figure how to split them up.
[Galaxy Note 3 Android Development] willowmaker420:
Its in layouts/status_bar_expanded2.xml and change the same line but as [MENTION=1042140]tdunham[/MENTION] explained,i got the png to stick but after the screen locked for the first time the png went back to transparent
[Galaxy Note 3 Android Development] tdunham:
Really no #2, that's only on our rom. I added a second expanded xml to hide sfind panel on the lock screen.
[Galaxy Note 3 Android Development] edzamber:
Pulldown works with Gravitybox, no problem with Lockscreen :)

Maybe looking into Gravitybox github to find the way...
[Galaxy Note 3 Android Development] Kamy:
Added new guide to post #3

How to enable UPSM for Note 3 ​
[Galaxy Note 3 Android Development] evilvoice:
I did all the edits (though a lot of what was done in services.jar was completely different than my smali), and I get the item in Settings, but when I turn it on, it doesn't do anything. If I go out and back in, it is back to off. Is this for KK or LP?
[Galaxy Note 3 Android Development] kpirnie:
lp
[Galaxy Note 3 Android Development] evilvoice:
Hmm, don't know why it isn't working.
[Galaxy Note 3 Android Development] and2:
Maybe you did not push the 3 emergency apks to the System. But they are missing in the attached zip.
[Galaxy Note 3 Android Development] evilvoice:
I pushed the 3 apks to /system/app. They are in the zip, or thy were for me
[Galaxy Note 3 Android Development] and2:
Yep sorry, i did not see those files. I jumped directly in the framework. :angel: But for me the Mod works on Note 3 OD6. Thank you again Kamran.
[Galaxy Note 3 Android Development] Kamy:
So following the guide you could enable it? Great. I thought I missed something. Now there is another part needs to be fixed to enable call while UPSM is on as you cannot hear the caller speaker. Now open mixer_paths.xml and do following changes in RED

<path name="voice-call-dock">
<path name="lineout" />
<ctl name="SLIM_0_RX Channels" value="Two" />
<ctl name="LINEOUT1 Volume" value="19" />
<ctl name="LINEOUT2 Volume" value="19" />
</path>

[COLOR="red"]	<path name="voice-call-handset-emergency">
<path name="rcv" />
<ctl name="EAR PA Gain" value="POS_6_DB" />
<ctl name="RX1 Digital Volume" value="84" />
<ctl name="ES325 RX1 Enable" value="1" />
</path>

<path name="voice-call-speaker-emergency">
<path name="spk" />
<ctl name="RX7 Digital Volume" value="84" />
<ctl name="SPK DRV Volume" value="8" />
<ctl name="COMP0 Switch" value="1" />
<ctl name="ES325 RX1 Enable" value="1" />
</path>[/COLOR]
<!-- TX part -->
<path name="voice-call-main-mic">
<path name="main-sub-mic" />
<ctl name="ADC1 Volume" value="12" />
<ctl name="DEC6 Volume" value="84" />
<ctl name="TX3 HPF cut off" value="MIN_3DB_150Hz" />
<ctl name="TX4 HPF cut off" value="MIN_3DB_150Hz" />
<ctl name="TX5 HPF cut off" value="MIN_3DB_150Hz" />
<ctl name="ES325-AP Tx Channels" value="One" />
<ctl name="Internal Route Config" value="4" />
<ctl name="ES325 TX1 Enable" value="1" />
</path>

<path name="voice-call-NS-mic-speaker">
<path name="sub-3rd-mic" />
<ctl name="ADC4 Volume" value="12" />
<ctl name="DEC3 Volume" value="84" />
<ctl name="ADC3 Volume" value="12" />
<ctl name="DEC4 Volume" value="84" />
<ctl name="ES325-AP Tx Channels" value="One" />
<ctl name="Internal Route Config" value="1" />
<ctl name="ES325 TX1 Enable" value="1" />
</path>

[COLOR="red"]	<path name="voice-call-main-mic-emergency">
<path name="main-sub-mic" />
<ctl name="ADC1 Volume" value="12" />
<ctl name="DEC6 Volume" value="84" />
<ctl name="TX3 HPF cut off" value="MIN_3DB_150Hz" />
<ctl name="TX4 HPF cut off" value="MIN_3DB_150Hz" />
<ctl name="TX5 HPF cut off" value="MIN_3DB_150Hz" />
<ctl name="ES325-AP Tx Channels" value="One" />
<ctl name="Internal Route Config" value="4" />
<ctl name="ES325 TX1 Enable" value="1" />
</path>

<path name="voice-call-sub-mic-emergency">
<path name="sub-3rd-mic" />
<ctl name="ADC4 Volume" value="12" />
<ctl name="DEC3 Volume" value="84" />
<ctl name="ADC3 Volume" value="12" />
<ctl name="DEC4 Volume" value="84" />
<ctl name="ES325-AP Tx Channels" value="One" />
<ctl name="Internal Route Config" value="3" />
<ctl name="ES325 TX1 Enable" value="1" />
</path>[/COLOR]
<!-- end of Voice call Scenario -->

<!-- ================================================================ -->
<!-- call forward Scenario -->
<path name="voice-call-forward">
<ctl name="SLIM RX1 MUX" value="AIF1_PB" />
<ctl name="SLIM_0_RX Channels" value="One" />
<ctl name="RX1 MIX1 INP1" value="RX1" />
<ctl name="CLASS_H_DSM MUX" value="DSM_HPHL_RX1" />
<ctl name="EAR PA Gain" value="POS_6_DB" />
<ctl name="RX1 Digital Volume" value="0" />
<ctl name="ES325 RX1 Enable" value="1" />
</path>
[Galaxy Note 3 Android Development] Er. Aditya:
removing sfinder and quick connect that way

leads to this if we remove brightness slider
[Galaxy Note 3 Android Development] Umair Ahmad:
Er. Aditya;61154983 removing sfinder and quick connect that way

leads to this if we remove brightness slider

[MENTION=5750672]Er. Aditya[/MENTION] hello big bro....sorry for inconvience....but this kind of thing happened with me only when i have battery low less then 5%
[Galaxy Note 3 Android Development] daxgirl:
I gave the correct way to remove it so this doesn't happen somewhere on thread by [MENTION=1042140]tdunham[/MENTION]. Reducing the dimensions is always problematic.
[Galaxy Note 3 Android Development] Er. Aditya:
got t and solved thankyou so much anna,outta thanks this time :)
[Galaxy Note 3 Android Development] daxgirl:
Perfect! Never touch dimensions that so many view are relying on. ;)

Sent from my awesome g920f powered by 6thGear
[Galaxy Note 3 Android Development] tdunham:
[MENTION=4714483]daxgirl[/MENTION] my thread is getting rather large, looked around for a while and never did find anything for the quickpanel toggles cutting off when both sfind/quickconnect and brightness are removed. Not saying its not there, just didn't find it. ;)

and

[MENTION=5750672]Er. Aditya[/MENTION] Would you mind sharing your fix please? :D
[Galaxy Note 3 Android Development] Kamy:
Yep, I was so busy searching and digging your thread that how I could missed it. I read once that you added another layout for this mod.
[Galaxy Note 3 Android Development] daxgirl:
I promise I will get home from work tonight and make an official guide for it. I mentioned it when I asked a question about a brogue toggle I created for it. At the end of that post there is a "btw" how to remove it correctly. It has to do with settings the right condition in the method called showHideQcon... I will make it right tonight ;)

Sent from my awesome g920f powered by 6thGear
[Galaxy Note 3 Android Development] Er. Aditya:
sure il test my zipd file as i had allready removed by editing dimens.xml

il post here for BOE4 note 4
[Galaxy Note 3 Android Development] daxgirl:
There you go...

Link http://xdaforums.com/showthread.php?p=60389107

Look at the end.... and you see this:

Btw anyone if you guys need can use it as a guide as it works. If you just want to disable it PROPERLY without the toggle and WITHOUT messing with resources and dimens, all you need to do is change this:

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

if-nez v6, :cond_[COLOR="Red"][B]0[/B][/COLOR]

to this:

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

if-nez v6, :cond_[COLOR="SeaGreen"][B][COLOR="Green"]6[/COLOR][/B][/COLOR]

Sent from my awesome g920f powered by 6thGear
[Galaxy Note 3 Android Development] daxgirl:
This is the result...

View attachment 3347597

Sent from my awesome g920f powered by 6thGear
[Galaxy Note 3 Android Development] Er. Aditya:
anna here i had

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

if-nez v8, :cond_[COLOR="Red"][B]0[/B][/COLOR]

changed to this:

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

if-nez v8, :cond_[COLOR="SeaGreen"][B][COLOR="Green"]8[/COLOR][/B][/COLOR]

its giving systemui fc
[Galaxy Note 3 Android Development] daxgirl:
Working for me on s6 and note 4. I will check it later tonight. Upload your systemui or the smali and I will have a look. Make sure you change the dimen back

Sent from my awesome g920f powered by 6thGear
[Galaxy Note 3 Android Development] tdunham:
I think we just need to see an example of what your cond_6 points to so we can match it with ours.
[Galaxy Note 3 Android Development] daxgirl:
It points to return-void; )

Sent from my awesome g920f powered by 6thGear
[Galaxy Note 3 Android Development] abelrhd:
If you find inside systemUI.apk this icons appear in notification panel, all with start with: tw_quick_panel_icon...And the torch is missing:
[Galaxy Note 3 Android Development] kpirnie:
aye... in there now makin em darker ;)

i dont suppose its as simple as creating the icons for it either... or is it?... hmmm... time for some experimenting :D
[Galaxy Note 3 Android Development] xinfinityoO:
This is not clear.

what to remove from SystemUI.apk\res\layout\qs_panel.xml

and theer are many 57.0 dip in that file
[Galaxy Note 3 Android Development] Kamy:
Please check again I made it clear.

<dimen name="finder_connect_layout_height">57.0dip</dimen>
[Galaxy Note 3 Android Development] kpirnie:
Yeah, for some reason I couldn't see that line in the OP, but I figured that was it
[Galaxy Note 3 Android Development] arash2901:
Thanks everybody for sharing his/her knowledge and lots of thanks to [MENTION=4819130]kmokhtar79[/MENTION] because of this wonderful thread :)
[Galaxy Note 3 Android Development] wasim77:
HI kmokhtar79

Do please give me SpeedMeter ZIP

THANK YOU :)
[Galaxy Note 3 Android Development] Kamy:
Read, learn and don't wait for others modifying it for you.
[Galaxy Note 3 Android Development] abelrhd:
Hello [MENTION=4819130]kmokhtar79[/MENTION],

In your post: http://xdaforums.com/showpost.php?p=58056168&postcount=4 in some instructions appear in blank:

An others.

Thanks!
[Galaxy Note 3 Android Development] Kamy:
Thanks mate, once I was trying to edit it using Tapatalk I guess it messed it up. I corrected it.

For following line please check which position would give better UI I forgot but I think it should be after line 4 or 5. If you tried it please let me know I would update the guide.

<com.android.systemui.statusbar.policy.Traffic android:textAppearance="@style/TextAppearance.StatusBar.Traffic" android:gravity="left|center" android:id="@id/traffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
[Galaxy Note 3 Android Development] ahmadS3arabi:
I don;t want anyone to modifying it ... I want to do this myself but I'm asking how

If u don't want to tell me don't be so rude like that

Is it look like I want anyone to do it for me ?
[Galaxy Note 3 Android Development] abelrhd:
If I understood, in my SystemUI.apk modded (lock button and internet bar) the difference is in:

android:gravity="center|left"

to change:

android:gravity="left|center"

It's correct?

EDIT: I tried this and don't see any difference: (rightpicture: center|left and left picture: left|center
[Galaxy Note 3 Android Development] filchi756:
Delete please.
[Galaxy Note 3 Android Development] abelrhd:
Hello mate,

I'm sucessfull to add a torch in settings. The TorchlightSettings.smali is inside the zip file "torch_materials.zip". When you open the file, it appear the path where you can paste the content :)
[Galaxy Note 3 Android Development] filchi756:
Oh my! Thanks mate.I must be drunk or what. I have multiple zips opened I mistakenly thought it as another zip file I opened earlier:D. i'm modding the secsetting.apk with multiple mods at the same time.I ran out of thanks today.I will click it tomorrow.
[Galaxy Note 3 Android Development] jordiz86:
A question, is it possible to add torch in settings if I have s5 styled settings? I suppose that is not a problem right? Thanks a lot! :)
[Galaxy Note 3 Android Development] abelrhd:
Not problem mate, sometimes I have the same about drinking and I don't know what are I doing :)
[Galaxy Note 3 Android Development] Kamy:
Thanks mate for helping and keep this thread alive. Good to see people using them. [emoji122]

You can give it try and report I don't have s5 to check.

I found a graphic glitch that removing Sfinder and Quick Connect in notification panel would cause toggles background cut off. Maybe we shouldn't delete the first line. I would try and see what is missing.

BTW I again corrected some missing parts. I hate tapatalk it messed up all those notes. [emoji36]
[Galaxy Note 3 Android Development] abelrhd:
Not problem mate :) And thanks for helping us :D
[Galaxy Note 3 Android Development] tdunham:
Because I see he tried his with cond_8. I'm looking around in that method now too.
[Galaxy Note 3 Android Development] Er. Aditya:
here the file anna yes i changed back to original