Originally Posted by kommonk
could we not some how twist this into a widget that will reboot into a Rom on the SD card like free x10 started?
Sorry if its a stupid question :)
It's not a stupid question. In fact, I was just thinking about this.
FYI, here's how this script works:
1. The script makes an empty file called flashtool
and puts it in /data/local/tmp
2. Whenever the phone starts, the script in chargemon
3a) If the flashtool
file exists, it deletes the flashtool
file and boots into xRecovery.
3b) If the flashtool
file doesn't exist, it boots normally.
That's it. (Well okay, it also checks to see if you pressed a key during startup for booting into xRec.)
As you can see, the flashtool
file is simply an empty file. All it does is act like a "flag". Therefore, it doesn't matter what the file is called
as long as the reboot script and "chargemon" match.
We used to be able to dual-boot into two different ROMs, but we lost that ability in order to be able to boot to xRecovery. I never actually tried it, so I didn't know how it worked. I think
the problem was that chargemon could check for a keypress, but it couldn't tell which key is pressed (yes, you can boot into xRec with ANY key, even Power).
However, now we have this new "flag" file method of booting. So the question is this:
Can we use different flag files to boot to multiple ROMs? After all, DooMLoRD's explanation of CM7 shows us that we can use two flag files (recoveryboot
) to do two different things. It follows that we should be able to use as many flag files as we want