Code: |
$su
#sh sdcard/modif/modif (rien ne se passe) |
Code: |
#!/system/bin/sh
# Monte le systeme de fichiers en lecture/ecriture pour # permettre le remplacement des fichiers systeme MOUNT_RW() { busybox mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system; } # Remplace les fichiers systeme de mapping des touches du # clavier par les fichiers correspondant au clavier AZERTY FORCE_AZERTY() { busybox cat /sdcard/modif/trout-keypad-qwertz.kl > /system/usr/keylayout/trout-keypad-qwertz.kl; busybox cat /sdcard/modif/trout-keypad-v2.kl > /system/usr/keylayout/trout-keypad-v2.kl; busybox cat /sdcard/modif/trout-keypad-v3.kl > /system/usr/keylayout/trout-keypad-v3.kl; busybox cat /sdcard/modif/trout-keypad.kl > /system/usr/keylayout/trout-keypad.kl; busybox cat /sdcard/modif/qwerty.kl > /system/usr/keylayout/qwerty.kl; busybox cat /sdcard/modif/sapphire-keypad.kl > /system/usr/keylayout/sapphire-keypad.kl; busybox cat /sdcard/modif/azerty.kcm.bin > /system/usr/keychars/qwerty.kcm.bin; busybox cat /sdcard/modif/azerty.kcm.bin > /system/usr/keychars/qwerty2.kcm.bin; busybox cat /sdcard/modif/azerty.kcm.bin > /system/usr/keychars/sapphire-keypad.kcm.bin; busybox cat /sdcard/modif/azerty.kcm.bin > /system/usr/keychars/trout-keypad-qwertz.kcm.bin; busybox cat /sdcard/modif/azerty.kcm.bin > /system/usr/keychars/trout-keypad-v2.kcm.bin; busybox cat /sdcard/modif/azerty.kcm.bin > /system/usr/keychars/trout-keypad-v3.kcm.bin; busybox cat /sdcard/modif/azerty.kcm.bin > /system/usr/keychars/trout-keypad.kcm.bin; } # Remplace le fichier build.trout.prop par une version modifiee # pour acceder a la tv orange TV_ORANGE() { busybox sed -i -e 's/ro.product.model=.*$/ro.product.model=HTC Dream/' -e 's/ro.product.brand=.*$/ro.product.brand=htc-dream_orange/' -e 's/ro.product.locale.language=.*$/ro.product.locale.language=fr/' -e 's/ro.product.locale.region=.*$/ro.product.locale.region=FR/' /system/build.trout.prop; #busybox cat /sdcard/modif/build.trout.prop > /system/build.trout.prop; } #Programme principal MOUNT_RW; FORCE_AZERTY; TV_ORANGE; reboot; |