[SOLUTION] GPA Bluetooth tethering issue, XOOM Wi-Fi now tethers!

Discussion in 'Bugless' started by Stachre, Apr 4, 2011.

  1. Stachre
    Offline

    Stachre New Member

    Joined:
    Mar 29, 2011
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    Hey, all!

    It seems like a few of us picked up the Xoom Wi-fi in the last week, eagerly looking forward to tethering them to our OG Droids running GPA, but found that we simply couldn't tether. Yes, we knew the OG Droid is hardware limited to Wi-fi sharing in Ad Hoc mode, and we knew that Android devices don't natively support joining Ad Hoc networks. That's what Bluetooth is for!

    How to: Bluetooth Tether to Motorola XOOM Using Original DROID

    But, even as the rest of the web hopped on the tethering lovetrain, we GPA users couldn't seem to get our Xooms to connect to our Droids. Some of us switched back to BB on Froyo, and others moved on to other unaffected Gingerbread ROM's. *gasp*

    For me, GPA12 is the business, so I spent a ton of time trying to figure out what was going on. Yesterday, I finally found it: there's an extraneous file in the ROM (/system/lib/bluez-plugin/network.so) that is causing Bluetooth tethering to go haywire, and it doesn't seem to be needed for anything functional at all. I deleted it, and tethering was immediately functional, without any other negative effects!

    So we have two ways of going about fixing this for now: deleting the file manually via adb (requires a couple of remounts of /system), or a quick patcher I wrote for less-technical users. I also updated Pete with all the technical info, and he indicated that he'll soon be working on it on the GPA build side.

    Please find all the info you need below, and have a blast tethering your Xooms with GPA awesomeness!!! :)

    MANUAL PROCESS

    1. Droid: Backup your phone (although my device was fine, yours might not be happy with this)
    2. Droid: Have a ROM image ready for recovery on your SDCard (same reason)
    3. Droid: Turn off Bluetooth
    4. Droid: Connect to your PC via USB
    5. PC (terminal/command prompt): Run adb as root and shell in to your Droid
      Code:
      adb root
      adb shell
    6. PC (adb): Re-mount /system as read-write
      Code:
      mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
    7. PC (adb): Copy the culprit file to your SDCard (or wherever) then delete it (mv gets a "Cross-device link" error)
      Code:
      cp /system/lib/bluez-plugin/network.so /sdcard/network.so
      rm /system/lib/bluez-plugin/network.so
    8. PC (adb): Re-mount /system as read only again
      Code:
      mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system
    9. PC (adb): exit adb and disconnect your Droid from your PC
      Code:
      exit
    10. Follow aforementioned instructions to test your tether

    If tethering isn't working after the patch, try rebooting. If you're still having issues, please chime in on the thread.


    AUTOMATED PROCESS (PATCHER)

    Keep in mind that this isn't a piece of production-level software. I tried to accommodate the exceptions I could foresee, but there will always be issues. So, as you all know well, it might patch your system with zero problems, or it could ruin your phone forever, so you're using it at your own risk.

    With that out of the way, here we go...

    FIRST, the attached APK file simply has ".zip" appended to the filename so that I could upload it. DO NOT UNZIP THE FILE. Just rename the file, deleting the .zip extension. If your operating system is set to Hide known file extensions from you, a quick web search should hook you up.

    As you'll see in the attached screenshot, the screen is laid out with a disclaimer on the top (hey, I'm new here :p ), followed by a device info block containing what the patcher needs to know about your device (ROM Build, Root Status, Bluetooth Stack Status). If your build is not GPA10-15, or if the patcher can't find su, an exit dialog will pop up and let you know.

    Below the device info block, there is a single action button that either patches (deletes network.so) or restores (replaces network.so and updates permissions, in case you have issues after patching), based on your Bluetooth Stack Status (UNPATCHED, PATCHED). The description below the button also changes respectively.

    NOTE: when patching, the software executes three separate commands (re-mount read-write, file handling, re-mount read-only) via su, so you will be prompted three separate times for su authorization. This is normal, and allows for better recovery from exceptions.

    ALSO NOTE: the patcher keeps its copy of your network.so file in INTERNAL APPLICATION STORAGE. This means that if you uninstall the patcher, the saved copy of network.so will also be removed. If you reinstall the patcher, it will find the network.so file completely missing, so it will regard your Bluetooth Stack Status as UNKNOWN, and will not be able to do anything further on your device. At that point, you're relegated to manually copying the file back from a GPA zip file, or re-flashing over your current install.

    At the bottom, there's a self-explanatory Exit button.

    Here's the procedure:

    1. Droid: Backup your phone (although my device was fine, yours might not be happy with this)
    2. Droid: Have a ROM image ready for recovery on your SDCard (same reason)
    3. PC or Droid: Download the GpaBluetoothTetherPatcher.apk.zip file
    4. PC or Droid: RENAME the GpaBluetoothTetherPatcher.apk.zip file and remove the ".zip" extension (DO NOT UNZIP THE FILE)
    5. Droid: Copy the GpaBluetoothTetherPatcher.apk file to your SDCard if it's not there already
    6. Droid: Sideload the GpaBluetoothTetherPatcher.apk via Astro, Linda, or whatever (NOTE: Bluetooth permissions are for disabling Bluetooth before patching, in case you forget the next step)
    7. Droid: Turn off Bluetooth
    8. Droid: Launch GpaBluetoothTetherPatcher
    9. Droid: If your device is running GPA10-15, is rooted, and network.so is in place, you can click Patch Bluetooth Stack to proceed
    10. Droid: Navigate through the confirmation dialogs (3 su requests is normal; see NOTE above)
    11. Droid: Note your changed Bluetooth Stack Status. If you're PATCHED, you're ready to tether
    12. Droid: Click Exit
    13. Follow aforementioned instructions to test your tether

    If tethering isn't working after the patch, try rebooting. If you're still having issues, please chime in on the thread.

    Hope this helps everyone!

    Attached Files:

  2. webeougher
    Offline

    webeougher New Member

    Joined:
    Feb 6, 2010
    Messages:
    230
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Stoneboro, PA/New Haven, CT
    For those users with Root Explorer (the best app you'll ever buy), it's even simpler:

    1. Open Root Explorer
    2. Navigate to the /system/lib/bluez-plugin directory
    3. Click "Mount R/W" at the top of Root Explorer
    4. Long-press on network.so
    5. Choose "Move"*
    6. Navigate to a folder of your choice on your SD Card and click "Paste"
    7. Exit Root Explorer
    8. Reboot!

    *Alternately, choose "Delete" and skip Step 6.

    Kudos to Stachre for his dedication and hard work in finding the fix.
  3. Cardini
    Offline

    Cardini New Member

    Joined:
    Dec 30, 2010
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
    Flawless - worked perfectly - Very nice work Stachre
  4. DHO
    Offline

    DHO New Member

    Joined:
    Oct 5, 2010
    Messages:
    248
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    NOLA
    Nice work.

    Now, I just need a Xoom,...
  5. Stachre
    Offline

    Stachre New Member

    Joined:
    Mar 29, 2011
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    Great point! Totally missed local file managers, terminals, etc. A nap before my posting would probably be wise... :D
Search tags for this page

/system/lib/bluez-plugin/network.so

,
bluethoot tethering apk
,

bluetooth auto tethering apk

,
bluetooth auto tethering.apk
,
bluetooth tether xoom to windows 8
,
dun bluetooth tethering solutions for root android
,
system/lib/bluez-plugin/network.so