yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S II Plus] GHsR:
I use a simple ota server script by BioGenX with some fixes:

<?php
/**
* Created by BioGenX.
* Info: Lite version of OTA script that support only basketbuild.com
* Date: 6/15/2015
* Time: 5:50 PM
*/

//ADD URL BELOW
//do not delete "" put url in between them
$raw_html = file_get_contents("https://basketbuild.com/devs/GHsR/CM-13/i9105p"); //basketbuild folder link
$download_url_base = "https://basketbuild.com/uploads/devs/GHsR/CM-13/i9105p/"; //basketbuild direct download link base

//OTA SCRIPT:

//get the latest build link
$base = "https://basketbuild.com/";
preg_match_all("/(?<=Url\" href=\").*?(?=\">Download)/", $raw_html, $links);
$last_link = $links[0][count($links[0])-1];

//get filename from the url
$filename = basename($last_link);

//get direct download url
$download_url = $download_url_base . $filename;

//get MD5 checksum
$last_build_html = file_get_contents($base . substr($last_link, 1));
preg_match_all("/(?<=MD5:<\/strong> ).*?(?=<br\/>)/", $last_build_html, $MD5s);
$MD5 = $MD5s[0][count($MD5s[0])-1];

//get timestamp
$date_file = explode("-", $filename);
$date = strtotime($date_file[2]);
$timestamp = (string)$date;

//Generate JSON
$json = array(
'url' => $download_url,
'timestamp' => $timestamp,
'md5sum' => $MD5,
'filename' => $filename,
'incremental' => null,
'channel' => 'nightly',
'changes' => null,
'api_level' => 23
);

//Add response elements id,error
$json_response = array(
'id' => null,
'result' => array($json),
'error' => null
);;

//convert PHP array to json format
$ota_json = json_encode($json_response);

//return JSON response for OTA client
echo $ota_json;
//END OF SCRPIT

You need to test it at the last build. I don't have stable internet connection for testing periscope.

You had a problem with mic after using mini BT speaker too? In a previous post you wrote that the problem after using bluetooth car kit. Create a dmesg log after using mini BT speaker (use SysLog app from Google Play) so I could add the necessary selinux rules.

This is not a bug, the same thing on the AOSP.
[Samsung Galaxy S II Plus] markok89:
Is the latest version stable? And is it phone working without problems if it is used SD card as an internal memory?
[Samsung Galaxy S II Plus] jojobg:
Occasional soft boot. Internal SD mode is safe to play with, I'm testing on my S2.
[Samsung Galaxy S II Plus] rytriei:
And nfc work?
[Samsung Galaxy S II Plus] jojobg:
Long Live Multi-partition SD

Long live multi-partition SD: read article 1 and 2.

It is working kind of nice, testing it full fledged since last night on my two phones.

Just a teaser, SD card modes enabled for MM: Internal,Portable and ... Mixed ;) enjoy.
[Samsung Galaxy S II Plus] anastasiszn:
Merge partition after first reboot and have storage more than 4.04?

Στάλθηκε από το GT-I9105P μου χρησιμοποιώντας Kali NetHunter
[Samsung Galaxy S II Plus] jojobg:
Have Portable and Internal Part of the SD card natively supported by MM.

P.S. err now I get it .. 4.04GB default pit size for S2+ , Yes have more than 4.04GB of Internal Memory for apps and etc.
[Samsung Galaxy S II Plus] anastasiszn:
Which app use for create partition?

Στάλθηκε από το GT-I9105P μου χρησιμοποιώντας Kali NetHunter
[Samsung Galaxy S II Plus] jojobg:
Read both articles and either use adb from PC or go directly from Terminal on Phone. Tested both ways as my S2 is not able to connect via adb.
[Samsung Galaxy S II Plus] anastasiszn:
Ok i use magic partition with pc. Your sdcard is class 10? Thanks

Στάλθηκε από το GT-I9105P μου χρησιμοποιώντας Kali NetHunter
[Samsung Galaxy S II Plus] jojobg:
Yes Class 10.

But please do not experiment with third party tools.

Just simple steps:

Only first backup step needs to be taken either if you are currently using Internal or Portable mode for the SD card.

