[MOD] add RadioInfo to Wireless Settings - Thunderbolt Android Development

**Now in rom manager
**Only for deodexed roms.
**Manual patch recommended for themed/nonstock roms
This mod adds the Radio Info (aka Phone Information) to the Wireless & networks menu in Settings. Allowing you to do such things as changed your preferrednetwork settings (ie turn LTE on / off) without additional applications.
This is based on stock Settings.apk, and should work with most if not all deodexed roms. Only tested with stock (deodexed), Basic Debloat and Das BAMF. Do a nandroid backup before flashing.
To turn LTE off:
Go to settings -> Wireless & networks -> Radio Info
Scroll down to the "Set preferred network Type:" dropdown box/spinnger
Choose: CDMA auto (PRL)
To turn LTE on:
Go to settings -> Wireless & networks -> Radio Info
Scroll down to the "Set preferred network Type:" dropdown box/spinnger
Choose: CDMA + LTE/EvDo auto
http://www.multiupload.com/77GYQGTRKI
Rom Chefs:
Feel free to include this with your rom, as long as full credit to TeamAndIRC is made for it.
Patch Details:
Only change was an addition of an HtcPrefrenceScreen to res/xml/wireless_settings.xml. Change shown in red.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<com.htc.preference.HtcPreferenceScreen android:title="@string/radio_controls_title"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.htc.preference.HtcCheckBoxPreference android:persistent="false" android:title="@string/airplane_mode" android:key="toggle_airplane" android:summary="@string/airplane_mode_summary" android:disableDependentsState="true" />
<com.htc.preference.HtcCheckBoxPreference android:persistent="false" android:title="@string/wifi_quick_toggle_title" android:key="toggle_wifi" android:summary="@string/wifi_quick_toggle_summary" />
[COLOR="Red"] <com.htc.preference.HtcPreferenceScreen android:title="Radio Info" android:summary="Advanced Radio Tools">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.RadioInfo" />
</com.htc.preference.HtcPreferenceScreen>[/COLOR]
<com.htc.preference.HtcPreferenceScreen android:title="@string/wifi_settings" android:key="wifi_settings" android:summary="@string/wifi_settings_summary">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.wifi.WifiSettings" />
</com.htc.preference.HtcPreferenceScreen>
<com.htc.preference.HtcCheckBoxPreference android:persistent="false" android:title="@string/bluetooth_quick_toggle_title" android:key="toggle_bluetooth" android:summary="@string/bluetooth_quick_toggle_summary" />
<com.htc.preference.HtcPreferenceScreen android:title="@string/bluetooth_settings_title" android:key="bt_settings" android:summary="@string/bluetooth_settings_summary">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.bluetooth.BluetoothSettings" />
</com.htc.preference.HtcPreferenceScreen>
<com.htc.preference.HtcCheckBoxPreference android:persistent="false" android:title="@string/hotspot_toggle_preference_title" android:key="enable_wifi_ap" android:summary="@string/hotspot_toggle_preference_summery" />
<com.htc.preference.HtcPreferenceScreen android:title="@string/hotspot_settings_preference_title" android:key="hotspot_settings" android:summary="@string/hotspot_settings_preference_summery">
<intent android:targetPackage="com.htc.WifiRouter" android:action="android.intent.action.MAIN" android:targetClass="com.htc.WifiRouter.Intro" />
</com.htc.preference.HtcPreferenceScreen>
<com.htc.preference.HtcCheckBoxPreference android:persistent="false" android:title="@string/wimax_quick_toggle_title" android:key="toggle_wimax" android:summary="@string/wimax_quick_toggle_summary" />
<com.htc.preference.HtcPreferenceScreen android:title="@string/wimax_settings" android:key="wimax_settings" android:summary="@string/wimax_settings_summary" android:dependency="toggle_airplane">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.wimax.WimaxSettings" />
</com.htc.preference.HtcPreferenceScreen>
<com.htc.preference.HtcPreferenceScreen android:title="@string/vpn_settings_title" android:key="vpn_settings" android:summary="@string/vpn_settings_summary">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.vpn.VpnSettings" />
</com.htc.preference.HtcPreferenceScreen>
<com.htc.preference.HtcCheckBoxPreference android:persistent="false" android:title="@string/mobiledata_quick_toggle_title" android:key="toggle_mobiledata" android:summary="@string/mobiledata_quick_toggle_summary" android:dependency="toggle_airplane" />
<com.htc.preference.HtcPreferenceScreen android:title="@string/network_settings_title" android:key="toggle_mobilesettings" android:summary="@string/network_settings_summary" android:dependency="toggle_airplane">
<intent android:targetPackage="com.android.phone" android:action="android.intent.action.MAIN" android:targetClass="com.android.phone.Settings" />
</com.htc.preference.HtcPreferenceScreen>
<com.htc.preference.HtcCheckBoxPreference android:persistent="true" android:title="@string/internet_sharing_title" android:key="toggle_netsharing" android:summary="@string/internet_sharing_summary" android:defaultValue="false" />
<com.htc.preference.HtcPreference android:title="@string/is_type_title" android:key="toggle_netsharing_type" android:summary="@string/is_type_windows" />
<com.htc.preference.HtcCheckBoxPreference android:persistent="true" android:title="@string/internet_sharing_title_incredible" android:key="toggle_modemlink" android:summary="@string/modemlink_summary" android:defaultValue="false" />
<com.htc.preference.HtcPreference android:title="@string/modemlink_type_title" android:key="toggle_modemlink_type" android:summary="@string/modemlink_type_usb" />
<com.htc.preference.HtcCheckBoxPreference android:persistent="true" android:title="@string/PS" android:key="toggle_PS" android:summary="@string/PS_summary" android:defaultValue="false" />
</com.htc.preference.HtcPreferenceScreen>

