1. Nimm jetzt an unserem Uhans - 3. ADVENT - Gewinnspiel teil - Alle Informationen findest Du hier!

[How-To] mot_boot_mode als init service

Dieses Thema im Forum "Anleitungen für Motorola Milestone" wurde erstellt von The Matrix, 19.05.2010.

  1. The Matrix, 19.05.2010 #1
    The Matrix

    The Matrix Threadstarter Android-Hilfe.de Mitglied

    Beiträge:
    87
    Erhaltene Danke:
    18
    Registriert seit:
    08.04.2010
    hi,
    if you have many data on your mot_boot_mode,
    the editing can be difficult.

    so, I created a script that allows to separate
    the code of the different initialization scripts.

    so, you may include in a directory files
    initialization and that they be read by mot_boot_mode
    automatically, thus adding a new code
    is to simply copy a file to this directory.

    to do this have to do that:

    Code:
    i've tried, and working, but i'm not responsible for
    damages, brickes, etc...  :)
    
    1) mounting system for read and write

    Code:
    rwsystem
    
    2) create the directory where all scripts are stored

    Code:
    mkdir /system/boot_scripts
    chmod 755 /system/boot_scripts
    
    3) copy all the scripts.
    assuming that they have in /sdcard/boot_scripts
    (Attached the Dalvik-Cache moving and overclocking)
    (lock at the overlock script. it assumes you've
    the overclock.ko at /system/modules/)

    Code:
    cp /sdcard/boot_scripts/* /system/boot_scripts
    chmod 755 /system/boot_scripts/*
    
    4) preserve the original mot_boot_mode
    (Not do if they had done)

    Code:
    cp /system/bin/mot_boot_mode /system/bin/mot_boot_mode.bin
    chmod 755 /system/bin/mot_boot_mode.bin
    
    5) copy the new mot_boot_mode
    assuming they have left in /sdcard

    Code:
    cp -f /sdcard/mot_boot_mode /system/bin
    chmod 755 /system/bin/mot_boot_mode
    
    and now all the files at the "/system/boot_scripts"
    are executed in boot time :)

    greetings and enjoy
     

    Anhänge:

    Zuletzt bearbeitet: 19.05.2010
  2. -FuFu-, 19.05.2010 #2
    -FuFu-

    -FuFu- Android-Urgestein

    Beiträge:
    8,406
    Erhaltene Danke:
    3,148
    Registriert seit:
    17.03.2010
    Phone:
    Motorola Moto E 2.Gen
    very nice work ;)
    in the OpenRecovery LMF mod the mot_boot_mode is also splitet, to easy add new features, but i add numbers to the filenames, to load the scripts in a specific sequence, so thats a script thats needs a other script load befor is load after this script...

    just take a look ;) i think we do the same thing in 2 different ways ^^
     
  3. The Matrix, 20.05.2010 #3
    The Matrix

    The Matrix Threadstarter Android-Hilfe.de Mitglied

    Beiträge:
    87
    Erhaltene Danke:
    18
    Registriert seit:
    08.04.2010
    sorry, but i don't find it :(
    please, provide me the url
    thx
     
  4. inazr, 20.05.2010 #4
    inazr

    inazr Android-Experte

    Beiträge:
    600
    Erhaltene Danke:
    154
    Registriert seit:
    29.12.2009
    Phone:
    Samsung Galaxy S6 Edge
  5. The Matrix, 20.05.2010 #5
    The Matrix

    The Matrix Threadstarter Android-Hilfe.de Mitglied

    Beiträge:
    87
    Erhaltene Danke:
    18
    Registriert seit:
    08.04.2010
    hi, downloaded, but not capable to find the related mot_boot_mode.
     
  6. -FuFu-, 20.05.2010 #6
    -FuFu-

    -FuFu- Android-Urgestein

    Beiträge:
    8,406
    Erhaltene Danke:
    3,148
    Registriert seit:
    17.03.2010
    Phone:
    Motorola Moto E 2.Gen
    the mot_boot_mode is under /OpenRecovery/LMF/bin
     
  7. The Matrix, 21.05.2010 #7
    The Matrix

    The Matrix Threadstarter Android-Hilfe.de Mitglied

    Beiträge:
    87
    Erhaltene Danke:
    18
    Registriert seit:
    08.04.2010
    ok, the mot_boot_mode at LMF uses busybox in order to list files sorted by name (find).
    i don't like busybox. i preffers my script ;)
    thank's
     

Diese Seite empfehlen