yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] Catscratch:
Hey guys.

Since a few days I got a strange problem. GPS fix isn't working anymore.

I already tried another NTP_SERVER but without success. With a GPS test app I'm seeing only about 2 to 4 satellites. Under clear sky. Is this a known problem or did it seems like my GPS sensor is broken?

Thanks for hints.
[Galaxy S II Android Development] heleneh:
Beside the still on going Google Play crash issue, that I can't solve until now. I fear a new flash is necessary. I also have the issue that I can't install additional Apps on my phone with 4GB data partition :eek:.

The Memory information says that 3,.56GB are used and 2.66GB by Apps and 50.29MB Data. So I miss nearly 1GB :confused:

Should I make an Titanium Backup and format data and reinstall the backup? Could there be fragments of already deinstalled apps that blocks the 1 GB?
[Galaxy S II Android Development] laptopu:
My gps was flakey but earlier this week I did a wipe of system, data and cache then installed latest nightly and opengapps mini (I have 1gb system partition using launcheon's repit tool). This fixed several issues but also GPS now fixes within seconds on loads of satellites (also using fastergps app). In the past I have wiped system and data separately which doesn't work, you have to wipe all 3 at same time, also install apps from play store and don't restore from backups. Yes a pain and took me 2 hours to get my phone back as it was but it was well worth it.
[Galaxy S II Android Development] Catscratch:
Ok. That's strange. After about a week it's working again. I didn't wiped anything or do something. I don't know what the problem was. Maybe I'll get it again.
[Galaxy S II Android Development] MARCOSOFT:
MMS

Arnab,

Last rom DU enabled sending and receiving mms when mobile data is disabled, but CyanogenMod 13 Nightly Builds does not have!

Arnab, you can provide a patch to make it enabled?

Thank you
[Galaxy S II Android Development] mony_nana:
which gaps can i use arm or arm64 or x86 or x64
[Galaxy S II Android Development] Skyline:
arm
[Galaxy S II Android Development] slavanar:
Gyz HELP i want to hide superuser icon from notification bar thats appear when opening root apps ... its very annoying me ?
[Galaxy S II Android Development] federico72:
On CM12 there was a module for xposed to do that. Didn't test it on CM13.

Another way to archive that is to install SuperSU and disable the internal root option.
[Galaxy S II Android Development] chrisXL:
[MENTION=5386800]slavanar[/MENTION], the working xposed module for CM13 is "All My". Search for "disable SU indicator" in module settings.
[Galaxy S II Android Development] slavanar:
Gr8 work thx bro for helping
[Galaxy S II Android Development] SAMDestroy:
just want to share my experience

updated from pretty old nightly 2016-03-11 to 2016-07-08 and flashed gapps nano 2016-07-08 both via dirty flash.

no problem so far and all works as expected.. no wakelock. i didnt changed anything for the BLN stuff. BLN is off by default.
[Galaxy S II Android Development] fluorine:
Hey!

I have a problem as of now. Today, before my battery depleted (~10%), I put it in airplane mode, to save battery and then later manually shut down my phone (at around 2%). Since it was hot, I took out the battery, so it could cool off. When I got home and started up the phone again, almost all of my accounts were deleted: All E-Mails Accounts, Google, Skype, SoundCloud and Twitter. This happened with CM12.1 too, when restarting the phone. But this time the Google Accounts are affected too.

Is there something I could do to prevent this from happening again? This error just occurred, after using CM13 for approx. 1 month. Before today, this did not happen even once (with cm13).

I am currently on cm13.0-20160620-NIGHTLY-i9100.
[Galaxy S II Android Development] slavanar:
How to set Sdcard0 default storage for apps cz there is no enough space in internal ? I want to install all apps on sdcard plz HELP
[Galaxy S II Android Development] laptopu:
Repartition and increase the data partition, I use 1gb system, 4gb data and the rest storage. You can set custom amounts if you want but I recommend no less than 1gb system and leave cache alone, probably best to have no more than 8gb data and that's a whole lot of apps. Search for launcheon repit tool on Google, it's not linked here because there were some disputes over ownership I think. It's very easy to use and doesn't wipe existing data.
[Galaxy S II Android Development] slavanar:
Are you sure about the name ? Launcheon repit tool ?

I found nothing bro
[Galaxy S II Android Development] GreekDragon:
Lanchon
[Galaxy S II Android Development] slavanar:
Should i flash the rom again after flash pit zip ?
[Galaxy S II Android Development] GreekDragon:
Flashing pit zip will wipe the partitions i believe, i believe yes.
[Galaxy S II Android Development] Andrea900:
Should you read the OP-s? Absolutely.
[Galaxy S II Android Development] slavanar:
What OP man am noop here ?
[Galaxy S II Android Development] fluorine:
Lanchon Repit Tool, first hit on google search.

Here's the link. Scroll down for the description and have fun :)

https://github.com/Lanchon/REPIT

regarding "OP": http://urbandictionary.com/define.php?term=op
[Galaxy S II Android Development] slavanar:
Now i understand ... Thats mean im developer from now :D

Thank you and im really sorry for being annoying .
[Galaxy S II Android Development] Andrea900:
There is a first time for all. :)
[Galaxy S II Android Development] laptopu:
Sorry for misspelling lanchon whoops, also after using his repit you shouldn't need to reflash so long as you're not reducing partition sizes smaller than existing data already on them as his took preserves data. I know there was a dispute about him but I have found his tool one of the most essential tools for our phone.
[Galaxy S II Android Development] slavanar:
Yea thank you man and thanks for all

Now everything is alright and am downloading the last cm13 update .
[Galaxy S II Android Development] jojobg:
http://xdaforums.com/showpost.php?p=67581500&postcount=5251

Basically it's two options for you.

Use full internal mode on SD card which means loosing access to it via USB from PC.

Or go advanced Mixed mode for the SD card and have only part of it as internal for MM.

Whichever way you go after that go to the Internal SD card and settings/move apps here.

Or by application storage settings when you browse them from internal storage.

Re-pitting phone gives only this much size :) I even went 6 Gb pit but still..
[Galaxy S II Android Development] slavanar:
actually i did repit my phone for sys1g data4g using odin , now every thing is good for me ... Thx bro :o
[Galaxy S II Android Development] jojobg:
:) You will come to this post in a month or two ...
[Galaxy S II Android Development] slavanar:
There is no problem to say Hi to the good people like you i will come to this post every day :P big thx bro and for all thy helping noops :D
[Galaxy S II Android Development] jojobg:
Ofcourse don't get me wrong. I meant this is the usual time needed to fill up either 4 or 6 GB of /data on a repited phone. A couple of apps and games and you are there ;)
[Galaxy S II Android Development] heleneh:
1. As I recently read about the Lanchon Repit I will try to expand my dat partition and shrink my system as I need less than 1GB. I'm not sure if I understand the How to correctly.

I have TWRP 2.8.7.0 already installed on my phone and downloaded the lanchon-repit-20160415-system=1.0-data=same-sdcard=max-preload=min+wipe-i9100 .zip and renamed it to:

lanchon-repit-20160415-system=1-data=6-sdcard=max-preload=min+wipe-i9100.zip

Now I just have to update this zip in TWRP? That will expand my data to 6G and System set to 1G without any data loss? For sure I make a backup with Titanium BU.

2. I still have the Google Play services stopping. Especially when Apps use the network capacity. I already deletet the cache via Apps, deleted Dalvil and cache via TWRP. No success.What esle could be done? Just install Gapps again? Or do I have to wipe the system and install CM13 and Gapps again?

Thanks for being so kind to help a beginner.
[Galaxy S II Android Development] p3dboard:
Not sure if this applies to everyone with battery drain issues, but on Stock Cyanogenmod 13 Rom (no custom kernel), if I have mobile Data Disabled and just use Wifi (wifi is set to always be on during deep sleep), then my battery drain is quite normal, no excessive wakelocks (both my phone and my wifes). I have Auto Sync turned on so Apps are able to Sync their data when on Wifi. I have location Services turned off in settings, and I have location history turned off as well.

However if I turn Mobile Data on (I have Auto Sync still turned on and Wifi is still on), then after a brief period of time a gps-lock wakelock (seen under Kernel Wakelocks in Wakelock detector) occurs and the device no longer enters deep sleep. If I turn mobile data off, the gps-lock continues until I turn the Location Services on and Off once, after that the wakelock terminates, and with Mobile Data set to off, the wakelock doesn't reoccur and our phones battery drain returns to normal.

Now I have tried rolling back to cm12.1, tried DU rom, and I find that I get the same issue on all Rom's, so its not just CM 13 for me (I've tried a complete wipe on CM13, but after I restore all my Apps and start testing the same issue reoccurs).

