[MOD][4.2.1/4.2][JOP40D/JOP40C] Tethering/Wifi Hotspot for the Nexus 7 3G

Search This thread

nex86

Senior Member
Nov 9, 2010
632
48
I try it...

First..
Download "Stock Framework 4.3" and "Tether enabled" ....

then..
flash "Stock Framework 4.3"...reboot
flash "Tether enabled" ...reboot...OK

Important...
first=> flash "Stock Framework 4.3"

I tried this. Bootloop....
Help anyone?

edit: when I flash back the Stock framework it works, but after I flash Tether enabled, I'm stuck in a bootloop again.
clearing dalvik cache does not help.

edit2: okay found the issue:
DO NOT clear the dalvik cache a second time AFTER you reflashed enabletether. it will cause the bootloop.

This sucks because everytime the dalvik cache gets recreated you will get a bootloop and have to reflash the stock framework.
 
Last edited:

lee.n

Senior Member
Nov 21, 2012
82
8
Hi i just pulled the file decompressed it and it works for me i will aditionally put a small guide here:

after pulling framework-res.apk and decompiling modify the following lines in /res/values/arrays.xml

<array name="config_tether_usb_regexs" />
<array name="config_tether_wifi_regexs" />
<array name="config_tether_wimax_regexs" />
<array name="config_tether_bluetooth_regexs" />
<array name="config_tether_dhcp_range" />
<array name="config_mobile_hotspot_provision_app" />
<array name="config_tether_upstream_types" />

to

<string-array name="config_tether_usb_regexs">
<item>rndis\\d</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" />
<integer-array name="config_tether_upstream_types">
<item>0</item>
<item>1</item>
<item>5</item>
<item>7</item>
</integer-array>

recompile the framework-res.apk sign it and u are ready to go.

Here are the links for the stock framework and the tether mod:

Stock Framework 4.3
Tether enabled

U can flash them with sideload and i recommend a cache wipe after it.

HF


Hi, I am new to flashing thing. Can you tell me how (detailed) to flash this to my Nexus 7 3G rooted ( JWR66Y) ? What tools I need to use and what file should I edit/ modify ?

Also once this flash, should I still get OTA update from Google ? I haven't install any custom room.

Appreciate your response.

Sent from my Nexus 7 using xda app-developers app
 

lee.n

Senior Member
Nov 21, 2012
82
8
Hello,

My thought of installing the zipped by via sideload as follows. Please correct me if I am wrong. I encounter error device not found.

1. C:\Android\adb\sdk\platform-tools>adb devices
List of devices attached
015d4b100c300419 device

2. adb reboot bootloader

- (once rebooted on bootloader)
3. adb sideload Framework_43.zip
error: device not found

- my thought is after the "adb sideload Framework_43.zip" I will run "adb sideload enabletether_43"

a.) how can I remove that error?
b.) am I doing it right?
c.) do I need to clear cache? if so, what is the effect? do my data will be erase?

Do note, I am running Android 4.3 JWR66Y

thank you.
 

svs57

