yashsingh1/xdaforums huggingface dataset:
[Galaxy S II General] Cr15py:
I noticed that both under Performance settings and using some overclocking apps on the market that the maximum CPU frequency is set to 1836 MHz, and cannot be changed(always reverts). Unless I've been misinformed isn't the default maximum CPU frequency 1.5GHz? If so isn't it a bit haphazard to have it set so high above the normal by default?
[Galaxy S II General] dsixda:
I noticed that too and I wouldn't do that intentionally. In fact I don't even know how to overclock in the kernel! Not a big issue IMO, but I'll look into it when the big issues have been fixed. Thanks
[Galaxy S II General] TrainAss:
NEVER WATCHED SPACEBALLS?! MY GOD!

Let me know when you're back, and we'll meet up for a beer!
[Galaxy S II General] B.Moreira:
Oh sorry I didn't read that right I thought you meant CM has bad drivers in general.
[Galaxy S II General] dsixda:
There's a user manual online somewhere... Let's check it out.
[Galaxy S II General] jonnyjb:
Here is the link to Samsung manual

http://m.samsung.com/ca/consumer/mobile/mobile-phones/smartphones/SGH-I757ZKMBMC-support

And this is what it says

NFC

Use Near Field Communication (NFC) to read and exchange tags.

1. From the Home screen, tap ➔ Settings➔ Wirelessand network ➔ NFC.

2. Tap the check box to place a check mark in the box.

And this about

Tags

This application is used for organizing and sharing Near Field Communication (NFC) tags. You can scan a tag by turning on your device and placing it near the tag. 1. 2. From the Home screen, tap ➔ Tags . Read the on-screen tutorial screen and follow the navigation instructions. Turning on the NFC feature: From the Home screen, tap Wireless and networks NFC

