BB blocks our app

Discussion in 'Bugless' started by twkiii, Sep 30, 2010.

  1. twkiii

    twkiii New Member

    Joined:
    Sep 23, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    The app that I work on needs to connect to "www.audiogalaxy.com", and after going through some bug reports from users, I discovered that the default hosts file for BB blocks that url. We don't have any ads, just a free music streaming service. How can I get our hostname (and audiogalaxy.com) removed from that file in the next version?

    Thanks
     
  2. peteralfonso

    peteralfonso Premium Member
    Premium Member Developer

    Joined:
    Mar 18, 2010
    Messages:
    844
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    Consider it done :)

    Any other url other than audiogalaxy need to be removed?
     
  3. twkiii

    twkiii New Member

    Joined:
    Sep 23, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    Great!

    There were just 2 lines I saw: "www.audiogalaxy.com" and "audiogalaxy.com". You rock, Pete -- thanks for responding.
     
  4. xxxwdp02lcdxxx

    Joined:
    Jun 16, 2010
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    Has this been implemented yet? UD has it blocked, aslo so I might switched to BB if I can use this app with it.

    Thanks.
     
  5. michael_campbell

    Joined:
    Apr 30, 2010
    Messages:
    328
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Atlanta suburbia.
    Ratings:
    +0

    If you have root explorer, follow these instructions. Note that this works for BB or UD both.

    First, make a nandroid backup! Don't skip this step. Don't blame me if you do!

    1. Open root explorer
    2. navigate to /etc
    3. mount the filesystem as r/w
    4. find the "hosts" file. Long-press and "open in text editor"
    5. scroll down to the entry that says: 127.0.0.1 audiogalaxy.com (This may take awhile; I scrolled down with my finger the normal way, then a combination of tapping and D-pad got the cursor down there.)
    6. Remove this line (i.e., use the backspace key to remove it)
    7. Scroll down to the entry that says: 127.0.0.1 www.audiogalaxy.com
    8. Remove this line (just like step 6)
    9. Save & exit (from the menu)
    10. [optionally] remove the hosts.bak file
    11. navigate in root explorer to ..
    12. navigate in root explorer to /system/etc
    13. find the hosts file
    14. Long-press and "open in text editor"
    15. repeat steps 5 through 10. (NOTE! "audiogalaxy.com" and "www.audiogalaxy.com" MAY NOT BE THERE. That's ok; they weren't in mine, either. If they aren't in yours, just exit without saving.)
    16. reboot
    These steps worked for me. If something goes horribly awry, you have your backup to restore, right?
     
    #5 michael_campbell, Oct 15, 2010
    Last edited: Oct 15, 2010
  6. xxxwdp02lcdxxx

    Joined:
    Jun 16, 2010
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    That worked. Thank you so much!
     
  7. liquid.amber99

    liquid.amber99 New Member

    Joined:
    Aug 6, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    When I get to the hosts file and long press 'open in text editor' it tells me that the file is too large and is only partially displayed and I can't get down to the files I need to remove.

    Any ideas?
     
  8. michael_campbell

    Joined:
    Apr 30, 2010
    Messages:
    328
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Atlanta suburbia.
    Ratings:
    +0
    Well, I haven't done this in a long time, so presumably Pete put a lot of new entries in the file, and now root explorer can't load the whole thing.

    Here's something you might try.

    1. Nandroid backup
    2. In root explorer, Navigate to /etc like before, but instead of opening the file, long-click it and select copy.
    3. Navigate to the /sdcard directory.
    4. Click the 'paste' button. The file should now *also* be in your /sdcard dir.
    5. Connect the phone to your computer via USB.
    6. On the phone, under the notification drag-down, select the "USB Connected. Select to copy files to/from your computer", then "Turn on USB Storage" (then "OK")
    7. Open the phone's directory on your computer, and find the "hosts" file.
    8. Make your edits there via notepad, notepad++, or whatever other text editor *NOT MS-WORD!*. Save the file.
    9. Turn off USB storage on the phone
    10. On root explorer, copy the /sdcard/hosts file back to /etc.

    Repeat this process for the hosts file in /system/etc

    You might want to make a copy of the file before you start editing it in case something goes wrong, but on a worst case scenario you still have your nandroid backup.