CUSTOM ROM DraGonFly Rom

Si tío....se me fue un mucho la olla....

DraGonFly by Xancin
Xdddddddd. Entonces para modificar el boot.img en este móvil sabes algo? Ya conseguí modificar el de otros moviles pero con este no consigo nada.

Enviado desde mi HM NOTE 1W
 
Mira aqui dejo el log del terminal. Todos los comandos estan puestos seguidos, sin modificar nada aparte:
aex12@Alex-PC-Xubuntu:~/cocina/trabajando$ unpackmtk boot.img
MTK-Tools by Bruno Martins
MT65xx unpack script (last update: 27-01-2013)

Valid Android signature found...

Input file information:

Kernel size: 4550656 bytes / load address: 0x10008000
Ramdisk size: 685837 bytes / load address: 0x11000000
Second stage size: 0 bytes / load address: 0x10f00000
Page size: 2048 bytes
ASCIIZ product name: ''
Command line: (none)

Kernel written to 'boot.img-kernel.img'
Ramdisk size: 2422 bloques
Extracted ramdisk contents to directory 'boot.img-ramdisk'

Successfully unpacked kernel and ramdisk.
aex12@Alex-PC-Xubuntu:~/cocina/trabajando$ repack_ramdisk boot.img-ramdisk
cpio: ./init.usb.rc: No se puede open: Permiso denegado
2380 bloques
aex12@Alex-PC-Xubuntu:~/cocina/trabajando$ chmod -R 777 boot.img-ramdisk
aex12@Alex-PC-Xubuntu:~/cocina/trabajando$ repack_ramdisk boot.img-ramdisk
2422 bloques
aex12@Alex-PC-Xubuntu:~/cocina/trabajando$ mkbootimg --kernel boot.img-kernel.img --ramdisk new-ramdisk.cpio.gz --base 0x10000000 -o newboot.img
aex12@Alex-PC-Xubuntu:~/cocina/trabajando$ sudo ./fastboot flash boot newboot.img
[sudo] password for aex12:
sending 'boot' (5114 KB)...
OKAY [ 0.216s]
writing 'boot'...
OKAY [ 1.250s]
finished. total time: 1.466s
aex12@Alex-PC-Xubuntu:~/cocina/trabajando$ sudo ./fastboot reboot
rebooting...

finished. total time: 0.002s

Cuando inicio el telefono se queda en el logo, luego se pone la pantalla en negro un par de segundos y vuelve al logo, y asi sucesivamente. Y como aqui se puede ver, dentro del ramdisk hau un enlace simbolico llamado res que apunta a /system/res:

