Custom scripts for Archangel root for firmware 2.0.71, 2.1.02, 2.1.03, 2.1.04, 2.1.08

Search This thread

Flix123

Senior Member
Jan 30, 2011
1,264
807
Do you mean the hosts.for.mobile file in the zip folder? Do I have to rename the file?

And what would I do, when the tablet doesn't boot because of the file?
 

Flix123

Senior Member
Jan 30, 2011
1,264
807
OK, forget my questions.:D

I've tried to replace the hosts file with a new one (97 kByte), but the Root Explorer says, that there wouldn't be enough space.

What can I do?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    Finally we have a method to obtain root that does not involve installing the SDE and that works on at least three different firmware versions. 2.0.71, 2.1.02, 2.1.03, 2.1.08. For all the details see http://xdaforums.com/showthread.php?t=928767
    This program has the possibility to execute a script after root is acquired. See the readme.txt of Archangel v2.
    You can create a script in /sdcard/sdcard/extraroot.sh and this will be executed as root
    whenever you reboot, so you can use this to do any additional root functions you want.
    If you make an error with this script which causes you a problem then you can eject your
    sd card and reboot and it then will not execute.

    NOTE: For windows users. Please use Notepad++ to edit the extraroot.sh and convert the file to unix format. In the menu choose "Format" -> "Convert to UNIX Format". This option is available with version v5.1.4 of Notepad++ it has been reported that it's not available in other versions.

    Please post the firmware version, your script and a little description here.

    Firmware 2.1.02, 2.1.03, 2.1.04,2.1.08 - Disable Swap

    Swap is automatically enabled in these firmware versions.
    Code:
    swapoff /dev/block/mmcblk0p3
    To verify that swap is turned off go to the Terminal Emulator and type free
    Code:
    / $ free
                  total         used         free       shared      buffers
      Mem:       243824       230972        12852            0         4332
     Swap:            0            0            0
    Total:       243824       230972        12852

    Another way to turn off swap permanently without using the a script is to disable the swap service. This can be done from within the Terminal Emulator with the following commands
    Code:
    $su
    #setprop persist.sys.archos.swapctl.en 0
    Then reboot the device.
    This only needs to be done once.

    Firmware 2.0.71, 2.1.02, 2.1.03, 2.1.04, 2.1.08 - Disable ads

    Disable ads. This was posted by archaism1 here http://xdaforums.com/showthread.php?p=10941853#post10941853
    Code:
    cat <<EOF >/tmp/hosts
    127.0.0.1 localhost
    127.0.0.1 pagead2.googlesyndication.com pagead.l.google.com googleads.g.doubleclick.net
    127.0.0.1 api.admob.com mm.admob.com r.admob.com mob.adwhirl.com cus.adwhirl.com met.adwhirl.com
    EOF
    mount --bind /tmp/hosts /etc/hosts
    I have not tested this myself because I think the devs of applications need the ads to make some money.

    Firmware 2.1.02, 2.1.03, 2.1.04, 2.1.08 - Swap on sd-card

    Disable swap on internal storage and create a swap file on sd-card. The swap is 256Mb big to change the size just adjust the 256 value in the script.

    ATTENTION: it can take a few minutes the first time the script is executed.
    Code:
    swapoff /dev/block/mmcblk0p3
    if [ ! -f /sdcard/sdcard/myswap ] 
      then
        echo "Creating swap file"
        dd if=/dev/zero of=/sdcard/sdcard/myswap bs=1M count=256
        mkswap /sdcard/sdcard/myswap
    fi
    swapon /sdcard/sdcard/myswap
    And here the result of free
    Code:
    # free
                  total         used         free       shared      buffers
      Mem:       243824       241432         2392            0         6232
     Swap:       262136          320       261816
    Total:       505960       241752       264208

    WARNING: if you use a swapfile, which is described here, you can't use a usb connection to copy files without disabling the swap with the following command.
    Code:
    $su
    #swapoff /sdcard/sdcard/myswap
    Credit for this goes to http://forum.archosfans.com/viewtopic.php?f=74&t=42718

    Hondaracer posted some scripts I'll include them as attachments
    5
    Here are some pre-made extraroot.sh files for those who don't have NotePad++ or other reason.
    1
    Advanced stuff.

    Loading kernel modules.

    There was a post in another thread about CifsManager here
    chulri was so kind as to build the module. You can download it here.

    Unzip the downloaded file and place it in a directory under /sdcard I suggest /sdcard/modules/

    Add the following code to the extraroot.sh
    Code:
    insmod /sdcard/modules/cifs.ko
    and reboot.
    Now you can install CifsManager and start mapping drives.
    1
    I have to create a file named extraroot.sh and and put it in /sdcard/sdcard ?
    Do I need to make it executable ? (chmod +x)
    Does it work only with permanent root ?
    Thanks :)
    1
    So, I just have to copy the hosts file on SD card, that's all?

    And could you please give me an actual hosts file?

    There is one here copy that hosts file to /etc/hosts