yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] JoshinPl:
@up

I think that calling data LA refers to media aka sdcard0 files that are not necessary to wipe while switching to another rom

Enviado desde mi MotoG3 mediante Tapatalk
[Galaxy S II Android Development] Lanchon:
i suppost LA is refering to sdcard, yes

---------- Post added at 07:36 PM ---------- Previous post was at 07:35 PM ----------

mtp works fine. going back depends on how you repartition.

---------- Post added at 07:58 PM ---------- Previous post was at 07:36 PM ----------

migrating the data across different file system types can be trouble with no temporary storage. maybe we can only do it if sdcard is less than half full. still not very efficient.

anyway, going forward you need to decide whether sdcard in cm13 will be emulated or separate partition (or two versions). without that decision we can hardly proceed.
[Galaxy S II Android Development] fireburner-de:
Just beeing curious, how does emulated sd work?

Will /data and /data/media be located at the same partition? And how will recovery then know to wipe just /data, but not /data/media?

But the ímo the hugest profit of this would be the possibility to have encrypted user data/media.
[Galaxy S II Android Development] Lanchon:
/sdcard is a FUSE filesystem backed by /data/media.

the FUSE fs emulates fat:

-no rights (well now there are rights in newer androids)

-case insensitive

over very different filesystem and rights.

so /sdcard in android 4.0 behaves as it did in android 2.3

recovery knows because its been compiled with a switch.

note that normality is /data/media. real sdcard is a thing of android 2.x
[Galaxy S II Android Development] fireburner-de:
So how i understand this:

There is one partition and /sdcard is an emulated filesystem pointing to /data/media, right?
[Galaxy S II Android Development] Lysergic Acid:
First thank you for explaining the users how an emulated sdcard works, I couldn't do any better :p

About the second question, the emulated sdcard seems to be a bit far away from what we can do ( talking about official releases of course ), and a separated partition for the sdcard is also far away, as I'm lost with this new vold 3.0 functionality, it doesn't seems to be made for physical sdcards at all. I'm down for the weird physical sdcard as it always has been, but we are out of luck. In the end, the first solution that is proven to work will be the choosen ( yeah sorry, I wrote a lot but I didn't say anything useful )
[Galaxy S II Android Development] Lanchon:
well thats the problem. "real" sdcard is such a thing of the past (mass storage "eject" from the PC side, no concurrent PC and phone access, the stupid and fragile FAT file system, etc) that i honestly dont know whether marshmallow actually supports it anymore. you might be running in circles with this. emulated sdcard might be the only option in android 6.

---------- Post added at 02:15 AM ---------- Previous post was at 01:52 AM ----------

it's not "pointing to", it's backed by, but yes.
[Galaxy S II Android Development] Dr AM:
Only issues I've found on emulated sdcard so far

- Isn't recognized on pc "I don't really care anyway [emoji14] "

- Some file explorers show permissions error unless I enable root on them "I don't care about this too [emoji14] "

But everything else works perfectly so not a big deal "at least for me"

And the 1GB-12GB pit is ALMOST a good solution

Sent from GT-I9100 - 6.0.1
[Galaxy S II Android Development] Naudiz:
I had another (maybe crazy) idea to approach sdcard problem:

Could it be possible to mount /data/media by default and additionally mount int-storage in the same way as an ext-storage would be mounted?

This way users with stock PIT would have a rather small (but working) 2GB default storage, but should be able to use Marshmallow's crazy "adopt" feature to extend it with the internal-but-treated-as-external-SD.

Since I'm not a developer, I have no idea if this will be easier to implement or possible at all, it's just an idea I had last night while I couldn't sleep, lol
[Galaxy S II Android Development] Lanchon:
you mean choosing to stick with /data/media in the first place which is the important thing. then yes this hack would be possible. but i don't know how well android handles 2 sdcards; remember we have an external sd here.
[Galaxy S II Android Development] Naudiz:
Indeed, this is the main question. It would be necessary to mount 3 storages total.

/data/media as sdcard0, the internal storage as a pseudo-external sdcard1 and the real external SD as sdcard2.
[Galaxy S II Android Development] Lanchon:
if marshmallow actually does not support non-emulated sdcard, then this might be [MENTION=6159291]Lysergic Acid[/MENTION]'s only choice.

the bundled recovery would just work. it might not be able to flash from anywhere but /data/media -i dont know-, but that's hardly a problem given that adb sideload works. and if it's a problem, then it's a CM-wide problem, not i9100-specific.