aex12@Alex-PC-Xubuntu:~/cocina/trabajando$ cd boot.img-ramdisk
aex12@Alex-PC-Xubuntu:~/cocina/trabajando/boot.img-ramdisk$ ls -l
total 392
drwxrwxrwx 2 aex12 aex12 4096 ago 29 18:44 data
-rwxrwxrwx 1 aex12 aex12 236 ago 29 18:44 default.prop
drwxrwxrwx 2 aex12 aex12 4096 ago 29 18:44 dev
-rwxrwxrwx 1 aex12 aex12 127 ago 29 18:44 enableswap.sh
-rwxrwxrwx 1 aex12 aex12 224 ago 29 18:44 factory_init.project.rc
-rwxrwxrwx 1 aex12 aex12 16245 ago 29 18:44 factory_init.rc
-rwxrwxrwx 1 aex12 aex12 792 ago 29 18:44 fstab
-rwxrwxrwx 1 aex12 aex12 171192 ago 29 18:44 init
-rwxrwxrwx 1 aex12 aex12 411 ago 29 18:44 init.aee.customer.rc
-rwxrwxrwx 1 aex12 aex12 23593 ago 29 18:44 init.charging.rc
-rwxrwxrwx 1 aex12 aex12 2583 ago 29 18:44 init.goldfish.rc
-rwxrwxrwx 1 aex12 aex12 3064 ago 29 18:44 init.modem.rc
-rwxrwxrwx 1 aex12 aex12 1182 ago 29 18:44 init.no_ssd.rc
-rwxrwxrwx 1 aex12 aex12 2869 ago 29 18:44 init.project.rc
-rwxrwxrwx 1 aex12 aex12 1487 ago 29 18:44 init.protect.rc
-rwxrwxrwx 1 aex12 aex12 51829 ago 29 18:44 init.rc
-rwxrwxrwx 1 aex12 aex12 2126 ago 29 18:44 init.trace.rc
-rwxrwxrwx 1 aex12 aex12 21497 ago 29 18:44 init.usb.rc
-rwxrwxrwx 1 aex12 aex12 583 ago 29 18:44 init.xlog.rc
-rwxrwxrwx 1 aex12 aex12 638 ago 29 18:44 meta_init.modem.rc
-rwxrwxrwx 1 aex12 aex12 1862 ago 29 18:44 meta_init.project.rc
-rwxrwxrwx 1 aex12 aex12 11478 ago 29 18:44 meta_init.rc
drwxrwxrwx 2 aex12 aex12 4096 ago 29 18:44 proc
lrwxrwxrwx 1 aex12 aex12 11 ago 29 18:44 res -> /system/res
drwxrwxrwx 2 aex12 aex12 4096 ago 29 18:44 sbchk
drwxrwxrwx 2 aex12 aex12 4096 ago 29 18:44 sbin
drwxrwxrwx 2 aex12 aex12 4096 ago 29 18:44 sys
drwxrwxrwx 2 aex12 aex12 4096 ago 29 18:44 system
-rwxrwxrwx 1 aex12 aex12 272 ago 29 18:44 ueventd.goldfish.rc
-rwxrwxrwx 1 aex12 aex12 7122 ago 29 18:44 ueventd.rc
 
o sea que falta esto en el boot
# Start init.d configuration
service init.d /system/bin/sh /system/etc/install-recovery.sh
class main
user root
group root
oneshot
 
Pues ya lo esta....por lo menos en el boot

DraGonFly by Xancin
 
Para probar si funciona correctamente init.d, dentro de la carpeta /system/etc/init.d creamos un archivo con cualquier nombre, y dento escribimos lo siguiente:

#!/system/bin/sh

echo Funciona >> /storage/sdcard0/initd.txt

Si cuando reiniciamos el telefono se nos crea el archivo initd.txt en la SD Interna es porque funciona correctamente init.d
 
Si eso ya lo se. Pero necesitas busybox instalado. El soporte para init el boot ya lo tiene

DraGonFly by Xancin
 
Pues ya lo esta....por lo menos en el boot

DraGonFly by Xancin
Si, en el boot.img está puesto como en el enlace de esp-desarrolladores, pero en alguna parte leí que ese metodo no siempre funciona, y que el metodo de xda era mas recomendable.

Si eso ya lo se. Pero necesitas busybox instalado. El soporte para init el boot ya lo tiene

DraGonFly by Xancin
Busybox ya lo tengo instalado correctamente en /system/xbin/busybox. Y el modulo run-parts me funciona correctamente.

http://tapatalk.imageshack.com/v2/14/08/29/3877ab1c297af91b40586369ac1110df.jpg
 
Desempaquetar lo consigo hacer correctamente, el problema es que al reempaquetar bootee.

Ya he conseguido hacerlo funcionar, habia que ajustar los permisos a 0777 a los scripts en init.d, el problema es que con el boot.img actual hay que darselos manualmente a cada script, en cambio como se muestra en el enlace de xda se ajustan los permisos automaticamente en cada inicio.
 
Si pero donde esta la linea de bootanimation que dice en init?
 

Del blog

¿Ha terminado la locura de añadir tantas cámaras a los móviles?

  • Si

  • No

  • No lo se

  • Ya me gustaría...

  • Ya te gustaría...


Los resultados solo son visibles tras votar.
Atrás
Arriba