yashsingh1/xdaforums huggingface dataset:
[Atrix 4G Q&A, Help & Troubleshooting] greyrevolver:
After using the kernel for a day, the result isn't very good. Only stand for 6 hours.I attach the batt statistic. Why when the phone in idle the batt consume still high?
[Atrix 4G Q&A, Help & Troubleshooting] BinaryFabric:
I think that the answer to this question isnt as clear as one may think...

1. CM7 while working good is still in beta, and Im assuming that it will stay there until CM9 arrives...

2.MIUI one of the more popular roms is currently in Alpha stages.

I believe that these two are probaly the most popular ROMs around, and not just for the MAtrix. I think that once we start seeing stable builds of both, it would just come down to a matter of preference.

For the time being, I use CM7. Its stable enough for everyday use, however it still has bugs here and there.

I'm desperately waiting for CM9 and I think that MIUI definitively deserves a try. In the near future I'm positive that this question would be a little bit easier to answer.
[Atrix 4G Q&A, Help & Troubleshooting] greyrevolver:
Btw what the best way to do UV ?
[Atrix 4G Q&A, Help & Troubleshooting] crossxn:
SetCPU is the best way :)
[Atrix 4G Q&A, Help & Troubleshooting] greyrevolver:
Yes, try the apps, I set the voltage to 850 for cpu 1000, the phone is boot loop. Is there any suggest for best setting the cpu voltage?
[Atrix 4G Q&A, Help & Troubleshooting] CaelanT:
Have to experiment. Every phone is different. There are already numerous threads with info on this. Also, I now use System Tuner Pro instead of SetCPU. More options and better overall in my opinion.

---------- Post added at 01:12 PM ---------- Previous post was at 01:12 PM ----------

You have to UV as I mentioned before to get the best results.
[Atrix 4G Q&A, Help & Troubleshooting] greyrevolver:
You do UV using system tuner pro? Ok ill try that apps..
[Asus  Eee Pad Transformer Prime] cityoke2:
I know its early, but has anybody heard if the Prime has a locked boot loader? I know some aspiring testers have already rooted the device, but has anybody taken it farther?
[Samsung Epic 4G Touch] id10terror:
This is for those of you wanting to go back to stock without the risk of flashing bootloaders.

This will only flash stock EG30 modem, ROM, and kernel... This does NOT include Bootloaders and this will not wipe your user data on it's own.

​

** DISCLAIMER **​

​

Flash this at YOUR OWN RISK. I am NOT RESPONSIBLE if something goes wrong with the flashing process, or other things that are out of my control.

Although this cannot hard-brick your phone, please use with caution and take all precautions like you would when flashing with regular ODIN.​

​

​

INSTRUCTIONS

Download and Extract EG30_STOCK_ODIN-OneClick.zip

Open EG30_STOCK_ODIN-OneClick.exe

Reboot phone in Download mode (Pwr + Vol Down)

Once you see a COM port in yellow, click Start on ODIN One-Click (this will take a few minutes.. please be PATIENT)

Wait until phone reboots..

These next steps will WIPE your user data and settings (this is just one of many ways to do this):

Go to Settings > Privacy

Click on Factory data reset (do not select "Format USB storage", unless you want your files wiped as well)

Click on the Reset phone button

DOWNLOADS

EG30_STOCK_ODIN-OneClick.zip

Mirrors

MD5:

af4ab71ee37df1289e750910dda0de10

FAQ\NOTES

If you want to flash a complete FULL stock image including bootloaders, please refer to this thread by sfhub: [ODIN][STOCK][TAR] SPH-D710.EG30_CL435734 (EG30 Modem/Kernel/ROM - Factory Restore)

If all you need to flash is the EG30 the modem please refer to my other thread here: [MODEM][CWM][ODIN OC] EG30 Modem CWM flashable + *ODIN ONE-CLICK*

Credits

Przekret (awesome EG30 leak)
[Samsung Epic 4G Touch] id10terror:
Reservedddddddddddddddddd :eek:
[Samsung Epic 4G Touch] musclehead84:
What's wrong with flashing the boot loaders? Is that what causes the most bricks?