Wow, the rickroll is very well hidden in this one. Great job!
Edit: [sarcasm]

intangibleDroid said:
Wow, the rickroll is very well hidden in this one. Great job!
Click to expand...
Click to collapse
There is no rickroll in this, I even posted the changes needed to make this on your own.
Fail on your part sir.

Awesome man. Gonna cook this in right now.
Sent from my ADR6400L using XDA App

@jcase: I was kidding. You are a great asset to the dev community and I was just trying to be funny.

intangibleDroid said:
@jcase: I was kidding. You are a great asset to the dev community and I was just trying to be funny.
Click to expand...
Click to collapse
I understand, but its a real mod and I don't want people to skip using it, and I didn't want to wait til tomorrow before putting it up.

chingy51o said:
Awesome man. Gonna cook this in right now.
Sent from my ADR6400L using XDA App
Click to expand...
Click to collapse
will this work on your rom chingy?

april fools?

Is anyone going to flash this and confirm??

no it will not since my rom is odex. im gonna add it in right now and test it out..

Um.... Thats the problem with April fools, kills your credibility.
I will flash and report.
edit: does exactly what it says. Its legit. Feel free to flash everyone.
Sent from my ADR6400L using Tapatalk

mcmillanje said:
Um.... Thats the problem with April fools, kills your credibility.
I will flash and report.
edit: does exactly what it says. Its legit. Feel free to flash everyone.
Sent from my ADR6400L using Tapatalk
Click to expand...
Click to collapse
lol. If anyone doubts, apply the patch by hand. I explained what it is in the original post.

Radio info on VirusROM
Thanks for the true mod. Works great on VirusROM senseless. Should definitely conserve battery. Great work.

jmiller98 said:
Thanks for the true mod. Works great on VirusROM senseless. Should definitely conserve battery. Great work.
Click to expand...
Click to collapse
Very Welcome.

Thanks for the good work sir, excellent addition.

Ha ha got me again lol
Just kidding don't want you to kill me lol
Sent from my ADR6400L using XDA App

mcmillanje said:
Um.... Thats the problem with April fools, kills your credibility.
Click to expand...
Click to collapse
Awww someone doesn't take rickrolling well
I'm sure google lost billions of users today because their credibility came into question on this the first of april
this is not a signature I type it in every time maybe sent from my phone or my computer

rizzomegav said:
Awww someone doesn't take rickrolling well
I'm sure google lost billions of users today because their credibility came into question on this the first of april
this is not a signature I type it in every time maybe sent from my phone or my computer
Click to expand...
Click to collapse
What did google do???? I definitely missed that one. Was it the gmail motion?? That **** looks hilarious
And thanks again jcase for this and everything

