yashsingh1/xdaforums huggingface dataset:
[Android Themes] GuneetAtwal:
Yes it will work i had 13 Toggles by default just you need to add this in the default toolbar/Power Widget

android:visibility="gone"

and it will disappear from the notification Panel
[Android Themes] Adi Aisiteru Reborn:
Added to OP, additional link to

[Porting Guide][CM10/JB] Mod 4.2 Statusbar Quicksettings ( TABS, Slider, Flip Anim )

thanks :)
[Android Themes] WNSTNSNRS:
Hello.

Sir can I have that Battery Icon? is That 1-100? Thanks. :) :good:
[Android Themes] miaad:
my systemUI FCs, :confused: could you look into it ? :)

its Xperia U, AOSP 4.1.2 ROM
[Android Themes] devilex94:
Having this error :(

BTW I am on XOLO PLAY

and it already has toggles but ugly and not all which are required

E/AndroidRuntime( 444): FATAL EXCEPTION: main

E/AndroidRuntime( 444): java.lang.VerifyError: com/android/systemui/statusbar/phone/PhoneStatusBar

E/AndroidRuntime( 444):	at java.lang.Class.newInstanceImpl(Native Method)

E/AndroidRuntime( 444):	at java.lang.Class.newInstance(Class.java:1319)

E/AndroidRuntime( 444):	at com.android.systemui.SystemUIService.onCreate(SystemUIService.java:86)

E/AndroidRuntime( 444):	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2363)

E/AndroidRuntime( 444):	at android.app.ActivityThread.access$1600(ActivityThread.java:130)

E/AndroidRuntime( 444):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1277)

E/AndroidRuntime( 444):	at android.os.Handler.dispatchMessage(Handler.java:99)

E/AndroidRuntime( 444):	at android.os.Looper.loop(Looper.java:137)

E/AndroidRuntime( 444):	at android.app.ActivityThread.main(ActivityThread.java:4745)

E/AndroidRuntime( 444):	at java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime( 444):	at java.lang.reflect.Method.invoke(Method.java:511)

E/AndroidRuntime( 444):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)

E/AndroidRuntime( 444):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)

E/AndroidRuntime( 444):	at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:110)

E/AndroidRuntime( 444):	at dalvik.system.NativeStart.main(Native Method)
[Android Themes] :
Brother,

You haven't changed the register values,aka, v9- v10 like things. I'm not pretty sure where you have done wrong, but I helped someone here in this thread with same error and just few post back I've uploaded my phonestatusbar.smali for reference.

Do remember that this is not a copy paste guide but yes it's one of the best and easy to adapt guide I followed ever.

Do a thorough check with the op and you will find your mistakes....

"" Hitting Thanks Will Not Cost You Anything, So, Why Don't You Try Hitting It Once.....""

Sent While Checking The "AMOI 4.2.2 Beast".....
[Android Themes] jwchen119:
Got a serious problem here

Hi, [MENTION=4987653]BOND1987[/MENTION] I got a serious problem that everything goes alright but my SystemUI seems not working....

My screen is totally blackout without any FC, that's weird...

My device is Lenovo A820 chip is MediaTek mt6589

The screenshot combo (Power + Volume down) failed after I lose my SystemUI , so I can't give you and screenshot..sorry

But there's my logcat and SystemUI.apk. Hope you can help me, thanks aaaaaaaaaaaaa lot!!:)
[Android Themes] :
Ok brother,

Taking a while on your log, I found this ---

E/PackageManager( 395): Package com.google.android.backup has no signatures that match those in shared user android.uid.system; ignoring!

E/PackageManager( 395): Package com.android.systemui has no signatures that match those in shared user android.uid.system; ignoring!

That says that you have not signed your newly built systemui as you edited the manifest.xml so do sign with CM Signing keys and then flash it and report back
[Android Themes] jwchen119:
I'm using apktool not apktoolmulti, thus I download the sign key from OP , but with no luck that both key can't not sign the apk