Sent From My Evo Killer!!!
[Samsung Epic 4G Touch] id10terror:
There not really a "problem" flashing them.. but yes, if you mess up the bootloader flashing process there's a high chance of hard-bricking... The "Download Mode" resides within the bootloader.. So if you mess up a kernel, modem, factoryfs flash, you can still recover through Download mode since the bootloaders are untouched.. but if you mess up a bootloader flash, there will most likely not be any Download mode to recover from.. Someone will have to manually flash your bootloaders back using JTAG or some other hardware technique.
[Samsung Epic 4G Touch] Indrid Cole:
You are the man terror. Big bro hug for ya.

Now everyone better be hittin the thanks for this right here.
[Samsung Epic 4G Touch] sfhub:
IMO the chances of this happening are extremely low.

Samsung does include the bootloader and secondary boot loader in the package they give to Sprint Techs to restore the phone.

The EG31 ODIN tar, which includes boot.bin and sbl.bin, has been around for around 3 weeks. Many people have flashed that with not a single report of a mis-flashed bootloader.

The EG30 leaked tar also includes boot.bin and sbl.bin. A bunch of people have flashed that without a single report of mis-flashed bootloader.

I've further reduced the chances of something like this happening by changing the ODIN flash ordering to flash the unused recovery partition and less important Sprint pre-load first as "canaries in the coal mine" on the theory that if those flash successfully, the chances of problems are greatly reduced.

Also as a "percentage" of the total flash, the boot.bin and sbl.bin represent an extremely small percentage of the flash so the chances of a pulled cable or computer crash happening just when those two are flashing is extremely low. boot.bin is 0.02% of the flash. sbl.bin is 0.24% of the flash.

recovery.bin	8387840	1.54%
hidden.img	7065892	1.29%
[B]boot.bin	131072	[COLOR="Red"]0.02%[/COLOR]
Sbl.bin	1310720	[COLOR="Red"]0.24%[/COLOR][/B]
param.lfs	1060864	0.19%
zImage	8387840	1.54%
factoryfs.img	461487036	84.46%
cache.img	6705396	1.23%
data.img	36369084	6.66%
modem.bin	15466656	2.83%

546372400

Don't get me wrong, I think it is great you are putting together convenient one-click ODIN packages and have no issues with that. However it appeared that the chances of what you are describing were not being represented in the proper context.
[Samsung Epic 4G Touch] id10terror:
You're right, a 0.02% chance is pretty slim lol

It's just a habit for me not to flash bootloaders unless I really need to. Although I have seen people brick their phones with a bad flash, in this particular case the chances of bricking are low.

Maybe I was being just a little over-cautious. :o
[Galaxy S II Themes and Apps] pissyhun:
hi

it will work on xwkk5 stock rom odexed?
[Galaxy S II Themes and Apps] starbase64:
Hi,

this works fine on CheckRom v4, StartingAlertService now 0,3%.

with friendly greet

starbase64
[Galaxy S II Themes and Apps] rodries:
I think so, but I'm not sure. To be sure that you can revert the changes make a backup (or rename) of the apk(TouchWizCalendar.apk.bak) and the odex calendar files, then delete the odex (I think the odex will be com.android.calendar.odex) and install the zip.

You can always to reodex (http://xdaforums.com/showthread.php?t=1208320)
[Galaxy S II Themes and Apps] pissyhun:
hi

thx for the answer but i am not a developer or an expert in android commands. i read the post u link but gave me headache:))))

i will save the file and use it with a deodexed rom.
[Galaxy S II Themes and Apps] rodries:
Wise decision :)
[Galaxy S II Themes and Apps] eybee1970:
Great. Will implement this in my Note ROM
[Galaxy S II Themes and Apps] hugoxboss:
Love your fix

