yashsingh1/xdaforums huggingface dataset:
[G2 and Desire Z Android Development] Rozza C:
So, I had a bit of a brainwave...

Version 1.0 worked...

Version 1.1 failed (for some...)

tun4 suspects that it's something to do with the updater script...

So...I did some digging around in the old version 1 zip I luckily managed to still have and pulled the updater-script from it and compared it to the one used in version 1.1

There are 2 differences I picked up on:

Version 1 has this to mount the system partition:

mount("ext4", "EMMC", "/dev/block/mmcblk0p25", "/system");

Version 1.1 has this:

mount("ext3", "EMMC", "/dev/block/mmcblk0p25", "/system");

The second difference is in the order in which the permissions are set:

Version 1 has this:

ui_print("Setting permissions ...");

set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");

Version 1.1 has this:

ui_print("Setting permissions ...");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");

Now, being the tinkerer that I am, I decided to do a similar thing that Bigt did and swap out the version 1.1 updater-script with the version 1 updater-script. (So, version 1.1 with version 1 updater-script)..

Lo and behold, it worked...

So, I have a couple questions regarding this result.

1. Is there a particular reason as to why you are mounting in ext4 in version 1 and in ext3 in version 1.1 ?

2. Does the order of setting permissions make a difference?

---EDIT---

Scratch that, I think Virtuous OC Daemon is broken with this...

Back to square one... :P

---EDIT 2---

Oh wait, that's because I have ILWT OC installed...never mind...

I should probably try over a fresh install of MIUI...

---EDIT 3---

Nope...still busted...

As you were...nothing to see here...Move along...
[G2 and Desire Z Android Development] Bigt2003:
Ya, I figured the ext3 should've been 4 and changed it. I also tried using the permissions from 1 on 1.1 and the betas with no luck. I can't use my computer till the kids go to bed but I'll look at it later. I'm still trying to figure this out since the last language I programmed in was COBOL.

Sent from my Motorola StarTac
[G2 and Desire Z Android Development] Rozza C:
Currently at work, so my hands are a little tied.

If it's not sorted by the time I get home, I shall play some more.

And on a side note...

OMG COBOL!?!? Old skool, yo...

I only go as far back as Turbo Pascal...and THAT was pretty dead when I was learning it too!!
[G2 and Desire Z Android Development] l00k:
OK I rebooted a few minutes ago and it hung on HTC screen. Doesnt even get to the vibrate.

Went back to miui.us 112090 booted up just the same as last time. flashed the 1.1 addon again after wiping cache and its still freezing now. weird. Its like when the 1.1 addon hangs on boot the first time the problem persists even though I follow the same steps as above.

:/

I'm at my desk all afternoon if you want anything testing
[G2 and Desire Z Android Development] ~SilverLad~:
Same issue here... :(
[G2 and Desire Z Android Development] ilea94:
used superwipe g2+ext4 and flashed osimoods miui version and your addon pack v1.1 and it works without any problems ;)
[G2 and Desire Z Android Development] Raul^:
Yes, I thought of undervolting, not overclockig, thanks.

I thought BulletProof had tiamat kernel. it had ILWT, so installing it over opened options in OC/UV Beater.

I tried flashing addon over Osimoods Miui, but in BulletProof i flashed translation and it worked. With Osi and addon flashing translation breaks superuser.

I appreciate tunafish work, i will just miss his Rom. It just worked.
[G2 and Desire Z Android Development] :
Raul^, addon pack works in you flash it after the translation. This method works for me with 1.2 beta6 and latest miui.us.
[G2 and Desire Z Android Development] Raul^:
Ok, I will try it this way :)

