yashsingh1/xdaforums huggingface dataset:
[Galaxy S II General] alb3rtt:
If that's the stupidest post ever, then you clearly haven't been on xda for long.

Also, its true. Nightlys do have the latest bug fixes. Some of them don't just apply to the new features implemented in the nightlys.

Please tell me why the placebo effect thing is so stupid. People actually have renamed nightlys to stable (or alpha to stable in my first device) and changed the build.prop and everyones problems instantly went away and their benchmarks went through the roof apparently.

If you want to respond, please do it in PM. This is OT.
[Galaxy S II General] MrWil:
Possible that CWM stops working when data partition is encrypted?

Possible that CWM stops working when data partition is encrypted and the automatic updating of CM10.1 nightlies also doesn't work?

Using a GT-I9100 (intl. unbranded) S4, with CM10.1 nightly from July 9.

When trying to use the auto updater, it downloads the nightly, but then gives the error can't mount emmc

When I try to install the new nightly .zip file manually in CWM-based recovery v6.0.3.3 it's the same problem:

E:Can't mount /emmc/

ECan't mount /sdcard/

When I look at the CWM advanced show log option, it shows a lot more errors, like can't find extendedcommand

and

failed to mount /dev/block/mmcblk1p1

also

I:Can't partition non-vfat: ext4

I have searched for an hour but could not find a solution, some people seem to have the same or at least a similar issue though.

How can I go about updating the CM10.1 otherwise?

I read about some serious security issues being fixed in the last few days, so I would like to find a way to update.
[Galaxy S II General] Manok0712:
hellow. newbie here.

- can i ask question?

- i install cm-10.1-20130713-NIGHTLY-i9100.zip to my SG2-I9100 i find out that weird stuff happen its randomly shutting down. even if it have 80% battery. up..

for exp. i place my phone on the bed leave it for only 15min then its dead. i use power button to open it again. 3 times a day. it happen to me..

- sorry for bad english... :D
[Galaxy S II General] alb3rtt:
Download stweaks from the play store and go into other and press reset battery gauge. That should fix the battery issues and the reboots. If it doesn't, then wipe data.
[Galaxy S II General] Manok0712:
- i will reset factory and check 24hours if still have that problem

- thank... :)
[Galaxy S II General] lerkin:
Stweaks will not start with default kernel.
[Galaxy S II General] alb3rtt:
:/ I thought it does...
[Galaxy S II General] jmjviana:
How are we suppose to do that?

Enviado do meu GT-I9100 usando o Tapatalk 2
[Galaxy S II General] opaco23:
For those that don't click on links, the ESDB-7 title is "[i9300] Fix AGPS location issue".

Basically it says wrong Cell-ID is sent to SUPL server, thus either no or wrong

AGPS data is returned.

no AGPS data: signal acquisition is slow (30 seconds in the best case

to get position fix, 12.5min best case to receive almanac)

wrong AGPS data: receiver might try to lock on signals from satellites which

are not in view, thus preventing position fix

To test the theory, if you can't get any position fix, try to comment out

SUPL_HOST from /etc/gps.conf and use GPS Status or GPS Test

to clear AGPS data (which I think is stored in /data/NVM* files).

Then try under clear sky, it should get a position fix within a few minutes.

Once it has a positon fix you need to keep is running for at least 15min

(better 30min) to receive the complete almanac (course satellite

orbital data, valid for 1/2 year). This will speed up subsequent fixes.

Note that for each satellite the ephemeris data is valid for 4 hours, which

means that if you have the ephemeris and almamac, subsequent

position fixes can be much faster, even without SUPL.

BTW, I think XTRA_SERVER is only for Qualcomm GPS chips, not used for Sirf.
[Galaxy S II General] mosespl:
You need titanium backup to freezze any apk

