yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] cybero2912:
is it possible to set to data transfer instead of charge as standard when connecting to PC with USB cable?
[Galaxy S II Android Development] Klaerchen:
Not really. You can set it as default, but it doesn't work more than once.

The second time you connect the cable, it will be again in charge-only mode.
[Galaxy S II Android Development] ran000:
Power consumption problem

Hello,

I am looking for power consumption behaviour with some build versions. I can see, that when system powered on, some hours (~2-3) power consumption looks good enough, but then it start drain battery seriously faster. As result I have only some hours ( ~8 ) live.

I have done observation on device without any activity ( wifi, blutools, networkig is switched off, only waiting an incoming call . Here is a typical screenshot: [IMG="Typical Power Consumption"]https://imagebin.ca/v/3IFrvxTnN3bO[/IMG]

imagebin.ca/v/3IFrvxTnN3bO

Please, any idea about?
[Galaxy S II Android Development] :
I am really stuck now

Nothing works now , even the bootloop is gone , just the Splash screen and the then darkness :confused: :crying: , Can you recommend something ? Odin needs tar based roms , I can't find any :( .
[Galaxy S II Android Development] MigoMujahid:
Odin needs .md5 rom like stock rom that can be found in this site not just .tar files, if your phone boots into download mode, you can try flash the stock rom.
[Galaxy S II Android Development] :
Thread cleaned up.

We don't need trolls in here.

Please stay on topic.

Cheers!
[Galaxy S II Android Development] :
Hey I flashed it , it it still stuck , bootloop, :( but with the stock animation now. Can you give me a link to the stock recovery ? should I try flashing that ?
[Galaxy S II Android Development] toy_story:
Restore the firmware on Samsung GT-I9100 Galaxy S II

Look here
[Galaxy S II Android Development] MigoMujahid:
there is the recovery:

https://www.androidfilehost.com/?fid=95916177934516900

but it won't make the phone boot into stock rom, flash it to proceed in the procedure of changing your rom.
[Galaxy S II Android Development] :
This did not work , however at the end of the procedure I was left at the recovery screen , but wasn't able to flash anything because the signature verification failed on adb.
[Galaxy S II Android Development] Nobby1960:
It seems your phone has the so called "super brick bug". There is no solution to fix it any with software, it's a faulty eMMC on the mainboard :(
[Galaxy S II Android Development] toy_story:
Perhaps you have such a problem!

Perhaps you have such a problem!
[Galaxy S II Android Development] :
Maybe , but this is how it happened ,

I have been using this 7.1.1 since December , last sunday I installed the SuperSu App from play store , rebooted and tried installing it , , failed and here I am . :crying:
[Galaxy S II Android Development] gm0:
Could also just be a faulty USB connection (cable or port). If you can, try connecting it to a different computer with a different cable first and try flashing the current kernel and twrp recovery again. If it fails again at least then you know.

---------- Post added at 11:45 ---------- Previous post was at 11:41 ----------

You mean you've been using Lineage or another 7.1.1 ROM? Supersu used to be incompatible wirh Lineage although it may have been updated in the meantime, not sure.
[Galaxy S II Android Development] Nobby1960:
I had often installed Super SU and it failed in bootloops. Super SU works good with the latest AICP Nougat builds, which have Magisk. Magisk cannot installed on the S2, cause the boot image is out of date.
[Galaxy S II Android Development] :
Lineage since jan , and before that CM ( basically the ones from this thread and the unofficial one)
[Galaxy S II Android Development] gm0:
Well, fingers crossed that you get it working again, and if you do best stick to the official su: https://mirrorbits.lineageos.org/su/addonsu-arm-signed.zip
[Galaxy S II Android Development] laptopu:
When all else fails you need to Google the official stock rom and flash that on Odin. If you can do this then you can get everything fixed, I found when my handset got stuck earlier this year I started to get stressed and stock ROM is the easiest and most reassuring thing you can do at this stage. Let us know how you get on installing stock then let's see if we can get you back up.
[Galaxy S II Android Development] :
I installed the stock rom ,and I was still stuck at the bootloop . and was unable to boot into recovery , I don;t know why I am unable boot into recovery , this has never happened before :confused:
[Galaxy S II Android Development] yahoo70:
Hallo, ich habe erfolgreich LineageOS 14.1 auf meinem Samsung Galaxy S2 installiert. Leider muß ich nun feststellen das der Mittel (Home) Button keine Funtion hat. Er gibt zwar ein Tastendruckfeedback (Vibration) aber es passiert nichts....

Das zweite Problem ist, ich kann den Root-Zugriff nicht aktivieren. Auch hier kommt beim Versuch das Feedback in Form von Vibrationen aber leider paasiert auch bei dem Versuch 7x mal auf Buildnummer zu klicken nichts weiter. Ich bekomme das Entwickler-Menü nicht frei geschaltet.... Könnten Sie mir da Hilfestellung geben???
[Galaxy S II Android Development] laptopu:
Have you installed factory pit also if you reported? That might explain stock loop.

[MENTION=4760474]yahoo70[/MENTION] please post in English and we will try to help :good:
[Galaxy S II Android Development] yahoo70:
Hi, I have successfully installed LineageOS 14.1 on my Samsung Galaxy S2. Unfortunately, I must now determine that the means (Home) Button has no funtion. He gives a tactile pressure feedback (vibration) but nothing happens.

The second problem is, I can not enable root access. Also here comes the attempt in the form of vibrations but unfortunately paasiert also in the attempt 7x times on build number to click nothing further. I get the developer menu not unlocked .... Could you give me help there ??
[Galaxy S II Android Development] Nobby1960:
Ich antworte Dir zweisprachig - aufgrund der Internationalität von XDA ist die Standard-Sprache Englisch.

Was hattest Du vorher auf dem Phone drauf - hat da der Homebutton noch funktioniert? Um auszuschließen, dass kein Hardware- Fehler vorliegt. Hast Du LineageOS clean geflasht (voher ein Fullwipe in der Recovery - cache/dalvik/system/data?) Root-Zugriff funktioniert so nicht mehr. Du mußt dazu diese Datei flashen. Ignoriere den Error 4, es funktioniert trotzdem.

I answer bilingual to you - because of the internationality of XDA, the default language is English.

Which ROM had you previously on the phone - has since the home button still worked? To rule out a hardware error. Did you make a clean flash (full wipe in the recovery - cache/dalvik/system/data?) You get no root access with the seven tips anymore. You need this file. Ignore error 4 by flashing, it works fine.
[Galaxy S II Android Development] yahoo70:
das ist nett!!!! :o

Ich hatte vorher den CyanogenMOD 12.1 mit Android 5.1.1 drauf und da hat der Home-Button problemlos funktioniert. Wie gesagt, er gibt ja auch Vibrations-Feedback.

Beim Flashen bin ich genau nach dieser Anleitung gegangen und alles andere hat ja funktioniert....
[Galaxy S II Android Development] Nobby1960:
Forstner - I know this page. I made there my first ROM experience too with CM 13 on the S2, direct from the Jelly Bean stock ROM :)

Try the following: Make a wipe cache/dalvik cache in recovery. Wait, the reboot takes longer. Then go to settings ("Einstellungen/Tasten"). Look about the home button. See the correct settings in my screenshot.
[Galaxy S II Android Development] Nobby1960:
Sounds not good. It seems like the super brick bug. To flash a stock ROM is usualy the last methode to rescue your phone via software. I'm assuming your USB cable is intact and the Samsung drivers on your PC too.
[Galaxy S II Android Development] yahoo70:
Diese Einstellungen "Einstellungen/Tasten" ist bei mir nicht vorhanden. Ich bin eben das gesamte Menü durchgegangen, nix mit Tasten.... Und auch das mit dem Installieren der Datei für die Rootrechte klappt nicht. Es wird beim Installieren der Code 4 angezeigt, wie vorher gesagt, aber ich kann dennoch das Entwicklermenü nicht freischalten...
[Galaxy S II Android Development] Nobby1960:
Oh sorry - my fault. I have flashed an older build on that phone :silly: To test root, try using an app that requires root access. If all else fails, make a new, clean flash of the Lineage ROM. That's easy - in recovery first a full wipe (cache/dalvik/system/data). Then flash the ROM, after that the root SU file and then the GApps (Google Apps). Wipe cache/dalvik, reboot.
[Galaxy S II Android Development] yahoo70:
Ich habe es jetzt komplett neu geflasht, nach deiner Empfehlung. Nun ist Alles OK!!!!! :D Ich danke recht herzlich!!!

Allerdings bekomme ich nun einen Fehlercode 70 beim Versuch die GApps zu installieren....:confused:
[Galaxy S II Android Development] Sub_Zero2:
You also need to repit the partitions (search this thread or the official cm13 thread for how to repit)
[Galaxy S II Android Development] Nobby1960:
You want to flash/install the GApps after the ROM setup I understand? I wouldn't do that. Do flash the GApps before you boot and setup the ROM, then it works.
[Galaxy S II Android Development] yahoo70:
Aber ich habe es genauso gemacht, wie du es beschrieben hast....Giebt es evt. ein kleineres GApp-Paket??
[Galaxy S II Android Development] Nobby1960:
Pico ARM 7.1 is the smallest one on opengapps. I only use pico. Again the flash sequence:

1. The ROM

2. addonsu-arm-signed.zip

3. The GApps

Wipe cache/dalvik, reboot. Now setup the ROM.
[Galaxy S II Android Development] yahoo70:
Jetzt gehts endlich....:D Man war das eine schwere Geburt....:silly:

Ich habe noch mal ganz kurzr Off- Topic Frage: Was könnt ihr mir für das Galaxy s3 Neo empfehlen?
[Galaxy S II Android Development] ouzowtf:
What's so hard to understand about writing in English only?
[Galaxy S II Android Development] dumdidum123:
Is it possible to implement a 2G / 2G and 3G switch in quick settings?
[Galaxy S II Android Development] the.gangster:
There are currently some three changes for the performance manager in the changelog for the next build.

So maybe this one sounds promising to improve the problems you've experienced so far...
[Galaxy S II Android Development] Nobby1960:
[MENTION=6560258]the.gangster[/MENTION]

Thank you very much, that sounds promising!
[Galaxy S II Android Development] gm0:
I don't think that commit applies, at least if it's the bug that I've seen then the governor does not get changed, just the max CPU frequency does, whereas that commit is about instances where the user selected governor gets overridden (e.g. on boot).
[Galaxy S II Android Development] a4lloxo:
Just flashed this to my old faithful s2,all I can say is thanks to all involved and wow what an upgrade over stock 4.1.2!

Curious to ask what kind of battery life other uses are experiencing? On power save profile my s2 still chews through the battery in around 4 hours,or around 2 if I'm using the phone quite a bit.

I'm on the 14.1-20170405-Nightly-i9100 build.

Anyone got any thoughts?
[Galaxy S II Android Development] gm0:
You cannot really compare battery life because it depends on many things, starting with the actual battery in your phone, over system configuration and installed apps, your usage pattern and last but certainly not least the cell reception at your location. What you can compare is your battery duration before and after installing LineageOS - and if I understand you correctly that did not change substantially.

That said, 2-4 hours is extremely short even for worst case scenarios and you should consider replacing the battery (unless your battery also drains when you power the phone down, then you've got a hardware issue), which should turn those hours of uptime into days.
[Galaxy S II Android Development] Nobby1960:
Here is a battery profile from my main phone. In the main thing I did phone calls via SIP (Wi-Fi, almost enabled) and SIM card, hear music and a little WhatsApp. The display was switched on almost an hour, but at different times. The battery is from 2016, a copy of the original Samsung.
[Galaxy S II Android Development] gm0:
[MENTION=7513127]Nobby1960[/MENTION] not bad but can you beat my self-charging battery? :D (I find the built-in battery estimate to be very unreliable on my device, quite often it shows fantasy values like the attached one)
[Galaxy S II Android Development] Nobby1960:
Yeah, the foolish default battery display :laugh: Search on Play Store for FuelGaugeTool, this is a helpful tool that resets the "fuel gauge" chip. First charge the battery 100%, then make a reset - the value goes down a little. Reboot the phone, charge again to 100%, so you get more reliable values. The best app to check is BetterBatteryStats.
[Galaxy S II Android Development] gm0:
Nah, I know what's throwing the prediction off (and you can make a good argument that it is doing it correctly actually). Has nothing to do with the battery charge percentage value.

Btw, you can easily do that fg_reset_soc thing yourself if you think you need it, no need to risk installing a random closed source root-enabled app for that. Doesn't mean there's anything wrong with that particular app - I wouldn't know - it's just that users should always be really careful before giving unknown code full control over their system (phone as much as personal computer).
[Galaxy S II Android Development] Nobby1960:
Thanks for the tip, I have no plan of Linux or SELinux. You are, of course, right - caution with unfamiliar root apps is always better.
[Galaxy S II Android Development] gm0:
Here's your weekly chance at a boot loop (j/k): https://lineageos.mirrorhub.io/full/i9100/20170412/lineage-14.1-20170412-nightly-i9100-signed.zip :D
[Galaxy S II Android Development] MARCOSOFT:
Can anyone update the LOS by the update application?

I can not do it! Initiates the transfer but then interrupts with a transfer error!

Is it by having TWRP 3.1.0?
[Galaxy S II Android Development] Wachicamo:
Does the new build have toy_story's RIL fix included? I saw the last build had one changelog related to RIL, but I'm not quite sure if it's related to toy's fix. I'm going to clean flash the new build without toy's fix and see how it goes.

So far, the only Issue I keep getting, is the audio bug (notification sound stops working and some videos played in apps/browser make the app crash/FC). I tried to get a logcat, but it seems I can't get it. Does anyone else have experience this? The easiest one to get this issue, is by watching Instagram Stories.

Thanks, again!
[Galaxy S II Android Development] gm0:
[MENTION=5257002]Wachicamo[/MENTION] did he ever say what his fix was? Generally don't expect fixes unless you report the bug first (edit: or submit the patch to the sources yourself).

Never experienced either of those bugs so can't help you there unfortunately. If you have a link to a specific video that makes your browser crash I could give it a try though.

See here for how to get a logcat: https://wiki.lineageos.org/logcat.html
[Galaxy S II Android Development] the.gangster:
LOL

As far as I remember that historic fix was already outdated in February by a commit called

"Fix RIL crash at end phonecall", which was then replaced by this one the next day:

libril: use responseInts for LAST_CALL_FAIL_CAUSE on Exynos4
[Galaxy S II Android Development] eamoss:
WhatsApp dropping messages

I upgraded from CM13 at the weekend bit I've had problems with WhatsApp dropping messages. I'll get a message then once I've closed it I'll reopen it only to discover that my message is no longer there. I upgraded to the 12-04 build and then wiped my data and cashe with TWRP. But I'm still finding the same issue.

I'm using TWRP 3.
[Galaxy S II Android Development] Nobby1960:
Take my attached stock pit. The latest factory ROM you get on SamMobile for free, you only must register. A stock recovery never existed individually, it was always part of the ROM.
[Galaxy S II Android Development] toy_story:
If the script helped solve the problem, only one person!

I will consider it useful, because it helped!
[Galaxy S II Android Development] the.gangster:
[MENTION=8052153]toy_story[/MENTION]

It wasn't my intention to say it wasn't helpful nor that it was waisted. It was good at that time to fix the official build as that was taken out of the build queues at that time and so the fix was only in the unofficial build.

But if you want critics you can get some:

- you could make it clearer where you take your solutions from when you wrap'm into scripts, as well as your texts that are also sometimes quotes of those other people.

- you could add comments to the fixes if they're no longer needed for builds newer than xxxxx. You've seen that it caused irritation already and even our engaged fellow [MENTION=8075440]gm0[/MENTION] didn't remember any more. So some comments would help.

- you could give up using bold lettering that often. Always feels like being shouted at. At least in browser sessions it's kind of horrific sometimes to see that including the supersized signature yelling for clicking the thanks-button (but that got better already after you removed the animated mascot from it again)

Not meant to be offensive though.

Apart from that I like your engagement and your solutions. Always wanted to checkout the dialer to enable call recording...

So go ahead. You had a good start here. Most newbies only sign up ask questions and to grab solutions here while you provided some from the very start.
[Galaxy S II Android Development] toy_story:
[MENTION=6560258]the.gangster[/MENTION]

Thank you for your criticism, comments and advice!

They are useful and practical for me!

Maybe I did not understand correctly, but if you need a dialer to turn on the call recording ...

Then, please.

Script fix Dialer for LineageOS !
[Galaxy S II Android Development] dumdidum123:
Gallery keeps crashing, even after restarting the device and deleting gallery data.

anyone else with this problem?
[Galaxy S II Android Development] gm0:
No problem so far, no, and I did not delete any data or clear any caches, either. Am quite liking the revamped gallery, too. You could try deleting Media Storage data though, that's what feeds the gallery (need to select "Show system" to access it).
[Galaxy S II Android Development] pksadiq:
Current bug status

Hi.

I'm planning to upgrade my i9100 OS from cm12.1 to LOS 14.

I would like to know the status of the following features:

1. Can I replace SIM card without restart?

In cm12.1 I can put phone to offline, replace the SIM, and go online again (also just dismiss the restart request)

2. Is miracast (screen cast) working?

3. What is the battery backup on standby (I don't use gapps)? Is there a power save mode that would reduce the battery usage the lowest possible (ie, the screen goes grayscale, no background data, no animations, etc)?

4. Can I import/export contacts from SIM card?

5. Are themes supported? (or is there any builtin black/dark theme?)

6. Any usually expected function that is broken? (I didn't find information like "what is working" and "what is not working" in homepage of this post)

Thanks
[Galaxy S II Android Development] todonormal:
Update from April 12 very good. There must be a button to delete the previous compilation
[Galaxy S II Android Development] gm0:
long press it
[Galaxy S II Android Development] Draky50110:
OTA failed for me on april 12th...

Will try to download and update through TWRP.
[Galaxy S II Android Development] dumdidum123:
Doesn't work for me unfortunately.

Logged the crash, see attached log. I will try some other things, maybe I need to install the old gallery app if its possible. Right now I have no option to view my photos.

EDIT: Nevermind, deleting cache and dalvik solved the problem...
[Galaxy S II Android Development] gm0:
Good news. Actually I had assumed you had already done that, my bad. As a general rule, always wipe Dalvik (ART rather) cache when experiencing app crashes after an upgrade.
[Galaxy S II Android Development] dumdidum123:
Actually I always wipe cache and dalvik after updating to the newest build ;) (don't know if it's neccesary everytime, but I used to do so since CM 10.1)

So I didn't expect to make this solve the problem because I did this wipe the day before the problem started.

Anyways, if problems like that turn on again, I know what to do.
[Galaxy S II Android Development] gm0:
[MENTION=7465165]dumdidum123[/MENTION] that's interesting, I've never seen the cache go corrupt outside of flashing a new ROM, that shouldn't happen. If it happens again you should probably submit a bug report then. Fingers crossed it won't. And no, you generally do not need to wipe the cache when updating anymore, it's meant to be kept up to date automatically so wiping is only necessary when that failed - but it certainly never hurts to do it anyway.
[Galaxy S II Android Development] Bruno25:
Gps fix issues (gps works fine with cm11 snapshot 12)

Since I installed lineageos 14.1, I have never managed to get a working gps: I randomly get an unstable gps fix that lasts some seconds only. Most of the time, I do not even get this unstable gps fix. I have 2 i9100, both have the same issue. I use GPS Status & Toolbox to perform the tests. I also tried agps.patch from Crypted, that solved some gps issues I had in the past... but not in this case.

Today I decided to downgrade one of my i9100 to cm11 snapshot 12 to find out if it is a software or and hardware issue.

Conclusion: gps fix within 10 seconds with cm11 => it is then not a hardware issue :)

Anybody already had these troubles... and managed to solve them with Lineageos 14.1?

CM11 (very fast fix)

Lineageos 14.1 built 20170412 (in this test, no fix after 15 minutes)
[Galaxy S II Android Development] Nobby1960:
I have no significant GPS problems in LineageOS based Nougat ROMs. Try the app from this posting (SatStat) to check the satellites.
[Galaxy S II Android Development] gm0:
No issues here, same app as you. Only idea I have is to make sure the location service is set to device only mode, otherwise nothing else should really affect the performance. Perform an AGPS reset in the GPS status app as well to be sure. Also check the GPS sensor filtering setting in the app, set it to unfiltered for testing.
[Galaxy S II Android Development] Sub_Zero2:
Try another baseband.
[Galaxy S II Android Development] Draky50110:
Is it me or I'm alone with SMS app crashing when trying to write a SMS ?

Same error like MTP error :/

Any clue ?
[Galaxy S II Android Development] Sub_Zero2:
Seems you are alone...
[Galaxy S II Android Development] MigoMujahid:
try cleaning the app data and cache, if that didn't work, try cleaning dalvik cache in recovery.
[Galaxy S II Android Development] Boolian:
I have never had problems previously, however, I just noticed similar GPS problem yesterday.

It appears I was experiencing faulty sensor feedback, specifically, Rotation & Accelerometer.

The dead giveaway was "auto-rotate" screen was not working for eg: videos

I checked the sensors via GPS Toolbox & other app, which reported problems.

I took a shotgun approach, assuming a problem with latest nightly and reverted to 26/02 build. The sensors and auto rotate started working. Also GPS fix works faster.

I then re-installed 12/04 nightly and all is still working ok.

So I'm no wiser as to the cause of the sensor faults.
[Galaxy S II Android Development] Draky50110:
Thanks, worked :)