[GUIDE] [MOD] [LP/MM] [UPDATE :- 27.04.2016] How To Add Power Button To Lock Screen - Sony Cross-Device Development Themes and Apps

Hello friends
Here is my latest simple tutorial for adding a power button in lock screen. With this you can acces ur power menu through Lock Screen.. Here you go ...
Things Needed :-
Latest Apktool
Notepad ++
PC
Deodexed SystemUI ( LP/MM )
Decompile SystemUI.apk
1) Go to res / values / ids.xml and add this line to last
<item type="id" name="lock">false</item>
Click to expand...
Click to collapse
Save it and close
2) Go to res / values / string.xml and add this line to last
<string name="accessibility_lock">Lock</string>
Click to expand...
Click to collapse
Save it and close
3) Go to res / layout / keyguard_bottom_area.xml and add this line before the last line
<com.android.systemui.statusbar.policy.KeyButtonView android:layout_gravity="bottom|center" android:id="@id/lock" android:layout_width="@dimen/keyguard_affordance_width" android:layout_height="@dimen/keyguard_affordance_height" android:src="@drawable/ic_sysbar_lock" android:scaleType="center" android:tint="#ffffffff" android:contentDescription="@string/accessibility_lock" systemui:keyCode="26" />
Click to expand...
Click to collapse
So it should be like this
<com.android.systemui.statusbar.policy.KeyButtonView android:layout_gravity="bottom|center" android:id="@id/lock" android:layout_width="@dimen/keyguard_affordance_width" android:layout_height="@dimen/keyguard_affordance_height" android:src="@drawable/ic_sysbar_lock" android:scaleType="center" android:tint="#ffffffff" android:contentDescription="@string/accessibility_lock" systemui:keyCode="26" />
</com.android.systemui.statusbar.phone.KeyguardBottomAreaView>
Click to expand...
Click to collapse
Save it and close
4) Move the attached png to res / drawable-hdpi-v4 or drawable-hdpi ( HERE )
Thats it. Done..
Recompile SystemUI and replace it by yours and enjoy...

No screen.??

johnsamte said:
No screen.??
Click to expand...
Click to collapse
Here u go. U can reduce the size of the png if u want...

Thank you. Do you know how to add power button menu to navi bar ?

devilmaycry2020 said:
Thank you. Do you know how to add power button menu to navi bar ?
Click to expand...
Click to collapse
There is one guide my friend.. U can get mine or spuri78..

Related

[GUIDE] Brightness Slider Guide Stock GB CM7/CM9/CM11 - Rewritten Easy To Follow

