yashsingh1/xdaforums huggingface dataset:
[Android Themes] diespine:
3-Out\SystemUI.apk\smali\com\android\systemui\status bar\policy\Traffic$1.smali[24,4] Error for input '.parameter': Invalid directive

..\3-Out\SystemUI.apk\smali\com\android\systemui\status bar\policy\Traffic$1.smali[39,4] Error for input '.parameter': Invalid directive

..\3-Out\SystemUI.apk\smali\com\android\systemui\status bar\policy\Traffic$1.smali[40,4] Error for input '.parameter': Invalid directive

..\3-Out\SystemUI.apk\smali\com\android\systemui\status bar\policy\Traffic$1.smali[39,15] mismatched input '"context"' expecting END_METHOD_DIRECTIVE

Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/android/systemui/statusbar/policy/Traffic$1.smali

Hi. I have the same problem if I compile with apktool 2.

But if I compile the apk with 1.5.2 I have this:

C:\apktool\apktool>apktool b SystemUI

I: Checking whether sources has changed...

I: Smaling...

[147,4] Error for input '.param': Invalid directive

[147,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE

Exception in thread "main" brut.androlib.AndrolibException: Could not smali file

: C:\apktool\apktool\SystemUI\smali\com\android\systemui\BatteryMeterView$Batter

yMeterMode.smali

at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:45)

at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)

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

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

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

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

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

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

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

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

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

What can I do? Thanks

P.S. I have a Mtk6592 with 4.4.2 KK.
[Android Themes] diespine:
I think I must to explain what is I am doing.

First I have a MTK6592 with 4.4.2 Rom

I need (I think) decompile framework-res.apk and mediatek-res.apk

I Install framework-res.apk with apktool 2 -- OK

I install mediatek-res.apk with apktool 2 -- OK

I Decompile the framework-res.apk with apktool 2 -- OK

I Decompile the mediatek-res.apk with apktool 2 -- OK

I Decompile the SystemUI.apk -- OK

I copy the code in the second post and add the uncompressed files Traffic.Zip in the folder.

I Compile SystemUI.apk with apktool 2 and I have this

But if I compile the apk with 1.5.2 I have this:

So I try decompile and compile with apktool 1.5.2:

I install mediatek-res.apk -- OK

I install framework-res.apk with apktool 1.5.2 -- ERROR

I have read in the post of Ticklefish about his tool Tickle My Android 9.2.1:

But I can't do it I have this error because (I Think) I don´t install framework-res.apk
[Android Themes] Ticklefish:
Use 1.5.2 to decompile and recompile your SystemUI.apk..but 2.0 to install your framework-res.apk.

The smali in this mod will not work with apktool 2, which is why you must use 1.5.2 to decompile and recompile.

But you can still use 2.0 to install the framework files.

--------------------------------

Sent via Tapatalk

---------------------------
[Android Themes] diespine:
Thank for your help, Ticklefish.

I try decompile the SystemUI.apk but I have this error:

What are I doing wrong?
[Android Themes] Ticklefish:
And that's with framework-res.apk installed?

--------------------------------

Sent via Tapatalk

---------------------------
[Android Themes] diespine:
No. Without framework-res.apk installed.

I can´t install framework-res.apk in apktool 1.5.2. I have this error:
[Android Themes] Ticklefish:
In that case, use apktool 2 to install framework-res.apk.

--------------------------------

Sent via Tapatalk

---------------------------
[Android Themes] diespine:
I don´t understand.

I must install framework-res.apk with apktool 2 in a cmd window

Then I must open another cmd window and decompile systemUI.apk with apktool 1.5.2 without close the other one?

I will try and post.

Thank.

---------- Post added at 08:17 AM ---------- Previous post was at 08:06 AM ----------

I try install framework-res.apk and mediatek-res.apk in apktool 2 and all is OK.

But when I decompile SystemUI.apk in apktool 1.5.2 I have this error again:

