OK heres a mod to add horizontal and vertical quicksettings i also added all 21 quicksettings to it, and it is easy to edit them to what you want ill post directions bellow
find these edits in the custimize/ACC/default.xml in the zip i post
NOS_EQS_mod
<app name="SystemUI">
<item type="boolean" name="data_icon_h3l_d_enabled">false</item>
<item type="boolean" name="data_icon_t3s_show_h_for_3g">false</item>
<item type="boolean" name="felica_icon_enabled">false</item>
<item type="boolean" name="isHtcStyleRecentApp">true</item>
<item type="boolean" name="location_service_icon_enabled">false</item>
<item type="integer-array" name="quick_setting_items">
<int>0</int>
<int>1</int>
<int>2</int>
<int>3</int>
<int>4</int>
<int>5</int>
<int>6</int>
<int>7</int>
<int>8</int>
<int>9</int>
<int>10</int>
<int>11</int>
<int>12</int>
<int>13</int>
<int>14</int>
<int>15</int>
<int>16</int>
<int>17</int>
<int>18</int>
<int>19</int>
<int>20</int>
<int>21</int>
</item>
<item type="integer" name="signal_icon_level_cdma">5</item>
<item type="integer" name="signal_icon_level_gsm">5</item>
<item type="boolean" name="support_HtcStyleRecentApp">true</item>
<item type="boolean" name="support_minor_quicksettings">true</item>
</app>
There are 21 quick settings for vertical you can rearrange or move any that you want they are in order from 1 to 21 starting with contact pic to apn settings
so lets say you want move GPS up to the 3 setting right now its 13 you modify like the example here
<app name="SystemUI">
<item type="boolean" name="data_icon_h3l_d_enabled">false</item>
<item type="boolean" name="data_icon_t3s_show_h_for_3g">false</item>
<item type="boolean" name="felica_icon_enabled">false</item>
<item type="boolean" name="isHtcStyleRecentApp">true</item>
<item type="boolean" name="location_service_icon_enabled">false</item>
<item type="integer-array" name="quick_setting_items">
<int>0</int>
<int>1</int>
<int>2</int>
<int>13</int>
<int>4</int>
<int>5</int>
<int>6</int>
<int>7</int>
<int>8</int>
<int>9</int>
<int>10</int>
<int>11</int>
<int>12</int>
<int>3</int>
<int>14</int>
<int>15</int>
<int>16</int>
<int>17</int>
<int>18</int>
<int>19</int>
<int>20</int>
<int>21</int>
</item>
<item type="integer" name="signal_icon_level_cdma">5</item>
<item type="integer" name="signal_icon_level_gsm">5</item>
<item type="boolean" name="support_HtcStyleRecentApp">true</item>
<item type="boolean" name="support_minor_quicksettings">true</item>
</app>
whatever ones you dont want just remove
another mod you can do here is Stock JB recents like this example here
<app name="SystemUI">
<item type="boolean" name="data_icon_h3l_d_enabled">false</item>
<item type="boolean" name="data_icon_t3s_show_h_for_3g">false</item>
<item type="boolean" name="felica_icon_enabled">false</item>
<item type="boolean" name="isHtcStyleRecentApp">false</item>
<item type="boolean" name="location_service_icon_enabled">false</item>
<item type="integer-array" name="quick_setting_items">
<int>0</int>
<int>1</int>
<int>2</int>
<int>3</int>
<int>4</int>
<int>5</int>
<int>6</int>
<int>7</int>
<int>8</int>
<int>9</int>
<int>10</int>
<int>11</int>
<int>12</int>
<int>13</int>
<int>14</int>
<int>15</int>
<int>16</int>
<int>17</int>
<int>18</int>
<int>19</int>
<int>20</int>
<int>21</int>
</item>
<item type="integer" name="signal_icon_level_cdma">5</item>
<item type="integer" name="signal_icon_level_gsm">5</item>
<item type="boolean" name="support_HtcStyleRecentApp">false</item>
<item type="boolean" name="support_minor_quicksettings">true</item>
</app>
remove horizontal settings like this
<app name="SystemUI">
<item type="boolean" name="data_icon_h3l_d_enabled">false</item>
<item type="boolean" name="data_icon_t3s_show_h_for_3g">false</item>
<item type="boolean" name="felica_icon_enabled">false</item>
<item type="boolean" name="isHtcStyleRecentApp">true</item>
<item type="boolean" name="location_service_icon_enabled">false</item>
<item type="integer-array" name="quick_setting_items">
<int>0</int>
<int>1</int>
<int>2</int>
<int>3</int>
<int>4</int>
<int>5</int>
<int>6</int>
<int>7</int>
<int>8</int>
<int>9</int>
<int>10</int>
<int>11</int>
<int>12</int>
<int>13</int>
<int>14</int>
<int>15</int>
<int>16</int>
<int>17</int>
<int>18</int>
<int>19</int>
<int>20</int>
<int>21</int>
</item>
<item type="integer" name="signal_icon_level_cdma">5</item>
<item type="integer" name="signal_icon_level_gsm">5</item>
<item type="boolean" name="support_HtcStyleRecentApp">true</item>
<item type="boolean" name="support_minor_quicksettings">false</item>
</app>
theres more mods that can be done with this file but i figured these would be the most popular... Ill add more as i find them
Quick settings options
Code:
<item type="integer-array" name="quick_setting_items">
<int>0</int> <!-- CONTACT CARD -->
<int>8</int> <!-- MOBILE DATA-->
<int>3</int> <!-- WIFI -->
<int>4</int> <!-- BLUETOOTH -->
<int>12</int> <!-- GPS -->
<int>5</int> <!-- AIRPLANE MODE-->
<int>11</int> <!-- SCREEN SHOT -->
<int>15</int> <!-- AUTO SYNC-->
<int>1</int> <!-- BRIGHTNESS -->
<int>7</int> <!-- ROTATION -->
<int>6</int> <!-- POWER SAVER-->
<int>2</int> <!-- SETTINGS -->
<int>10</int> <!-- WIFI HOTSPOT-->
<int>9</int> <!-- SOUND PROFILE-->
<int>18</int> <!-- RING TONE-->
<int>19</int> <!-- TIMEOUT -->
<int>14</int> <!-- MEDIA OUTPUT -->
<int>17</int> <!-- MUSIC -->
<int>13</int> <!-- ROAMING -->
<int>16</int> <!-- ROAMING SETTING-->
<int>20</int> <!-- APN -->
</item>
<item type="integer" name="signal_icon_level_cdma">6</item> <!-- Number for signal bars on the status bar -->
Here's a list of what each EQS integer represents:
Code:
0 accounts
1 brightness
2 settings
3 wifi
4 BT
5 airplane mode
6 powersaver
7 auto rotate
8 mobile data
9 sound profile
10 wifi hp
11 screenshot
12 gps
13 roaming
14 media output
15 auto sync
16 network selector [B](doesn't work)[/B]
17 music channel [B](doesn't work)[/B]
18 ringtone
19 screen timeout
20 APN [B](doesn't work)[/B]
If you are using v3.0.3 or higher of NOS M7 don't use the file posted in the OP, as the Verizon One rebase brings a lot of changes to the xml. Just edit the existing default.xml already on the phone. Use a file explorer with root access and navigate to /system/customize/ACC/ and you will see the xml. Long press the file and open with text editor. You can also rearrange these as newtoroot has shown in the OP. Save the changes and reboot.
Edit: damn, didn't even see that post above me. Lol. Oh well.
zhp pilot said:
Here's a list of what each EQS integer represents:
Code:
<int>0</int> accounts
<int>1</int> brightness
<int>2</int> settings
<int>3</int> wifi
<int>4</int> BT
<int>5</int> airplane mode
<int>6</int> powersaver [B](doesn't work on 3.0.3)[/B]
<int>7</int> auto rotate
<int>8</int> mobile data
<int>9</int> sound profile
<int>10</int> wifi hp
<int>11</int> screenshot
<int>12</int> gps
<int>13</int> roaming
<int>14</int> media output
<int>15</int> auto sync
<int>16</int> network selector [B](doesn't work)[/B]
<int>17</int> music channel [B](doesn't work)[/B]
<int>18</int> ringtone
<int>19</int> screen timeout
<int>20</int> APN [B](doesn't work)[/B]
If you are using v3.0.3 or higher of NOS M7 don't use the file posted in the OP, as the Verizon One rebase brings a lot of changes to the xml. Just edit the existing default.xml already on the phone. Use a file explorer with root access and navigate to /system/customize/ACC/ and you will see the xml. Long press the file and open with text editor. You can also rearrange these as newtoroot has shown in the OP. Save the changes and reboot.
I've indicated which ones don't work as of this post. The powersaver EQS will appear on 3.0.3 however Verizon removed that feature from the One so turning it on won't do anything.
Edit: damn, didn't even see that post above me. Lol. Oh well.
Click to expand...
Click to collapse
Is it possible to edit the file before flashing? I'm on 3.0.2 but skipping .3 and going straight to .4.
xhunter187 said:
Is it possible to edit the file before flashing? I'm on 3.0.2 but skipping .3 and going straight to .4.
Click to expand...
Click to collapse
Yes download 3.0.4 pull the file out of the rom using 7zip edit it and add it back then flash... Don't use the one in this mod it's for the older base
Sent from my HTC6435LVW using xda app-developers app
xhunter187 said:
Is it possible to edit the file before flashing? I'm on 3.0.2 but skipping .3 and going straight to .4.
Click to expand...
Click to collapse
You can do that. When you replace the xml in the zip it will break the signature so make sure you have signature verification turned off in recovery. Or you can resign the package yourself.
Newt just posted the 3.0.5 patch, which has a new default.xml file so that's the one you will want to change.
newtoroot said:
Yes download 3.0.4 pull the file out of the rom using 7zip edit it and add it back then flash... Don't use the one in this mod it's for the older base
Sent from my HTC6435LVW using xda app-developers app
Click to expand...
Click to collapse
zhp pilot said:
You can do that. When you replace the xml in the zip it will break the signature so make sure you have signature verification turned off in recovery. Or you can resign the package yourself.
Newt just posted the 3.0.5 patch, which has a new default.xml file so that's the one you will want to change.
Click to expand...
Click to collapse
Awesome! Thanks guys!
Sent from my HTC6435LVW using XDA Premium 4 mobile app
zhp pilot said:
You can do that. When you replace the xml in the zip it will break the signature so make sure you have signature verification turned off in recovery. Or you can resign the package yourself.
Newt just posted the 3.0.5 patch, which has a new default.xml file so that's the one you will want to change.
Click to expand...
Click to collapse
i noticed .5 has the flashlight added. is there an eqs number for this
termin8tor22 said:
i noticed .5 has the flashlight added. is there an eqs number for this
Click to expand...
Click to collapse
Unfortunately there is not. This is something a smali junkie would have to implement.
For gsm, do we have to follow the op? I'm on 3.0. Just edit the xml in op and flash it?
Sent from my HTC6435LVW using xda premium
Hey guys. I'm trying to edit the XML but while it let me delete the ones I didn't want its not saving the changes when I rearrange them. Any ideas?
Lykarsis said:
Hey guys. I'm trying to edit the XML but while it let me delete the ones I didn't want its not saving the changes when I rearrange them. Any ideas?
Click to expand...
Click to collapse
What are you using to edit?
zhp pilot said:
What are you using to edit?
Click to expand...
Click to collapse
The root browser in ROM toolbox pro
Lykarsis said:
The root browser in ROM toolbox pro
Click to expand...
Click to collapse
I don't use rom toolbox but I downloaded it to see. I opened the xml with the RB text editor option. After making the changes I hit save in the upper right corner and restarted the phone. All went as expected.
zhp pilot said:
I don't use rom toolbox but I downloaded it to see. I opened the xml with the RB text editor option. After making the changes I hit save in the upper right corner and restarted the phone. All went as expected.
Click to expand...
Click to collapse
I got it all working, just had to hit save like 12 times.
Can anyone tell me how to make the horizontal eqs scrollable? I enabled them by changing the false to true but only have the first five available to use since I can't scroll them.
XDA Moderator
E.Cadro said:
Can anyone tell me how to make the horizontal eqs scrollable? I enabled them by changing the false to true but only have the first five available to use since I can't scroll them.
XDA Moderator
Click to expand...
Click to collapse
I haven't looked into making them scroll yet so far only those 5 are available
Sent from my HTC6500LVW using xda app-developers app
For: (Rom){Sense5 4.2.2} Stock+ *9.1.2013
[MOD] sense5_v1_EQS_mod:
https://www.dropbox.com/s/7ut0frzcdxybvyb/sense5_v1_EQS_mod.zip
Added a few more tiles and added the following 5 minor quick settings:
Settings
WiFi
Brightness
Bluetooth
GPS
Just flash zip in recovery!
ScreenShots at HTC Share
Should work on any Rom based on joelz's m7 rom (vzw one/m7u)
Please Add to tweak section in opening post and upload to own file share if you want.
Enjoy
Es text editor won't save changes, root explorer is on. Ideas?
Sent from my HTC6435LVW using Tapatalk 2
mcsplatt said:
Es text editor won't save changes, root explorer is on. Ideas?
Sent from my HTC6435LVW using Tapatalk 2
Click to expand...
Click to collapse
Yeah. Install Xposed framework and then the latest Sense 5 toolbox
Related
Bummed that Asus took it out of the quick settings pop up menu as ill take that location over a crappy widget anyday. Anyone capable of getting it put back or do we need bootloader unlocked for such a hack/mod?
UPDATE: jump to page #2 to see the progress on getting this back
Guy...just add the quick settings widget onto your homescreen if you're that crazy over quick on/off for GPS.
Or instal from market beautifull widgets....and dont cry.
Wysłane z mojego Transformer Prime TF201 za pomocą Tapatalk
Tairen said:
Guy...just add the quick settings widget onto your homescreen if you're that crazy over quick on/off for GPS.
Click to expand...
Click to collapse
I'm not your guy buddy... and do you really think I needed you to tell me I could do this? Please.
And BTW it is the power control widget.... not a "quick settings widget" d'ohhh
We had it in HC & lost it in ICS... I simply want it back
mibo666 said:
Or instal from market beautifull widgets....and dont cry.
Wysłane z mojego Transformer Prime TF201 za pomocą Tapatalk
Click to expand...
Click to collapse
See above .. and with your recommendation you get the joy of using that lame widget just to get taken to the settings only to then have to click back or home. And then maybe the app - 2-3 clicks versus 1
Lock-N-Load said:
I'm not your guy buddy...
Click to expand...
Click to collapse
Bbbbllllhahahhahaa!!!!!! ROFL!!!
Sent from my CM7 Atrix 4G
Lock-N-Load said:
I'm not your guy buddy... and do you really think I needed you to tell me I could do this? Please.
And BTW it is the power control widget.... not a "quick settings widget" d'ohhh
We had it in HC & lost it in ICS... I simply want it back
Click to expand...
Click to collapse
I don't really give a flying ape **** what it's called. If you know then use it...guy.
Yo, why is everyone so sour in this thread? What's the deal?
http://youtu.be/ONqYuqWY8iM
AJC9000 said:
http://youtu.be/ONqYuqWY8iM
Click to expand...
Click to collapse
Suddenly, my life seems so much clearer.
It's just a simple question!
+1 for getting the gps button back.
Verstuurd van mijn Transformer Prime TF201 met Tapatalk
gruntguy said:
Yo, why is everyone so sour in this thread? What's the deal?
Click to expand...
Click to collapse
They are just hating for no logical reason. We had it, we lost it, it is a logical quick settings item, lets get it back. How can you hate on that?
The ironic thing is that using a widget is designed to help or aid or speed up a process.... well so is having it back in the quick settings menu but that gets hated on?
If I had the skill to address this I would have done it the day ICS rolled out as clearly they took it out of the quick settings menu as a step to sweep the GPS issues under the rug - out of sight out of mind.
GPS Checkbox findings. Will update this post as I find more
So this is what I have found so far regarding GPS Checkbox missing code. I have been comparing the ICS SystemUI XML files with the HC SystemUI XML files.
I have found 3 pieces of code that differ so far.
SystemUI/res/values/ids.xml
Code:
<item type="id" name="quick_settings_powersaving_checkbox">false</item>
<item type="id" name="quick_settings_powersaving_separator">false</item>
<item type="id" name="quick_settings_normalspeed_checkbox">false</item>
<item type="id" name="quick_settings_normalspeed_separator">false</item>
<item type="id" name="quick_settings_turbo_checkbox">false</item>
<item type="id" name="quick_settings_turbo_separator">false</item>
<item type="id" name="quick_settings_dev_checkbox">false</item>
<item type="id" name="quick_settings_autorotate_checkbox">false</item>
<item type="id" name="quick_settings_wifi_checkbox">false</item>
<item type="id" name="quick_settings_bluetooth_checkbox">false</item>
<item type="id" name="quick_settings_silent_checkbox">false</item>
<item type="id" name="quick_settings_autosync_checkbox">false</item>
[B] [SIZE="4"]<item type="id" name="quick_settings_gps_checkbox">false</item>[/SIZE]
[/B]<item type="id" name="quick_settings_airplane_separator">false</item>
<item type="id" name="quick_settings_airplane_checkbox">false</item>
<item type="id" name="quick_settings_wifisharing_separator">false</item>
<item type="id" name="quick_settings_wifisharing_checkbox">false</item>
SystemUI/res/values/public.xml
Code:
<public type="id" name="quick_settings_powersaving_checkbox" id="0x7f0f0077" />
<public type="id" name="quick_settings_powersaving_separator" id="0x7f0f0078" />
<public type="id" name="quick_settings_normalspeed_checkbox" id="0x7f0f0079" />
<public type="id" name="quick_settings_normalspeed_separator" id="0x7f0f007a" />
<public type="id" name="quick_settings_turbo_checkbox" id="0x7f0f007b" />
<public type="id" name="quick_settings_turbo_separator" id="0x7f0f007c" />
<public type="id" name="quick_settings_dev_checkbox" id="0x7f0f007d" />
<public type="id" name="quick_settings_autorotate_checkbox" id="0x7f0f007e" />
<public type="id" name="quick_settings_wifi_checkbox" id="0x7f0f007f" />
<public type="id" name="quick_settings_bluetooth_checkbox" id="0x7f0f0080" />
<public type="id" name="quick_settings_silent_checkbox" id="0x7f0f0081" />
<public type="id" name="quick_settings_autosync_checkbox" id="0x7f0f0082" />
<public type="id" name="quick_settings_airplane_separator" id="0x7f0f0083" />
<public type="id" name="quick_settings_airplane_checkbox" id="0x7f0f0084" />
<public type="id" name="quick_settings_wifisharing_separator" id="0x7f0f0085" />
<public type="id" name="quick_settings_wifisharing_checkbox" id="0x7f0f0086" />
[B][SIZE="4"]<public type="id" name="quick_settings_gps_checkbox" id="0x7f0f00b8" />[/SIZE][/B]
This one above is a tricky one as it needs the creation of a new ID. Currently I have it right at the end of the file which is why the ID does not follow exactly (there are about 800 lines of code in the whole file). In the HC file it follows directly after autosync checkbox line. This is the ID that I believe needs to be added somewhere into the smali code also. However I currently have no idea where it needs to go as I cannot find the IDs for the other checkbox references anywhere in any of the SystemUI smali code.
SystemUI/res/layout-sw600dp/status_bar_quick_settings_switch.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.tablet.QuickSettingsSwitch android:orientation="vertical" android:background="@drawable/quick_settings_switch_bg" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.systemui.statusbar.tablet.QuickSettingsHorizontalScrollView android:orientation="horizontal" android:id="@id/onoff_scroller" android:scrollbars="none" android:layout_width="fill_parent" android:layout_height="69.0dip">
<LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
<CheckBox android:id="@id/quick_settings_powersaving_checkbox" android:background="@drawable/asus_ep_control_onoff_powersaving" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:button="@null" />
<View android:id="@id/quick_settings_powersaving_separator" android:background="@drawable/asus_ep_sepline4" android:visibility="gone" android:layout_width="1.0dip" android:layout_height="wrap_content" />
<CheckBox android:id="@id/quick_settings_normalspeed_checkbox" android:background="@drawable/asus_ep_control_onoff_normalspeed" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:button="@null" />
<View android:id="@id/quick_settings_normalspeed_separator" android:background="@drawable/asus_ep_sepline4" android:visibility="gone" android:layout_width="1.0dip" android:layout_height="wrap_content" />
<CheckBox android:id="@id/quick_settings_turbo_checkbox" android:background="@drawable/asus_ep_control_onoff_turbo" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:button="@null" />
<View android:id="@id/quick_settings_turbo_separator" android:background="@drawable/asus_ep_sepline4" android:visibility="gone" android:layout_width="1.0dip" android:layout_height="wrap_content" />
<CheckBox android:id="@id/quick_settings_dev_checkbox" android:background="@drawable/asus_ep_control_onoff_development" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:button="@null" />
<View android:background="@drawable/asus_ep_sepline3" android:layout_width="1.0dip" android:layout_height="wrap_content" />
<CheckBox android:id="@id/quick_settings_autorotate_checkbox" android:background="@drawable/asus_ep_control_onoff_autorotate" android:layout_width="wrap_content" android:layout_height="wrap_content" android:button="@null" />
<View android:background="@drawable/asus_ep_sepline3" android:layout_width="1.0dip" android:layout_height="wrap_content" />
<CheckBox android:id="@id/quick_settings_wifi_checkbox" android:background="@drawable/asus_ep_control_onoff_wifi" android:layout_width="wrap_content" android:layout_height="wrap_content" android:button="@null" />
<View android:background="@drawable/asus_ep_sepline3" android:layout_width="1.0dip" android:layout_height="wrap_content" />
<CheckBox android:id="@id/quick_settings_bluetooth_checkbox" android:background="@drawable/asus_ep_control_onoff_bluetooth" android:layout_width="wrap_content" android:layout_height="wrap_content" android:button="@null" />
<View android:background="@drawable/asus_ep_sepline3" android:layout_width="1.0dip" android:layout_height="wrap_content" />
<CheckBox android:id="@id/quick_settings_silent_checkbox" android:background="@drawable/asus_ep_control_onoff_silent" android:layout_width="wrap_content" android:layout_height="wrap_content" android:button="@null" />
<View android:background="@drawable/asus_ep_sepline3" android:layout_width="1.0dip" android:layout_height="wrap_content" />
<CheckBox android:id="@id/quick_settings_autosync_checkbox" android:background="@drawable/asus_ep_control_onoff_autosync" android:layout_width="wrap_content" android:layout_height="wrap_content" android:button="@null" />
[B][SIZE="4"]<View android:background="@drawable/asus_ep_sepline3" android:layout_width="1.0dip" android:layout_height="wrap_content" />
<CheckBox android:id="@id/quick_settings_gps_checkbox" android:background="@drawable/asus_ep_control_onoff_gps" android:layout_width="wrap_content" android:layout_height="wrap_content" android:button="@null" />[/SIZE][/B]
<View android:id="@id/quick_settings_airplane_separator" android:background="@drawable/asus_ep_sepline3" android:visibility="gone" android:layout_width="1.0dip" android:layout_height="wrap_content" />
<CheckBox android:id="@id/quick_settings_airplane_checkbox" android:background="@drawable/asus_ep_control_onoff_flightmode" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:button="@null" />
<View android:id="@id/quick_settings_wifisharing_separator" android:background="@drawable/asus_ep_sepline3" android:visibility="gone" android:layout_width="1.0dip" android:layout_height="wrap_content" />
<CheckBox android:id="@id/quick_settings_wifisharing_checkbox" android:background="@drawable/asus_ep_control_onoff_wifisharing" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:button="@null" />
</LinearLayout>
</com.android.systemui.statusbar.tablet.QuickSettingsHorizontalScrollView>
</com.android.systemui.statusbar.tablet.QuickSettingsSwitch>
So these are my findings so far. From what I can see I think that these are the only 3 files in SystemUI that need this modification, other than the possible smali code addition, but that is gonna take a lot more research.
Unfortunately it seems that currently although we can decompile SystemUI.apk with apktool, even if we make no modifications we cannot recompile SystemUI.apk
So currently all this is very much theory, but I'm enjoying the research.
Thanks to Lock-N-Load for the original idea and the words of encouragement, and thanks to reNeglect for being so gracious to allow us to hijack his thread and for also helping with trying to recompile the file.
Stay tuned.
To update users coming in... Doktaphex and reNeglect and I have been tracking down a way to get the GPS icon back into the quick settings menu where it was before Asus nixed it from the ICS build for no other reason than to try to sweep the GPS issue under the rug. we high jacked reNeglect's thread on some other quick settings mods he has done, so now it is time to bring it back to this thread and give him back his thread
Doktaphex, by tediously comparing HC and ICS files, has found some references we believe are the code bits removed so as to remove that icon - that is what is above. We also found that the GPS quick settings icons - 3 of them - are still in the SystemUI - they have just been "turned off" so to speak from being seen and used.
So, right now, it is easy to make the changes to the above code lines, but we cannot yet compile and test under ICS. It is great progress and I have no doubt this will be cracked.
Man, I'd love to take a crack at this, but I'm a little wary of replacing system files without having recovery available. :/
Noxious Ninja said:
Man, I'd love to take a crack at this, but I'm a little wary of replacing system files without having recovery available. :/
Click to expand...
Click to collapse
The more brains on board the better. At the moment though just getting systemUI to recompile is a problem, so there's currently no danger in even trying to replace the file
However, reNeglect did have a nasty experience with trying to mod some framework stuff and getting a soft-brick. So I can understand your wariness.
Doktaphex said:
This one above is a tricky one as it needs the creation of a new ID. Currently I have it right at the end of the file which is why the ID does not follow exactly (there are about 800 lines of code in the whole file). In the HC file it follows directly after autosync checkbox line. This is the ID that I believe needs to be added somewhere into the smali code also. However I currently have no idea where it needs to go as I cannot find the IDs for the other checkbox references anywhere in any of the SystemUI smali code.
Click to expand...
Click to collapse
Do the other existing IDs in the ICS file all match the same call to the IDs in the HC file and that is where you got the ID for the GPS line? Or did you just make it up using logic as the next number? Point is, if the other IDs are the same across each file, it seems logical and stands to reason the same code and line and ID would be put in the ICS file.
Also, if you search the entire SystemUI for just 1 of those other IDs and it does not show up in any other file but that file I am not so sure that there then is another call out there in some file to that ID. If so, you think it is outside SystemUI?
Nope all IDs are completely different than the HC ones, and searching for any of the other IDs will take a while, as I think the only time they are referenced at all is in the smali code, have to open each file and then do a search inside that file. There are a shed load of them.
Damn.. okay here is an idea
Maybe how about look and see if the Moto Xoom ICS has a system dump yet and if it has these files and do a compare as that will be ICS to ICS? See how those differ? (I am about to see if I can do the same on the wpa_supplicant issue to get ad hoc support for tethering IF the dump is available yet.)
Lock-N-Load said:
Damn.. okay here is an idea
Maybe how about look and see if the Moto Xoom ICS has a system dump yet and if it has these files and do a compare as that will be ICS to ICS? See how those differ? (I am about to see if I can do the same on the wpa_supplicant issue to get ad hoc support for tethering IF the dump is available yet.)
Click to expand...
Click to collapse
The problem here is that those quicksettings checkboxes are exclusive to ASUS' UI enhancements, therefore they won't be referenced in any other builds from another manufacturer.
Doktaphex said:
The problem here is that those quicksettings checkboxes are exclusive to ASUS' UI enhancements, therefore they won't be referenced in any other builds from another manufacturer.
Click to expand...
Click to collapse
ahhh yeah.. damn, got ahead of myself. my bad.
I'm running Cm10 right now and I am doing some minor theming for myself. I am trying to get the battery indicator to change, but no matter where I replace the battery icons I'm still getting the solid blue after flashing over. Everything else is changing as expected, where are the files that I should be changing in framework-res?
gdrocks said:
I'm running Cm10 right now and I am doing some minor theming for myself. I am trying to get the battery indicator to change, but no matter where I replace the battery icons I'm still getting the solid blue after flashing over. Everything else is changing as expected, where are the files that I should be changing in framework-res?
Click to expand...
Click to collapse
Someone correct me if I'm wrong, but I believe for the EVO LTE, the battery icons are in the SystemUI apk.
Sent from my HTC EVO 4G LTE
DNarsingh said:
Someone correct me if I'm wrong, but I believe for the EVO LTE, the battery icons are in the SystemUI apk.
Sent from my HTC EVO 4G LTE
Click to expand...
Click to collapse
you are correct
I have problems with the battery indicator in CM10 nightly on my SGS2 i9100g as well.
The problem is when the phone is off and I connect the charger, it will only show me the battery and a loading symbol, but no progress (green part).
Any ideas if this will be fixed anytime soon? I'd really like to use CM10 but I can't because of this issue.
Thanks a ton Dnarsingh and dased14! I didn't even look for SystemUI in /apps because I thought it was only for Sense. Now I just need to figure out why I can't change the icons for the Phone and Messaging apps :/
@diegoviola that seems like a fairly easy bug to fix; if it isn't fixed in the nightlies I would suggest the following (Only if you know what you are doing...and have nandroids)
1) Decompile the framework-res.apk
2) Goto res/drawable
3) Open stat_sys_battery_charge.xml
There should be a list here with items pointing to the .png and a max level for when they should kick in.
For an example here is the contents of my xml from Deck's CM10
Code:
<?xml version="1.0" encoding="utf-8"?>
<level-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/stat_sys_battery_charge_anim0" android:maxLevel="4" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim15" android:maxLevel="15" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim28" android:maxLevel="35" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim43" android:maxLevel="49" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim57" android:maxLevel="60" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim71" android:maxLevel="75" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim85" android:maxLevel="90" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim100" android:maxLevel="100" />
</level-list>
@gdrocks: Please let me know when this is fixed in the nightly. Thanks.
This issue doesn't exist in the CM10 nightly for the HTC Evo 4g LTE. I don't know what's going on with SGS2 phones, never had one.
gdrocks said:
This issue doesn't exist in the CM10 nightly for the HTC Evo 4g LTE. I don't know what's going on with SGS2 phones, never had one.
Click to expand...
Click to collapse
Thanks for letting me know. Do you know who is the maintainer of SGS2 builds, or if he could somewhat test this? I wonder if the maintainer of the SGS2 (i9100g) builds is aware of this problem.
Should I report it to a bug tracker?
Thanks.
@gdrocks
As I mentioned in your other thread you can change the battery icons with theme chooser themes. You can change almost everything with them. Start with a free theme you can find on the market or on xda and see how they are put together. Then start changing the images in the theme and test away until you get what you want.
Sent from my EVO using Tapatalk 2
Hi there !!
This is called CellBroadcast Receiver. no doubt everyone having a phone knows what it is... its real time update receiver from your network. and in a emergency situation its the most reliable and fasted method than regular SMS.
Everyone might not like this one. for some it will be useless. but for some it will be handy. all depend of the geographical location where you live and the network you use. so if it's useless to you then bye and have a nice day
ok for those who likes it this is for you . i have seen this in JB 4.2 Rom but never in 4.1 .
there are 3 options for you to have this app.
1. move app to system/app and use it - you will not get a menu but once u receives a notification then u can select the Settings options.
2. u can move app as well as Settings app . - you will have a menu in your settings under Wireless and Network
3. u can follow the tutorial in Post #2 and add it to your Settings menu. this way u can add it either on a main menu or in a sub menu
CellBroadcastReceiver app
Settings app with Cell broadcast menu
Hope you will like it
like to thank @Ticklefish for his wonderful tool @saqib nazm @Diaz1999 for there tutorials about how to add expended settings and tips
ok lets do the tutorial..............
things u need
1. Settings app from your ROM zip. ( system/app)
2. tool can be used to decompile and recompile . My recommendation TickleMyAndroid by @Ticklefish
3 Notepad +
============================================================================
1 Decompile Settings app
2 go to res\xml\settings_headers
3 find
<header android:icon="@drawable/ic_settings_data_usage" android:id="@id/data_usage_settings" android:title="@string/data_usage_summary_title" android:fragment="com.android.settings.DataUsageSummary" />
Click to expand...
Click to collapse
4 add
<header android:icon="@drawable/ic_settings_cell" android:id="@id/cell_settings" android:title="@string/cell_settings_title">
<intent android:targetPackage="com.android.cellbroadcastreceiver" android:action="android.intent.action.MAIN" android:targetClass="com.android.cellbroadcastreceiver.CellBroadcastListActivity" />
</header>
Click to expand...
Click to collapse
5 so it will look like this
<header android:icon="@drawable/ic_settings_data_usage" android:id="@id/data_usage_settings" android:title="@string/data_usage_summary_title" android:fragment="com.android.settings.DataUsageSummary" />
<header android:icon="@drawable/ic_settings_cell" android:id="@id/cell_settings" android:title="@string/cell_settings_title">
<intent android:targetPackage="com.android.cellbroadcastreceiver" android:action="android.intent.action.MAIN" android:targetClass="com.android.cellbroadcastreceiver.CellBroadcastListActivity" />
</header>
Click to expand...
Click to collapse
6. save
Go to Res\values\ids.xml
1 find
<item type="id" name="wireless_settings">false</item>
Click to expand...
Click to collapse
2 add
<item type="id" name="cell_settings">false</item>
Click to expand...
Click to collapse
3 so it will look like this
<item type="id" name="wireless_settings">false</item>
<item type="id" name="cell_settings">false</item>
Click to expand...
Click to collapse
4 save
Go to res\valus\strings.xml
1 . find
string name="status_wifi_mac_address">Wi-Fi MAC address</string>
Click to expand...
Click to collapse
2 add
<string name="cell_settings_title">CellBroadcast Receiver</string>
Click to expand...
Click to collapse
3 so it will be look like this
<string name="status_wifi_mac_address">Wi-Fi MAC address</string>
<string name="cell_settings_title">CellBroadcast Receiver</string>
Click to expand...
Click to collapse
4 Save
download this png and copy to res\drawable-hdpi folder
ok now recompile and move to system/app . no need to reboot as soon as u set correct permissions ( RW-R-R) settings will be displayed with the changes you have made
NOTE- above was based on my settings app where i prefer cellbroadcast menu in a main menu as shown in the pictures. if u like u can set the menu under some sub menu . eg- inside More in wireless and network menu.
this is mine too
cool, bro! nice contribution!!! (with TuT & all )
but just for interest can u tell me a example for practical use of cellbroadcastreciver-messages, as my friend also asked i never had to do with this app ???
bejunk said:
cool, bro! nice contribution!!! (with TuT & all )
but just for interest can u tell me a example for practical use of cellbroadcastreciver-messages, as my friend also asked i never had to do with this app ???
Click to expand...
Click to collapse
thanks bro well in some network operators send alerts to mobile which is cell broadcast messages. for eg. warning messages/ news and weather alerts / location info etc. it really matters where you live and the network operator u use. as i know its very much in Use in United States. if u go through the 2nd picture u can see type of messages it receives. and Cell broadcast is real when it comes to SMS based alert system cos you maybe knowing in an emergency situation most networks SMS and voice get jammed.
but all depend of the network. in my country i get only location names as broadcast messages. meaning when i travel i receive name of the place by this app. LOL and 95 % it can be described as a useless feature but then again for some people its real value feature
give it a try and see what u get from ur phone operator
As the title says, i wish to know where are these 2 gps icons (the blue satellite is in systemui, i mean the other 2 green ones).
Searched and decompiled everywhere but i couldn't find them.
SS follow attached, waiting for your amswers...
Thanks
Sent from Hacker's U via XDA app
hackerpower said:
As the title says, i wish to know where are these 2 gps icons (the blue satellite is in systemui, i mean the other 2 green ones).
Searched and decompiled everywhere but i couldn't find them.
SS follow attached, waiting for your amswers...
Thanks
Click to expand...
Click to collapse
Are you thinking about this icon?
Its " stat_sys_battery_charge_anim3" from \res\drawable-hdpi in framework-res.apk
No, that's a battery icon.
I'm searching for the icon that alternates with the satellite flashing when it's trying to lock the gps and for the icon that appears when the gps gets that lock. 2 icons.
Sent from Hacker's U via XDA app
Yes, i know that the icon i gave you its for battery, but the "icon that alternates with the satellite flashing when it's trying to lock the gps... " in your screenshot its the icon for battery , and that's the wrong icon, it should be another one
edit:
I think that your SystemUI point's to a wrong icon from the framework, its not a framework bug, its SystemUI bug, i had that problem so..
pirej said:
Yes, i know that the icon i gave you its for battery, but the "icon that alternates with the satellite flashing when it's trying to lock the gps... " in your screenshot its the icon for battery , and that's the wrong icon, it should be another one
edit:
I think that your SystemUI point's to a wrong icon from the framework, its not a framework bug, its SystemUI bug, i had that problem so..
Click to expand...
Click to collapse
But the untouched stock rom showed the same icons...
Can you post SS of your gps icons flashing and locked?
Thanks
My phone is little... not feeling well
I flashed someone's rom, and after factory reset.. boot-loop...so, im thinking what to do, what ftf to flash.. e.t.c.
But, if you decompile your SystemUI, and go to "SystemUI.apk\res\drawable\stat_sys_gps_acquiring_anim.xml " you should see the error
It should be something like:
Code:
<?xml version="1.0" encoding="utf-8"?>
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="500" android:drawable="@drawable/stat_sys_gps_acquiring" />
<item android:duration="500" android:drawable="@*android:drawable/stat_sys_gps_on" />
</animation-list>
And not like the one below or similar..
Code:
<?xml version="1.0" encoding="utf-8"?>
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="500" android:drawable="@drawable/stat_sys_gps_acquiring" />
<item android:duration="500" android:drawable="@*android:drawable/stat_sys_data_wimax_signal_disconnected" />
</animation-list
When i wake up my phone ill make screenshots, but you can try my mod with toggles and framework, or just the toggles(SystemUI), its for stock xperia u b.1.100 , and i know that i had no icon bugs for gps or any other icon bug.
pirej said:
My phone is little... not feeling well
I flashed someone's rom, and after factory reset.. boot-loop...so, im thinking what to do, what ftf to flash.. e.t.c.
But, if you decompile your SystemUI, and go to "SystemUI.apk\res\drawable\stat_sys_gps_acquiring_anim.xml " you should see the error
It should be something like:
Code:
<?xml version="1.0" encoding="utf-8"?>
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="500" android:drawable="@drawable/stat_sys_gps_acquiring" />
<item android:duration="500" android:drawable="@*android:drawable/stat_sys_gps_on" />
</animation-list>
And not like the one below or similar..
Code:
<?xml version="1.0" encoding="utf-8"?>
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="500" android:drawable="@drawable/stat_sys_gps_acquiring" />
<item android:duration="500" android:drawable="@*android:drawable/stat_sys_data_wimax_signal_disconnected" />
</animation-list
When i wake up my phone ill make screenshots, but you can try my mod with toggles and framework, or just the toggles(SystemUI), its for stock xperia u b.1.100 , and i know that i had no icon bugs for gps or any other icon bug.
Click to expand...
Click to collapse
You're right! This is what i have:
Code:
<?xml version="1.0" encoding="utf-8"?>
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="500" android:drawable="@drawable/stat_sys_gps_acquiring" />
<item android:duration="500" android:drawable="@*android:drawable/stat_sys_battery_charge_anim2" />
</animation-list>
I was using fared xtreme moded systemui, he made that mistake, thanks pirej
No problem, glad to help.
I have a working phone now
This are screenshots of gps search and lock
Pirej my friend, yet another problem.
Now when the gps is aquiring a satellite the right icons flash alternatively, but when it gets a lock it changes to that battery icon.
Isn't there another. Xml that has to be edited?
Thanks in advance
Sent from Hacker's U via XDA app
Code:
Isn't there another. Xml that has to be edited?
Probably there is, but.. ill have to look for it
Again, you can use my moded SystemUI and Framework.. just for testing purposes, the 2 of them are 100 compatible and without icon bugs.
I tried my SystemUI (bug-less for b.1.100) on ics b.1.10 STOCK, and it had wrong gps icons, so.. it may have something to do with your framework too
I dont have too much free time this day's, but if you give me your Framework and SystemUI maybe i can do something.
pirej said:
Code:
Isn't there another. Xml that has to be edited?
Probably there is, but.. ill have to look for it
Again, you can use my moded SystemUI and Framework.. just for testing purposes, the 2 of them are 100 compatible and without icon bugs.
I tried my SystemUI (bug-less for b.1.100) on ics b.1.10 STOCK, and it had wrong gps icons, so.. it may have something to do with your framework too
I dont have too much free time this day's, but if you give me your Framework and SystemUI maybe i can do something.
Click to expand...
Click to collapse
Here you go...
https://mega.co.nz/#!h95iyD4D!WGCy0BzzZRaAGxOGb25DuXq7iUEn9DhO5pgB0BsHYT8
Sorry, i cant find the reason for the wrong icon showing..
Strange...no clue?
Sent from Hacker's U via XDA app
No problem, already fixed it!
Thanks for everything pirej :thumbup:
Sent from Hacker's U via XDA app
hackerpower said:
No problem, already fixed it!
Thanks for everything pirej :thumbup:
Sent from Hacker's U via XDA app
Click to expand...
Click to collapse
Great, could you tell me how you fix it ?
Flashed latest fared xtreme tron statusbar and moded from there.
I was using an old version because of how it looked.
Sent from Hacker's U via XDA app
Hello all AmazeFit users
He has recently been working on some modifications
But most want our smartwatch to be more energy efficient
I know that this can be done by modifying the framework-res.apk and by the power_profile.xml file
Code:
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="none">0</item>
<item name="screen.on">8</item>
<item name="screen.full">9.7</item>
<item name="bluetooth.off">0</item>
<item name="bluetooth.sniff">0.2</item>
<item name="bluetooth.disconnected">0.33</item>
<item name="bluetooth.active">10</item>
<item name="wifi.on">0.6</item>
<item name="wifi.active">71.3</item>
<item name="wifi.scan">46</item>
<item name="vibrator.Lstrength">36</item>
<item name="vibrator.Hstrength">64</item>
<item name="dsp.audio">14.1</item>
<item name="dsp.video">80.1</item>
<item name="radio.active">0</item>
<item name="radio.scanning">0</item>
<item name="gps.on">4.5</item>
<array name="radio.on">
<value>0.0</value>
<value>0.0</value>
</array>
<array name="cpu.speeds">
<value>200000</value>
<value>300000</value>
<value>984000</value>
</array>
<item name="cpu.idle">0.86</item>
<item name="cpu.awake">18</item>
<array name="cpu.active">
<value>96.6</value>
<value>96.6</value>
<value>96.6</value>
</array>
<item name="battery.capacity">295</item>
</device>
If you want to help to make (modify) this file please ask for suggestions.
BTW. As you can see the CPU certainly does not come at full speed, and what strange is less clocked at rest than the manufacturer - I think and it can still change
Regards... 7
reservation 1
reservation 2
Where to put the file?
Attached Files
add as an attachment
who is he ?
Changing power_profile.xml will not make our devices more energy efficient. The values provided in this file are measured by the manufacturer and tell the system how much current (in mA) is used by the components in different states.
Changing any values will only fake battery use statistics.
I think differently
I made my own modifications to the file and is testing it
But ok, I will not argue
1immortal said:
who is he ?
Click to expand...
Click to collapse
I'm wondering as well
Sent from my XT1635-02 using Tapatalk
S3V3N said:
I think differently
I made my own modifications to the file and is testing it
But ok, I will not argue
Click to expand...
Click to collapse
You might read https://source.android.com/devices/tech/power/values