yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] mi3x:
Ok, my first report.

First, as a new build was released I tried to test the task directly, but after some minutes, I cancelled the script. Then, I browsed to the CM7 folder and I saw the build 9 downloaded there (I am on 15, and the new one was 16).

I thought it was because I cancelled the script, so I deleted the zip there, and placed instead my actual build i.e 15.

Re-ran the task again, all good, it d\l and flashed the rom on my phone, but instead of having build 16 on my phone, it was the build 9, (from 30/07).

So there must be a bug, I assume.

Just wanted to let you know, hope you'll fix it as I'd love to use it.

Sorry for my English :)
[Android Apps and Games] strictlyrude27:
What device do you have? I'll look into it..
[Android Apps and Games] mi3x:
Im on Samsung Galaxy S2.
[Android Apps and Games] strictlyrude27:
Nice catch. I just looked at the mirror page for your device.. Since 9 is a single digit, it's the last link on the page. I assumed that the last link is always the latest mirror.

If you try again tomorrow or the next day it should work, since eventually Build 9 will be removed from the page. I'll try to work on this this week (along with the rewrites).
[Android Apps and Games] Sunblood:
The last couple times I tried the script, it will start the download and pop up with "Download completed with errors" a few minutes later (not long enough to actually finish the download) and then reboot and try to install the failed package. CWM fails the hash check and reboots normally.

Droid X (shadow)
[Android Apps and Games] strictlyrude27:
Thanks for the catch. I check the MD5 before I reboot into download mode, and it's supposed to error out if the check fails.

All, I will try to have V2 released this weekend. Life's a bit hectic right now and frankly there wasn't a whole lot of interest in this project from the community before, so nobody tested for me all this stuff.. thanks for the help!
[Android Apps and Games] mi3x:
I find it very interesting, so I will gladly help if possible. Thanks again.
[Android Apps and Games] XlAfbk:
does this also wipe /data/ after flashing?
[Android Apps and Games] Sunblood:
I would hope not.

One suggestion: I use Rom Manager Janitor to clean up old backups on boot so I only have ~3 or so, but it specifically looks for the naming system that Rom Manager uses so it doesn't delete manual backups. Could you use the same naming convention or do you just pass the "backup" command to CWM and let it do its own thing?

Otherwise, I'd rather stick with RM's backup and just have this script flash the nightly.

The notifications that SecureSettings throws up (not the ongoing, but the one-off errors and such) don't activate the Clear button in the dropdown window so I have to click it to clear them. It's probably an issue with SecureSettings but I thought I'd let you know.

Finally, I have two gapps zips in the AutoCM7 folder. 20110613 and 201106130. Can I delete one?

Update on my issue: I'm going to try and get a screenshot of the error message that the download spits out. It shows the download hit 100% but the file size keeps increasing until ~102mb, then the md5 check fails. Manually downloading (i.e. via rom manager) works fine.
[Android Apps and Games] Sunblood:
Screenshots:

http://i.imgur.com/Ix4jo.png

http://i.imgur.com/0BPBJ.png

http://i.imgur.com/a8Vn9.png

As you can see, the download hits 100% about halfway through the actual filesize. The MD5 of the downloaded file actually matches the md5 on the nightly site, but it says the md5 fails. Manually selecting the zip with Rom Manager works just fine.
[Android Apps and Games] strictlyrude27:
Thanks for the input. I plan on doing a complete rewrite this week with a release by the weekend with all these bugs in mind.
[Android Apps and Games] Sunblood:
Anytime. This is actually a project I was thinking of tackling myself, but my version wouldn't have been nearly as robust. Here's some more to think about