WormDoes said:
What did google do???? I definitely missed that one. Was it the gmail motion?? That **** looks hilarious
And thanks again jcase for this and everything
Click to expand...
Click to collapse
Google actually did a bunch of things... http://en.wikipedia.org/wiki/Google's_hoaxes#2011 some are pretty good
Works well on Das Bamf 1.3, thanks for this! Don't have any 4g where I live, but make make lots of visits to NYC so this makes things a lot easier to switch back and forth!!

Was wondering if someone could tell me how to deodex my stock odex rom?
Sent from my ADR6400L using XDA App

Related

[REQ][DEV] Can someone edit this for me?

I need to remove the clock from my status bar, I know that it's /res/layout/tw_status_bar.xml but I can't decompile anything to save my life, it's getting in the way of my theme! Can someone help me out, thanks!
I believe this line needs to be removed:
<com.android.systemui.statusbar.policy.Clock android:textSize="19.0dip" android:textColor="#ffa6a6a6" android:gravity="left|center" android:id="@id/clock" androidaddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:includeFontPadding="false" />
please post your log, so we can see the problem on why you cant decompile, i also had something in my theme, stoping it from recompiling, then i took a look at the log, with some help from my fellow xda users, so maybe i can help you, because i got this log thing down now, once its out of your theme, you can compile and recompile freely
I don't know how, that's why I can't decompile it!
Sent from my GT-I9100 using xda app-developers app
Installing framework-res.apk is needed for decompiling systemui
Try "apktool if framework-res.apk"
PS. Don't use apk manager. Use the real apktool
Sent from my GT-I9100 using xda premium

[Q] Any solutions on how to remove 5 toggles on Stock ROM

Hello guys, specially for Themers.
Anyone of you knows how to remove the toggles on the statusbar expanded? If anyone could help me that could be highly appreciated.
Dunno if this working or not but u can try this...
Quickpanel_quick_setting.xml change every framelayout height to "0.0dip"
Sent from my GT-S5360 using Tapatalk 2
Try this:
in the Quickpanel_quick_setting.xml
Look for
Code:
<LinearLayout android:orientation="vertical" android:focusable="false" android:layout_width="fill_parent" android:layout_height="@dimen/quick_setting_button_height">
replace
Code:
android:layout_height="@dimen/quick_setting_button_height"
with this
Code:
android:layout_height="0.0dip"
hope it works
remember to make a backup though
d3cka said:
Dunno if this working or not but u can try this...
Quickpanel_quick_setting.xml change every framelayout height to "0.0dip"
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
DarkZied said:
Try this:
in the Quickpanel_quick_setting.xml
Look for
Code:
<LinearLayout android:orientation="vertical" android:focusable="false" android:layout_width="fill_parent" android:layout_height="@dimen/quick_setting_button_height">
replace
Code:
android:layout_height="@dimen/quick_setting_button_height"
with this
Code:
android:layout_height="0.0dip"
hope it works
remember to make a backup though
Click to expand...
Click to collapse
nope, neither worked. @DarkZied There's no LinearLayout in statusbar_expanded.xml. There's framelayout. Changed that wo 0.0dip, didn't work as well
Just add lidroid 15 toggles, then go into settings and uncheck every toggle.
Sent from my GT-S5830i - Hit thanks if I helped

Original ROM ??? Help