So it seems like it is just for reading tags, it doesn't mention anything about transfers, but that could just be an ICS feature
[Galaxy S II General] dsixda:
Oh I see. Maybe I will go to the Sony store this weekend and buy some tags to test.
[Galaxy S II General] jonnyjb:
It's amazing what dsixda has done in 10 days this is a daily driver is amazing !
[Galaxy S II General] 123abcalex:
Damn, no ICS until 'august' (could be august 31th with Bell's exceptional customer service)

*crap cannot post links see androidauthority leak bell canada

(see the last entry on the list)
[Galaxy S II General] dsixda:
Did you guys notice how fast the shutter is on the CM9 camera app?? Was it this fast in stock? I know that the camera on the HD on stock 2.3 firmware seemed faster than my Bell GS2 I9100.
[Galaxy S II General] B.Moreira:
I noticed that too it seems a lot faster, I think it's the touchwiz ui that slows it down for some reason.
[Galaxy S II General] TrainAss:
I've switched to Camera ICS+ as it allows me to turn off the shutter sound (I always found that the shutter sound was really loud, obnoxious, annoying and sounded nothing like a camera) and the app would save pictures to an external SD card. But since moving to CM9, it no longer saves to the external SD card. Seems to default back to the internal card, but no videos are being saved.
[Galaxy S II General] B.Moreira:
I've never used that camera app so I can't help you out there.

If your videos aren't being saved from that app just use the regular camera app, the issues from it are most likely caused by the sd card drivers in CM9. So I think only dsixda could fix that.
[Galaxy S II General] dsixda:
I can save photos and videos to both internal (/mnt/emmc) and external (/mnt/sdcard) SD card. I mean with stock camera app.

If an app can't do it, then it's most likely the problem of the app developer
[Galaxy S II General] dsixda:
The only problem I can see is the developer not mapping the card to /mnt/sdcard but using /sdcard or /sdcard/external_sd instead. Anyways I am not too bothered about it.. And I don't know how to "fix" these things (not really a fix but a workaround for a specific need of someone). I knew people will ask about, it gets asked all the time with any CM ROM. I could probably make a symbolic link to a 'common' sd card folder name though.
[Galaxy S II General] TrainAss:
Oh, no reason for you to worry about it. How do you change the stock camera app to save on the external SD?
[Galaxy S II General] dsixda:
See attached
[Galaxy S II General] TrainAss:
Sweet, thanks!
[Galaxy S II General] josunghoon:
korea user

i'm korea GS2 HD lte user.

this rom update now..

it's error touch led, not lte...

and.. not sound..;;;

umm...do not very well.. en... ;

thank's to cm9..
[Galaxy S II General] dsixda:
Why are you flashing this, it says in the title: SGH-I757M ONLY, and directly above the download link -- WILL NOT WORK WITH ASIAN GS2 HD.

Also to flash it to your device, you would have needed to remove the 'assert' statements in the updater-script. You are consciously aware that it's the wrong device, so why flash it?
[Galaxy S II General] dsixda:
Now uploading:

Another 10 minutes.
[Galaxy S II General] mic2012:
Perfect,thanks again
[Galaxy S II General] moosekhalil:
in regards to the backlight notification. its not working is it? i attempted to test it. it seems as though only the touch-lit buttons at the bottom are reacting. there is no color response. is this just because this s2 variant doesnt have the hardware to support this feature? sorry, seems like a dumb Question.
[Galaxy S II General] Nightside571:
hey guys, need some help... followed all instructions to the tits and i've been stuck on the CM9 graphics with the cyanogen ironman ;) for past 40 minutes. What do?
[Galaxy S II General] moosekhalil:
k so when you installed the .zip from the sd card in the CWM menu.. install it TWICE. this usually helps. it did for me with the same problem.
[Galaxy S II General] Nightside571:
I have done this, as learned from mistakes made on my old SGS. Anything i could have done wrong? FYI using 705a rom as the site would end up with an error trying to DL 707. Remedies?
[Galaxy S II General] dsixda:
Colour response? You mean with NoLED app? Then you can see coloured squares on the screen. BLN is basically just the lighting up of the capacitive buttons during a notification.
[Galaxy S II General] moosekhalil:
did you update to the latest CWM ? i have successfully updated to all versions of ROM no problem by simply flashing the .zip twice.

try this.. in cwm menu.. do a wipe/factory reset., then flash the .zip twice. if this doesnt work i am sorry to say i really dont know any other solution as i am still a newb lol

oh! also try using the 705 rom THEN update to 705a or 707. forgot to mention that i started off on the 628a rom and updated from there. this may also resolve it.
[Galaxy S II General] Nightside571:
I'm going to get 705, re-downloading google apps, ill factory reset and then see what happens... hopefully it gets resolved... because im awesome and didn't make a back up or anything ;)
[Galaxy S II General] moosekhalil:
See what's weird is I came from original to this and it retained my images. I had backed up on my Samsung kies. So I had to go back to stock from. Get my contacts pushed to Gmail then go back to cm9 and get contacts lol. I'm sooo genius
[Galaxy S II General] Nightside571:
fixed. it appears that there was an error whilst downloading google apps the initial go. cheers.
[Galaxy S II General] moosekhalil:
Awesome!! Enjoy!
[Galaxy S II General] B.Moreira:
Instead of flashing twice just wipe data, wipe cache, wipe dalvik, flash rom, then fix permissions. It works everytime for me. ;)
[Galaxy S II General] dsixda:
Good, I saw a Tweet from Dev-Host where they said they were upgrading servers, so you probably got a corrupted download.
[Galaxy S II General] dsixda:
Not always. When I went from stock to CM9, it took a long time to flash. I checked the recovery log (under Advanced section of CWM) and it had some erorrs, and then said it had exited early due to a missing file it was trying to back up. So simply wiping and fixing permissions will not correct a partial flash.
[Galaxy S II General] B.Moreira:
Oh I was telling him that if it might have been a problem with the cache and permissions that was causing a boot loop. I didn't even know that you could partial flash.
[Galaxy S II General] ngautam:
soooooooooo idk if any of you gangsters got this issue...i downloaded and started playing some game from app store and the phone was getting heated which is normal but this time this was a lot hotter than normal...it turned off and rebooted and kept rebooting run i took out the battery and let it cool down...i know its a feature of the phone to turn it off when its hot...does it not scale down the cpu when its hot ?
[Galaxy S II General] dsixda:
Do you have the latest versions or the accidental overclocked one that took it to 1.8GHz ;)
[Galaxy S II General] ngautam:
no i changed it to 1.5 ghz...mine version is about 4 or 5 days old..i dont think you changed anything for the cpu ?
[Galaxy S II General] dsixda:
Oh gosh, why are you using a ROM from 4 or 5 days ago?

I doubt it changed back to 1.5GHz, it likely went back to 1.8 right after. There is a bug (or maybe not) in the ROM where if you try to change the maximum frequency it reverts back to the original.

e.g. Try to go under /sys/devices/system/cpu/cpu0/cpufreq/ and change the file "scaling_max_freq" to contain 1458000 (1.458 GHz).

(Try the same for cpu1 instead of cpu0).

