yashsingh1/xdaforums huggingface dataset:
[Galaxy Note 3 Android Development] MaFiBoSS:
Has anyone found a solution to this problem?

The temporary solution I found was swiping twice in the notification bar (if the option automatic brightness is disabled) or turn ON the option automatic brightness, but when the batery is low (~5-15%) the problem appears again.

Thanks for this thread and sharing a lot information of modding. :)
[Galaxy Note 3 Android Development] edzamber:
Hi,

For enable Torch into settings, i don't understand this part :

What i have to do with ids because i don't find what lines i have to modify.

Can someone help me please ?

Many thanks :)
[Galaxy Note 3 Android Development] tural_625:
[MENTION=4819130]kmokhtar79[/MENTION]

İ can't Add lockscreen and recent shortcut on Notification panel header

Can you again teach ?
[Galaxy Note 3 Android Development] tdunham:
I'm at an impass for the torch mod on lollipop. :rolleyes:

I've cruised the thread but haven't found a resolution to the toggle missing so looking for some input. All the public ID's definitely match.

Edit: Galaxy S5 btw.
[Galaxy Note 3 Android Development] edzamber:
Can you expain me how to match ids between public.xml and torchlight.settings.smali ?

One other thing : i have add Speed meter, works fine but i can't move it on the left side at top on statutbar. I've follow post #287 but it stay on center...

Many thanks for help :)
[Galaxy Note 3 Android Development] Goldie:
The ids link resources. So in the files you are porting from or adding you have to look up what the Id refers to in those files public.xml then search that item in your new public.xml and change the Id in the smali to match it.
[Galaxy Note 3 Android Development] edzamber:
Ok, great, Thanks a lot :)
[Galaxy Note 3 Android Development] asc1977:
Anybody has a guide or something which color is for what in colors.xml in systemui.apk? I want to theme a lot and dont know which color for what
[Galaxy Note 3 Android Development] AL_IRAQI:
Scavenger hunt is the best ?

Anyway what do you want to change ?
[Galaxy Note 3 Android Development] asc1977:
Where i can find scavenger hunt and what is that?

I want change anything. Not special in moment. But i want to know what is possible. Its for my own work i do. Some things i know but there are a lot of colors in color.xml and i dont know for what they are.
[Galaxy Note 3 Android Development] AL_IRAQI:
http://en.m.wikipedia.org/wiki/Scavenger_hunt

I mean that you have to try everything until you get what you want, check layout xmls you should find everything in it
[Galaxy Note 3 Android Development] asc1977:
Thx. I take a look.

Also no i understand what you mean with scavenget hunt [emoji2]
[Galaxy Note 3 Android Development] edzamber:
Is someone have an idea for this ?

Here is me SystemUi.apk modded with Speed meter....

https://mega.co.nz/#!ohtASYbS!1fmWMhi9oGVH8CIpoSxZF7bwyr_B0_Kzpf0lGIwy3Z0

My framework-res.apk

https://mega.co.nz/#!8xNRmRCJ!Y3Sir6LjcICdI3neFUiURyngPFk0ngRsaksjf51JoRQ

My twframework-res.apk

https://mega.co.nz/#!ohcwkCjZ!vk89eCJ7t3Nstxu7mXfWon1j9f5xdWJHbqsMvyb6j1s

Many thanks :)

For information i use Advanced Apktool 4.1.0 with last apktool.jar v2
[Galaxy Note 3 Android Development] asc1977:
Look in this guide. Its a little different and better to understand i think

http://xdaforums.com/showthread.php?t=2998932
[Galaxy Note 3 Android Development] daxgirl:
Fcol..... There is a frame layout (instance of custom frame layout) inside status_bar.xml and inside it there is a custom instance of alpha optimized linear layout. Which for all purposes is just a linear layout with horizontal orientation. So if you put it as first object and remove all gravity attributes, it will appear as the most left one .

Sent from my awesome g920f powered by 6thGear
[Galaxy Note 3 Android Development] starbucks2010:
Does anyone know how can I get the status bar to show me the entire battery icon, not only part of it? There seems to be enough space to the right side. If I remove 1 icon (disable BT f.e) the battery will show up correctly.