Wysłane z mojego GT-I9100 za pomocą Tapatalk 4
[Galaxy S II General] ph3n0mII:
Alternatively you can use Links2SD to freeze an app (if you must), or just use Greenify to hibernate google maps instead so you can still actually use it on-demand when you want (and youtube if you use that). Hibernation will occur a short time after screen is turned off, and the app won't get woken up again until explicitly run by you, or if phone is rebooted.

-----------

Obviously this isn't a big issue, but i thought i'd share anyway...sometimes (very very occasionally) after opening either Facebook messenger or Google maps, this will happen when closing or minimising it.

Same/similar thing happens when asked to save password in stock cm10.1 browser, the leftmost button gets unexpected blue highlight.
[Galaxy S II General] Vahooli:
before when codeworkx was active, problems got solve fast , but nowadays every problem cant solve quickly ... gps problem solve after more than 1 week and now "Anroid OS" battery eater still persist in new nightlies and no admin solve this ...
[Galaxy S II General] pxrave:
your a dumb, codeworkx and the others work hard in there free time to get this device work...
[Galaxy S II General] chrhei:
Good news, but does it mean there is a chance that this patch will fix our problems on the I9100 as well?
[Galaxy S II General] SimboXXX:
There is no "Anroid OS battery eater". Is same noob question repeated on weekly basis. The battery stats are relative. If you don't use a lot of other stuff the Android OS percentage will be higher. It's normal. Otherwise, use BBS to see what wakelocks you may have.
[Galaxy S II General] alb3rtt:
There is no gps issue. That's why it can't get fixed. The exact same thing happened on the s1 forum. Some nightlys the gps would work, others it wouldn't however there would be nothing changed involving GPS so its an odd issue. My GPS didnt work until I changed my GPS.conf to Oceania. Now it locks in 5 seconds, every single time. (Referring to the s2 and s1 build of cm)

About android os issue, its not happening to me. I'm on the 13/07 build.
[Galaxy S II General] Qaweck:
Yes, I've applied it on my own build, and it solve the problem for me.
[Galaxy S II General] chrhei:
Thank you very much for your effort you've spend, I will patiently wait till this fix is merged into gerrit.
[Galaxy S II General] ghepeu:
If the binary gps driver uses a struct with members different from those of the struct as defined in the open source code and the os is feeding the gps random AGPS values there is definitely a bug. Maybe you're not experiencing any issue, right now, but that doesn't mean that it's not there.

Anyway, I just compiled a build including those fixes ported to the i9100 and I'm seeing cold gps fixes in 3-7 seconds against the 30 seconds to 3 minutes I was seeing before (that is, 30 minutes ago). I'm uploading it for testing by others, it will be a while though, my ADSL has a very limited upload bandwidth.
[Galaxy S II General] szymko1995:
Could you make a request on cm review (to merge it officially) and give us a git link to your changes?

Wysłane z mojego GT-I9100

---------- Post added at 03:07 PM ---------- Previous post was at 02:51 PM ----------

On which video player Wmv movies work?

Tried on gallery app and MX player, but no success.

Wysłane z mojego GT-I9100
[Galaxy S II General] ghepeu:
I'm not comfortable uploading to gerrit changes authored by someone else. I'm trying to figure out how to add a comment to the jira issue to notify the developers that the fix should also be applied to the android_device_samsung-galaxys2-common repository but the "Comment" button is missing.

Anyway, this is the build including the changes: https://www.dropbox.com/s/mfdsrximggusnv8/cm-10.1-20130714-UNOFFICIAL-i9100.zip

If we can confirm that it solves the GPS issues we'll see how to proceed.

EDIT: not even the line numbers are different, the i9300 patch applies cleanly to galaxys2-common/include/hardware/gps.h, so you can use the jira patches directly.
[Galaxy S II General] Qaweck:
It will be very interesting that people that don't have GPS issue test it also.
[Galaxy S II General] n39x:
Thank you for the upload. Flashed it and it works like a charm. My GPS Problems are gone.

