TWRP for Nexus 6 and 9 Available, Unofficial CM12 Alpha for HTC Explorer! – XDA TV

Team Win Recovery Project for the Nexus 6 and Nexus … more

Jolla Tablet Announced: The Second Sailfish OS Device

A little over a year ago, Jolla released its first smartphone with the brand new Jolla … more

Android One Devices Get Unofficial CM12 Port

Android One was initially announced right before Android Lollipop. By releasing these cheap, yet … more

WhatsApp Decides to Protect Your Data

When Facebook bought WhatsApp for the absurdly large sum of $19bn back in February, they took the tech … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[FIX] Working wifi, usb and bluetooth tether!

OP Creeplays

28th July 2014, 08:05 AM   |  #1  
OP Junior Member
Thanks Meter: 24
 
14 posts
Join Date:Joined: Jul 2014
More
Hey guys, i am found way to fix wifi, usb and bluetooth tether!
  1. Copy framework-res.apk from device (adb pull /system/framework/framework-res.apk)
  2. Back up apk.
  3. Decompile it (apktool d framework-res.apk)
  4. browse to framework-res/res/values and open arrays.xml
  5. Find "<string-array name="config_tether_usb_regexs">"
  6. Replace from "<string-array name="config_tether_usb_regexs">" to "<array name="config_mobile_hotspot_provision_app"/>" with
    Code:
        <string-array name="config_tether_usb_regexs">
            <item>rndis0</item>
        </string-array>
        <string-array name="config_tether_wifi_regexs">
            <item>wlan\\d</item>
        </string-array>
        <array name="config_tether_wimax_regexs" />
        <string-array name="config_tether_bluetooth_regexs">
            <item>bnep\\d</item>
        </string-array>
        <array name="config_tether_dhcp_range" />
        <array name="config_mobile_hotspot_provision_app" />
  7. Save
  8. Compile (apktool b framework-res)
  9. COPY META-INF AND ANDROIDMANIFEST.XML FROM OLD APK!
  10. Copy this file to /system/framework using RootExplorer
  11. Reboot phone
  12. Done
The Following 3 Users Say Thank You to Creeplays For This Useful Post: [ View ]
28th July 2014, 09:33 AM   |  #2  
Member
Flag Belgrade
Thanks Meter: 42
 
63 posts
Join Date:Joined: Mar 2010
More
Can anyone confirm this or at least give us required apk changed and ready to be included in rom (cm, or others?)
28th July 2014, 11:53 AM   |  #3  
OP Junior Member
Thanks Meter: 24
 
14 posts
Join Date:Joined: Jul 2014
More
Quote:
Originally Posted by calinorg

Can anyone confirm this or at least give us required apk changed and ready to be included in rom (cm, or others?)

http://forum.xda-developers.com/htc-...c-rom-t2828714
The Following User Says Thank You to Creeplays For This Useful Post: [ View ]
28th July 2014, 02:58 PM   |  #4  
h1gh1's Avatar
Senior Member
Thanks Meter: 727
 
408 posts
Join Date:Joined: Sep 2012
EDIT: my mistake... Tested working on cyanogenmod!!! Placed META-INF and replaced AndroidManifest.xml with 7zip GUI in new framework-res.apk, pushed it with adb push /system/framework, phone reboots and it works!
Last edited by h1gh1; 29th July 2014 at 08:01 AM.
29th July 2014, 03:57 AM   |  #5  
OP Junior Member
Thanks Meter: 24
 
14 posts
Join Date:Joined: Jul 2014
More
Quote:
Originally Posted by h1gh1

Tested fix on cyanogenmod - not working, wifi never turns on... Was working with PAC rom and same kernel...

Give me apk
13th August 2014, 01:52 PM   |  #6  
h1gh1's Avatar
Senior Member
Thanks Meter: 727
 
408 posts
Join Date:Joined: Sep 2012
<string-array name="config_tether_usb_regexs">
<item>rndis0</item>
<item>usb0</item>
</string-array>

You removed usb0 from regexes, and USB tethering did not work for me, however, when I changed only wlan, everything is working on Cyanogenmod.
5th September 2014, 02:30 PM   |  #7  
nemanjsb's Avatar
Member
Flag Sokobanja
Thanks Meter: 0
 
41 posts
Join Date:Joined: May 2013
More
Unhappy
How to "COPY META-INF AND ANDROIDMANIFEST.XML FROM OLD APK!" I skip it and get in boot loop...
6th September 2014, 06:04 PM   |  #8  
h1gh1's Avatar
Senior Member
Thanks Meter: 727
 
408 posts
Join Date:Joined: Sep 2012
Quote:
Originally Posted by nemanjsb

How to "COPY META-INF AND ANDROIDMANIFEST.XML FROM OLD APK!" I skip it and get in boot loop...

You can open new apk with 7zip and just drag them.
8th November 2014, 12:29 PM   |  #9  
Junior Member
Thanks Meter: 1
 
14 posts
Join Date:Joined: Jan 2013
thanks
Thanks

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes