[GUIDE] Lidroid Panel (15 Toggles + Brightness Slider)

Search This thread

tonyryan

Senior Member
Aug 25, 2012
174
771
Donetsk
Here is guide how to add 15 toggles to notification pulldown. All credits going to sk0t, I'm just translate his guide :)

LIDROID PANEL

1. Decompile your SystemUI.apk
2. Download archive from attachments and copy drawable-hdpi(mdpi) and layout folders to your decompiled folder
3. Open file res/layout/status_bar_expanded.xml and add string
Code:
 <include layout="@layout/qp_layout" />
after
Code:
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
  xmlns:android="http://schemas.android.com/apk/res/android">
4. Add strings from strings.xml and arrays.xml to your files in decompiled folder
5. Compile
6. Decompile new apk to some newfolder
7. Copy file newfolder/SystemUI/res/values/public.xml into res/values/ and replace
8. Delete newfolder
9. Next take smali folder from archive and put it into SystemUI/smali
10. Archive contains qp_repl.js script. You must place him near SystemUI folder and execute him. Wait until script will finish his work. You must see "Done"
11. Build your apk.

2qscduq.png


BRIGHTNESS SLIDER

1. Decompile your SystemUI.apk
2. Download slider_btn archive and extract smali, drawable-hdpi и layout folders to your decompiled folder
3. Add string into status_bar_expanded.xml
Code:
 <include layout="@layout/qp_brightness" />
after
Code:
<include layout="@layout/qp_layout" />
4. Build


WARNING! The Flashlight toggle may cause FC in Sense ROMs
 

Attachments

  • QuickPanelSettings.apk
    54.4 KB · Views: 508
  • qp415.rar
    158.7 KB · Views: 577
  • slider_btn.rar
    7.8 KB · Views: 578
Last edited:

xpirt

Recognized Developer / Inactive RC
Feb 19, 2013
5,070
21,225
You should post also on Android Themes & Apps section where there are all great mods like this.
Will be very useful ;)

xpirt
 

MameTozhio

Senior Member
Apr 27, 2013
2,456
1,365
24
I'm trying to add this to HTCdroid. Can someone explain this?

4. Add strings from strings.xml and arrays.xml to your files in decompiled folder
@tonyskyfall

I've done strings.xml but there is no arrays.xml

EDIT: Fixed arrays thing, but this now

mametozhio@deepin-laptop:~/Downloads/APKTool/SystemUI$ ./qp_repl.js
./qp_repl.js: line 1: var: command not found
./qp_repl.js: line 1: $'\r': command not found
./qp_repl.js: line 2: syntax error near unexpected token `('
'/qp_repl.js: line 2: `var fso = new ActiveXObject('Scripting.FileSystemObject');
mametozhio@deepin-laptop:~/Downloads/APKTool/SystemUI$
 
Last edited:

xpirt

Recognized Developer / Inactive RC
Feb 19, 2013
5,070
21,225
open strings.xml from archive , copy lines, then add them to strings.xml to your systemUI.apk
just take arrays.xml file and put it into values folder

No arrays.xml it's not complete there are only strings to add on an existent arrays.xml. So he has to look into an arrays.xml and copy first and last parts.
And qp_reply.js has to stay when there is SystemUI folder, so:
Blabla/SystemUI/
Blabla/qp_reply.js

xpirt
 

MameTozhio

Senior Member
Apr 27, 2013
2,456
1,365
24
No arrays.xml it's not complete there are only strings to add on an existent arrays.xml. So he has to look into an arrays.xml and copy first and last parts.
And qp_reply.js has to stay when there is SystemUI folder, so:
Blabla/SystemUI/
Blabla/qp_reply.js

xpirt

I found a workaround for arrays, I just copied </resources> and the XML version stuff from strings.xml.
 

MameTozhio

Senior Member
Apr 27, 2013
2,456
1,365
24
I tried it again (I didn't continue on last time I was too tired, so I restarted clean).
I have this error:


Edit! - Nevermind I've gotten it to work (Finally)

Edit 2 -

mametozhio@deepin-laptop:~/Downloads/APKTool$ bash qp_repl.js
qp_repl.js: line 1: var: command not found
qp_repl.js: line 1: $'\r': command not found
qp_repl.js: line 2: syntax error near unexpected token `('
'p_repl.js: line 2: `var fso = new ActiveXObject('Scripting.FileSystemObject');
mametozhio@deepin-laptop:~/Downloads/APKTool$
@tonyskyfall

Sorry if I've been a bother u.u
 
Last edited:

xpirt

Recognized Developer / Inactive RC
Feb 19, 2013
5,070
21,225
I tried it again (I didn't continue on last time I was too tired, so I restarted clean).
I have this error:


Edit! - Nevermind I've gotten it to work (Finally)

Edit 2 -

mametozhio@deepin-laptop:~/Downloads/APKTool$ bash qp_repl.js
qp_repl.js: line 1: var: command not found
qp_repl.js: line 1: $'\r': command not found
qp_repl.js: line 2: syntax error near unexpected token `('
'p_repl.js: line 2: `var fso = new ActiveXObject('Scripting.FileSystemObject');
mametozhio@deepin-laptop:~/Downloads/APKTool$
@tonyskyfall

Sorry if I've been a bother u.u
Do you have Java installed? Is it in the correct path like I said?
Btw.. I think you are on linux so it will not work..

xpirt
 

sakshamx

Senior Member
Feb 8, 2013
738
607
new delhi
@tonyskyfall
i edited the systemui.apk but it keeps giving error on compiling after 4th step could u look into it :rolleyes:
using vts to decompile btw

Code:
12:53:51.548: [Normal] - TenProjectViewModel.BuildProject: 'Building project: SystemUI'
12:53:51.566: [Debug] - ApkProjectViewModel.BuildBinary: 'SystemUI: Compiling changed M10 pictures'
12:53:51.597: [Debug] - ApkProjectViewModel.BuildBinary: 'SystemUI: Copying 'C:\Users\saksham\Documents\Virtuous Ten Studio\Projects\systemui.apk lidroid panel\SystemUI\Data' to 'C:\Users\saksham\AppData\Local\Temp\BB130C''
12:53:52.850: [Normal] - SmaliTool.Smali: 'Compiling folder: C:\Users\saksham\AppData\Local\Temp\BB130C\smali'
12:53:52.850: [Debug] - SmaliTool.Smali: 'Smali args: -Xmx512m -jar "C:\Program Files\Virtuous Ten Studio\External\Smali\smali-1.4.2.jar"  --api-level 15 --output "C:\Users\saksham\AppData\Local\Temp\BB130C\classes.dex" "C:\Users\saksham\AppData\Local\Temp\BB130C\smali"'
12:53:54.846: [Debug] - SmaliTool.Smali: 'Successfully compiled file.'
12:53:54.959: [Normal] - ApkTool.CompileApk: 'Compiling apk'
12:53:54.959: [Debug] - ApkTool.CompileApk: 'ApkTool args: -Xmx512m -jar "C:\Program Files\Virtuous Ten Studio\External\ApkTool\apktool_1.5.2.jar" b  -a "C:\Program Files\Virtuous Ten Studio\External\ApkTool\aapt.exe" "C:\Users\saksham\AppData\Local\Temp\BB130C" "C:\Users\saksham\Documents\Virtuous Ten Studio\Projects\systemui.apk lidroid panel\SystemUI\Binary\SystemUI.apk"'
12:53:58.075: [Error] - ApkTool.CompileApk: 'ApkTool: I: Copying classes.dex file...'
12:53:58.085: [Error] - ApkTool.CompileApk: 'ApkTool: I: Checking whether resources has changed...'
12:53:58.087: [Error] - ApkTool.CompileApk: 'ApkTool: I: Building resources...'
12:53:58.090: [Error] - ApkTool.CompileApk: 'ApkTool: C:\Users\saksham\AppData\Local\Temp\BB130C\res\values\arrays.xml:5: error: Error parsing XML: junk after document element'
12:53:58.090: [Error] - ApkTool.CompileApk: 'ApkTool: Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Program Files\Virtuous Ten Studio\External\ApkTool\aapt.exe, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\saksham\AppData\Local\Temp\APKTOOL1773983993400921790.tmp, -I, C:\Users\saksham\apktool\framework\1.apk, -I, C:\Users\saksham\apktool\framework\2-4.1_com.rec.apk, -S, C:\Users\saksham\AppData\Local\Temp\BB130C\res, -M, C:\Users\saksham\AppData\Local\Temp\BB130C\AndroidManifest.xml]'
12:53:58.090: [Error] - ApkTool.CompileApk: 'ApkTool: 	at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)'
12:53:58.090: [Error] - ApkTool.CompileApk: 'ApkTool: 	at brut.androlib.Androlib.buildResources(Androlib.java:283)'
12:53:58.090: [Error] - ApkTool.CompileApk: 'ApkTool: 	at brut.androlib.Androlib.build(Androlib.java:206)'
12:53:58.091: [Error] - ApkTool.CompileApk: 'ApkTool: 	at brut.androlib.Androlib.build(Androlib.java:176)'
12:53:58.091: [Error] - ApkTool.CompileApk: 'ApkTool: 	at brut.apktool.Main.cmdBuild(Main.java:228)'
12:53:58.091: [Error] - ApkTool.CompileApk: 'ApkTool: 	at brut.apktool.Main.main(Main.java:79)'
12:53:58.091: [Error] - ApkTool.CompileApk: 'ApkTool: Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Program Files\Virtuous Ten Studio\External\ApkTool\aapt.exe, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\saksham\AppData\Local\Temp\APKTOOL1773983993400921790.tmp, -I, C:\Users\saksham\apktool\framework\1.apk, -I, C:\Users\saksham\apktool\framework\2-4.1_com.rec.apk, -S, C:\Users\saksham\AppData\Local\Temp\BB130C\res, -M, C:\Users\saksham\AppData\Local\Temp\BB130C\AndroidManifest.xml]'
12:53:58.091: [Error] - ApkTool.CompileApk: 'ApkTool: 	at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)'
12:53:58.091: [Error] - ApkTool.CompileApk: 'ApkTool: 	at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)'
12:53:58.092: [Error] - ApkTool.CompileApk: 'ApkTool: 	... 5 more'
12:53:58.092: [Error] - ApkTool.CompileApk: 'ApkTool: Caused by: brut.common.BrutException: could not exec command: [C:\Program Files\Virtuous Ten Studio\External\ApkTool\aapt.exe, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\saksham\AppData\Local\Temp\APKTOOL1773983993400921790.tmp, -I, C:\Users\saksham\apktool\framework\1.apk, -I, C:\Users\saksham\apktool\framework\2-4.1_com.rec.apk, -S, C:\Users\saksham\AppData\Local\Temp\BB130C\res, -M, C:\Users\saksham\AppData\Local\Temp\BB130C\AndroidManifest.xml]'
12:53:58.092: [Error] - ApkTool.CompileApk: 'ApkTool: 	at brut.util.OS.exec(OS.java:89)'
12:53:58.092: [Error] - ApkTool.CompileApk: 'ApkTool: 	at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)'
12:53:58.093: [Error] - ApkTool.CompileApk: 'ApkTool: 	... 6 more'
12:53:58.093: [Debug] - ApkTool.CompileApk: 'ApkTool failed, see log for further details'
12:53:58.093: [Debug] - ApkTool.CompileApk: 'Exitcode: 1'
12:53:58.093: [Error] - ApkProjectViewModel.BuildBinary: 'SystemUI: Compiling resource files failed!'
edit: above error was solved by not copying the arrays.xml in my systemui.apk there is no arrays.xml

when i copied the smali files and then run the script it said done but then when i build apk there was this error of smali
Code:
13:42:50.226: [Debug] - ApkProjectViewModel.BuildBinary: 'SystemUI: Compiling changed M10 pictures'
13:42:50.266: [Debug] - ApkProjectViewModel.BuildBinary: 'SystemUI: Copying 'C:\Users\saksham\Documents\Virtuous Ten Studio\Projects\systemui.apk lidroid panel\SystemUI\Data' to 'C:\Users\saksham\AppData\Local\Temp\6BC7FD''
13:42:52.049: [Normal] - SmaliTool.Smali: 'Compiling folder: C:\Users\saksham\AppData\Local\Temp\6BC7FD\smali'
13:42:52.049: [Debug] - SmaliTool.Smali: 'Smali args: -Xmx512m -jar "C:\Program Files\Virtuous Ten Studio\External\Smali\smali-1.4.2.jar"  --api-level 15 --output "C:\Users\saksham\AppData\Local\Temp\6BC7FD\classes.dex" "C:\Users\saksham\AppData\Local\Temp\6BC7FD\smali"'
13:42:54.064: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\saksham\AppData\Local\Temp\6BC7FD\smali\com\lidroid\systemui\quickpanel\QPids.smali[31,14] no viable alternative at input 'undefined''
13:42:54.065: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\saksham\AppData\Local\Temp\6BC7FD\smali\com\lidroid\systemui\quickpanel\QPids.smali[47,14] no viable alternative at input 'undefined''
13:42:54.065: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\saksham\AppData\Local\Temp\6BC7FD\smali\com\lidroid\systemui\quickpanel\QPids.smali[61,14] no viable alternative at input 'undefined''
13:42:54.065: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\saksham\AppData\Local\Temp\6BC7FD\smali\com\lidroid\systemui\quickpanel\QPids.smali[67,14] no viable alternative at input 'undefined''
13:42:54.065: [Normal] - SmaliTool.Smali: 'Smali failed, see log for further information.'
13:42:54.067: [Debug] - SmaliTool.Smali: 'Exitcode: 1'
ignore this
 
Last edited:

xpirt

Recognized Developer / Inactive RC
Feb 19, 2013
5,070
21,225
@tonyskyfall
i edited the systemui.apk but it keeps giving error on compiling after 4th step could u look into it :rolleyes:
using vts to decompile btw

Code:
12:53:51.548: [Normal] - TenProjectViewModel.BuildProject: 'Building project: SystemUI'
12:53:51.566: [Debug] - ApkProjectViewModel.BuildBinary: 'SystemUI: Compiling changed M10 pictures'
12:53:51.597: [Debug] - ApkProjectViewModel.BuildBinary: 'SystemUI: Copying 'C:\Users\saksham\Documents\Virtuous Ten Studio\Projects\systemui.apk lidroid panel\SystemUI\Data' to 'C:\Users\saksham\AppData\Local\Temp\BB130C''
12:53:52.850: [Normal] - SmaliTool.Smali: 'Compiling folder: C:\Users\saksham\AppData\Local\Temp\BB130C\smali'
12:53:52.850: [Debug] - SmaliTool.Smali: 'Smali args: -Xmx512m -jar "C:\Program Files\Virtuous Ten Studio\External\Smali\smali-1.4.2.jar"  --api-level 15 --output "C:\Users\saksham\AppData\Local\Temp\BB130C\classes.dex" "C:\Users\saksham\AppData\Local\Temp\BB130C\smali"'
12:53:54.846: [Debug] - SmaliTool.Smali: 'Successfully compiled file.'
12:53:54.959: [Normal] - ApkTool.CompileApk: 'Compiling apk'
12:53:54.959: [Debug] - ApkTool.CompileApk: 'ApkTool args: -Xmx512m -jar "C:\Program Files\Virtuous Ten Studio\External\ApkTool\apktool_1.5.2.jar" b  -a "C:\Program Files\Virtuous Ten Studio\External\ApkTool\aapt.exe" "C:\Users\saksham\AppData\Local\Temp\BB130C" "C:\Users\saksham\Documents\Virtuous Ten Studio\Projects\systemui.apk lidroid panel\SystemUI\Binary\SystemUI.apk"'
12:53:58.075: [Error] - ApkTool.CompileApk: 'ApkTool: I: Copying classes.dex file...'
12:53:58.085: [Error] - ApkTool.CompileApk: 'ApkTool: I: Checking whether resources has changed...'
12:53:58.087: [Error] - ApkTool.CompileApk: 'ApkTool: I: Building resources...'
12:53:58.090: [Error] - ApkTool.CompileApk: 'ApkTool: C:\Users\saksham\AppData\Local\Temp\BB130C\res\values\arrays.xml:5: error: Error parsing XML: junk after document element'
12:53:58.090: [Error] - ApkTool.CompileApk: 'ApkTool: Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Program Files\Virtuous Ten Studio\External\ApkTool\aapt.exe, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\saksham\AppData\Local\Temp\APKTOOL1773983993400921790.tmp, -I, C:\Users\saksham\apktool\framework\1.apk, -I, C:\Users\saksham\apktool\framework\2-4.1_com.rec.apk, -S, C:\Users\saksham\AppData\Local\Temp\BB130C\res, -M, C:\Users\saksham\AppData\Local\Temp\BB130C\AndroidManifest.xml]'
12:53:58.090: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)'
12:53:58.090: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.buildResources(Androlib.java:283)'
12:53:58.090: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.build(Androlib.java:206)'
12:53:58.091: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.build(Androlib.java:176)'
12:53:58.091: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.apktool.Main.cmdBuild(Main.java:228)'
12:53:58.091: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.apktool.Main.main(Main.java:79)'
12:53:58.091: [Error] - ApkTool.CompileApk: 'ApkTool: Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Program Files\Virtuous Ten Studio\External\ApkTool\aapt.exe, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\saksham\AppData\Local\Temp\APKTOOL1773983993400921790.tmp, -I, C:\Users\saksham\apktool\framework\1.apk, -I, C:\Users\saksham\apktool\framework\2-4.1_com.rec.apk, -S, C:\Users\saksham\AppData\Local\Temp\BB130C\res, -M, C:\Users\saksham\AppData\Local\Temp\BB130C\AndroidManifest.xml]'
12:53:58.091: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)'
12:53:58.091: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)'
12:53:58.092: [Error] - ApkTool.CompileApk: 'ApkTool: ... 5 more'
12:53:58.092: [Error] - ApkTool.CompileApk: 'ApkTool: Caused by: brut.common.BrutException: could not exec command: [C:\Program Files\Virtuous Ten Studio\External\ApkTool\aapt.exe, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\saksham\AppData\Local\Temp\APKTOOL1773983993400921790.tmp, -I, C:\Users\saksham\apktool\framework\1.apk, -I, C:\Users\saksham\apktool\framework\2-4.1_com.rec.apk, -S, C:\Users\saksham\AppData\Local\Temp\BB130C\res, -M, C:\Users\saksham\AppData\Local\Temp\BB130C\AndroidManifest.xml]'
12:53:58.092: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.util.OS.exec(OS.java:89)'
12:53:58.092: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)'
12:53:58.093: [Error] - ApkTool.CompileApk: 'ApkTool: ... 6 more'
12:53:58.093: [Debug] - ApkTool.CompileApk: 'ApkTool failed, see log for further details'
12:53:58.093: [Debug] - ApkTool.CompileApk: 'Exitcode: 1'
12:53:58.093: [Error] - ApkProjectViewModel.BuildBinary: 'SystemUI: Compiling resource files failed!'
edit: above error was solved by not copying the arrays.xml in my systemui.apk there is no arrays.xml

when i copied the smali files and then run the script it said done but then when i build apk there was this error of smali
Code:
13:42:50.226: [Debug] - ApkProjectViewModel.BuildBinary: 'SystemUI: Compiling changed M10 pictures'
13:42:50.266: [Debug] - ApkProjectViewModel.BuildBinary: 'SystemUI: Copying 'C:\Users\saksham\Documents\Virtuous Ten Studio\Projects\systemui.apk lidroid panel\SystemUI\Data' to 'C:\Users\saksham\AppData\Local\Temp\6BC7FD''
13:42:52.049: [Normal] - SmaliTool.Smali: 'Compiling folder: C:\Users\saksham\AppData\Local\Temp\6BC7FD\smali'
13:42:52.049: [Debug] - SmaliTool.Smali: 'Smali args: -Xmx512m -jar "C:\Program Files\Virtuous Ten Studio\External\Smali\smali-1.4.2.jar"  --api-level 15 --output "C:\Users\saksham\AppData\Local\Temp\6BC7FD\classes.dex" "C:\Users\saksham\AppData\Local\Temp\6BC7FD\smali"'
13:42:54.064: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\saksham\AppData\Local\Temp\6BC7FD\smali\com\lidroid\systemui\quickpanel\QPids.smali[31,14] no viable alternative at input 'undefined''
13:42:54.065: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\saksham\AppData\Local\Temp\6BC7FD\smali\com\lidroid\systemui\quickpanel\QPids.smali[47,14] no viable alternative at input 'undefined''
13:42:54.065: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\saksham\AppData\Local\Temp\6BC7FD\smali\com\lidroid\systemui\quickpanel\QPids.smali[61,14] no viable alternative at input 'undefined''
13:42:54.065: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\saksham\AppData\Local\Temp\6BC7FD\smali\com\lidroid\systemui\quickpanel\QPids.smali[67,14] no viable alternative at input 'undefined''
13:42:54.065: [Normal] - SmaliTool.Smali: 'Smali failed, see log for further information.'
13:42:54.067: [Debug] - SmaliTool.Smali: 'Exitcode: 1'