Im hoping they'll include this fix in the official nightlies soon.
[Galaxy S II General] chrhei:
Thank you, will report back soon.
[Galaxy S II General] ShiningAce:
any kind soul with enough skills to compile a stock kernel with bln support? yes i know i can use custom kernel, but would prefer stock one
[Galaxy S II General] Kev23:
Dirty flash over 14.07 build and didn't initially work, wiped cache and dalvik now works like a charm, 5 locks straight away and 8-9 after 20 seconds or so.

Well done and thank you
[Galaxy S II General] Daddypaul:
http://xdaforums.com/attachment.php?attachmentid=2114742&d=1373778580
[Galaxy S II General] Spyr0s:
Everybody has GPS issues, it's just that most people haven't realised it yet. If you start moving around you will find that weather location reported by widgets liek Beautiful Widgets is wrong.
[Galaxy S II General] chrhei:
Thank you very very much. Works like a charm. I will keep your build till it's fixed in CM.
[Galaxy S II General] Qaweck:
GPS patch

I've made some java disasm to see what parameter samsung use:

native_agps_set_ref_location_cellid(m, i, j, localGsmCellLocation.getLac(), localGsmCellLocation.getPsc(), localGsmCellLocation.getCid());

http://developer.android.com/reference/android/telephony/gsm/GsmCellLocation.html#getPsc()

So dummy is Psc, the patch is not complete

Edit: new patch

View attachment services.patch

View attachment sgs2.patch
[Galaxy S II General] ghepeu:
Thanks. I wrote almost the same patches but I don't think you can apply them like this because the frameworks/base files are shared with devices that don't have the psc field in the struct, so I added a couple of ifdef. I'm compiling now.
[Galaxy S II General] Qaweck:
Yes it is just for a try.

The java code shall be OK since Psc() require api 9

So a #ifdef SAMGPS in the cpp file for the struct assignment shall be ok

And #define SAMGPS in sgs2 gps.h
[Galaxy S II General] sarxes:
My GPS need 5+ minutes to lock even its 3G data connection is turned on.. Any help ?

I live in Ireland and the System is CyanogenMod CM 10.1
[Galaxy S II General] :
Great news everyone!

I'm not gonna post it here so that we avoid the surge of useless posts:rolleyes:

Just check bbqlog:):thumbup:
[Galaxy S II General] CRXed:
If your research prompted Codeworkx to post this magic: http://review.cyanogenmod.org/#/c/45553

then big thanks to you sir!! :good:
[Galaxy S II General] ghepeu:
Ok, uploaded the patches needed to pass the Psc value to the GPS driver. They seems to work here, or at least I see Psc = -1, which makes some sense.

http://review.cyanogenmod.org/#/c/45564/

http://review.cyanogenmod.org/#/c/45565/

[MENTION=4824020]Qaweck[/MENTION] I forgot to credit you in the commit messages, if you want I can try to upload another patchset
[Galaxy S II General] CRXed:
You can just use the Edit Commit Message button and it will create another patchset automatically.
[Galaxy S II General] ghepeu:
Ooh, nice. Took me a while to find the button _after_ I knew it was there. Thank you.
[Galaxy S II General] Qaweck:
Indeed, you finally add my name but the spelling is incorrect :)

I've watch out your patch and it is ok for me.
[Galaxy S II General] ghepeu:
This was definitely embarrassing :/.

Everything should be ok now. At least I hope so.
[Galaxy S II General] :
Much needed OT:

Ghepeu and qaweck, you guys rock:thumbup::cool:

Well deserved thanks from me:p:D
[Galaxy S II General] codeworkx:
ifdef the original gps.h at hardware/libhardware for reference.
[Galaxy S II General] ghepeu:
Do you mean adding something like

#define AGPS_USE_PSC false

?
[Galaxy S II General] codeworkx:
no. just add the psc int and ifdef it using the same flag you've used at framework.
[Galaxy S II General] ghepeu:
Like this?

http://review.cyanogenmod.org/45566
[Galaxy S II General] codeworkx:
right
[Galaxy S II General] brgroover:
codeworkx teaching other users how to proceed = good thing