You won't be able to; immediately it changes back to the original value. However if you change scaling_min_freq, it does get set.

These are the values that can also be set by System Settings --> Performance --> Processor. I'm trying to figure out why max frequency cannot be set permanently manually.

I believe the part in the kernel code that does this is under /arch/arm/mach-msm/cpufreq.c in the procedure "set_cpu_freq". I think the 'override_cpu' value is not being set so it can't change the max freq. (override_cpu looks like it is the value in /sys/devices/system/cpu/mfreq, as seen in the procedure "strore_mfreq") I'm new to all this kernel and overclocking stuff, so I'm gonna need some help with this.
[Galaxy S II General] dsixda:
OK, LOL, that was easy. I fixed it, with a little help from IRC.

Overclocking will now work!

Quadrant results with new changes:

- stock 1.5 GHz = 3300

- new 1.7 GHz = 3400

- new 1.8 GHz = 3600

I'll be uploading cm-9-20120707a (note the "a" after the date).
[Galaxy S II General] dsixda:
New build is now up!
[Galaxy S II General] skysbird:
still wrong orientation of compass in E120L

hi dsixda:

i've fork your samsung project from github, and i'm doing some change for E120L phone, and I found that the compass orientation is always 90 degree wrong. I wonder to know how about compass run in your i757m ? and do you do some special work on compass source? I found in your project, you just use the sensor.default.so of the i757m , not build it from the cm9 source. whatever I always encouter the 90 degree problem in compass, either use cm9 source (AkmSensor.cpp) or use the sensor.default.so in E120L.

need some advice from you, thank you very much
[Galaxy S II General] ngautam:
lol that was fast :good:
[Galaxy S II General] dsixda:
@skysbird:

Could you please edit your last post and take out the long quote. I've already replied via my personal email.
[Galaxy S II General] skysbird:
sorry, i've done it
[Galaxy S II General] Nightside571:
just some feedback; I'm loving this rom on this device, the fact that over a month ago i was choked about there being next to no support for my new device, to now where there is rockin alpha firmware. dsixda, thanks for putting in the effort, as it is greatly appreciated and I will be spreading your ROM to my mates who've got the same device!:highfive:
[Galaxy S II General] Marilius:
Many thanks

I was really bummed out after purchasing this phone, seeing that it might not have the support that other more popular models got. You've single handedly turned that around. I am sincerely thankful for your efforts. I love my phone now.
[Galaxy S II General] markdexter:
This has been great work by dsixda. I would say the rom is easily a stable usable daily driver. I've had no issues with it. I've been trying out some of the free themes for cm9 on the market. They've all worked without any hiccups!! Great rom
[Galaxy S II General] maydax:
I must say the progress has been amazing so far. I gave it a try yesterday and loved it but had to revert back to GB as I use my front camera too much for Skype etc. I wanted to use the bell apps free image so figured I'd give this a shot before I did.

Soon as the front camera is working I will definitely start using this rom. I'm not a Linux kernel / hardware person but would it be possible to try ICS binaries from the SR200PC10 camera (if they can be found) to see if they work?

Either way awesome work on the rom so far. I hope you can figure out or get help with the front camera asap so I can finally move to ICS. The Galaxy S4 may be out before the official ICS at the rate bell is moving :p.
[Galaxy S II General] dsixda:
Yeah, it's an idea, but I can't find any kernel that has "SR200" enabled in its configs. Seems like the SR200PC20M is a special version they made just for this phone. (The Chinese Galaxy Note has it, but it uses an Exynos processor, not MSM8660 like ours, so the binary is not compatible.) The SR200PC10 on the www.siliconfile.com website seems to be a 'retail' version of the same sensor. I would guess that a ICS camera binary for either one would work with both. I did spam all the contacts on that Korean website for a datasheet of the PC20M sensor last Friday, waiting for a response now.
[Galaxy S II General] dsixda:
Just bought a pack of NFC tags from the Sony store.. they don't seem to be detected by our phone but I will try with the stock Bell 2.3 ROM later to compare. They work with the Xperia S by just enabling NFC.

EDIT: Confirmed, stock Samsung 2.3 ROM cannot read nfc tags either :P
[Galaxy S II General] jonnyjb:
So what does the nfc on our divide even do, or did they put it on knowing they would enable it when they bring out ics? Still strange.
[Galaxy S II General] markdexter:
I personlly dont even think we have it (Hardware I mean) They just loaded the software in!