users of PITted phones might want to totally wipe the file system away from the vestigial sdcard partition, so that android doesn't mount it and it doesn't needlessly show up on the interface. LA would need to make sure the phone boots without the internal sdcard partition able to mount, just as it is without the external sd.

for TWRP, we would need an alternate build. TWRP has to know it is a /data/media device in order to backup and wipe correctly. it may be as simple as setting the RECOVERY_SDCARD_ON_DATA flag, though it would be better to also rename the storages:

-Emulated SD card

-Internal SD card

-External SD card

again, TWRP should be able to boot without the internal sdcard partition able to mount, just as it is without the external sd. [MENTION=414800]arnab[/MENTION] would be our savior if he did this.

unless someone figures out non-emulated sd on CM13, this looks like the best way forward so far. (actually it might be the best way forward even if non-emulated sdcard becomes possible.)
[Galaxy S II Android Development] chrisXL:
[MENTION=6560258]the.gangster[/MENTION], it seems the script don‘t survive to reboot, it's true?
[Galaxy S II Android Development] :
Totally agree. If we can somehow fix this issue and have back light timeout working as it should, as well as BLN, perfect. In the meantime, I'm quite happy flashing the BLN-Mod and synapse.

Personally, I don't believe it's a matter of "coping" with the issue. If a fix is possible(that is, if there are people willing to spend the time to fix it), then we all wait patiently and use the terminal or flash .zips to (sort of) fix the issue.

Put it this way: if the choice was between having BLN/back lights as they are now on the stock kernel, and having [MENTION=414800]arnab[/MENTION] build his CM13 kernel with the same features(+/- BLNWW) and downsides with time out, then I think that once his custom kernel is released then the BLN feature on the official kernel should be reverted. By what you say, this is a moot point as it will be fixed eventually.....

I agree. BTW the workaround is what has been posted here recently - use BLN-Mod and synapse until a fix is found, or use the echo command in terminal
[Galaxy S II Android Development] laptopu:
Latest nightly 3 June cannot dirty flash after 3 downloads md5 checksum error each time, anyone else having this?
[Galaxy S II Android Development] the.gangster:
That's right.

But setting it permanently upon reboot can also be done the same way as already described for the BLN notfication itself:

echo echo \"1000\" \> /sys/class/misc/notification/bl_timeout >> /data/local/userinit.sh
chmod 777 /data/local/userinit.sh

so for someone, who has not yet modified anything in there and who does not want to activate BLN nor wants to use BLN_MOD with Synapse, above would set the LED timeout to 1 second on each reaboot.

So no more worry.

(EDIT: once [MENTION=414800]arnab[/MENTION] switched defaults of bl_timeout from 0 to non-zero value this can also be used to permanently switch of button lights again by sending "0". )