I can't use apktoolmulti because it always show this error :

Can't Found C:\Users\Marmalade\Downloads\APK-Multi-Toolv1.0.11\APK-Multi-Tool\place-apk-here-for-signing\../place-apk-here-for-signing/signed.apk

It's so weird, too

so I use apktool to sign the apk with this two command:

java -jar SignApk.jar testkey.x509.pem testkey.pk8 modified-SystemUI.apk signed_test_SystemUI.apk
java -jar SignApk.jar platform.x509.pem platform.pk8 modified-SystemUI.apk signed_platform_SystemUI.apk

But two of them blackout after boot and the logcat show that they are not signed... maybe you can sign the apk for me? :confused:

Thanks for your time :laugh:
[Android Themes] :
In apk multitool keep the apk with name UnsignedSystemUI.apk in the folder for "Place apk here for modding" and Sign it with CM Signing Keys only.

And Brother do bother yourself for hitting THANKS button for me if I really helped you.
[Android Themes] Adi Aisiteru Reborn:
You can skip step for signing the apk but before pushing the moded systemui.apk to system/app ,

you must open lidroid settings app first and un-check Reboot , Shutdown, Network mode toggle.. and never to choose those toggle.
[Android Themes] Adi Aisiteru Reborn:
Edit : I meant Reboot, Shutdown, Flashlight toggle
[Android Themes] jwchen119:
Whatever I install signed-apk or unsigned-apk there's no luck to ge normal working... totally blackout without FC

tried to figure out what happened, but thanks for your advice and tutorials.. It's so easy but ....:crying:
[Android Themes] eng.stk:
Very cool!

Would be awesome to do it as a Xposed framework module, imagine the possibilities :)
[Android Themes] blessedsword:
:good::good::good::good::good:

Can you do it for Pantech vega S5 JB 4.1.2 :x ? Please
[Android Themes] demonshouter:
I have followed your tutorial and all went right. Decompiling, recompiling, signing, etc. Then installed the settings and systemui, I have black screen, no wallpapers and no status bar. Settings force closed when entering the power widget option in settings. Any suggestion? I use Motorola razr running jb 4.1.2. Thanks in advance.
[Android Themes] :
Brother,

Force closing of settings is because you haven't included the lidroidsettings.apk

And for statusbar not showing do include your logcat to solve the issue. Coz without we are helpless.
[Android Themes] demonshouter:
Sorry bout the settings, my bad, forgot to include it. Hope this log will help : http://db.tt/hs8hWd8F
[Android Themes] :
Brother,

The Logcat you attached has no information related to the error. So nothing to find there but just want to know that have Signed the SystemUI.apk through CM Signing keys as mentioned in OP.

There's line in LOG saying UID mismatch and signature mismatch. So Do one thing, start again with a stock or unmoded SystemUI and then if anything goes wrong again take a log and posted it here. Do remember to attach full log not the partial ones.
[Android Themes] demonshouter:
Android manifest is my problem after editing system ui, this happened from the first time I decompile my systemui: In my experience, after editing system ui, I have to use 7zip to open my new apk and put in it the android manifest and the meta-inf folder from my original apk. In this case I didn't edit the manifest. If I don't include it I always get black screen without status bar. In this mod, I have to edit the manifest which means I can't put it to my new build apk, because it must be edited. I have tried to decompile my new apk and sign with the attached signapk. Still no luck. Maybe something like service.jar that keep checking my android manifest?
[Android Themes] :
But brother,

For porting Lidroid toggles, you need to edit Manifest and then you have to sing the New Apk with CM signing keys. Do one thing, Make all the modification needed and then given that systemUI to me and I will sign it and attach it here then put that systemUI in flashable zip and flash. Will it be ok now.
[Android Themes] demonshouter:
Please have a look at my mod: the zip contain framework, settings, and systemui. Settings works fine.

http://db.tt/UTD57UjO

