yashsingh1/xdaforums huggingface dataset:
[Milestone XT720 Android Development] LibertyMonger:
Yea i know, I am on the special still. But guess what now? lol. I press the sleep/power button and it quick reboots the phone! HaHa whats that from? guess I'm back to the Darkfroyo for now, or Twisted with an orange clock. didn't really mind it lol.
[Milestone XT720 Android Development] 3rdstring:
What was the name of the 2nd undo?
[Milestone XT720 Android Development] JiroPrinz8:
LOL..! Your phone never fails to amuse me my friend, it seems it just finds a way to sneak in a bug in there every couple of days.. hahaha!!

To your question, i'm on CM6 so I wouldn't know what's up with that.. I hope Hellmonger can replicate that bug so that when we have the final release, it'll be simply Perfect.. even for your phone.. LMAO.!! :D
[Milestone XT720 Android Development] LibertyMonger:
it was DarkFroyoCM6-undo-signed. also the second undo was about 12,000kb and the other 2 were only about 9,000kb. so it had something extra in it.

***Hey JiroPrinz8 do you know the original color of the twisted status bar and clock?

***Yeah definitely set to be a quick reboot, can't get to the reboot menu at all. it either sleeps with a quick touch, or quickboots straight to the animation with a longpress...
[Milestone XT720 Android Development] Mioze7Ae:
Wow, man. I don't know what to say. :D I think if someone gave you an unloaded gun and a pack of empty shells, you'd still find a way to blow your foot off. ;) Why would a CM6 undo work on XDAspecial?
[Milestone XT720 Android Development] 3rdstring:
That's the CM6 undo file!
[Milestone XT720 Android Development] LibertyMonger:
I think i got it from here, or maybe not but I didn't pay attention to the name lmao! sorry man. Anyway i am now restored back to DarkFroyoRemix...the last undo was fine except the black clock and turning the sleep/power button into a quick reboot...

I don't know how I got that one, but like I said, all I seen was undo lmao. So I guess I will try the wanhu version one more time...

***EDIT***

Ok so the Wanhu 2nd undo works, sleep/power button is fine, only thing now is the clock, which is a theme issue, not an undo issue so you are relieved 3rd! lol. Sorry man, All this WanHu/CM6 goin on I don't know how I got the cm6 undo, I thought i was following your lead. Thanks for your help bud
[Milestone XT720 Android Development] JiroPrinz8:
I wouldn't know bud, sorry, since before flashing the twisted theme, i've already customized my bar, clock, notif, carrier, and all that to match GB Cool Blue, after Flashing Twisted it stayed that way..

LMAO..!! Can't get over it, been laughing for 5 minutes man..!!
[Milestone XT720 Android Development] LibertyMonger:
Ok so the Wanhu 2nd undo works, sleep/power button is fine, only thing now is the clock, which is a theme issue, not an undo issue so you are relieved 3rd! lol. Sorry man, All this WanHu/CM6 goin on I don't know how I got the cm6 undo, I thought i was following your lead. Thanks for your help bud
[Milestone XT720 Android Development] :
Updated TI theme to correct clock color is available from here.
[Milestone XT720 Android Development] Knoedelkopf:
So getting stuck at Motorola Boot Logo is fixed now? :)
[Milestone XT720 Android Development] LibertyMonger:
No, not yet, he's getting really close and working hard on it. I have faith! lol. I have confirmed from my experience that it is due to swap being enabled so it expects the Fjfalcon kernel. It boot's everytime as long as you fastboot the kernel.
[Milestone XT720 Android Development] B_e_n:
Thanks LibertyMonger for all those hours testing for all of us!!!

Don t give up bro !!! (and all the dev too of course !!!!!)

Go SRS team !!!! :D
[Milestone XT720 Android Development] Mioze7Ae:
I flashed XDAspecial v2 when testing sileshn's theme installer and I had no problems whatsoever. I'm afraid your phone is too customized away from what anyone is releasing to be representative of much, really. It's quite destracting because you're constantly coming up with problems nobody can reproduce.
[Milestone XT720 Android Development] 3rdstring:
I don't know about that I don't use the swap / fastboot & I occasionally (rarely) saw the stuck on M at boot.
[Milestone XT720 Android Development] LibertyMonger:
My phone is not customized at all bud. just a theme. Besides I don't know where you get that from, everybody I seen use it except for you and Jiro had the same problem. Plus I won't say another word about it, I can drop it it's no big deal to me, I just thought it was an issue, and if we want a perfect ROM we should fix it.