The combination of activating BLN and setting an LED timeout of 1.5s without using BLN_MOD and Synapse (why ever one shouldn't want to have the controls) would look like this:

echo echo \"1\" \> /sys/class/misc/backlightnotification/enabled >> /data/local/userinit.sh
echo echo \"1500\" \> /sys/class/misc/notification/bl_timeout >> /data/local/userinit.sh
chmod 777 /data/local/userinit.sh

Above code sniplets will always append an existing userinit.sh. If you never used one so far and want to play around with the settings multiple times, replace the ">>" only in the first line with a single ">" to rebuild the userinit.sh from scratch.

You check the file using this:

cat /data/local/userinit.sh

which should usually return "/system/bin/sh: cat: /data/local/userinit.sh: No such file or directory" on a stock ROM without modifications like the above.

Otherwise it should show you its contents, containing the code as above (the parts between the first "echo" and the ">> /data/local/userinit.sh" without the "" needed for masking).

Make sure you run above with root, or place an 'su' on top of each of the code sniplets. Left that away for readablity. (btw: you only need to run the chmod once as long as you don't delete the file)

Hopefully this explains again a little bit more one of the options we have already by terminal/adb shell to work around the current issues. And as it is placed in /data, it will even survive flashing of new nightlies as opposed to the Synapse configuration which is held in /system, as some of you realized already.

Regards
[Galaxy S II Android Development] Switch123456789:
I would like to have an explanation too. Since I have no Wifi, I can only use mobile data, and "Android OS" ate up all of my volume every month. I monitored the connections of Android OS for just 6 minutes and found many connections to more than 10 IP's. (hotspot turned off of course) This is a serious issue and a huge amount of people complaining about that on the internet, even with stock ROMs and/or factory reset, most of them are Samsung-users with Android 6.0.1. But I can't find any solutions or at least explanations.

screenshot shows that Android OS almost used 80MB, these are my stats after JUST 3 DAYS. I'm doomed without a solution, since its also occupying my already slow 64kbit/s gprs connection, (even right now). I'm using 2016-05-22-build.
[Galaxy S II Android Development] mihirtherocks:
I have already done the repartitioning before while flashing 5.1.1(1 GB system 4 GB data).so is it again required?
[Galaxy S II Android Development] TriboDoP:
No - just clean install cm13 + gapps + isorec recovery twrp 3.0.2-0.zip in one go.

(you find this zip in twrp thread: at the beginning of thread is a black line. In this line tick on Downloads)

Alter all this you could update to latest twrp recovery:

-download twrp 3.0.2-1.img

- in twrp recovery 3.0.2-0 select this 3.0.2-1.img File

- select recovery under the partition selection

- swipe to start the flash

- reboot
[Galaxy S II Android Development] samarium:
I don't really want to get into a shell syntax argument, and won't be commenting on it further, but quoting the 1000 is totally unnecessary. When I first saw it I thought the the /sys interface file was weird and required quotes and then I saw you were generating script, but using redundant quotes.

echo echo 1000 \> /sys/class/misc/notification/bl_timeout >> /data/local/userinit.sh

Thanks for the code, I'll add it to my userinit.sh.
[Galaxy S II Android Development] jojobg:
Search the thread I have posted workaround steps... and no it went from the first time for me this time, compared to the previous builds.
[Galaxy S II Android Development] the.gangster:
[MENTION=2687058]samarium[/MENTION]

you are right and I do know they are not required if used like explained above. I actually don't use them for me neither. But there might be some usecases for other methods, so I kept posting the "safer" way of masking it.

Also not to have such questions here like: "But in arnab's posts (and bln_mod scripts) the values are always quoted. Do we need it or not?"

But obviously, that didn't work either. But anyway: You are 100% right.
[Galaxy S II Android Development] Pissa:
Hi guys, noob question here!

Just flashed, everything's fine, just one problem: how to enable writing rights to all apps to the external sd?!

I can't save photos on external sd, I can't delete or move files to external sd, always access denied.

I tried with es file explorer with root rights but it seems not working.

After flash I had a popup asking me if using the external sd as internal memory or transfer device (or something similar, can't remember), I choose the second one, is that the error?

Thanks!
[Galaxy S II Android Development] idos601:
Can I use an external USB DAC in Andriod 6.0 on saumsung S2?
[Galaxy S II Android Development] samarium:
There are plenty of more verbose explanations on the web. If you want to take the SD card out and be able to plug it in elsewhere, then you wanted "portable" ie "transfer". Using it as internal memory expansion has lots of potential negatives, so do some reading.

As for writing to the SD card, the app doing the writing needs to request permission, so unless to app has been upgraded to ask permission you are probably going to continue to have trouble.

I stopped using ESFE a while ago when they irritated me with too much advertising, switched to Solid Explorer. SE will ask for access. Not sure about the camera app, I don't take enough pictures to make it worth while to save to portable storage. That is my experience on other MM platforms. Flashing my i9100 soon.
[Galaxy S II Android Development] aminya:
If that is real I will go back to 5.1.1 :mad::eek:
[Galaxy S II Android Development] arnab:
Android Apocalypse...A doomsday iteration. :D
[Galaxy S II Android Development] chrisXL:
Lol. No, I can't go back to 5.1.1, now that screencast works! Lolol
[Galaxy S II Android Development] jeefo_:
How can I solve this problem? Can you help me?
[Galaxy S II Android Development] Klaus20:
I get following error message with restore: cannot restore system ... mounted read only

Sombody habe an idea how can I restore my backup with TWRP ??

Regards Klaus
[Galaxy S II Android Development] Dobber_S:
Go to the main menu in twrp thrn go to mount and there you can mount system
[Galaxy S II Android Development] Sub_Zero2:
I've fixed the problem with recovery, a commit has been uploaded for review:

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

http://review.cyanogenmod.org/#/c/147830/
[Galaxy S II Android Development] MARCOSOFT:
Wi-FI Battery - History Details

Does anyone else have this anomaly?!

Even with Wi-Fi off and area without Wi-Fi in Battery-History details, shows that Wi-Fi is always on and with network!

How is it possible if not true?!

Has anyone checked?
[Galaxy S II Android Development] the.gangster:
That's the location search in "High accuracy" and "Battery saving" modes.

Go to

Settings -> Location -> Menu (the the dots) -> Scanning

and disable 'Wi-Fi scanning' there
[Galaxy S II Android Development] GreekDragon:
I'll call it "independence day ":p:p
[Galaxy S II Android Development] p3dboard:
Check location and in settings check to see if wifi scanning is on
[Galaxy S II Android Development] Wahaj_Alden:
I installed the rom and it is working very good but it is showing me that SIM card is not inserted, I returned back to 4.1.2 and the sim card is working, then installed cm13 again and the problem still not fixed, I tried to install some modems but the sim card did not work, please help :confused: I want this rom for my device :crying::crying:

I am using CWM Recovery 6.0.5.1
[Galaxy S II Android Development] Fasullo:
I do have the same problem. WiFi is reported to be always on even if it's not true.

Ops... the wifi scanning option was enabled!!!

I'm sorry. :)
[Galaxy S II Android Development] Klaus20:
When the Phone is switched off and I am connecting it with USB to charge, my Mobile Phone is restartig

and if I switch it off again it is starting again as well.

Habe somebody an Idea what is ging wrong.

Regards Klaus
[Galaxy S II Android Development] alienflorina:
that's after 4 hours idle, without any notifications coming. Why bln has so big wake time?

Is it OK to greenify synapse?
[Galaxy S II Android Development] mrfrantastic:
I get FCs if I leave/end apps with the hardware back-key. I am on 20160604 nightly.

Edit: not a CM13 problem. Just forget what I said ;)
[Galaxy S II Android Development] kosmasgr:
No , don't greenify synapse.also I don't have this wakelock. Make a clean install the next nightly
[Galaxy S II Android Development] makix13:
I had same symptoms when the USB connector started to fail.

S2 Cyanogenmod 6.0.1 [official nightly] - arnab isorec twrp - Xposed [official framework]
[Galaxy S II Android Development] Gent':
how to install xposed ?
[Galaxy S II Android Development] Klaus20:
How die you fix it ??
[Galaxy S II Android Development] alienflorina:
I'm on a 28/5 clean install. I've greenified synapse and bln still working though.

Gonna leave it idle again tomorrow to test again
[Galaxy S II Android Development] Gent':
which one to select?
[Galaxy S II Android Development] reepje123:
The S2 has an arm chip, so arm is the right choice.
[Galaxy S II Android Development] Gent':
arm64 or arm
[Galaxy S II Android Development] Acid0057:
Arm
[Galaxy S II Android Development] makix13:
Replace it, you can try buying the components, in YouTube you have many good videos about it, see it and read all the info, in my case I send to repair

S2 Cyanogenmod 6.0.1 [official nightly] - arnab isorec twrp - Xposed [official framework]

---------- Post added at 06:39 AM ---------- Previous post was at 06:37 AM ----------

Follow official thread http://xdaforums.com/showthread.php?t=3034811

S2 Cyanogenmod 6.0.1 [official nightly] - arnab isorec twrp - Xposed [official framework]
[Galaxy S II Android Development] reepje123:
Arm, if it was arm64 I would have said that.

The S2 is btw a bit too old to be able to have a 64 bit chip.
[Galaxy S II Android Development] rahulbrand:
Im using cm13 5/6/2016 build..Is there any way to adjust the time of long press back to kill app?
[Galaxy S II Android Development] Maxicus1:
Hey,

is Gello already merged into our rom? I mean i read all the changes in the changelog but i had thought, there is a separate icon for gello besides the regular browser icon.

Do i need an APK or is the "Browser"-App already Gello?
[Galaxy S II Android Development] OT-Xtreme:
the bummer with gello is that isn't syncing with Google account, and no adblock yet.. hope the official release will include those optimizations and more ?
[Galaxy S II Android Development] LeBourrin:
No Gello is too big for the ROM partition. Lysergic Acid choose to not inclut it for now.
[Galaxy S II Android Development] iistoryahi:
Build 06-05-16 good in battery with heavy use , Just to inform
[Galaxy S II Android Development] alienflorina:
Is it a clean flash? Or via ota?
[Galaxy S II Android Development] chrisXL:
Only switch on/off. See last entry in developer options
[Galaxy S II Android Development] iistoryahi:
Via OTA
[Galaxy S II Android Development] rayann:
Hi, guys!

Why backlight of sensor buttons turn on when you touch the screen, but not only when you touch them?
[Galaxy S II Android Development] Dr.Fix:
I don't know if its latest build or greenify (I installed both recently) but bln seems crazy, it makes keys turn on randomly when phone is idle, even if no notification is coming.

I'm running greenify with no root, no xposed, not using experimental notifications settings and not greenifying any system app, nor synapse.

Leds randomly blink one time. They turn on for some seconds and then they turn off (sometimes they stay on).
[Galaxy S II Android Development] Gent':
Battery life is horribleeeee ?
[Galaxy S II Android Development] CHEF-KOCH:
Android OS shows e.g. DNS requests which was done via root and of course all other apps which 'consume' bandwidth. If you would block it none of the apps would work anymore. The data in here are also for OCSP security checks, push (coming from google play services) and other stuff. Please read this and this. If you use Facebook and other apps with a lot of push and background stuff it consumes a lot of stuff, this is 'normal'.
[Galaxy S II Android Development] Wahaj_Alden:
SIM is not working :confused::confused:
[Galaxy S II Android Development] DTSParsley:
bcmon.apk doesnt work. Why ?
[Galaxy S II Android Development] karrlito:
I hate that too... If someone knows how to put the wifi in monitor mode in this rom share the info.
[Galaxy S II Android Development] Pailak:
Capacitive buttons

I upgraded to last night, and capacitive buttons are always enabled.

How to Keep on tactile feedback

Thank you
[Galaxy S II Android Development] the.gangster:
Welcome to XDA.

Read about that here: http://xdaforums.com/showthread.php?p=67114062 and the posts of that date and you'll know.
[Galaxy S II Android Development] Pailak:
Dear colleague,

I already have installed CM13 with 4gb of ram and nano GAPPS TWRP (by-arnab) from night-cm-13.0-20160329 NIGHTLY-i9100 following the brilliant work and help this team to lay people like me take advantage of this knowledge.

Last installed cm 13.0-20160425-NIGHTLY-i9100

Yesterday installed cm 13.0-20160608-NIGHTLY-i9100 and buttons always Capacitive lit.

I appreciate your quick response and following adb shell command but not sure if correct, because not much intimacy with adb commands must be doing something wrong.

C: \ WINDOWS \ system32> adb shell

shell @ i9100: / $ echo 1000> / sys / class / misc / notification / bl_timeout

/ System / bin / sh: can not create / sys / class / misc / notification / bl_timeout: Permission denied

1 | shell @ i9100: / $

Can you help me again

Thank you
[Galaxy S II Android Development] Gent':
install this https://github.com/kularny/BLN_MOD/releases

and use "synapse" to control it.U can find it in playstore
[Galaxy S II Android Development] ajislav:
You need to be root to run the echo command. So:

1) adb shell

2) sudo su