Thanks.
[Galaxy Note 3 Android Development] edzamber:
Yes !!!! It works fine, many thanks :)

Now i'm looking how to change color of traffic in bleu.... This is different because no changes into styles.xmk with this tutorial...
[Galaxy Note 3 Android Development] TheGrandFinale2001:
Question moved...
[Galaxy Note 3 Android Development] tdunham:
Galaxy S5 fix for volume torch mod

Attached is the fixed smali to allow this to work with the Galaxy S5 to correct for the missing toggle.

I imagine the same smali would work on all the other phones as well.

[MENTION=4819130]kmokhtar79[/MENTION] it's possible you can update the guide with this smali once users have tested it with other phones as well.

Credits to [MENTION=5385528]intxeon[/MENTION] for the fix!

Cheers - TD
[Galaxy Note 3 Android Development] Kamy:
Sure would do. I had been a travel and couldn't get a chance to watch xda for about 2 weeks. Thanks for heads up.
[Galaxy Note 3 Android Development] edzamber:
Hi,

Can you help me with my SecSettings.apk ?

I have compiled for torch, ids match between TorchlightSettings.smali and public.xml but no menu for torch into settings :(

My SecSettings.apk recompiled :

https://mega.co.nz/#!BtcGVJpJ!g9KJJSKvQNG8-_k_T0pRog5IB7oFao26dpj-W3z5ZEU

My framework-res.apk :

https://mega.co.nz/#!8xNRmRCJ!Y3Sir6LjcICdI3neFUiURyngPFk0ngRsaksjf51JoRQ

My twframework-res.apk :

https://mega.co.nz/#!ohcwkCjZ!vk89eCJ7t3Nstxu7mXfWon1j9f5xdWJHbqsMvyb6j1s

Device : i9505

Rom : my own custom based I9505HOD7 Lollipop.

Many thanks :)
[Galaxy Note 3 Android Development] Kamy:
Enable Torch Toggle in Settings

is updated to fix missing toggle on S5

Smalis are updated thanks [MENTION=1042140]tdunham[/MENTION] and [MENTION=5385528]intxeon[/MENTION] , now it should be compatible with S5 as it's tested already by [MENTION=1042140]tdunham[/MENTION], though needs reporting for other devices too.
[Galaxy Note 3 Android Development] aureluanobue:
We miss you bro... You are missing in your AryaMod rom thread [emoji16] [emoji4]
[Galaxy Note 3 Android Development] Kamy:
Thanks bud. Yeah, I have been away from XDA for a while, not sure when or how I am going to update AryaMod as I changed my job which is going to have longer working hours per day and I am not sure I can get enough time to rebase AryaMod as before, though I am still here, love to mess around and I believe it won't be possible for me to leave this friendly community.
[Galaxy Note 3 Android Development] aureluanobue:
Real life, job and family the most important! Congratulations for your new job, I'm sure make you happy and satisfied!
[Galaxy Note 3 Android Development] Kamy:
Added new guide to post 3 Add Auto Start Management
[Galaxy Note 3 Android Development] drlupinxx:
smali IDs have them, I put the png en route, I add settings xml header line of code and add it to the two xml layout but does not exit the settings icon ... you left me?
[Galaxy Note 3 Android Development] edzamber:
Hi,

About Torch into settings, i have match ids between TorchlightSettings.smali and public.xml, recompiled but no Torchlight menu under settings/display. Do you think i have to add something into values/ids ?
[Galaxy Note 3 Android Development] drlupinxx:
I got put there ....

As I change here?

thanks
[Galaxy Note 3 Android Development] AL_IRAQI:
All you have to do is changing lines order ?

I don't remember where exactly ?
[Galaxy Note 3 Android Development] drlupinxx:
in the same xml?

I will try put it where the chef says

I tried yesterday and showed no icon
[Galaxy Note 3 Android Development] AL_IRAQI:
yes same xml
[Galaxy Note 3 Android Development] drlupinxx:
Perfect!

and this perfect!

he gets into general_headers.xml

Thank delopements thanks
[Galaxy Note 3 Android Development] filchi756:
I've been waiting for that guide for a long time mate. Hope you can also post a guide on how to mod that statusbar with custom setting apk included. Like the one you did on your v5.3 mate:D. What a coincidence mate me too I'm on a new job which requires longer work time than my old job.:D .Welcome back by the way.
[Galaxy Note 3 Android Development] nambavuong:
Can u try with darklord s6 beta2 :D I tried but failed :(

Sent from my SM-G9250
[Galaxy Note 3 Android Development] filchi756:
Did you mean like this mate;):D .

[IMG="autostart mod"]http://xdaforums.com/attachment.php?attachmentid=3313741&stc=1&d=1431677241[/IMG]
[Galaxy Note 3 Android Development] edzamber:
Hi Everybody,

I follow Autostart guide but when i clic on "Autostart", settings FC... Any idea ?

Many thanks :)
[Galaxy Note 3 Android Development] Goldie:
Logcat is a modders best friend. ;) Otherwise it's like going to a garage and saying "my cars broken" but not telling them in what way.
[Galaxy Note 3 Android Development] asc1977:
Anybody know where in color.xml i can change color of text in sfinder and quickconnext button and also where are the pngs of sfinder and quickconnect round background?
[Galaxy Note 3 Android Development] AL_IRAQI:
I'll check text for you later, but for the background

tw_quick_panel_sfinder_qconnect_button_normal
[Galaxy Note 3 Android Development] willowmaker420:
Its not in res/value/colors,i believe it's in res/values/drawables
[Galaxy Note 3 Android Development] AL_IRAQI:
yes xxhdpi or xxxhdpi in note 4
[Galaxy Note 3 Android Development] filchi756:
Provide a logcat as suggested by sir [MENTION=3065070]Goldie[/MENTION]. I have a suspect your problem is those public id's. Especially the 2 id's from framework-res.apk.
[Galaxy Note 3 Android Development] edzamber:
Thanks for your answer.

How can i have a log for SecSettings.apk crash ?

I have a dumpstate_app_error.txt.gz file data/log but can't open it as text...

Edit :

I found a way.

Here is my logcat :

https://mega.co.nz/#!U8kmGTIZ!It4THQGSsCDWB1UA9RcxY4lMa1ePd4V4TMvfUfb1Qw0
[Galaxy Note 3 Android Development] Goldie:
Did you disable logging or something because that is of no use whatsoever. Looks to me like your rom has logging disabled. Something which I will never understand why people do.
[Galaxy Note 3 Android Development] edzamber:
How to do please ?
[Galaxy Note 3 Android Development] evilvoice:
Well, I have spent the better part of 2 hours trying to figure out Torchlight. Some info in the post could be helpful to those of us that don't know why we did certain things. For instance, you have us make changes to xml and copy smali over. Then, you have us build the apk and decompile the same apk under a new title (so as not to overwrite our old). You never clarify WHICH TorchlightSettings.smali we are supposed to look for your edits. I figured since you were having us compile and decompile that it would be in the new decompiled folder. WRONG! LOL. This may be known to most people, but not new people. Also, do we make changes in Settings_new and rebuild, or Settings and rebuild? I'm assuming Settings_new since it isn't specified.

I'm not trying to beat you up over this. I scoured pretty much the whole thread and then it dawned on me which smali we are supposed to be looking at. Again, I am assuming edits are to be done in Settings_new and not Settings, hope it works.

PS, maybe have us open TorchlightSettings BEFORE we recompile to build ids, then there is no mistaking which smali we are supposed to be looking at. Also, tell us which file we are supposed to make changes to. So, open Settings\smali\..\torchlight\TorchlightSettings.smali. Compile Settings.apk. Rename Settings.apk to Settings_new.apk. Decompile Settings_new.apk. Open Settings_new\public.xml AND Settings_new\TorchlightSettings.smali. Reference Settings\TorchlightSettings.smali to find what public ids are needed to paste in Settings_new\TorchlightSettings.smali. Save Settings_new\TorchlightSettings.smali. Close out of all xml/smali. Recompile Settings_new. DONE!

