ROMs y desarrollo HTC Magic ROMs y desarrollo HTC Magic

Respuesta
 
Herramientas
  #1  
Viejo 03/08/10, 20:11:08
Array

[xs_avatar]
elfasito elfasito no está en línea
Miembro del foro
 
Fecha de registro: mar 2010
Localización: totoras
Mensajes: 356
Modelo de smartphone: HTC DREAM

alguno de los cosineros sabe como aplicar este script a una rom?

holas, me vengo preguntando desde hace tiempo si algunos de los cosineros de aqui sabria como crear/aplicar este script a una rom.
el script lo que hace segun entiendo es redirigir algunos archivos de la rom, para asi lograr ejecutar la rom sin necesidad de tener instalado danger-spl
mi explicacion puede estar mal como dije es lo que me parese que hace, bien aqui el script:

este script funciona correctamente ya que fue el que se uso para la modificacion de la CM5.0.8 final. y es la rom que tengo actualemente con spl stock

He insertado la negrita en el script de actualización

Código:
show_progress(0.200000, 10);
ui_print("Installing system...");
format("MTD", "system");
ui_print("Check for NoneDangerSPL...");
package_extract_file("InstallPrep.sh", "/tmp/InstallPrep.sh");
set_perm(0, 0, 0777, "/tmp/InstallPrep.sh");
run_program("/tmp/InstallPrep.sh");
ui_print("Check for NoneDangerSPL complete");
mount("MTD", "system", "/system");
show_progress(0.500000, 40);
y este es el script que se ejecuta
InstallPrep.sh
InstallPrep.sh

Código:
#!/sbin/sh

gogogo ()
{
mount /cache
Block4=`df |grep block4|awk '$0 { print $2 }'|head -n1`
if [ `expr $Block4 \/ 1024` -lt "67" ];
then
    Danger
elif [ `expr $Block4 \/ 1024` -gt "67" ];
then
    MT3G
else
    NoneDanger
fi
}


PrepBase ()
{
    mount /system
    if [ ! -d /system/sd ];
    then
        mkdir /system/sd
    fi
    mount -a
return
}    

banner ()
{
if [ ! -d /system/etc/init.d ];
then
    install -d /system/etc/init.d
fi

cat > /system/etc/init.d/00ndbanner << "EOF"
#!/system/bin/sh
#
# indicate tainted
L="log -p i -t cm"
$L "
    )                (                                
 ( /(                )\ )                             
 )\())            ( (()/(     )       (  (    (  (    
((_)\  (   (     ))\ /(_)) ( /(  (    )\))(  ))\ )(   
 _((_) )\  )\ ) /((_|_))_  )(_)) )\ )((_))\ /((_|()\  
| \| |((_)_(_/((_))  |   \((_)_ _(_/( (()(_|_))  ((_) 
| .\` / _ \ ' \)) -_) | |) / _\` | ' \)) _\` |/ -_)| '_| 
|_|\_\___/_||_|\___| |___/\__,_|_||_|\__, |\___||_|   
                                     |___/"
EOF
chmod 700 /system/etc/init.d/00ndbanner
return
}


Danger ()
{
PrepBase
echo "no action required"
return
}

MT3G ()
{
PrepBase
echo "no action required"
return
}

NoneDanger ()
{
PrepBase
install -d /data/local
install -d /system/media
for i in bootanimation.zip;do
    ln -s /data/local/$i /system/media/$i
done
mkdir /data/gapps
install -d /system/app
for i in BugReport.apk EnhancedGoogleSearchProvider.apk GenieWidget.apk Gmail.apk GmailProvider.apk GoogleApps.apk GoogleBackupTransport.apk GoogleCheckin.apk GoogleContactsSyncAdapter.apk GooglePartnerSetup.apk GoogleSettingsProvider.apk GoogleSubscribedFeedsProvider.apk gtalkservice.apk LatinImeTutorial.apk Maps.apk MarketUpdater.apk MediaUploader.apk NetworkLocation.apk PassionQuickOffice.apk SetupWizard.apk Street.apk Talk.apk TalkProvider.apk Vending.apk VoiceSearch.apk YouTube.apk Gallery.apk;do
    ln -s /data/gapps/$i /system/app/$i
done
cat > /dev/10bind-dc << "EOF"
#!/system/bin/sh
if [ -e /cache/dalvik-cache ] && [ ! -d /cache/dalvik-cache ];
then
    rm /cache/dalvik-cache
fi

if [ ! -d /cache/dalvik-cache ];
then
    install -m 771 -o 1000 -g 1000 -d /cache/dalvik-cache
fi

rm /data/dalvik-cache/*
busybox mount -o bind /cache/dalvik-cache /data/dalvik-cache
EOF
install -m 700 -D /dev/10bind-dc /system/etc/init.d/10bind-dc
banner 
return
}

# ok, lets start
gogogo
exit 0

Última edición por elfasito Día 03/08/10 a las 20:23:36.
Responder Con Cita


Respuesta

Estás aquí
Regresar   Portal | Indice > Otras marcas y modelos de smartphones de venta en España > HTC > Otros modelos antiguos de HTC > HTC Magic > ROMs y desarrollo HTC Magic



Hora actual: 19:49:24 (GMT +1)



User Alert System provided by Advanced User Tagging (Lite) - vBulletin Mods & Addons Copyright © 2026 DragonByte Technologies Ltd.

Contactar por correo / Contact by mail / 邮件联系 /