Thanks
[G2 and Desire Z Android Development] ~SilverLad~:
Thats exactly what I did prior to installing MIUI. I have tried ghuls ext4 superwipe then flashing MIUI then starting going to recovery and flashing the pack (both clearing Dalvik and regular caches), and since it didnt work I tried superwiping, flashing MIUI and straight after flashing the pack without rebooting - nothing works! :(
[G2 and Desire Z Android Development] TheForumTroll:
Hi, just wanted to let you know that I just installed it and it works fine on my Desire z.

Was on ILWT CM7 and thought I might as well give it a shot as I think I like MIUI better.

Here's the steps I used:

Flashed Superwipe+ext4

Automatic reboot back to recovery (CWM)

Flashed newest MIUI.us (1.12.9?)

Flashed Add-on from ROM Manager (1.1)

Flashed Remove WiFi-calling from ROM Manager

Wonder why it works only on some devices. I'll let you know if something strange happens.

UPDATE:

Okay, I just tried flashing again but only this time with osimood miui. No problems so far :confused:
[G2 and Desire Z Android Development] Rozza C:
But you're a troll!

Who's gonna believe what YOU say? :p
[G2 and Desire Z Android Development] l00k:
try doing a few full (not hot) reboots
[G2 and Desire Z Android Development] Bigt2003:
I'm wondering if this is a G2/DZ issue. Maybe something different in the hboot?

Sent from my Motorola StarTac
[G2 and Desire Z Android Development] l00k:
I thought that until my DZ started freezing after a reboot. Since then if I try flashing from miu.us to 1.1 it hangs.

For now I've gone back to bulletproof EOL just trying out pershoot kernel atm
[G2 and Desire Z Android Development] Careless_:
i don't know if this is an MIUI thing or whatever... but why is it that the "SYM" button on the keyboard brings up a limited amount of symbols/chars.

Is there any way to add more symbols or something?
[G2 and Desire Z Android Development] Bigt2003:
Yes, it is a MIUI issue. I get around it by using my soft keyboard to input symbols. I don't know of a way to add more that doesn't involve replacing your keychars files, and I've had bad luck with that.

Sent from my Motorola StarTac
[G2 and Desire Z Android Development] Rozza C:
Has anyone tried running fix permissions after installing the 1.1 update?

Just a thought...

Again, I'm at work so can't test this out yet, as it's currently my only form of communication until I get back home and have my second phone accessible..
[G2 and Desire Z Android Development] Bigt2003:
Yes, I did. And I believe +Martonikaj did too. No luck. I'm gonna poke around a little more today at work, weather sucks today and it should be a slow night.

Just thinking... Turbo Pascal was on the way out? I've probably written programs in languages you learned about in computer history, like ADA and C (no + or ++) Thanks for making me feel older... :p

Sent from my Motorola StarTac
[G2 and Desire Z Android Development] Rozza C:
Well there goes that idea...

I have no plans today (no plans on a Friday night....madness I know) so I should be able to play some more with it.

Haha! Wow, dude, that's a little bit of awesome, I must admit.

I would love to go back and learn those languages, but I think I might scratch my eyeballs before I get anywhere close to using the language effectively...

I learned Turbo Pascal in....2004/2005 in college and my teacher at the time was saying that nobody really uses this anymore and we're only using to help you grasp the basics of programming...so yeah...
[G2 and Desire Z Android Development] martonikaj:
Yep I tried it with and without fixing permissions, and flashed in pretty much any conceivable order you could think of, all leading to the same route.

Hey don't hate on ADA. It has some redeeming qualities... like CONSTRAINT ERROR :p
[G2 and Desire Z Android Development] aerolith:
has any brave soul tried 1.12.16 yet?
[G2 and Desire Z Android Development] martonikaj:
I flashed 1.12.16 over my 1.12.9 install, but that didn't include trying the addon pack. If you want, I'll backup and try a fresh install of 1.12.9 and the 1.1 addon (don't think it'll be worth my time though).
[G2 and Desire Z Android Development] theone10:
No luck with the latest one and pack. I tried out

@tun4 any chance you don't change the superuser that comes with miui.us

Thanks
[G2 and Desire Z Android Development] Bigt2003:
Help an old man out here...

4EXT recovery copies /system to the /sdcard before converting from ext3 to ext4. Why, when nothing I read mentions backing up data? I remember always backing up data before changing filesystems, it would always reformat the partition.
[G2 and Desire Z Android Development] aerolith:
i don't think so either. i might as well go ahead and throw 1.12.16 on there myself.
[G2 and Desire Z Android Development] Rozza C:
I will see how the new build works for me tomorrow.

I ended up going out and having a few drinks so I'm probably not in the right mental condition to so anything with my phone right now..
[G2 and Desire Z Android Development] Bigt2003:
You probably are, I failed miserably on a few builds and I could use a drink. I did get it to boot, loop, but it booted.

Edit:Nevermind, battery pulled and rebooted, hung at the splash again. :confused: I think my bald spot just got bigger...

Sent from my VAX running UNIX.
[G2 and Desire Z Android Development] TheForumTroll:
Normally that is the case but it shouldn't be necessary going from ext3 to ext4. Here's an article how it is done in Debian. I did it on my Linux server live with no problems. So it is just a precaution.

I seem to have a problem anyway but not with booting. When i push up or down on the volume button it instantly crashes whatever app I'm in. No matter what app. Launcher, Dialer, Settings, mail, browser..... and so on :confused:

If I keep trying it works a bit like a task killer :p

This error repeats every time I use the volume key (and the app in forground force closes):

12-17 01:28:18.890 E/AndroidRuntime(13911): FATAL EXCEPTION: main
12-17 01:28:18.890 E/AndroidRuntime(13911): java.lang.NoSuchMethodError: android.media.AudioManager.adjustSuggestedStreamVolume
12-17 01:28:18.890 E/AndroidRuntime(13911):	at com.android.internal.policy.impl.PhoneWindow.onKeyDown(PhoneWindow.java:1162)
12-17 01:28:18.890 E/AndroidRuntime(13911):	at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:1773)
12-17 01:28:18.890 E/AndroidRuntime(13911):	at android.view.ViewRoot.deliverKeyEventToViewHierarchy(ViewRoot.java:2574)
12-17 01:28:18.890 E/AndroidRuntime(13911):	at android.view.ViewRoot.handleFinishedEvent(ViewRoot.java:2549)
12-17 01:28:18.890 E/AndroidRuntime(13911):	at android.view.ViewRoot.handleMessage(ViewRoot.java:1881)
12-17 01:28:18.890 E/AndroidRuntime(13911):	at android.os.Handler.dispatchMessage(Handler.java:99)
12-17 01:28:18.890 E/AndroidRuntime(13911):	at android.os.Looper.loop(Looper.java:130)
12-17 01:28:18.890 E/AndroidRuntime(13911):	at android.app.ActivityThread.main(ActivityThread.java:3703)
12-17 01:28:18.890 E/AndroidRuntime(13911):	at java.lang.reflect.Method.invokeNative(Native Method)
12-17 01:28:18.890 E/AndroidRuntime(13911):	at java.lang.reflect.Method.invoke(Method.java:507)
12-17 01:28:18.890 E/AndroidRuntime(13911):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
12-17 01:28:18.890 E/AndroidRuntime(13911):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
12-17 01:28:18.890 E/AndroidRuntime(13911):	at dalvik.system.NativeStart.main(Native Method)
[G2 and Desire Z Android Development] Rozza C:
LOL!!!!!!!!!