Also, the last 2 public ids that I am supposed to change do not exist. I don't have a torchlight_help or an xml torchlight_settings
[Galaxy Note 3 Android Development] civato:
N9005XXUGBOD6-lollipop

For the people having trouble with adding torchlight and Auto Start.

Only for the Note 3 lollipop BOD6 based roms

Torchlight

Download attached torch_materials.zip and paste them accordingly

The smali's have the correct "id's" when you start from a

stock setting

apk.

add red line below in display_settings_2013.xml.

<CheckBoxPreference android:title="@string/intelligent_sleep_title" android:key="smartscreen_stay" android:summary="@string/intelligent_sleep_summary" />
[COLOR=Red]<PreferenceScreen android:title="Torchlight" android:key="torchlight" android:fragment="com.android.settings.torchlight.TorchlightSettings" />[/COLOR]
<CheckBoxPreference android:title="@string/smart_pause_title" android:key="smartscreen_pause" android:summary="@string/smart_pause_summary" />

Recompile the settings.apk and drop in the original signature after recompiling (AndroidManifest.xml and the META-INF folder)

Auto-Start

Download attached zip and drop those files in your settings.

The smali's have the correct "id's" when you start from a

settings.apk with torchlight already buildin

Now go to values open ids.xml and add following

<item type="id" name="autostarts_settings">false</item>
<item type="id" name="appName">false</item>

open strings.xml and add following:

<string name="autostarts_title">Autostarts</string>
<string name="autostarts_allowed">Has allowed</string>
<string name="autostarts_prohibited">Has prohibited</string>
<string name="autostarts_allow_progress_msg">Being restored boot, please wait...</string>
<string name="autostarts_prohibit_progress_msg">Prohibit boot, please wait...</string>
<string name="autostarts_empty_msg">No installation boot applications</string>
<string name="autostarts_optimize_empty_msg">No optimize the startup items</string>
<string name="autostarts_optimize_btn_title">Optimize the startup items</string>
<string name="autostarts_all_btn_title">Automatically Start All Applications</string>

open in res/xml/general_headers.xml and add following:

</header>
[COLOR=Red] <header android:icon="@drawable/ic_settings_autostarts" android:id="@id/autostarts_settings" android:title="@string/autostarts_title" android:fragment="com.android.settings.autostarts.LewaManageAutostarts" />[/COLOR]
<header android:icon="@drawable/ic_settings_applications" android:id="@id/application_settings" android:title="@string/applications_settings" android:fragment="com.android.settings.applications.ManageApplications" />
<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" />

Recompile the settings.apk and drop in the original signature after recompiling (AndroidManifest.xml and the META-INF folder)
[Galaxy Note 3 Android Development] edzamber:
Ok that's good now, i have enable my logcat with an initd script :)

Here is my logcat ;)

https://mega.co.nz/#!llEBQSaY!-9WQMFDLYhWlMqmy1bGgVbqRQLa3n5fxI1miDFb_iZ0
[Galaxy Note 3 Android Development] asc1977:
Searching how to colorize this two words in picture
[Galaxy Note 3 Android Development] filchi756:
If you mean for note3 base custom roms. Have you tried editing this" <item type="drawable" name="tw_quick_panel_sfinder_qconnect_button_text_color">#fffafafa</item> " ? In res/values/drawables.xml .
[Galaxy Note 3 Android Development] asc1977:
You are the man!!! It works. You become credits in my thread for your help. Searched long for that but didnt look in drawable.xml

Did you also know where i can find this two text colors? Searche now for 1 hour but didnt find. Background of notification i find but not the two text colors
[Galaxy Note 3 Android Development] AL_IRAQI:
this needs Framework edits

Check it here

http://xdaforums.com/showthread.php?t=3065965
[Galaxy Note 3 Android Development] OvrDriVE:
ok. i have followed the torchlight and autostarts guides to a t. done them multiple times to make sure i didn't get something wrong. my issue is they both crash secsettings when i select them. everything else in settings works fine. just torchlight and autostarts crash settings when selected.