Can someone post original Tmobile X1053 4.2.2 rom? 4.4 Broke video playback and I need to restore the original. The only source that had it is now offline.
I'm also looking for a 4.2.2 Original Rom so I can root but the source is offline.
Viewing the cache for the source though shows there are two different 4.2.2 Roms for Tmobile
the TMO_RETAIL_XT1053_4.2.2-13.9.0Q2.X-116-X-17-57_MR1_CFC.xml.zip
and the TMO_XT1053_4.2.2-13.9.0Q2.X-116-X-17-6_CFC.xml.zip
How do I tell which I'm looking for?
I'm trying to find the original VZW 4.2.2 ROM, but droid-developers.org is down.
Does anyone have it?
ohmimpotence said:
I'm also looking for a 4.2.2 Original Rom so I can root but the source is offline.
Viewing the cache for the source though shows there are two different 4.2.2 Roms for Tmobile
the TMO_RETAIL_XT1053_4.2.2-13.9.0Q2.X-116-X-17-57_MR1_CFC.xml.zip
and the TMO_XT1053_4.2.2-13.9.0Q2.X-116-X-17-6_CFC.xml.zip
How do I tell which I'm looking for?
Click to expand...
Click to collapse
You have to use the newer one which includes the 4.2.2 OTA update, the earlier one will fail to install.
It should be the second one - TMO_XT1053_4.2.2-13.9.0Q2.X-116-X-17-6_CFC.xml.zip
Steve-x said:
You have to use the newer one which includes the 4.2.2 OTA update, the earlier one will fail to install.
It should be the second one - TMO_XT1053_4.2.2-13.9.0Q2.X-116-X-17-6_CFC.xml.zip
Click to expand...
Click to collapse
Yeesh now I'm getting two conficting recommendations which I should use.
In this post someone tells me to use the 17-57 one'
Thanks
ohmimpotence said:
Yeesh now I'm getting two conficting recommendations which I should use.
In this post someone tells me to use the 17-57 one'
Thanks
Click to expand...
Click to collapse
Well if you download the wrong one and try to install with rsdlite it will fail to install pretty much instantly, without even rebooting the phone you can then flash the other one.
I could be wrong but I believe 17-6 is newer then 17-57. The 17-6 is also the one that can be downloaded in the link listed a few posts down from the one you just referenced, so give it a shot.
Steve-x said:
Well if you download the wrong one and try to install with rsdlite it will fail to install pretty much instantly, without even rebooting the phone you can then flash the other one.
I could be wrong but I believe 17-6 is newer then 17-57. The 17-6 is also the one that can be downloaded in the link listed a few posts down from the one you just referenced, so give it a shot.
Click to expand...
Click to collapse
Ok, good to know it won't have any adverse effects if I install the wrong one. Thanks
Steve-x said:
You have to use the newer one which includes the 4.2.2 OTA update, the earlier one will fail to install.
It should be the second one - TMO_XT1053_4.2.2-13.9.0Q2.X-116-X-17-6_CFC.xml.zip
Click to expand...
Click to collapse
The newer one is actually 17-57, 17-6 is the pre-camera patch ROM.
---------- Post added at 10:39 PM ---------- Previous post was at 10:35 PM ----------
ardiross said:
I'm trying to find the original VZW 4.2.2 ROM, but droid-developers.org is down.
Does anyone have it?
Click to expand...
Click to collapse
You can download from here:
http://fwteam.grupoandroid.com/MotoX/
Or here:
https://motorola-global-portal.custhelp.com/app/standalone/bootloader/recovery-images
mschumacher69 said:
The newer one is actually 17-57, 17-6 is the pre-camera patch ROM.
---------- Post added at 10:39 PM ---------- Previous post was at 10:35 PM ----------
You can download from here:
http://fwteam.grupoandroid.com/MotoX/
Or here:
https://motorola-global-portal.custhelp.com/app/standalone/bootloader/recovery-images
Click to expand...
Click to collapse
Good to know, thank you for the correction.
ohmimpotence - use the Motorola link above and request the gsm dev edition firmware link, they will give you permission to download the newest 4.2.2 or 4.4.
mschumacher69 said:
The newer one is actually 17-57, 17-6 is the pre-camera patch ROM.
---------- Post added at 10:39 PM ---------- Previous post was at 10:35 PM ----------
You can download from here:
http://fwteam.grupoandroid.com/MotoX/
Or here:
https://motorola-global-portal.custhelp.com/app/standalone/bootloader/recovery-images
Click to expand...
Click to collapse
So I tried to flash and I'm receiving the following errors. Am I doing something wrong?
downgraded security version
update gpt_main version failed
preflash validation failed for GPT
ardiross said:
So I tried to flash and I'm receiving the following errors. Am I doing something wrong?
downgraded security version
update gpt_main version failed
preflash validation failed for GPT
Click to expand...
Click to collapse
I guess it was just the getvar line that you had to delete, right?
mschumacher69 said:
I guess it was just the getvar line that you had to delete, right?
Click to expand...
Click to collapse
No. I think he is flashing the pre-OTA rom, should try the other one.
yghrv said:
No. I think he is flashing the pre-OTA rom, should try the other one.
Click to expand...
Click to collapse
No, he downloaded the post-OTA ROM from the Motorola website. I saw on another thread that he eventually managed to flash after deleting the getvar line.
Edit: Oh wait wait, sorry my mistake, you might be right, I just realized it's another user, I thought it was @ohmimpotence!
mschumacher69 said:
No, he downloaded the post-OTA ROM from the Motorola website. I saw on another thread that he eventually managed to flash after deleting the getvar line.
Click to expand...
Click to collapse
weird. the errors mean flash the bootloader failed so must flashed the wrong version.
yghrv said:
weird. the errors mean flash the bootloader failed so must flashed the wrong version.
Click to expand...
Click to collapse
Check my Edit above ^ ^
mschumacher69 said:
Check my Edit above ^ ^
Click to expand...
Click to collapse
Here is my XML file. I don't see the line that I need to remove.
<?xml version="1.0"?>
<flashing>
<header>
<phone_model model="PRO_1FF_VZW" />
<software_version version="ghost_verizon-user 4.2.2 13.9.0Q2.X-116-MX-17-53 5 release-keysMSM8960PRO_BP_2323.011.75.00R" />
<interfaces>
<interface name="AP" />
</interfaces>
</header>
<steps interface="AP">
<step operation="flash" partition="partition" filename="gpt.bin" MD5="EE0F6F304C21EBF7EEA9BD6EE9FBF0A1" />
<step operation="flash" partition="motoboot" filename="motoboot.img" MD5="E109F30D96A1C225680FFDF46532CD39" />
<step operation="flash" partition="logo" filename="logo.bin" MD5="1F8DBC99E41DFB7596DBC78687AC5E7B" />
<step operation="flash" partition="boot" filename="boot.img" MD5="D2D427F46529ADDD0B7A65156884EFB3" />
<step operation="flash" partition="recovery" filename="recovery.img" MD5="A6EB1D509C12E6C0C469E519F64BACD5" />
<step operation="flash" partition="system" filename="system.img" MD5="4418525ABADB682513DFDA8939B9F523" />
<step operation="flash" partition="modem" filename="NON-HLOS.bin" MD5="F292F9EF3C6B3F570F3E8CAF6AD6609A" />
<step operation="erase" partition="modemst1" />
<step operation="erase" partition="modemst2" />
<step operation="flash" partition="fsg" filename="fsg.mbn" MD5="320D67A0580B1853746FC0795F51EC5A" />
<step operation="erase" partition="cache" />
</steps>
</flashing>
Click to expand...
Click to collapse
ardiross said:
Here is my XML file. I don't see the line that I need to remove.
Click to expand...
Click to collapse
As @yghrv said, 17-53 is the pre-camera OTA ROM which cannot be installed after upgrading to the post-camera OTA ROM. You need the post-camera OTA ROM which is 17-57.
mschumacher69 said:
As @yghrv said, 17-53 is the pre-camera OTA ROM which cannot be installed after upgrading to the post-camera OTA ROM. You need the post-camera OTA ROM which is 17-57.
Click to expand...
Click to collapse
Does anyone know where I can find it. Everyone refers to droid-developers.org and that website has been down for days.
ardiross said:
Does anyone know where I can find it. Everyone refers to droid-developers.org and that website has been down for days.
Click to expand...
Click to collapse
try this, not sure if you can download or not
http://pan.baidu.com/s/1otIYK
That did it. I'm back to 4.2.2. Now I can tether!!!!