Can I put this line in my sig?
[G2 and Desire Z Android Development] Bigt2003:
+Troll, what version are you running and did you flash the BP add-on? My first guess would be to wipe dalvik and cache.

+Rozza, sure if you want.

I went thru 11 add-on betas and 6 full rom betas. I'm flashed out for the day. I learned a lot about updater scripts, but I'm not any closer to figuring out why it hangs. And I remember why I quit programming and became a cop... a little Jolt cola and it would have been just like old times.

Sent from my VAX running UNIX.
[G2 and Desire Z Android Development] human-being:
finally got all my finals done. I can do some testings right now to see if I can get it work

wanna ask, if I have my working bulletproof nandroid backup with 4EXT, I will be about to restore it even if I crashed during testing, right?
[G2 and Desire Z Android Development] martonikaj:
After my MIUI + addon build stopped getting past splash screen, even restoring my previously working backup didn't work. It stuck too.
[G2 and Desire Z Android Development] Bigt2003:
Did you wipe before you restored? I don't see how that could happen.

Sent from my VAX running UNIX.
[G2 and Desire Z Android Development] martonikaj:
Superwiped.

Basically what I do when I flash a new ROM is flash it, then make a nandroid after the first boot. That way if I run into issues after restoring apps or setting things up, I can restore it without having to deal with completely re-flashing.

Like I said, after I started having the stick at splash screen issue, I tried wiping and restoring that backup, and it stuck at the splash too.

Dunno :confused::confused:
[G2 and Desire Z Android Development] eFFeRaTuM:
the file that make the phone hangs is /system/etc/init.d/03battery-calibration

try to download the pack 1.2 b8, erase that file from the zip and flash. ;)
[G2 and Desire Z Android Development] Rozza C:
Really? O.o

Let me experiment with this...

---EDIT---

It worked!! It actually worked!!

...But I'm not happy with that....

Now I'm going to find out WHY that file is causing the issue!
[G2 and Desire Z Android Development] :
Does it survive a reboot?
[G2 and Desire Z Android Development] Bigt2003:
Um, that would be very strange. The system isn't booting that far for me when I flash the pack, and I copied that script to the init.d folder on my miuiandroid rom and it's working fine. But I'll try it.

Sent from my VAX running UNIX.

EDIT: How did you guys pull that file out of the zip? Just in Windows or did you unpack it and then re-sign it?
[G2 and Desire Z Android Development] eFFeRaTuM:
could be the "SLEEPTIME=120" string the problem?

i never waited 2 mins before pull off the battery.....
[G2 and Desire Z Android Development] Rozza C:
That is correct, sir...

And on a side note...

It seems that brought about another problem...