i've done both succesfully on my note 3 on 5.0. but can't figure out where i've gone wrong on my note 4 with 5.0.1

heres my secsettings, framework-res and twframework-res apk's

https://mega.co.nz/#!9h8WGZDY!dvgp8mvBxeV2EP5nGmDwWYVNT1HXYL3IJRcU02M3o30

and heres a logcat

https://mega.co.nz/#!tl9WyAwR!MkgVfmVkzV_UkHI2qmtG7DFF8NjS7AIH07MJAfwe80I

any help would be appreciated
[Galaxy Note 3 Android Development] starbucks2010:
I sow in your logcat something about "tettings". Maybe is a wrong spelling of settings somewhere. Just an idea that could have nothing to do with toge issue.
[Galaxy Note 3 Android Development] edzamber:
Torch works great but FC about Autostart.

Here is my logcat ;)

https://mega.co.nz/#!llEBQSaY!-9WQMFDLYhWlMqmy1bGgVbqRQLa3n5fxI1miDFb_iZ0

If someone can help me :)

Cheers,

Edzamber.
[Galaxy Note 3 Android Development] OvrDriVE:
i've checked every file i have done a modification to and cannot find tettings anywhere so no idea on that one. i've redone the torchlight and autostarts on a clean unmodified settings apk and still crashs settings. wondering what changed from 5.0 to 5.0.1 thats preventing it from working.
[Galaxy Note 3 Android Development] tdunham:
You did not capture the error with alogcat.

Try checking the dumpstate_app_error.txt.gz from data/log after you get the force close instead.
[Galaxy Note 3 Android Development] OvrDriVE:
here you go

https://mega.co.nz/#!kxUDlCCR!wPB_lzEBeIp8AyHO930r10_wCsnpEn4p4ti1obKjEwo
[Galaxy Note 3 Android Development] tdunham:
Searching for the keywork fatal in this yields these two errors:

05-16 12:26:00.329 9258 9258 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.preference.Preference.setLayoutResource(int)' on a null object reference

05-16 12:26:00.339 1526 2074 I am_crash: [9258,0,com.android.settings,1087913541,java.lang.NullPointerException,Attempt to invoke virtual method 'void android.preference.Preference.setLayoutResource(int)' on a null object reference,TorchlightSettings.java,85]

In torchlight settings smali it calls the layout resource here:

const v5, 0x7f0402a5 #<public type="layout" name="torchlight_help"

invoke-virtual {v4, v5}, Landroid/preference/Preference;->setLayoutResource(I)V

Looks to me like you did not add the help layout file for torch mod, or if you did, you did not give it the new public value (to match YOUR secsettings public value of recompiled secsettings) to replace the 0x7f0402a5 from my example above.
[Galaxy Note 3 Android Development] OvrDriVE:
ok, torchlight is fixed. ty. got autostart fixed as well. tyvm
[Galaxy Note 3 Android Development] OvrDriVE:
new question

ok, this involves legacyincallui

it decompiles fine. but errors when trying to recompile it without me making any mods to it. anyone have a clue as to how i would get it to recompile without errors?
[Galaxy Note 3 Android Development] tdunham:
My car is making a funny noise, can you help me fix it? :rolleyes:

In other words you are not giving us much to go on. Lol
[Galaxy Note 3 Android Development] OvrDriVE:
lol, ok, it decompiles fine. however i try to recompile it and get this.

Failed to generate resource table for split ''

C:\AdvancedApkTool4.1.0\3-Out\LegacyInCallUI.apk\res\values\arrays.xml:63: error: Error: No resource found that matches the given name (at '^index_0' with value '@android:string/APKTOOL_DUMMY_06c6').

i have made no changes to anything. i want to do this mod Remove green and orange banner when dialing/receiving calls but can't recompile it as thats the error i get. and i get that error whether i have or havn't made any changes.

hope that makes sense as i can't explain it any better

