Firefly Open Source Community

Title: switch from linux to android - command line [Print This Page]

Author: macdam    Time: 10/5/2015 21:54
Title: switch from linux to android - command line
Hi,

How can I switch the system loaded on boot, Linux to android, from the command line?

kind regards,
Mathieu
Author: sghazagh    Time: 10/6/2015 04:44
Last edited by sghazagh In 10/6/2015 04:47 Editor

Hi,
You can easily do it by:
1- Making a file like "/usr/local/bin/boot_to_android.sh" and copy these codes in it:
  1.         #!/bin/bash
  2.         sudo dd if=/dev/zero of=/dev/block/mtd/by-name/misc bs=16k count=3
  3.         sudo sync
  4.         sudo reboot
Copy the code

2- Make the file executable. On command prompt type:
  1. $ sudo chmod +x  /usr/local/bin/boot_to_android.sh
Copy the code

3- Execute the script and you will reboot to Android:
  1. $ boot_to_android.sh
Copy the code

Cheers,






Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1