yashsingh1/xdaforums huggingface dataset:
[Epic 4G Android Development] MasterQu:
Mjacobsen,

It's funny that you should bring up these threads and thank you. I have been helping Randy_T and Mammom88 with benchmarking Bonsai4all. if you goto the wikki you will see I just benchmarked the stock dk28 for baseline and i am re-testing 1.1.4 with and without no-journal.

When people are looking at battery performance it is imperative that you recalibrate for battery usage. There are several things you can do to acomplish the same goal and the post links you gave cover these. This is what i caution people to look for in phone behavior that will let you know if your battery stats are accurate.

Are you experiencing quick drops in bat life

Is your battery charging faster than normal

do you get different reading when the phone is on vs off

When your phone hits 0% does is still run for 30+ mins

These are indicators that the battery isn't calibrated. Keep in mind from a fully charged state you will see faster decline to 90% than the rest of the battery life. This is why I test at lower percentages.

If you experience:

more than 2% drain when phone is in standby

The back of the phone feels hot near the camera (when your not using/charging it.)

You see your Available Memory is decreasing and your not doing anything

This is an indicator that a setting is wrong or your have an app that is misbehaving.

Also you will experience more battery drain if you keep the screen on auto vs 0, if you keep your 4G on all the time, if you go into a roaming area, or your watching video etc. This should be expected and why Bonsai benchmarks include for this type of use.
[Epic 4G Android Development] mattallica76:
That is an old thread. If you read the whole thread you will see that many users had various issues after removing those files. It is better to just prevent them from starting in the first place than to remove them completely of kill them.
[Epic 4G Android Development] Randy_T:
The services in question are not being started by the init.rc script. That means they are not running and not using battery.

Doing a search on the ROM filesystem, I don't see the files in this base ROM.

epic:~ # find / -name drm*

/data/data/com.sec.android.providers.drm/databases/drmdatabase.db

/system/bin/drm_android_siso_test

/system/bin/drm_sqlite3_test

/system/etc/security/drm

If you would like to see what processes are running (and this could be useful for some of you that are trying to figure out what is using batter), type the following command at the terminal # sign prompt.

# ps
[Epic 4G Android Development] Mjacobsen:
Thank you, Randy.

I saw a DRM service running (via settings...running services, not ps), which is why I went looking for it.

It was "unistaller for root" that found those 2 packages.
[Epic 4G Android Development] fromchaos0646:
not keeping up on all the battery issues but usually, just odin back to stock and reflash and that seems to work out most battery issues with me. also, on school days my battery dies fast only because I don't have great signal. at home, it lasts for about 12 or so hours.

just curious, eta on newest bonsai release? sorry but I'm just really looking forward to seeing what's new. good work and I'm loving it!
[Epic 4G Android Development] gzub:
What about configuring these entries in build.prop:

dalvik.vm.startheapsize=8m

dalvik.vm.heapsize=56m

The idea being that having a larger start size should reduce pauses to increase the heap size, and obviously increasing the max heapsize should help apps from running out of memory...

Geoff
[Epic 4G Android Development] MasterQu:
Right now Mammon and Randy are ripping apart the code to see where they can tweak and enhance the Bonzai ROM. There are a few avenues they are exploring which if they decide to move forward on any of them you are looking at pure awesomeness!
[Epic 4G Android Development] musclehead84:
I'm loving their rom. I'm not gonna rush them cause I want them to take their time and produce another banging rom.

Sent from my Evo Killer!!!
[Epic 4G Android Development] vtx67:
Ad Blocker

I am having slow internet browsing on pages with ads. Both on the phone and tethered. Does Bonsai V1.1.4 have an ad blocker that would cause the page not to load until the ads time out? If there is an ad blocker how do you disable it?
[Epic 4G Android Development] robl45:
as I posted previously, you need to install adfree, that will fix the problem.
[Epic 4G Android Development] vtx67:
awesome! Great tip. TY
[Epic 4G Android Development] musclehead84:
If I install ad blocker do I have to change any settings in it Orleans just leave it alone?

Sent from my Evo Killer!!!
[Epic 4G Android Development] JohnCorleone:
I kind of asked this question last night but..I am running VIPERrom Apocalypse 4.0.3 EXT4. I really want to try this Rom. I saved the files on a different empty SD card. Since everything gets erased with Bonsai4All, if I want to switch back,could I put original SD back in and reinstall with CWM3?
[Epic 4G Android Development] JohnCorleone:
I am thrown off a bit in directions..will a backup remain in CWM3?
[Epic 4G Android Development] MasterQu:
Bonzai does not erase the sd card, it erases the data off the phone.

sent from my emotionless Bonzai
[Epic 4G Android Development] pjames:
can i flash the no journaling mod on a different rom following the same steps?
[Epic 4G Android Development] pjjohn73:
Seeing as a lot of folks have been talking about their battery life lately, I figure I might as well share my experiences too.

With Bonsai 1.1.2 and 1.1.3 I had GREAT battery life. On an 8 hour work day with moderate use I was leaving work with 75% battery left. Since Bonsai 1.1.4 and the use of nojournaling with moderate use I am lucky to have 50% leaving work. Not that I am really complaining as I am happy to have battery life left with moderate use.

I really have not mentioned it to this point as I figured with all the ODINing, Flashing, and general screwing around I have been doing, my battery might be taking a hammering. And possible it is not calibrated properly, as I do notice oddities such as when rebooting, the phone suddenly reads 20% less for example. I do calibrate it after flashing a ROM so not really sure.

So to sum up I did most deffintly notice a decrease in battery life after 1.1.4 version and nojournaling, but it could very well be a battery calibration or misbehaving app. Although I am using the same apps.

So I may mess around and re-flash the ROM again and maybe not restore my apps right away (at least not all of them) and see if it gets better.
[Epic 4G Android Development] solinear:
Won't work for me

I am not sure why I'm having so many problems, but I can't get past installing the base DK28.

I follow your directions exactly - I install DK28 with Odin, nothing special. The part that seems to be hanging me up is that my phone will *not* root, no matter what I do. I actually re-imaged it back to DK28, rebooted and before doing anything else, tried to root my phone and it fails. When I run the OneClickRootCWM3, it starts the service, says that my phone is not connected (it is and is in USB debug mode), so I disconnect my phone and reconnect it, wait 10 seconds to make sure nothing is hinky and hit a key. It then does *nothing*. I can do this 20 times in a row and it is very predictable. Maybe it's the OneClickRootCWM3, right? Nope - I've tried 4 different rooting tools, they all do the same thing... nothing.

Any assistance would be greatly appreciated.
[Epic 4G Android Development] fzammetti:
Hi,

I had 1.1.4 installed and working well... but I did NOT have ext4... so I decided to do that. I ran one-click and got CWM 3.0.0.5 installed (was on 2.x before)... after reboot it did its conversion thing... I then applied kernel-EXT4-RFS-Bonsai_v1.1.4.2.zip but I did NOT apply ext4-format_nojournal-1.1.3.zip. I figured I already had 1.1.4 installed so that's probably all I need to do. Seems I was right, everything appears to be working fine.

I have two questions though... first, and I suspect this is a stupid question but I'm going to ask it anyway: is there a way to confirm I'm running ext4 now? I assume I am being as there were no apparent problems when CWM did its thing, and I seem to be working fine... but I'm not sure if the speed increase I see is real or not frankly.

The second question is would it be safe to go back into CWM and apply ext4-format_nojournal-1.1.3.zip now? I wasn't sure being as it had a lower version number, wasn't sure if I could do it after the fact like that. I'm not so sure I want to, being as journaling has a data integrity purpose after all, but I'd like to know if I even have the option now.

Thanks all,

Frank
[Epic 4G Android Development] JohnCorleone:
Ok, I am overthinking this..I am running VIPERrom 4.0.3c EXT4. So I don't need to Odin the kernal right? I just need to flash the nonjournal, rom, and theme right?
[Epic 4G Android Development] musclehead84:
To check for ext4 you can download android terminal and type "mount" it will give you a pretty long printout but look in the middle and you want to see it say system, data and cache and then it should day ext4. You can now go back and apply the no journal but it will fully wipe everything. After you apply that you can go into terminal and type tune2fs.ext4 -l /dev/block/stl9" and if you don't see an entry for journal inode it flashed properly. Good luck. One more thing you can also run the commands I told you thru adb.