I would go without swap as well, but I can't now with this ROM cause there will be times I won't be able to boot. If I'm the only one having the problem then no need in fixing it. I can give up on this one and change. Oh and there is an occasional PMNL error that knocks me off network signal for a minute, but that's no big deal.

I know what you mean by distracting though, I just thought I was helping. I will kill it. If there is a problem I'm sure others will make it known.
[Milestone XT720 Android Development] hellmonger:
Meh don't worry about it man, no harm done, and i'm sure and mor thant sure Mz appreciates your efforts, but he is right some of the issues you are having are only related to 3rds theme but thats ok i really like 3rds theme, so like i said no harm done :)

meanwhile at the hall of justice...

The Super friends updated the OP.

sileshn Made a great theme!

There is only 1 theme as of now, Twisted Inception. The link is given below.

http://www.mediafire.com/?iey2wz3bq9anvzw

Miror

http://www.megaupload.com/?d=0E4535WO

There is also a flashable zip to take you back to stock. The link for that is given below.

http://www.mediafire.com/?logbxhsjlhg1bh2

Miror

http://www.megaupload.com/?d=3BL521IU

Silesh
[Milestone XT720 Android Development] LibertyMonger:
I'm not on 3rd's theme now so Now that you mention it I just tried rebooting and it booted right up. I am using twisted. Haven't tried testing the reboot with it yet so maybe that's it. i didn't think of it since others were having the same issue and I never got stuck when fastbooting the fjfalcon. Oh well. I will keep it shut from now on lol.

***Hey Hellmonger is that theme you just posted just the twisted theme? No tweaks or anything? So if already on that theme we don't need to change to yours? (or I don't need to since I think I'm the only one left running the special lol)

***EDIT***

ok one last time, it's not just 3rd's theme, just rebooted 3 times and the 3rd time it got stuck. last time I'm mentioning it. Never had this type issue with any other ROM using themes.
[Milestone XT720 Android Development] Mioze7Ae:
How handy are you with adb? Is your computer set up for adb shell?
[Milestone XT720 Android Development] LibertyMonger:
yeah it is. I'm still learning. been wanting to fool with it more. I'm not really worried about it. I will be movin on to another ROM anyway. I just thought this was gonna be it. I thought about starting from scratch one more time before i did try CM6. Didn't want to bail on this yet since it's so close. Anyway that's just an issue i won't be able to keep, I've had the logo freeze so bad that I even tried rebooting close to 10 times and it refused to boot til I fastbooted the falcon.
[Milestone XT720 Android Development] Mioze7Ae:
Do you know what type of ext partition you have? One thought is that perhaps the fastboot kernel has the ext modules included and there's a problem with the ext modules we use with the stock kernel. When you've started from scratch in the past did that include repartitioning and reformatting the sdcard or have you always kept it the same? And I'm sorry for snapping at you. I just made me really mad when you were arguing with 3rd insisting the bootanimation was included in the update after he had already double-checked.

So, here's what I'd like to try from OpenRecovery using adb shell and post the output:

# fdisk -l /dev/block/mmcblk0
# mount
# umount /sddata
# e2fsck /dev/block/mmcblk0p2
# e2fsck -f /dev/block/mmcblk0p2
[Milestone XT720 Android Development] LibertyMonger:
I have ext2 now since i accidentally restored the wrong backup. I restored a backup i had that had sd backed up. So It switched me from ext3 to 2. But the M logo freeze has been the same since we added your a2sd tweak. I just thought it was something to do with that and swap. It never fails to boot with the falcon. Usually when i flash a new ROM I repartition ext3 500, swap 513 and the rest fat32 just to be sure no apps or anything mess with it. I haven't done that since the beginning of the special.
[Milestone XT720 Android Development] Mioze7Ae:
Hmm. Well, maybe we need to make a decision--is darktremor good or bad karma? I hoped it would solve the problem because darktremor is supposed to be very robust against flaky sdcards and failed mounts, etc. But it seems to have not solved the problem we're suffering from...
[Milestone XT720 Android Development] LibertyMonger:
And it brings us to the locked bootloader, I think if it wasn't locked it would be a finished ROM. **EDIT** Maybe not, we wouldn't have to swap I guess. . not sure if it's just me or not. I just know I use my phone as my business phone and have 3 total batteries for it, so I don't have it dead or tied to a cord lol. So I just figured I may have noticed it more since I am maybe shutting down more. I assumed Hellmonger was having the same issues so I stuck with it.

