yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] cdrivex4:
Annoyingly, wipe data solves it, when I restored apps and data from titanium it just seemed to stay awake..

Anyhow I think I may have found something else now, taken a bug report but want to try and recreate before I link it... In options , stay awake while charging, haven't touched any thing else yet the phone seemed to freeze, i had left adm to download today's nightly.once the cable was out it took a few mins but it did start to respond, back to normal now.odd.
[Galaxy S II Android Development] Vixkoth:
the battery me hard only as maximum 5 hours i have that prove your solution but is with wipe data / factory reset or only wipe data?
[Galaxy S II Android Development] cdrivex4:
factory reset and you will have to re-install your apps.

I used titanium to wipe ALL data, seemed to fix it, because I was lazy and didn't want to re-install apps, as easy as it would have been.
[Galaxy S II Android Development] Vixkoth:
I installed the script and have dark booster project folder init.d but it turns out that universal app init.d support tells me what the kernel does not support init someone can answer this?

Sent from my Galaxy S2 GT-i9100 with Cyanogenmod 13

---------- Post added at 02:49 PM ---------- Previous post was at 02:44 PM ----------

supporting apps with data in the titanium apps are such as I have? And you've solved that problem doing that? It is that it gives too lazy to have to set everything up again for certain apology bad English'm using a translator

Sent from my Galaxy S2 GT-i9100 with Cyanogenmod 13
[Galaxy S II Android Development] Sercan Ali:
[MENTION=5246166]lysergicacid[/MENTION] help...

---------- Post added at 03:03 PM ---------- Previous post was at 03:01 PM ----------

[MENTION=6159291]Lysergic Acid[/MENTION] ....
[Galaxy S II Android Development] flamadiddle:
Does anyone know if this ROM will work on the SPH-D710 (sprint variation)? I saw some discussion of it earlier in the thread, but no clear indication of anyone trying it. I have TWRP 3.0.2-1 installed with crossflash patch from lanchon.

I don't care if the modem works at all since I'm not using it as a phone. I just need a bootable, preferably up-to-date ROM. :)
[Galaxy S II Android Development] playitlouder:
Cant get the system to boot after a clean wipe, tried the 18th nightly first then todays, will sit at the cyanogenmod logo forever.

EDIT: CM11 will boot just fine, CM13 won't. Just sits at the CM screen.

EDIT2: Using or not using gapps makes no difference, tried to repair the /data and /cache partitions in TWRP, no difference?

Are the nightlies simply broken, or could it be due to repartitioning (1gb system 4gb Data).

EDIT3: Is CM13 dependent on the /preload partition? Because thats what I got rid off when repartitioning. CM11 never had any problem with that.
[Galaxy S II Android Development] Boolian:
Yes, in retrospect it is complete bollox lol! :silly:

I could have worded it better, sorry.

I was implying they would at least show repartitions/sizes and identify their block names. He has CM13 so knows he has the kernel.

You're quite right, it proves absolutely nothing directly looking at a partition table list.

I did say it didn't guarantee there was a custom recovery in there though.
[Galaxy S II Android Development] Kurt Krummbein:
No logs no help ...
[Galaxy S II Android Development] wason92:
Doesn't need /preload no.

What do you mean forever?

First boot can take awhile.

When you plug it into a pc it should show up as a device in adb.

If it does just wait awhile and it will finish booting.

If not then there is a problem

---------- Post added at 10:32 PM ---------- Previous post was at 10:29 PM ----------

Does anyone else have problems with wireless tether.

It tethers ok but after awhile they'll be no internet connection.
[Galaxy S II Android Development] playitlouder:
It doesn't get recognized while booting, adb works in twrp though.

I know that the first boot will take a while, bit after 20 minutes I was still stuck on the CM logo.

I have to check if the old pit has completely killed preload or just resized it (get parted going), I installed CM13 on another S2 a while ago with a diffrent pit file and it works just fine.
[Galaxy S II Android Development] fireburner-de:
[MENTION=5665605]cdrivex4[/MENTION], [MENTION=5028189]chrisXL[/MENTION], might it be, that you activated BLN?