Thanks in advance...
[Android Themes] Maciek602:
Hey, I have a problem. I am trying to port Lidroid to Xperia P but I don't know how to delete stock toggles. I ported Lidroid successfully but I have now two toggle bars. Onw is stock and second is Lidroid.
[Android Themes] :
Brother,

Just do like I am saying.

Open SystemUI/res/status_bar_expanded_header.xml and make the dimensional line "android:width & height" to zero. See if it works or not or better upload your statusbar_expanded_header.xml.

Let me see how much I can help you in this. But only that file not the whole SystemUI.

Brother,

I am not so much free these days so if possible either wait for wednessday or give it a fresh start. And Fresh Start has always worked for me so I am telling you to give it a fresh restart to mod your stock SystemUI.

I hope you can understand my problems, cause it will consume 5-6 hours and frankly speaking currently running out of time though I am always there to help you out in any problem.
[Android Themes] demonshouter:
Thanks for the assistance. I'll manage my time to try it on more time. Hope I can get it right this time.
[Android Themes] Maciek602:
Ok, I managed to delete stock toggles and to place Lidroid on the top, but now I have strange black&white lines in my status bar. I know that's status_bar_expanded_header.xml related problem. I have no idea, which line is causing this

Here is screenshot:

My status_bar_expanded_header.xml:

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout android:orientation="vertical" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="wrap_content"

xmlns:android="http://schemas.android.com/apk/res/android"

xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">

<LinearLayout android:id="@id/tools" android:background="@drawable/statusbar_tools_button_frame" android:paddingTop="0.0dip" android:paddingBottom="0.0dip" android:layout_width="0.0dip" android:layout_height="0.0dip" />

<View android:background="@drawable/status_bar_hr" android:layout_width="fill_parent" android:layout_height="2.0dip" />

<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="52.0dip" android:baselineAligned="false">

<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:id="@id/clock_expanded" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:singleLine="true" />

<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="8.0dip" />

<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:clickable="false" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_margin="0.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />

<ImageView android:id="@id/settings_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_notify_quicksettings" android:scaleType="center" android:contentDescription="@string/accessibility_settings_button" />

<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />

<Button android:id="@id/clear_all_button" android:paddingLeft="8.0dip" android:paddingRight="8.0dip" android:layout_width="106.0dip" android:layout_height="wrap_content" android:text="@string/status_bar_clear_all_button" android:layout_alignParentRight="true" android:contentDescription="@string/accessibility_clear_all" />

</LinearLayout>

</LinearLayout>

Download for my status_bar_expanded.xml

Download for my status_bar_expanded_header.xml
[Android Themes] Adi Aisiteru Reborn:
android:background="@drawable/notification_header_bg"

change it to :

android:background="#ff000000"
[Android Themes] :
Brother,

I have edited the status_bar_expanded and attaching it as text file. So download it and copy paste it n your status_bar_expanded.xml by replacing all lines with my ones.

Try it brother and do let me know.
[Android Themes] Maciek602:
Thanks bro working well after changing few background to this it's ok, but still got blank line between clock&date and notifications. Sorry for being noob. ;)

Screenshot:

Code:

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout android:orientation="vertical" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="wrap_content"

xmlns:android="http://schemas.android.com/apk/res/android"

xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">

<LinearLayout android:id="@id/tools" android:background="@drawable/statusbar_tools_button_frame" android:paddingTop="0.0dip" android:paddingBottom="0.0dip" android:layout_width="0.0dip" android:layout_height="0.0dip" />

<View android:background="@drawable/status_bar_hr" android:layout_width="fill_parent" android:layout_height="2.0dip" />

<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="52.0dip" android:baselineAligned="false">

<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:id="@id/clock_expanded" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:singleLine="true" />

<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="8.0dip" />

<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:clickable="false" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_margin="0.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />

<ImageView android:id="@id/settings_button" android:layout_width="0.0dip" android:layout_height="0.0dip" android:src="@drawable/ic_notify_quicksettings" android:scaleType="center" android:contentDescription="@string/accessibility_settings_button" />