basically is there a way to recompile it and have it skip any errors it finds
[Galaxy Note 3 Android Development] tdunham:
That is because apktool didn't know what to do with the resource that is in res/values/arrays.xml so it gave an apktool_dummy value to it.

So a way around it is to find line 63 in arrays.xml with that apktool_dummy in it, and replace it with another line that will fix it so it will recompile.

Just pick a line from the surrounding code that looks similar and replace that string value (@android:string/APKTOOL_DUMMY_06c6) with one that is valid. It may not be the perfect solution but it should work.
[Galaxy Note 3 Android Development] OvrDriVE:
had to change 6 lines to [MENTION=283679]null[/MENTION] for it to work hopefully that doesn't mess it up
[Galaxy Note 3 Android Development] edzamber:
To Everybody :

I find why Autostart FC, you need to follow public ids part on this guide !

Now it works :)

http://xdaforums.com/showthread.php?p=49806721
[Galaxy Note 3 Android Development] tdunham:
Just a note so you don't make a habit of trying to fix any apktool_dummy occurrences you run across, this should only be done on the lines indicated in the apktool error log like the one you posted. While it may work, it may create additional problems for you in the future.
[Galaxy Note 3 Android Development] asc1977:
I searched and read the hole thread and find in op a guide but didnt understand 100%

Can you guide me which lines exactly i must change in which xml for text up in ff111111 and text bottom in ff222222
[Galaxy Note 3 Android Development] AL_IRAQI:
Notification.Title should change text up and Notification should change second line

And another line change the circle behind notification icons

i tried it months ago, so you try it again and tell me your results
[Galaxy Note 3 Android Development] asc1977:
Ok. I find it now [emoji28]

But i think it dont work in an overlay which is not rom specific. Right?
[Galaxy Note 3 Android Development] störte:
I try to move the signal to the left and followed your instructions. I change my signal cluster xml also after comparing yours with mine. But when i recompile i got a huge amount of errors.

I use Lollipop on a S6 Edge.
[Galaxy Note 3 Android Development] rompnit:
Can you post the error log? :p
[Galaxy Note 3 Android Development] azuelagomez:
Hello.

I am trying to make some changes into the decompiled res folder of the framework res apk... and then I recompile it and I am getting bootloop after bootloop with many methods.

I have tested to put the res folder into the original framework apk using winrar. And bootloop

I have tried editing the folder and the compiling the apk and bootloop

And also tried compiling and signing it.

I have read that I should not sign it but I don't know that I am doing wrong.

Thank you in advance for your help !!
[Galaxy Note 3 Android Development] willowmaker420:
I would try and use an apktool to decompile both frameworks,then move or make what ever edits to the new framework your working with,then compile using a apktool,i think by using winrar the files are to compressed and are gonna be different sizes from your original,not to sure about winrar,but i would try the apktool from here http://xdaforums.com/showthread.php?p=28366939
[Galaxy Note 3 Android Development] edzamber:
You need to delete META-INF folder and androidmanifest with 7zip in your recompiled Framework-res.apk and replace with originals ones.
[Galaxy Note 3 Android Development] wcoast:
Hi mate, I applied this mod on TMO Note 4 Lollipop but doesn't see the option anywhere on settings apk...... any update/feedback is greatly appreciated.
[Galaxy Note 3 Android Development] Kamy:
Which xml did you add mentioned code on?
[Galaxy Note 3 Android Development] wcoast:
Values/strings
[Galaxy Note 3 Android Development] Kamy:
Did you download and add attached file to your settings?
[Galaxy Note 3 Android Development] wcoast:
Yes
[Galaxy Note 3 Android Development] Kamy:
I just checked now it seems I forgot to add one code to add in display_settings in xml folder. I would update it tonight.
[Galaxy Note 3 Android Development] wcoast:
Great, thanks bro
[Galaxy Note 3 Android Development] wcoast:
Is the line on your 04/14 Note 3 build?

This is your display_settings.xml https://www.dropbox.com/s/ovlb59obyts5hp8/display_settings.xml?dl=0

View attachment 3322186