Brightness Slider Guide
For CM11 See My Guide - Here​
I have re-written the guide by @evanlocked with his permission as some people had trouble following his guide so I'll try to make it simple to follow steps
Full credit goes to him for the original guide and steps - All I have done is present it and re-write it in a different way to make it more understandable and iv also added steps for different layouts depending on what rom you are using
The original thread can be found
http://forum.xda-developers.com/showthread.php?t=2152370
1 - Download the attachment and unzip the folder
2 - Decompile your SystemUI.apk with apktool
3 - Open the downloaded attachment and copy the files within to the following locations to your decompiled SystemUI folder
Note if you dont have the folder for the smali eg lidroid just create it
smali\com\lidroid\systemui\quickpanel
BrightnessSlider$BrightnessSettingsObserver.smali
BrightnessSlider.smali
smali\com\android\systemui\statusbar
SlideBrightness$1.smali
SlideBrightness$2.smali
SlideBrightness.smali
smali\com\android\systemui\statusbar\quickpanel
BrightnessSettingsView$1.smali
BrightnessSettingsView$AutomaticObserver.smali
BrightnessSettingsView$BrightnessObserver.smali
res\drawable
brightness_seekbar.xml
res\layout
qp_brightness.xml
quickpanel_brightness_settings.xml
res\drawable-ldpi (or -mdpi and so on depending on your phone res)
brightness_bg.png
ic_brightness.png
quickpanel_brightness_icon.png
4 - Open res/values/strings.xml with notepad++
above </resources> place the following
Code:
<string name="brightness_settings_title" />
<string name="brightness_settings_automatic" />
5 - Open res/values/ids.xml with notepad++
above </resources> place the following (note cm9 dont add <item type="id" name="brightness">false</item> as its already defined)
Code:
<item type="id" name="title">false</item>
<item type="id" name="brightness">false</item>
<item type="id" name="automatic">false</item>
6 - Open res/layout/status_bar_expanded.xml
This step will vary depending on rom so I will give a few examples
Example 1 - Stock Gingerbread (deodexed)
Under
Code:
<com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="6.0dip">
Place
Code:
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<include layout="@layout/qp_brightness" />
</LinearLayout>
Example 2 - CM7
If you have a header you can place it under it like this (note your header name maybe different from StatusBarJellyHeaderView)
Under
Code:
<com.android.systemui.statusbar.StatusBarJellyHeaderView android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:textSize="14.0sp" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:paddingLeft="15.0dip" android:paddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="@string/status_bar_clear_all_button" style="StatusBar.ClearButton" />
Place
Code:
<include layout="@layout/qp_brightness" />
Or if you dont have a header or you dont want it within the header you can place it under the power widget
Under
Code:
<com.android.systemui.statusbar.powerwidget.PowerWidget android:id="@id/exp_power_stat" android:layout_width="fill_parent" android:layout_height="wrap_content" />
Place
Code:
<include layout="@layout/qp_brightness" />
Example 3 - CM9
Above
Code:
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
Place
Code:
<LinearLayout android:orientation="horizontal" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="wrap_content">
<include layout="@layout/qp_brightness" />
</LinearLayout>
<View android:background="@drawable/status_bar_hr" android:layout_width="fill_parent" android:layout_height="2.0dip" />
7 - This step is optional and is for the icon next to the brightness slider
open res/layout/qp_brightness.xml
Look at
Code:
<ImageView android:paddingLeft="3.0px" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_brightness" />
This is the line for the image - change it how you like if you want to
note - to change the icon just replace ic_brightness.png that you placed in res/drawable-ldpi (or mdpi and so on) with one of your choice but make sure the filename remains ic_brightness.png
8 - Recompile and sign - if you are using cm7/9 sign the apk with a platform key using zip signer (playstore)
9 - Put in a flashable zip and flash in cwm with system mounted
credits
evanlocked
Will follow this one
EDIT:
thanks @marcussmith2626
workin perfectly
no force close or what
SystemUI FC'd on my phone..
Mind you, I am using a Sony Xperia Z running 4.3 and this thread is meant for GB and is in a Samsung forum so I could just be bringing it upon myself...lol
Ticklefish said:
SystemUI FC'd on my phone..
Mind you, I am using a Sony Xperia Z running 4.3 and this thread is meant for GB and is in a Samsung forum so I could just be bringing it upon myself...lol
Click to expand...
Click to collapse
I dont have a phone running 4.3 to test it on - iv tested on stock gb aosp gb cm7 and cm9
I do know it works on non samsung phones as someone else asked me about a bug in the brightness returning to a set level on restart but it turns out it was a bug to do with how his phone manages brightness
I dont know if the smali works on 4.3 but im sure if you had cm11 you have a brightness slider anyway if you enable in cyanogenmod settings and then swipe across the statusbar although it may not be a visable slider
it maybe just a case you need to arrange the layout for including qp_brightness in a different way to stop the force closing but Im not able to test this
you can try putting it where it is in the cm9 layout if your status_bar_expanded looks similar or just find somewhere else to place it
feel free to upload an unmodified systemui.apk and your framework-res and I will do it and you can see if it works but since iv not done it on a 4.3 phone Im not sure if it will work
marcussmith2626 said:
I dont have a phone running 4.3 to test it on - iv tested on stock gb aosp gb cm7 and cm9
I do know it works on non samsung phones as someone else asked me about a bug in the brightness returning to a set level on restart but it turns out it was a bug to do with how his phone manages brightness
I dont know if the smali works on 4.3 but im sure if you had cm11 you have a brightness slider anyway if you enable in cyanogenmod settings and then swipe across the statusbar although it may not be a visable slider
it maybe just a case you need to arrange the layout for including qp_brightness in a different way to stop the force closing but Im not able to test this
you can try putting it where it is in the cm9 layout if your status_bar_expanded looks similar or just find somewhere else to place it
feel free to upload an unmodified systemui.apk and your framework-res and I will do it and you can see if it works but since iv not done it on a 4.3 phone Im not sure if it will work
Click to expand...
Click to collapse
Oh, I've got a brightness bar already. I've pinched one from statusbargreper but it's not the best. I was hoping to use this one so that the brightness changes instantly (with the statusbargreper smali, the brightness changes when you take your finger off the screen).
I'm uploading my framework-res.apk, stock SystemUI.apk and also the SystemUI.apk I made with this mod. Just in case..
https://www.mediafire.com/?hq98l4epd1qhs23
Ticklefish said:
Oh, I've got a brightness bar already. I've pinched one from statusbargreper but it's not the best. I was hoping to use this one so that the brightness changes instantly (with the statusbargreper smali, the brightness changes when you take your finger off the screen).
I'm uploading my framework-res.apk, stock SystemUI.apk and also the SystemUI.apk I made with this mod. Just in case..
https://www.mediafire.com/?hq98l4epd1qhs23
Click to expand...
Click to collapse
iv done some test SystemUI.apk for you
in each one all iv done is move the layout of qp_brightness around so hopefully one of the layouts wont cause a force close
let me know if any work and I can add it to the guide
just rename the apks SystemUI.apk and flash them with a flashable zip - im sure you know already
http://d-h.st/Rdw
marcussmith2626 said:
iv done some test SystemUI.apk for you
in each one all iv done is move the layout of qp_brightness around so hopefully one of the layouts wont cause a force close
let me know if any work and I can add it to the guide
just rename the apks SystemUI.apk and flash them with a flashable zip - im sure you know already
http://d-h.st/Rdw
Click to expand...
Click to collapse
Thanks, I'll have to check them out tomorrow.
Sent from my C6603 using Tapatalk
Easy to follow.Thanx
Sent from my GT-S5360 using Tapatalk 2
How to fix this layout problem ?
Sent from my GT-S5360 using xda app-developers app
GSculerlor said:
How to fix this layout problem ?
Sent from my GT-S5360 using xda app-developers app
Click to expand...
Click to collapse
See san122 guide
GSculerlor said:
How to fix this layout problem ?
Sent from my GT-S5360 using xda app-developers app
Click to expand...
Click to collapse
the png on left is already explained in step 7
the colour of the slider itself is to do with your framework-res in progress_horizontal.xml
the slider icon on the bar is also to do with your framework but I dont know what png it is - I think its a .9.png somewhere - you will have to look through as the names may vary with rom
Mranggapo said:
See san122 guide
Click to expand...
Click to collapse
Thanks for an excellent guide!
marcussmith2626 said:
iv done some test SystemUI.apk for you
in each one all iv done is move the layout of qp_brightness around so hopefully one of the layouts wont cause a force close
let me know if any work and I can add it to the guide
just rename the apks SystemUI.apk and flash them with a flashable zip - im sure you know already
http://d-h.st/Rdw
Click to expand...
Click to collapse
FC's on all four, I'm afraid. I don't think this is a layout issue, it's probably a smali/4.3 thing. Which is a bugger.
Ticklefish said:
FC's on all four, I'm afraid. I don't think this is a layout issue, it's probably a smali/4.3 thing. Which is a bugger.
Click to expand...
Click to collapse
yeah it may well be - if I ever get a 4.3/4.4 device in the future I can look at it properly
Not that it's got anything with your topic to do, but I thought I'd might ask anyway.
I followed this guide to create another clear button:
http://forum.xda-developers.com/showthread.php?t=1953934
Which works good, but I would like the clear button to be aligned to the right on the row.
Is there any possibilities to that?
richard.elgh said:
Not that it's got anything with your topic to do, but I thought I'd might ask anyway.
I followed this guide to create another clear button:
http://forum.xda-developers.com/showthread.php?t=1953934
Which works good, but I would like the clear button to be aligned to the right on the row.
Is there any possibilities to that?
Click to expand...
Click to collapse
Iv used that mod in my status bar - you can try changing the gravity of the linear layout
here is link to my status bar if you want to compare
http://forum.xda-developers.com/showthread.php?p=49468255
marcussmith2626 said:
Iv used that mod in my status bar - you can try changing the gravity of the linear layout
here is link to my status bar if you want to compare
http://forum.xda-developers.com/showthread.php?p=49468255
Click to expand...
Click to collapse
It wasn't as easy as this though: android:gravity="right"
richard.elgh said:
It wasn't as easy as this though: android:gravity="right"
Click to expand...
Click to collapse
that will only work if its in its own layout else everything in that layout will go to the right
you could also try to increase its padding on one side which might shift it over
Code:
android:paddingLeft="8.0dip"
and I think theres also a next to command which will put it next to a certain @ID
for example
Code:
android:layout_toRightOf="@id/date"
which will put it to the right hand side of the date
you will just have to play around with the layout to get it how you want
marcussmith2626 said:
that will only work if its in its own layout else everything in that layout will go to the right
you could also try to increase its padding on one side which might shift it over
Code:
android:paddingLeft="8.0dip"
and I think theres also a next to command which will put it next to a certain @ID
for example
Code:
android:layout_toRightOf="@id/date"
which will put it to the right hand side of the date
you will just have to play around with the layout to get it how you want
Click to expand...
Click to collapse
This is my command:
<TextView android:textColor="@android:color/transparent" android:layout_gravity="center_vertical"" android:id="@id/clear_all_button" androidaddingLeft="15.0dip" androidaddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="@string/status_bar_clear_all_button" style="@style/Awesome.Button" />
Just decreasing the paddingRight didn't make a change, but I can try changing the paddingLeft tomorrow.
Thanks.
richard.elgh said:
This is my command:
<TextView android:textColor="@android:color/transparent" android:layout_gravity="center_vertical"" android:id="@id/clear_all_button" androidaddingLeft="15.0dip" androidaddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="@string/status_bar_clear_all_button" style="@style/Awesome.Button" />
Just decreasing the paddingRight didn't make a change, but I can try changing the paddingLeft tomorrow.
Thanks.
Click to expand...
Click to collapse
this is my layout for comparison - you can see what it looks like in the screenshot of the status bar thread I gave in last post or in my signature
Code:
<LinearLayout android:orientation="vertical" android:id="@id/power_and_carrier" android:background="@drawable/title_bar_portrait" android:paddingTop="3.0dip" android:paddingRight="3.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.powerwidget.PowerWidget android:id="@id/exp_power_stat" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/carrier_label_layout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.StatusBarJellyHeaderView android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:textSize="14.0sp" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:paddingLeft="15.0dip" android:paddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="@string/status_bar_clear_all_button" style="StatusBar.ClearButton" />
<include layout="@layout/qp_brightness" />
</LinearLayout>
</LinearLayout>

