BSG - Boot script generator

Search This thread

l1q1d

Retired Recognized Developer
Sep 19, 2008
1,134
95
Venice
www.tech-team.it
Hi to all, i made a python program that help user to install/update the system.
With this program you can stop using the android boot menu, you can put all in the script.

What you can do with Boot Script Generator:
- install system
- update system
- backup system, data (with old and new method)
- apply updates
- clean data and system
- install apps located in /sdcard/andboot/apps


UPDATE 22 / 08 / 2010
  • New interface
  • Add new backup options
  • Add image size options



No more press d-pad or volume up
No more install procedure

cross platform and only python is needed

you can choose where install
NAND - SD - IMAGE both for system and nand
and what you want to do before boot

Little how-to
flash modded nbh or put initrd.gz in andboot for haret users
open python script in a terminal:
Code:
python bootscriptgenerator.py
then choose what you want to do, (i.e first install)
put install-seq.sh in your sd in andboot folder (with other files)
turn on the phone.

you don't need to touch any button just wait :)

As you can see you can change many things.

Update initrd and nbh on 4/7/10

If you are an "haret" user use this initrd.gz

Boot Script Generator (right click on link -> save as file)

Simple how-to run android from windows - Simple guide to flash android on Nand

attachment.php


It could be very useful if you want to speed up your system update :)
 

Attachments

  • bsgscreenshot.PNG
    bsgscreenshot.PNG
    39.7 KB · Views: 928
Last edited:

mrono

Senior Member
Jun 4, 2009
1,573
4
Exciting, now you just need to make a android app as well to do this, that way you can set the options and hit reboot :)

Good job
 

Abomb

Senior Member
Jan 17, 2007
249
74
Hamburg
Hi,

I try to install Android on a Polaris and created an install script with your bootscript creator, but it always stops with the error:
'd: invalid number '512
where 512 is the size of the data image I have set in the creator gui.
Am I doing something wrong?

Thanks in advance

Abomb
 

Abomb

Senior Member
Jan 17, 2007
249
74
Hamburg
Here they are.
I forgot to mention that I commented out the data.img remove part, because that part gives me the error that the script file did end although a "then" was expected or something like this. But seeing as I do a fresh install and have no old data.img I thought it should not be a problem.
 

Attachments

  • install-seq.txt
    2.7 KB · Views: 5
  • installseq.png
    installseq.png
    40.5 KB · Views: 14

Abomb

Senior Member
Jan 17, 2007
249
74
Hamburg
I tried two things, first with 265 MB and the disk.img remove code left in, the second time with the code commented out.
The first time I got a bootlog.txt that I attached here, the second time I got the error again
'd: invalid number '256
but sadly no bootlog.txt. Oh and no error before the invalid number one.
 

Attachments

  • bootlog_1.txt
    872 bytes · Views: 3
Last edited:

Abomb

Senior Member
Jan 17, 2007
249
74
Hamburg
I tried with the new version, but exactly the same thing, tried first with disk.img delete code left in, second time commented that out.
Error messages were the same, first time bootlog was created, second time not.
I also double checked if I was using the new version of the creator.
 

l1q1d

Retired Recognized Developer
Sep 19, 2008
1,134
95
Venice
www.tech-team.it
Could you please make a test with this.
Please don't edit it (it could be a windows endline problem)
 

Attachments

  • install-seq.sh.zip
    1.4 KB · Views: 7

Abomb

Senior Member
Jan 17, 2007
249
74
Hamburg
With the file from your last post it works!

Did I do something wrong then?
I didn't edit the .sh file for the first try, only when that didn't work I edited it.
 

l1q1d

Retired Recognized Developer
Sep 19, 2008
1,134
95
Venice
www.tech-team.it
The problem is the windows end line.
It isn't your fault is WINDOWS :-(
i update a new version, now i need someone to test it :)
 
Last edited: