[GUIDE] default.xml and build.prop tweaks for Sprint HTC One M8

Search This thread

ycats

Senior Member
Feb 27, 2007
2,394
263
Nolensville, Tennessee
I've done that too...........but when I use the TWRP file manager, I can't find the appropiate folder.

---------- Post added at 09:04 AM ---------- Previous post was at 08:55 AM ----------

If you don't mind, explain to me the steps using ADB.
 

ahecht

Senior Member
Oct 23, 2010
526
315
I've done that too...........but when I use the TWRP file manager, I can't find the appropiate folder.

---------- Post added at 09:04 AM ---------- Previous post was at 08:55 AM ----------

If you don't mind, explain to me the steps using ADB.

Assuming you have ADB working on your computer, boot into TWRP, hit mount, mount system.

Then, on your computer, open a command window from the same directory as default.xml.modified.txt and do:
Code:
adb shell "mv /system/customize/ACC/default.xml /system/customize/ACC/default.xml.bak"
adb push default.xml.modified.txt /system/customize/ACC/default.xml
 
  • Like
Reactions: ycats

Captain_Throwback

Recognized Developer
The line for national roaming in the default.xml shouldn't be necessary for roaming by default. My device roams fine without it.

Also, I didn't see the option to enable Beats in the OP.
Code:
<item type="boolean" name="support_beats_audio">true</item>
vanegatu.jpg
 

josh030181

Senior Member
Dec 29, 2010
634
128
Baltimoe,Md
I thought I would try to compile some of the useful tweaks for /system/build.prop and /system/customize/ACC/default.xml here. Feel free to respond with other tweaks. Change the line with a - to the line with a +.

/system/build.prop
Code:
***** Enable Tethering UI (thanks Captain_Throwback) *********************
-ro.wifi.hotspotUI=0
+ro.wifi.hotspotUI=1

-ro.bt.tetheringUI=0
+ro.bt.tetheringUI=1

-ro.usb.tetheringUI=0
+ro.usb.tetheringUI=1

***** Enable EPST ********************************************************
-ro.build.type=user
+ro.build.type=dev

***** Disable ADB Icon ***************************************************
+persist.adb.notify=0

/system/customize/ACC/default.xml
Code:
***** Disable NFC Icon in statusbar **************************************
-<item type="integer" name="nfc_show_icon">1</item>
+<item type="integer" name="nfc_show_icon">0</item>