[TUTORIAL]Add the "Delete" button on the screenshot preview

Requirement:
1. apktool 1.5.2
2. Notepad++
3. Deodex System
---------------------------------------------------
1. Decompile SystemUI.apk
2. Download delete_button.rar from attachment and merge to your SystemUI.apk
3.Open /res/value/stings with Notepad++ add the following lines:
<string name="screenshot_delete_action">Delete</string>
<string name="screenshot_delete_confirmation">Screenshot deleted.</string>
<string name="permdesc_screenshot">Capture screenshot</string>
<string name="permlab_screenshot">Allows the app to cature a screenshot. This is protected by SystemUI.</string>
<string name="screenshot_toast">Screenshot in %1$d seconds</string>
Click to expand...
Click to collapse
4.Now compile your SystemUI.apk
5.Now decompile the SystemUI.apk you just compiled
6.Navigate to com/android/systemui/screenshot/DeleteScreenshot.smali
7. find 0x7f090049 delete id
And replace your id
<public type="string" name="screenshot_delete_confirmation" id
Click to expand...
Click to collapse
8.Navigate to SystemUI\smali\com\android\systemui\screenshot\SaveImageInBackgroundTask.smali
find id and delete id and replace your id
0x10405b7 (-Framework-res- public.xml) = <public type="string" name="share"
0x7f09007b = <public type="string" name="screenshot_saving_ticker"
0x7f09007c = <public type="string" name="screenshot_saving_title"
0x7f09007d = <public type="string" name="screenshot_saving_text"
0x7f0200f2 = <public type="drawable" name="stat_notify_image"
0x7f020022 = <public type="drawable" name="ic_menu_share"
0x7f020021 = <public type="drawable" name="ic_menu_delete"
0x7f090048 = <public type="string" name="screenshot_delete_action"
0x7f09007e = <public type="string" name="screenshot_saved_title"
0x7f09007f = <public type="string" name="screenshot_saved_text"
Click to expand...
Click to collapse
9. AndroidManifest.xml
find
Code:
<service android:exported="false" android:name=".screenshot.TakeScreenshotService" android:process=":screenshot"/>
and change to
Code:
<service android:name=".screenshot.TakeScreenshotService" android:permission="android.permission.SCREENSHOT" android:exported="false" android:process=":screenshot">
<intent-filter>
<android name="android.intent.action.SCREENSHOT" />
</intent-filter>
</service>
<receiver android:name=".screenshot.DeleteScreenshot" android:exported="true" />
<service android:name=".LoadAverageService" android:exported="true" />
find
<uses-permission android:name="android.permission.CRYPT_KEEPER" />
Click to expand...
Click to collapse
change to
Code:
<uses-permission android:name="android.permission.CRYPT_KEEPER" />
<protected-broadcast android:name="android.permission.SCREENSHOT" />
<protected-broadcast android:name="android.intent.action.SCREENSHOT" />
<permission android:label="@string/permlab_screenshot" android:name="android.permission.SCREENSHOT" android:protectionLevel="signatureOrSystem" android:description="@string/permdesc_screenshot" />
10. Save the file and close it.
11. Now recompile your SystemUI.apk and sign it.
12. Enjoy!
Thanks - grisha84
Screenshotes
Nice bro, will try it
A very useful tutorial indeed great work!!
@sportik555
Nice work m8 as always.
Do you know how to add clear all button in recent apps? Or know some tutorial?
Thanks
thanks
please fix all
.parameter "xxx"
Click to expand...
Click to collapse
because i use apktool_2.0.0rc3 to decompile my systemUI and its dont have .parameter only have .param p1, "xxx"
p/s : i've fixed it already but why dont have delete confirm message ?
devilmaycry2020 said:
thanks
please fix all because i use apktool_2.0.0rc3 to decompile my systemUI and its dont have .parameter only have .param p1, "xxx"
Click to expand...
Click to collapse
you need Apktool 1.5.2
Dzepar said:
@sportik555
Nice work m8 as always.
Do you know how to add clear all button in recent apps? Or know some tutorial?
Thanks
Click to expand...
Click to collapse
I know, but you need to check, give systemUI and I try
sportik555 said:
you need Apktool 1.5.2
Click to expand...
Click to collapse
why dont use newest apktool ? old apktool can't decompile android 4.4
and maybe you missed add a call parameter to DeleteScreenshot.smali in GlobalScreenshot.smali .i'm using android 4.3
devilmaycry2020 said:
why dont use newest apktool ? old apktool can't decompile android 4.4
and maybe you missed add a call parameter to DeleteScreenshot.smali in GlobalScreenshot.smali .i'm using android 4.3
Click to expand...
Click to collapse
smali for apktool 1.5.2 , old can decompile 4.4
maybe you missed add a call parameter to DeleteScreenshot.smali in GlobalScreenshot.smali
Click to expand...
Click to collapse
no it is not necessary to do,tested 3 sony android 4.4 phones and work delete button
sportik555 said:
smali for apktool 1.5.2 , old can decompile 4.4
no it is not necessary to do,tested 3 sony android 4.4 phones and work delete button
Click to expand...
Click to collapse
i said it worked but what string "screenshot_delete_confirmation" use for ? i mean when i press delete icon it dont show any confirm message want to delete or not.
devilmaycry2020 said:
i said it worked but what string "screenshot_delete_confirmation" use for ? i mean when i press delete icon it dont show any confirm message want to delete or not.
Click to expand...
Click to collapse
screenshot_delete_confiramation use for DeleteScreenshot.smali
6.Navigate to com/android/systemui/screenshot/DeleteScreenshot.smali
7. find 0x7f090049 delete id
And replace your id
Quote:
<public type="string" name="screenshot_delete_confirmation" id
Click to expand...
Click to collapse
i mean when i press delete icon it dont show any confirm message want to delete or not
Click to expand...
Click to collapse
you are wrong edited AndroidManifest.xml .
sportik555 said:
I know, but you need to check, give systemUI and I try
Click to expand...
Click to collapse
It's from Xperia J JB 4.1.2.
SystemUI
Thanks
sportik555 said:
screenshot_delete_confiramation use for DeleteScreenshot.smali
you are wrong edited AndroidManifest.xml .
Click to expand...
Click to collapse
So string "screenshot_delete_confirmation" is useless it didn't show anywhere. how do you know i were wrong edited AndroidManifest.xml? i've not upload any my file to you.
anyway here is my file.
Dzepar said:
[MENTION=5555617]
Do you know how to add clear all button in recent apps? Or know some tutorial?
Click to expand...
Click to collapse
All you needed was a little research. http://forum.xda-developers.com/showthread.php?t=2614356 (I prefer the Z3 style)
Can OP please disable emoticons in the first post? It's annoying to copy code and there are some emoticons in the middle..
And yes there is an option to disable emoticons on the post... Just edit it properly or put
Code:
[/ code] in the code sections... Not QUOTE..
Enviado do meu SM-N9005 através de Tapatalk
joluke said:
Can OP please disable emoticons in the first post? It's annoying to copy code and there are some emoticons in the middle..
And yes there is an option to disable emoticons on the post... Just edit it properly or put
Code:
[/ code] in the code sections... Not QUOTE..
Enviado do meu SM-N9005 através de Tapatalk[/QUOTE]
I find 1 emotions post and post edit
Click to expand...
Click to collapse
Papanik said:
All you needed was a little research. http://forum.xda-developers.com/showthread.php?t=2614356 (I prefer the Z3 style)
Click to expand...
Click to collapse
i don't think so, maybe he want it look like this.
works great on my z1 compact using z3 SystemUI, thanks
Gave error recompile . see the log below...

