yashsingh1/xdaforums huggingface dataset:
[Android Themes] adri_360:
Hi guys, i've got a problem when I compiled SystemUi:

/SystemUI/res/layout/status_bar_expanded.xml:27: error: Error parsing XML: mismatched tag

Why?

<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.ExpandedView android:orientation="vertical" android:id="@id/expandview" android:tag="NO_R2L" android:focusable="true" android:descendantFocusability="afterDescendants" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:orientation="vertical" android:id="@id/attach_layout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<include layout="@layout/signaltest_layout" />
<include layout="@layout/brightnessslider_layout" />
<include layout="@layout/swipe_music_control" />
<RelativeLayout android:id="@id/setting_layout" android:layout_width="fill_parent" android:layout_height="52.0dip" />
</LinearLayout>
<View android:background="@drawable/status_bar_hr" android:layout_width="fill_parent" android:layout_height="2.0dip" />
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="@dimen/close_handle_underlap">
<include android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height" layout="@layout/status_bar_expanded_header" />
</LinearLayout>
<com.spacecaker.SpaceLayOut android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<include layout="@layout/quickpanel_quick_settings_space" />
</LinearLayout>
<FrameLayout android:tag="NO_R2L" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@*android:style/TextAppearance.Large" android:gravity="left" android:layout_gravity="top" android:id="@id/noNotificationsTitle" android:padding="8.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_no_notifications_title" />
<LinearLayout android:orientation="vertical" android:tag="NO_R2L" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/notification_height" />
</LinearLayout>
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</LinearLayout>
</ScrollView>
</FrameLayout>
</com.spacecaker.SpaceLayOut>
[Android Themes] professor_proton:
Check out the line no. 27 of the xml bro

sorry for any ty¶°s :p :)
[Android Themes] uriel_zo:
brother

another question

this is my quickpanel_quick_settings_space

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.lidroid.systemui.quickpanel.PowerWidget android:layout_marginTop="50.0dip" android:id="@id/adi_quickpanel" android:paddingTop="0.0dip" android:paddingBottom="0.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<ScrollView android:id="@id/scroll" android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="0.0dip" android:overScrollMode="never">
<LinearLayout android:gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:gravity="left" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="0.0dip">
<FrameLayout android:id="@id/settings_button" android:tag="com.android.settings,com.android.settings.Settings" android:background="@drawable/ic_notify_quicksettings_normal" android:layout_width="106.0px" android:layout_height="100.0px" android:layout_weight="1.0" android:onClick="onClickPanelMethod" />
</LinearLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>
</LinearLayout>

and does not show me the lidroid togles.

when I am wrong.

as always thank you.

regards
[Android Themes] ocoot:
hi sir [MENTION=4641889]akash akya[/MENTION] can you help me on smali? it's have a little different code on PhoneStatusbar.smali please. i want to try to add Lidroid Toggles to QuickPanel. please help!!! this is my file smali -> https://www.dropbox.com/s/hecr48s3s1nxl5q/PhoneStatusBar.smali

edit: it's done. thanks
[Android Themes] adri_360:
Ok but If delete them, the error still.
[Android Themes] nongoei:
I think you miss some line for LinearLayout in this xml. Try to check your original status_bar_expanded.xml compare OP :)
[Android Themes] uriel_zo:
my quickpanel_quick_settings_space.xml no shows lidroid togles

you can share your quickpanel_quick_settings_space.xml

to compare.

thanks in advance
[Android Themes] professor_proton:
Actually I'm in ICS and I partly followed this guide and another guide which is for jellybean :p

My quick_panel_quick_settings_space.XML has only about 10-12 lines and only 2 lines in scrollview for lidroid toggles and brightness slider :) I'll share it anyway later bro

sorry for any ty¶°s :p :)
[Android Themes] nhymxu:
Hi, I think I finish edit all step to add lidroid toggle.

But guide need edit AndroidManifeast.xml

1. If I don't edit ~> force close SystemUI

2 . If I edit but not sign ( using 7-zip, drag and drop ) ~> force close

3 .If I edit, compile and sign using Apk multi tool ~> force close

Logcat for (3):

W/PackageParser( 700): Exception reading AndroidManifest.xml in /system/app/SystemUI.apk

W/PackageParser( 700): java.lang.SecurityException: META-INF/APKSIGNE.SF has invalid digest for res/drawable-xhdpi/stat_sys_battery_green_charge_anim82.png in /system/app/SystemUI.apk