[GUIDE]How to Animate PNGS

THIS IS A SAMPLE ANIMATION:
https://www.youtube.com/watch?v=nCBdxxLtgCg&feature=youtu.be
I cannot provide the pngs I used on that animation because I mod it long time ago. I already lost the files.
Click to expand...
Click to collapse
STEPS:
1.) Download animate.zip. Extract and put animate.xml in drawable folder.
2.) Create png/images that will be animated, (like bootanim, .gif)
3.) Put in drawable-ldpi. (or mdpi, hdpi, depends on your device)
4.) Open animate.xml
5.) Duplicate and edit the lines depending on how many pngs will you animate.
Code:
<item android:duration="1000" android:drawable= [user=3944923]@drawab[/user]le/YourSamplePng1" />
<item android:duration="1000" android:drawable= [user=3944923]@drawab[/user]le/YourSamplePng2" />
<item android:duration="1000" android:drawable= [user=3944923]@drawab[/user]le/YourSamplePng3" />
(NOTE: YourSamplePng must be the name of your png that you will animate.)
(PS: As you can see inside animate.xml, there's android: oneshot="false". )
false = infinitely show the png you list/looping.
true = show the png you list and will end on the bottom/last <item png you list.
PPS: 1000 duration = 1 second. (1000 milliseconds)
6.) Save.
7.) How to use? go to ImageView or android:background lines and put the @drawable/animate.
CREDITS:
Sniper Killer
Macmoon
Lenox devs
Potato Inc
Click to expand...
Click to collapse
Nice one sir !
Interesting
Reserved.
tentenponce said:
Nice one sir !
Click to expand...
Click to collapse
Thanks sir
Charging battery lockscreen
Great work..
This can be done on charging battery icon on lockscreen??
M47H!AS said:
Great work..
This can be done on charging battery icon on lockscreen??
Click to expand...
Click to collapse
You can try sir. :good:

[MOD][LMY47O][5.1] Ambient Display + Extended Power Menu + Center Clock + Battery %