-Clockwork threw up something that said "Unknown volume path for []" (or similar, I don't remember exactly and it flashed by) when it tried to install the full zip.

-In AutoCM7.sh, you have one gapps as 20110613 and one as 201106130. I don't know if that was intentional. They have identical md5sums.

-I don't know what RemoteMD5 returns but running md5 via terminal emulator returns the md5 followed by the filename - if Remote just has the md5, they won't match.

That's all I have, for now.
[Android Apps and Games] Sunblood:
I found my problem

CM7ZipFile.txt never gets created on my sdcard. That's the file that stores the full path of the flashable zip and passes it to writeRecovery. It doesn't exist, so CWM never gets the path for the zip file.

Also, RemoteMD5 is full of html and doesn't actually contain an MD5 hash anywhere inside - this is because the Droid X is under "cdma_shadow" on the CM7 site but all the zip files are just "shadow"

(I just realized that this was my whole problem in the first place - the script errors out after failing the MD5 check, doesn't create CM7ZipFile.txt, but the Task continues on to writeRecovery which passes a blank argument to CWM and doesn't install anything. I fixed my own by removing "exit 3" after the MD5 check but I suppose I'll just mod it to get the proper MD5 in the first place.)
[Android Apps and Games] sixstringsg:
I run a custom kernel on top of CM7, is there a way to flash that automatically after the nightly?
[Android Apps and Games] strictlyrude27:
that's part of the rewrite :) I also flash a custom kernel, as well as my own GPS Fix for my phone. the plan is to write a task that asks a user for a particular item to flash every time and tack that into /cache/recovery/extendedcommand

hang tight, guys. i'm going through a personal emergency and haven't had much time to deal with this. thanks for your interest in my project!
[Android Apps and Games] ninjasauce:
Does this wipe anything before install?

I want a HTC Status!!!
[Android Apps and Games] Sunblood:
No.

*(10 characters.)*
[Android Apps and Games] ninjasauce:
Ok I went ahead and Reyes but I guess since I had a different clockwork recovery then normal it wouldn't go threw it just booted up to recovery then instantly reboot the phone I was on clockword 4.0.0.7 I think so ill have to retry on 2.5.1.7 when a new update comes out

I want a HTC Status!!!
[Android Apps and Games] Sunblood:
Would it be possible to just have the script install every .zip inside a specific folder? Then we could just copy the .zips we want into the right folder instead of having to set them up via a Tasker profile. Though the order of installation might be an issue.
[Android Apps and Games] mi3x:
There where would the fun be? /patiently waiting for the weekend update.
[Android Apps and Games] strictlyrude27:
It'll likely be more like Sunday or Monday. As I said, dealing with an emergency right now and have had zero time to work on anything else.. :(
[Android Apps and Games] strictlyrude27:
To all -

Rewrite is going very well, and I plan on getting it released by tomorrow night. It's much more robust, much better at downloading the correct files and MD5 checksums; now announces to you how far along in the download process you're in; allow for automatic flashing of files on top of your nightly and the GApps package, such as kernels or fixes; and I've got it set up so in the future I can easily add more features.

The next big addition will be manual checking for new nightlies (so you can download and flash at your leisure, rather than have to wait for your profile to fire or manually checking and having it immediately flash after download), and the ability to restore your backups. Basically I intended for this to be as complete as possible of a ROM Manager replacement.

Could you post what naming convention ROM Manager Janitor uses? I use the format YYYY-MM-DDTHH.MM.SSam_{RomName}_{KernelName}, but I'm open to suggestions.
[Android Apps and Games] strictlyrude27:
tRUE RELEASED!

Dear all -

After a long couple days of working, I have finally come up with the awesome Tasker setup that this project should have been originally. I give you tRUE: the Tasker Recovery User interfacE (I realize I'm stretching the acronym a bit.. :D )

Check OP for what's new, how to use/install, etc. Please give me feedback! LOADS of new information up there. I've been testing, tweaking, and running edge cases all day. I think you'll like the work! I am still working on testing all the recovery mode stuff (entering, flashing correctly, etc) but that was previously working so I think it should be fine. (EDIT: I just used tRUE to download my nightly, auto-backup, nandroid, wipe cache and dalvik, flash nightly, flash gapps, flash kernel, flash gps fix, reboot :) SUCCESS!!!!! :cool: )

I will at some point write a task that lets you send me error reports.. :eek:

I wrote tRUE-AddNewZip specifically to do batch zip install :) great feature request!

Right now, this is only compatible with CMW3 and above - it's my understanding that CM7 does not use CWM2.x.x.x recovery, so I didn't write support for it. It's very easy to add support if this is necessary, but you shouldn't be using my profile scheme to perform a first-time-installation of CM7.
[Android Apps and Games] sixstringsg:
It worked wonderfully, I just tested, then reccommended it to everyone that runs glitch. Thanks for the great work.
[Android Apps and Games] tiuk:
This is a continuation of the conversation I started in the glitch thread, where I first learned of this project when sixstringsg posted about it today, quoting for context:

My main worry is based on behavior I've noticed when I'm running Glitch's kernel, a nightly, then the kernel again.

Basically, I've found that if I have an oc/uv setup and flash as described above, once the kernel is flashed over the new nightly my old UV settings are wiped by Glitch's update script, but my OC (max cpu clock) is not. I think this is because the max cpu is saved by cmparts and restored on boor. As a result, once the kernel is flashed and I boot, my phone is running at my old max clock but with no UV. On my phone at least, this can lead to hard locks or boot looping, which is why I voiced concern about doing all this flashing automatically while I sleep.

Normally to make sure I don't boot loop when flashing the kernel on a new nightly I manually set my max clock to 1ghz with voltage control. if I forget, the kernel cleaning script (sorry, don't remember the author's name exactly, something like lippo) also works.

If this has already been accounted for then sorry for the trouble, I haven't had a chance to try your profile yet.
[Android Apps and Games] strictlyrude27:
You can always use tRUE-AddNewZip to add the kernel cleaning zip to the list of stuff to flash! (Or manually edit /sdcard/tRUE/toflash.txt, each line should be an absolute pathname to the zip to flash; update-zips will get flashed in the order of appearance in this file).

So you could use tRUE-AddNewZip to first add the kernel cleaning script, then tRUE-AddNewZip again to add the kernel. Then when Tasker goes into recovery mode after downloading the nightly, it'll Nandroid, wipe cache and dalvik, flash the nightly, flash GApps, flash kernel cleaner, and finally flash Glitch.
[Android Apps and Games] sixstringsg:
Go to cyanogenmod settings, then performance, then CPU settings. Untick set on boot. I might write an update script to replace svoltscheduler after flashing this so that wont happen as well.
[Android Apps and Games] ninjasauce:
I seem to get stuck at check build.prop it shows the flash for it but then nothing else during the setup not sure if I have the folders in the right place since I used root explorer to unzip it witch auto sends it to the extracted folder

I want a HTC Status!!!
[Android Apps and Games] strictlyrude27:
Are you currently running a CM7-based ROM? Please give as many details as you can - did the Secure Settings notifications pop up in your status bar? Did you install Secure Settings plugin? Did you check "Allow External Access" in Tasker? Were there no more toast notifications after it checks your build.prop?

Open a shell (either via ADB or terminal emulator) and type

getprop ro.modversion
getprop ro.product.device

and post the output of those commands.
[Android Apps and Games] strictlyrude27:
Post#2 now contains an upcoming-release log and a FAQ! Check it out :D :D :D Please keep up with feature requests and bug reports, this is loads of fun for me!

sixstringsg came up with a way to preserve s_volts_scheduler and restore it on flash, which will get implemented in the next version (hopefully released tomorrow night).
[Android Apps and Games] ninjasauce:
$ export PATH=/data/local/bin:$PATH
$ su
# getprop ro.modversion
CyanogenMod-7-08132011-NIGHTLY-Liberty
# getprop ro.product.device
liberty
#

Yes cm7 and yes to everything else and no nothing else seems to happen after it checks for the build prop

I want a HTC Status!!!
[Android Apps and Games] strictlyrude27:
Reboot and try again?

No, seriously, reboot and try again. There are couple bugs with Secure Settings Plugin that I sometimes run into where a script wouldn't fire but would be fine after rebooting - this could be one of those times. Also try increasing some of the Wait Until times in tRUE-SETUP to 5 seconds.

Finally, I didn't ask this: Are you running Tasker 1.1?
[Android Apps and Games] ninjasauce:
I've already rebooted and yes I do have the 1.1 of tasker I have a feeling I don't have the scripts in the right place or something

I want a HTC Status!!!
[Android Apps and Games] strictlyrude27:
Hmm.. I don't call any scripts in tRUE-SETUP, so that's not the reason why you're not getting out of there.

Open the task, click on each "Secure Settings" Action, hit EDIT, then check the box that says "Show Output". Then hit all the checkmarks until you exit Tasker. Open Tasker again, then try to run setup again. You should eventually get two (i) notifications in your status bar, each corresponding to the successful execution of the shell commands. Let me know how many you get, this will tell me where the error is happening.
[Android Apps and Games] mi3x:
Unfortunately, due to my being overly drunk during the weekend, I'm no longer the owner of a SGS2. I lost it. I will not be able to test this, and I'm quite sad.

I'm back to my good ol' Desire, running Oxygen, no CM7 here.

Good luck with your project, it's really interesting, hopefully I'll get another Sgs within the next week and will definitely try your new script, as I'll be back to the nightlies.

Anyway, thanks alot for your effort!
[Android Apps and Games] ninjasauce:
http://i.imgur.com/RAsx1.png http://i.imgur.com/6xMVL.png see I'm not sure where those folders should go but there is a scripts folder tho

I want a HTC Status!!!
[Android Apps and Games] tiuk:
Sounds like this or adding the cleaning script will take care of it.

New issue, though: after flashing today's nightly which includes LPM, when the phone rebooted after flash it went straight to lpm rather than booting the rom. Don't know if this will remain this way or be tweaked in a later version, but for now I'd still advise against flashing overnight while plugged in.
[Android Apps and Games] strictlyrude27:
I'm having issues with wget being slow and/or finishing prematurely. If anyone else is having problems, please let me know - will try to get it fixed tonight in time for the next nightly.

Ah, okay - you'll need to move the entire tRUE folder from /sdcard/extracted/tRUE-V2 to /sdcard .

If things still don't work out, I can tell you how to do the install manually (just setting a couple variables) since you're already running CM7.

Thanks for the input. I didn't encounter that, but I flashed Glitch immediately after my nightly. I'm guessing you're using the stock kernel? Once you're booted into recovery, tRUE should behave exactly like ROM Manager (in particular, running ROM Manager and reading /cache/recovery/last_log is how I learned the commands to flash, backup, and restore). And both tRUE and ROM Manager both reboot the phone after running all the commands in /cache/recovery/extendedcommand.

Could you try to reflash the nightly using ROM Manager and see if the same behavior exists? If it doesn't, please post the contents of /cache/recovery/last_log once it successfully boots. If it does, that's a CM7 kernel issue and a bug report needs to be filed against it.
[Android Apps and Games] Sunblood:
toflash.txt doesn't store the full path of the .zip, just the filename. It assumes all the .zips are on the /sdcard root.
[Android Apps and Games] strictlyrude27:
that's news to me..

# cat /sdcard/tRUE/toflash.txt
/sdcard/tRUE/CM7Vibrant-Glitch-DEV-20110719-HL.zip
/sdcard/tRUE/Vibrant_CM7_GPSFix_V1.4-CWM-signed.zip
/sdcard/tRUE/SecureSettingsHelper_update.zip

flashed all those zips for me just fine :)

The toast notification in tRUE-AddNewZip just mentions that any flashable should be on your sdcard. This is because Tasker only looks for files in /sdcard and doesn't prepend strings with /sdcard. To make toflash.txt more intuitive, I force all strings to get prepended with /sdcard and then have Tasker go up one directory, then read the full string (bringing it back to /sdcard). I realize it's a bit inconvenient, but I have to deal with the limitations of Tasker.

Did that make any sense at all? I feel like I just rambled for a full paragraph.
[Android Apps and Games] Sunblood:
It makes sense, but after adding two zips I had one that said "/sdcard/%FNAME" and one that was "/sdcard/CM7fix2.zip" while that zip was actually in "/sdcard/tRUE/download/CM7fix2.zip"

I changed them manually and they work fine.
[Android Apps and Games] ninjasauce:
Ok at first that didn't doanything different so I decided to try something I remembered I dled the security settings app from the appstore so I uninstalled it and installed the dled one from your post and now its working correctly

EDIT:/ok the setup seemed to work but when I tryed to do the nightly check it says a nightly is found and downloaded but I get three errors when it does it

http://i.imgur.com/i8zXS.png http://i.imgur.com/T6PqV.png http://i.imgur.com/I9Nrw.png

I want a HTC Status!!!
[Android Apps and Games] tiuk:
I was running glitch on the previous nightly, flashed the lpm nightly using rom manager (without glitch), which means when it rebooted it had the new stock kernel. After trying out the new kernel I flashed glitch. I expect that since lpm functionality depends on kernel support, the reason you didn't have this issue was because you flashed glitch right after the nightly, before the phone booted. Glitch currently doesn't have lpm, but if he merges it with his next release it will have the same problem as the stock kernel.
[Android Apps and Games] strictlyrude27:
Nice catch, will be fixed in next release - I'll have it error if %FNAME is empty - means Tasker couldn't find the file (which is weird.) As for the other issue - did you move the file after you added it with tRUE-AddNewZip? I might have to change how this is done entirely, but I'm really starting to push what Tasker is capable of.

Could you reflash the LPM nightly using ROM Manager? Once it reboots, post the contents of /cache/recovery/last_log. Thanks!
[Android Apps and Games] ninjasauce:
Ok got past the error on the nightly check (I had the true v2 folder on sdcard and nor just the true folder) but after it dled and did the checksum it got errors from the nandroid task all the way to the end when the phone reboot witch I'm guessing is cause I have cwm 2.5.1.7 and not 3.0+ since my phone doesn't have cwm 3.0 but I can get cwm 4.0.0.5 so Ill install that and let you know if that works

I want a HTC Status!!!
[Android Apps and Games] strictlyrude27:
Yeah, CWM2.x.x.x is not supported - I thought every CM7-derived ROM used CWM3.x.x.x+. I can add support in the next version.. it will delay the release of that version, of course..

Could you elaborate on the errors you got? I write to /cache/recovery/extendedcommand at that point, multiple times, and it requires root to do so; maybe somehow "Use root" got unchecked for all the Secure Settings commands in tRUE-installnightly (and the tasks it calls)?
[Android Apps and Games] ninjasauce:
I've had two android phones and both never went above the cwm 2.5.1.7 (mytouch 3g slide and my current HTC aria) but ill check the root digestion and see if there's a problem their

I want a HTC Status!!!
[Android Apps and Games] tiuk:
http://db.tt/212euDy

There's the log. Also verified what I said before. plugged in, rebooted glitch, booted the rom as expected. Then I flashed the nightly with rom manager, and what RM rebooted my phone it went into lpm. I had to press the power button for it to boot the rom.
[Android Apps and Games] strictlyrude27:
Wait, now I'm confused - maybe I misunderstood earlier. I thought tRUE was not working properly but ROM Manager was. You're saying that the phone went into LPM both via flashing with ROM Manager and tRUE?

If that's the case, this is definitely an upstream kernel bug; typically people aren't supposed to report bugs for nightlies, but someone needs to be made aware..
[Android Apps and Games] ninjasauce:
Ok got all the root permissions taken care of so no errors are coming threw now and updated my cwm recovery to 4.0.0.5 and when I try to flash the Tom it reboots to recovery Reyes to mount the system but then gets kicked to the default cmw recovery screen to where it won't flash unless I manually do it

I want a HTC Status!!!
[Android Apps and Games] strictlyrude27:
Sorry this is taking you so long to use properly :(

Open up the task tRUE-nightlyinstall and move the "Stop" at the bottom so it's above the "Secure Settings reboot recovery (Root)" command. Then execute; it'll run through writing out all commands to /cache/recovery/extendedcommand but won't reboot. Please post whatever is in /cache/recovery/extendedcommand , then delete it. And also, post the contents of /sdcard/clockworkmod/.settings for me.
[Android Apps and Games] ninjasauce:
I can't seem to view the files from my phone but I uploaded them

Extended commands- http://db.tt/IDgIweQ

.settings- http://db.tt/INwoxqQ

I want a HTC Status!!!
[Android Apps and Games] strictlyrude27:
Your recovery version is still being reported as 2.x.x.x. Also, extendedcommand is blank, meaning none of the commands are being written to it, which is weird. Can you open up tRUE-nandroid, tRUE-flash_nightly and tRUE-flash_user_zip, click on all their Secure Settings commands, make sure "Use Root" is enabled for all of them; and also check the box "Show output" for all of them. I'm wondering if all the scripts don't actually run.
[Android Apps and Games] ninjasauce:
Yea ill check Them i already added root to all secure settings I thought but ill double check and ill edit this post when done

Edit:/ it seems from the error files that my file system is showing as read only even tho everything is given root privileges and I'm s-offed here's pictures of the error codes

http://i.imgur.com/2lZf7.png

http://i.imgur.com/pMEL2.png

Edit 2:/

After going into root explorer and mounting as read write for system and root the read only error is gone but this error is still there

http://i.imgur.com/q4h8E.png

http://i.imgur.com/BSqXy.png

I want a HTC Status!!!
[Android Apps and Games] strictlyrude27:
I'll mount /system as read-write before writing to /cache in the next version. I wonder why others haven't run into this. I certainly haven't.

The last two errors pertain to a Secure Settings issue that the developer is aware of; no worries here.

Thanks for helping me test! You've squashed at least two bugs :)
[Android Apps and Games] ninjasauce:
Lol ur welcome just gotta get it to show the right cwm recovery and or actually flash the rom and what not

PS just redid everything (formatted SD,partitioned it reinstalled clockworkmod and gapps and redid all the tasker and secure settings and it still wont send anything to the cache/recovery/extendedcommand

I want a HTC Status!!!