Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

switch from linux to android - command line

417

Credits

15

Prestige

16

Contribution

intermediate

Rank: 3Rank: 3

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