FORUMS

Galaxy S6 & Edge get €100 Price Cut—New Models Incoming

Samsung has dropped the price of both the Galaxy S6 and S6 Edge by … more

How To Port Fully Featured Sony Xperia Z4 Camera

Xperia Z4’s hardware may not impress, but its software is definitely … more

Experimental TWRP Available For Moto G 2015

XDA Senior Member squid2 has posted experimental builds of TWRP for the Moto G … more

Sunday Debate: How Can We Get a No-Compromise Phone?

Join us in a fun Sunday Debate on Compromises. Come with your opinions and … more

[help] port speed net meter for kitkat

116 posts
Thanks Meter: 86
 
By ramon20, Senior Member on 30th April 2014, 04:16 AM
Post Reply Subscribe to Thread Email Thread
Hi, i'm trying to port a speed net meter to work in my stock SystemUI for moto X, because the source is not compatible with the android 4.4.2. I don't know smaler and i want your help.

This is the source of the speed net meter:

SystemUI>res>layout/status_bar.xml
Code:
<com.android.systemui.statusbar.policy.Traffic android:textAppearance="@style/TextAppearance.StatusBar.Traffic" android:gravity="left|center" android:id="@id/traffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
SystemUI>res>values/ids.xml
Code:
<item type="id" name="traffic">false</item>
SystemUI>res/values/styles.xml
Code:
    <style name="TextAppearance.StatusBar.Traffic" parent="@style/TextAppearance.StatusBar.Clock">
        <item name="android:textSize">14.0dip</item>
        <item name="android:textStyle">normal</item>
        <item name="android:textColor">#ffffffff</item>
        <item name="android:textAllCaps">false</item>
    </style>
PS: i'm using apktool v2.0.0b9.

In the "ATTACHED FILES" have:
- the original smalis of the speed meter
- the smalis that i have make a part of the port
- the framework-res of my rom
- the SystemUI of my rom
Attached Files
File Type: rar original smalis.rar - [Click for QR Code] (5.3 KB, 30 views)
File Type: rar part of the port.rar - [Click for QR Code] (5.4 KB, 16 views)
File Type: apk framework-res.apk - [Click for QR Code] (7.08 MB, 8 views)
File Type: apk SystemUI.apk - [Click for QR Code] (1.38 MB, 15 views)
 
 
30th April 2014, 04:33 AM |#2  
Senior Member
Thanks Meter: 636
 
Donate to Me
More
Unless you're dead set on learning smali coding, you can just install the Xposed Framework and this module: http://repo.xposed.info/module/tw.fa...speedindicator
30th April 2014, 04:43 AM |#3  
ramon20's Avatar
OP Senior Member
Flag Teresina-PI
Thanks Meter: 86
 
More
Quote:
Originally Posted by es0tericcha0s

Unless you're dead set on learning smali coding, you can just install the Xposed Framework and this module:

thanks, but i don't want use xposed!
30th April 2014, 02:37 PM |#4  
ramon20's Avatar
OP Senior Member
Flag Teresina-PI
Thanks Meter: 86
 
More
Help :c
1st May 2014, 03:29 PM |#5  
ramon20's Avatar
OP Senior Member
Flag Teresina-PI
Thanks Meter: 86
 
More
moderators, close the thread! resolved!
1st May 2014, 04:41 PM |#6  
kermage's Avatar
Senior Member
Flag Iligan City
Thanks Meter: 173
 
Donate to Me
More
Quote:
Originally Posted by ramon20

moderators, close the thread! resolved!

mind mentioning first what was wrong? could be helpful for others having the same problem..
1st May 2014, 06:35 PM |#7  
ramon20's Avatar
OP Senior Member
Flag Teresina-PI
Thanks Meter: 86
 
More
Quote:
Originally Posted by kermage

mind mentioning first what was wrong? could be helpful for others having the same problem..

was missing modify some parts of the code, and I do not know, I found the same smalis elsewhere, and they were already ported
1st May 2014, 07:43 PM |#8  
kermage's Avatar
Senior Member
Flag Iligan City
Thanks Meter: 173
 
Donate to Me
More
Quote:
Originally Posted by ramon20

was missing modify some parts of the code, and I do not know, I found the same smalis elsewhere, and they were already ported

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes