yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Original Android Development] vdubguy83:
OK, got a problem. Been showing my wife the ropes here lately and well she made a mistake. Now Her phone is in a bootloop and I cant seem to figure it out. She dl'ed the kernel on her phone and tried to install it that way. Now I cant get into cwm ,just sits at bootscreen. her phone is on checkrom v2.0 any help would be great, thanks guys.
[Galaxy S II Original Android Development] tkalli:
Can you get it into Download?

If so, flash a stock ROM with Odin and then a custom kernel to get CWM.

​
[Galaxy S II Original Android Development] Urokinase:
Take out and put in battery. Then press VOL Up + HomeButton + PowerButton. Hold down this 3 Buttons so long CWM starts....
[Galaxy S II Original Android Development] Lownita:
If you can not get into recovery with volume up home and power buttons, then I would suggest flashing speedmod via odin. If the problwm still persists, you should flash a stock rom via odin.
[Galaxy S II Original Android Development] tkalli:
Any luck with any of the suggestions?

​
[Galaxy S II Original Android Development] vdubguy83:
Thanks for the quick responses guys. The "holding the three buttons, vol up+home+power" didnt work. Held them in for three minutes.

I can get into odin, Ill try to flash the speedmod kernel now. I guess if that dont work I just flash a stock and start all over.

Thanks again. Will let you know what I figure out.
[Galaxy S II Original Android Development] tkalli:
No problem.

Glad to help as the others did.

​
[Galaxy S II Original Android Development] vdubguy83:
Your method worked!!! Thank you.

---------- Post added at 05:46 PM ---------- Previous post was at 05:45 PM ----------

Got it working! Thanks again man! The odin method worked perfect!
[Galaxy S II Original Android Development] tkalli:
Glad you got it sorted out.

Easier than what I suggested.

​
[Galaxy S II Original Android Development] coolfire:
Any downsides to using PREEMPT_VOLUNTARY again? Not that i know much about stuff like these. Just curious... :D
[Galaxy S II Original Android Development] tkalli:
I only been running it for a few hours, but it seems fine.

Haven't had any problems.​
[Galaxy S II Original Android Development] Radikaal:
K2-7 had it aswell, which ive been using for atleast 100+hours in total without any problems. Been having excellent battery life aswell.
[Galaxy S II Original Android Development] anisbombaywala:
Currently I am on CF Root 4.1

I had disabled boot animation by adding this line in the "/system/build.prop"

debug.sf.nobootanimation=1

If i switch to Speedmod will it still continue to boot without any animation? No animation is what i want. Sorry if this is nooby.
[Galaxy S II Original Android Development] pedrolopes665:
Page 195.

I have just changed my own bootanimation right now. stock ROM, k2-17.

Don't know if works with customs roms.
[Galaxy S II Original Android Development] xos84292:
http://tegrak2x.blogspot.com/2011/11/2nd-core.html

2nd core , Speedmod Will increase this functionality?

sounds good to save battery.

You can set the CPU cores as dynamic hotplug mode, single core mode or fully dual core mode.

This provides easy and simple way to use.
[Galaxy S II Original Android Development] rajaspidey:
both works for me!! flashing via clockwork recovery by holding buttons on boot then selecting zip file from recovery

&

selecting zip from application!

if u flash via download mode phone ll detect that u are flashing modified kernel but if u do the via CWM it won detect!!
[Galaxy S II Original Android Development] hardcore:
By default the kernel uses dynamic hotplug mode. I have tested always-on dual-core before, and there isn't any noticeable difference. I think dynamic hotplug is the best setting for now.
[Galaxy S II Original Android Development] qureyoon:
Confirm working on customs roms. At least on Simple&Clean v.1.2 ROM :)

I've managed to change the bootanimation as well :)
[Galaxy S II Original Android Development] jsompis:
@hardcore

Could you upgrade recovery to new Chainfire's version 5.
[Galaxy S II Original Android Development] jujuburi:
Asking a super noob question,

What's the purpose of the Source Codes given in the 2nd post? What do we need to do with them?
[Galaxy S II Original Android Development] jsompis:
No, you don't need them, for developer only.
[Galaxy S II Original Android Development] shahulvm:
Undervolting option

Hi, thanks for your kernel and battery life is amazing. Just one question though, since the kernel does not have undervolting option. Can I undervolt the kernel by editing /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels or place a startup script (/etc/init.d/S*) to input values to above file.

Thanks for your inputs.
[Galaxy S II Original Android Development] KeesStolk:
I also flashed 17 yesterday, but..