QPids gives the error. This file contains all necessary public ids for strings, ids and drawable.
First generate public ids backing-up the working folder then save all new ids and copy them in the backed-up folder and then compile.
I recommend you to use ApkManager to decompile/recompile apks and with this guide you can add Lidroid in 2mins.

xpirt
 

sakshamx

Senior Member
Feb 8, 2013
738
607
new delhi
QPids gives the error. This file contains all necessary public ids for strings, ids and drawable.
First generate public ids backing-up the working folder then save all new ids and copy them in the backed-up folder and then compile.
I recommend you to use ApkManager to decompile/recompile apks and with this guide you can add Lidroid in 2mins.

xpirt
that error very old :p didnt u replied my pm :silly:
everything fine now :rolleyes:
 

Top Liked Posts

  • There are no posts matching your filters.
  • 16
    Here is guide how to add 15 toggles to notification pulldown. All credits going to sk0t, I'm just translate his guide :)

    LIDROID PANEL

    1. Decompile your SystemUI.apk
    2. Download archive from attachments and copy drawable-hdpi(mdpi) and layout folders to your decompiled folder
    3. Open file res/layout/status_bar_expanded.xml and add string
    Code:
     <include layout="@layout/qp_layout" />
    after
    Code:
    <com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
      xmlns:android="http://schemas.android.com/apk/res/android">
    4. Add strings from strings.xml and arrays.xml to your files in decompiled folder
    5. Compile
    6. Decompile new apk to some newfolder
    7. Copy file newfolder/SystemUI/res/values/public.xml into res/values/ and replace
    8. Delete newfolder
    9. Next take smali folder from archive and put it into SystemUI/smali
    10. Archive contains qp_repl.js script. You must place him near SystemUI folder and execute him. Wait until script will finish his work. You must see "Done"
    11. Build your apk.

    2qscduq.png


    BRIGHTNESS SLIDER

    1. Decompile your SystemUI.apk
    2. Download slider_btn archive and extract smali, drawable-hdpi и layout folders to your decompiled folder
    3. Add string into status_bar_expanded.xml
    Code:
     <include layout="@layout/qp_brightness" />
    after
    Code:
    <include layout="@layout/qp_layout" />
    4. Build


    WARNING! The Flashlight toggle may cause FC in Sense ROMs
    1
    what can I use to decompile the apk? thanks!

    Apktool or Apk Manager. Search on xda.

    xpirt
    1
    I'm trying to add this to HTCdroid. Can someone explain this?


    @tonyskyfall

    open strings.xml from archive , copy lines, then add them to strings.xml to your systemUI.apk
    just take arrays.xml file and put it into values folder