***** Allow roaming by default (shouldn't be necessary) ******************
-<item type="boolean" name="allow_national_roaming">false</item>
+<item type="boolean" name="allow_national_roaming">true</item>

***** Disable "Set Timezone" notification ********************************
-<item type="boolean" name="disable_timezone_notification">false</item>
+<item type="boolean" name="disable_timezone_notification">true</item>

***** Set blinkfeed to not be the default home screen ********************
-<item type="boolean" name="default_blink_feed">true</item>
+<item type="boolean" name="default_blink_feed">false</item>

***** Disable Spark icon (DOESN'T WORK) **********************************
-<item type="boolean" name="data_icon_s4t_spark_enable">true</item>
+<item type="boolean" name="data_icon_s4t_spark_enable">false</item>

***** Tether Hack (requires installation of script from  *****************
***** http://xdaforums.com/showthread.php?t=2712222 ***********
-<item type="boolean" name="tethering_guard_support">true</item>
+<item type="boolean" name="tethering_guard_support">false</item>

-<item type="integer" name="tethering_support_ipv6">0</item>
+<item type="integer" name="tethering_support_ipv6">1</item>

-<item type="boolean" name="use_default_profile_for_tethering">false</item>
+<item type="boolean" name="use_default_profile_for_tethering">true</item>

-<item type="integer" name="TetheringGuard_Rule">2</item>
+<item type="integer" name="TetheringGuard_Rule">0</item>

***** Enable horizontal quick-settings in status bar using the ***********
***** first five quick settings icons. These can be reordered ************
***** using the edit button on the regular quick settings screen *********
-<item type="boolean" name="support_minor_quicksettings">false</item>
+<item type="boolean" name="support_minor_quicksettings">true</item>

***** User AOSP-style recent apps ****************************************
-<item type="boolean" name="support_HtcStyleRecentApp">true</item>
+<item type="boolean" name="support_HtcStyleRecentApp">false</item>

-<item type="boolean" name="isHtcStyleRecentApp">true</item>
+<item type="boolean" name="isHtcStyleRecentApp">false</item>

***** Enable Harman/Kardon audio setting (requires H/K firmware from *****
***** http://xdaforums.com/showthread.php?t=2729173) **********
-<item type="boolean" name="support_harman">false</item>
+<item type="boolean" name="support_harman">true</item>

-<item type="boolean" name="support_boomsound_effect">true</item>
+<item type="boolean" name="support_boomsound_effect">false</item>

***** Enable Beats audio setting (may not have any effect) ***************
-<item type="boolean" name="support_beats_audio">false</item>
+<item type="boolean" name="support_beats_audio">true</item>

-<item type="boolean" name="support_boomsound_effect">true</item>
+<item type="boolean" name="support_boomsound_effect">false</item>

***** Enable Music Channel Setting ***************************************
-<item type="boolean" name="support_music_channel">false</item>
+<item type="boolean" name="support_music_channel">true</item>

***** Add Tethering quick-setting icons **********************************
***** to select by using the edit button on the QS screen ****************
***** (Add the lines with a + next to them, without the "+") *************
  <item type="integer-array" name="quick_setting_available_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>18</int>
    <int>19</int>
    <int>20</int>
    <int>22</int>
    <int>24</int>
    <int>25</int>
    <int>26</int>
  </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>22</int>
  </item>

I've uploaded copies of the 1.54 build.prop and default.xml with all these changes below. Just remove .1.54.modified.txt, move them to the appropriate place on your phone, and do chmod 644 on build.prop (save a backup of the old files first!).

While looking thru the default.xml file I noticed by download path and file manager text to true it will allow you to select a download path in the stock browser instead of going to the download folder by default.



Sent from my 831C using XDA Premium 4 mobile app
 

Attachments

  • 1398741256456.jpg
    1398741256456.jpg
    105.5 KB · Views: 794

mizzou626

Member
May 11, 2014
24
0
I thought I would try to compile some of the useful tweaks for /system/build.prop and /system/customize/ACC/default.xml here. Feel free to respond with other tweaks. Change the line with a - to the line with a +.

/system/build.prop
Code:
***** Enable Tethering UI (thanks Captain_Throwback) *********************
-ro.wifi.hotspotUI=0
+ro.wifi.hotspotUI=1

-ro.bt.tetheringUI=0
+ro.bt.tetheringUI=1

-ro.usb.tetheringUI=0
+ro.usb.tetheringUI=1

***** Enable EPST ********************************************************
-ro.build.type=user
+ro.build.type=dev

***** Disable ADB Icon ***************************************************
+persist.adb.notify=0

/system/customize/ACC/default.xml
Code:
***** Disable NFC Icon in statusbar **************************************
-<item type="integer" name="nfc_show_icon">1</item>
+<item type="integer" name="nfc_show_icon">0</item>

***** Allow roaming by default (shouldn't be necessary) ******************
-<item type="boolean" name="allow_national_roaming">false</item>
+<item type="boolean" name="allow_national_roaming">true</item>

***** Disable "Set Timezone" notification ********************************
-<item type="boolean" name="disable_timezone_notification">false</item>
+<item type="boolean" name="disable_timezone_notification">true</item>

***** Set blinkfeed to not be the default home screen ********************
-<item type="boolean" name="default_blink_feed">true</item>
+<item type="boolean" name="default_blink_feed">false</item>

***** Disable Spark icon (DOESN'T WORK) **********************************
-<item type="boolean" name="data_icon_s4t_spark_enable">true</item>
+<item type="boolean" name="data_icon_s4t_spark_enable">false</item>

***** Tether Hack (requires installation of script from  *****************
***** http://xdaforums.com/showthread.php?t=2712222 ***********
-<item type="boolean" name="tethering_guard_support">true</item>
+<item type="boolean" name="tethering_guard_support">false</item>

-<item type="integer" name="tethering_support_ipv6">0</item>
+<item type="integer" name="tethering_support_ipv6">1</item>

-<item type="boolean" name="use_default_profile_for_tethering">false</item>
+<item type="boolean" name="use_default_profile_for_tethering">true</item>

-<item type="integer" name="TetheringGuard_Rule">2</item>
+<item type="integer" name="TetheringGuard_Rule">0</item>

***** Enable horizontal quick-settings in status bar using the ***********
***** first five quick settings icons. These can be reordered ************
***** using the edit button on the regular quick settings screen *********
-<item type="boolean" name="support_minor_quicksettings">false</item>
+<item type="boolean" name="support_minor_quicksettings">true</item>

***** User AOSP-style recent apps ****************************************
-<item type="boolean" name="support_HtcStyleRecentApp">true</item>
+<item type="boolean" name="support_HtcStyleRecentApp">false</item>

-<item type="boolean" name="isHtcStyleRecentApp">true</item>
+<item type="boolean" name="isHtcStyleRecentApp">false</item>

***** Enable Harman/Kardon audio setting (requires H/K firmware from *****
***** http://xdaforums.com/showthread.php?t=2729173) **********
-<item type="boolean" name="support_harman">false</item>
+<item type="boolean" name="support_harman">true</item>

-<item type="boolean" name="support_boomsound_effect">true</item>
+<item type="boolean" name="support_boomsound_effect">false</item>

***** Enable Beats audio setting (may not have any effect) ***************
-<item type="boolean" name="support_beats_audio">false</item>
+<item type="boolean" name="support_beats_audio">true</item>

-<item type="boolean" name="support_boomsound_effect">true</item>
+<item type="boolean" name="support_boomsound_effect">false</item>

***** Enable Music Channel Setting ***************************************
-<item type="boolean" name="support_music_channel">false</item>
+<item type="boolean" name="support_music_channel">true</item>

***** Allow selection of download location in stock browser **************
-<item type="boolean" name="support_download_path">false</item>
-<item type="boolean" name="support_filemanager">false</item>
+<item type="boolean" name="support_download_path">true</item>
+<item type="boolean" name="support_filemanager">true</item>

***** Add Tethering quick-setting icons **********************************
***** to select by using the edit button on the QS screen ****************
***** (Add the lines with a + next to them, without the "+") *************
  <item type="integer-array" name="quick_setting_available_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>18</int>
    <int>19</int>
    <int>20</int>
    <int>22</int>
    <int>24</int>
    <int>25</int>
    <int>26</int>
  </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>22</int>
  </item>

I've uploaded copies of the 1.54 build.prop and default.xml with all these changes below. Just remove .1.54.modified.txt, move them to the appropriate place on your phone, and do chmod 644 on build.prop (save a backup of the old files first!).

Could you post the stock default.xml file by chance? I'm trying to update to the new 4.4.4 OTA but the update keeps failing due to the modifications in my default.xml. I've replaced all of the lines I know to replace but it still must be different. Thanks!
 

Sloth

Inactive RC / Retired Forum Moderator
Apr 23, 2012
10,699
11,300
Xda-Dev,NV
Could you post the stock default.xml file by chance? I'm trying to update to the new 4.4.4 OTA but the update keeps failing due to the modifications in my default.xml. I've replaced all of the lines I know to replace but it still must be different. Thanks!
Why not flash a stock rom?
 

Garrett_PL

Senior Member
Sep 18, 2014
73
12
It is possible to hide AccuWeather logo in weather app thru default.xml file editing. There is like with _vendor_name_ in it. Just change the value.

Second thing I did was, choosing LTE logo instead 4G on top of the screen. Line with _show_4G_instead_LTE_ Changed from true to false.
 

klevismartini

Senior Member
Jun 24, 2013
79
2
tirana
original default.xml file 4.4.4 PLEASE

Hi, could anyone please upload the original file of the default.xml?
I replaced it with the hk version and the phone is not getting stable service.
Thanks
 

smeejaytee

Inactive Recognized Contributor
Sep 29, 2013
7,820
4,106
43
kent
Xiaomi Mi 10T / 10T Pro
Hi I can see you've got the lines to enable beats but do you happen to know the effect number, I know that hk is -1 and jbl is 4 etc but I'm after the effect number HTC uses for beats audio TIA.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 19
    I thought I would try to compile some of the useful tweaks for /system/build.prop and /system/customize/ACC/default.xml here. Feel free to respond with other tweaks. Change the line with a - to the line with a +.

    /system/build.prop
    Code:
    ***** Enable Tethering UI (thanks Captain_Throwback) *********************
    -ro.wifi.hotspotUI=0
    +ro.wifi.hotspotUI=1
    
    -ro.bt.tetheringUI=0
    +ro.bt.tetheringUI=1
    
    -ro.usb.tetheringUI=0
    +ro.usb.tetheringUI=1
    
    ***** Enable EPST ********************************************************
    -ro.build.type=user
    +ro.build.type=dev
    
    ***** Disable ADB Icon ***************************************************
    +persist.adb.notify=0

    /system/customize/ACC/default.xml
    Code:
    ***** Disable NFC Icon in statusbar **************************************
    -<item type="integer" name="nfc_show_icon">1</item>
    +<item type="integer" name="nfc_show_icon">0</item>
    
    ***** Allow roaming by default (shouldn't be necessary) ******************
    -<item type="boolean" name="allow_national_roaming">false</item>
    +<item type="boolean" name="allow_national_roaming">true</item>
    
    ***** Disable "Set Timezone" notification ********************************
    -<item type="boolean" name="disable_timezone_notification">false</item>
    +<item type="boolean" name="disable_timezone_notification">true</item>
    
    ***** Set blinkfeed to not be the default home screen ********************
    -<item type="boolean" name="default_blink_feed">true</item>
    +<item type="boolean" name="default_blink_feed">false</item>
    
    ***** Disable Spark icon (DOESN'T WORK) **********************************
    -<item type="boolean" name="data_icon_s4t_spark_enable">true</item>
    +<item type="boolean" name="data_icon_s4t_spark_enable">false</item>
    
    ***** Tether Hack (requires installation of script from  *****************
    ***** http://xdaforums.com/showthread.php?t=2712222 ***********
    -<item type="boolean" name="tethering_guard_support">true</item>
    +<item type="boolean" name="tethering_guard_support">false</item>
    
    -<item type="integer" name="tethering_support_ipv6">0</item>
    +<item type="integer" name="tethering_support_ipv6">1</item>
    
    -<item type="boolean" name="use_default_profile_for_tethering">false</item>
    +<item type="boolean" name="use_default_profile_for_tethering">true</item>
    
    -<item type="integer" name="TetheringGuard_Rule">2</item>
    +<item type="integer" name="TetheringGuard_Rule">0</item>
    
    ***** Enable horizontal quick-settings in status bar using the ***********
    ***** first five quick settings icons. These can be reordered ************
    ***** using the edit button on the regular quick settings screen *********
    -<item type="boolean" name="support_minor_quicksettings">false</item>
    +<item type="boolean" name="support_minor_quicksettings">true</item>
    
    ***** User AOSP-style recent apps ****************************************
    -<item type="boolean" name="support_HtcStyleRecentApp">true</item>
    +<item type="boolean" name="support_HtcStyleRecentApp">false</item>
    
    -<item type="boolean" name="isHtcStyleRecentApp">true</item>
    +<item type="boolean" name="isHtcStyleRecentApp">false</item>
    
    ***** Enable Harman/Kardon audio setting (requires H/K firmware from *****
    ***** http://xdaforums.com/showthread.php?t=2729173) **********
    -<item type="boolean" name="support_harman">false</item>
    +<item type="boolean" name="support_harman">true</item>
    
    -<item type="boolean" name="support_boomsound_effect">true</item>
    +<item type="boolean" name="support_boomsound_effect">false</item>
    
    ***** Enable Beats audio setting (may not have any effect) ***************
    -<item type="boolean" name="support_beats_audio">false</item>
    +<item type="boolean" name="support_beats_audio">true</item>
    
    -<item type="boolean" name="support_boomsound_effect">true</item>
    +<item type="boolean" name="support_boomsound_effect">false</item>
    
    ***** Enable Music Channel Setting ***************************************
    -<item type="boolean" name="support_music_channel">false</item>
    +<item type="boolean" name="support_music_channel">true</item>
    
    ***** Allow selection of download location in stock browser **************
    -<item type="boolean" name="support_download_path">false</item>
    -<item type="boolean" name="support_filemanager">false</item>
    +<item type="boolean" name="support_download_path">true</item>
    +<item type="boolean" name="support_filemanager">true</item>
    
    ***** Add Tethering quick-setting icons **********************************
    ***** to select by using the edit button on the QS screen ****************
    ***** (Add the lines with a + next to them, without the "+") *************
      <item type="integer-array" name="quick_setting_available_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>18</int>
        <int>19</int>
        <int>20</int>
        <int>22</int>
        <int>24</int>
        <int>25</int>
        <int>26</int>
      </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>22</int>
      </item>

    I've uploaded copies of the 1.54 build.prop and default.xml with all these changes below. Just remove .1.54.modified.txt, move them to the appropriate place on your phone, and do chmod 644 on build.prop (save a backup of the old files first!).
    3
    Isn't there a tweak to enable quicksetting. I know there was one for my m7.

    One method1911

    Quicksettings are already enabled (swipe down with two fingers or use the tile button in the upper right after bringing down the notification shade). There is a mod above (in the OP) to enable the horizontal quick settings as shown below:
    uploadfromtaptalk1397084802405.jpg
    2
    Where's that mod tut? Don't see it in OP...

    ~Jflteusc on OctOS
    KToonsez Kernel
    1.998 Max ¦ 189 Min ¦ 702 Screen Off
    Ktoonsified v5 Setup

    It in the default.xml tweaks:
    Code:
    ===== Enable horizontal quick-settings in status bar using the   =====
    ===== first five quick settings icons. These can be reordered    =====
    ===== using the edit button on the regular quick settings screen =====
    -<item type="boolean" name="support_minor_quicksettings">false</item>
    +<item type="boolean" name="support_minor_quicksettings">true</item>

    Can this be used to center the clock. I can use xposed or gravity box but the clock overlaps with data icons

    One method1911

    Centering the clock without xposed requires an edit to the status_bar.xml file within SystemUI.apk (which would need a deodexed ROM to work). Of course, condensing the 3 data icons for LTE down to one would also help.
    2
    I posted what I did to get native hotspot to work and also to enable the hotspot tiles in case you wanted to post in your OP here (needs to be used in conjunction with a script): http://xdaforums.com/showthread.php?t=2712222

    Another common build.prop edit to get rid of the adb icon is:

    persist.adb.notify=0
    2
    I posted what I did to get native hotspot to work and also to enable the hotspot tiles in case you wanted to post in your OP here (needs to be used in conjunction with a script): http://xdaforums.com/showthread.php?t=2712222

    Another common build.prop edit to get rid of the adb icon is:

    persist.adb.notify=0

    Thanks, I added those to the OP.