Any Idea. Thanks
[Android Themes] Ticklefish:
So your SystemUI.apk can only decompile and recompile if you use apktool 2? (If you don't add this mod, of course..)

--------------------------------

Sent via Tapatalk

---------------------------
[Android Themes] diespine:
Yes. I only can decompile SystemUI.apk with apktool 2.

And I only can install framework-res.apk and mediatek-res.apk with apktool 2.

But then I can´t recompile SystemUI.apk with apktool 2. I have this error:

Thank you for your attention.
[Android Themes] Ticklefish:
That's not what I meant. Does your SystemUI.apk decompile and recompile using apktool 2 without adding this mod?
[Android Themes] diespine:
Yes. I Think so.

I get this warning but I am reading that´s not a problem.

Am I wrong?

Thanks
[Android Themes] Ticklefish:
You're not wrong, those are just translation warnings and can be ignored if you're not planning to use any of those languages. :good:

If you need apktool 2 to decompile and recompile your SystemUI.apk, I'll use apktool 2 on my apk and upload the smali files, so you can use them.

There are apktool 2 compatible smali files in this thread somewhere, I distinctly remember uploading them. But the search engine's down so I'll just upload them again.

Give me a few minutes....
[Android Themes] Ticklefish:
Here you go. Extract these files and put them into your apktool 2 decompiled apk. :highfive:
[Android Themes] diespine:
It don´t work.

I haven´t the last error. I have this now:

Any idea?

I am thinking I never do it...
[Android Themes] Ticklefish:
You will, you just need to nail down these errors. :good:

This is saying that you have an error on line 54 of styles.xml. Can you share that file please?
[Android Themes] diespine:
I have just try with your tool, and this is the new error:

And this is my style.xml
[Android Themes] Ticklefish:
Sigh...gotta love Mediatek...

If you're still using apktool 2 by command line, try deleting line 54 of your styles.xml then recompiling.

As for the TMA error, please upload your history.txt. You can just upload it on its own, there's no need to put it into an archive.
[Android Themes] diespine:
I'm trying several things. I will inform you.
[Android Themes] Ticklefish:
Very nice work! And I'm glad you got it working eventually. :highfive:
[Android Themes] minsk92:
Hello, I'm happy to have found your guide, I have a lg g3 4.4.2. I would like to know where should I start .... Thanks
[Android Themes] Ticklefish:
Just follow the steps in the guide. :)

-------------------------------

Sent Via Tapatalk

-----------------------------
[Android Themes] minsk92:
Sorry, I followed the video on youtube,but I can not do...
[Android Themes] Ticklefish:
What part did you have trouble with?

-------------------------------

Sent Via Tapatalk

-----------------------------
[Android Themes] minsk92:
When I put the string <fix ...... It appears a few strings, with notepad ++ I see up to 20 numbers do not like you ... you have movements after I see the strings ....
[Android Themes] Ticklefish:
Sorry but I just don't understand that. :crying:

Are you able to provide any screenshots of your problem? It would help a lot.
[Android Themes] nand.96:
[QUOTE=BlueSharky;4571077

Is there any way to get the speed Meter on the left side of the statusbar!??
[Android Themes] ChristianPe:
Hi, i tried this mod but i only got status bar to dissapear, any help?

Motorola Razr xt 912 Stock Jb.
[Android Themes] bl4ckluna:
https://code.google.com/p/android-apktool/issues/detail?id=577#makechanges

Hey Bro. Looks with Tools Problem Smali2.XX dont support .parameter... can u update that smali code?
[Android Themes] Aamirx27:
i get this error

java version "1.8.0_11"

Java(TM) SE Runtime Environment (build 1.8.0_11-b12)

Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)

A subdirectory or file modified-system-apk-files-here already exists.

..\projects\SystemUI.apk\smali\fx\dzolcp\Speed$1.smali[24,4] Error for input '.parameter': Invalid directive

..\projects\SystemUI.apk\smali\fx\dzolcp\Speed$1.smali[40,4] Error for input '.parameter': Invalid directive

..\projects\SystemUI.apk\smali\fx\dzolcp\Speed$1.smali[41,4] Error for input '.parameter': Invalid directive

..\projects\SystemUI.apk\smali\fx\dzolcp\Speed$1.smali[40,15] mismatched input '"context"' expecting END_METHOD_DIRECTIVE

Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: fx/dzolcp/Speed$1.smali

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

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

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

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

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

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

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

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