3) echo 1000 etc.

Or try

sudo echo 1000...
[Galaxy S II Android Development] OT-Xtreme:
Does anyone else have force close when using musical.ly app, iv tried 4.8.5/4.8.4/4.8.0 and gave all permissions but always FC cant use it
[Galaxy S II Android Development] Pailak:
without success

without success

C:\WINDOWS\system32>adb shell

shell@i9100:/ $ sudo su

/system/bin/sh: sudo: not found

127|shell@i9100:/ $ sudo echo 1000 > /sys/class/misc/notification/bl_timeout

/system/bin/sh: can't create /sys/class/misc/notification/bl_timeout: Permission denied

1|shell@i9100:/ $
[Galaxy S II Android Development] Kurt Krummbein:
try:

adb root

adb shell

Gtz

Kurt
[Galaxy S II Android Development] Pailak:
thank you so much : D

perfect operation
[Galaxy S II Android Development] fireburner-de:
There is no sudo support.

But su will give a root terminal.
[Galaxy S II Android Development] blackcat.vinu:
i re-partitioned my galaxy s2 and flashed cm13 nightly successfully,i flash 1Gb-6Gb pit.

in storage&usb internal storage is 5.91gb shows but portable storage sdcard0 shows corrupted. cm-13.0-20160606-NIGHTLY-i9100

when i click on it for format it gives error Command xx volume partition disk: 179_0 public

failed with 400 xx Command failed ..... like that .

in CWM recovery i format sdcard0 as default.

need help.
[Galaxy S II Android Development] the.gangster:
You didn't follow my advice to also read the other posts of that day nor did you take care of the note within my post, that root is needed. I would bet, next post you'll come around wondering why this setting doesn't/didn't survive a reboot. So please try to read a little bit more in future. Thx.
[MENTION=4339767]blackcat.vinu[/MENTION]

Sorry that I don't believe you so far. You would be the first to experience a "SD is corrupted" message although the internalSD got properly formatted AFTER repitting with ODIN.

But as you think you formatted already, why not try reformatting in Recovery and taking screenshots (press Volume down+Power) this time?

If your issues still exist after doing that you would even have convinced me.

;)