Hey Guys here find you the flashable zip for ambient display mod and extended power menu for Nexus 4 with stock 5.1 LMY47O Rom.
Added Ambient Display + Extended Power Menu + Center Clock + Battery % mod
Update Ambient Display + Extended Power Menu + Center Clock + Battery % mod v.2.0 with doze pulse duration visible value to 12 seconds
Added Ambient Display mod
Added Ambient Display + Extended Power Menu + Center Clock mod
Added Ambient Display + Extended Power Menu + Battery % mod
Added Ambient Display + Extended Power Menu + Battery % mod + 5 Navbar Buttons + Added day next to Clock and format 12h/24h with italic font style
Added Ambient Display + Extended Power Menu + Center Clock mod with fix overlapping + Battery % mod + 5 Navbar Buttons + Added day next to Clock and format 12h/24h with italic font style
Added All Mods files
Root needed.
Tested on my Nexus 4.
Regards
Thanks to
Ticklefish for center clock mod. You can take a look here
http://forum.xda-developers.com/general/xda-university/xml-101-xml-modding-easy-t2929816
raffaele88 for ambient display mod. You can take a look here
http://forum.xda-developers.com/goo.../how-to-add-ambient-display-settings-t2942838
namin78 from 4pda.ru for edit PhoneStatusBar.smali for hide clock on lockscreen after center clock with best method by Ticklefish. You can take a look here
http://forum.xda-developers.com/general/xda-university/xml-101-xml-modding-easy-t2929816/page33
garynych for for battery % mod. You can take a look here
http://forum.xda-developers.com/goo...-center-clock-battery-charge-percent-t3003413
and Planters76. You can take a look here
http://forum.xda-developers.com/google-nexus-5/themes-apps/mod-pm-battery-t3082716
Spannaa for AM/PM mod. You can take a look here
http://forum.xda-developers.com/showthread.php?t=2713812
pandza88 for Add/Reorder buttons in Navigation Bar. You can take a look here
http://forum.xda-developers.com/goo...guide-how-to-edit-mod-navigation-bar-t2973512
If You have got stuck on boot loop then do this.
METHOD 1
1. You can first try to flash Revert to Stock 5.1.zip file.
2. Reboot your phone..
3. Go to recovery and flash one of my mod.
4. Reboot your phone and enjoy
METHOD 2
1. You can try to flash first only ambient display mod.
2. Reboot your phone and You should have got ambient display mod installed.
3. After install ambient display mod go to recovery and flash ambient display and power menu mod.
4. Reboot your phone and You should have got ambient display and power menu mod installed.
5. Go to recovery again and flash ambient display-power menu-center clock mod that I added now.
6. Reboot your phone and You should have got ambient display-power menu-center clock mod installed.
7. Last go to recovery again and last flash ambient display-power menu-center clock-battery percent mod.
8. Reboot your phone and enjoy
Tutorial
How add Ambient Display mod.
1. Decompile SystemUI.apk with AdvancedApkTool that You can find here:
http://forum.xda-developers.com/showthread.php?t=2639400
You must use this file for decompile and recompile android 5.1 rom files
http://forum.xda-developers.com/showpost.php?p=59436776&postcount=2812
You just put inside AdvancedApkTool/1-BDFreak/ folder and rename it to apktool.jar (delete old apktool.jar file v. 2.0.0-RC3)
Remember first to install framework-res.apk file and to add your file inside AdvancedApkTool/2-In/ folder
2. Navigate to systemui/res/values/bools.xml and open it with Notepad++ and change this line:
from
PHP:
<bool name="doze_display_state_supported">false</bool>
<bool name="doze_pulse_on_pick_up">false</bool>
to
PHP:
<bool name="doze_display_state_supported">true</bool>
<bool name="doze_pulse_on_pick_up">true</bool>
3. Save and recompile SystemUI.apk
4. Decompile framework-res.apk
5. Navigate to framework-res/res/values/strings.xml and open it with notepad++ and change this line:
from
PHP:
<string name="config_dozeComponent"></string>
to
PHP:
<string name="config_dozeComponent">com.android.systemui/com.android.systemui.doze.DozeService</string>
6. Save and close
7. Now in the same folder open bools.xml and with Notepad++ and change this line:
from
PHP:
<bool name="config_dozeAfterScreenOff">false</bool>
<bool name="config_powerDecoupleInteractiveModeFromDisplay">false</bool>
to
PHP:
<bool name="config_dozeAfterScreenOff">true</bool>
<bool name="config_powerDecoupleInteractiveModeFromDisplay">true</bool>
Save it and close
8. Now in the same folder open integers.xml with notepad++ and change this line:
from
PHP:
<integer name="config_screenBrightnessDoze">1</integer>
to
PHP:
<integer name="config_screenBrightnessDoze">17</integer>
9. Save and recompile framework-res.apk
10. Make a backup of your SystemUI.apk and Framework-res.apk files.
11. Create a zip flashable with ZIPme app that You can find here:
https://play.google.com/store/apps/details?id=zip.me&hl=it
Add Aeroplane mode and mute-vibrate-ringer mode to the Power Menu
1. Decompile framework-res.apk
2. Navigate to framework-res/res/values/arrays.xml and open it with notepad++ and change this line:
from
PHP:
<string-array name="config_globalActionsList">
<item>power</item>
<item>bugreport</item>
<item>users</item>
to
PHP:
<string-array name="config_globalActionsList">
<item>power</item>
<item>airplane</item>
<item>bugreport</item>
<item>silent</item>
<item>users</item>
3. Save and recompile framework-res.apk
Add center clock
1. Decompile SystemUI.apk
2. Navigate to systemui/res/layout/status_bar.xml open it with notepad++ and add this line:
PHP:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/notification_icon_area_inner" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
immediatly to follow after this line:
PHP:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
and delete this line:
PHP:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="7.0dip" />
immediatly to follow after this line:
PHP:
<include layout="@layout/system_icons" />
3. Save and close
4. Navigate to systemui/res/values/dimens.xml open it with notepad++ and change this line:
from
PHP:
<dimen name="keyguard_carrier_text_margin">16.0dip</dimen>
to
PHP:
<dimen name="keyguard_carrier_text_margin">156.0dip</dimen>
5. Save and recompile SystemUI.apk
How add Battery Percent
1. Decompile SystemUI.apk
2. Navigate to systemui/smali/com/ and put inside erryy folder (this folder is inside source.zip file)
3. Navigate to systemui/res/layout/keyguard_status_bar.xml open it with notepad++ and add this line:
PHP:
<com.erryy.BatteryText android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="@dimen/battery_level_text_size" android:gravity="start|center" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
immediatly to follow after this line:
PHP:
<include layout="@layout/system_icons" />
</FrameLayout>
delete this line:
PHP:
<TextView android:textSize="@dimen/battery_level_text_size" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/battery_level" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:importantForAccessibility="noHideDescendants" android:paddingEnd="@dimen/battery_level_padding_end" android:layout_marginStart="@dimen/header_battery_margin_keyguard" />
and add this line:
PHP:
<TextView android:textSize="@dimen/battery_level_text_size" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/battery_level" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip" android:importantForAccessibility="noHideDescendants" android:paddingEnd="@dimen/battery_level_padding_end" android:layout_marginStart="@dimen/header_battery_margin_keyguard" />
4. Save and close
5. Now in the same folder open status_bar.xml open it with notepad++ and add this line:
PHP:
<com.erryy.BatteryText android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="@dimen/battery_level_text_size" android:gravity="start|center" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
immediatly to follow after this line:
PHP:
<include layout="@layout/system_icons" />
6. Save and close
7. Now in the same folder open status_bar_expanded_header.xml open it with notepad++ and add this line:
PHP:
<com.erryy.BatteryText android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="@dimen/battery_level_text_size" android:gravity="start|center" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
immediatly to follow after this line:
PHP:
<include layout="@layout/system_icons" />
</FrameLayout>
delete this line:
PHP:
<TextView android:textSize="@dimen/battery_level_text_size" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/battery_level" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:importantForAccessibility="noHideDescendants" android:paddingEnd="@dimen/battery_level_padding_end" android:layout_marginStart="@dimen/header_battery_margin_keyguard" />
and add this line:
PHP:
<TextView android:textSize="@dimen/battery_level_text_size" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/battery_level" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip" android:importantForAccessibility="noHideDescendants" android:paddingEnd="@dimen/battery_level_padding_end" android:layout_marginStart="@dimen/header_battery_margin_keyguard" />
8. Save and recompile SystemUI.apk
Do You like that I do? If You want to show your appreciation then You can donate HERE or click on Donate to Me.
Every donation is really appreciated.
Thanks to everyone
Bootloop after Optimisation of applications
numa0001 said:
Bootloop after Optimisation of applications
Click to expand...
Click to collapse
Same for me..
+1 Me too,3 times i flashed always got bootloop
Sorry Guys..but it does work for me.. I check many times before to post it. I suggest you to try to flash my mod with TWRP 2.8.5.2 Recovery.
Sent from my Nexus 4 using XDA Free mobile app
tonysansone said:
Sorry Guys..but it does work for me.. I check many times before to post it. I suggest you to try to flash my mod with TWRP 2.8.5.2 Recovery.
Sent from my Nexus 4 using XDA Free mobile app
Click to expand...
Click to collapse
I use that 2.8.5.2 TWRP,but still bootloop sir... don't know why..
ivelramona said:
I use that 2.8.5.2 TWRP,but still bootloop sir... don't know why..
Click to expand...
Click to collapse
Hey mate try this and report please!
Regards
tonysansone said:
Hey mate try this and report please!
Regards
Click to expand...
Click to collapse
Sory bro,but still same here.. Still got bootloop...
But thanks for your work...:good:
ivelramona said:
Sory bro,but still same here.. Still got bootloop...
But thanks for your work...:good:
Click to expand...
Click to collapse
Can You try v.2 of my mod and report me please!
I'm sorry mate!
can you make a zip without the center clock?
tonysansone said:
Can You try v.2 of my mod and report me please!
I'm sorry mate!
Click to expand...
Click to collapse
Again.. Same result sir,still bootloop...:crying:
But,don't know with other,wait for other report..
ivelramona said:
Again.. Same result sir,still bootloop...:crying:
But,don't know with other,wait for other report..
Click to expand...
Click to collapse
Can you post your framework-res.apk and systemui.apk? I will try to add my mod.
tootang said:
can you make a zip without the center clock?
Click to expand...
Click to collapse
I will do it mate!
CyanogenMod 12.1 Ambient Display
Will ambient display work on 12.1? I'd be interested to install just ambient display if that's possible.
ahoyboyhoy said:
Will ambient display work on 12.1? I'd be interested to install just ambient display if that's possible.
Click to expand...
Click to collapse
I think yes.. Can You post your framework-res and systemui files and I will do it. But you remember that if You update cyanogenmod rom You will lost ambient display mod. Here You find the tutorial how add ambient display mod
http://forum.xda-developers.com/goo.../how-to-add-ambient-display-settings-t2942838
take a look
tonysansone said:
Can you post your framework-res.apk and systemui.apk? I will try to add my mod.
Click to expand...
Click to collapse
Here...
ivelramona said:
Here...
Click to expand...
Click to collapse
Can You try this file? It should be works. Only ambient display mod.
I'm tried installing that on CM12.1 4.23 nightly and got stuck on the boot animation.
ahoyboyhoy said:
I'm tried installing that on CM12.1 4.23 nightly and got stuck on the boot animation.
Click to expand...
Click to collapse
Hey Guy my mod does work only on rom stock 5.1. It will doesn't work on cyanogenmod rom.. Cm12.1 has framework-res.apk and systemui.apk files are different. Post your files and I try to add my mod
I flashed and bootloop on 5.1 stock
Nexus 4 cihazımdan Tapatalk kullanılarak gönderildi