Yesterday I've installed your fix, and my wake locks for startingalertservice are gone. For your information I'm running a rooted version of the standard i9100XWKK2. Thanks again for your work, my battery time increased quit a bit.
[Galaxy S II Themes and Apps] rodries:
Glad to hear it
[Galaxy S II Themes and Apps] ATN24:
just to make sure, if my wakelocks are in seconds in betterbatterystats, i'm good right?
[Galaxy S II Themes and Apps] rodries:
that's right
[Galaxy S II Themes and Apps] itaykoren:
Thanks for the instructions!

However, my calendar apk file has a bit of a difference in the code.

For example, it starts with:

# virtual methods

.method public handleMessage(Landroid/os/Message;)V

.locals 1

.parameter "msg"

Can I use the same instructions?
[Galaxy S II Themes and Apps] klander:
Excellent job,thanks very much for by apk ;)
[Galaxy S II Themes and Apps] AJ Newkirk:
Does anyone know if this APK will work for UCKK6?
[Galaxy S II Themes and Apps] cmd512:
Thanks a bunch rodries, this is awesome. Instead of ".registers 3", my AlertService$ServiceHandler.smali had ".locals 1". So, I went ahead and changed that to ".registers 4" as well.

Just revised KK5 TouchWizCalendar.apk, working well. :)
[Galaxy S II Themes and Apps] rodries:
I think it's safe use same instructions. I'm using last smali and kk5 apk.
[Galaxy S II Themes and Apps] TheMatrix2000:
Hello rodies,