After reading a tip about wifi sleep policy in advance wifi menu, i got the impression that this setting worked better with 16.

According to Betterbatterystats there was a lot of wifi going on last night.

Will do some more testing the next few days.
[Galaxy S II Original Android Development] jujuburi:
Thanks buddy.

I've another query @hardcore and others,

Do we need to wipe cache partition and wipe Dalvik cache after flashing the kernel in Recovery?
[Galaxy S II Original Android Development] alexkno:
no, there is no need to wipe anything
[Galaxy S II Original Android Development] shahulvm:
It would be good to wipe cache and dalvik cache after ROM/Kernel flashes
[Galaxy S II Original Android Development] lynx2k50:
Thats wrong. No need to wipe anything after flashing a KERNEL!

When you flash a ROM, than you should wipe cache/dalvik.
[Galaxy S II Original Android Development] stylez:
Thx, Just in case others with custom post count to page http://xdaforums.com/showpost.php?p=17977695&postcount=1946

Will have to check this out later

jujuburi,

No you don't just flash away.......
[Galaxy S II Original Android Development] Molitro:
Did the same test two nights in a row. Idle, wifi on, all the syncs I normaly use.

First with Siyah 2.2b1 (with which I got the same battery drain as with the last versions), and then speedmod k2-17.

I get nearly half an hour more out of every single % with Siyah. Around 2:20 against around 1:50...

Of course, that's not in the same conditions. Is stock values with speedmod against ondemadx governor, 100 MHz min frecuency, and exynos' voltage values. But I'm testing what can I get out of each kernel, not how much they drain in the same conditions...

I don't know... If the difference is that large, maybe it isn't that crazy including a little undervolting and underclocking, not configurable, and something that's going to be stable to everyone...

Or maybe the UVing and UCing isn't even the main cause of the difference. I'll test Siyah with stock values tonight.
[Galaxy S II Original Android Development] haieb:
thx for comparing both kernels ;) i like the speedmod kernel cause its very stable, smooth and i got a good battery life without setting anything^^ i am waiting for ur results. do u or anyone else know if siyah is using some code from the speedmod kernel? btw. ragemod is the speedmod kernel with UV and OC. would be nice if u can compare the siyah, speedmod and ragemod(cause of the UV capabilities) =)
[Galaxy S II Original Android Development] planetf1:
Haas anyone compared speedmod to the very latest official kernels like the kj series?

Samsung have more recent kernel sources in git now, so could those offer improvements? Is that source reflective of what the latest builds contain?
[Galaxy S II Original Android Development] AndroidGX:
About K17-test1 : no problem here, battery seems slightly better than official K16.

2% lost in 6h48 deep sleep this night (wifi+mails sync). I think you can finalize K17 without any problem :)
[Galaxy S II Original Android Development] coolfire:
That is good news! :)

Sent from my SGSII
[Galaxy S II Original Android Development] planetf1:
No problems with 2-17test for me either, though tbh I've not really noticed any difference from k2-16, though I've not tried to get exact measurements

Today (rebooted, fully charged) I'm down to 87% after 3 hrs 6 minutes. KJ3 . That includes:

- 30 mins display on time (18% reported)

- only 4 user wakelocks in the 1-2 mins range, a handful of others < 1 minute

- suspend reporting 4 mins (no idea why this means)

- all user processes in single digit seconds (light use)

- android OS reporting 71% / 1 hr 28 -- but I think this is just a reporting

artifact not real issue (and after all if idle what else would phone do)

- wifi on most of the time. BT off, 2 bar 2G signal. stable location, gps off

5 mins later I checked CPU spy and can see

1200(1%), 1000(4%), 800(2%), 500(10%), 200(21%), deepsleep(60%)

- that means >>deepsleep was 2x the display ontime - how soon does deepsleep start after display goes off?

Of course so much depends on what's running and this needn't mean there's any issue with the kernel... though I admit to be jealous of some of the figures being quoted especially after keeping close eyes on wakelocks, cpu load, running processes & having frozen etc unnecessary stuff.
[Galaxy S II Original Android Development] Brotuck:
K17 kept running on 200mhz for more then 1 hour. (screen off, not connected to power or usb)

Only resolvable by rebooting the phone, now it's working fine.
[Galaxy S II Original Android Development] Molitro:
Well... I don't have to wait for the night testing. Siyah with stock values eats noticeably more battery than speedmod. The tweaks on voltage, min clock values, etc... make quite the difference, though.
[Galaxy S II Original Android Development] sahidmiah:
A new record for speemod kernel

I just got score of 5031 quadrant on k2-17.