I cant believe we dont even have a fm radio!!
[Galaxy S II General] dsixda:
Let's start a class action lawsuit ;)

I'm sorta serious..
[Galaxy S II General] markdexter:
lets all demand our providers give us the SGS 3 instead!! which does have it!!
[Galaxy S II General] dsixda:
I'm running mine unlocked with Rogers, so I have no say ;)
[Galaxy S II General] markdexter:
Although I cant see NFC included in these specs http://www.samsung.com/ca/consumer/mobile/mobile-phones/smartphones/SGH-I757ZKMBMC-spec
[Galaxy S II General] dsixda:
That info is wrong, it says the resolution is 480x800 LOL

Google for the I757 user manual, it mentions it can be used to detect NFC tags. BTW does the stock ROM have the Tags app??
[Galaxy S II General] markdexter:
Yeah there was definitely a tags app
[Galaxy S II General] maydax:
Mine seems to.
[Galaxy S II General] B.Moreira:
Lol the specs are for the GS2 not this phone. Fail by Samsung.
[Galaxy S II General] dsixda:
Oh dammit,

I came home with intention of re-testing the NFC tags with the stock 2.3 Tags app, but I realized I had forgotten my Sony store bag in the mall. That's $25 plus Ontario tax down the drain, and something I wish I could have tested. :-(
[Galaxy S II General] dsixda:
UPDATE: The front camera issue mentioned below is now fixed. I updated to a newer version of the kernel source.

Ok here's some good news.

#1. I got the camera libs for the ICS update for the I757.

system/lib/liboemcamera.so,

system/lib/hw/camera.msm8660.so

(see attachment below)

Unfortunately, they don't work :-( Screen goes blank. Even the rear camera screen goes black. If you reboot the phone and try to start the camera again, an error popup displays on the screen stating that the camera cannot be started. (I have provided logcats in the next post)

The July 3 build in my dev-host account has the front camera button enabled, so you can see that it actually does switch to it without an error, but the screen is black.

#2. Got the datasheet and 'set-file' from Korea! For the front camera sensor.

Link to PDF: http://minus.com/m8kVwaOOM/

Link to set-file (sr200pc20m_reg_60Hz.h): See attachment below

Don't know what to do with it, unless I get some help building drivers.. LOL, right. But it's a start.
[Galaxy S II General] dsixda:
Our CM9 is now featured on the xda news portal:

http://www.xda-developers.com/andro...nofficial-cm9-build-for-the-galaxy-s2-hd-lte/
[Galaxy S II General] markdexter:
Awesome! Great work dsixda, we should get a little video review on the go, I could do one if you like, that's if people can understand my Liverpool accent!!
[Galaxy S II General] dsixda:
Sure, it's up to you.
[Galaxy S II General] reallybigabe:
NFC

We really don't have NFC?

I was actually about to go get a vanilla MC to load up my google wallet again. Since my stupid RBC Virtual Visa is useless on both play and amazon app store. I can order things just fine, including EBOOKS FROM AMAZON, but can't pay for an app.

Ridiculous.

As for NFC, I think even the box for this phone says it has NFC - but you're right, it doesn't appear to be an NFC-enabled battery.

Frustrating - I may even be up for exchanging this phone based on that. We'll see. Either way, great work getting on the news page dsi... although, its definitely not your first time. Great work, buddy.
[Galaxy S II General] dsixda:
Crash course on ADB

If you are using a PC, install Kies so that it installs the drivers necessary for you to use ADB.

Install the Android SDK to get ADB (under "platform-tools" folder). Then on your CM9 ROM, go to System Settings -> Developer options and enable Android debugging.

Here are some basic ADB commands:

1) Set the read/write permissions in your system folder to add "writeable" access so that you can copy files to the device:

adb shell mount -o remount,rw /dev/block/mmcblk0p24 /system

Do not use this same command on another model of device, unless you are sure its system partition also uses mmcblk0p24!

This setting will go back to read-only access when you reboot.

2) To copy files

from the phone

to your PC, use 'adb pull'.

e.g.

adb pull /system/lib/liboemcamera.so liboemcamera.so.bak

3) Push the new files from your PC

to the phone

with 'adb push':

e.g.

adb push liboemcamera.so /system/lib/

4) Reboot (you can use 'adb reboot' if you want)

5) Cry

6) To debug, use:

adb logcat

OR, to debug messages from the drivers/kernel:

adb shell dmesg

To send output to a file:

adb logcat > mylog.txt

