ADD NETWORK TRAFFIC METER IN YOUR ROMS [ NO ROOT] - Passionate Geekz

Breaking

Where you can unleash your inner geek.

Friday 30 December 2016

ADD NETWORK TRAFFIC METER IN YOUR ROMS [ NO ROOT]

Welcome everyone!!!
Here i Guide You to ADD NETWORK TRAFFIC METER IN YOUR ROMS!!

NOTE: THIS GUIDE ONLY FOR USERS KNOWS ALL STUFF ABOUT CREATING,EDITING, AND
SMALL KNOWLEGE OF SMALI,JAVA IS REQUIRED
NOTE :   JOIN OUR FACEBOOK GROUP FOR MORE THEMING GUIDES 
Requirements
apktool

notepad++
smali files [here]
network pngs [in smali files]
brain 😛
patiencE
    Firstly setup apktools on your windows after that extract framework-res.apk,Mediatek-res.apk and SystemUI.apk

    ///////////////////////////////SYSTEMUI//////////////////////////////////////////////

    PART 1

    [PART 1] VIDEO GUIDE BELOW



    Let’s start with decompiling your systemui

    locate to res/layout/status-bar.xml

    below alphaoptimized add code

    SUBSCRIBE NOW

    IT MOTIVATES ME TO MAKE MORE VIDEO GUIDES

      locate to res/values/ids  add below code
       
       locate to     res/values/dimen add below code

      IN DRAWBLE-HDPI


      ADD PNGS FOR NETWORK-INDICATOR WITH NAME [you can use any name]

       stat_sys_network_traffic_down

        stat_sys_network_traffic_up

        stat_sys_network_traffic_updown

      IN style.xml add this

                               1st recompile now and again decompile for smali codding [can be skipped]

                                  SMALI WORK
      open com/android/systemui/statusbar/policy 
      Add SMALI files here

      NOW REPLACE BELOW CODES FROM YOUR PUBLIC TO SMALI [Please see video ]
      in Network traffic.smali find below codes 
      0x7f0c014a – text size
      0x7f0c014a – multi size
      0x7f0201a6 – updown
      0x7f0201a5 – up
      0x7f0201a6 – down
      FINALLY  RECOMPILE UI




      ///////////////////////SETTINGS///////////////////////

      PART2

      [PART 2 ] VIDEO GUIDE BELOW

      NOTE:PLEASE NEGLECT  “BR  /”  IN EVERY CODE
      add a menu for network meter using below in dasboard categories of your rom   
      res/xml/dasboard_categories

      in res/values/string.xml ADD

      now create a seekbar for your network meter [layout] res/layout with name seek_bar_prefrence
      using below code

      add some id’s in res/values/ids with “false” value

      now create a menu for your speed meter using below[you can do changes according to your need]
       create new xml with name[title] network_traffic and insert below code and drop in res/xml here

      after above add some values to res/values/arrays.xml using above @array title

      AT LAST ADD SMALI FILES FOR SETTINGS

      COM/ANDROID/SETTINGS/HERE     [DEPEND UPON YOUR ANDROID:FRAGMENT MENTIONED IN DASHBOARD_CATEGORIES]

      RECOMPILE AND DECOMPILE AGAIN

                                  SMALI WORK

      in network traffic.smali replace below values with your newly generated public 

      0x7f0e0008-maskup[integers]0x7f0e0009-maskdown[“]0x7f0e000a-maskunit[“]0x7f0e000b-mask period[“]
      0x7f080aef-color reset[string]0x7f080af0-color reset message[string]
      0x7f080af9-ok[string]0x7f08024a-cancel[string]
      0x7f050062-network_traffic[xml]0x7f020071-ic_settings_backup[drawble]
      in seekbarpreferences.smali replace below values with your newly generated public 

      0x7f0f02ea-seek bar container[id]0x7f040103-seekbarprefrence[layout]0x7f0f02e8-seekbarvalue[id]0x7f0f02e7-seekBarPrefUnitsRight[id]0x7f0f02e9-seekBarPrefUnitsleft[id]

      AT LAST RECOMPILE SETTINGS AND SIGN /PUSH
      HOPE YOU LIKE GUIDE 

      CREDITS
      PARAS GUGLANI 
      TEMKSEK
      CYNOGENMOD
      XDA
      GOOGLE

      No comments:

      Post a Comment