I am over the moon.u don't even get that kind of with over clocked to 1.6 ghz on other kernel
[Galaxy S II Original Android Development] psbt:
How much time did it take to go into deep sleep?
[Galaxy S II Original Android Development] ukdtweak:
I tried the guide you linked, but upon reboot, all i got was a black screen then my pin code screen, though it booted Much faster...

When you rename Bootanimation.zip to samsungani, do you leave it in system\media or move it to system\bin after deleting the original samsungani, should it have an extension .zip?, i tried both but still no boot screen?

I wanted to get teh Nexus boot screen working, but it does not?
[Galaxy S II Original Android Development] AndroidGX:
On my device it goes as soon as my screen is off when no activity or apps running on the background.
[Galaxy S II Original Android Development] coolfire:
I like how hardcore spreads out the CPU load evenly throughout.

Thanks for the writeup, mate. :)
[Galaxy S II Original Android Development] pedrolopes665:
Tutorial edited.

"4- Go to /system/bin. Backup and delete the file samsungani. Rename the file bootanimation (this file you find in this folder; it ISNT your zip file) to samsungani."
[Galaxy S II Original Android Development] ephraim:
Tried it awhile ago and resulted in a bootloop.. But i got the animation working.. I will try it again later..
[Galaxy S II Original Android Development] ukdtweak:
Ah, nice one, will give it a try now, cheers :)

EDIT: tried the updated version, still no go I'm afraid, just a blank screen for 2 seconds, then my lock screen appears, no animation :(
[Galaxy S II Original Android Development] pedrolopes665:
ready the tutorial carefully.

Bootloop is caused by infinite repeat values in the .txt inside the .zip files.

Hope you have a nandroid backup.
[Galaxy S II Original Android Development] blade3200:
K2-17 is the most amazing kernel .

Since SGS1 and now SGS2, both with Speedmod, never seen 22m of video using only 3% battery.

And playing 15m of Angry Birds with only 2% battery and without any lag on the birds long fly.

With this kernel deep sleep looks like walking death sleep :)
[Galaxy S II Original Android Development] cipetonk:
as soon as your screen is off
[Galaxy S II Original Android Development] ephraim:
I see.. Will take a look at it tomorrow :)
[Galaxy S II Original Android Development] psbt:
My screen is off for about >5h, and my battery went from 65% to 61%. I checked and found out that there's no wakelocks that keep the phone from sleeping. And it was indeed sleeping the whole time (checked cpu spy). No wifi, no sync. How could you lost 2% in 6 hous sleeping? Something wrong with my battery maybe?

You're using the original 1650 mAh battery or the 2000 one? I can never get more than 5 mins/1% with on screen. It seems that's my battery's limit.
[Galaxy S II Original Android Development] Radikaal:
perhaps bad reception where you left it. It can be the difference between losing 3-4% battery to 10%battery in a 10 hour period in idle, atleast with data on.

That, or perhaps not the best radio.
[Galaxy S II Original Android Development] geekiest:
Thanks, i was checking for this.

It worked fine, i changed the boot animation to BIOS :)

Now i have custom Logo and Boot screen :)
[Galaxy S II Original Android Development] Brotuck:
Is it possible that the phone will stay at 200 mhz when i have connected a charger ? Even when i disconnect the charger before reaching 100% ?

I have to reboot to get deep sleep again.

Running speedmod 17
[Galaxy S II Original Android Development] pedrolopes665:
Good to know that it really works in all roms.

Im with BIOS bootanim too!
[Galaxy S II Original Android Development] planetf1:
My tests this afternoon (2-17test + kj3)

Sync on : 1200-0,1000-4,800-0,500-8,200-8, deep 77

Sync off : 1200-0,1000-5,800-0,500-10,200-9,deep=74

Frozen : 1200-0,1000-4,800-0,500-10,200-9, deep 75

The last of these was with basically every single non-base OS (processes in /system) frozen - nothing. Quite a lot of freezing and as you can see very little different -- mostly because the core apps I do have enabled are already decent citizens and well tuned. There really is nothing else running!

These stats are over a 30-60 minute period, so it's somewhat odd that I'm only getting 75% deep sleep. For each one I've left the phone idle, in a single place, untouched.

(Just realised I did leave CPU spy active...)
[Galaxy S II Original Android Development] ukdtweak:
I can't get teh Nexus bootanimation to work, i edited the desc.txt and changed the P 0 0 to P 1 0, is this 1 relative to how long the anim runs or how many times, I.E, should i set it to a higher number to give it more time to run?
[Galaxy S II Original Android Development] pedrolopes665:
this number means how many times this part of your bootanimation will repeat. 0 means infinite.

