yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] samarium:
While I like the emulated storage, and will continue to use it, thanks for highlighting exactly what was done, will make it easier if I ever get around to rebuilding n7000 with emulated storage,
[Galaxy S II Android Development] anton-:
USB tethering is not working in the last rom version. I have not checked in the previous ones. In the computer the logs are that the phone is attaching and detaching all the time.
[Galaxy S II Android Development] ripee:
I am not developing for the i9100, I only build for myself from rINanDO's sources and upload my builds for safekeeping and for anyone else who would like to use them.
[Galaxy S II Android Development] toffiko:
I repartitioned all fine, since usb port in virgin's condition, tight as hell as for nearly 9 years old phone. I assembled it from some other parts of 'spare and repair' ones. Anyways all is installed now and working like a charm, however there is one thing I liked to mention, I noticed some constant wakelocks on CPU with using 'Cool Tool' app and the overall performance was laggish, so I thought this may be related to EFS partotion and of course I have some old backup img from 2 years ago made with HC-ktool so I restored this EFS and it seems system is a bit snappier and Im not 100% whether this might been possible root cause or maybe this is only placebo effect.. how do you think is this much likely possible that EFS was causing more drain in battery? (battery life is acceptable but it seems drain is from system not from apps processes because I keep monitor their battery usage). Im only curious how other users battery usage look like with latest version 02.02.2019?

Thank you all for the keep alive such great project.

btw. I am using modem I9100XXMS4, maybe some other would be better for battery life? also just mention all my restored apps had clean start with Not restore cache/temp files from titanium backups.
[Galaxy S II Android Development] rINanDO:
New build is up!

Build #8 2019-2-16

IMPORTANT: You need to migrate to emulated storage using TWRP 3.1.0-EMU-MIGRATION-M-20170318

See opening post for detailed installation instructions.

Overall state: Stable-ish

Android build: 9.0.0-r31

Updated sources

Screen tearing fixed, thanks to [MENTION=5695278]ChronoMonochrome[/MENTION]

Fixed graphical glitch at wake up

Implemented LiveDisplay 2.0

Known issues:

Lagging GAPPS and crashes during first start.

Downloads:

TWRP 3.1.0-EMU-MIGRATION-M-20170318.zip

lanchon-repit-20170115-system=1.5G-data=max-sdcard=min+wipe-preload=min+wipe-i9100.zip

lineage-16.0-20190216-UNOFFICIAL-i9100.zip
[Galaxy S II Android Development] bersem:
Edit: done !

Data traffic monitor is woking :D :good:

So lets test it [MENTION=3742928]rlNanDO[/MENTION] :good:
[Galaxy S II Android Development] bersem:
[MENTION=3742928]rlNanDO[/MENTION]

I do not know what criteria it has to meet to become official but I think this build is perfect now.

It is not Stable-ish for me it is Stable and ready to be official

rlNanDO what are you waiting for?

br !
[Galaxy S II Android Development] ChronoMonochrome:
Hi,

is there anything kernel-specific to fix this glitch? I think we are having a rare glitch at the wakeup since display drivers were updated from n7100

(I don't know if it's the same glitch as on S2: the display becomes violet for a short time).
[Galaxy S II Android Development] linusdan:
It still lacks SELinux as enforcing, performance testing with the GAPPS installed, adapting some code snippets so that it does not affect other appliances that use the mainline condition and approval of the LineageOS team charter criteria. Therefore, slowly with the pain that the saint is of clay :)
[Galaxy S II Android Development] Catfish78:
Hello,

sorry when i have to say: i agree :) , this build is the best ever, really fast and smooth. All apps are working for me. Really great work! Thank you!

Edit: power consumption is low, too. CPU switches fast to 100 MHz, one core is fastly switches oft, too. And it seems to be cooler!
[Galaxy S II Android Development] joam280:
Hello, I have a problem, when installing the rom I got an error and could not install. I have returned to rom stok and it does not allow me to reinstall the rom.

When I root and install cwm it does not allow me to continue with the installation. Twrp 3.1 gives error.
[Galaxy S II Android Development] bersem:
https://xdaforums.com/galaxy-s2/help/preparing-clean-loss-data-installation-t3712409

repit and continue here according upgrade / update instructions on OP !
[Galaxy S II Android Development] DevisG79:
Maybe you should start reading this: https://xdaforums.com/galaxy-s2/help/preparing-clean-loss-data-installation-t3712409 and continue with the instructions in OP of this thread.
[Galaxy S II Android Development] Lord 7thSeeker:
Hello,

First off all thanks for a great ROM, i successfully installed latest pie and its working great. I have 2 questions:

- can i install supersu or something to get root access and

- how to enable usb transfer file.

Sorry if there is a answer I just cant find it.

I found solution
[Galaxy S II Android Development] bersem:
Developer Settings >> Root access bultin

I dont know that Supersu works on LOS 16.

BR !
[Galaxy S II Android Development] Opcio1:
Hi,

I just updated to LOS 16 build and I have an issue with cellular network searching. When I want to manually select a mobile network by disabling automatic network registration, it says that there weren't any networks found. I can use the one it has connected me to automatically, but I can not switch to another one. I already reported this for the 15.1 build. Did anyone look into this or can anyone confirm the issue?

Thanks
[Galaxy S II Android Development] rINanDO:
I called stableish because I think and experience it is stable. But it will be real stable if others say it is stable too ;) like you so now ;). There are still some things to be done before going to official. Selinux, textrelocation for sensors, pthread libmali issue (already done thanks to [MENTION=5695278]ChronoMonochrome[/MENTION]), resolving framework hacks.

What am I waiting for.... Hmmm I just need time...
[Galaxy S II Android Development] rINanDO:
Hi,

No, I made a patch for restoring mdnie settings for implementing live display 1.0. But then I saw someone already was working on 2.0. It only needed some adjustment in code and kernel to get it working for s2. So I reverted my restore mdnie patch (which caused the glitch in the first place) because it wasn't needed anymore.

On s2 the display sometimes gets scrambled and hangs on wake up. But pressing button sleep and wake up fixes it.
[Galaxy S II Android Development] bersem:
First of all, what comes to my mind is the modem. Did you try a different modem? Did you have this problem on Stock ROM ? Did you try to reset network settings?

Of course you are right.

But do not take too much time. :D As an "uknowing user" in the developing area it is obviously not clear how much work it is and what you have to do.

And finally many thanks for your hard work [MENTION=3742928]rlNanDO[/MENTION] :good:
[Galaxy S II Android Development] Ginosius:
Hi I've followed everything and successfully migrated from los 15.1 to this rom (build 8).

Only both internal and external sdcard partitions are formatted with fat32.

Wouldn't it be better to format the internal one with ext4? (journal, permissions etc..)
[Galaxy S II Android Development] samarium:
If you have installed build8, and done the migration steps as specified then see below. If you didn't do the migration then you probably want to do the migration first.

internal sd card post migration is not a separate partition, but a subdirectory of /data/media, so is already ext4.

external sd card on mine is still vfat, and if you want extract an plug into a windows box then you probably want to keep it as vfat. In general I prefer ext4, as only external box I share with is linux, but haven't got around to trying this on my i9100. If ext4 seems like a good idea for your usage then I suggest you see how you go reformatting to ext4.
[Galaxy S II Android Development] ChronoMonochrome:
Ok, thanks for the reply!

As for sensors / textrelocations, I still was having some weird issues with AKM sensors, so I switched to replicant OS version (some fixes were required but finally it seemed to start working properly).

For the rest blobs having text relocations (such as libsec-ril.so), there's a patch to override executables SDK version (similar to libMali hack):

https://review.lineageos.org/c/LineageOS/android_bionic/+/226183

It seems that this change has superseded an earlier patch that was allowing text relocations (will require to set target SDK to pre-M version to avoid text relocation errors).
[Galaxy S II Android Development] rINanDO:
Ah I see! I saw those patches a while ago, but I didn't see any relevance back then.... Thanks!
[Galaxy S II Android Development] joam280:
unsuccessfully, all installations aborted