<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />

<Button android:id="@id/clear_all_button" android:paddingLeft="8.0dip" android:paddingRight="8.0dip" android:layout_width="106.0dip" android:layout_height="wrap_content" android:text="@string/status_bar_clear_all_button" android:layout_alignParentRight="true" android:contentDescription="@string/accessibility_clear_all" />

</LinearLayout>

</LinearLayout>

Download link

Not working, getting FC, but thanks for your help
[Android Themes] :
Brother.

Go to SystemUI/res/values/dimens.xml

And change the scrollheight dimension . Less it like x-40 (where X is original figure there)

For earlier I was knowing that it will cause you force close. But wanted to try. Try this as the below mentioned are the ongoing notification which is dealt by the scroll view height.

Or check for padding top there and lessen it.
[Android Themes] Maciek602:
There is no scrollheight dimension in my dimens.xml

Here is my dimens.xml LINK
[Android Themes] :
Ok brother

Try changing this -

<dimen name="notification_panel_header_height">111.0dip</dimen>

change the value to -75.

Do let me know further.
[Android Themes] Maciek602:
Big tkanks for you bro! Changing this amount did the trick.

BTW 75 is not good amount anyway, but I believe 65 or 60 will be perfect ;)
[Android Themes] rajumack07:
Hello All,

I am stuck at the last change for PhoneStatusBar.smali file before post# 2.

Modding the changes for XOLO MT5689 based phone. See the attached snapshot for error details. Error is coming when I am trying to compile the classes.dex of SystemUI after adding all the smali changes before post#2. Also, I have attached PhoneStatusBar smali file which I have updated. Please, can anyone debug or point me in the right direction.

Thanks

EDIT: I managed to fix the issue. It was with the variables which I copied from the post and some of them were different in smali file.
[Android Themes] demonshouter:
I've managed to recompile the ui once again. All went just fine. No errors when decompile, recompile, signing etc. Tried this on my phone and still no luck. Here is my ui:

http://db.tt/rTf6wmsS

I haven't seen toggles ported to moto razr xt910, I've tried porting from cdma razr version and have no luck. I always have problem with manifest xml, anyone able to help me here? Thanks in advance...
[Android Themes] Maciek602:
Ok guys, I have last question. Sorry for being such a noob :(

How can i change the color of this white line between toggles and clock/date?

Screenshot:

status_bar_expanded_header.xml

dimens.xml
[Android Themes] nongoei:
Hi.I just guess.

May be the white line is a png try to check png in line 6 in your status_bar_expanded_header.xml :)
[Android Themes] :
Brother,

You haven't signed the apk.

You have to sign the apk with cm signing keys, and currently my laptop is in service center. So you have to wait for tomorrow for me to do for you....
[Android Themes] miaad:
Thank you so much for your reply, I have tried signing it with apktool,

Still no luck,

yeah if possible and when you get your PC, please sign it for me.

Thanks again. :)
[Android Themes] nongoei:
Hi. You need to edit services.jar to skip signature check after signed apk :o
[Android Themes] demonshouter:
I have this service.jar problem too...just too bad I have odexes system and havent had time to deodexed it...Ive tried to deodexed services.jar and edit it....cant boot to honescreen. Maybe I should deodex all and sign all my system app.
[Android Themes] :
Off course yes brother,

You have to deodex the whole Rom, and actually it's only two folders--

System/

App

Framework.

Then only it will boot or any mod will work. Try kitchen or TMA for this purpose....
[Android Themes] demonshouter:
Thanks brother, I will have my system deodexed and will see if this mod could run on my devices.....
[Android Themes] Maciek602:
Thanks, will check this ;)

[MENTION=309187]edit[/MENTION]

Yeah that's it I think :)
[Android Themes] XqepX:
Can't find the greend code (first post).

Hey all,

I hope that you can help me :)

