[RECOVERY]Safestrap 3.75 for unused partitions (/preinstall & /webtop)

Search This thread

K_Meleon

Member
Nov 1, 2010
19
0
Braunschweig
www.mikrosol.de
He had modified the ramdisk of recovery, he did not build it from source.

Are you really sure about that? I'd like to have access to the source as well, but according to

http://www.internauta37.altervista.org/en/xt894-and-xt912-safestrap-375-unused-partitions-preinstall-webtop

he integrated some changes:

This version of SafeStrap is based on SafeStrap 3.75 but has a lot of differences with it:
  • there is not more the splashscreen during the boot, to enter in Safestrap you have to select BP Tools in the Boot Mode Selection Menu(VolUp&&VolDown+PowerOn)
  • has been added a Safe Rom slot that uses the unused partitions: /preinstall for /system; /webtop for /data; /cache is shared with the Stock Rom slot
  • in this version you have 6 slots: the Stock Rom slot, the Safe Rom slot and the four virtual slots

Or am I wrong?
 

Buglol

Senior Member
Jul 23, 2013
77
7
karachi
Are you really sure about that? I'd like to have access to the source as well, but according to

http://www.internauta37.altervista....strap-375-unused-partitions-preinstall-webtop

he integrated some changes:

This version of SafeStrap is based on SafeStrap 3.75 but has a lot of differences with it:
  • there is not more the splashscreen during the boot, to enter in Safestrap you have to select BP Tools in the Boot Mode Selection Menu(VolUp&&VolDown+PowerOn)
  • has been added a Safe Rom slot that uses the unused partitions: /preinstall for /system; /webtop for /data; /cache is shared with the Stock Rom slot
  • in this version you have 6 slots: the Stock Rom slot, the Safe Rom slot and the four virtual slots

Or am I wrong?
Sorry, it's been a long time, I don't remember that much but I am sure about your first statement and not sure about cache being shared. I hope you understand. Maybe @LuH remember that, he had also helped me alot.

Sent from my D6633 using Tapatalk
 

LuH

Senior Member
Aug 10, 2007
193
43
CZ
Sorry, it's been a long time, I don't remember that much but I am sure about your first statement and not sure about cache being shared. I hope you understand. Maybe @LuH remember that, he had also helped me alot.
Same here, it's been a long time and I haven't started my Droid 4 for over a year now, moved on to a newer phone because of faulty digitizer in several eBay replacements and frankly I don't understand now how could I live with such limited hardware (speaking of storage and RAM sizes).

However, I vaguely remember trying to get a hold of Mentor's sources and finding out he just "hacked" previously compiled stuff and didn't have any sources at all. While his work was greatly helpful, his provided resources not so much - except his post with a short description of changes and how to do something like that yourself, and which I can't find now.

Some of his info: https://xdaforums.com/showpost.php?p=59025633&postcount=16

Something I tinkered with: https://xdaforums.com/showpost.php?p=59731041&postcount=62 & https://xdaforums.com/showpost.php?p=60758581&postcount=99
 

FrankGo(Germany)

New member
Jan 9, 2020
1
0
Hello,
is it possible for anyone to create a ramdisk-file for the LineageOS 14.1 (24.12.2019) ?
For example from here: droid.cs.fau.de - lineage-14.1

(The ramdisk-file for Lineage 13 does not work for Lineage 14.1.)

Many thanks,
Droid.4@frankgo.de
 