I believe the issue started mid to late June 2016, before that I hadn't seen this issue (it may have been there but I wasn't experiencing a huge battery drain so I hadn't really looked at Wakelock detector in a long time). I believe its something to do with Google Play Services triggering the wakelock, as I haven't been able to track down any specific application requesting GPS access. The Cyangoenmod Clock widget is configured to use Custom location rather then GPS location so I assume its not trying to update its location and not the source of the GPS-Lock.

I see there's a July 7th 2016 Play Services update, (my phone is still on the 13th of June 2016 build - 9.2.56), so I am hoping that the July 7th build when it pushes out might help fix this (but I don't know what changes they have made in the July play services).

So I have a work around for the drain, and as mentioned by some others I could install Xposed and the Amplify module to try knock off the wakelocks.

Just giving a bit of feedback, trying to find a repeatable pattern to the wakelock issue.
[Galaxy S II Android Development] laptopu:
[MENTION=6892485]heleneh[/MENTION] point 1 you got it, that's exactly what you do.

Point 2 I would download latest nightly, latest opengapps, wipe data, system and cache then flash nightly then flash opengapps.I would say with 99% certainty this will fix the problems you're having. Make sure you have twrp with isorec already on before you do this, which I'm guessing you have.
[Galaxy S II Android Development] iTiamo:
Hello,

I want to install a custom recovery on my Samsung Galaxy S2, but I do not have USB access to it. I can only use my USB port to charge the phone, a broken port is the likely cause. Is there anyway to install a custom recovery from the device itself or over wifi or similar?

Thanks.
[Galaxy S II Android Development] laptopu:
If you're on stock ROM no way. If you're on a custom ROM already and want to change possibly yes.
[Galaxy S II Android Development] iTiamo:
Hi, thanks for your answer.

As I understand it there is no way for me to install a custom ROM when I haven't a custom recovery, is this correct? Does that mean I am stuck on stock?

Thanks.
[Galaxy S II Android Development] ajislav:
Yes, you are correct, unless you can get root... With root you could install a custom kernel With a custom recovery..
[Galaxy S II Android Development] :
What you could do is download and flash philz kernel. Make sure it is the correct kernel for your rom(in .zip format), once you flash this you are rooted.

After that you will need to read up on kitkat compatible recoveries, isorec and custom roms etc
[Galaxy S II Android Development] iTiamo:
As far as I understand, getting root is impossible too without a USB connection. I guess I'm pretty much out of luck. I'll be ordering a Xiaomi soon then.

Thanks for your time.

---------- Post added at 09:18 PM ---------- Previous post was at 08:57 PM ----------

I'll try this when the link works, the mega.nz link is stuck on decoding map for me.

Thank you very, very much.

---------- Post added at 09:30 PM ---------- Previous post was at 09:18 PM ----------

Thanks for your thought. Unfortunately, I can not install this kernel. When I boot into recovery mode to install it I get an error.

"E:Error in /tmp/sideload/package.zip (Status 7)"

EDIT: I just installed it correctly. I had to grab the stock version. Will report back.
[Galaxy S II Android Development] :
Try moving the .zip file to the internal storage(sdcard0)

Flash by using "update" option or something similar
[Galaxy S II Android Development] iTiamo:
I can't thank you enough. I grabbed the wrong version of the kernel at first, I had to grab the stock version.

All I did was, grab stock version, move it to sdcard, boot into recovery, install it, reboot into recovery, install CM.

My S2 is officially running CM 13 now!
[Galaxy S II Android Development] p3dboard:
Did a bit more googling and found that its a common issue with Google Play Services version 9.2.56 (https://productforums.google.com/forum/#!topic/play/zdz-98balwI) - Looking through the replies this is the fix / workaround for the moment.
[Galaxy S II Android Development] daniu:
Hi

Since nobody wrote it so far I'll do it: I recommend to get a new usb connector and repair the phone - it is easy (probably much easier than you think) and saves you headache once something happens that would require a real usb connection.

The only problem is that lots of spare parts are doa (dead on arrival) therefore: expect that (was the same with my first delivery) and choose a supplier that does replace the unit without frustration (on your side) rather than the cheapest supplier.

Regards

Sent from my x-phone using brain 2.0
[Galaxy S II Android Development] jojobg:
It seems we are repeating the last days of CM11 when we had the battery drain with FC for Play services.
[Galaxy S II Android Development] Saber:
Next nightly we will see many camera improvements ;)

galaxys2-common: Camera: HAL improvements and fixes:

https://review.cyanogenmod.org/#/c/150140

gsstudios
[Galaxy S II Android Development] laptopu:
I never knew this could be done and was certain it couldn't, I have learnt something congratulations on a good outcome.
[Galaxy S II Android Development] wowee_zowee:
I went from 24/6 to 10/7. No battery drain problems :)

but what's very annoying is the lag on the lock screen, pattern unlock is almost unusabe because of the delay, a pin lock takes seconds for the tap to register. Once the phone is unlocked, there is no lag.
[Galaxy S II Android Development] carlosmedina06:
My mobile signal falls and returns from time to time, I changed some Modem and still does not work. how can I solve that? sorry for my bad english.
[Galaxy S II Android Development] BatyuS:
This is very good news :good::fingers-crossed:
[Galaxy S II Android Development] MARCOSOFT:
MMS - galaxys2-common: Enable sending and receiving Mms when mobile data is disabled

With this fix, more corrections of the camera (think have now been implemented), and the sound fixes, particularly with compatibility to 100% of Spirit2 (FM radio), I confirm already implemented, I think we can talk about a stable version snapshot.

Many thanks to the entire community and especially Arnab.
[Galaxy S II Android Development] Andrea900:
In my device the battery drain still persists, even with this workaround (yes, it came back after few days)....

---------- Post added at 12:54 AM ---------- Previous post was at 12:52 AM ----------

Maybe, after the 500mhz locked frequency bug, after using the camera.
[Galaxy S II Android Development] p3dboard:
Just tried using my gps today, and i can't get a gps-lock at all, so the Gps-lock wakelock and lack of Gps are probably related to the battery drain in my case. If i can figure out why it can't achieve a gps lock, possibly a permissions issue or a blob / driver issue, it might also solve the Google Play Services wakelock issue.

Battery Drain fix - Might work for everyone who has the issue - Need to find the right RIL/Modem

Edit: So at a guess, I thought it might be my i9100 radio. In the past I have used XXMS2 when I flashed a Europe based i9100 rom (at the point when I got Android 4.1.2), but about 6 months ago I had flashed the BVLP7 radio, as I had read that it was the best Radio for the i9100, and the GPS and phone had been working fine. My i9100 was originally an i9100t (Vodafone Australia). Now on the latest Google Play Services 9.2.56, update, my phone simply could not get a GPS lock. The GPS Test app in the play store could not see any satellites.

I also read that a few people had upgraded from Android 4.0.4 to Android 4.1.2 samsung stock and their issues had been fixed (which would have updated their Modem as well).