[Guide][MOD] Network Traffic 4.x to 5.x (turn on/off, color, Display unit and more)

Today i came here with new Tut
This tut includes
Status bar traffic monitor
Disable
Outgoing
Incoming
Outgoing and Incoming
Color style
Display unit
Bits per second
Bytes per second
update interval
500 ms
1000 ms
1500 ms
2000 ms
Auto hide
Inactivity threshold
Before going to tutorial First you need to have these mods (If you already had these mods then go to post #2
Color picker settings by @05Gurpreet
and Seekbar Preferences by me
Thanks to carbon rom
mod [settings/systemui]
First you need Deodexed SystemUI.apk and Settings.apk
Lets first start with SystemUI.apk
1. Decompile the SystemUI.apk
2. Open res\values\dimens.xml and add these below codes
Code:
<dimen name="net_traffic_single_text_size">12.0dip</dimen>
<dimen name="net_traffic_multi_text_size">9.0dip</dimen>
<dimen name="network_stats_text_size">10.0dip</dimen>
3. then open res\values\id.xml and these below code
Code:
<item type="id" name="networkTraffic">false</item>
4. then open res\values\status_bar.xml
look for
Code:
<include layout="@layout/system_icons" />
Add this code above it
Code:
<com.android.systemui.statusbar.policy.NetworkTraffic android:id="@+id/networkTraffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="false" />
5. Download this View attachment SystemUI.zip and merge them
6. Compile it and decompile then open smali/com/android/systemui.statusbar/policy/NetworkTraffic.smali
7. After replace the public ids ( by comparing one i gave in zip
8. after compared and replace... compile the app and replace in system
Now time for settings.apk
1. Decompile the settings.apk
2. open settings.apk/res/values/arrays.xml and this below code
Code:
<string-array name="show_network_traffic_state_entries">
<item>@string/show_network_traffic_disable</item>
<item>@string/show_network_traffic_up</item>
<item>@string/show_network_traffic_down</item>
<item>@string/show_network_traffic_all</item>
</string-array>
<string-array name="show_network_traffic_state_values">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
</string-array>
<string-array name="show_network_traffic_unit_entries">
<item>@string/show_network_traffic_bit</item>
<item>@string/show_network_traffic_byte</item>
</string-array>
<string-array name="show_network_traffic_unit_values">
<item>0</item>
<item>1</item>
</string-array>
<string-array name="show_network_traffic_frequency_entries">
<item>@string/show_network_traffic_500</item>
<item>@string/show_network_traffic_1000</item>
<item>@string/show_network_traffic_1500</item>
<item>@string/show_network_traffic_2000</item>
</string-array>
<string-array name="show_network_traffic_frequency_values">
<item>500</item>
<item>1000</item>
<item>1500</item>
<item>2000</item>
</string-array>
3. now open settings.apk/res/values/strings.xml and add these codes
Code:
<string name="default_string">Default</string>
<string name="network_traffic_summary">Enable various network traffic options in statusbar</string>
<string name="network_traffic_title">Network traffic</string>
<string name="show_network_traffic_state">Status bar traffic monitor</string>
<string name="show_network_traffic_unit">Display unit</string>
<string name="show_network_traffic_frequency">Update interval</string>
<string name="show_network_traffic_disable">Disabled</string>
<string name="show_network_traffic_up">Outgoing</string>
<string name="show_network_traffic_down">Incoming</string>
<string name="show_network_traffic_all">Outgoing and incoming</string>
<string name="show_network_traffic_bit">Bits per second</string>
<string name="show_network_traffic_byte">Bytes per second</string>
<string name="show_network_traffic_500">500 ms</string>
<string name="show_network_traffic_1000">1000 ms</string>
<string name="show_network_traffic_1500">1500 ms</string>
<string name="show_network_traffic_2000">2000 ms</string>
<string name="network_traffic_autohide">Auto hide</string>
<string name="network_traffic_autohide_summary">Hide the traffic monitor when there is no activity</string>
<string name="network_traffic_autohide_threshold">Inactivity threshold</string>
<string name="network_traffic_color_style">Color style</string>
<string name="network_traffic_color_reset">Reset color</string>
<string name="network_traffic_color_reset_message">Reset network traffic color to default?</string>
4. now open settings.apk/res/values/attrs.xml and add these codes
Code:
<attr name="unitsLeft" format="reference|string" />
<attr name="min" format="float" />
<attr name="unitsRight" format="reference|string" />
5. Add this to any of your xml
for example i had add to my personal settings (res/xm/rstatusbar.xml)
you can add in display_settings.xml or as you wish
Code:
<PreferenceScreen android:title="@string/network_traffic_title" android:key="network_traffic_state " android:summary="@string/network_traffic_summary" android:fragment="com.android.settings.rz.NetworkTraffic" />
6. download this View attachment Settings.zip and merge to your settings
7. compile and decompile so you will get ids
8. open smali/com/android/settings/rz/NetworkTraffic.smali
9. compare the public ids to my one and replace yours
10. after that compile and replace the settings.apk
Best way to compare the Public ids go here shared by @iedafarha
Oh god finally you did it
Don't forget to mention me in your thread. If you tried my tut
venkat kamesh said:
8. compare the public ids to my one and replace yours
9. after that compile and replace the settings.apk
Oh god finally you did it
Don't forget to mention me in your thread. If you tried my tut
Click to expand...
Click to collapse
Awesome guide mate :good:, for compare the public ids , its easier to use public_id port
Try it ..
Good mode bro Tnx man
iedafarha said:
Awesome guide mate :good:, for compare the public ids , its easier to use public_id port
Try it ..
Click to expand...
Click to collapse
tnx bro you save my time alot
Nimadroid said:
tnx bro you save my time alot
Click to expand...
Click to collapse
welcome for editing xml especially for custom xml , this tools very usefull , xml validator
so save your time when recompile apk without error.
xml validato Application made with Mono 2.0, compatible with .Net Framework 2.0. It allows to load and modify xml, xsd and xsl docs and perform theirs validation, also using an embedded browser. Also, it allows to apply xsl to xml and to validate xml with xsd
Need Fix
Can you help me to fix it for me? Cause try and try but it always can't open Network Traffic menu on settings
I attach my apk
Sorry for my bad english
Thanks for help :angel:
Sloved.
I think you miss something for Public ID on NetworkTraffic.smali
For this publicID :
PHP:
<public type="integer" name="maskUp"
<public type="integer" name="maskDown"
<public type="integer" name="maskUnit"
<public type="integer" name="maskPeriod"
Keep Rockin :highfive:
iedafarha said:
welcome for editing xml especially for custom xml , this tools very usefull , xml validator
so save your time when recompile apk without error.
xml validato Application made with Mono 2.0, compatible with .Net Framework 2.0. It allows to load and modify xml, xsd and xsl docs and perform theirs validation, also using an embedded browser. Also, it allows to apply xsl to xml and to validate xml with xsd
Click to expand...
Click to collapse
ohhhh yeaaa
worked like chrm...
venkat kamesh said:
6. Compile it and decompile then open smali/com/android/systemui.statusbar/policy/NetworkTraffic.smali
Click to expand...
Click to collapse
i dont have networktraffic smali in my folder. can you mod my apk for me
uday94 said:
i dont have networktraffic smali in my folder. can you mod my apk for me
Click to expand...
Click to collapse
You don't have Networktraffic smali in ur folder because u did not follow the instructions in OP. This tutorial works perfectly.. Just try again. Read the full tutorial one time or two time then try..
venkat kamesh said:
Today i came here with new Tut
Click to expand...
Click to collapse
everything worked fine . but whenever i open network traffic option in settings it force closes.
uday94 said:
everything worked fine . but whenever i open network traffic option in settings it force closes.
Click to expand...
Click to collapse
Re check ids..
I used public id port app to change ids. There were some missing ids while editing.
uday94 said:
I used public id port app to change ids. There were some missing ids while editing.
Click to expand...
Click to collapse
There u go.. Try manual way. Find each ids and try again like me..
uday94 said:
I used public id port app to change ids. There were some missing ids while editing.
Click to expand...
Click to collapse
Download the compare_settings_systemui.zip http://forum.xda-developers.com/showthread.php?p=64516025
Decompile and check what you need (if the míssed public id is a attr= search into values/attr.xml and copy the línes you have míssed to your files and follow That way)
Who mod files for m2 2303?
djborek said:
Who mod files for m2 2303?
Click to expand...
Click to collapse
Tutorials is for learning my friend.. Just try it..
I dont know how do it.
djborek said:
I dont know how do it.
Click to expand...
Click to collapse
I made it from z5 style files
Pls send me on my PM files for 2303.

[Guide][Lp-MM-N]Adv Rom control in to stock Settings

hello guys
After long day
i got free time
Today i am going to share Adv Rom control to Settings Integration....
Posting tuts and making settings for them ..... argh.........!
Wasting my time
So i am going to Share you This Easy Preferences.....!
Easy to work with and Easy to use .. thanks to @daxgirl for such a great work... thank you
Using that i had my personal changes to work in built settings and updated color picker and few
Ok lets start on integration of Rom control v1 to your Stock settings ( tested on my Kryptonian Roms )
so here guys, all you need
- Super User Mod ( MM/N, LP )
- Deodexed Stock settings
- Apktools ( i used apktool 2.x )
- and Patience
1. Decompile your Settings.apk
2. Now download this View attachment Settings.apk.zip
3. Extract them and Merge to Stock settings
4. Open Androidmanifest.xml and add these Persmissions
Code:
<uses-permission android:name="android.permission.FORCE_STOP_PACKAGES" />
5. In Settings.apk/res/values/arrays.xml add this
Code:
<string-array name="dashboard_switches_entries">
<item>Switches off</item>
<item>Switches on</item>
</string-array>
<string-array name="dashboard_switches_values">
<item>0</item>
<item>1</item>
</string-array>
<string-array name="dashboard_columns_entries">
<item>One</item>
<item>Two</item>
<item>Three</item>
</string-array>
<string-array name="dashboard_columns_values">
<item>1</item>
<item>2</item>
<item>3</item>
</string-array>
6. In Settings.apk/res/values/attrs.xml add these
Code:
<attr name="colorPrimary" format="color" />
<attr name="colorPrimaryDark" format="color" />
<attr name="colorAccent" format="color" />
<declare-styleable name="ThumbnailListPreference">
<attr name="drawableArray" format="reference" />
<attr name="entryList" format="reference" />
<attr name="entryValuesList" format="reference" />
<attr name="entryDefault" format="string" />
</declare-styleable>
<attr name="switchClass" format="string" />
7. Open Settings.apk/res/values/colors.xml
add these
Code:
<color name="colorAccent">#ffff4081</color>
<color name="colorPrimary">#ff3f51b5</color>
<color name="colorPrimaryDark">#ff303f9f</color>
8. Open Settings.apk/res/values/dimens.xml
add this
Code:
<dimen name="button_size">30.0dip</dimen>
9. Open settings.apk/res/values/string.xml
add these
Code:
<string name="ok">OK</string>
<string name="app_reboot_required_title">App Reboot Required</string>
<string name="app_reboot_required_message">%1$s reboot is required for the changes to take effect.\n\nReboot now?</string>
<string name="dialog_color_picker">Color Picker</string>
<string name="press_color_to_apply">Press on Color to apply</string>
<string name="hex">Hex:</string>
<string name="hex_hint">\#ff000000</string>
Save and Close all
Continued in Next post
Final
Continuation
10. open settings.apk/res/xml/dashboard_categories.xml
add this Any where you like ( i had added under personal header setting )
If under Personal Header then follow this
Find this
Code:
<dashboard-category android:id="@+id/personal_section" android:title="@string/header_category_personal" android:key="@string/category_key_personal">
Below that add this
Code:
<dashboard-tile android:id="@+id/kryp_control" android:title="Kryptonian Menu" android:fragment="com.android.settings.kryp.krypton" />
If you want to add any logo then add this ( Example ) android:icon="@drawable/ic_settings_krypton"
it look like this
Code:
<dashboard-tile [COLOR="red"]android:icon="@drawable/ic_settings_krypton"[/COLOR] android:id="@+id/kryp_control" android:title="Kryptonian Menu" android:fragment="com.android.settings.kryp.krypton" />
and then place the icon in drawable folder in name of ic_settings_krypton and done...!
Now compile and Decompile ... now open
Settings.apk\smali\com\android\settings\kryp\krypton.smali
in that change the public id
Code:
<public type="xml" name="[COLOR="red"]krypton_settings[/COLOR]" id="[COLOR="red"]0x7f080089[/COLOR]" />
Done....!
Compile and Replace with your settings and test
And how this works will be explained in next post
Done Forget to mention me if you use my work
Adding more Preference xml layouts
Apologize for my explanation
The Krypton.smali is linked with krypton_settings.xml where it acts as Dashboard Header over settings part
example.smali is a preferenceScreen Fragments which is linked to kryp_example.xml
So handlerpreferences can be run trough the example.smali fragment
How to add more Preference settings in krypton Dashboard preference
1. copy the example.smali and paste in it with different name like.. displaysettings.smali
2. Open that displaysetting.smali and replace all example to displaysettings
3. the same way create a xml ( kryp_example / kryp_displaysettings )
4. Now in displaysetting.smali change kryp_example to kryp_displaysettings and save
and in krypton_settings.xml add this
add this
Code:
<PreferenceScreen android:id="@+id/example_control" android:title="Basic" android:summary="example of basic pref" android:fragment="com.android.settings.kryp.settings.[COLOR="Red"]displaysettings[/COLOR] " />
So in this Way you can add as many you like to have
How Preferences Work:-
Here The Complete mod work on Key preferences
android:key
android:title = write your title
android:defaultValue = it can be "true" (on) "false" (off) / "1" (on) "0" (off) by default
android:summary = summary msg never change on action.. static msg shown
android:summaryOn = summary msg below shown when status is enabled
android:summaryOff = summary msg below shown when status is disabled
android:icon="@null" will show no icon , if its android:icon="@drawable/ic_settings_krypton" then add an icon in drawable in name of ic_settings_krypton.
android:max="24" will end max to 24 from 1
android:min="2" will start from 1 till max given
unitsRight="" units may be dp/ dip / sec Right meant will Show on right side of seek bar pref
unitsLeft="" units may be dp/ dip / sec Right meant will Show on left side of seek bar pref
Switch preference
Code:
<SwitchPreference android:title="Title" android:key="[COLOR="Red"]Main_key[/COLOR]" android:defaultValue="[COLOR="red"]true[/COLOR]" android:summaryOn="Shown" android:summaryOff="Hidden" />
CheckBox Preference
Code:
<CheckBoxPreference android:title="Title" android:key="[COLOR="Red"]Main_key[/COLOR]" android:defaultValue="false" android:summaryOn="Shown" android:summaryOff="Hidden" />
SeekBar Preference
Code:
<com.android.settings.kryp.settings.prefs.SeekBarPreference android:max="24" android:title="Title" android:key="[COLOR="Red"]Main_key[/COLOR]" android:defaultValue="1" min="1" unitsRight="" />
ListPreferences
Code:
<com.android.settings.kryp.settings.prefs.MyListPreference android:entries="@array/entries" android:title="Title" android:key="[COLOR="Red"]Main_key[/COLOR]" android:defaultValue="8" android:dialogTitle="Dialog title" android:entryValues="@array/values" />
ColorPreferences color Hex code ff737373 change as you need
Code:
<com.android.settings.kryp.settings.prefs.ColorPickerPreference android:title="Title" android:key="[COLOR="Red"]Main_key[/COLOR]" android:defaultValue="\#ff737373" alphaSlider="true" />
EditText Preferences
Code:
<com.android.settings.kryp.settings.prefs..MyEditTextPreference android:defaultValue="simpletext" android:key="[COLOR="Red"]Main_key[/COLOR]" android:title="Title" />
ohppppppppppppp.... done.!
Have fun guys
Nice tut bro. It would be more awesome if you add some screenshots of the advanced rom control settings.
nitesh9 said:
Nice tut bro. It would be more awesome if you add some screenshots of the advanced rom control settings.
Click to expand...
Click to collapse
+1
Verstuurd vanaf mijn F8331 met Tapatalk
nitesh9 said:
Nice tut bro. It would be more awesome if you add some screenshots of the advanced rom control settings.
Click to expand...
Click to collapse
Pandemic said:
+1
Verstuurd vanaf mijn F8331 met Tapatalk
Click to expand...
Click to collapse
Its a complete Customized from your part bro
So it vary from device to device
Only so i havent gave any SS
If you want to see How my settings look like
Then Check These Screen shots
https://forum.xda-developers.com/showpost.php?p=68806751&postcount=2
Wow looks nice, status bar its great
When I decompile settings, and try to recompile, it doesnt work. I dont get a log, or anything! It just keeps on recompiling. Any ideas? I have used every version of apktool I could get my hands on.
Thanks
venkat kamesh said:
hello guys
After long day
i got free time
Today i am going to share Adv Rom control to Settings Integration....
Click to expand...
Click to collapse
great work.... :good:
i got succeeded on this
@venkat kamesh bro i want to make this but in android 7 ( on xperia z5 ) , there is no " dashboard_categories.xml " in " settings.apk/res/xml "
would you please tell me that correct xml name?
i searched a lot but couldnt found
thanks a lot
Hamidreza2010 said:
@venkat kamesh bro i want to make this but in android 7 ( on xperia z5 ) , there is no " dashboard_categories.xml " in " settings.apk/res/xml "
would you please tell me that correct xml name?
i searched a lot but couldnt found
thanks a lot
Click to expand...
Click to collapse
Now adding a tile with nougat you need to add with androidmanifest.xml
No more dashboard_category.xml bro from nougat
If you want edit androidmanifest.xml then you need superusermod bro hmm
venkat kamesh said:
Now adding a tile with nougat you need to add with androidmanifest.xml
No more dashboard_category.xml bro from nougat
If you want edit androidmanifest.xml then you need superusermod bro hmm
Click to expand...
Click to collapse
bro i have supersuer mod
but please tell me how can i do final part ?
https://forum.xda-developers.com/showpost.php?p=70574874&postcount=2
i mean part 10
wait for your help or please update second post.thanks
venkat kamesh said:
Now adding a tile with nougat you need to add with androidmanifest.xml
No more dashboard_category.xml bro from nougat
If you want edit androidmanifest.xml then you need superusermod bro hmm
Click to expand...
Click to collapse
@Hamidreza2010
What Venkat is saying is you need to add new tile on the android-manifest.xml file
it is the project manifest file for any standard android app.
Decompiling an apk would also decompile the manifest file in plain english.
you can look at the file with notepad++ and see that there are many activities and permissions and other primitive android class's objects are being manifested so that the delvik VM can know which class can run their objects and which cant.
Maybe a new tile needs to be mentioned [initialized] there somehow to add it 
 @venkat kamesh can explain the rest i think
@venkat kamesh PLEASE UPDATE FIRST PAGE
i want make this for android N
but second post has my problem
thanks
Hamidreza2010 said:
@venkat kamesh PLEASE UPDATE FIRST PAGE
i want make this for android N
but second post has my problem
thanks
Click to expand...
Click to collapse
What problem? You can do this on N
panzerox123 said:
What problem? You can do this on N
Click to expand...
Click to collapse
in android N there is no dashboard_category.xml and we should add into androidmanifest.xml
but i dont know where of androidmanifest.xml
for this i tell please update
Hamidreza2010 said:
in android N there is no dashboard_category.xml and we should add into androidmanifest.xml
but i dont know where of androidmanifest.xml
for this i tell please update
Click to expand...
Click to collapse
That I'm not sure of, sorry... I'm still on marshmallow unfortunately...
@venkat kamesh bro would you please give me your time for 5 min?
just please update final part for android N
i did some steps but cant do it in final part ( i want to make it in android 7 for z5 )
https://forum.xda-developers.com/showpost.php?p=70956230&postcount=10
thanks
Hamidreza2010 said:
@venkat kamesh bro would you please give me your time for 5 min?
just please update final part for android N
i did some steps but cant do it in final part ( i want to make it in android 7 for z5 )
https://forum.xda-developers.com/showpost.php?p=70956230&postcount=10
thanks
Click to expand...
Click to collapse
Sorry for late reply
Presently I don't have z5 or nougat
Once I get it.. I will update it bro
Sent from my C6902 using XDA-Developers Legacy app
venkat kamesh said:
Sorry for late reply
Presently I don't have z5 or nougat
Once I get it.. I will update it bro
Sent from my C6902 using XDA-Developers Legacy app
Click to expand...
Click to collapse
OK bro Thanks
Remember to you later
Have a nice day bro

Categories

Resources