Sent from my Evo Killer!!!
[Epic 4G Android Development] musclehead84:
Just follow the directions in the op. There is no special kernel to flash as its all the same on froyo. Just flash the no journal mod then the rom. After it boots you can go back and flash the theme. Also if you want just one version of cwm you can flash the kernel patch mod.

Sent from my Evo Killer!!!
[Epic 4G Android Development] musclehead84:
Sounds to me.like you need to uninstall.the drivers and then reinstall them. The PC isn't recognizing the phone. I've had to do this a couple times now for no apparent reason.

Sent from my Evo Killer!!!
[Epic 4G Android Development] robl45:
or try a different computer, I have a desktop and a laptop here, one will adb fine, the other not to save its life, the one that won't adb will odin while the other won't work with odin.
[Epic 4G Android Development] gzub:
Great work on the new scheduler start script...

what about using a file to store user configuration which is read early on in the start scripts 01-Bonsai-Config-Reader or something which the allows the other scripts to do a getprop to configure parameters... This way users could configure the scheduler & cpufreq tuning on their own and perhaps someone with app experience could create a program which gives a nice gui front end to editing them...

(My preference would be that the app would be generic and read a file which gives the tunable options, the valid values so the app does not have to be modified for ROM changes in the future)

Geoff
[Epic 4G Android Development] kush621:
out of nowhere last night my blue market changed back to green, just out of the blue, like the phone was on and one minute it was blue the next it was green, and when i try to flash the zip again, it doesn't take. I am deleteing the vending.apk before i flash, but no luck.

any help would be appreciated.
[Epic 4G Android Development] MysteryEmotionz:
The market was updated

Sent From Da Hood.
[Epic 4G Android Development] Randy_T:
startheapsize is already being set to 8m.

I've looked at raising heapsize, but I am not really seeing any benefit from doing so. Fine line we are walking here between battery life and performance...
[Epic 4G Android Development] Randy_T:
John, sorry to hear about the family... ;)

Just to make clear, Bonsai does not wipe anything on the SD card, so not really a reason to switch SD.

I'm not entirely familiar with the Viper install process, but there should be no reason that you cannot use CWM3 to install Viper if you choose to go back. For the life of me, I cannot imagine why. :D
[Epic 4G Android Development] Randy_T:
Any backup made with any version of CWM is placed on the SD card. You should be able t restore from that backup using either version 2 or 3 of CWM. I have done it.
[Epic 4G Android Development] Randy_T:
Correct

You could also flash the kernel 1.1.4.1 which would get you on one version of CWM as well, but not a requirement.
[Epic 4G Android Development] Randy_T:
Have you installed the Samsung USB drivers?
[Epic 4G Android Development] Randy_T:
There are other ROMs?! :eek:

While I don't know specifics about install of all of the other ROMs, you should not have any problems installing the nojournaling mod. Not guarantees if those ROMs will undo what that mod does.

FWIW, next release of Bonsai (v2.0) will include the no_journal changes in a single ROM package.
[Epic 4G Android Development] Randy_T:
Just to teach a few more Unix/Linux concepts, you can also do the following:

# mount | grep ext4

That executes the mount command at the terminal prompt and pipes '|' the outuput of mount to the grep command which filters only entries that have ext4 as the filesystem type. You should see mounts for /system, /data and /cache.
[Epic 4G Android Development] Randy_T:
You are watching closely... :)

Yeah, alll good ideas. I've been bouncing this around a bit. I'm not entirely clear yet on using setprop and getprop but I agree that this could be interesting. First trying to establish some baseline that gets us a stable config environment that gives us the battery life and responsiveness that we want. But I agree, would be very cool to have an app that could tweek this stuff.