W/PackageParser( 700):	at java.util.jar.JarVerifier.invalidDigest(JarVerifier.java:131)

W/PackageParser( 700):	at java.util.jar.JarVerifier.verifyCertificate(JarVerifier.java:350)

W/PackageParser( 700):	at java.util.jar.JarVerifier.readCertificates(JarVerifier.java:258)

W/PackageParser( 700):	at java.util.jar.JarFile.getInputStream(JarFile.java:378)

W/PackageParser( 700):	at android.content.pm.PackageParser.loadCertificates(PackageParser.java)

W/PackageParser( 700):	at android.content.pm.PackageParser.collectCertificates(PackageParser.java)

W/PackageParser( 700):	at com.android.server.pm.PackageManagerService.collectCertificatesLI(PackageManagerService.java:3082)

W/PackageParser( 700):	at com.android.server.pm.PackageManagerService.scanPackageLI(PackageManagerService.java:3177)

W/PackageParser( 700):	at com.android.server.pm.PackageManagerService.scanDirLI(PackageManagerService.java:3026)

W/PackageParser( 700):	at com.android.server.pm.PackageManagerService.<init>(PackageManagerService.java:1067)

W/PackageParser( 700):	at com.android.server.pm.PackageManagerService.main(PackageManagerService.java:842)

W/PackageParser( 700):	at com.android.server.ServerThread.run(SystemServer.java:197)

W/PackageParser( 700):	at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)

W/PackageParser( 700):	at de.robv.android.xposed.XposedBridge.invokeOriginalMethod(XposedBridge.java:640)

W/PackageParser( 700):	at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:471)

W/PackageParser( 700):	at com.android.server.ServerThread.run(Native Method)

E/PackageParser( 700): Package com.android.systemui has no certificates at entry AndroidManifest.xml; ignoring!

W/PackageManager( 700): Failed verifying certificates for package:com.android.systemui

Who can help me?

Thanks you!

p/s: After edit quick panel, work ok. I see status bar seperate to 3 area.

When pull down from difference area, statusbar not same

Area 1 (left): old status_bar_expanded without status_bar_expanded_header

Area 2,3 (right) quick view: status_bar_expanded_header with new button.

But lockscreen button I added before not work, when press then go to Settings
[Android Themes] DSA:
Hi guys

Mod is up and running, just need some help finalising the layout...cannot reduce the gap between the volume panel wording and the volume panel itself...

screenshot added

any ideas?
[Android Themes] enskje:
sorry. wrong post....
[Android Themes] DSA:
nevermind
[Android Themes] ahmedzz:
nice thread bro
[Android Themes] ildar2099:
How to do it on touchwiz 4.1.2?
[Android Themes] Goldie:
Mate did you even read the OP? Thats the point. This is for 4.1.2! !
[Android Themes] ildar2099:
This is for pure android 4.1.2. And how do for samsung touchwiz 4.1.2?
[Android Themes] Goldie:
Just use tw prefixed xmls instead of just statusbar xmls
[Android Themes] mjz2cool:
uhm, i don't get that part, how do i know what i have to replace?
[Android Themes] Goldie:
Look up the 5 digits after 0x7f in his public.xml to find the item it relates to then find that item in your public.xml and change the last 5 digits in the smali to match yours.
[Android Themes] mjz2cool:
thanks, looks like i've got some work to do then :p
[Android Themes] mjz2cool:
is it possible to get 3 or 4 icons for each row?

---------- Post added at 08:40 PM ---------- Previous post was at 08:01 PM ----------

getting force close, currently going trough my logcat, if i can't make it work i will post the logcat, maybe someone could help me with this

here's my logcat, if i'm right, the error starts at around line 5000. i also attached my SystemUI.apk and the dumpstate_app.... files.

can someone help me out with this?
[Android Themes] Goldie:
Ui needs camera permission for flashlight. Although that usually on causes fc on press. You need to add it to manifest and resign systemui then disable signature checking
[Android Themes] mjz2cool:
done all that, but the force close i get starts from boot, the statusbar doesn't even appear.

edit: hmm, seems i forgot to add the new manifest file to the apk, just did that, and resigned the apk, hope it works now :)