In the first post (at the end) it says that you should find the green code and add the blue one above it ;) The thing is that I can't even find it in my .smali :/

PS: The smali comes from a 4.1.2 AOSP ROM :)

device: Sony Xperia sola
[Android Themes] hell_lock:
Will work with sense 4+? I find nothing related to it in second post
[Android Themes] ANDREPOLOGY:
Hai Adi

saya udh mengikuti cara diatas dgn benar..

tapi bgtu sya push ke system/app

sy mendapatkan systemUI saya yg ngeblank tpi tdk FC(tdk keluar peringatan FC) hy black tdk ada statusbarnya

bisa kah anda membantuku dan memeriksa apakah sy sudah benar dlm thp2nya ..

maaf sy tdk bisa berbicara dlm bhs inggris :D
[Android Themes] demonshouter:
I think I find my problem, signature check is no probs. I dont have the line you mentioned for mediate or xperia/aosp in the same method. If I dont add the line, my ui works but without the toggles. I tried to put the line in some places in the smali and I lost my status bar. Can you direct me where should I put the line in my room? Thanks in advance.

Here is my phonestatusbar.smali, please take a look at it

https://www.dropbox.com/s/onj2ws9jq6rc0s3/PhoneStatusBar.smali

thanks in advance

Hello me...its me again...
[Android Themes] tOrNadO™:
Hi.. I am trying this method to obtain Lidroid toggles to my Sony Xperia S.. Although i followed every step in this procedure properly, i failed to find this line.. There is no "new instance v9" or anything related to v9 in this particular "method.protected makeStatusBarView() "

But i found these lines in the method after a few lines..

new-instance v5, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$5;

invoke-direct {v5, p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$5;-><init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBar; )V

invoke-virtual {v0, v5}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->setOnTouchListener(Landroid/view/View$OnTouchListener; )V

So should i just add the blue lines above these or won't i be able to use this method?? Pls reply.. :)
[Android Themes] anerik:
I managed to port this to my razr i but i can't include it on my rom, whenever i do it, after flashing i just get no statusbar, no navbar and black background
[Android Themes] peetr_:
It is problem with permission. You must edit manifest.xml, to change uid to android.uid.system, or add the permission. But after manifest editing, you could have problem with installation.
[Android Themes] dulemilosevski:
A have edit manifest and evriting is ok only data not work flash light work i think camera premision was for flashlight what premision have to add in manifest or which file have to add premision.

I lost in log i dont know the file
[Android Themes] Adi Aisiteru Reborn:
for Devs :

[MOD][HOW-TO]To disable signature checks :

after signing the android.manifest.xml, you will face systemUI dissapear in first rom boot.. that becose the signer keys..

sytem will refuse all system app that is signed so to solve it.. go here : http://xdaforums.com/showthread.php?t=1698352
[Android Themes] dulemilosevski:
Any suggest How To solve error in my systemui log is two post up
[Android Themes] dulemilosevski:
thank you :good::good::good: a have add permission <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/> in manifest and data Toggle now is woking:victory::victory::victory::victory:
[Android Themes] manuelz31:
sir [MENTION=4987653]BOND1987[/MENTION] and [MENTION=5204709]Adi Aisiteru Reborn[/MENTION] , i have a problem with this , i successfully ported it to my phone, all toggles are working but my old toggles still there, how can i remove it? , and when i press screenshot shortcut (Volume Down+Powerbutton) my systemUI stopped.. thats the only problem..

Thanks in advance masters! :good:

please check my SystemUI.apk :fingers-crossed:

View attachment SystemUI.zip

here's the log sir.
[Android Themes] nhymxu:
I can't find it on my smali file. Who can help me :(
[Android Themes] tOrNadO™:
Hi.. In the method, i happened to do everything just fine until this.

I couldn't find the Green Code in this method

.method protected makeStatusBarView()Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;

There is no instance with PhoneStatusBar$MyTicker;

What shall i do now?? Anybody who got success with their Xperia, can u help?? My device is Sony Xperia S..