File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,6 +38,11 @@ do_shell()
3838 adb shell " $@ "
3939}
4040
41+ do_chroot ()
42+ {
43+ do_shell " chroot /cache/system $@ "
44+ }
45+
4146convert_android_img ()
4247{
4348 if file $SYSIMG | grep -v " : Linux rev 1.0 ext4" > /dev/null; then
@@ -190,6 +195,13 @@ do_shell "cd /cache/system && zcat /recovery/$TARBALL | tar xf -"
190195do_shell " [ -e /cache/system/SWAP.swap ] && mv /cache/system/SWAP.swap /data/SWAP.img"
191196echo " [done]"
192197
198+ echo " Generating SSH host keys on the device"
199+ do_chroot " rm /etc/dropbear/dropbear_rsa_host_key"
200+ do_chroot " dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key"
201+
202+ echo " Changing password needed for root ssh login"
203+ do_chroot passwd root
204+
193205echo -n " adding android system image to installation ... "
194206convert_android_img
195207ANDROID_DIR=" /data"
You can’t perform that action at this time.
0 commit comments