***One thing about it that makes it different then the usual sdcard bootloop is it's an actual freeze. it don't bootloop. First time i have experience that on a ROM
[Milestone XT720 Android Development] peshovec:
my personal opinion is that we have to able to boot even without sdcard.

If that will be achievablee with robust checks or with a flag meaning "I know what I am doing" in my opinion will be the same.

Anyways tremor way seems very good, but I prefer this functionality to be up to the user. And the user to know what could be wrong and why. Ofcourse some automation to help will be nice but in form of example scripts
[Milestone XT720 Android Development] Mioze7Ae:
This used to come up quite a bit on Dexter's ROM, actually. In the persistent cases, reformatting sd-ext seemed to work. For a while reverendkjr and I just gave up and don't use sd-ext at all. I honestly think it's useless and only have it around for debugging.
[Milestone XT720 Android Development] LibertyMonger:
ok, since I restored my backup and changed to the twisted theme, i have lost my 3g and been on edge service all day. I have a brand new SDcard so I am going to SBf the Singapore and reflash the beta 2 with the 2 missing data files try and get my 3g back and maybe run stock beta 2 without a theme til I get the M logo freeze again see what happens.
[Milestone XT720 Android Development] peshovec:
just my 2 cents...

take a look at the init.maphone_umts.rc

# Moto safe power down
on property:sys.reboot=1
stop ssmgrd
exec /system/bin/sleep 10
exec /system/xbin/busybox mount -o remount,ro /system/sdext
exec /system/bin/sleep 10
exec /system/xbin/busybox umount /system/sdext
exec /system/bin/sleep 10
exec /system/bin/reboot

on property:sys.shutdown=1
stop ssmgrd
exec /system/bin/sleep 10
exec /system/xbin/busybox mount -o remount,ro /system/sdext
exec /system/bin/sleep 10
exec /system/xbin/busybox umount /system/sdext
exec /system/bin/sleep 10
exec /system/bin/reboot -p

entries about mount and umount are my modifications.

the original is just

stop ssmgrd

sleep 10

reboot

so i am pretty sure that the sdcard umounting is coming from stop ssmgrd

anyway, although my modification above, i was not able to see nothing about ext partition , when watching logcat during reboot or poweroff. Neither i can see additional sleeps (e.g. it dosent reboot/power off 20 seconds slower).

So i suppose, the changes in the framework (about extended power menu) may interfere... but i am not sure about that, i have to put some logging facility to the mount/umount command and see if they are really executed
[Milestone XT720 Android Development] LibertyMonger:
Repartitioning wasn't a good idea. I repartitioned 2 sdcards and reflashed cbw and singapore sbf's and both cm6 and special and cannot install anything from market or an apk from sdcard. It downloads and as soon as it starts to install it does a quick reboot straight to the boot animation.

So to sum it up, cannot install any apps, force quick reboot when I upgrade to a ROM that has the new Market.

I can install apps when I am on 2.1

I tried removing the market apk and flashing a new one thru open recovery update and also tried to install apk from sd card, the update gets aborted and the apk gets rebooted.

So has anybody heard of this issue? I googled it and seen a lot of people have it with the new market but their solutions didn't help. I'm thinking I need to flash a ROM with the old market maybe?

At this point I have tried everything but installing an older ROM so just looking for quick advice before I do.

And I know I'm a pain in the ass but I been doing this for a while I never have these issues something is screwey

I have this problem on both cm6 and special but not 2.1

Same thing everytime, automatic reboot when I click install on an apk.
[Milestone XT720 Android Development] hellmonger:
yeah looks like, Mz i know your are busy but think the dirty shutdown on sd-ext is the problem?
[Milestone XT720 Android Development] Mioze7Ae:
Have you tried with a factory reset? If not, what I would do is check where where /data/app and /data/dalvik-cache are being redirected to. They could be symbolic links that are invalid or they could be mounts that failed. It can be a little subtle to figure it out. Can you post the output of "mount" and "fdisk -l /dev/block/mmcblk0" and "ls -l /data" and "ls -l /cache" and "ls -l /sd-ext" and "ls -l /system/sd"? (I expect some of those to error and fail but I can't predict which ones, don't freak out)
[Milestone XT720 Android Development] LibertyMonger:
Yes i have tried many factory resets and rsd' sbf's about 4 times. been working on this all night. I've tried starting with stock beta 2 first a few times, then with my nandroid backups.I have pretty much tried everything with the special and CM6 ROMs. I am running fix permissions and scan in A.O.R. right now. I will post output... Sorry man this is why I hope for a perfect ROM so I won't have to get into these messes anymore. lol
[Milestone XT720 Android Development] Woody:
I had the same problem but I haven't figured out the cause to it yet. Not sure if CM6 and Special like each other or the SDCards they rode in on. Here is my problems with the Partitions. Posts 272 (273 MZ's response) and 299. Sorry for the general thread link but I am really tired from screwing with these all weekend.