adb shell dmesg > mydmesg.txt
[Galaxy S II General] maydax:
I used IDA on the liboemcamera.so and camera.msm8660.so files which gave a library list they use. Not sure if it's all of them but it may help.

liboemcamera.so
.plt:0000BD98 ; Format : ELF for ARM (Shared object)
.plt:0000BD98 ; Needed Library 'libdl.so'
.plt:0000BD98 ; Needed Library 'liblog.so'
.plt:0000BD98 ; Needed Library 'libcutils.so'
.plt:0000BD98 ; Needed Library 'libmmjpeg.so'
.plt:0000BD98 ; Needed Library 'libmmipl.so'
.plt:0000BD98 ; Needed Library 'libgemini.so'
.plt:0000BD98 ; Needed Library 'libmmmpo.so'
.plt:0000BD98 ; Needed Library 'libC2D2.so'
.plt:0000BD98 ; Needed Library 'libmmstereo.so'
.plt:0000BD98 ; Needed Library 'libc.so'
.plt:0000BD98 ; Needed Library 'libstdc++.so'
.plt:0000BD98 ; Needed Library 'libm.so'
.plt:0000BD98 ; Shared Name 'liboemcamera.so'

camera.msm8660.so
.plt:0000CD5C ; Format : ELF for ARM (Shared object)
.plt:0000CD5C ; Needed Library 'libutils.so'
.plt:0000CD5C ; Needed Library 'libui.so'
.plt:0000CD5C ; Needed Library 'libcamera_client.so'
.plt:0000CD5C ; Needed Library 'liblog.so'
.plt:0000CD5C ; Needed Library 'libcutils.so'
.plt:0000CD5C ; Needed Library 'libmmjpeg.so'
.plt:0000CD5C ; Needed Library 'libgenlock.so'
.plt:0000CD5C ; Needed Library 'libbinder.so'
.plt:0000CD5C ; Needed Library 'libdl.so'
.plt:0000CD5C ; Needed Library 'libs3cjpeg.so'
.plt:0000CD5C ; Needed Library 'libc.so'
.plt:0000CD5C ; Needed Library 'libstdc++.so'
.plt:0000CD5C ; Needed Library 'libm.so'
.plt:0000CD5C ; Shared Name 'camera.msm8660.so'
[Galaxy S II General] dsixda:
Thanks, great to have you here! I was going to dig up my old copy of IDA today as well, but good thing you did that.

I did ask for and receive 6 other binary files, which are listed below, but they are exactly the same files content-wise as what we already have in the current builds (i.e. from the Skyrocket ICS repository):

- libgemini.so

- libmmipl.so

- libmmjpeg.so

- libmmmpo.so

- libmmstereo.so

- libs3cjpeg.so

Some of the others below, like libcamera_client.so are not proprietary, and are built by the CM source files.
[Galaxy S II General] TrainAss:
dsixda, you are a god among men!
[Galaxy S II General] dsixda:
Enabling front camera = God Mode

Just kidding, I have had almost no clue what I have been doing the last 2 weeks. A configuration tweak here, a pasted file there, and some occasional newb-ish programming hackery.
[Galaxy S II General] TrainAss:
I'm sure that once "official ICS" has been released, everything will come together nicely!
[Galaxy S II General] markdexter:
What is our baseband? Is it still the same as it was with gingerbread?
[Galaxy S II General] 123abcalex:
NFC capabilities

Could it be that by changing the battery cover or the battery itself (for ones containing an NFC chip) the phone could then use NFC?

(smartphonestraighttalk.com/tag/samsung-sgh-i757)

Will bell release an NFC battery cover (why would they they, clearly don't give a siht once you walk out of their store with your phone)? What hardware is required for NFC to work? An NFC chip and an antenna?

All indication point to the phone having an NFC chip, is it simply a matter of not having an antenna?

I was looking forward to using this feature, damn bell and their misleading publicity
[Galaxy S II General] maydax:
Does this still require the roms before you disabled the front camera? I may play around with it but wanted to have some of the fixes that are in later versions of the rom.
[Galaxy S II General] dsixda:
Yes it does. Check the change log to see what came in afterwards.. it's basically just backlight fixes and the overclocking update.

I got some new files just now and will be working again on the cam.
[Galaxy S II General] dsixda:
Here's some good info I just found:

http://www.nfc-phones.org/samsung-galaxy-s-ii-2/
[Galaxy S II General] dsixda:
Ok I give up on the front camera. I am totally and utterly stumped.

Please see posts #242 and #243, which I've updated with the info I've got so far with logcat.