more devs = division of efforts = long life phone

however it can be sad if team hacksamsung deband
[Galaxy S II General] Qaweck:
Why not going a little further and merge also the other gps.h field patch to libhardware since it is also common with i9300 ?

diff --git a/include/hardware/gps.h b/include/hardware/gps.h
index 69bfd50..53d2172 100644
--- a/include/hardware/gps.h
+++ b/include/hardware/gps.h
@@ -270,6 +270,15 @@ typedef struct {
float elevation;
/** Azimuth of SV in degrees. */
float azimuth;
+#ifdef SAMSUNG_EXTENDED_GPSSVINFO
+ /** Unknown field in Samsung I9100 libgps
+ May be an indicator for constellation type
+ (GPS, GLONASS, Galileo)?
+ Used on GT-I9100, likely also present on GT-N7000,
+ SGH-I717, SGH-I727 but this needs confirmation.
+ */
+ int unknown_samsung_field;
+#endif
} GpsSvInfo;

/** Represents SV status. */
@@ -307,6 +316,9 @@ typedef struct {
uint16_t mcc;
uint16_t mnc;
uint16_t lac;
+#ifdef AGPS_USE_PSC
+ uint16_t psc;
+#endif
uint32_t cid;
} AGpsRefLocationCellID;
[Galaxy S II General] jpeg725:
Ain't the first time. Here is the advice he gave me on how to modify a patch on gerrit after abandoning it locally (repo abandon patchbranch). I was trying and failing to juggle two patchsets for the same part of the android source. The example below concerns a patch to the kernel. Here it is in case someone needs it.
[Galaxy S II General] stone_ship:
cody is the best!
[Galaxy S II General] agentsmith988:
Quick question: does anyone else lose quick controls in the browser (in landscape mode) after plugging in to charge? After each fresh flash, I have quick controls in both landscape and portrait modes. But as soon as I plug in my phone I lose them in landscape.

Just wanted to see if I was the only one or not. Danke!
[Galaxy S II General] deepongi:
GPS TEST BUILD ONLINE (another one)

cm-10.1-20130715-GPSTEST-i9100.zip

cm-10.1-20130715-GPSTEST-i9100.zip.md5sum

http://review.cyanogenmod.org/#/c/45566/

http://review.cyanogenmod.org/#/c/45564/

http://review.cyanogenmod.org/#/c/45565/

thanks @ghepeu & @Qaweck

(commits haven't been merged, they are up for us to test it)

working great for me. only changed gps.conf to europe instead of north-america. cold satellite lock in 16 secs.. :) see screens in attachment.

regards.

PS: very cloudy today in Portugal..
[Galaxy S II General] tryptophane:
[MENTION=5247306]ghepeu[/MENTION]: Guy, you deserve much respect from all of of us for all the extraordinary work you did in the last time, fixing the most annoying bugs on our devices. Every single post of you is gold, and I would hit the same thanks button 100 times if I could. Thank you for all the time you invest, I know it's much. Also thanks to [MENTION=4824020]Qaweck[/MENTION] for your contribution to the GPS bugfix!
[Galaxy S II General] lerkin:
I agree with every your word.
[Galaxy S II General] dox81:
Gps is broken for good in latest nightly. It doesn't even show the gps indicator in status bar when I turn it on from settings.
[Galaxy S II General] chrhei:
Dowload the test build from infected_ and it will work. The new code/fix is not merged into CM yet.
[Galaxy S II General] dox81:
Will wait for the official nightly from CM. For me it is the most stable from all roms compiled with linaro/sabermod...and the best battery life also.
[Galaxy S II General] szymko1995:
It works. Keep working Infected and company.

Wysłane z mojego GT-I9100
[Galaxy S II General] edwardgonen:
I know it is not related here but just a question - is there a chance the GPS code fix done here also applicable to CM10.1 for I9000 (Galaxy s1). Is that code shared between devices? The reason I'm asking is that i have both devices in family and S1 GPS behaves the same as S2 before the fix.
[Galaxy S II General] dulcificum:
Rather big issue with nightly 23/06/2013 - was using the camera to record a 1080p video but the phone crashed.