edit 2: nope, still not working, still have to find the problem
[Android Themes] mjz2cool:
is there a way to move the lidroid toggles into a grid when i already got those toggles the normal way?
[Android Themes] samsoul16:
Yes.. U need to just follow the method of the guide to add grid view just don't copy the whole lidroid folder just copy the power widget.java
[Android Themes] mjz2cool:
i got it working on my gt-s6310n (galaxy young)

but there is one problem, when i change the volume from the sliders, it works, but when using the volume buttons, the sliders won't change, is that a known bug?

also, how can i change the looks of the sliders? i want to get them the same as the brightness slider
[Android Themes] nightwalker:
How to add sliders in stock 4.2.2 rom

Having xolo a500s

But,couldn't check where to add things for layout??
[Android Themes] misha1996:
will work on GB 2.3?:)
[Android Themes] adideruler:
Part 2 Step 3

I did everything till part 2 step 3 , but in step 3 i cant find the smali statements you mentioned..... i

step 3 : find line similer to these

Code:

new-instance v11, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$MyTicker;

iget-object v12, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarView:Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;

invoke-direct {v11, p0, v2, v12}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$MyTicker;-><init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;Landroid/content/Context;Landroid/view/View;)V

iput-object v11, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mTicker:Lcom/a

i have attached the smali file too.

(I have S Duos GT-S7562)
[Android Themes] Rekjezt™:
help

thanks for the guiede, very helpfull

but, my slider view to small, can you help me??
[Android Themes] professor_proton:
I think you're on ICS s duos is ICS right? This is for 4.1 ? Try Adi's guide for porting the lidroid toggles then space cakers guide for the layouts

Sent from my Xolo A500 with proton UI
[Android Themes] adideruler:
Problem Solved

