Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

switch from linux to android - command line

142

Credits

0

Prestige

0

Contribution

registered members

Rank: 8Rank: 8

Credits
142

switch from linux to android - command line

Posted at 10/5/2015 21:54:44      View:3286 | Replies:2        Print      Only Author   [Copy Link] 1#
Hi,

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

kind regards,
Mathieu
Reply

Use props Report

417

Credits

15

Prestige

16

Contribution

intermediate

Rank: 3Rank: 3

Credits
417
Posted at 10/6/2015 04:44:01        Only Author  2#
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,

Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list