[MOD] Native Hotspot Hack + Hotspot Quicksettings

Ph33zy

Senior Member
Feb 24, 2006
842
219
0
Orange County, CA
THESE FILES WERE MADE FOR A REALLY OLD BASE (4.4.2). Do NOT FLASH THE FILE FOR ANY OTHER VERSION OF ANDROID SINCE IT CONTAINS AN OLDER VERSION OF default.xml. I'm leaving them attach for reference if anyone wants to manually make the edits on the latest and greatest version of their ROM. I also did not come with this mod, but ported it over from the source link below. If 4G is not working, then there is a problem with init.d in your ROM. Download and install script manager to manually run the script, as mentioned in the instructions below.







So, I finally got native hotspot working on the M8 by following the guide in the M7 thread posted here: http://forum.xda-developers.com/showthread.php?t=2474432

This mod requires you to have root access and an init.d capable kernel. Alternatively, you can download script manager and have it run at boot or modify your install-recovery.sh file located in /system/etc.

This is confirmed working for both 3G and 4G connections.



Step 1) Flash attached zip file.

If 4G Hotspot doesn't work do the following:

Optional Alternate Method #1 after installing zip file to use with Script Manager
Step 1) Download Script Manager: https://play.google.com/store/apps/details?id=os.tools.scriptmanager
Step 2) Open up Script Manager and navigate to /system/etc/init.d and select the "tether" script.
Step 3) Click on SU and Boot (Android Skull and Gear Icons, respectively) and click on run and save.

Optional Alternate Method #2 after installing zip file to edit your install-recovery.sh
Modify your install-recovery.sh referenced in this post: http://forum.xda-developers.com/showpost.php?p=51796802&postcount=21

Please note that this will overwrite any mods that you may have done to your default.xml. Here are the changes that were made:

Tether Hack:
Code:
<item type="boolean" name="isTetherBlockCheck">false</item>
<item type="boolean" name="tether_use_default_upstream">false</item>
<item type="boolean" name="tethering_guard_support">false</item>
<item type="boolean" name="tethering_roaming_specific">false</item>
<item type="string" name="tethering_specific">NONE</item>
<item type="integer" name="tethering_support_ipv6">1</item>
<item type="boolean" name="use_default_profile_for_tethering">true</item>
<item type="integer" name="TetheringGuard_Rule">0</item>
Unlock Hotspot Quicksettings:

Code:
<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>22</int>
    <int>25</int>
 

Attachments

Last edited:

AarSyl

Senior Member
Aug 21, 2012
2,799
937
193
NJ
For a very long time, HTC phones don't tether 4g data using the hacked native Hotspot. Even back in the OG Evo, WiMax days. Somehow, it seems like HTC/Sprint still has a lock on that.

I'm not saying that it is impossible, but @Ph33zy, don't think that you're doing something wrong. That's just the way it is.
 

Ph33zy

Senior Member
Feb 24, 2006
842
219
0
Orange County, CA
For a very long time, HTC phones don't tether 4g data using the hacked native Hotspot. Even back in the OG Evo, WiMax days. Somehow, it seems like HTC/Sprint still has a lock on that.

I'm not saying that it is impossible, but @Ph33zy, don't think that you're doing something wrong. That's just the way it is.
Yea I remember, but 4g definitely worked on the m7 so hopefully there is a way.
 

ahecht

Senior Member
Oct 23, 2010
507
304
93
<item type="boolean" name="isTetherBlockCheck">false</item>
<item type="boolean" name="tether_use_default_upstream">false</item>
<item type="boolean" name="tethering_roaming_specific">false</item>
<item type="string" name="tethering_specific">NONE</item>
Those values are already present in the stock default.xml


Unlock Hotspot Quicksettings (along with others):

<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>16</int>
<int>18</int>
<int>19</int>
<int>22</int>
<int>23</int>
<int>24</int>
<int>25</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>22</int>
<int>25</int>
So you added 10,16, and 23 to the top list and 25 to the bottom list. Is there a reason you removed 20 and 26 from the top list?
 

Ph33zy

Senior Member
Feb 24, 2006
842
219
0
Orange County, CA
Those values are already present in the stock default.xml

So you added 10,16, and 23 to the top list and 25 to the bottom list. Is there a reason you removed 20 and 26 from the top list?
Yea, I knew some of them were default, but forgot what I changed since I was already in bed. The easiest thing to do at the time was search for "tether" and post all the lines.

Didn't mean to remove those as I think they correspond to NFC and Sync All. I was trying to get rid of finger scanner, which I accidentally added, but I guess I deleted the wrong one. I should've deleted 23.
 
Last edited: