yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] rINanDO:
See my commits here:

https://github.com/rINanDO/android_...mmit/67cb506dfd5a2d57f816384af4849e1a15eba203

https://github.com/rINanDO/android_...mmit/ead4023de5b4f972cec39cdfabe9b7df3bcb267f
[Galaxy S II Android Development] Vcsheel:
Is there any major/minor issues (bugs) in current CM13 Nightly. I am currently on an older 0316 nightly. Should I update to the latest nightly?
[Galaxy S II Android Development] flamadiddle:
[MENTION=4141005]Lanchon[/MENTION] [MENTION=6159291]Lysergic Acid[/MENTION] [MENTION=414800]arnab[/MENTION] I apologize for pestering you, but I'd really appreciate a quick answer from one of you that I know you all know:

What's the worst that can happen if I flash this ROM on my D710 with TWRP 3.0.2-1 (isorec and crossflash-patched)? Could I lose my ability to boot to recovery?

I just need to know that one thing. If I won't lose recovery, I'm going to give this a try. I'm already running CM11 20160612 just fine.
[Galaxy S II Android Development] Lanchon:
the d710 is a CDMA phone while the rest of the family is GSM. best that can happen is, you will loose all radio. worst, it runs away with your girlfriend to paris paying for everything with your visa
[Galaxy S II Android Development] flamadiddle:
I'm fine with losing my radio since I don't intend to use it as a phone. Could I lose recovery?
[Galaxy S II Android Development] Lanchon:
i imagine the kernel might not boot, and if so recovery wouldnt work either.

but you should be able enter download mode (key combo, test it before!) and flash a kernel with heimdall or odin.
[Galaxy S II Android Development] flamadiddle:
That's the answer I was looking for! Thanks. I'll search for how to backup my current kernel or find downloadable ODIN/Heimdall kernels.
[Galaxy S II Android Development] Lanchon:
dont bakcup the kernel (unless you backup the whole phone). the kernel is part of the rom, so if you flash your current rom back you'll also be restoring your kernel.
[Galaxy S II Android Development] nospamboz:
20160628 hangs TWRP?

I tried to install the 20160628 build, but it caused TWRP to become unresponsive after the install took too long without a progress indicator. TWRP 3.0.2-1. Had to hold the power key to power off, then Up-Home-Power brought back TWRP so I could install working 20160613.
[Galaxy S II Android Development] kosmasgr:
Excellent ram management on latest build.

Many apps ( messenger , Viber , outlook , Dropbox etc ) running at background but I have about 280-300mb free RAM , without using greenify ;)
[Galaxy S II Android Development] jt12345:
Enable Static Navigation

I've attached a couple of files that you can use to enable/disable "Static Navigation".

Firstly, you'll find a replacement gps library that I've "binary edited" to enable SN. I tried to attach the .so file to this post but it kept failing (it's presumably an xda security measure) so I've had to zip it to be able to upload it - just unzip it to find the gps.exysno4.so gps library inside. You can just drop this over the existing library (/system/lib/hw/gps.exynos4.so), reboot and it'll be enabled (don't forget to make sure that the permissions on the file are the same as all the others in that directory). It might be a good idea to backup the original (unmodified) library first, but if you get stuck, it's easy enough to "unzip" it out of any of the nightly roms. Read to the end of this post if you want to know how to modify the original library yourself (it's not difficult).

I've also attached a twrp-flashable "update" zip-file called SNToggle.zip that will modify the gps library to toggle SN (if it's disabled, it will enable it - if it's enabled, it will disable it). If you prefer to use this method, download the zip file, reboot into recovery, choose "Install", then select SNToggle.zip. Watch the output/log of the updater as it will give you feedback about what it's found and what it's doing. It will ONLY modify the library if it has the correct sha1sum so it should be safe to use (please note that I'm new to edify-scripting so all constructive criticism will be gratefully received).

I got the idea for this [MENTION=3371882]tsukeh[/MENTION]'s recovery-flashable update zip (http://xdaforums.com/showpost.php?p=44270194&postcount=107)

The md5sums for gps.exynos4.so are:

3174e6c72ec3c01b4865dea1b9091818 original (SN disabled)
0d96b0165bc61ebbf59f270c3a8b6935 modded (SN enabled)

and the sha1sums for the same file (gps.exynos4.so) are:

d6739636d6294769bf9c6fd4a48dfc3c29b963bf original (SN disabled)
984c77ca4dab75c10150f1ec02b506eb373eab1d modded (SN enabled)

I'm still playing around trying to improve the gps "reception" but I'll need another couple of days to get some data, so "watch this space"!!

:)

Postscript: In case anyone is interested, here's how you make the modifications yourself. Start with the last "stock" gps library available: you can find this in I9100XWLSW_I9100XXMS2_I9100XEULS5_HOME.tar.md5 Check that its md5sum is ccbbbbb5023ec7c815807d37aac65ffb. Either using tsukeh's original updater script or by downloading it from http://xdaforums.com/showpost.php?p=34213759&postcount=55 obtain the same library modified to enable SN. Do a binary diff on the 2 files to find that the only difference is 3 bytes that have been changed from 01 to 00 (the positions of those 3 bytes are the numbers on the relevant line of his updater script). Now find the gps library inside this rom (Lysergic Acid's cm13 official) and just use a hex-editor to edit exactly the same three bytes from 01 to 00. You now have a gps library, with SN enabled, that you can use in this rom.
[Galaxy S II Android Development] Enega546:
After installing CM13 the included system apps work fine but when I installed gapps they crash after booting the device. Also when I install the playstore per apk instead of this the installation works but when I open the play store app it crashes. I made a clean install three times but the problem is still there I also did before the first install the repartitioning. I will be very thankful for solutions :)

Edit: Tried to install chrome with the apk and it works. playstore still don't work
[Galaxy S II Android Development] wason92:
What gapps did you install?
[Galaxy S II Android Development] chrisXL:
Maybe insufficient space in system? CM13 + gapps needs bigger system partition than stock.
[Galaxy S II Android Development] Wachicamo:
Is there a workaround for the huge battery drain that everyone is experience right now? The ROM was working fine a few months ago, but now is draining my battery so fast that I have to keep my phone charging.

Clean install with 06272016 + Open Gapps, no backups, and I'm still experience this issue.
[Galaxy S II Android Development] Kurt Krummbein:
It was written several times, don't flash a new ROM, boot and then flash gapps, this way, permissions can't be set correctly.

Did you do it that way? Try flashing ROM and gapps in one turn, you can also format /system before flashing to get clean start.

Gtz

Kurt
[Galaxy S II Android Development] FeruzSharipoff:
Please help.

Hello. How can i delete gapss from instaled CM 13 without factory and system reset. Thank you.
[Galaxy S II Android Development] p3dboard:
What's in your Cpu wakelocks page of wakelock detector? Can you give us a screen shot? Also include the system apps in the wakelock detector settings if you haven't got the option turned on, as otherwise some processes will be hidden that could be causing the wakelock
[Galaxy S II Android Development] Wachicamo:
Oops, I legit forgot to install it in system apps. I'll give a screenshot tomorrow for a full cycle (I've Installed it and my battery went from 40% to 15% right now, lol).

These are the last screenies taken before I installed WLD as system app.

Regards.
[Galaxy S II Android Development] JukkaX:
Hi! CM 13 worx fine in my S II, apart from the text input in messages.. The problem is that the text correction don't wanna learn new words at all (no + to add them anymore), so it corrects the words wrong the same way all the time. Really is a pain in the ass :( Is it only my phone or anybody else have this problem? I've had June 5th and June 26th versions in use so far. Thank u.

Edit: in Lollipop it worked fine.
[Galaxy S II Android Development] TeoLinuX:
I haven't tried yet the ROM, but if the input keyboard is such a problem to you, you could install an alternative keyboard app?

I know it's not a direct answer to your problem...

Did you also try to search in all Google settings if there's some switch for the learning/personal dictionary?
[Galaxy S II Android Development] JukkaX:
Thanx, hadn't thought of that.. :) Installed "GO keyboard", seems work :fingers-crossed: Edit: No, it wasn't good at all, but Swiftkey app worx great!

Yes had'em switches on I think.
[Galaxy S II Android Development] makix13:
Just read your post, I can't say enough thanks for your job and effort.

I'll test it and post about it [emoji122] [emoji122] [emoji122] [emoji106]

S2 Cyanogenmod 6.0.1 [official nightly] - arnab isorec twrp - Xposed [official framework]
[Galaxy S II Android Development] Abdo ALh:
hey

please can someone tell me how to install cm13 and the gapps on my phone, i mean rom my phone, and tell how to flash the rom and gapps , and what gapps should i install and flash.

my phone is S2 I9100
[Galaxy S II Android Development] Acid0057:
The first post in this thread should get you started

http://xdaforums.com/showthread.php?t=3313978
[Galaxy S II Android Development] hewhomustnotbenamed:
Which ROM is better? this one or RR or Markox89? Pls give suggestions.. I don't have the bandwidth to download and try them all
[Galaxy S II Android Development] axi_nitza:
Hello,

Do you know why ps3 controller don't work via cable ?

I tried to connect my ps3 controller to phone and the controller is not recognized (controller leds are off) , the OTG cable works OK, because I tried the ps3 controller to another phone and works.

My phone has cm-13.0-20160624-NIGHTLY.

Thanks
[Galaxy S II Android Development] makix13:
Hi [MENTION=2709988]jt12345[/MENTION],

Tested today, works great, with GPS test,it seems lock fast and with better accuracy, but Google Maps still lost GPS signal each 5 seconds, but it seems recover faster than before, so big thanks for help/listen me and for your time and effort [emoji6] [emoji122] [emoji122]

S2 Cyanogenmod 6.0.1 [official nightly] - arnab isorec twrp - Xposed [official framework]
[Galaxy S II Android Development] jt12345:
Hi [MENTION=1106045]makix13[/MENTION]

Thank you for testing out the modded library - I appreciate it. I'm think I'm in the same situation as you - a really good GPS connection/signal is very important to me. I've compared (i.e diff'ed) all "gps" files between the last stock rom (I9100XWLSW_I9100XXMS2_I9100XEULS5_HOME.tar.md5) and this rom (cm13), and the only files that have changed are:

/system/lib/hw/gps.exynos4.so

and

/system/etc/sirfgps.conf

We've investigated gps.exynos4.so, so we know what's going on with that file (the only change, other than our SN-mod, is a change to a function name which was necessary due to other libraries changing).

That only leaves sirfgps.conf...

If you have a look at sirfgps.conf, you'll see it's just a list of key/value pairs which configure some part of the gps subsystem. Some of the values have been changed in the move from stock 4.1.2 to cm13:

EXTERNAL_LNA was 1, it's now 0

FREQUENCY_AIDING was 0, it's now 1

SENSOR_AIDING was 0, it's now 1

EMC_ENABLE was 0, it's now 1

and there's a new key (i.e. it didn't exist in stock 4.1.2):

ICS_NETWORK_OPERATOR=1

I'm trying to find some documentation for these keys, but I won't be able to do it today (too busy). You might like to change these values back to the "stock" values, reboot, and see whether that helps. (It's worth noting that I'm making the assumption that you didn't/wouldn't/won't get the "GPS signal loss" problems in stock 4.1.2! It would be really nice to get some empirical evidence to support or refute this, but I'm assuming that you really don't want to re-install stock 4.1.2 to test it out...)

Also, what's your value for Settings/Location/Mode? I don't use google's "wifi"-locating service (I use gps only) so mine is "Device only", and I'm wondering whether your signal losses could be something to do with that. Do you get the same losses when you use other location-aware apps? I don't know which "GPS test" app you use, but you might like to install "barbeau's gpstest" (you can type "pname:com.android.gpstest" without the double-quotes into the Play Store's search field to find it).

As before, "watch this space"... :)
[Galaxy S II Android Development] laptopu:
[MENTION=2709988]jt12345[/MENTION] could this gps code be considered for a merge [MENTION=5246166]lysergicacid[/MENTION] if it addresses big gps issues?
[Galaxy S II Android Development] jt12345:
Anyone is welcome to use any of my code as they wish (it's a pleasure, for me, to be able to contribute back to the community that has given me so much). The only problem is that I'm not at all sure that I've fixed anything yet!

:)
[Galaxy S II Android Development] hewhomustnotbenamed:
Will Supersu 2.74 work on this ROM? 2.74 is systemless right?
[Galaxy S II Android Development] stylemessiah:
Used to use Static Nav on KK ROM's so i was glad to see this script

Tested it yesterday, and 12 second lock with 10 satellites, so its working fine for me

fwiw, heres my custom gps.conf, used since KK days. if you decide to use it, you need to set the NTP_SERVER to your own region...

Ive never touched sirfgps.conf, ever...

NTP_SERVER=au.pool.ntp.org
XTRA_SERVER_1=/data/xtra.bin
AGPS=/data/xtra.bin
AGPS=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin

# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info
# 4 - Debug, 5 - Verbose
DEBUG_LEVEL =0

# Intermediate position report, 1=enable, 0=disable
INTERMEDIATE_POS=1

# Accuracy threshold for intermediate positions
# less accurate positions are ignored, 0 for passing all positions
ACCURACY_THRES=0

# Report supl ref location as position, 1=enable, 0=disable
REPORT_POSITION_USE_SUPL_REFLOC=1

# Wiper (wifi positioning), 1=enable, 0=disable
ENABLE_WIPER=1

################################
##### AGPS server settings #####
################################
SUPL_HOST=supl.google.com
SUPL_PORT=7276
SUPL_NO_SECURE_PORT=7276
SUPL_SECURE_PORT=7276

#################################
##### AGPS Carrier settings #####
#################################
CURRENT_CARRIER=common
DEFAULT_AGPS_ENABLE=TRUE
DEFAULT_SSL_ENABLE=FALSE
DEFAULT_USER_PLANE=TRUE
QOS_ACCURACY=50
QOS_TIME_OUT_STANDALONE=60
QOS_TIME_OUT_agps=89
QosHorizontalThreshold=1000
QosVerticalThreshold=500
AssistMethodType=1
AgpsUse=1
AgpsMtConf=0
AgpsMtResponseType=1
AgpsServerType=1
AgpsServerIp=3232235555
QUIPC_ENABLED=1
CAPABILITIES=0x07
[Galaxy S II Android Development] jagular:
Stock Gallery organizes photos in reverse order

Hi Everyone,

Actually this Issue started already in CM12 and I thought its just some new order that the developers decided on so I didnt think that I should post anything about it.

Apperently when you switch the phone's language to Hebrew (maybe it also happens to other right-to-left languages) it affects the cm's stock gallery and shows the photos in reverse order.

If its not clear, The photos supposed to appear new first, and then scroll down to the bottom to the oldest photo.

But what happens is that it starts from the bottom with the oldest and you need to scroll up.

Thanks :)
[Galaxy S II Android Development] Andrea900:
SERIOUS BATTERY DRAIN ?

[MENTION=6159291]Lysergic Acid[/MENTION] after the last few updates of my Nightly, my S2 is totally unable to enter in Deep Sleep mode. Greenify with force doze cannot do anything to solve the issue.

For example... I have left my S2 with 80% of charge in 2:00 am, and after 8 hours or less I've found it DEAD. I had to pull out and insert again the battery to start the charging process.
[Galaxy S II Android Development] makix13:
Well, in my case I never suffer this issue with Maps in JB, but it's true I'll not come back to JB to test [emoji6]

But it's strange, with nokia here I never lost GPS signal.

I modify GPS.conf not sirfgps,will see.

I use ever device only, here it's the GPS test and the configuration in GPS.conf and apn

With this every thing goes great, better than with original CM13, and with your lib even better, except Maps, so perhaps it's something wrong with Maps in our s2/cm13?.

Anyway, many thanks for your work

S2 Cyanogenmod 6.0.1 [official nightly] - arnab isorec twrp - Xposed [official framework]
[Galaxy S II Android Development] daniu:
Afaik supersu only works with selinux set to permissive. This ROM is - as all cm roms (?) set to enforcing. Afaik it will not work because of that but I'd be happy if you'd proof me wrong. Don't forget to post test results here. There was a kernel by skyline that was selinux permissive. For me it didn't work properly and the kernel is (or maybe was already when I tried) pretty outdated now.

Regards

Sent from my x-phone using brain 2.0
[Galaxy S II Android Development] Kurt Krummbein:
So, its time for you to search for the process who's keeping your device awake, WLD, BBS, et al might help you.

Gtz

Kurt
[Galaxy S II Android Development] wason92:
Does anyone have a nightly before 20160626 they could share?. Wifi hasn't worked for me since that and I didn't keep any backups
[Galaxy S II Android Development] Andrea900:
Thanks for your kind reply Kurt.

By the way I've already installed these apps and i cannot find anything useful. Right now I'm flashing a new nightly... I hope that this problem was caused by a bad flashing. :fingers-crossed:
[Galaxy S II Android Development] Wachicamo:
I can bet that this draining battery issue is made by Google Play Services.

I've installed 20160331 since this was my last stable ROM until I've experience this battery drain. After that, I did a clean install with the new nightly, and still, it's drastically draining my battery.

I use Open Gapps, latest version. If someone knows a diff gapps that does the job, or a workaround for this, let us know.

