done!
I successfully copied the hosts file
on the legend.
OF COURSE you must be knowing rooting procedures and recovery and console command, and whatever happens it's not my fault.
instructions:
1) have your legend rooted, of course
2) put a suited
hosts.txt file in the
etc folder of your recovery directory, e.g. "C:\r4-legend-root\files\hosts.txt" --- in this way we 'll temporarily have the hosts.txt file into your phone
3) enter into recovery mode
4) in your administrator console on your pc, type:
Code:
adb shell mount -o rw -t yaffs2 /dev/block/mtdblock3 /system
adb shell cp /etc/hosts /system/etc/hosts
adb shell mount -o ro -t yaffs2 /dev/block/mtdblock3 /system
(the latter command returns "system busy" to me, maybe yours won't)
5) wait a couple of seconds, just for sake, then reboot your phone
et voilà
at next reboot, the new hosts file works!
cool people may want to set hosts file properties, but I didn't do.
after all, at the next reboot the system is still read-only so it shouldn't be necessary to set permissions