So I grabbed an i9100t radio, DVKF2 (flashable modem's - http://garmentstorage.net/forum_xda-developers/showthread.php?t=1131950), which is recommended by some for the i9100t on Telstra and Vodafone networks in Australia. After flashing the modem I can now get a GPS lock again in Google Maps and the GPS Test app and I am no longer getting the GPS-Lock wakelock.

So I think the Google Play Services battery drain issue is tied to which RIL/Modem you are using, which makes sense as to why some are getting the issue and others are not.
[Galaxy S II Android Development] C.Z.O:
How to off call broadcast
[Galaxy S II Android Development] p3dboard:
Download App Disabler (https://play.google.com/store/apps/details?id=com.nebkat.appdisabler) and disable the "Mobile Broadcasts" (com.android.cellbroadcastreceiver) app.

The issue was introduced a few nightly builds ago (around 1st of July from memory). It enables Emergency Cell Broadcasts for the US Region, some sort of Cell Broadcast testing, but for others in different countries like myself in Australia, it now causes the Cell Phone tower broadcasts (which give you the location of the tower) to pop up every few minutes.
[Galaxy S II Android Development] BlindEyes:
[MENTION=5811506]gsstudios[/MENTION] what to choose sir linaro or uber?
[Galaxy S II Android Development] Saber:
Linaro.

Please keep all kernel talk on kernel thread, not ROM threads. ;)

gsstudios
[Galaxy S II Android Development] BlindEyes:
Thanks sir and sorry for posting it here
[Galaxy S II Android Development] SAMDestroy:
dirty flash from 2016-07-08 to 2016-07-11:

outgoing call was not working (got canceled every time) but wiping cache and dalvik solved it so far.
[Galaxy S II Android Development] Morbidx13:
been using this for a few days, on the latest version.

opening apps is really laggy and makes the phone a pain to use.

did a completely fresh install, repartition etc. so not sure what the cause is. any idea's or this a general problem?

other than that i have no issues with anything.
[Galaxy S II Android Development] Andrea900:
I can get a gps fix on my S II really fast, but with the same modem.bin and the same battery drain issue.

What can i do? :silly:
[Galaxy S II Android Development] Droidriven:
Yes, my D710 uses emulated storage, anyway, you explained nothing about why there is a difference, you basically only said its that way just because it is, an explanation means more than just saying this is like that and that is like this. Details about what, when, where, why and how would be an explanation.

Correct, I didn't understand because I've not had the issue on my S2, which is what looking for an explanation was all about from the beginning.

Anyway, its been fun reading your non explanation, thanks.
[Galaxy S II Android Development] Lanchon:
well how else can i repeat myself?

"if you use non-emu TWRP on emu device or vice versa, there will be problems" because you are using stuff in the wrong way. problems should happen, and as you can see reported, they DO happen. only a recovery built for /data/media will spare /data/media on a data wipe. it would be a BUG to spare anything in /data on a non-emu device. wipes on no-emu devices format the whole /data partition, while wipes on emu devices selectively rm -rf the files. the behavior described is not a bug, it is exactly what should happen if you use non-emu twrp on emu device. you think otherwise? you think misconfigured twrp build will magically work fine? good for you. but you are wrong. "Seems to me someone isn't doing something right when creating the ROMs and recoveries for this model." nope, everything is done right. wrong is the user who uses incorrect twrp build for their phone setup.

and btw, i still suspect you might not be using emulated storage, you are probably just using internal storage.
[Galaxy S II Android Development] Droidriven:
If you mean the emulated partition that you will find files in that aren't in normal sdcard partition then yes I have emulated.

I'll just research this for myself because what I'm wanting to know is a bit more in depth than what you're telling me.

I'm looking for the differences in their makeup, how they are put together and why, not the differences in their uses and applications.

I prefer to have an understanding of any and every device I can, even the ones I don't personally own because I put a lot of time into helping others troubleshoot issues and being able to answer their questions.
[Galaxy S II Android Development] Lanchon:
emulated storage is a FUSE filesystem implementation that is part of android, that emulates FAT behavior (no access rights, filename case insensitivity) over a native linux filesystem. it is a very specific concept and refers to code introduced in android 4.0. it is also informally called "/data/media" and is well documented, you can google. and i don't think you are using it.
[Galaxy S II Android Development] TeutonJon78:
Crap, that's right. It really is a sticky situation.

I still find it a little odd that CM maintains such a tight grip over every device like that though, when it's a community driven project, and the device maintainer is on board with it.
[Galaxy S II Android Development] Dr AM:
Today I had my friends LG G3 and I found that it uses emulated sdcard since Android 5

It looks now a reasonable solution to me :)

Sent from GT-I9100 - 6.0.1
[Galaxy S II Android Development] Naudiz:
I own a Nexus 7 2013 and it used emulated sdcard since the 4.4 that came bundled with it. It's not a marshmallow thing.

I think most devices that were released with 4.4+ (maybe even earlier, idk) use emulated storage nowadays.
[Galaxy S II Android Development] doorknob314:
Just installed on my S2 and here are my impressions:

(mostly the same as previously mentioned, but now I feel as I have done at least something for the community :) )

- Seems much smoother then CM12.1, almost no lags

- Bluetooth works better then cm12.1: My phone was reacting slow when I interacted via display in my car, now it is much faster

- Data works better then cm12.1: When enabling data it was slow and required heavy cpu usage, this is now much faster.

- Storage works as expected: The data and internal storage are on the same partition, and I get the old storage as an SD-card, which doesn't really work well. Some apps can't open files on this partition (gallery can't, but ES-explorer can). Downloads in chrome are by default still to this partition (weird) and thus difficult to open the downloaded file. But other browsers have their default location to a folder in the data partition, so that works.

- Gapps work

- Camera works

- Haven't tested GPS yet (indoors it doesn't find a fix, which is logical..)

If there are things needed to be tested, let me know!
[Galaxy S II Android Development] Andrea900:
Who has tested the c-apps package? Is it works on CM13?
[Galaxy S II Android Development] Dr AM:
I tested it , it makes dialer fc , as I read it still not optimized to CM13 yet

Sent from my GT-I9100
[Galaxy S II Android Development] blackb00m:
Using this build as a daily driver, and doesn't have any problems.

GPS works well