Some settings might prevent Deep Sleep. Though I have the feeling just activating it through Terminal (as I did) also prevents its going into DS for ~30min after a notification.

I will further observe this.

[MENTION=309697]khal_nayak[/MENTION], I have always had it set to use 3g preferably. I have XLS8 baseband. But I never updated it on my own. Might have come with one of the sammy ROMs. But imo XLS8 is older than yours anyway.

Yes, that might be the problem. CM13 somehow needs a /preload partition, which also needs to have a file system on it, even if it is just some MB in size. You also might use [MENTION=4141005]Lanchon[/MENTION]s repit script next time.
[Galaxy S II Android Development] ajislav:
Most likely resized.

As the previous post says, /preload must be formatted, so go back to recovery and format /preload from there
[Galaxy S II Android Development] ssandyji:
i have clean flash 20160620 build problem with mobile data some apps & browser are say "net::ERR_TIMES_OUT" massage every time ANY ONE HAVE SAME PROMLEM OR NAY SOLUTION

THANX
[Galaxy S II Android Development] playitlouder:
I don't have preload in the TWRP list when formatting partitions. Have to take a look at the busybox parted log.

Partition table looks standard. Where is the preload normally located?
[Galaxy S II Android Development] khal_nayak:
ok ill try the last modem firmware that came out for my region which was XXLPX because i remember trying the XLS8 earlier and has some issues
[Galaxy S II Android Development] Lanchon:
preload is the "HIDDEN" partition
[Galaxy S II Android Development] playitlouder:
Can't format the partition in CWM, and it doesn't show up in twrp (wipe menu).

Gonna repit again and check if it behaves itself.
[Galaxy S II Android Development] Lanchon:
no, dont. use the command line to format, or use my REPIT. pitting does not format anything.
[Galaxy S II Android Development] flamadiddle:
http://xdaforums.com/showpost.php?p=67424426&postcount=5144

Anyone tried on the D710 yet? I know the kernel and recovery are tied together, so I don't want to brick my phone. It took a lot of work to get it to the point where I have a working TWRP 3 on it :).
[Galaxy S II Android Development] playitlouder:
But there has to be something wrong with my partition map.

Error when formatting is: E: format_volume: make_ext4fs failed on /dev/block/mmcblk0p12
[Galaxy S II Android Development] Lanchon:
i'm not psychic, i don't know where that text comes from.

please don't diagnose problems yourself, just convey the facts.
[Galaxy S II Android Development] playitlouder:
Too late :P

I found my problem, the hidden partition had no file system, was just blank. Did make_ext4fs /dev/block/mmcblk0p12.

Then rebooted to recovery.

Your TWRP (CM11 Trim kernel) doesn't seem to have parted, so I guess it succeeded and trying to boot as I type :angel:
[Galaxy S II Android Development] Lanchon:
that's what i told you, you needed to format!

don't know why are you mentioning an old kernel, there's isorec now.

later!
[Galaxy S II Android Development] playitlouder:
Was using isorec CM11 ;)

I am not to familiar with linux commands, listing partitions, setting up the parameters and formatting ist pretty confusing on linux.

I'am spoiled by the osx diskutil command ;)

Thanks anyways :D

Should report to the isorec team that they should include the preload partition in the selection to wipe. Would make things a lot easier :good:
[Galaxy S II Android Development] Lanchon:
you can talk to twrp maintainer arnab. i agree that adding preload would be a good idea, if its not there already.

but your phone was misconfigured by improper partitioning, that was the real problem.
[Galaxy S II Android Development] chrisXL:
No, I haven't installed BLN mode.

Maybe bad flash?

Symptoms before wiping data:

1) very high battery consumption (linear, not big drain) while screen off

2) no deep sleep entry in BetterBatteryStats [emoji33]

3) sometimes phone becomes very hot.

Then I flashed same cm13 build (after wipe data) and all was ok.

That's all
[Galaxy S II Android Development] Kurt Krummbein:
Well, listing partitions is easy:

cat /proc/partitions

:) ... the rest depends on the file-systems the system expects, those are to be found in the fstab-file ... unfortunately on Android that's often not /system/etc/fstab, it's on the boot-partition.

Gtz

Kurt
[Galaxy S II Android Development] KnightElf009:
Is there a option that I can save my contacts to my sim? and also see contacts on my sim? TIA
[Galaxy S II Android Development] laptopu:
Seems everyone including me reporting battery problems can solve this by wiping /data and reinstalling apps. Confirmed now by about 5 people on this thread. Also confirmed that the apps have to be reinstalled from scratch not backup or the problem happens again.

How do we get to bottom of this? It's a fairly major problem and for me it took about 4 hours to get my phone back in order after a days wipe. Wiping cache/dalvik/system has no impact it has to be a pain in the bum data wipe, yet not everyone is reporting poor battery life.
[Galaxy S II Android Development] Toniccu:
I have problems with notifications of instant chat like Telegram and Whatsapp (up to 10 minutes of delay) with last nightlies...anyone with the same issue?
[Galaxy S II Android Development] Andrea900:
[MENTION=6159291]Lysergic Acid[/MENTION] do you think that the ROM is stable enough to enable the snapshot builds?
[Galaxy S II Android Development] OT-Xtreme:
[MENTION=6159291]Lysergic Acid[/MENTION] have you seen this commit? apparently its fixing wifi drop occasionally in mm (comes from cm13 lg g2 thread)

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

or those new ones:

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

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

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

maybe we can use it too, hope its relevant. ?
[Galaxy S II Android Development] jojobg:
For instance providing logcats will greatly enhance the investigation. I have battery issues but but they are related to high CPU and I/O to SD card Internal Mode.
[Galaxy S II Android Development] KornyeiDavid:
Hello!

Sorry for my silly question but i would like to ask you for help!

I have installed Cm13 nightly everything is ok but i couldn't download.

When i click on a download link a have get an error message.