http://xdaforums.com/showthread.php?t=1197655&page=28
[Milestone XT720 Android Development] Mioze7Ae:
Can you describe how you are partitioning the card? (i.e. what OS, card in phone or in reader, software used)
[Milestone XT720 Android Development] Woody:
Not trying to hijack this thread but it seems to be the same issue I got on CM6 or close to it.

Windows xp, both reader (two different ones) and phone, Minitool Partition Wizard. Once or twice for full wipe, just used XPformat to FAT by right clicking in the SD Card.
[Milestone XT720 Android Development] Mioze7Ae:
I will also say that I have two XT720's--one that I got cheap off craigslist for dev work. The sdcard in that one has been royal pain in the ass--it doesn't work half the time. Even when the same card works perfectly on my main phone.
[Milestone XT720 Android Development] Mioze7Ae:
Keeping it in the phone for repartitioning may be a bad idea because Motorola's kernel doesn't seem to reload partition tables and can flush bad data into the device when shutting down for reboot.
[Milestone XT720 Android Development] hellmonger:
Mz,

Is there anyway to modify the reboot options to include unmouting the sd-ext part before shutdown?
[Milestone XT720 Android Development] LibertyMonger:
I have tried with 2 different sdcards with same result. I partition with puppy linux. Now to make it even worse, not sure how to post the output of "mount" and "fdisk I have androidsdk I am in tools what command do I give? sorry man this is bad lol

It's looking like this is gonna be a warranty issue. I would advise people not to repartition til this gets figured out! lol
[Milestone XT720 Android Development] Mioze7Ae:
Use adb shell and copy the output. Or run them like this:

# mount > /sdcard/output.txt

and copy output.txt from your sdcard.
[Milestone XT720 Android Development] Mioze7Ae:
I've been thinking about peshovec's findings (which are disturbing), but I haven't figured out what code path is used for reboot yet. Not unmounting does seem like a good way to hose your filesystems. Of course FAT is supposed to be "ok" with ripping drives out, so possibly Motorola/android took a shortcut. Big target in my mind. I'm going to flash to XDAspecial for the next few days since CM6 doesn't seem to be causing trainwrecks and most of my work there going into the build tree anyway. Another thing to look at is whether there are ext mount options that will make the drive more "fat"-like.
[Milestone XT720 Android Development] hellmonger:
Im home sic today so anything you want me to try?
[Milestone XT720 Android Development] Mioze7Ae:
Ok, here's an idea. Replace reboot with a shell script. i.e. rename /system/bin/reboot to /system/bin/reboot.bin and create a new /system/bin/reboot with something like this:

#!/system/bin/sh

# umounts etc

exec /system/bin/reboot.bin

I won't have time to play with this until after work, but if someone wants to get a head start. What we want to prove is that all reboots go through /system/bin/reboot (good chance). One way to test this is to have it create files in /cache or /data and check whether they are missing before reboot and there after reboot.
[Milestone XT720 Android Development] LibertyMonger:
Man I am stupid, i really need to work with adb more. i cant get the output, it says read only file system..

I wonder if I reformat sdcard and try to flash CM6 this time. Last time i started with the special. I don't know its something in the phone now I guess
[Milestone XT720 Android Development] Woody:
Naw man you aren't stupid, just learning like the rest of us. Hey you know advanced theoretical quantum mechanics? I know some but it wasn't always like that. I am learing ADB too, so no worries there. We can't all be MZ or Hellmonger. Btw if you are looking for "Linux for Dummies" at the Hamilton Co. Public Libraries, do bother, it is at my house (jk).

What I would do it reformat your card with the partitions that you want and call it good. Then find a basic ROM nandroid that you know for a fact is a good one. You were strong on the MIUI for awhile, so go to that and see if your ext mounts. If it does then the partition isn't the problem. Then try to flash either your original Special or CM6 backups (not B_e_n's or one that you already tweaked- an original basic) and go from there.

I am working on this too and am equally as frustrated. Actually it really pissed me off this weekend and I almost scrapped the whole thing completely. I won't let Motorola beat me though and I am still working on it. Will try some more when I get home and post more about it then, but just remember that the more you reformat your cards, it eats away at their lifespan, at least that is what I heard/read.
[Milestone XT720 Android Development] 3rdstring:
In ADB shell try su then try the command
[Milestone XT720 Android Development] LibertyMonger:
I did and it say's "cannot create /sdcard/output.txt: read only file system?

I guess I will reformat and partition and try khals wanhu it was real stable for me just had the wrong number formats
[Milestone XT720 Android Development] Woody:
I have noticed with all the flashing that I have "lost" root from time to time. I know it is something simple like jsut going into SU.apk and forgetting some permissions. Not sure what you used to root your device but I use Universal Androot and re-rooted that way. It says that I am already rooted but I just hit the root button anyways and once done it clears up what I was working on in the first place.

Is there a way to check permissions of the SD card to make it r/w in ADB? If you are getting r/o error, then there must be a way to change that. I think I know what the cammands are but not enough faith to post them, sorry.
[Milestone XT720 Android Development] Mioze7Ae:
That's really weird. Can you try from OpenRecovery? You have an sdcard installed? Can you run "mount | grep sdcard". It looks like even your main FAT partition isn't there.

Edit: Oh, wait. Do you have the sdcard exported to your computer over USB? Use connect for charge only when running the commands. You can't write the files while the computer has it mounted.
[Milestone XT720 Android Development] 3rdstring:
The Superuser update.zip from Rootzwiki has always worked for me in that situation.
[Milestone XT720 Android Development] LibertyMonger:
i been searching and trying different commands and none are working, I know I am doing something wrong. Don't worry about me fellers I know everyone is busy i will work on it and try to figure something out. I am gonna try Khal's now.

I do know that repartitioning after running the special is a very bad idea! lol at least until there might be a fix.
[Milestone XT720 Android Development] hellmonger:
ok it works dirty but works, what about recovery and bootloader?

Liberty

something is wrong with your partitioning methodes

make sure all partitions are primary,

Fat32 needs a bootable flag

ext2 or 3 no flag

Swap no flag

partition in that order

if all fails format from phone and check partition

try this to mount sd as read write in adb shell

mount -o rw,remount /dev/block/mtdblock4 /system/sdcard

if fails try

mount -o rw,remount /dev/block/mtdblock0

or

mount -o rw,remount /dev/block/mtdblock1
[Milestone XT720 Android Development] LibertyMonger:
I knew i was doing something stupid I am trying now. Not much experience with adb sorry.
[Milestone XT720 Android Development] Mioze7Ae:
I'm hoping those all go through there too. I know the bootloader one just executes "reboot bootloader" so that probably just kills everything unsafely. The recovery one creates /cache/.boot_to_or and does a regular shutdown (emulates "reboot openrecovery"). So, if regular reboot goes through /system/bin/reboot then I'm pretty confident the others do, too. Reboot bootloader probably needs to be reworked to use the safe shutdown.
[Milestone XT720 Android Development] LibertyMonger:
Ok thanks man, I partition using puppy linux following Rev's tutorial it has always been fine til now
[Milestone XT720 Android Development] fjfalcon:
I think there won't be any problem to modify boot_to_bl, maybe we also can find sources for boot_to_or... So there will be no problem at all.
[Milestone XT720 Android Development] hellmonger:
Yes your right

do you know what reboot bootloader and reboot recovery point to?

but for sure it work reboot ten times now and no stuck at m...
[Milestone XT720 Android Development] LibertyMonger:
Thanks bro, yeah when i flashed CM6 it was bens already tricked out lol. I am trying Khal's now and maybe/hopefully I can jump to the new special when it's ready.

I reflashed singapore sbf again, trying the market, it should work, then flashing Khal's...
[Milestone XT720 Android Development] Mioze7Ae:
I already merged boot_to_or and boot_to_bl into /system/xbin/uglybox. /system/xbin/uglybox.c should be on the phone.
[Milestone XT720 Android Development] Mioze7Ae:
They call /system/bin/reboot. The reboot binary we use comes from openrecovery. If you look on the gitorius for openrecovery, skrilax_cz used to use a shell script for it. Basically, all it does is when you run "/system/bin/reboot openrecovery" it creates the file "/cache/.boot_to_or" and does a reboot.

The hijacked /system/bin/sh checks if /cache/.boot_to_or exists at boot (or if volume up is pressed) to decide whether to start openrecovery. Otherwise it runs /system/bin/sh_hijack.sh if it exists. Otherwise it does nothing.