android.process.acore FC'd on me...I restarted and now it's stuck at the bootanimation...
[G2 and Desire Z Android Development] Bigt2003:
Can someone test a theory for me?

1) flash rom

2) flash addon

3) flash ILWT kernel

4) reboot

5) cross fingers and pray

Sent from my VAX running UNIX.
[G2 and Desire Z Android Development] eFFeRaTuM:
i don't think it's due to that file...
[G2 and Desire Z Android Development] :
I can try that, just a moment.
[G2 and Desire Z Android Development] Rozza C:
Yeah it might be because I installed V6 supercharger...

Buuuuut....this never happened before...so I'm putting it down to that file removal. :)

Tried this already...

Result: Crashed and Burned...
[G2 and Desire Z Android Development] Bigt2003:
Which one is correct? You unpacked it and resigned it? If so, can I see your updater-script? I'm about to kick the kids off the computer.

Sent from my VAX running UNIX.
[G2 and Desire Z Android Development] eFFeRaTuM:
i use winrar to delete file inside zips. no need to resign.
[G2 and Desire Z Android Development] Rozza C:
At the moment, my updater-script is just the one I got from v1.0 of the pack.

Haven't made any changes to it myself as of yet...

Just had to do a full wipe, meaning I lost all my data! (My game saves, nooooo!)

But such is life...
[G2 and Desire Z Android Development] TheForumTroll:
Just flashed again and now it doesn't work here either. Only difference was that I didn't wipe before I flashed it this time. Not very helpful I know..
[G2 and Desire Z Android Development] Bigt2003:
Did you try removing the 03battery_calibration script from /system/etc/init.d before flashing? +eFFeRaTuM may have found a work-around.
[G2 and Desire Z Android Development] Rozza C:
I have yet to figure out what's wrong with that file!!

It's bugging the hell out of me...

I wish I knew more about this kinda of thing, but the file just looks like a foreign language to me, right now!
[G2 and Desire Z Android Development] Bigt2003:
So on my phone I had this

. /system/virtuous/scripts/virtuous-functions.sh

But I didn't have any log entries for automatic calibration...

The addon had this

./system/virtuous/scripts/virtuous-functions.sh

Mine had a space in it, so it never executed. But when I changed it on my phone with root explorer, instant crash. But now I have to figure out why... Somewhere the permissions aren't set right.
[G2 and Desire Z Android Development] TheForumTroll:
And the plot thickens...

I just restored the Osimood + add-on 1.1 that was working 100 % at the time I backed it up. Guess what?

I'm beginning to think that what ever is wrong might be a combination of an error in the add-on and a bug in Android. How else could it work fine only sometime? A script error alone shouldn't cause such serious intermittent errors like this. It makes the programmer in me cry :-p

----------------------
[G2 and Desire Z Android Development] Rozza C:
How about setting everything to a permission of 0777 and then working backwards from there based on how tun4 sets the permissions?

What makes me cry, is that we have NO way of pinpointing where this error is arising!!!
[G2 and Desire Z Android Development] martonikaj:
See!! I'm not crazy. This exact thing happened to me.
[G2 and Desire Z Android Development] TheForumTroll:
I have set up a ROM kitchen now. I know some linux but nothing about android ROMs. Hope I don't break something :D
[G2 and Desire Z Android Development] Bigt2003:
Uploading a rom and the pack now.

Rom is based off Osimood's with RMK & Juwe11's ram scripts

Pack is Tun4's with eFFeRaTuM's work around.

Waiting on dropbox...

Rom: http://db.tt/pIFEOWI3

Pack: http://db.tt/oxuDf3SZ
[G2 and Desire Z Android Development] TheForumTroll:
It works for me with the 1.2 beta 8 even with the battery calibration file.

Btw. I somehow missed that update, so I just spend a few hours learning unnecessary stuff about android ROM kitchens and Edify Code for updater-scripts.

Well, more knowledge is always a good thing :p
[G2 and Desire Z Android Development] Bigt2003:
Even after a reboot? is there a space in your battery script like i mentioned a few post back?

Sent from my VAX running UNIX.
[G2 and Desire Z Android Development] tun4f1sh:
paging martonikaj

paging are.two

please report to the front of the line if you're available! :D
[G2 and Desire Z Android Development] martonikaj:
Sup? Need a beta test?
[G2 and Desire Z Android Development] tun4f1sh:
If you've got the time: http://goo.gl/9PCwd
[G2 and Desire Z Android Development] martonikaj:
Backing up then I'll give it a go for you.

Going to be superwiping, then flashing 1.12.16, then flashing your beta addon pack.

Also tried superwipe, flash 1.12.16, boot, reboot recovery, flash beta addon pack. Still hangs :(

Sorry Tun4, hanging on boot (blank logcat). Would you like to me flash it differently?
[G2 and Desire Z Android Development] tun4f1sh:
Eh, don't think so. I tried the exact same thing and it worked perfect for me. Tell you what, try one more for me. If it doesn't work I'm calling this project dead :)

http://goo.gl/9CG1Z

Install it however you want, if it doesn't work properly for user's standard install procedures (i.e. without me giving explicit instructions) then it's trash and I hate it. Let me know about this last one man, owe you one.
[G2 and Desire Z Android Development] martonikaj:
K trying right now.

Its hanging. I'm like staring at the boot screen, just wishing this would work :P
[G2 and Desire Z Android Development] tun4f1sh:
If you can, do me one more favor. Pop into recovery and check to see if:

1. you have a "/sdcard/bulletproof_miui" directory

2. (mount /data), you have a "/data/bulletproof_miui" directory.
[G2 and Desire Z Android Development] martonikaj:
F*ck I just started restoring my other backup. Gimme 2 sec I'll check on those for you.

How can I check for that directory via recovery?
[G2 and Desire Z Android Development] tun4f1sh:
You've done enough, my friend. Unless you're already in the process, don't worry about it.

edit: you can use ADB to check if they exist.

adb shell
ls -l /sdcard
ls -l /data
[G2 and Desire Z Android Development] martonikaj:
No I'll do it. No prob. Will report back in a minute.

Checking the SDcard I don't have any /sdcard/bulletproof_miui

I DO have /data/bulletproof_miui, however

drwxr-xr-x 3 root root 4096 Dec 18 09:39 bulletproof_miui
[G2 and Desire Z Android Development] tun4f1sh:
Ok, that's progress. That tells me a little bit more about how far the process is getting. Try this, mount /system in recovery, then run

adb shell sh /system/etc/init.d/95virtuous-package_manager

Reboot, see if it lights up.
[G2 and Desire Z Android Development] martonikaj:
Did that. The command worked properly (as in, no errors or anything). Still hangs.
[G2 and Desire Z Android Development] tun4f1sh:
Any chance I can hit you on Gtalk? Maybe soak up about 15 more minutes of your time? :D
[G2 and Desire Z Android Development] martonikaj:
Sure. martonikaj (at) gmail (dawt) com
[G2 and Desire Z Android Development] tun4f1sh:
Cool, sent you an invite. (RP)
[G2 and Desire Z Android Development] tun4f1sh:
New build online, thanks to everyone who's been debugging - and especially martonikaj for the troubleshooting assist! Also, sorry to anyone who got stuck on the last build.
[G2 and Desire Z Android Development] erichung_13:
Thanks tun4, been waiting patiently on your g-lite rom for this to be working :)

Just a query though, if i install romtoolbox, will this interfere with the virtuous oc daemon? because there are cpu sliders within the app.. i am worried it will conflict?
[G2 and Desire Z Android Development] :
Works fine with romtoolbox.
[G2 and Desire Z Android Development] erichung_13:
So the oc daemon takes priority over the romtoolbox cpu settings?
[G2 and Desire Z Android Development] :
I haven't touched the sliders in romtoolbox and the OC Daemon changes "profiles" when I plug the phone in AC and so forth.
[G2 and Desire Z Android Development] gallen23:
Hi guys,

i'm very sorry if u find my following questions stupid.. I just want to be sure of what i am doing before i tried to flash this rom.. i have tried to flash the bulletproof rom one month ago and i eventually got my phone bricked. (see http://xdaforums.com/showthread.php?t=1359890) Sent to HTC who fixed it and i got back with stock andriod 2.3.3 installed.

What i have done so far:

1)Downgraded to stock froyo using instructions from this link: http://xdaforums.com/showthread.php?t=1178912

2)Install ROM Manager without CWM Recovery. I'm not sure whether i shld use 4EXTRecovery or CWM..

My bootloader screen looks something like this now:

VISION PVT SHIP S-OFF

HBOOT-0.85.0005

MICRO-0425

RADIO-26.03.02.26_M

eMMC-boot

Oct 11 2010,20:10:38

I really dun wanna brick my phone again.. can some kind soul tell me what i should do now to get this rom on my phone?

Thanks in advance.
[G2 and Desire Z Android Development] l00k:
Sweeeeet! Good work guys. I'm back on the latest miui.us and addon pack 1.2 rebooted without the hang!
[G2 and Desire Z Android Development] Are.Two:
Sorry I couldn't be there to help test out this morning. I just got off work, but it's great to see that you got it working. Will flash when I get home!

Sent from R2's G2