Regards!
[Galaxy S II Android Development] p3dboard:
I have exactly the same issue, device finds it hard to enter deep sleep, both my wifes phone and mine are dying after about 5 hrs. I have seen that gps-lock seems to show under kernel, switching to device only gps and off seems to stop that wakelock, but the device is still failing to enter deep sleep. Also it seems to keep reverting back to high accuracy gps, and doesn't seem to remember that it should be device only. Tried greenify with aggressive doze as well, but it keeps draining... Driving my wife crazy, trying to fix it for both of us
[Galaxy S II Android Development] laptopu:
The battery drain is a common issue fixed by wiping data partition and reinstalling apps.I think it's a serious problem but cannot see what is causing the drain. Think until it affects large numbers of people there won't be a fix, it is a wide issue though.
[Galaxy S II Android Development] Andrea900:
Not in these cases. I believe that Play Services is the problem (it's too widespread).
[Galaxy S II Android Development] laptopu:
I have play services installed, does everyone else having battery issues also have play services?
[Galaxy S II Android Development] daniu:
Hi

Did everybody try to remove the battery for a while. Someone wrote that the phone should be in airplane mode before that ...

I am not using playstore, don't have the issue but am on a rather old rom version. The point is that I need to install the apps through backup as I don't use playstore (or rather: use it once in a while to update apps and backup them for later installation after flashing a new rom without gapps)

Regards

Sent from my x-phone using brain 2.0
[Galaxy S II Android Development] Andrea900:
I've removed the battery to restart the charging process, flashed a new nightly... The problem remains, no deep sleep at all.
[Galaxy S II Android Development] laptopu:
Yes, even tried new battery. It's not a calibration issue.
[Galaxy S II Android Development] LeBourrin:
Do you use the camera?

There is a know bug that if you use the camera, CPU won't go below 500 Mhz. Arnab talks about that some days ago. It's a very deep problem that may be fixed in DU ROM 13.
[Galaxy S II Android Development] Andrea900:
My rear camera is actually broken! xD

I have to do a simple hot air reflow (+ soldering paste) when I'll have the time to do that.
[Galaxy S II Android Development] daniu:
hi,

removing the battery (for a couple of minutes) and probably best set to airplane mode before has nothing to do with battery calibration but rather with the modem hanging. So you need to make sure there is no energy in the system anymore. It does make a different how long you remove the battery. Not sure if that solves your problem but it solved problems for me before ...

regards
[Galaxy S II Android Development] Wachicamo:
Battery drain is not a common issue, I have used a 3 month old ROM until now, I'm 100% sure that everyone who is facing this problem is related to Google Play Services. My phone could survive a day and a half with minimum usage. Now, It's impossible.

Just an update: I have installed the latest nightly right now, and it looks like it's going into deep sleep now, I don't know if Google did an update, but so far, it has 2H42M with 52M Awake.
[Galaxy S II Android Development] SAMDestroy:
im still using nightly 2016 04 12 and all is working pretty fine here.

i follow this thread in a daily basis and from reading about all this problems im scared to update to an actual nightly.

for me it looks like thats every nightly brings more problems/trouble/bugs to our device.. maybe its because thats some changes/fixes/improvements needs a review and maybe adaption for our i9100 device?

anyway for me i cant say if it save to update to the current nightly to use all this new pretty nice features or if i should stay to the stable nightly i already use :-/
[Galaxy S II Android Development] Woniu1818:
Still no deep sleep for me. It must be Google Play Services
[Galaxy S II Android Development] Ham1do:
Not only Google play services coz battery drain.

I had a bad deepsleep , so i flashed bln mode by arnab & from synapse bln inactivated , that reduced battery drain
[Galaxy S II Android Development] wason92:
I use Google play and i enter deep sleep.
[Galaxy S II Android Development] Andrea900:
Here you are the guilty.
[Galaxy S II Android Development] p3dboard:
As a test today as CM 13 has been good up until recently, I have loaded up the latest DU rom and restored all my apps during the setup process, and then restored my SMS, MMS, Call Logs, and re setup email and other apps.

Now it could be as mentioned by some that the complete wipe has fixed it (one post said they did that and still had the issue), or it could be the patches that the DU rom has for the CPU not returning to idle properly from the Camera app, but I am no longer getting the constant wakelocks (and the gps-lock wakelock). I have the latest Google Play Services installed as well, and it seems to be good. In the last hour, my device has been in deep sleep for 40 min, screen on for 15 minutes and awake for 8 minutes of that time according to Wakelock manager.

Anyway, I'll continue with the experiment - it could be a Cyanogenmod Rom setting that Google play services is not interacting well with, as I know a few years back there was something like this to do with an Update Service Handler that had been disabled in CM roms, and Google Play services expected to be running. So far DU seems to be playing nice with my battery.
[Galaxy S II Android Development] hewhomustnotbenamed:
Not having a good day with 30 june build Official CM13 (clean installed with no mods)

Android OS drained all the battery with 2 hrs 45 mins awake??

I wonder how can this be