Hi, i will learn how to add battery porcentage for Stock 4.4.2 ROM of Moto X, works with others roms too!
Screenshot:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Requires:
Code:
- SystemUI.apk deodexed
- apktool v2.0.0b9
Let's start:
1º - Decompile SystemUI.apk
2º - Download this smalis > click here
3º - Put the folder "erryy" in "SystemUI > smali > com"
4º - Go to "SystemUI > res > layout" and open "status_bar.xml"
5º - Find this line:
Code:
<include android:id="@id/signal_cluster"
6º- Below this line put this line of code:
Code:
<com.erryy.BatteryText android:textSize="12.0dip" android:textColor="#ffffffff" android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="2.0dip" />
7º - Now, find this line:
Code:
<com.android.systemui.BatteryMeterView
and replace the entire line for this line:
Code:
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="6.0dip" android:layout_height="15.0dip" android:layout_marginBottom="0.33000004dip" android:layout_marginStart="4.0dip" />
8º - Compile the SystemUI.
That's all!
Very Good!! :good:
Tenigima said:
Very Good!! :good:
Click to expand...
Click to collapse
Thanks
Nice work, but why not just install gravity box?
Sent from my Dev Edition Moto X
Schaweet said:
Nice work, but why not just install gravity box?
Sent from my Dev Edition Moto X
Click to expand...
Click to collapse
This is for we devs! We work for the users just install our custom rom and use it, we don't want that the user set a lot of things! and i don't like the xposed and gravity
https://play.google.com/store/apps/details?id=de.kroegerama.android4batpercent
It's not same as this but it works for non rooted devices.
Sent from my XT1056 using XDA Free mobile app
Related
Adding Network Speed to Status Bar
Files to be Modded:
-SystemUI.apk
Instructions:
1. Decompile your SystemUI.apk
2. Extract my speed.zip (download link below)
3. Copy folder from smali to SystemUI.apk/smali
4. Now you need to modify status_bar.xml from SystemUI.apk/res/layout/
5.Find
Code:
<com.android.systemui.statusbar.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:paddingLeft="6.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentLeft="true" />
6.Add below this
Code:
<LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true">
<in.jmkl.dcsms.statusbargreper.DataTrafik android:layout_gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
7.Recompile SystemUI.apk and add to zip
Credits:
-petrukgrinder Original Link
-google
-xda
Downloads:
Speed.zip
Screens:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
i think this is dcsms mod
cekidot
http://forum.xda-developers.com/showthread.php?t=1877151
Minions_Army said:
i think this is dcsms mod
cekidot
http://forum.xda-developers.com/showthread.php?t=1877151
Click to expand...
Click to collapse
no bro check credits for original link by the way it doesnt use statusbar greeper it is smali files edits bro
will it work for stock jb
zeyaan said:
will it work for stock jb
Click to expand...
Click to collapse
dont think so bro never tried!!
yo can say this tutorial for cm7, can u try in this rom?
http://forum.xda-developers.com/showthread.php?t=2224101
because i can't find folder smali ini SystemUI.apk
can you check..
thank for help
:laugh:
zhu_zhu said:
yo can say this tutorial for cm7, can u try in this rom?
http://forum.xda-developers.com/showthread.php?t=2224101
because i can't find folder smali ini SystemUI.apk
can you check..
thank for help
Click to expand...
Click to collapse
am kinda busy in other projects and theming works bro as soon as possible i ll let u know!!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
How to install
Download zip
Push it on SDCARD
Run recovery
Install from zip
Click to expand...
Click to collapse
Awesome work :thumbup:
Sent from my HTCSensation
MaratabHashmi said:
Awesome work :thumbup:
Sent from my HTCSensation
Click to expand...
Click to collapse
thanks
man thats beautiful thumbs up..
good work...:good:
want to go back to my old boot animation
Hi,
i have been using it from the last 3 days and now i want to go back to my old bootanimation whereas while doing it from Venom tweaks it is not happening.
can you please help me how can i change it now.
Thanks
Ahmad
Hi,<br />
<br />
i have been using it from the last 3 days and now i want to go back to my old bootanimation whereas while doing it from Venom tweaks it is not happening.<br />
<br />
can you please help me how can i change it now.<br />
<br />
<br />
Thanks<br />
Ahmad
Click to expand...
Click to collapse
Using some kind of root explorer, move original bootanimation.zip to -
system/customize/resource
And set permissions to rw-r--r-- then reboot
Can you please make an inverted (dark) Version?
menfisher said:
Can you please make an inverted (dark) Version?
Click to expand...
Click to collapse
Yes, but please wait.
I making new version. Soon
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
This mod allows you view over 1070 battery type and counting from various users. With a single click the battery will download and set itself on to your status bar.
But as stated don't worry about you storage space being used by thousands of useless icons as they are all on my server and only downloads the type you use.
1.Install app.
2.Decompile SystemUI.apk and navigate to: res/layout/status_bar.xml
3. Look for:
Code:
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.33000004dip" android:layout_marginStart="5.0dip" />
Change to:
Code:
<com.android.systemui.statusbar.policy.MinitBattery android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.33000004dip" android:layout_marginStart="5.0dip" />
4.Download the mod files and place them in smali/com/android/systemui/statusbar/policy folder.
5.Recompile and set permissions.
You are free to use and bake this mod and app into your rom provided you give full and proper credits and you provide a link to this thread. Also you cannot alter in any way without permission from me first.
This is not a open source project and I share with you as is. All codes belong to and are copyright to me.
My wife and kids for giving up their time with me so I can do this. Love you guys.
@pas2001 for batterys, renaming icons and testing.
@*wii360* for renaming batterys and testing.
@xxmrgreenxx for renaming batterys.
@NadMaj for his battery archive.
Disclaimer: Download at your own risk. I am not responsible for any damage/data loss etc from flashing this framework.
XDA:DevDB Information
3Minit Battery Mod 4.4.2, App for all devices (see above for details)
Contributors
gharrington, pas2001
Version Information
Status: Beta
Current Beta Version: 0.1
Created 2014-07-02
Last Updated 2014-07-02
What is different between this thread and this one?? @gharrington
I have a Sprint GS5, which should I use?
How to add Contributors Credits options of Cyanogenmod ROM in other ROMs
Hello good day XDA
Tested this on MT6577 & MT6589 device running Jellybean. I think this guide will work on other's too.
REQUIREMENT:
- BRAIN
- Patient
- experience
- Know how to decompile/recompiling Apk
- notepad++
- APKTOOL 2 ++
Ok Let's Start
STEP 1
First decompile your Settings.apk.
STEP 2
Merge the files in Settings.apk
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
STEP 3
Now replace the exiting png named "contributors_cloud.png" present in "assets" folder with your png. But make sure the name of png should be same i.e "contributors_cloud"
STEP 4
Now open "device_info_settings.xml" Or Where ever You Want present in Settings.apk/res/xml and add this code.
Code:
<PreferenceScreen android:title="@string/rom_thanks" android:key="rom_thanks" android:summary="@string/rom_thanks_summary" android:fragment="com.android.settings.gurpreet.ContributorsCloud" />
STEP 5
Now open the "strings.xml" present in Settings.apk/res/values and add these lines above </resources>
Code:
<string name="rom_thanks">Special Thanks To</string>
<string name="rom_thanks_summary">Touch here to see the names</string>
STEP 6
- Compile
- Sign it
Special Thanks to :-
Code:
Cyanogenmod
Gurpreet Singh
Note !
You can change the background colour from gray to any by editing this "-0xbbbbbc" in ContributorsCloud.smali
HAPPY MODDING
SCREENSHOTS
Reserved
nice sir...thx for guide
Thanks you.
D2Y aka E said:
nice sir...thx for guide
Click to expand...
Click to collapse
Carlos Arriaga said:
Thanks you.
Click to expand...
Click to collapse
Your Welcome HIT THANKS
Hello guys…
This guide is for developers who are still developing Android 2.3 GingerBread devices. Before adding, make sure your ROM has CM7 Screenshot app.
Let's start!
1. Decomplie SystemUI.apk
2.Unzip the smali folder in smali.zip and copy the smali folder to decomplied smali folder.
3.Open the layout xml which you want to add button, and add this line according to your layout:
<com.vesa.actionbar.BackButton android:layout_height="32.0dip" android:layout_width="fill_parent" android:text="@string/meui_ssbtn" android:background="#00000000" />
4.Open res/values/strings.xml, and before </resources>
add this line:
<string name="meui_ssbtn">Take Screenshot</string>
5. (Additional) If you want Simplified Chinese support, open res/values-zh-rCN/strings.xml, before </resources>
Add this line:
<string name="meui_ssbtn">屏幕截图</string>
6.Recompile SystemUI, sign(if you have patched signature) and put it in system.
Sorry for my English…
Smali comes from:
https://forum.xda-developers.com/an...buttons-titlebar-height-t2825667/post54349163
Thanks!
Screenshot:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Attachment:
https://mega.nz/#!xYMi1ZpY!vSWC9pXeA6VTt1Ie-XVDIEAPM-elZoW1u7r60AJDwcM
Key to link: !vSWC9pXeA6VTt1Ie-XVDIEAPM-elZoW1u7r60AJDwcM
(If your ROM doesn't have screenshot support, put the apk into /system/app and set permission 0644, put the screenshot file into /system/bin and set permission 0755. )
Created: 2017-3-4
Last updated: 2017-3-4
如果您的母语是中文,前往:http://tieba.baidu.com/p/4649407787
Sent from my Honor 4C 『天生急性子』
Reserved.
Sent from my Honor 4C 『天生急性子』
If this guide helps you, please click thanks button…
Sent from my HUAWEI CHM-TL00H using XDA Labs