your txt file should be something like this:

480 800 30

p 1 0 part0

p 1 0 part1

480 800 = resolution

30 = fps

p = static

1 = how many times it repeats

0 = delay (in fps; 30 = 1sec, in this case) between the parts

Inside the .zip file you should see the folders named part0, part1, etc. The .png pics should be inside of this folders, and with 24bit intensity.

U can try the bootanimation.zip Im using now. If it works, all process is alright and your zip file is the problem. In this case, send me your .zip to see if I can help.

Please PM now on... its getting to much offtopic in this thread!
[Galaxy S II Original Android Development] lrcquest:
Had the same problem on 16. Had to restart to get the deepsleep state back. Or else it was on 200.
[Galaxy S II Original Android Development] ukdtweak:
I am in work at the moment, and cant download from forums... websense!!!

Attached is my Bootanimation.zip if you could check it out.

Appreciate the help :)
[Galaxy S II Original Android Development] alexkno:
Seems good so far. One battery cycle now with about 20min more screen on time (4:35h) with same network usage and same settings, but 20min can also come from one wakelock less ;)
[Galaxy S II Original Android Development] pedrolopes665:
I cannot see your attached file =/ Pm me it!

I have edited my previous post. Please take a look and you should solve by your own.
[Galaxy S II Original Android Development] alexkno:
Charging is blocking wakelock, doesn't it? Think its normal on android. And considering you're plugged you won't run out of juice ;)

But disconnecting should in fact release wakelock, didn't notice that on k16 or k17
[Galaxy S II Original Android Development] miketwn:
I had similar problem. My phone would be at 200mhz most of the time, thus not really deep sleeping. I changed roms, and kernels and nothing helped. Every night before I went to sleep, I would charge the battery to 100%. But when I woke up, the phone was dead (no juice). One day, after this happened I tried to charge it up again, but when I connected the USB charger, it didnt even charge. Thus I finally came to the realization the battery was fu*ked. I switched a new battery and the phone was back in business (deep sleeping)....;)
[Galaxy S II Original Android Development] planetf1:
So it seems most of today I've been just touching my phone every 30-60 minutes to switch something on/off and run another test!

Anyway latest result in a 30min period is 1200-0,1000-0,800-0,500-0,200-2,deep-96

So what did I change? I switched wifi off. There is now a very weak 3G connection (-111/1 asu) which may flip to a moderate 2G data connection.

Not clear how this will effect battery life but I wonder if it's because the phone is on a dirty/busy wifi network.

I'll repeat the test at home where the network is cleaner - though will still probably have 10-20 clients connected. Though 3G is good due to femtocell.

Thoughts now

* setup tasker to have wifi OFF at work only

or

* make use of wifi sleep mode to reconnect to wifi when screen active (though overhead of reconnecting may be higher?)

wondering if tasker can toggle the sleepmode setting on location (cellid) update.
[Galaxy S II Original Android Development] lrcquest:
K16 task manager clear memory bug

There seems to be a problem with the clear memory function of the stock task manager. On K16 now & noticed that when the clear memory is done in the stock taskmanager- the phone gets to the "contacts" & both the back/menu button are unresponsive!

has to use the home key to get to the home screen(adw launcher in my case).
[Galaxy S II Original Android Development] :
My WiFi sleep policy is set to "Never", I leave WiFi connected and on my home network the phone sleeps most of the time. I reckon it uses less battery with WiFi on than with 3G, with 3-4 bars signal strength. I even have a Samba server running on the phone, all the time.

So unless something is pinging the phone continually, I don't think leaving WiFi connected should cause a problem at all.
[Galaxy S II Original Android Development] iNeri:
Happend to me too. Even with tw launcher. Weird.

Enviado desde mi GT-I9100 usando Tapatalk
[Galaxy S II Original Android Development] ithehappy:
Waiting for the latest good news from Hardcore about K-17.

Jesus at those Bootanimation stuffs! Do you guys reboot device and watch that damn animation as a purpose? Can't remember when I last rebooted mine....!!! Let alone that kiddish animation!!
[Galaxy S II Original Android Development] LauCass:
I can notice a significant battery life improvement with K-17 compare to K-16 :)
[Galaxy S II Original Android Development] fenomeno83:
I think k-17 have about 5% life battery improvement in comparison to k-16(that has already a very good battery life)
[Galaxy S II Original Android Development] richyy74:
Simple: even launcher got shut down :-). Pushing home button restarts it. Happened to me several times.

Sent from my GT-I9100
[Galaxy S II Original Android Development] lrcquest:
Have used the clear memory feature often when on stock & the back button had worked. Have never noticed such an issue but now it does!!!
[Galaxy S II Original Android Development] alexkno:
For me on ki3 back button works with k17
[Galaxy S II Original Android Development] gtda:
K17 working great. Lost 0% over 5 hours, wifi on, 3g on. phone only woke once when I checked it. Deep sleep 95%.

Sent from my iPhone killing Galaxy S2
[Galaxy S II Original Android Development] Molitro:
That's pretty much impossible, and more so with "only" 95% of the time on deep sleep.

Most likely the phone misread the battery level.
[Galaxy S II Original Android Development] planetf1:
Ok, yet another followup. Again still on KJ3/2-17test

At home on 3G I still got cpu-spy readouts of 0/0/0/0/2/95 -- so good sleeping over a 30 min period.

I then repeated on wifi and again got 0/0/0/1/2/95, also over a 30 min period.

This is as expected, and now I think about it I realise that when I first got great results I was working at home.

So my theory remains that corporate wifi is too busy/noisy in some way (1000s of systems, broadcasts, complex authentication). This also helps explain why others were able to get such good figures whilst I couldn't. A shame that 3G coverage is patchy (building materials I guess), and will be interesting to balance between

* superior idle performance by sticking to 2G

* superior usability for browsing etc on wifi (which I don't do a huge amount of at work)

* overhead of switching wifi on/off (authentication) either manually or using the sleep policy - and indeed whether than can be dynamically modified based on location.

Things are never simple!

Have now unfrozen some apps to see if I can retain the excellent deep sleep figures.
[Galaxy S II Original Android Development] KennyLegend:
No way. Your battery must be reading incorrect. If your phone was deep sleeping for 95% then it was awake for 5%. ...

Most likely you will see a higher drop than usual afterwards.
[Galaxy S II Original Android Development] ludester:
Somehow i think my figures are wrong. My phone has been on for 9 hours and its showing only 5 hrs and a bit
[Galaxy S II Original Android Development] interfreak:
I'm running K2-17 and after a full charge last night, after 3 hrs my battery is still at 100% (admittedly, the phone has been idle for most of that time).

Excellent!
[Galaxy S II Original Android Development] MrPhilo:
Probably someone already asked this. Is it possible to include CWM5 in the next update?

Only reason is that I cant use my external sd card as CWM4 doesn't support it.
[Galaxy S II Original Android Development] CamoGeko:
Use internal sd to flash stuff from and voila the issue is gone. :P

Transmitted from a Galaxy far far away via XDA lightspeed telepathy.
[Galaxy S II Original Android Development] gtda:
I woke up in the 5 hours, checked my phone then went back to bed, coz in the middle was screen on and awake. But the percentage didn't drop. I did notice when I calibrated it, it dropped from 100% straight to 99, even tho the 100% alarm went off and the notification popped up on the left hand side. But when I woke in the morning it was still on 99%. I'm currently on 71, no wifi, going between g, 3g, and h. And I've browsed the net and Facebook and lots of txting. This is my first cycle. I'm getting a white sgs2 today and this phone is going back to my ex gf. So if the battery is stuffed I don't care lol

Sent from my iPhone killing Galaxy S2
[Galaxy S II Original Android Development] tbong777:
Same here. Hair splitting comes to mind.
[Galaxy S II Original Android Development] itsme_4ucz:
Plz try to include CWM5 in the next update as it makes it complete CWM for SGS2 as it supports external sd card and you wipe Dalvik &Cache together at once.

Thx.
[Galaxy S II Original Android Development] akbarhash:
To all people who are asking for CWM 5, here is a simple way without bothering hardcore.

Go to cf-root thread

get the kernel closest to your firmware

flash (you can even just extract to tar put on sd card, got to cwm manager, flash kernel and you are done)

Now you have cwm 5

Now flash speedmod back.

Edit: Just checked it has been replaced by 4.0.1.5.

Sorry for any confusion.
[Galaxy S II Original Android Development] dzontra11:
Nice but over night i lose 6% in fact for 6 and half hour.

Runing 17.
[Galaxy S II Original Android Development] jsompis:
IMO , Speedmod also included CWM 4.0.1.5 , so CWM5 will override by Speedmod CWM.
[Galaxy S II Original Android Development] akbarhash:
Is there someway to check.

Edit: Just checked he is right it has been replaced by 4.0.1.5.

Sorry for any confusion.