[MOD] Center clock and the battery charge in percent for stock 5.0.1

hi everyone... here is another mod from me
install from recovery
for odex/deodex stock rom 5.0.1
fix on lock screen if charge phone and reupload mod
if you have odex system, then after installation of this mod,wipe cache
Hi, thanks for this mod! Can you please show us how you did that by making a tutorial. Also is it possible to add the percentage number next to the battery icon? (see attached screenshot).
iliass01 said:
Hi, thanks for this mod! Can you please show us how you did that by making a tutorial. Also is it possible to add the percentage number next to the battery icon? (see attached screenshot).
Click to expand...
Click to collapse
add smali
decompile my mod and use diff
in C:\ApkTools200RC3m\SystemUI\res\layout\system_icons.xml (this im hide stock batt icon)
android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip"
in C:\ApkTools200RC3m\SystemUI\res\layout\status_bar.xml (this clock in center)
Code:
<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>
in C:\ApkTools200RC3m\SystemUI\res\layout\signal_cluster_view.xml (this text batt in %)
Code:
<com.erryy.BatteryText android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
in values\dimens.xml
<dimen name="keyguard_carrier_text_margin">156.0dip</dimen> (its for center operator logo on lockscreen)
Is it possible for you to increase the size of the number and the percentage to fit to the icons next to it? And a "revert to stock" flashable zip would be great! :fingers-crossed::good:
Could someone post a flashable zip with the battery percentage next to the stock battery icon please?
Is it possible to get am/pm?
---------- Post added at 06:11 PM ---------- Previous post was at 06:00 PM ----------
Thanks for the wonderful mods btw
First of all, thanks for your mod! Good work
For me I've made a little change in the "SystemUI\res\layout\signal_cluster_view.xml "
Code:
<com.erryy.BatteryText [B][color=red]android:textSize="@dimen/battery_level_text_size"[/B][/color] android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
so the percent matches better to the rest in size.
Dirk64 said:
First of all, thanks for your mod! Good work
For me I've made a little change in the "SystemUI\res\layout\signal_cluster_view.xml "
Code:
<com.erryy.BatteryText [B][color=red]android:textSize="@dimen/battery_level_text_size"[/B][/color] android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
so the percent matches better to the rest in size.
Click to expand...
Click to collapse
Dirk, can you show us a screenshot and post your flashable zip? Would be great! Thank you very much in advance ::good:
This is a screenshot of the mod but I've made other changes to the framework-res.apk and the SystemUI to change dpi of the NavBar.
I can upload but it's at home on my computer so it will be tomorrow if you want and if it's okay for this is not my thread and I don't want to open a new one.
Dirk64 said:
This is a screenshot of the mod but I've made other changes to the framework-res.apk and the SystemUI to change dpi of the NavBar.
I can upload but it's at home on my computer so it will be tomorrow if you want and if it's okay for this is not my thread and I don't want to open a new one.
Click to expand...
Click to collapse
That looks real nice, great job. Can you please also make a zip to flash back to stock. thanks, man :good:
I think, it's garynynch's thread and I'm pretty sure, he can do this also. It's only a small change in one xml and I don't want to post things based on his work as mine here.
hi Can you please do a flashable zip for Center clock, battery icon and %
Try this and let me know how it turns out. Unsure about the lock screen.
Change SystemUI\res\layout\system_icons.xml on line 6 from
PHP:
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_marginBottom="@dimen/battery_margin_bottom" android:layout_marginStart="7.0dip" />
to
PHP:
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="9.5dip" android:layout_height="14.5dip" android:layout_marginBottom="@dimen/battery_margin_bottom" android:layout_marginStart="7.0dip" />
Change SystemUI\res\layout\signal_cluster_view.xm on line 15 from
PHP:
<com.erryy.BatteryText android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
to
PHP:
<com.erryy.BatteryText android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="@dimen/battery_level_text_size" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
Here is another one without the center clock & carrier name
I flashed your mod and it does work. How can I have battery percent to right the battery icon? Thank you.
@ garynynch, I've got the second percent charging notification in the lockscreen disabled by changing this line in the keyguard_status_bar.xml:
Code:
<TextView android:textSize="@dimen/battery_level_text_size" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/battery_level" [B][color=red]android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip"[/color][/B] android:importantForAccessibility="noHideDescendants" android:paddingEnd="@dimen/battery_level_padding_end" android:layout_marginStart="@dimen/header_battery_margin_keyguard" />
hope, it helps
What line would I need to edit in order to add am/pm to the time? The numbers just look to plain on their own (I use 12hr time)
Also, how difficult is it to add a circle-percent battery mod? We can take the images from CM's circle battery mod with percent. I'm guessing the framework and/or systemUI will need much tweaking (or is it completely different on Lollipop?)
tonysansone said:
I flashed your mod and it does work. How can I have battery percent to right the battery icon? Thank you.
Click to expand...
Click to collapse
These are the tools I used
tool to compare xml & smali files
to view and edit xml & smali files
to decompile and recompile apks
to sign zip files
Good luck
Thanks mate. But I needed to know the code and the xml file that I must modify to move to right of the battery icon the percent text.
Sent from my Nexus 4 using XDA Free mobile app

Categories

Resources