at brut.apktool.Main.main(Main.java:84)
[Android Themes] iedafarha:
updated smali code to support apktool 2.0 , base source smali from #2 attachment, work well on my kitkat 4.4.4.
[Android Themes] mor_1228:
can we do it for samsung s4 4.4.2 ???? I9500 india
[Android Themes] Ticklefish:
Yes.
[Android Themes] mor_1228:
i am trying to do it but cant do it :( not able to deodex also.
[Android Themes] Ticklefish:
Why can't you do it? What's the problem you're having?
[Android Themes] ITerwithnoname:
plz help me, i've already Decomp and Recomp successfully, but when i copy my modded SystemUI to priv-app, it is just put in there but it isn't installed. When i click to install it, it notifies "App not installed" and my phone lost statusbar :confused: i've set permission 6-4-4 too. I'm using KK 4.4.2, is this mod support it? and I used "Traffic smali". I've had this problem once, when I used cm11 rom, and now i see it again :(
[Android Themes] ionutmaruta:
There is no default lines in the status_bar.xml of SystemUI.apk from BOB7 (5.0) :(
[Android Themes] icant:
I can't Recompile My system UI .. Please Help Me.. :(
[Android Themes] Ticklefish:
You're decompiling and recompiling with the wrong version of Apktool for the type of smali you are using.

Try using apktool 1.5.2 instead.

---------------------------------

Sent from Tapatalk

------------------------------
[Android Themes] icant:
I tried using apktool 1.5.2 and successfully .. but after I plug systemui always force close..

sorry for bad my english
[Android Themes] Mohd Haikal:
how to remove it bro ? I wanna make some changes on my UI and put it back on .
[Android Themes] 3to4:
Thanks for the traffic smali files. I was able to display connection speed for my N7105 (Samsung 4.3 / Android 4.4.2) using these files.
[Android Themes] iedafarha:
you are welcome buddy , :) there are more advanced network traffic on statusbar , with incoming and outgoing traffic, check here for smali and tutorial. Example for network traffic , look here , i was able to display network speed both lollipop and kitkat rom.
[Android Themes] 3to4:
Thank you for the information. I will try advanced network traffic later on, as for the moment I would like to display operator name on the left in the status bar, and I am following this guide http://xdaforums.com/showthread.php?t=2380419.

I am using APK MultI-Tool 2.0, which decompiles, but I can not recompile with errors with carrierlabel.smalis. I tried the older version (stable release), but the older version cannot decompile with errors. Can you maybe give me links to what to make smalis compatible with Apktool 2.0, if it's not too complicated?
[Android Themes] iedafarha:
Here m8 , i updated carrierlabel.smali and CarrierLabel$1.smali compatible with apktool 2.0 for you ,, pls give feedback its work or not.
[Android Themes] 3to4:
Thank you so much!!! I was not expecting help so quickly.

With your smalis, Apk Multi-tool recompiled without any error, and the systemUI.apk it made works well in my N7105 (TW 4.3 / Android 4.4.2 ) and displays carrier label.

You are very very knowledgeable and skillful!! and helpful, too!!
[Android Themes] iedafarha:
wc, glad to know that smali work for you, for advanced Network traffic , i hv easy method to port on your settings.apk and systemUI.apk , feel free to message me if u wanna do it.
[Android Themes] Nobbienoob79:
Nice guide sir:good:
[Android Themes] zim9x:
thank you

its working on my device <# thank so much
[Android Themes] SHADYEDGE:
Hi, could you show me how to add this to my Note 4 running Note 5 ROM Port??
[Android Themes] kuranzi:
can i use this on zenfone 5 stock ROM ??
[Android Themes] Ticklefish:
Probably. Give it a try and find out!
[Android Themes] nhmanas:
how can I add this on my stock 6.0.1 AOSP rom ?
[Android Themes] Swapnil Soni:
I'm having error like this I don't know what does it mean

UNEXPECTED TOP-LEVEL ERROR: java.lang.Exception: data/data/com.gmail.heagoo.apkeditor.pro/files/decoded/smali/fx/dzolcp/Speed$1.smali[24,4] Error for input '.parameter': Invalid directive

data/data/com.gmail.heagoo.apkeditor.pro/files/decoded/smali/fx/dzolcp/Speed$1.smali[40,4] Error for input '.parameter': Invalid directive

data/data/com.gmail.heagoo.apkeditor.pro/files/decoded/smali/fx/dzolcp/Speed$1.smali[41,4] Error for input '.parameter': Invalid directive

Pls anyone help :(
[Android Themes] Swapnil Soni:
You can use apk editor pro apk, I guess it works same :D

---------- Post added at 06:19 AM ---------- Previous post was at 06:19 AM ----------

I'm finding too ?
[Android Themes] Swapnil Soni:
Use xposed module called network speedmeter .. I'm using that.
[Android Themes] vinaykharayat:
Buddy will you provide me the lino of that guide to add that fancy clock
[Android Themes] luki2411:
Thanks for help but dont work i hawe secouds clock centered and work ok but this cant work no statusbar and interface fc but thanks for you time sir
[Android Themes] TouchscreenLover1:
Can u please do it for me too? If i made it i have no status Bar :eek: https://www.dropbox.com/s/vclmd7s79lrrnkw/SystemUI.apk

Greets Touchiiiii ;)

↘

✪Sent from a Fandragorastic✪★One X★

↙
[Android Themes] saxmydix:
can do it for me?

i have try but apk-multi-tool give a error.. thx in advance..
[Android Themes] luki2411:
thanks sir finaly work i hawe to replace meta-inf and and androidmanifest from clean systemui from my rom and thanks for analog clock in notifications area can you may giwe tut how do this
[Android Themes] Dzol Cp:
Some screenshot will be nice :rolleyes: :good:
[Android Themes] luki2411:
See attachments i want tp know how i can do this analog clock
[Android Themes] charlie95113:
How did you get it in blue....I want

---------- Post added at 07:58 AM ---------- Previous post was at 07:57 AM ----------

Can you plz do this one also

http://db.tt/D8nG08Vj
[Android Themes] dmunk33:
bro i hve do your guide mod my systemui..but nothink happen in my status bar..please help me..

sorry for my bad english

:good::)
[Android Themes] Dzol Cp:
Seems that you have HTC One X ? sorry bro..i don't have a HTC One framewrok-res.apk and framework-res2.apk