Senior Member
Sep 4, 2012
445
52
PS I try to make tethering changes in framework-res.apk
Got error when build apk:
apktool b -d frame framework-res.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: /home/ssmirnov/frame/res/layout-sw720dp
invalid resource directory name: /home/ssmirnov/frame/res/values-w500dp
invalid resource directory name: /home/ssmirnov/frame/res/values-w600dp
invalid resource directory name: /home/ssmirnov/frame/res/values-h720dp
invalid resource directory name: /home/ssmirnov/frame/res/values-sw720dp
invalid resource directory name: /home/ssmirnov/frame/res/values-sw600dp-land
invalid resource directory name: /home/ssmirnov/frame/res/values-sw600dp-w960dp
invalid resource directory name: /home/ssmirnov/frame/res/values-sw600dp-port
invalid resource directory name: /home/ssmirnov/frame/res/layout-w600dp
invalid resource directory name: /home/ssmirnov/frame/res/values-sw720dp-port
invalid resource directory name: /home/ssmirnov/frame/res/drawable-sw720dp-nodpi
invalid resource directory name: /home/ssmirnov/frame/res/anim-sw720dp
invalid resource directory name: /home/ssmirnov/frame/res/values-sw380dp
invalid resource directory name: /home/ssmirnov/frame/res/values-sw380dp-land
invalid resource directory name: /home/ssmirnov/frame/res/mipmap-xxhdpi
invalid resource directory name: /home/ssmirnov/frame/res/values-w720dp
invalid resource directory name: /home/ssmirnov/frame/res/drawable-sw600dp-nodpi
invalid resource directory name: /home/ssmirnov/frame/res/values-sw600dp
invalid resource directory name: /home/ssmirnov/frame/res/layout-sw600dp
invalid resource directory name: /home/ssmirnov/frame/res/values-w480dp
invalid resource directory name: /home/ssmirnov/frame/res/values-sw720dp-land
invalid resource directory name: /home/ssmirnov/frame/res/values-sw720dp-w1280dp
invalid resource directory name: /home/ssmirnov/frame/res/layout-sw600dp-port
invalid resource directory name: /home/ssmirnov/frame/res/values-w360dp
invalid resource directory name: /home/ssmirnov/frame/res/drawable-sw600dp-hdpi
invalid resource directory name: /home/ssmirnov/frame/res/drawable-ldrtl-hdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --debug-mode, --min-sdk-version, 18, --target-sdk-version, 18, -F, /tmp/APKTOOL8359288223110488387.tmp, -x, -0, arsc, -S, /home/ssmirnov/frame/res, -M, /home/ssmirnov/frame/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --debug-mode, --min-sdk-version, 18, --target-sdk-version, 18, -F, /tmp/APKTOOL8359288223110488387.tmp, -x, -0, arsc, -S, /home/ssmirnov/frame/res, -M, /home/ssmirnov/frame/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --debug-mode, --min-sdk-version, 18, --target-sdk-version, 18, -F, /tmp/APKTOOL8359288223110488387.tmp, -x, -0, arsc, -S, /home/ssmirnov/frame/res, -M, /home/ssmirnov/frame/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
 

didi0815

Senior Member
Oct 15, 2012
54
3
I have updated to JWR66Y and installed thethering using the same files and method as I used in POST #239.

Everything seems to work correctly.
 

svs57

Senior Member
Sep 4, 2012
445
52

didi0815

Senior Member
Oct 15, 2012
54
3
JWR66Y update contains new framework-res.apk
To install JWR66Y you must have stock framework-res.apk because install script check md5 sum of current file before install new.
Ok., again what I did:
1) Update Nexus to JWR66Y stock (I think it think it doesn't matter which way).
2) flash "Stock Framework 4.3" (using "old" version) ...reboot
3) flash "Tether enabled" (using "old" version) ...reboot...OK

"old" versions are the "old" 4.3 files posted by Matteo 88 in POST #206

System is running now with JWR66Y and tethering enabled.
 

svs57

Senior Member
Sep 4, 2012
445
52
Ok., again what I did:
1) Update Nexus to JWR66Y stock (I think it think it doesn't matter which way).
2) flash "Stock Framework 4.3" (using "old" version) ...reboot
3) flash "Tether enabled" (using "old" version) ...reboot...OK

"old" versions are the "old" 4.3 files posted by Matteo 88 in POST #206

System is running now with JWR66Y and tethering enabled.
Ok Agian. Now you have old Framework instead of new.
I don't what downgrade Framework. I want to have new Framework and tethering enabled.
 

lee.n

Senior Member
Nov 21, 2012
82
8
Ok., again what I did:
1) Update Nexus to JWR66Y stock (I think it think it doesn't matter which way).
2) flash "Stock Framework 4.3" (using "old" version) ...reboot
3) flash "Tether enabled" (using "old" version) ...reboot...OK