i am sorry but i can`t get it to work with my GingerMod v0.7 Rom.

http://xdaforums.com/showthread.php?t=1220283

Neither the cwm-file nor the copy direct option works.

I have the Wakelock also. I am not a programmer. So things like compile decompile are chinese to me.

Is it somehowe possible that you can contact the Developer of GingerMod that he can apply this patch for his Rom.

Many thanks in advanced.
[Galaxy S II Themes and Apps] crossover37:
Would this issue be fixed if I just deleted the apk entirely?
[Galaxy S II Themes and Apps] cmd512:
Lol, did you think this through... are you serious? You do realize it's required to use your calendar, not to mention it might cause your phone to crash continuously given all the other items that call on the calendar.
[Galaxy S II Themes and Apps] rodries:
Upload your original TouchWizCalendar.apk, I'll create a cwm file for you
[Galaxy S II Themes and Apps] TheMatrix2000:
Many Thanks

Hello rodies

i uploaded the whole cmw file from the GingerMod Rom. I didn't extract the apk because there is another file in it. The dev. didn't named it TouchWizCalender.apk but Calendar.apk.

I think it's the same Programm though because i get the same Wakelock and also battery drain with it.

Many thanks in advance. :):):)
[Galaxy S II Themes and Apps] tommyrumbler:
hello OP, i'd like to grab the same mod if u'd done with it...im also on gingermod rom...thanks!!!
[Galaxy S II Themes and Apps] cmd512:
Noticing wakelocks from Google Maps. That something we can fix too? :)
[Galaxy S II Themes and Apps] TheMatrix2000:
Sure thing. Perhaps when rodies agrees, we can give the mod to the GingerMod dev.

I hope rodies can fix the nasty Bug for us.
[Galaxy S II Themes and Apps] rodries:
I'm a bit busy now, I'll patch your calendar tomorrow.

Also I think there is more bugs in calendar code I'll try to fix them also.

Samsung is using an old and bugged calendar version, S is not upgrading his modified apks with last android version.

About Maps I'm not using it so I don't know nothing about maps wakelocks, tell me the wakelock name and I'll try to find the problem, but maps is a big apk, so it will be very hard to find the problem, and how to reproduce the problem.

In calendar I know how to reproduce the problem so I can debug it and find the bug.

The calendar fix is public so any dev can use it freely.

If I find more bugs I'll publish how to fix them.
[Galaxy S II Themes and Apps] rodries:
Your cwm zip file for GingerMod Rom.
[Galaxy S II Themes and Apps] TheMatrix2000:
Thanks, i will install it and will let you know the result. :):)
[Galaxy S II Themes and Apps] rodries:
ok, waiting report :D
[Galaxy S II Themes and Apps] chetasus:
thanks mate just flashed on CRR4 and worked as magic.
[Galaxy S II Themes and Apps] rodries:
Thanks for report.
[Galaxy S II Themes and Apps] andrehj:
How to install this fix_cwm.zip file?

Probably a stupid question, but how do I install the file from the first post? I'm using the same KK2 rom as the person from post #8, so it should work.

But how to install? I can unzip the zipfile to my S2, but then, which file to run? I do not see anything that can be executed?
[Galaxy S II Themes and Apps] rodries:
You can use CWM manager to install the zip or install it from recovery mode.
[Galaxy S II Themes and Apps] andrehj:
I already found a solution:

Installed Super Manager, and used its file manager (with root rights) to replace the .apk file.

Now I'm recharging. When the battery is full, I will reboot my phone. The combination will most likely clear the wakelock counter (I think). Then I hope my calender wakelocks are a thing of the past! :)
[Galaxy S II Themes and Apps] TheMatrix2000:
Ok, cwm flashed. Now waiting for the wakelock. Till now, all seems ok.
[Galaxy S II Themes and Apps] chetasus:
all gud, any idea how can i remove other unwanted wakelocks..i hope if there is any app....
[Galaxy S II Themes and Apps] rodries:
In this case it's a samsumg bug because they are not upgrading the code. I found the problem and I've changed the calendar code to fix the bug.

Some applications have bugs or a bad design, for example facebook.

Usually the original dev has to fix the problem, but I use calendar a lot and I could use my SGS2 for 12hrs only because of this wakelock, that's the reason I've investigated the problem, Cyanogen ROM haven't this bug, but I use the radio (cm doesn't support radio), so before trying to fix this bug I tryed to replace the calendar.apk from cm to samsung rom but doesn't work fine.

To remove unwanted wakelocks you have to understand why you have that wakelock, then you can try to fix it.

There is 2 post where I've learned a lot

http://xdaforums.com/showthread.php?t=1179809

http://xdaforums.com/showthread.php?t=1308030
[Galaxy S II Themes and Apps] chetasus:
thanks mate..
[Galaxy S II Themes and Apps] xuxuzao:
works on miui?
[Galaxy S II Themes and Apps] rodries:
I don't know, upload your calendar apk I'll check it

I think miui it's based on cm so you don't need this patch
[Galaxy S II Themes and Apps] andrehj:
Still getting wakelocks from calendar with apk from first post.

@rodries.

After replacing the original TouchWizCalendar.apk by yours from the first post, I'm still getting wakelocks from Agenda (Dutch for Calendar). See the first picture. Batterylife is OK though (see the second picture). Also, I noticed that the APK's (my original and yours) differ almost 200 KB in size (see the third picture). Therefore my kind request: would you be so kind to modify my original TouchWizCalendar.apk (attached to this post)?

My current firmware versions are (Android 2.3.6):

- PDA : I9100XWKK2

- PHONE : I9100XXKI4

- CSC : I9100XENKJ1

Build Info : Fri Nov 11 18:05:58 KST 2011
[Galaxy S II Themes and Apps] rodries:
Try to use this apk and comment

Remember to reset battery stats to be sure problem is fixed

The size is not important I've compressed the apk with 9
[Galaxy S II Themes and Apps] andrehj:
Thanks! Just installed this apk successfully. Rebooted the S2 and charged it fully (is there a faster way to reset the wakelock counters?). At this moment the partial wakelock screen in BetterBatteryStats only shows sleep_broadcast and ActivityManager-Launch items, both with 1s.

Will keep you updated.
[Galaxy S II Themes and Apps] borrego:
Hi rodries ,

Would you be so kind to patch my ZSXXKI3 TouchWizCalendar?
[Galaxy S II Themes and Apps] rodries:
You can reset the batt stats in recovery mode
[Galaxy S II Themes and Apps] rodries:
I think the apk from post 41 will work fine. Test & comment. If it doesn't work I'll patch your apk.
[Galaxy S II Themes and Apps] andrehj:
Calendar causes wakelocks without reminders?

After a promising start (this morning at 10 AM there were no wakelocks generated by Calendar), I just looked at my S2 and found out that StartingAlertService had caused 29minutes of wakelocks... :mad:

But the strange thing is: Because of the Christmas holidays I have no appointments with reminders in my calendar today.

To test this theory I made a test-appointment with a reminder. This reminder has been in the notification bar (on the top of the screen) for 80 minutes now, and the wakelocks counter has

not

increased since...

So it looks like there is not just one process in TouchWizCalendar.apk causing these wakelocks, but also a different (unfound and unfixed) process.

How do I find out which process?:confused:
[Galaxy S II Themes and Apps] borrego:
Thank you. I tried and it works!

Just want to confirm again: It is right to remove the original TouchWizCalendar.odex file and leave the patched apk file in the /system/app directory?
[Galaxy S II Themes and Apps] rodries:
It's weird, I use calendar a lot and wakelock is fixed.

Try to clear dalvik & cache & batt stats from recovery mode.

I've checked android sources and I've found StartingAlertService in calendar only, maybe I'm wrong.
[Galaxy S II Themes and Apps] rodries:
I only use deodexed rom, not sure how odexed roms works, I don't know if you can mix odexed & deodexed apks
[Galaxy S II Themes and Apps] andrehj:
You're not wrong, according to BetterBatteryStats the StartingAlertService came from Calendar.

Throught Google I've found that I can get in recovery mode when I press Home, Vol Up and Power simultaneously. This worked. However, then I only have these options:

- Reboot (want to do that later)

- Apply update from SD-card (don't want that)

- Wipe data / Factory reset (definitely don't want that)

- Wipe cache partition

Is this last option the cache you are mentioning? But what about Dalvik? What is that?

Edit: Did some googling and found a directory /data/dalvik-cache. Can I simply delete all files in this directory and reboot?
[Galaxy S II Themes and Apps] borrego:
I guess it would work. I actually found a few other deodexed apks in my system/app directory.

Thanks for the great work!
[Galaxy S II Themes and Apps] rodries:
Try this

In recovery mode

-wipe cache partition (you are not going to loose anything)

-goto advanced

--Wipe Dalvik cache

--Wipe Battery Stats

Go back and reboot system now

This time the boot will be longer maybe 2 or 3 minutes because dalvik cache will be regenerated.

In theory you only need to "Wipe Battery Stats" to be sure the log is clean.

Now test and comment.
[Galaxy S II Themes and Apps] blk15:
Sadly the issue has returned for me after a few days without the wakelock appearing...

Would there be any issues to attempt to reflash this again if it is pre-existing?
[Galaxy S II Themes and Apps] rodries:
do you have the wakelock again?

Maybe you have updated your rom or installed the apk again without notice.

I had that problem when I installed an update, and thougth there was another bug, but after check my apk I noticed that I was using an old version. After reinstall the apk the wakelock is fixed for 2 weeks, and I'm using calendar a lot.
[Galaxy S II Themes and Apps] planetf1:
Hi,

Great discovery figuring out the cause of the wakelock - a real shame samsung hasn't patched this yet,

I have the KL1 rom (based off Intratech's frankenstein modem/csc combo) - the .apk is below.

I am a developer -- but not on android. As of yet I've not pulled apart/rebuild apks. Is there any chance you could patch - or failing that do you have a quick cheat-list of what to do to rebuild?

The odex file is effectively just precompilation to speed dalvik loading right? So just for a single apk no real benefit to rebuilding with a modified calendar - just may as well delete. right?

Many thanks
[Galaxy S II Themes and Apps] rodries:
If you use odexed rom delete or rename the odex file (maybe com.android.calendar.odex or TouchWizCalendar.odex, I'm not sure) to be sure classes.dex is used from deodexed apk.
[Galaxy S II Themes and Apps] rodries:
You have uploaded odexed apk so there is no classes.dex inside apk

I can't fix it this apk, I need the classes.dex file (I think the odex will be com.android.calendar.odex)

Anyway try the apk from post 41

http://xdaforums.com/showpost.php?p=20735943&postcount=41

KL1 & KK5 are very very similar so must work

Remember to rename/backup original com.android.calendar.odex & TouchWizCalendar.apk. If you use odexed rom delete or rename the odex file (maybe com.android.calendar.odex or TouchWizCalendar.odex, I'm not sure) to be sure classes.dex is used from deodexed apk.
[Galaxy S II Themes and Apps] crypticc:
here you go, unedited KL1 from Intratech. both APK and ODEX file. I hope this helps us all ????

In meantime I am using the one you linked.

:-)

Cheers
[Galaxy S II Themes and Apps] rodries:
It's the same apk so no need to recompile, I've compared smali code, use the linked one. Samsung has not updated his calendar apk.
[Galaxy S II Themes and Apps] crypticc:
Appreciated
[Galaxy S II Themes and Apps] tstretch:
Hi - sorry if I'm missing something terribly stupid here but I'm having this wakelock issue and can't make this file work for my phone - I have a Sprint Epic 4G Touch running a rooted stock Sprint ROM. Will this file not work for this ROM/hardware?

Used ES File Explorer to replace the touchwiz_calendar.odex and .apk file but the calendar app doesn't even show up in the list of apps anymore..??
[Galaxy S II Themes and Apps] iscio:
how is it possible that I haven't this wakelock? I have the alarm in notify area but in BetterBatteryStats I have not StartingAlertService Wakelock
[Galaxy S II Themes and Apps] planetf1:
Do you have la2? seems to occur less
[Galaxy S II Themes and Apps] iscio:
I had la2 but now I have checkrom revolution v4
[Galaxy S II Themes and Apps] cmd512:
Been doing this fix myself on my stock/odex ROMs (currently LA2) with 0 issues. Just have to remember to delete the *.odex file and clear the dalvik cache afterwards, good to go.
[Galaxy S II Themes and Apps] rodries:
Upload your .odex & .apk I'll try to fix it or maybe other user can fix it

Have you tryed to install cwm file from post1 in recovery mode?
[Galaxy S II Themes and Apps] rodries:
LA2 has the same problem, samsung has not updated calendar
[Galaxy S II Themes and Apps] tstretch:
thanks so much but I got the file from post 41 to work on my Sprint Epic 4G Touch! Fixed issue! Now if I can figure out 'Starting CM_vNoteService' and the Keyguard wakelocks I'll be set!
[Galaxy S II Themes and Apps] segelfreak2:
Sorry,

I have a question. Currently I have installed KI4 (Stock). And I want to edit the TouchWizCalendar.apk. But when I decompile via apktool I do not get any source code. I only get a "res" directory.

I installed the framework and afterwards I did a:

./apktool d TouchWizCalendar.apk

Do I need to sign/unsign the apk first, or what is going wrong.

Would be nice if someone could explain me the way to do these modification.

Many thanks & Best regards,

segelfreak
[Galaxy S II Themes and Apps] segelfreak2:
Ok, in the meanwhile I have learned some important things:

As I'm using an original Samsung ROM, my calendar is odexed. SO I have an APF file and an ODEX file. That is the reason I do not get any source code when decompiling the APK file with apktools.

Unfortunately I have no clue how to handle this problem now. My dream would be to have a patched, odexed version of the Calendar App. As far as I have understood the procedure I need to do looks something like this:

- Deodexing the original Calendar app

- Unpacking the deodexed Calendar app

- Editing the source code as described in post #1

- Odexing the edited calendar

- Copy the signature to the new odex file

- Replace the apk & odex file in /system/apps

Is this right? And if yes, ...I suppose that I need much more than "one" program to do this all. Right? - I'm not sure if I can do this all as an android dev beginner.

Best regards,

segelfreak
[Galaxy S II Themes and Apps] rodries:
You can use the cwm file from post 1
[Galaxy S II Themes and Apps] segelfreak2:
So, I can use the KK5 deodexed calendar without any problems within the KI4 odexed Stock ROM?