Done

AnalogClock

later..
[Android Themes] TouchscreenLover1:
Yeah i have an One X...

LG Ardian,alias Touchiii ;)

↘

✪Sent from a Fandragorastic✪★One X★

↙
[Android Themes] Dzol Cp:
Forget to upload bro!! :laugh:

Done. [MENTION=5148256]dmunk33[/MENTION] [MENTION=4292360]saxmydix[/MENTION]

My Devices :

SAMSUNG GALAXY SII i9100G

UNOFFICIAL CM10.1 Nightlies

XPERIA LIVE WITH WALKMAN

CM10.1 JellyVanilla EX 2.1

XPERIA X8 SHAKIRA

MiniCM10 NAA JB 4.1.2
[Android Themes] luki2411:
i know its analog clock but how you add this to my system ui beacuse its from you when you mod my system ui apk i want to know how do this
[Android Themes] Dzol Cp:
Decompile you SystemUI.apk and look inside your res/layout/status_bar_expanded_header.xml

See the BLUE HIGHLITGHT line.

that's it buddy :p

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/header" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<RelativeLayout android:enabled="false" android:id="@id/datetime" android:background="@drawable/ic_notify_button_bg" android:paddingLeft="8.0dip" android:paddingRight="8.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
[COLOR="Blue"]<AnalogClock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:id="@id/clock" android:clickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="8.0dip" android:singleLine="true" android:layout_centerVertical="true" /> [/COLOR]
<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_toRightOf="@id/clock" android:layout_centerVertical="true" />
</RelativeLayout>
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
<TextView android:textSize="11.0dip" android:textStyle="bold" android:textColor="#ff00a040" android:layout_gravity="center_vertical" android:id="@id/header_debug_info" android:padding="2.0dip" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:fontFamily="sans-serif-condensed" />
<ImageView android:id="@id/clear_all_button" android:layout_width="50.0dip" android:layout_height="50.0dip" android:src="@drawable/ic_notify_clear" android:scaleType="center" android:contentDescription="@string/accessibility_clear_all" />
<FrameLayout android:id="@id/settings_button_holder" android:layout_width="50.0dip" android:layout_height="50.0dip" android:layout_marginLeft="12.0dip">
<ImageView android:id="@id/settings_button" android:layout_width="50.0dip" android:layout_height="50.0dip" android:src="@drawable/ic_notify_settings" android:scaleType="center" android:contentDescription="@string/accessibility_desc_quick_settings" />
<ImageView android:id="@id/notification_button" android:visibility="gone" android:layout_width="50.0dip" android:layout_height="50.0dip" android:src="@drawable/ic_notifications" android:scaleType="center" android:contentDescription="@string/accessibility_notifications_button" />
</FrameLayout>
</LinearLayout>

​

​

Wanna banner like this?? CLICK HERE
[Android Themes] TouchscreenLover1:
If i ipload you those,could you make it?

LG Ardian,alias Touchiii ;)

↘

✪Sent from a Fandragorastic✪★One X★

↙
[Android Themes] SamueleCiprietti:
Hi dzolcp, I'm trying to make this mod. I have compiled and recompiled SystemUI.apk but the status bar disappear. I do not know where to insert the string in Status_bar.xml, could you help me?

This is my status_bar.xml:

Where I can put the string?

Thank you so much and sorry for my english
[Android Themes] SamueleCiprietti:
Thank you very much :laugh::good:

This is my SystemUI.apk and my framework-res.apk
[Android Themes] TouchscreenLover1:
Ok here you go,that were all files with framework in its name http://db.tt/5ix0wr1J

Thanks in Advance