After a soft reset I couldn't turn it on any more! It froze on the CyanogenMod screen. I went into recovery and deleted the cache. This time it booted and went into Android. Updated Android apps. Started to update Android and got stuck on this screen for 30mins+ even though the animation was working. So I had to do a factory reset and lost all my data :(

1. Has this bug been reported and how can I avoid it in the future?

2. I used backup and restore but I can't see any way to restore my settings/homescreens/apps from my Google account. Is this possible?
[Galaxy S II General] snalfio:
there's a new stock firmware (4.1.2) for our phone on http://www.sammobile.com/firmwares/
[Galaxy S II General] alb3rtt:
1. Why is this in the cm thread?

2. Its based on lsw which has been out for a while now.
[Galaxy S II General] Indurus:
Is this just flashable as a nomal CM10.1 nighlty? This should fix the GPS-Fix-Issue?
[Galaxy S II General] tsukeh:
I have recently switched from RootBox to CM 10.1 Nightlies and experienced a little problem when I want to install .apk via file manager.

Unknown sources is enabled and after I have initiated the install of .apk, popup comes, but it wont let me select NEXT/INSTALL option... only CANCEL works.

What might be the reason for such behavior or how to fix it? :confused:
[Galaxy S II General] farisyi1:
Go to setting > security. make sure unknown source cheked
[Galaxy S II General] 99x:
Sometimes you have to scroll through the listed access permissions in the app install, before it shows the install button
[Galaxy S II General] tsukeh:
You gotta be blind.. :eek:

I just wrote that "Unknown sources is enabled.."

---------- Post added at 04:10 PM ---------- Previous post was at 04:06 PM ----------

Yep, the text of the button changes from NEXT to INSTALL when I scroll permission list down, but the button still doesn't work.
[Galaxy S II General] SimboXXX:
No bug, just bad luck. Your build is over 3 weeks old anyway. You should be able to restore all your apps from Play, but not your data. Always best to keep a recent nandroid.
[Galaxy S II General] dulcificum:
Thanks but what's the point of the "backup and restore" feature then?

And I've had several freezes with the camera before but nothing as bad as this before...
[Galaxy S II General] deepongi:
yes, flash has a normal CM nightly, same procedure. and yes. it fixes the GPS issues.. :)

regards.
[Galaxy S II General] Indurus:
Thank you, I'll try that!

The whole thing is based on CM10.1 Nightly 07-15-2013, is that correct? So it is in fact the Nightly from July 15th, but your solution of the GPS Issue included?
[Galaxy S II General] doctor_droid:
disable apps like night mode or screen filter... they hinder clicks on install button..retry and let me knw :)
[Galaxy S II General] lerkin:
Send links to commits to pawitp, he will decide.
[Galaxy S II General] deepongi:
correct :)
[Galaxy S II General] tsukeh:
I uninstalled velis auto brightness and now the install button works again, thanks! :)
[Galaxy S II General] St4n_fr:
Dont work for me, should I do a full wipe of my device?

No GPS lock even after some minutes
[Galaxy S II General] deepongi:
try gps test+ and clear agps data. try to get a fix again. i did a wipe/clean install to test it properly and its working great... so, thats up to you.. :)

regards.
[Galaxy S II General] Michael B.N.:
The same here. My GPS worked before and I haven't had any big troubles. But I get a lock much quicker now with the latest update and without any patches or anything else. So right now it's just perfect.
[Galaxy S II General] tsukeh:
And I just found out that VAB has "Excluded apps" feature:

http://velisthoughts.blogspot.fi/2012/10/velis-auto-brightness-manual.html

Excluded apps
Use this setting to select apps that will disable Velis Auto Brightness when on top. Android APK installer is one of such apps which fails to work properly if there's a screen filter active on your phone. Disabling auto brightness when such apps are running ensures their proper operation.