Top Liked Posts

  • There are no posts matching your filters.
  • 17
    This version of SafeStrap is based on SafeStrap 3.75 but has a lot of differences with it:

    - there is not more the splashscreen during the boot, to enter in Safestrap you have to select BP Tools in the Boot Mode Selection Menu(VolUp&&VolDown+PowerOn)
    - has been added a Safe Rom slot that uses the unused partitions:
    /preinstall (~ 600mb) for /system
    /webtop (~ 1,4gb) for /data
    /cache is shared with the Stock Rom slot
    - in this version you have 6 slots: the Stock Rom slot, the Safe Rom slot and the four virtual slots
    - the Safe Rom slot is faster than any virtual slot and safer than the Stock Rom slot

    If you are using the original Safestrap you can simply install this new version over it and you will still have your roms in the virtual slots.
    This version of Safestrap works like any other version of Safestrap and you can use the Stock Rom slot and the four virtual slots as you are usually do, the only thing that is a bit complicated is to install an aosp rom in the new Safe Rom slot that i provided in it.


    DOWNLOAD AND GUIDE TO USE THE SAFE ROM SLOT


    HOW TO POST REQUEST FOR HELP:
    • You have to entirely read this thread, I do NOT answer redundant question.

    I do not answer to requests for help in private, I have neither the time nor the interest in doing so.
    Any doubts, questions or requests must be posted in this thread in order to answer a single time and help everyone.


    XDA:DevDB Information
    Safestrap 3.75 for unused partitions (/preinstall & /webtop) , Tool/Utility for the Motorola Droid 4

    Contributors
    Mentor.37

    Version Information
    Status: Stable

    Created 2015-02-21
    Last Updated 2016-01-05
    6
    Is the source code to this available anywhere? I would like to experiment with using different combinations of webtop and preinstall as installation partitions and obviously I need to modify the recovery in order to achieve this. It would be nice to be able to build on the work here rather than start from scratch.

    So I eventually got around to this. Here it is: https://github.com/timangus/droid4 . Basically it's a way to use the /webtop partition as /system so that you can fit a gapps package on there easily.
    5
    ramdisks for cm11, cm12.1 and cm13

    A lot of users from the xt894 and xt912 sections asked me in pm an help to build updates ramdisks for cm12.1 and a ramdisk for cm13 because with the old builds and with their own builds they had a phone restart after the kexec vibration, this happened because now the ramdisks have to be built as superuser to not break the new selinux permissions.

    Anyway yesterday I built new ramdisks for the last versions of the cm11 and cm12.1 and a ramdisk for cm13 based on the 22 nightly that will work also on the further updates until some relevant thing will not change in the ramdisk.

    I provided the ramdisks in a zip that can be flashed in recovery that also install a script to make the ramdisk persistent at the rom updates so you don't have to install the ramdisk every time, you only have to update the rom and the ramdisk will be automatically replaced.

    I'm not more using my droid 4 so i haven't personally tested the ramdisks, let me know if there are problems.

    Download
    5
    So, finally here is a working ramdisk for CM 12.1 20150515 :) Attached as ramdisk-update.zip

    Works fine, tested :) @Mentor.37, you can add it to post #2 if you want to.

    Also attached is mini kitchen I created for unpacking and repacking the CM 12 ramdisk as I was tired of the whole process of splitting, unpacking, packing, merging, and packaging into flashable zip - ramdisk-kitchen.zip. How to use:
    Code:
    Kitchen for unpacking and repacking ramdisk for CM 12+
    
    Works on UNIX only. Install zip to have it also automatedly create flashable zip on repack (on Gentoo # emerge zip).
    
    Contents:
    unpack.sh
    repack.sh
    ramdisk.img - ramdisk extracted from cm-12.1-20150515-NIGHTLY-maserati.zip
    update-empty.zip - empty update for Safestrap (based off Mentor.37's ramdisk updates)
    howto-use.txt - this help :)
    
    Usage:
    0. unpack all to some a working directory
    1. if you want to, replace ramdisk.img by ramdisk you want to edit. Provided one is from cm-12.1-20150515-NIGHTLY-maserati.zip
    2. $ sh unpack.sh
    3. now you have the ramdisk unpacked in ./kitchen/table/ and in ./kitchen/ there also are the two files of which the original ramdisk consisted. Edit whatever you want in ./kitchen/table/ and don't delete ./kitchen/safestrapped.cpio
    4. when done editing, run $ sh repack.sh
    5. now ./output/ramdisk.img was created, and if you have zip installed, also ./output/ramdisk-update.zip
    6. install ramdisk-update.zip in Safestrap :) Or put ramdisk.img to update-empty.zip/system/etc/kexec/ and use this one if ramdisk-update.zip not created automatically.
    
    Hope it helps. Created for editing ramdisk for CM 12.1 to be compatible with Mentor.37's Safestrap 3.75 for unused partitions of Motorola Droid 4 (http://xdaforums.com/droid-4/development/wip-safestrap-3-75-unused-partitions-t3023932) by LuH (http://xdaforums.com/member.php?u=566662)

    EDIT: I'm not sure how compatible unpacking is with other versions of combined ramdisk (if any other exist) - it does not search for start of second file, just splits it after 144 bytes. At first I tried to split it by content, but could not find any working way (i.e. this creates over 1800 random parts).

    Looks like all the tools I tried fail to read binary correctly. See "od -xca ramdisk.img | less": ascii output (second line) is right, hexadecimal (first line) is wrong - e.g. on line 0000220:
    Code:
    0000220    8b1f    0008    0000    0000    0300    7dbc    7c09    5553
            037 213  \b  \0  \0  \0  \0  \0  \0 003 274   }  \t   |   S   U
             us  vt  bs nul nul nul nul nul nul etx   <   }  ht   |   S   U
    third and fourth byte are switched in hex, but OK in ASCII and named output (it should be 8b1f 0800 in hex).
    3
    This thread is not about the ramdisks so do not ask about them.
    In case of problems you can build the ramdisk as i explained in the main thread.