1.Internal - Go to storage settings on your internal SD card and move all to phone.

1.Portable - connect to PC and backup everything.

In short it is like the old Link2SD functionality with the limitation of App2SD as some applications are already flagged and could not be moved on the internal part of the SD card in either modes full internal or mixed mode at ratio.
[Samsung Galaxy S II Plus] anastasiszn:
I cant try it. I have class 4 ... I use kali nethunter and don't work in cm13 for now perfect.. But thanks for all :)

Στάλθηκε από το GT-I9105P μου χρησιμοποιώντας Kali NetHunter
[Samsung Galaxy S II Plus] jojobg:
You can try it but it will be slow.

Unless you are running Kali on CM12.1 or Touchwiz 5.1 base you are good to go with the native "SM" command for MM, it is the MM native command not the specific ROM actually.
[Samsung Galaxy S II Plus] GHsR:
Update - 20160705

- Fixed changelog in the ota update app

- Upstream merge
[Samsung Galaxy S II Plus] jojobg:
OTA - change log is available but ROM is not downloading. Missing cmupdater folder detected when applied usual recovery steps, deleting cached downloads from settings. Creation of the folder on the internal part of the SD card fixed the error but was not able to proceed with successful download via OTA. Manual download and move to cmupdater folder gave me the ability to update from OTA screen... Am I the only one with this issue?
[Samsung Galaxy S II Plus] elidor90:
I have that problem too i try to download the update
[Samsung Galaxy S II Plus] jojobg:
[MENTION=5999439]GHsR[/MENTION]
[Samsung Galaxy S II Plus] GHsR:
This issue with ota server, I don't know what happened.

Ok. For now you should use other ota server, change it in build.prop to

cm.updater.uri=http://ghsr-update.appspot.com/api

Also on basketbuild missing md5sum for latest build:

9d4cf2c6f21cd773a5946bb8a5e30f63 cm-13.0-20160705-UNOFFICIAL-i9105p.zip
[Samsung Galaxy S II Plus] elidor90:
I have aded the link for cm updater and now i can see the changelog with the older i cannot see it but for md5 where i need to place that ?
[Samsung Galaxy S II Plus] GHsR:
Changelog is not available for older builds, only starting with 20160705. I added md5 for those who want to merge it after downloading build from basketbuild.
[Samsung Galaxy S II Plus] Mattia990:
I've got a problem with GPS. Phone can't localize me, with GPS Test it says that there are 0 sats but other phones say that there are a lot of sats in my position. Could anyone help me?
[Samsung Galaxy S II Plus] Rahulmsinghvi:
Yes. Call your network operator and block WCDMA :P

I understand that feeling bro. Because of not being able to switch to GSM I ended up using 2 GB in last two days :'-(
[Samsung Galaxy S II Plus] cracker12:
That is not my problem! XD is a question of save battery
[Samsung Galaxy S II Plus] Telethon:
Can someone help me with this. I can succesfully flash TWRP custom recovery to my i9105P, but after the flash the phone instantly reboots and overwrites the custom recovery with the default one. How can I enter the custom recovery when the phone instantly restarts itself? Should I hold power+vol up+home once the phone reboots and the Samsung i9105P appears on screen?
[Samsung Galaxy S II Plus] solis_f:
Anyone having problems updating facebook?
[Samsung Galaxy S II Plus] Rahulmsinghvi:
Update is awesome

The upgrade it amazing. Thanks a lot!! It fixed the lockscreen shortcut.

Waiting for quick unlock in lockscreen from CM :)
[Samsung Galaxy S II Plus] Indugutk:
I installed latest version of this CM13 ROM and after first boot the phone do not ask, as normal, for the pin code. The pin code has been automaticaly locked and the phone ask me for the puk code. I think is a ROM problem here.
[Samsung Galaxy S II Plus] bullyboybg:
Battery settings FC
[Samsung Galaxy S II Plus] djalfy:
Disable autoreboot when flashing recovery via odin, boot to recovery via key combination and wipe system, data, cache and dalvik and flash the rom. The stock rom flashes the stock recovery if you allow it to boot after flashing via odin.
[Samsung Galaxy S II Plus] GHsR:
Update - 20151215