Strangely, this problem didn't exist when I was using a RootBox... :confused:
[Galaxy S II General] St4n_fr:
After a full wipe I got a fix after a few seconds, gret job, thanks !
[Galaxy S II General] doctor_droid:
i knw strange bt this will be off topic here :) lets stick to cm10.1 ..
[Galaxy S II General] deepongi:
just to give you guys a heads-up...

todays-nightly with the merged commit from @codeworkx: http://review.cyanogenmod.org/#/c/45553/

the GPS is working fine without the patches from @ghepeu & @Qaweck .. so they may not be needed to merged.

tried with 2 GPS apk's and gps.conf to north-america and europe. same result. damn fast satellite fix.. first time takes a bit only.. :) see screens in attachments... no GPS test build used...

regards.

PS: not a single cloud in the sky at the moment ... :)
[Galaxy S II General] CRXed:
But I will still use your GPS-test version, because it gave me a hot 26 sec lock on 5 sattelites...

inside

:cool:
[Galaxy S II General] Maniac9331:
I found a strange thing/process named AndroidCoreApps witch is running in google services and eats 55 mb of ram.. What can i do about it and what is it?? On earlyer builds google services was ok eatin around 25 mb but now 55 ... I am on 20130715 build. Thanks
[Galaxy S II General] dsjoes:
I have flashed the latest version of cm10.1 but i cannot mount my sd card i have tried reformatting through recovery and even on pc but it still wont mount it shows up in storage but unmounted.

How do i fix this?

thanks
[Galaxy S II General] ghepeu:
Because there are two issues:

1) the real bug, found by Darius Schmidt: Samsung uses an extra field in the struct where the mobile cell data used for coarse positioning is saved, and this can disrupt the AGPS system used to improve time-to-first-fix (not always, and this explains why some people never noticed the problem) because the cellid value was read from the wrong memory address. This is fixed in the current nightly, adding a foo unused field to pad the struct and ensure that the read values are always valid. By the way, I think AGPS isn't used when "wi-fi and mobile network position" is disabled, and that would explains why that workaround could help, with no AGPS the device fell back to standard GPS, which can be slow but should always work

2) Qaweck identified the meaning of the extra field (it's another UMTS cell parameter), the patches not merged ensure that the value is always set correctly (where correctly means "like Samsung does") and passed on. This isn't strictly necessary, but if Samsung wanted that field included I think it's better to have it
[Galaxy S II General] nedved07:
there is an issuse .

if the bettery drawn the rom fails to reboot after charging

and the screen says HARDWARE REST

the Solution is the charge the battery and go to recovery and install the rom again ..

,,

sorry for my bad english
[Galaxy S II General] :
GPS is working like a charm. Getting a fix in a matter of seconds.

Time to give away my TomTom:p
[Galaxy S II General] Kouett:
GPS fixed, good.

Next problem is the high number of nlp(collector)wakelock causing battery drain, which seems to be related to Google PlayStore app (a 4.1.10 version is supposed to fix that, I had to google it).

Well, it may not be stamped "stable", but it's pretty usable :)
[Galaxy S II General] defybest:
I agree with this.
[Galaxy S II General] Indurus:
My GPS is still not working properly...I am on teh most recent nightly with the GPS-Test from infected_...Getting the fix is not the problem, in google maps my position is showed constantly about 50 metres moved from where I am actually at...Maybe it's a google maps problem..? Has any of you also noticed such a behaviour?
[Galaxy S II General] pablo0407:
Excellent work!!

Just a little thing..with crt-off disabled, when you press the power button to turn on the screen sometimes makes that you can see homescreen before lockscreen.

Maybe it could be cause when the screen gets off with crt-off disabled it turns off inmediatly without any animation..

Slimrom or carbonrom (as an example) has a little fade out animation when te screen goes off..that could be the solution, i don't know

I hope you could understand what I mean.

Thanks for your hard work!!