"old" versions are the "old" 4.3 files posted by Matteo 88 in POST #206

System is running now with JWR66Y and tethering enabled.


Can you give instruction on how to flash ? Im new to flashing..

Thanks.


Sent from my Nexus 7 using xda app-developers app
 

didi0815

Senior Member
Oct 15, 2012
54
3
I want to have new Framework and tethering enabled.
Me too, but I prefer (for the moment) tethering enabled and (maybe) old framework to new framework without tethering enabled ;)
Do you know if there is even a difference in "new" Framework of JWR66Y compared to first Version of 4.3?

---------- Post added at 03:45 PM ---------- Previous post was at 03:43 PM ----------

Can you give instruction on how to flash ? Im new to flashing..
There seems to be 100 ways ;)
I did it using this tool: http://xdaforums.com/showthread.php?t=1766475
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 48
    PLEASE USE WITH CAUTION AND ONLY IF YOU KNOW WHAT YOU ARE DOING. I WILL NOT BE RESPONSIBLE FOR BRICKED DEVICES.

    You may have noticed that the Nexus 7 3G does not have the tethering options enabled by default.

    I couldn't live with that (that was partially the point why I got the 3G version), so have patched the framework to enable those options. Partial credits go to PaulOBrien@MoDaCo who has fixed the apktool for Android 4.2 .

    To get it to work just flash the ZIP below. It will only work on the JOP40D and JOP40C releases, and obviously only if you have a 3G device. Please do not try it on the WiFi-only Nexus 7 :) .

    Please note that it doesn't do a backup of the original framework-res.apk, so you can either make one yourself, or you can reflash the factory system image if you want to go back to stock later.

    4.2.1 (JOP40D):
    https://www.dropbox.com/s/oti37qsc265me8t/enabletether-JOP40D.zip

    4.2 (JOP40C):
    https://www.dropbox.com/s/9tswcvz50op8rfu/enabletether-JOP40C.zip
    6
    I really would appreciate flashable zip to enable tethering for 4.3.:sly:
    Thanks in advance !

    Sent from my Nexus 7 using xda app-developers app

    Hi i just pulled the file decompressed it and it works for me i will aditionally put a small guide here:

    after pulling framework-res.apk and decompiling modify the following lines in /res/values/arrays.xml

    <array name="config_tether_usb_regexs" />
    <array name="config_tether_wifi_regexs" />
    <array name="config_tether_wimax_regexs" />
    <array name="config_tether_bluetooth_regexs" />
    <array name="config_tether_dhcp_range" />
    <array name="config_mobile_hotspot_provision_app" />
    <array name="config_tether_upstream_types" />

    to

    <string-array name="config_tether_usb_regexs">
    <item>rndis\\d</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" />
    <integer-array name="config_tether_upstream_types">
    <item>0</item>
    <item>1</item>
    <item>5</item>
    <item>7</item>
    </integer-array>

    recompile the framework-res.apk sign it and u are ready to go.

    Here are the links for the stock framework and the tether mod:

    Stock Framework 4.3
    Tether enabled

    U can flash them with sideload and i recommend a cache wipe after it.

    HF
    5
    Hi Folks,

    as far i could tell there are no diferences in the stock framework-res.apk but i think i fixed the bootloop error on first install and i made a new enable tether file for jwr66y anyways hf flashing.

    Enable Tether jwr66y
    5
    https://docs.google.com/file/d/0B94bfpTec3GpdWpjclNteGhOQmM/edit
    Successfully flashed this over 4.2.2
    Worked on first boot without problems. Currently tethering over wifi.

    Sent from my Nexus 7 using xda premium
    5
    bootloop even with 3rd try :(

    Try this version. It's works for Me.

    8953c95366caf1e9ab6a9f50f7337f1e thether-JDQ39.zip

    Flashed via TWRP without any problems, bootloops.