Mammon hit me over the head with the cpufreq stuff last night and jogged my memory a bit. We've played with some settings to see if we can get a better battery usage scenario. My phone today, 9hrs off of the charger with Wifi and GPS on, used 10% battery. Not sure that is any better than I was seeing before. True test will be for someone out using that stuff day-to-day.

So I see the inevitable questions popping up about "when will we see v2.0".

We would like to be able to release v2.0 early next week. I think the weekend will give us the time to finalize some things. The primary changes are to fix some additional initialization/tuning issues that are not quite working as expected on 1.1.4 and to put the ROM in a single, easy to install package.

I think that gives us the basis of the best ROM platform we can find to start doing some other interesting things like Geoff suggests.
[Epic 4G Android Development] JungleJiujitsu:
Thanks for posting these links, they provide some useful info...I actually realized that I had not stop services that I normally would and am now getting double the time out of my battery! I apologize, Mammon & Randy_T, for having doubted the bat life out of the latest release, guess I brought into the hype w/o doing what I do 1st, my bad!... I agree Mjacobsen, v1.1.4 was not the cause of the brief bat issue I had yesterday it was the services running!
[Epic 4G Android Development] Randy_T:
Frank,

On your point about no_journal:

Journaling does help make it easier for the filesystem to rebuild after an unexpected loss of power. This makes a ton of sense for systems with spinning disks that are not on backup power. IF you are in a habit of starting to write some data to the disk in your phone and then pull out the battery while doing that, then journaling would help you. The only reasonable scenario I can find for that is if you were recording some girl's phone number at the bar when her boyfriend suddenly knocks the phone out of your hand to the floor and the battery pops out. But then, you will probably have bigger issues... :D

Turning journaling off on this phones also has the added advantage in that it reduces disk writes, which in theory should extend the life of the SSD storage that the phone uses.

As for versioning of the file, the versions are not meant to be in sync with the ROM or kernel releases. They are just tracking changes of that specific package. Recommended that you follow the instructions link in my signature as it makes clear what is necessary and what is not.
[Epic 4G Android Development] Randy_T:
Jungle,

What are the apps that you are killing. Would be interesting to know...
[Epic 4G Android Development] cballin22:
so i reflashed the rom since then no issues with anything the battery life as randy_t was stating is actually pretty good with moderate phone and text and internet usage im now at 11 % about to let the battery drain out to do a battery config but i havnt had the phone on charger since yesterday about 4:45p it is now 9:39a where i am at
[Epic 4G Android Development] omair2005:
this has to be one of the hardest roms to flash...

- whats the point of rerooting if we are flashing everything in cwm 2

- the instructions don't mention any type of wipe after backing up

coming from stock dk28
[Epic 4G Android Development] Randy_T:
Sorry, but I cannot make the install instructions any more clear.

"THIS PROCESS WILL ERASE EVERYTHING ON YOUR PHONE.

FOLLOW BACKUP AND RESTORE INSTRUCTIONS BELOW."

http://code.google.com/p/bonsai/wiki/Install
[Epic 4G Android Development] omair2005:
I odined and rerooted with cwm 2 then again with cwm 3.. followed directions.. stuck at samsung boot screen

**going to restart the whole process again**

Same problem..

Just going to odin back..try a different rom
[Epic 4G Android Development] musclehead84:
You have to.flash a rom before you reboot

Sent from my Evo Killer!!!
[Epic 4G Android Development] JettMartinez:
This Rom has the clearest step by step instructions of any I've seen. It seems to me the problem lies between the keyboard and the chair if you can't follow the "If this is the state of your phone, go to this section" directions.

The instructions are set to guide you through just the sections you need. If you're rooted and on DK28 already there's no need to reroot anything, and if you're following the instructions right, you wouldn't need those sections.

There's no wipe instructions because the wipes are built into the ROM install scripts.
[Epic 4G Android Development] Randy_T:
Not sure where in those install instructions that it says to root the phone with two different versions of CWM.

Coming from a stock DK28, it is quite simple.

1. Root the phone with CWM3. (We provide a link to the package)

2. Install the ext4-format_nojournal mod (We provide the link to that in the instructions)

3. Install the ROM (again the link to that is in the instructions)

4. Install the kernel patch (link in the instructions)

5. Reboot

You could even do it without steps 2 and 4 and still end up with a working ROM.

This is understandably harder than it should be, but not impossible. We will solve that in the coming release with a single install ROM.
[Epic 4G Android Development] musclehead84:
Thanks Randy for showing me more commands. I found a new hobby when I joined this forum in November. I never rooted my phone or anything before and I did a powerlifting meet and tore my bicep tendon and had surgery. I came on here to pass away time and now I'm addicted to this website and to learning as much as possible. Also on a side note the instructions are clear as day its just some people wont be happy unless you go over to their house and do it for them. Can't wait till version 2. Thank you to you and Mammon for a great rom.

Sent from my Evo Killer!!!
[Epic 4G Android Development] kush621:
well that explains the change back to green.

does the update not allow you to change the color?
[Epic 4G Android Development] pjjohn73:
The instruction are very clear. And the steps themselves are simple. And building the wipes unto the ROM make this easier than other ROMs. And it looks like it will be even easier on the next version. Keep up the good work Mammon and Randy. And thanks!
[Epic 4G Android Development] Mjacobsen:
Yo musclehead,

You missed one step:

you need to su prior to running the tune2fs.ext4 command ;)

Here is the output section to look for, with journaling ON:

First inode: 11

Inode size: 128

Journal inode: 8

Default directory hash: half_md4

(the bold line should be missing with journaling OFF)

Also, since I'm posting this, I thought I would share the dump of the ext4 lines from mount too:

/dev/block/stl9 on /system type ext4 (*lots of fs flags here*)

/dev/block/stl10 on /data type ext4 (*lots of fs flags here*)

/dev/block/stl11 on /cache type ext4 (*lots of fs flags here*)
[Epic 4G Android Development] solinear:
I have spent the last 24 hours learning from square one (zero knowledge) how to root/reimage my phone. I started out with Odin and DK28 and that was working fine for me. Then I had to figure out how to get root (took forever - didn't figure out until this morning, despite trying several "one-click" tools that didn't do what they said) and now I have a new problem. I can't get CWM (even went to the market and paid for the license and everything) to load any other ROMs. I have tried this one, Frankenstein and another one, but none of them seem to actually update. When I reboot, I get a menu with the following items:

reboot system now

apply sdcard:update.zip

wipe data/factory reset

wipe cache partition

I think we all know what "reboot system now" does. "Apply sdcard:update.zip" doesn't do much of anything. I tried renaming the the Bonsai4all file to update.zip, but when I try to apply it, it says "E:signature verification failed Installation aborted."

How in the hell do I actually get this thing to install? I don't want to ever see "Sprint NASCAR" or NFL or any of that other Sprint crap ever again.

Thanks for the help.
[Epic 4G Android Development] musclehead84:
You don't have clockwork mod installed. You are looking at the stock recovery. You can't use anything from the market including rom manager to flash clockwork mod for you. It must be done from the PC. You have to use the one click root with clockwork mod to get clockwork mod. What method did you use to root? Cwm is green text and the new version of cwm is orange text and there are more than 4 options.

Sent from my Evo Killer!!!
[Epic 4G Android Development] Randy_T:
MH,

Thanks for the kind words. Mammon and I do like to hear the positive comments too. :)

I've been a Unix hack for over 20 years. I am having a blast playing with what is the most forgiving embedded OS environment I have ever seen. Lots to learn and tons of fun to be had.

We appreciate your help in here.
[Epic 4G Android Development] Randy_T:
Stick with us here and we will help you gain a new appreciation for your Epic.

Use the Install instruction link in my signature below. There is a link to CWM3 in the instructions which you should use to root the phone once you have gotten to a stock DK28. As has been pointed out, you should see orange text when you boot into recovery after doing this.

Hint: you need to make sure you have gone to Menu->Settings->Applications->Development and turn on USB debugging.

Once you have done that, I have not ever had a problem with CWM3 not succeeding to root first time. If you do have trouble, unplug your phone from USB and replug.

From there, I believe that the instruction page will lead you through the process.