Please anyone could help me? (Please write the instructions step by step because i'm a junior member)-----(and i will be thankfull if someone can send me the download link for do this procedure)

Thank you so much :D
[Galaxy S II Android Development] arnab:
Thankgod u didnt tell ur a baby...plz follow the OP.. there is a very good guide thread tagged in the main op.
[Galaxy S II Android Development] ssandyji:
j have clean flash 20160620 and i have a problem with mobile data any one can help me for this error
[Galaxy S II Android Development] chrisXL:
Did you format sdcard after setup? In that case check the download path (i.e. in browser settings, xda settings ...), it changes.
[Galaxy S II Android Development] Acid0057:
I'd check and make sure you're APN is setup properly for you're carrier.
[Galaxy S II Android Development] wason92:
This is a complete guess because my device is going into deep sleep without wiping data.

Have you tried toggling battery optimization for every app?

Maybe when they're installed from a backup, doze doesn't get setup right.

Just a guess.
[Galaxy S II Android Development] ssandyji:
i think APN is correct b'cos other apps like wattsup,email, gmail are work fine but browse & facebook and other not work
[Galaxy S II Android Development] 3ph3sus:
I've explored workarounds aganist two anoyying bugs:

Changing the apn doesn't work

If you install a good old version cm13 (i 've tried 20160319, personally my nightly's stable :laugh:) with full-wipe changing the apn takes efffect on the browser. Then you can dirty flash the recently buggy and the settings are still working. I've never touched the apn settings again :silly:

Note: Dirty flashing an old version over a newer will cause bootloops !

Watching a youtube video breaks the volume rocker media player control

If i watch a youtube in the official app, the media player remote control function stop working. Modifying /data/system/users/0 settings_secure.xml and then rebooting make them working again untill i watch a video again.

Credits goto nord050 @ cyanogenmod-forum
[Galaxy S II Android Development] p3dboard:
My wife's phone and mine just started having battery issues. Her phone is on a May cm13 build for the i9100 and i am on a june 2016 build. Running Wakelock detector with show system processes, i can see under Kernel wakelocks a gps-lock wakelock on both devices that's preventing the devices from going into deep sleep eg, phone on for about 4 hrs, 3hr 50min gps-lock wakelock, location services are turned off, the only way i found to stop this wakelock is by turning on flightmode.

Also a recent update to the Google Photos app seems to be generating a cpu wakelock of reasonable duration named /com.google.android.apps.photos/.onboarding.autosignin.AutoSignInAndSyncJobService

Possibly a google play services update has caused the issues with the gps-lock wakelock as before my phone and my wifes phone would easily last till the evening on a full battery with low to moderate use

Edit: just added screenshots of wakelock, after the 4hr and 7 min mark i put my phone in flight mode to kill the wakelock and keep the battery for a few photos, otherwise it would have died in another 1 hour at that point

Edit: Found a partial work around to slow the battery drain is to put the Location Services mode into Device Only mode, and then turn off location services, (I had the wifi scanning, blootooth scanning off for location services, as well as Location services turned off) - battery usage has decreased and the device enters sleep more often now.
[Galaxy S II Android Development] arnab:
It would be

TW_INTERNAL_STORAGE_PATH := "/data/media"
TW_INTERNAL_STORAGE_MOUNT_POINT := "data"

in boardconfig.mk, replacing

TW_INTERNAL_STORAGE_PATH := "/emmc"
TW_INTERNAL_STORAGE_MOUNT_POINT := "emmc"

/emmc definition is fed from the twrp.fstab that I made.

/emmc	vfat	/dev/block/mmcblk0p11	flags=display="eMMC";storage;removable

Its not a big deal. :p

---------- Post added at 08:30 PM ---------- Previous post was at 08:13 PM ----------

M supports non-emulated internal SD...I previously was the developer of motorola phones which had similar setup like us. They got the internal storage working in M. I will look into it.
[Galaxy S II Android Development] Lanchon:
thanks! ok i see how to do it! unfortunately no time for this now :(

i think data mount point is used for /data partition already? and it's probably "/data/media/0".

IMHO, best montpoints and names would be something like:

-sdcard or sdcard0 "Emulated SD Card" (mount --bind style)

-sdcard1 "Internal SD Card"

-sdcard2 "External SD Card"

i would use the same mountpoints that CM13 ends up using.

(emmc not a good name because 2 options reside there)
[Galaxy S II Android Development] arnab:
Ya that /0 will be given once its decided...I just gave a simple eg....First u guys decide whether to go with emulated or non-emulated. mount point is a name given to the actual path...the mount point name is used by scripts. like /data/media/0 wud be data bcoz it needs the initial startup point of any storage. like /sdcard which is defined by twrp.fstab as /dev/block/mmcblk1p1..so here mount point will be sdcard as Iam defining the /sdcard as mount point for the /dev/block/mmcblk1p1 path. Mount points are always the nodes from where any storage begins.
[Galaxy S II Android Development] Klaus20:
SuperSU 2.67 Beta is out

http://xdaforums.com/apps...ellow-t3219344
[Galaxy S II Android Development] Troubadour666:
correct link please :(

edit :)

http://xdaforums.com/apps/supersu/wip-android-6-0-marshmellow-t3219344
[Galaxy S II Android Development] Lysergic Acid:
Just as a device example, which doesn't work for us, http://review.cyanogenmod.org/#/c/121427/. Yes it's possible, but getting vold to recognize the path is tricky I guess, I always get dev/null for what's supposed to be the sdcard0
[Galaxy S II Android Development] kudos1uk:
It sounds like [MENTION=414800]arnab[/MENTION] might be able to offer some real help :fingers-crossed:
[Galaxy S II Android Development] TeutonJon78:
that's the part I didn't know. I've seen some devices where they mount the partitions in different ways so that it would mount correctly with different filesystems, just wasn't sure if that could be done with a partition being there or not.

Regarding the question of requiring a repit, perhaps it's best to do an Lanchon suggested and make i9100/i777 limited to 12.1 and make i9100emu/i777emu (or whatever) for cm13.x. Or potentially even better, since we can't force a repit, but most people have minimal data partitions, so you could just mount the old internal SD as the main storage and ignore the old data partition. If you don't want to repit, you just lose some storage. If you repit, you can get it all back. Having a limited size data partition is only going to become harder and harder in the future. Plus, that would give people an opportunity to increase their system size at the same point.
[Galaxy S II Android Development] Lysergic Acid:
He already does the best he can to help me, even on christmas where I was hanging with my family he was building at home lol
[Galaxy S II Android Development] Lanchon:
no you can't do that. they are FAT vs ext4. it would require reformat of sdcard, which is not acceptable. if it were i could just repartition form a flashable script.
[Galaxy S II Android Development] Dr AM:
Just tried wiping data from TWRP but it looks like it wipe the emulated sdcard too O.o

Sent from GT-I9100 - 6.0.1
[Galaxy S II Android Development] Lanchon:
of course!!!!!!!!!!!!!!!!!! twrp is built for non-emu sdcard!!
[Galaxy S II Android Development] Dr AM:
Didn't you write that wiping data will not wipe data/media !? I decided to try and it did wipe it , just like that [emoji14]

I don't care much cuz backed up evrrything before trying :)

Sent from GT-I9100 - 6.0.1
[Galaxy S II Android Development] Lanchon:
no! i said that TWRP BUILT FOR /DATA/MEDIA would not wipe sdcard.

the twrp you used is not for emulated sdcard. im sure of that because nobody ever published i9100 TWRP for emulated sdcard. and so, your sdcard was wiped.

if you use non-emu TWRP on emu device or vice versa, there will be problems like this.
[Galaxy S II Android Development] Dr AM:
Oh missed that part , thanks for the info :)

Sent from GT-I9100 - 6.0.1
[Galaxy S II Android Development] Droidriven:
Custom recovery by default is not supposed to wipe data/media period, what does emulated/non-emulated have to do with it?

I don't have this issue on my S2 D710.

Seems to me someone isn't doing something right when creating the ROMs and recoveries for this model.
[Galaxy S II Android Development] Stoku:
Busybox repartition script

Hey, you [MENTION=6159291]Lysergic Acid[/MENTION] and [MENTION=4141005]Lanchon[/MENTION] may be interested with this busybox repartition script for Defy. Look at resize.zip/tmp/script.sh, maybe it'll give you some hints.

I don't remember the all partitions in Defy, but for sure it has no internal memory. On S2 we could take some free space from preload.

Source of script.sh

#!/tmp/busybox ash

#WARNING!!! Use it only with https://github.com/Quarx2k/jordan-kernel/commit/043961208454075eef5e55b78fe896cf30f867da and only on Defy MB525/MB526 (Bravo not tested yet)!!!!!!
#Else will cause HARD BRICK!!!!

#Safecheck for kernels without commit.
if [ -e /dev/block/mmcblk1p21 ];
then

rm -rf /tmp/*
exit

else

/tmp/busybox mkdir /temp_sd
/tmp/busybox mount /dev/block/mmcblk0p1 /temp_sd
/tmp/busybox mkdir /temp_sd/bootstrap_temp

# Backup info which want MBM.
/tmp/busybox dd if=/dev/block/mmcblk1p2 of=/temp_sd/bootstrap_temp/bootstrap_system_sign.img
/tmp/busybox dd if=/dev/block/mmcblk1p3 of=/temp_sd/bootstrap_temp/bootstrap_prek1.img
/tmp/busybox dd if=/dev/block/mmcblk1p4 of=/temp_sd/bootstrap_temp/bootstrap_prek2.img

# Format new partitions!
/tmp/make_ext4fs -l 48M /dev/block/mmcblk1p6
/tmp/make_ext4fs -l 1091M /dev/block/mmcblk1p7
/tmp/make_ext4fs -l 627M /dev/block/mmcblk1p5

#Restore info which want MBM.
/tmp/busybox dd if=/temp_sd/bootstrap_temp/new_system_sign.img of=/dev/block/mmcblk1p2
/tmp/busybox dd if=/temp_sd/bootstrap_temp/new_prek1.img of=/dev/block/mmcblk1p3
/tmp/busybox dd if=/temp_sd/bootstrap_temp/new_prek2.img of=/dev/block/mmcblk1p4

################IGNORING NEXT LINES WILL CAUSE SOFTWARE BRICK!!!!###########
# Prevent write into MBM partitions
/tmp/debugfs -f /tmp/debugfs_cmd.txt
# CheckFS,
/tmp/e2fsck -L /tmp/badblocks.txt /dev/block/mmcblk1p5
/tmp/e2fsck -y /dev/block/mmcblk1p6
/tmp/e2fsck -y /dev/block/mmcblk1p7
#Check system partition again to fix.
/tmp/e2fsck -y /dev/block/mmcblk1p5
#############################################################################

#Cleanup
/tmp/busybox rm -rf /temp_sd/bootstrap_temp/
umount /temp_sd

fi
[Galaxy S II Android Development] Lanchon:
you are wrong.
[Galaxy S II Android Development] Droidriven:
That was more of a question to get an explanation, not a statement of fact.

I have never had or heard of there being a difference so I was looking for some understanding.

Learn to read what someone is saying before you try to correct them.

I've used i9100 ROMs and recoveries on my D710 with no porting and never had an issue with emulated/non emulated.
[Galaxy S II Android Development] Lanchon:
thanks but nope it doesn't help. i've already looked into the problem anyway and know how to repartition from a script. thanks!

---------- Post added at 04:17 PM ---------- Previous post was at 04:03 PM ----------

"Custom recovery by default is not supposed to wipe data/media period" is a statement of fact. and is incorrect.

"That was more of a question to get an explanation" "Learn to read" well to me it was a statement of fact. you learn to communicate. and besides there is no point in explaining because i already did on this very thread, and you even quoted my explanation.

"I don't have this issue on my S2 D710." "I've used i9100 ROMs and recoveries on my D710 with no porting and never had an issue with emulated/non emulated." of course didn't have issues, you very probably never used emulated storage. these phrases are strong hints that you didn't understand what we were discussing here at the time you wrote them.

anyway i don't have time for this, ill just try and learn to read some.
[Galaxy S II Android Development] Acid0057:
Hmm weird. I don't know then. Erase the data of Facebook and the browser
[Galaxy S II Android Development] S2Fred:
Hello guys,

yesterday I installed CM 13 on my beloved S2 and when changing the resolution to 180DPI I noticed that the contact app as well as the video record app crashes (the camera app works fine though). When changing back to 240DPI everything is fine again. Can anyone confirm this? Is there a solution out there without installing additional apps like contacts+, etc ?

Regards, Fred
[Galaxy S II Android Development] pappy_034:
I installed build from 25th June, and my phone keeps overheating and draining when locked! What to do?
[Galaxy S II Android Development] laptopu:
Boot into recovery and wipe data partition, several people reporting this issue. Don't install apps from backup, reinstall from play store. That usually fixes the problem.
[Galaxy S II Android Development] rINanDO:
I confirm this. It is because the image-resources couldn't be found. I fixed this in my private builds by simply renaming the image-files.
[Galaxy S II Android Development] ALIGATOR26:
Hello.How can i use Google Play Magazin?I installed the apk,but doesnt work.Tnx.
[Galaxy S II Android Development] tomtigerman:
Hello rlNanDO,

Please, could you explain how did you do that?

Thanks!