:confused::(

---------- Post added at 05:48 PM ---------- Previous post was at 05:46 PM ----------

unsuccessfully, all installations aborted :confused::(
[Galaxy S II Android Development] preclix:
Good work

New LOS 16 on my old S2 run like a dragon! Very good work mens. Smooth and quick dragon :)

One observation:

I like turn on back diode by side-button (when screen is off). But the light run only about 5 seconds and go off. Some improvements to the future?

And is possible connect phone as USB storage? (in menu all options are grey) or it is tax for emulated storage?

Thanks for your work on good old S2.

Faithfull user
[Galaxy S II Android Development] Opcio1:
I started having this issue with LOS 15.1, on the official 14.1 build it worked. However, on LOS (don't remember stock) I always had this issue where I had to disable mobile data in order to find anything. While it already seemed weird back then, I didn't bother too much because I just had to disable internet while searching networks. But now disabling mobile data does not help anymore.

My current modem is XXMS4, I don't think I have ever used a different one while on LOS. What modems are recommended?
[Galaxy S II Android Development] samarium:
Enable in developer options.

There used to be a persistent notification, certainly in older n7000/LOS/nightowl/@bauner not sure about i9100, where actual usb connection mode could be selected from notification when usb was connected ie for me charge only or MTP or RNDIS were useful. Much more convenient.
[Galaxy S II Android Development] pocketrule:
Long press power button for torch works fine for me.

Try reboot and test again. If that doesn't help, try a new (clean) flash.
[Galaxy S II Android Development] imiimiimi:
i tested LOS 16.0r31 by Emulated Storage but it was so slow, i downgrade to android 7.1 (viper) but roms recognized 8 MB non-emulate storage as default storage.

-what lanchon-repit setting should i set to correct it?

-should i change recovery?
[Galaxy S II Android Development] Ginosius:
I've been using the rom for a couple of days now.. and I notice that sometimes the phone doesn't wake up from standby any longer.

This happens when the phone has been charging for like 20 minutes or so.

I have to press the power button for a very long time, then the phone will reboot and work again.
[Galaxy S II Android Development] bersem:
Go back to stock ROM and repeat the procedure again. You have done something wrong. Is it a GT-I9100? Check which system file format do you use? Which errors are displayed when flashing exactly?

Why is it so important for you to register on foreign networks when you are automatically registered into the home network?

There is a topic here about modems. Warning: Make a backup of the EFS folder if you decide to do it. Flashing without RIL is recommended.

Make a clean flash with odin repit file or Lanchon tool and without EMU-TWRP.

I used 1GB/1.5GB System and 6GB Data

Check partitions in TWRP, format and sizes..

---------- Post added at 09:19 PM ---------- Previous post was at 08:56 PM ----------

No problems at all. Maybe clean flash can solve your problem or its a HW issue.
[Galaxy S II Android Development] rINanDO:
This occurred to me too 2 times. Phone is awake, but no display. A sound is heared when connecting/disconnecting usb. I don't know the cause. Next time I try to debug.
[Galaxy S II Android Development] preclix:
Yes. I know. But in this version this option from notification after USB connection is missing. After enable from developer options still not work and windows show info about unknown device

---------- Post added at 08:35 AM ---------- Previous post was at 08:16 AM ----------

On power source or USB charging works well, but on battery works about 2-5 seconds and goes off. After this, new power on light doesnt work (touch icon doesnt work too)-need restart or connect charger (with touch icon reset) after with button works-on charger.

If I power on light with icon (screen on) diode lighting until display goes off - same time LED is off. On charger works still (even if the display is off)
[Galaxy S II Android Development] joam280:
Problem solved thanks

Enviado desde mi Redmi 5 Plus mediante Tapatalk
[Galaxy S II Android Development] bersem:
I remember this Problem is present since LOS 15.1. Torch works not properly it goes off and cannot be turned on again.

Icon showing "on" status and nothing happens after touching on it.
[Galaxy S II Android Development] rINanDO:
Hmmm... I thought I included the wakelock patch a while ago.... I will check this.
[Galaxy S II Android Development] Opcio1:
Well, I live in Austria and my provider is 3AT. A couple of years ago they aquired Orange AT. For that reason I can now connect to either the 3 Network or the former Orange one . Then there is also T-Mobile AT. They have an agreement that 3 customers can connect to their network as well. However, the T-Mobile network only allows me to use EDGE, therfore other ones are more preferable if available. Also, I used to have an extra package which allowed me to use 3 (the provider "Three") Networks from other european countries. To make use of that, it was absolutely vital to be able to manually select the local 3 Network, because if the phone decided to connect to another provider the phone bill would go up like crazy. This might not be that relevant anymore because of the EU roaming thing, but if you are in a foreign country you usually can connect to multiple different networks and maybe sometimes you want to switch the network for what ever reason.

tldr; Sometimes you want to switch networks depending on which country you are in.

Or maybe you just want to look at what networks are currently available?

I tried to use the XXLS8 modem - same result.
[Galaxy S II Android Development] preclix:
it has something to do with - display off (on battery). Because if I turn on the light by icon and side button turn off the display - light OFF but icon show ON.

yes. something like that. But icon show off status (touch not change) and light not work. I'll still watch this problem.
[Galaxy S II Android Development] K9100ii:
Wake up when charging after a while issues here too and no MTP

I sometimes have the same issue with the display not displaying anything after a while charging on standby and trying to wake the phone up from standby. I too have to long press the power button, where the phone will reboot. Also, has anyone else got the issue of MTP not working? I had to install this ROM with my SD card, and even after installation, MTP still doesn’t work after going into developer options and setting “Default USB configuration” to “File Transfer”. Otherwise, its a good ROM.
[Galaxy S II Android Development] samarium:
MTP interesting. Previously it was working, however with the current build I only see MTP for external sdcard, and this shows irrespective of what I have set in settings/systems/developer-options/usb charging or file-transfer. Also the settings/connected-devices/usb/* options don't seem to work being all faded/disabled.

In TWRP both "internal/emulated" and external sdcard work in recovery via MTP, while non-emulated storage is visible, but is empty/minimum-size so I haven't tried to access..

When I tried to take a screen shot to illistrate the settings menus, the screenshot function failed, notification says "Can't save screenshot due to limited storage space.

When I connect with adb and poke around /sdcard doesn't exist:

# ls -l /sdcard
lrwxrwxrwx 1 root root 21 2019-02-21 11:21 /sdcard -> /storage/self/primary
# ls -l /sdcard/
ls: /sdcard/: No such file or directory
# ls -l /storage/self
total 0
lrwxrwxrwx 1 root root 19 2019-02-21 11:21 primary -> /mnt/user/0/primary
# ls -l /mnt/user/0
total 0
2|:/ # ps|grep vold
1|:/ # ls -l /data/misc/vold
total 0
-rw------- 1 root root 0 2019-01-22 16:24 convert_fde
# ls -l /data/media/0
total 40
drwxrwxr-x 2 media_rw media_rw 4096 2019-02-08 14:35 Alarms
drwxrwxr-x 2 media_rw media_rw 4096 2019-02-08 14:35 DCIM
drwxrwxr-x 2 media_rw media_rw 4096 2019-02-08 14:35 Download
drwxrwxr-x 2 media_rw media_rw 4096 2019-02-08 14:35 Movies
drwxrwxr-x 2 media_rw media_rw 4096 2019-02-08 14:35 Music
drwxrwxr-x 2 media_rw media_rw 4096 2019-02-08 14:35 Notifications
drwxrwxr-x 2 media_rw media_rw 4096 2019-02-08 14:35 Pictures
drwxrwxr-x 2 media_rw media_rw 4096 2019-02-08 14:35 Podcasts
drwxrwxr-x 2 media_rw media_rw 4096 2019-02-08 14:35 Ringtones
drwxrwxrwx 2 root root 4096 2019-02-08 15:18 TWRP
#

IIRC migration was a bit messy, but I only have a minimal install at the moment, so I'll do a full wipe and see what changes.

FYI: full wipe, no migration, and I can see /sdcard on the phone and in MTP when enabled from developer options.

Settings/Connected-Devices/USB is still broken, have to go into developer options. I much prefer the setup where developer options or somewhere else sets the default, and a persistent notification happens when USB is connected and I can swipe down and select USB operation mode, ie charging-nodata/MTP/RNDIS/etc, but maybe I'm confusing what with another build, maybe older n7000 [MENTION=799465]bauner[/MENTION] build.
[Galaxy S II Android Development] K9100ii:
I have "dirty flashed" from LineageOS 14.1 after that had no more builds and no support anymore where MTP never worked with MTP host crashes. I don't see anything for the internal (emulated) storage or my external SD card, as the device doesn't get detected by my computer (plain Arch Linux and KDE, doesn't work in Windows 10 or Xubuntu 18.10 either) regardless if I have the default USB configuration set to file transfer or not. MTP does not work in TWRP either. By the way, neither does ADB over USB work and I have to use ADB over WiFi. /sdcard does exist for me and points to /storage/self/primary . I could try a temporary full wipe with a nandroid backup, however, if I was to need to use the install with a full wipe, then I'd lose a lot of apps and data from over years and I wouldn't like that. Nothing works, not even developer options or TWRP. Is it a dirty flash that's the issue here, or worse a hardware problem?

Edit: looks like a clean flash doesn’t help, MTP still doesn’t work in either TWRP or the ROM with “File transfer” again for “default USB configuration”. I don’t know how I’m going to fix this, and I think now its maybe a hardware issue. :( While I could try the stock ROM where I believe it used to work (maybe not anymore if I was to reinstall a stock ROM?), it would take too much work undoing all the modifications I’ve done. Download mode doesn’t seem to want to work with Odin or Heimdall too, where I remember it working with heimdall but it was flaky and only detected sometimes. I’ve tried multiple USB cables too, thats not the issue. The USB cables I’ve tried work just fine with my Sony Xperia S on nAOSProm 7.1.2 with MTP. I assume everyone else has working MTP, or maybe not? Anyone else got MTP that doesn’t work?
[Galaxy S II Android Development] samarium:
Good to hear you had tried multiple USB cables. I flashed a new kernel/boot image from the latest zip as part of my clean build, using heimdall 1.3.1 on ubuntu bionic, so that works for me.

Have you checked if new usb devices appear/disappear when connecting/disconnecing phone to computer? Does lsusb show device appear/disappear, if so maybe you need to check udev rules so adb devices shows your device, adb devices as root should work tho if the device is detected.

Maybe you need to invest in titanium backup so you can do easy per app backup/restore, and can then try user app restore after clean rebuild? It can apparently pull apps from nandroid backups too, but interface is clunky.

If you are don't want to lose the data on your phone you need to stop and make sure you have a workable backup system in place. I export nandroid before each time I install a new version/patch and back it up to my computer. I can pull backups from many phones for many years., and can thus pull user applications and their data and reinstall wherever I want. It might not be simple and I much have to poke around the backup images but it does work.

Since you have an external SD card on the device and it shows up, may be USB issue since external sdcard worked irrespective of USB settings for me? I also had android debugging active, not sure if that is relevant to MTP, but I could connect and look around the file system for /sdcard etc, which wasn't working at all when I had issues. You could use the terminal app to do the same directly on the phone is USB is still problematic? Just checking if /sdcard is a symlink is not sufficient, you need to follow the symlinks to see if it results in an actual directory, As you can see in my terminal capture above, I did have /sdcard, it just wasn't pointing anywhere that existed, so was a dangling symlink.

You might be right, you might have USB hardware problem. Might just need reflow if you do and are lucky, but if adb USB works in 7.x then it should not be a hardware problem in 9.x, unless you are getting something weird ie like signal degradation with high speed data
[Galaxy S II Android Development] preclix:
I cant select any sound as ringtone (app sounds crash every when i want to tap on any group (my sounds, emotional, classic harmony etc.).