LG Ardian,alias Touchiii ;)

↘

✪Sent from a Fandragorastic✪★One X★

↙
[Android Themes] glfsd:
right clock please

my View attachment SystemUI.apk

glfsd
[Android Themes] mr_itou:
can someone make it for me. please.

i'm having issue where to put it in the status bar.xml.

thanks.
[Android Themes] lagloose:
Tried several times (including signing after compile) here for Nexus S with CM10. No success. (Just no statusbar at all). Could someone do it for me also ?
[Android Themes] luki2411:
i hawe same problem folow this guide and will be ok http://xdaforums.com/showthread.php?t=1814441
[Android Themes] Dzol Cp:
I am so sorry my Brother.. can't decompile,,even i install both framework,,i just managed to edit a framework,,but no luck on systemui.. :confused:

If you managed to decompile/compile your SystemUI and you dint know which line to edit,,i attache a status_bar.xml in zip file for your reference.

Done.

Done.

Done.

Done. (Special Brightness Slider) ( TESTING MODE by ME) (PLS REPORT BACK)
[Android Themes] mr_itou:
[MENTION=4421347]dzolcp[/MENTION], thanks buddy. Does it work with cm7 GB?
[Android Themes] Dzol Cp:
Your re-mod you mean? im not sure but yes..you can try,,but please make a backup before flashing :D
[Android Themes] lagloose:
Hey dzolcp,

unfortunately still doesn't work on my Nexus S CM10. Inspected logcat and seems to be a permission problem...

D/SystemUIService( 3882): loading: class com.android.systemui.statusbar.phone.PhoneStatusBar

D/SystemUIService( 3882): running: com.android.systemui.statusbar.phone.PhoneStatusBar@40fb44c0

D/AndroidRuntime( 3882): Shutting down VM

W/dalvikvm( 3882): threadid=1: thread exiting with uncaught exception (group=0x40c4f300)

E/AndroidRuntime( 3882): FATAL EXCEPTION: main

E/AndroidRuntime( 3882): java.lang.RuntimeException: Unable to create service com.android.systemui.SystemUIService: java.lang.SecurityException: StatusBarManagerService: Neither user 10038 nor current process has android.permission.STATUS_BAR_SERVICE.

E/AndroidRuntime( 3882):	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2499)

E/AndroidRuntime( 3882):	at android.app.ActivityThread.access$1600(ActivityThread.java:142)

E/AndroidRuntime( 3882):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1290)

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

will see, what i can do but perhaps you've already an idea ?

Greetz

EDIT:

look here: http://stackoverflow.com/questions/...ce-java-lang-securityexception-on-android-per

Guess the essential sentence is:

"Notice the protectionLevel attribute, with a value of signature this means that only applications signed with the platform signature and thus part of the device's ROM can be granted access to this permission. You cannot obtain this permission from a self-signed application utilizing the SDK."
[Android Themes] Dzol Cp:
Great buddy..at least you show me some logs..okay..i try again another step later..
[Android Themes] lagloose:
Found it...

This is the solution:

-----

HINT!

- recompile the apk, then the apktool will create new folder named "build".

- open the build/apk/ , copy and replace the original META-INF folder and AndroidManifest.xml into it. (for signing)

- recompile again by using command :

Code:

apktool b SystemUI

- your modded file will be in "dist" folder.

P.S : ALWAYS REPLACE THE ORIGINAL META-INF FOLDER AND AndroidManifest.xml from the ORIGINAL APK into the MODDED APK AFTER BUILD! or else you got bootloop.

----

Thanks to 'joehanh88' from his thread here: http://xdaforums.com/showthread.php?t=2203166

Greetz
[Android Themes] Dzol Cp:
Great Hint bro!

I tell you this is the tools i use when decompile/compile

framework-res.apk / all jar files - APKTOOL

systemui.apk/settings.apk - APKMANAGER / TICKLE MY ANDROID / APK MULTI TOOLS

and after i make a deep inspection..found it!

my mistake on statusbar xml line :silly:

try this and let me know..do not push manually bro..flash via CWM..i know that you more great then me :)
[Android Themes] mr_itou:
please can you try this one.
[Android Themes] Dzol Cp:
For those who was upload your SystemUI and ask to Re-Mod it..pls consider write :

1.Device name/type

2.Android version

3.Make sure that your apk file is clean without your mod

Thanks
[Android Themes] lagloose:
Tested for some days now. Works ok, but shown speeds vary a lot. Guess, that there's something to be done in the smalis. I'm not very familiar with smali code, so i have no idea where to touch it. Maybe someone else ?...

Greetz