- Fixed SIM PIN

- Fixed unable to select 2G/3G

- New Trebuchet launcher

- Upstream merge ( Changelog )
[Samsung Galaxy S II Plus] Rahulmsinghvi:
Awesome update. Can switch WiFi from notification tray now :D
[Samsung Galaxy S II Plus] Nino1238:
After fresh or update install of last cm13 this is my problem.

The sound of incoming call stop after two or three seconds but no problem for call.

I have installed also new theme but always same problem.

I have no found resolution in setting and think that problem is due to the fact that

the sound is not repeated until the response of the call but only one time.

How can I fix this ?

Thanks
[Samsung Galaxy S II Plus] Rahulmsinghvi:
Does anyone have network reset problem?
[Samsung Galaxy S II Plus] caeter:
Yes, but this problem has my Nexus 5 too.

I think this is a cm13 problem. With today's nightly 20151217 didn't fix it, but it got better on my opinion.
[Samsung Galaxy S II Plus] Rahulmsinghvi:
Thanks for that. I noticed two more ROM bugs

1. Google play music player won't automatically play the second song if first is over.

2. Ringtone doesn't repeat, it stops after 1st ring
[Samsung Galaxy S II Plus] djalfy:
That must be a cm bug. Happens to me too on my Nexus 5 in google play music. I've heard it should be fixed in tomorrow's nightly so it will come to our phones too. :D
[Samsung Galaxy S II Plus] TimurAlaskara_TR:
actually I think you can fix it with a easy build.prop edit :)

open build.prop in /system

go to line "persist.sys.storage_preload=0" and change the "0" with a "1"

this worked on my galaxy tab s and my note 3 neo :)
[Samsung Galaxy S II Plus] GHsR:
Update - 20151226

- Upstream merge ( Changelog )
[Samsung Galaxy S II Plus] anastasiszn:
Freezes fixed?
[Samsung Galaxy S II Plus] karamancho:
on the first two builds I've got bootloops after 1-2 days of use - the phone would restart while not used, e.g. sitting on the desk, and wouldn't get past the 'samsung gt-i9105p' logo for 10-15 minutes. so now I'm back back again on CM12.1.

anyone here have the same experience and is the last build better in that regard?
[Samsung Galaxy S II Plus] anastasiszn:
This device is not for marshmallow. Until KitKat works fine.
[Samsung Galaxy S II Plus] Pendragon2000:
When I turn off my device, it takes 5 second after circle stop to rotate to turn off definitively. I've reported this bug some patches ago and you've said that you would fix it. There was a problem to fix it or you haven't remembered it?
[Samsung Galaxy S II Plus] mimmomaions:
Bug Whatsapp

Hi I wanted to tell a small bug on whatsapp where chatting if sending 5 consecutive shots , the camera following the crashes ... you can solve it ?
[Samsung Galaxy S II Plus] DiscMan55:
Pokemon Go hangs my phone when I click on a Pokemon in the map. It is a hard freeze of phone and I can't get a catlog. How can I provide logs to help in this case ?
[Samsung Galaxy S II Plus] Pendragon2000:
It happens on my device too, but not often.

I've optimazed Pokemon Go with GLTools (settings below) and with interactive governor and a cpu clocked at 1.2/1.3 Ghz.

Try.
[Samsung Galaxy S II Plus] j3tstream:
Using Texture decompression ALL is unnecessary on mine, and totally messes with the textures. Beyond ugly xD

Im using 0.5 render res, 0.5 textures,no antialiasing and that seems to get rid of my problems.

Really happy to run into this fix because i really love my s2 and I dont wanna get a new phone just for this :D

Edit: soo, at first 0.5 render res was working in fullscreen. Now somehow it resizes it to half screen. Dont know if i changed anything on gltools. Any tips to make it fullscreen again?