thanks for replay but it tried both , didnt go well, so followed ( http://xdaforums.com/showthread.php?t=1725411 ) , wanam guide did few changes in makeStatusBar view and forward steps and it worked..
[Android Themes] BetaTesterCrazy:
Is possible to add the slider volume in ics?
[Android Themes] samsungi780philippines:
hello, i tried modding my SystemUI.apk and I followed step 1-4 but when I tried to recompile my edited SystemUI it gets error like this:

C:\android\apktool>apktool b SystemUI SystemUI-new.apk

I: Checking whether sources has changed...

I: Checking whether resources has changed...

I: Building resources...

aapt: warning: string 'data_connection_datach_timeout_error_msg' has no default

translation in C:\android\apktool\SystemUI\res; found: de es fr in it ms pt ru t

h tr vi zh_TW

I: Building apk file...

what causes here?...your reply is a great help..thanks!

and one more thing, I can't seem to find the

<public type="drawable" name="btn_toggles_normal" and <public type="drawable" name="btn_tg" in my public.xml did I missed something?
[Android Themes] Goldie:
The error is not an error. Its just as it says....a warning. Dont worry about it.

Those items will only be in public when you decompile the new apk with resources added
[Android Themes] samsungi780philippines:
Thank you Sir for your quick reply.. another problem here is I can't find the <public type="drawable" name="btn_toggles_normal" and <public type="drawable" name="btn_tg" in my public.xml

i only have <public type="drawable" name="btn_default_small" id="0x7f020005" /> <public type="drawable" name="btn_parting_line" id="0x7f02000b" />

Ohh I'm stuck at it! :confused: Please need your help...thanks
[Android Themes] Goldie:
Read what I said. They wont be there til you decompile the apk with new resources
[Android Themes] samsungi780philippines:
sorry for just being a noob Sir, but where can I get that new resources :confused:
[Android Themes] Goldie:
In the download in the guide. Right under where it says to change the ids. Reading more....means asking less :p :rolleyes:
[Android Themes] samsungi780philippines:
but I have already downloaded those files right after Step #4. I have copied those two (2) folders the smali and res to the edited SystemUI and recompiled and then decompiled again, but nothing happened :crying: I can't even see those 2things mentioned in Step #5 :confused:

Edit:

I found it already! thank you sir for being so kind!

---------- Post added at 11:56 AM ---------- Previous post was at 11:13 AM ----------

How did you manage to get it working? I have also like this when i recompiled my edited SystemUI....:D
[Android Themes] khan_frd2002:
read my second comment :good:

http://xdaforums.com/showpost.php?p=44180575&postcount=33
[Android Themes] samsungi780philippines:
it said edit: layout width

how and where exactly you edit it? mind if you can give some steps? thanks
[Android Themes] khan_frd2002:
make it like this in quickpanel_quick_settings_space.xml

<FrameLayout android:id="@id/settings_button" android:tag="com.android.settings,com.android.settings.Settings" android:background="@drawable/ic_notify_quicksettings_normal" android:layout_width="fill_parent" android:layout_height="100.0px" android:layout_weight="1.0" android:onClick="onClickPanelMethod" />

to

<FrameLayout android:id="@id/settings_button" android:tag="com.android.settings,com.android.settings.Settings" android:layout_width="fill_parent" android:layout_height="100.0px" android:layout_weight="1.0" android:onClick="onClickPanelMethod" />
[Android Themes] samsungi780philippines:
why do i get this two quick panel settings ? :confused::(
[Android Themes] samsungi780philippines:
Sir can you please guide me on how to add toggles to quickpanel quick settings space? I have a hard time following the procedure on adding toggles. If you caould just give me one toggle to add then maybe I can add more, maybe one example or a working toggle so I can follow it, it's just that I really don't know where to start :confused::angel:
[Android Themes] khan_frd2002:
if you getting this one hard..... try this first....once you get working lidroid toggles then try this
[Android Themes] Mrinal Roy:
:3

i dun hav Phone folder in com\android\systemui\statusbar\ ....wat to do now?
[Android Themes] Aleemk9:
can't find... smali/com/android/systemui/

statusbar/phone/PhoneStatusBar.smali in my systemui
[Android Themes] dugeriss:
working sir :good:
[Android Themes] kennsajo0103@gmail.com:
Error in StatusBarServiceLRPull.smali

I need some help bro's. Error in StatusBarServiceLRPull.smali. Please help me guys :D

TIA.
[Android Themes] lacoursiere18:
Post the error you get in the cmd prompt..and we will try to help;)

Just saying I have error with our posting the error doesn't do any good
[Android Themes] zangge34:
Help!

No sign of quickpanel_brightness_settings in my public.xml.

I went to PowerWidget.smali in the code const v10, 0x7f030032 and stop here
[Android Themes] lacoursiere18:
Shouldn't quote the whole 2nd part of the OP, future reference..If it's not in your public.xml then you didn't add it.. Whether it is a drawable, layout, xml, id.. not sure which one it is.. but you need to add it for it to show in publics:good:
[Android Themes] professor_proton:
Sorry got confused
[Android Themes] lacoursiere18:
I believe you need to use apktool 1.5.2 to solve those errors.. Either that or go through all of it and edit those lines
[Android Themes] Syssx:
Thanks! I was using Apktool 2.0b9. Looks like it works fine with 1.5.2.
[Android Themes] Darklord96:
thanks for this guide i m surely gonna try it on my rom

:good:

and then give u the review tom or

The ss itself :fingers-crossed:
[Android Themes] Erhany:
Could someone please share his SystemUI which has successfully added volume sliders?
[Android Themes] SergeyProL:
How to remove settings opening after long pressed?

(Sorry, i used translator :eek: )
[Android Themes] Josiah_07:
I can't recompile, anyone please help. :(

Microsoft Windows XP [Version 5.1.2600]

(C) Copyright 1985-2001 Microsoft Corp.

J:\APKTool>apktool if framework-res.apk

I: Framework installed to: C:\Documents and Settings\Admin\apktool\framework\1.apk

J:\APKTool>apktool d SystemUI.apk

I: Using Apktool 2.0.0-Beta9 on SystemUI.apk

I: Loading resource table...

I: Loading resource table...

I: Decoding AndroidManifest.xml with resources...

I: Loading resource table from file: C:\Documents and Settings\Admin\apktool\framework\1.apk

I: Regular manifest package...

I: Decoding file-resources...

I: Decoding values */* XMLs...

I: Baksmaling...

I: Copying assets and libs...

I: Copying unknown files/dir...

I: Copying original files...

J:\APKTool>apktool b SystemUI

I: Using Apktool 2.0.0-Beta9 on SystemUI

I: Checking whether sources has changed...

I: Smaling...

SystemUI\smali\com\android\systemui\statusbar\StatusBarServiceLRPull.smali[22,4] Error for input '.parameter':

Invalid directive

SystemUI\smali\com\android\systemui\statusbar\StatusBarServiceLRPull.smali[23,4] Error for input '.parameter':

Invalid directive

SystemUI\smali\com\android\systemui\statusbar\StatusBarServiceLRPull.smali[22,15] mismatched input '"context"'

expecting END_METHOD_DIRECTIVE

SystemUI\smali\com\android\systemui\statusbar\StatusBarServiceLRPull.smali[118,4] Error for input '.parameter'

: Invalid directive

SystemUI\smali\com\android\systemui\statusbar\StatusBarServiceLRPull.smali[119,4] Error for input '.parameter'

: Invalid directive

SystemUI\smali\com\android\systemui\statusbar\StatusBarServiceLRPull.smali[118,15] mismatched input '"v"' expe

cting END_METHOD_DIRECTIVE

SystemUI\smali\com\android\systemui\statusbar\StatusBarServiceLRPull.smali[169,4] Error for input '.parameter'

: Invalid directive

SystemUI\smali\com\android\systemui\statusbar\StatusBarServiceLRPull.smali[169,15] mismatched input '"flag"' e

xpecting END_METHOD_DIRECTIVE

Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/android/systemui/statusb

ar/StatusBarServiceLRPull.smali

at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:72)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:56)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)

at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:338)

at brut.androlib.Androlib.buildSources(Androlib.java:299)

at brut.androlib.Androlib.build(Androlib.java:285)

at brut.androlib.Androlib.build(Androlib.java:258)

at brut.apktool.Main.cmdBuild(Main.java:236)

at brut.apktool.Main.main(Main.java:88)

J:\APKTool>
[Android Themes] Josiah_07:
I've fixed this error using apktool v1.5.2...
[Android Themes] paidoel:
I already follow step by step until success compile then in step 5 after compile and decompile compiled systemui.apk I can't find :

<public type="drawable" name="btn_toggles_normal"

<public type="drawable" name="btn_tg"

All "btn" word I found in my public.xml :

<public type="drawable" name="btn_default_small" id="0x7f020005" />
<public type="drawable" name="btn_parting_line" id="0x7f02000b" />
<public type="drawable" name="toolbar_panel_switch_btn" id="0x7f020149" />
<public type="drawable" name="toolbar_panel_switch_btn_nor" id="0x7f02014a" />
<public type="drawable" name="toolbar_panel_switch_btn_pre" id="0x7f02014b" />
<public type="drawable" name="btn_default_small_normal" id="0x7f020006" />
<public type="drawable" name="btn_default_small_normal_disable" id="0x7f020007" />
<public type="drawable" name="btn_default_small_normal_disable_focused" id="0x7f020008" />
<public type="drawable" name="btn_default_small_pressed" id="0x7f020009" />
<public type="drawable" name="btn_default_small_selected" id="0x7f02000a" />

Which one I use to? Please anyone?
[Android Themes] amitnv:
Is there anyway to change the default kitkat quick toggle animation from flip to slide?

Like in android L?
[Android Themes] KuaQ:
Hi, I have question. Its possible to change toggles layout from 5 in row to 3? To look like this:
[Android Themes] kaitokid1412:
Will this work on JB 4.2.2 Roms?
[Android Themes] ponnex:
[Q]Adding Button to Status Bar a shortcut to AntTek Quick Settings

SUMMARY OF MY QUESTION: HOW TO ADD A BUTTON ON EXPANDED STATUS BAR AND OPEN AN APP ACTIVITY

I've been trying to make 4.2.2 quick setting on 4.1.1 or 4.1.2 Jelly Bean using guides here in XDA and I stumble upon AntTek Quick Setting App and I said hey why not use this and incorporate a button that will open AntTek Quick Setting App and to make it short this is my progress so far

-->I already successfully added a functional button(#1 in the screenshot below)

-->Found out that when you click AntTek Quick Settings Pro Notification(#2 in screenshot below) it will open the status bar expanded of AntTek Quicksetting just like in a stock 4.2.2 quick setting

-->Found out that I could use the button(#1 in screenshot) to call an activity e.g. for settings = <FrameLayout android:id="@id/settings_button" android:tag="com.android.settings,com.android.settings.Settings" by editing system ui and xml might be useful to call AntTek Quick Setting

-->Found all activity of AntTek on AndroidManifest by decompiling it

QUESTION

1. What could possibly trigger to open AntTek Quicksetting(#3 in screenshot) by pressing the AntTek Notification (#2 in screenshot)

2. How to call that function and add it to system ui in the button(#1 in screenshot) ive made?

[IMG="screenshot"]http://i61.tinypic.com/j59fk8.png[/IMG]

***NOTE***

Im not trying to hack AntTek Quick Setting nor using it for other benefit