edit2: uninstalled gltools hoping to resintall it and phone doesnt boot, gonna have to try a dirty install and pray it fixes it :(
[Samsung Galaxy S II Plus] DiscMan55:
Pokemon Go GLTools settings

For me, I got it to work with the following settings in GLTools.

- Anti-aliasing: Disabled (forced)

- Use lower render resolution: 0.5x

- Downscale textures: 0.5x

Nothing else changed from default. At least AR mode is a bit jerky and slow but works and doesn't hang. Thanks for the help!
[Samsung Galaxy S II Plus] shahidbhavwala:
I had same problem

but when you click pokemon wait for few minutes, make sure mobile doesn't lock in meantime....after few minute I... you will see AR mode right on top...and disable AR mode

then it'll work fine..

---------- Post added at 05:36 AM ---------- Previous post was at 05:10 AM ----------

when stable version will come?
[Samsung Galaxy S II Plus] Flavalav:
- Anti-aliasing: Disabled (forced)

- Use lower render resolution: 0.5x

- Downscale textures: 0.5x

used this settings and it worked at the start but after i restarted my phone , pokemon go starts in rly 0,5 resolution in the bottom left corner, tried to switch some settings but nothing works, only if i change the render reso from 0.5 to 1 back.

does someone know how to fix it with 0.5 ?
[Samsung Galaxy S II Plus] Ext3h:
For me 0.5x render solution alone did nothing at first - only when I also enforced the hack to apply the render resolution to 2D as well. That finally gave me full screen with lower resolution.

Still not running well though, the phone keeps overheating, occasionally stops accepting any touch events (while the menu and back buttons still work???), registers ghost touches, and doesn't even have enough RAM to allow the task switcher to kill the application.

Well, there actually IS a way to get Pokemon Go to run smooth on the S2+. Simply turn off ZRAM:

echo 0 > /sys/block/zram0/disksize

echo 1 > /sys/block/zram0/reset

OR

swapoff /dev/block/zram0

I'm not sure why - but ZRam performance with LZ4 compression algorithm is just horrid on this device.

For Pokemon GO, turning it off results in almost doubled (15 -> 24) FPS.

Also no more system freezes.

Even makes task switching much more responsive. Feels like decompressing something swapped into the compressed memory partition is even slower on this device than just restarting an application from Flash.

Only problem with that: For some very strange reason it doesn't work on every boot. Only occasionally.

Sometimes I just can't turn Zram off, it just stays active. "swapoff" is also half broken on this ROM. It just never returns, even though swap is eventually off, after a couple of minutes.
[Samsung Galaxy S II Plus] jojobg:
[MENTION=4614178]Ext3h[/MENTION] , [MENTION=7607214]Flavalav[/MENTION] [MENTION=7598163]shahidbhavwala[/MENTION] @DiscMan55 [MENTION=6819337]j3tstream[/MENTION] [MENTION=7365268]Pendragon2000[/MENTION]

I hope you realize that you hijacked the thread for game discussion, please create a Pokemon discussion thread.

Anyone in auto reboot loop limbo with 20160705 version? Please note that rom boots and a couple of seconds after launcher shows it goes hard reboot.
[Samsung Galaxy S II Plus] ap_mnl:
Anyone having a problem with installing apk?
[Samsung Galaxy S II Plus] j3tstream:
Technically we haven't. This are problems running an app on this particular rom. I see people reporting problems with app x y or z all the time and it is pertinent to post here because it is rom related i guess.

Given the popularity of this one being over any other app at the moment Im pretty sure this is topic is adequate to discuss here, at least once we get it fixed and running smoothly enough. xD
[Samsung Galaxy S II Plus] Ext3h:
Happens at times when a flash attempt goes wrong. Just do a full wipe of everything but recovery, and it solved that for me.

Besides, it's not only a problem with Pokemon Go. Other memory intensive apps are causing freezes on this ROM as well. It's just that Pokemin Go is currently probably the most prominent candidate to replicate the issues.

The fact that deactivating ZRam significantly boosts performance, but also that the swap managment tools "swapon" / "swapoff", as well as querying "/proc/swaps" after using either of these is broken, should be looked into.
[Samsung Galaxy S II Plus] jojobg:
In my case I think it's theme related. Currently phone behaves normally with no theme applied.
[Samsung Galaxy S II Plus] rfnreynders:
Several problems with latest rom.

Seems to have f.cked up my micro sd card. (not so much a problem. format on laptop and good to go again.) 32 GB samsung evo plus.

When shutting down it takes forever.

Reverted back to preveous version.

Works better...

Ah welll......
[Samsung Galaxy S II Plus] Zkster:
Tumblr is like a malware for this ROM!!

Constant crashing almost every time the app is used, lag, takes FOREVER to load content, soft reboots or full reboots the phone, crashes other apps like "next battery", even crashes its own crash error box (throwing the right side of it to the end of the screen)
[Samsung Galaxy S II Plus] jojobg:
Have you tested with other MM roms, is it only with CM 13 ? Logcat?
[Samsung Galaxy S II Plus] DodoGTA:
This is an old phone
[Samsung Galaxy S II Plus] GHsR:
Update - 20160728

- Upstream merge

This is my last rom update for this device, I will no longer develop roms due to lack of free time and lack of interest in this. I have uploaded all the necessary files to build roms for this device on my GitHub. Who wants to, can continue it. The same goes for aosp, omnirom and twrp recovery.
[Samsung Galaxy S II Plus] jojobg:
Sad to see you go away from S2+ part of the forum.

P.S. OTA don't download. ROM installed no issues observed for now.
[Samsung Galaxy S II Plus] bonerserk:
Thank you for all your great support and excellent work! :good:
[Samsung Galaxy S II Plus] Nino1238:
Many thanks for yr great work
[Samsung Galaxy S II Plus] ap_mnl:
- Upstream merge<br />

<br />

This is my last rom update for this device, I will no longer develop roms due to lack of free time and lack of interest in this. I have uploaded all the necessary files to build roms for this device on my GitHub. Who wants to, can continue it. The same goes for aosp, omnirom and twrp recovery.

Thank you for your work! ?
[Samsung Galaxy S II Plus] utg1:
:good::good::good: Many thanks man!
[Samsung Galaxy S II Plus] bbandyka:
Thanks for this ROM! it's a shame you don't continue, i'm guess it's time to buy a new phone:(

Does anyone have the issue that in the Gallery every folder shows up 2 times? ("Camera" too) one time from /sdcard one time /storage/emulated/0, i have adoptable storage enabled.

thank you
[Samsung Galaxy S II Plus] L1feGuard:
Thank you for all :( good work and support
[Samsung Galaxy S II Plus] Pendragon2000:
Thanks for your support of this device.

I hope another one continues to develop this rom until it is stable.

Great work man.
[Samsung Galaxy S II Plus] ApolloCS:
can't download. the links seem to be dead...
[Samsung Galaxy S II Plus] DodoGTA:
Entire BasketBuild website is having problems
[Samsung Galaxy S II Plus] Chandrawrey:
i can't open the website for download -__-

any mirror links?
[Samsung Galaxy S II Plus] jojobg:
Yes for the ones existing on both storage.
[Samsung Galaxy S II Plus] areee:
Thank you for your work! :good:

I hope somebody else continues with updating!
[Samsung Galaxy S II Plus] rfnreynders:
Thx for all your work. Love the Rom as it gave new life to my phone.

cheers,

Rene
[Samsung Galaxy S II Plus] vietiplatsch:
*cries in corner*

Thank you for all the work, man. You really reanimated my phone and therefore saved me loads of money I didn't use to buy a new phone. It is so sad that you can't continue the work on this ROM.

But this update seems stable so far, hope it stays that way.

Great work! Thanks soooo f*****g much! Gonna miss your work :crying: :crying: :crying:
[Samsung Galaxy S II Plus] elidor90:
Thank for your work man...

Tiday i downloaded and installed the new nexus launcher.. I dont know if i can upload the file here or u can download it .. It works fine in this rom
[Samsung Galaxy S II Plus] elidor90:


---------- Post added at 10:48 AM ---------- Previous post was at 10:47 AM ----------
[Samsung Galaxy S II Plus] DiscMan55:
Would be nice if someone can at least build the ROM with android security updates and/or upstream merge to fix CM bugs.
[Samsung Galaxy S II Plus] jojobg:
Not only, CM reached 13.0.1 and there are ton of upcoming camera fixes ... unfortunately for S2+ users currently.
[Samsung Galaxy S II Plus] vietiplatsch:
I had the exactly same problem. You can easily fix it with the app "Media Re.Scan". Just install the app, let it rescan your phone et voila, gallery is fine again.
[Samsung Galaxy S II Plus] obod0002:
Thanks for all the time you spent for our phones, GHsR. Wish you all the best.

---------- Post added at 11:41 PM ---------- Previous post was at 11:36 PM ----------

Hi guys,

After quite some time I want to update my phone again.

I'm running 20160427 at the moment and wonder if I could update to the newest release without any wipe. Is that possible or what do I have to do at least? Thanks for your help
[Samsung Galaxy S II Plus] elidor90:
I have flashed the last update without wipe but for u i think u need to wipe all download lasted rom and gapps because u are an older rom
[Samsung Galaxy S II Plus] bbandyka:
Thanks!.
[Samsung Galaxy S II Plus] rINanDO:
Thanks GHsR for your work!

On the background I build my personal builds with little modifications based on your code to update my wife's phone i9105p (my phone is i9100). I will share my unofficial builds so the i9105p will not die yet.

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

These are the modifications I made on top of the cm-13.0 code & patches made by GHsR:

galaxys2plus-common: Use proximity-sensor as "anymotion" sensor.

This actually enables "Doze" and not only App-Standby. This hack "uses" proximity-sensor instead of the significant motion sensor so "Doze" is enabled for real.

https://github.com/rINanDO/android_...mmit/a8845b133154634ef9f9cba7dcb638ccc245d28d

galaxys2plus-common: Add SamsungDoze

This feature uses the proximity-sensor for ambient display.

https://github.com/rINanDO/android_...mmit/fb135e8ebb15c9a7c2ecfc72187fd907ddeba757

DeviceIdleController: Implement custom time

This allows the Marshmallow "Doze" to start within 3 minutes (instead of 30 minutes) after screenoff so we get more juice from our small battery

https://github.com/rINanDO/android_frameworks_base/commit/4b70daaa4843f2d6740da8eae7b187b12448c5fc
[Samsung Galaxy S II Plus] DodoGTA:
Does Screencast app work properly in this ROM?
[Samsung Galaxy S II Plus] elidor90:
I have used many times on my tv and have no problems till now
[Samsung Galaxy S II Plus] DodoGTA:
You mean this app?
[Samsung Galaxy S II Plus] elidor90:
That is the cast of rom? Or it is an other app?
[Samsung Galaxy S II Plus] Vizal:
Thank you for your excellent job! You've brought our devices a second life. Well, about time, because mine's broken down recently ^^'
[Samsung Galaxy S II Plus] DodoGTA:
It's a built-in CyanogenMod 13 app
[Samsung Galaxy S II Plus] elidor90:
Well in this rom for me works good for the things that i need .
[Samsung Galaxy S II Plus] FriggitriceTurbo2000:
Did someone try the rINanDO update? Did it work correctly?
[Samsung Galaxy S II Plus] Pendragon2000:
what is "rlNanDO update"? I haven't found it in the net... can someone explain me the meaning?
[Samsung Galaxy S II Plus] FriggitriceTurbo2000:
You can found the update in the previous (page 63) comment:

[ Thanks GHsR for your work!

On the background I build my personal builds with little modifications based on your code to update my wife's phone i9105p (my phone is i9100). I will share my unofficial builds so the i9105p will not die yet... ]

it is very interesting but i dont know if it works
[Samsung Galaxy S II Plus] jojobg:
Dorian is taking over, have some patience, build environment in progress... ;)
[Samsung Galaxy S II Plus] Pendragon2000:
Thanks, I haven't seen it
[Samsung Galaxy S II Plus] cappoccia:
Hello, I have installed this ROM wiping dalvik and cache first end after the flash of the ROM. whatsapp can not share files. It's normal? I had to manually activate all permissions for this app.

has anyone had similar problems? best regards to all
[Samsung Galaxy S II Plus] elidor90:
Well in first time of use of whatsapp or any app they ask for permision automaticly
[Samsung Galaxy S II Plus] cappoccia:
Yes, I agree. But it still was not working until I set manually all the permissions for whatsapp
[Samsung Galaxy S II Plus] elidor90:
Till now i dont have those problems ...