yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] K9100ii:
Hi,

Yeah, trying other USB cables is the advice everyone gives. I used Heimdall to flash 14.1 on Xubuntu Xenial 16.04. I have checked if new devices appear when connecting the phone to my computer and no, they don’t, only other devices (like my Xperia S) appear and are usable so its not my computer. I tested on 2 computers where the device just charges with no MTP/data. lsusb does not show any other devices when connecting the S2. udev rules are configured. I could try Titanium Backup, however, I have already tried a clean install with a wipe where it still wasn’t working and I restored my old data from a nandroid. I have a 32 GB external SD card I use for nandroid backups, but my volume buttons are broken so if I get a brick, I can’t get into TWRP anymore unless I solder new buttons on, however, I’m having issues with delivery of some desolder wick and am still waiting (“delivery attempted”), and I still don’t know if 1MM width solder is too much for the pads for the volume button. I broke the volume buttons by accidentally tearing them while opening my phone to put some thermal paste on the power management chip which would overheat. Helped a bit, but not completely. I also wanted to see the CPU and take off the corroded time/date battery, which was when the volume flex tore but I managed to get the battery off without worrying of the battery corroding anything else any longer. I have a soldering iron from Amazon and a volume flex from eBay, but still waiting for the desoldering wick and still thinking if 1MM lead solder is good for the volume button pads. I too think its either hardware issue or ROM problem, but more hardware unfortunately. ADB on or off regardless it doesn’t work. I could use a terminal app, but its not ideal in some cases and adb pull and push wouldn’t be possible. /sdcard has the content of the emulated storage and going to /sdcard and doing stuff there affects what goes on in /storage/emulated/0/, so it exists just fine. Maybe I do, I just can’t tell. I don’t know how I would reflow without risk of the phone becoming a fully useless brick. The only way I got ADB in 7.1.2 (and still can in 9) is “ADB over network” in Developer options, but unfortunately not over USB. I just get no detection at all. At least it charges which shows it is not completely dead and might not be a hardware problem at all, just some software issue, but whatever I try, nothing works.

FYI: LineageOS 14.1 always had MTP host crashes and I had to disable MTP host. I have re-enabled right after installing the ROM with no change as to MTP working or not, however, I don’t see MTP host crashes anymore. Also FYI: connecting to a computer makes logcat show power management/charging messages, but nothing to do with MTP/vold/USB and whatever else.
[Galaxy S II Android Development] bersem:
install for example total comander from playstore and use it to change ringtone ( default media storage manager appears i think ).
[Galaxy S II Android Development] samarium:
Full wipe, install a higher version, and then restoring data is largely equivalent to a dirty install, as you are restoring all the system app settings / configuration from the older version since they are also in /data. If you want a clean install only restore the older user apps, not the older systems apps. This is relatively easy with Titanium, or you can do it the manual way of finding the user app apks in the nandroid, installing them, stopping the app, removing it's storage, then restoring the user app settings etc from the nandroid, and you probably have to clean out /sdcard/Android/data/app/... too.

USB port sounds like you have vcc/gnd connected but maybe some or all of the other signal pins aren't connected. Maybe you check connectivity with multimeter and reflow connections with soldering iron if required? Hope you got decent temp controlled iron, can get good cheap ones, and can get bad not so cheap ones too. 1mm solder, YMMV. Happy to share my meagre hardware / electronics knowledge with you, maybe better to PM, as drifting off topic as to the ROM.
[Galaxy S II Android Development] K9100ii:
Alright, I'll take this to PM. By the way, I first did a clean wipe where I wiped /data and /cache and then not restoring data and cache where I noticed MTP still not working. I then restored data and cache after that, resulting in a still dirty flash, knowing that it was useless running a clean flash where MTP still won't work.
[Galaxy S II Android Development] Trev@s:
Hi all, thx Rinando for your job. I find a little thing about torch problem.

I go to options/buton and activate power button for torch and modify Time shutdown which is by defaut "never" by another. Then i try the torch and haven't problèms anymore. I desactivate the action of power button and put the option back on "never" and thé torch works fine. Sorry for my english and good work
[Galaxy S II Android Development] rINanDO:
New build is up!

Happy testing!

Build #9 2019-2-25

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

Android build: 9.0.0-r31

Updated sources

Moved Exynos4 framework hacks to device tree's thanks to [MENTION=5695278]ChronoMonochrome[/MENTION]

Move Target SDK to shims to allow textrelocation for gps, sensors and ril (removed bionic/libc-hacks)

Removed AshMem-tracking hack thanks to [MENTION=5695278]ChronoMonochrome[/MENTION] for hacking our libsecril.so!

Fixed GAPPS crash at first startup. (I think it was Ashmem-tracking hack)

Wakelock on flashlight (Flashlight turned off after 10 secs)

Known issues:

I hope none :confused: Please report :)

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-20190224-UNOFFICIAL-i9100.zip
[Galaxy S II Android Development] bersem:
Next time take a look into the camera app. Sometimes switching between front and rear camera dont work or it says: cannot connect to camera.

I dont know maybe i have a camera faiilure or its a bug.

So lets flashing and testing now [MENTION=3742928]rlNanDo[/MENTION] :good:

BR!
[Galaxy S II Android Development] rINanDO:
Didn't know something was wrong with camera. Just report and I will look to it when I got time.
[Galaxy S II Android Development] bersem:
Thats what i mean. Black screen while switching from rear to front camera or it says sometimes: cannot connect to the camera. Reboot helps. Or someone spy on my cam Lol

If it should be due to a camera damage, have another one to replace it.

EDIT: What I've noticed is that the last builds consumes more battery as earlier builds. Maybe it's the dirty flashing.
[Galaxy S II Android Development] philsilvers:
Hi, it's my first time here, s2 forum virgin, thanks for having me, I can confirm about the camera bug, can lose the dark screen by switching from cam to video & back or vice versa, has never crashed on me though, only gives dark screen. Thankyou for the greatest of s2 roms, very impressive.
[Galaxy S II Android Development] chhapil:
Looks like huge change! thanks so much man!
[Galaxy S II Android Development] ran000:
Have noticed same behaviour with my subj, but problem disappear after pressing "Make Photo" button: dark screen again become normal camera view
[Galaxy S II Android Development] MelTraX:
Hey!

Thank you so much for porting recent Android versions to our 8yo phone! I really love it!

I installed build #8 (now updated to #9) using the instructions in the OP. Except I skipped the backup and restore steps because I wanted a clean break. I did not install any GAPPS.

A minor issue I'm facing is that the stock Email app force closes immediately after opening it: pastebin.com/vxFFPKZW - any hints anyone?

My major issue with this build is that I couldn't find a way yet to have a separate encryption password from the lockscreen PIN. My setup for LineageOS 14 was a 32 character encryption password and I used SnooperStopper to have a separate 6 digit lockscreen PIN and after two wrong entries the phone rebooted (this doesn't work either atm). Any suggestions how I could get back to that for Pie? Restoring "raw commands" in vdc.cpp would probably be the easiest solution.

One more question: Magisk doesn't work right? And there is no other way to get Xposed right now, correct?
[Galaxy S II Android Development] preclix:
I have still problem with flashlight turn on with button when screen is off. Work about 3 seconds and go off (icon show on)

Volume buttons when im calling not work (volume up or down)

I must type several times a PIN code to simcard for unlock phone after reboot (same correct pincode)
[Galaxy S II Android Development] bersem:
The problem of sim card unlocking I already mentioned in the first builds.

Is it possible to boost the speaker volume during call?
[Galaxy S II Android Development] preclix:
I'm sorry boost during call is OK but decrease volume on acceptable value not work (maybe bad down limit value). I ideal need little less. Maybe a subjective feeling, but in LOS 14.1 it worked good.
[Galaxy S II Android Development] bersem:
It is not loud enough for me. I hear the caller very bad and not loud. On my second S2 with LOS 14.1 it is much louder.

Have read somewhere that it is possible with editing the build.prop file ( or another file ) to get the speaker louder.
[Galaxy S II Android Development] K9100ii:
The ROM works very well now and its smooth after the last update. Of course, MTP still doesn’t work but I think its a hardware issue I might try fixing soon. At first, I thought we would never be able to get 9 to work on a Galaxy S2 as the S2 might be too slow for it, but it actually works very well. However, I still get the bug where call volume is too high, and setting it lower doesn’t help, its still too loud.
[Galaxy S II Android Development] philsilvers:
This is my current los16.0 getting smoother setup -

clean flash + MindTheGapps 8.1.0, flash xwms2 modem, flash play store back to 5.9.11, flash recorder + stk + google setup wizard deleter scripts, factory reset, boot-up and side-load play services to 15.0.90 110304-2312, google app 4.5.13.19.arm, audiorec pro. Hope it may help someone.
[Galaxy S II Android Development] rINanDO:
Uhm.... You are right... I tested it... Possibly concluded too soon the patch worked, because now it doesn't work...
[Galaxy S II Android Development] rINanDO:
I will check this. Thanks!
[Galaxy S II Android Development] xdalurker1:
FM radio

Awsome work! Thank you!

The FM radio app fails with:

"ERROR: Tuner API did not start or stop.

This device may need a kernel with a working FM driver."
[Galaxy S II Android Development] TriboDoP:
hi

About fm radio rINanDo mentioned this in his oreo thread:

The FM radio is working, but Spirit2 expects the kernel module Si4709_driver.ko in /system/lib/modules. Because of Oreo it is moved to /vendor/lib/modules. So if you copy the file manually back to /system/lib/modules, Spirit2 should run
[Galaxy S II Android Development] xdalurker1:
FM radio - SOLVED

Wow - that actually worked. I did have to create a 'modules' folder under lib, but pasting the driver there solved it. Thanks.

Pie on S2 feels like a spaceX engine tied to a Ford model T - unreal.
[Galaxy S II Android Development] bidibidi:
Hope to be officially supported by LineageOS?

Hi,

Many thanks for keeping alive our i9100! I could not read the whole subjects, but is there any hope to see this version or the 15.1, or the 14.1 being officially supported by LineageOS (again)?

If yes, what must be done to help getting at least one of these versions being official?

Regards,

Yvan
[Galaxy S II Android Development] JaLoou:
I did not tried LOS 16 nor LOS 15 on Galaxy S2 but LOS 14.1 for i9100 has soo many unfixed issues, everyone can read about they on the first page of this topic: https://xdaforums.com/galaxy-s2/help/bugs-official-lineage-os-14-1-galaxy-s2-t3649329/

So, it is better to do not lure average smartphone users to troubles with it.
[Galaxy S II Android Development] samarium:
Read back a bit, [MENTION=2222292]rINanDO[/MENTION] recently (2019) answered this specific question.
[Galaxy S II Android Development] Catfish78:
Hello,

why don't you write your found bugs into the thread of the phone, for solving them (or sorting them out because of internal problems which are not in the S2 build, but on LOS itself)? And rethink: it's all for free. I was happy with 14.1, and just happy with 16 now - if it's not working for you, do it better, take another phone, or live with it...
[Galaxy S II Android Development] rINanDO:
Be patient. I'm currently working on moving device specific hacks to our device tree with other devs. They already helped a lot! Meaning we can almost use LOS 16.0 code without device specific code. They already fixed our device blobs so it is usable without hacks. When all of this is done, we can ask LOS to make it official again.
[Galaxy S II Android Development] philsilvers:
So why did you spend so much time on it, lol, maybe custom roms aren't your thing, try taking up tennis or golf instead. We do it for the knowledge and to learn more, and what better way to learn hard & fast on a phone that wasn't designed to run higher than ICS. There are workarounds for every bug and unfixed issue, look hard & you'll also find a bug in every stock Samsung rom. I don't see anywhere in the ops that this install or the last 2 los's were for an average smartphone user, anyone installing los normally knows what they're getting into & what to expect. Good luck.
[Galaxy S II Android Development] bidibidi:
This is great news! I will be patient. This work seems very difficult and is certainly not paid: maybe you could use a crowdfunding site (Liberapay seems great) to get a few coffee/beers…

Regards,

Yvan
[Galaxy S II Android Development] xdalurker1:
Bug report: buggy interaction between hotspot, mobile data, and wifi

I'm new at this bug reports - if there's a log file on the phone that can be posted - I'd gladly supply it.

Here's what I'm observing:

1. If Wifi is on, mobile data off, hotspot off: turning hotspot on results in Wifi being turned off.

2. Hotspot can by turn on ONLY if both mobile data and wifi are both turned off. Once hotspot is on, turning either Wifi or mobile data on results in hotspot turning off.

3. If only mobile data is on, turning hotspot on results in hotspot being turned off after two-three seconds.

Verified on a fresh install of this build.
[Galaxy S II Android Development] SethGeckoXDA:
You can capture a log on LineageOS like this. Each line has a time stamp, so remember the time some app acts weirdly on your phone and then look up the corresponding lines in the log.
[Galaxy S II Android Development] pocketrule:
You could also try to fetch the logs with the help of an app. Here you can find a description of howto:

https://xdaforums.com/showpost.php?p=78814175&postcount=5

Unfortunately I'm not able to read the logcat. The information in it does not make any sense to me. But if you've recorded a log right after the time the error occured, the developer for sure can do something with that :good:
[Galaxy S II Android Development] c0d3r!pp3r:
Thanks a lot [MENTION=2222292]rINanDO[/MENTION] for keeping alive the legendary Samsung galaxy SII..

The only question i have is that can I update it from your UNOFFICIAL LineageOS 15.1 Build dated 20181010 by following the instructions provided in Opening post for the latest LineageOS 16.0 build 20190224 as clean flash...

If so, I can help a bit more testing the Pie...

Thanks a lot once again...
[Galaxy S II Android Development] philsilvers:
This is what i'd do -

Wipe/Advanced Wipe

Tick - Dalvik/ART Cache, Cache, System, Data, Internal-Storage.

Swipe to Wipe.

Hit back button, then tick - sdcard0.

Swipe to Wipe.

Install correct lanchon-repit.

Install rom.

Install gapps.
[Galaxy S II Android Development] Iv4n99:
[MENTION=2222292]rlnanDO[/MENTION]

Any hope to get SafetyNet on Los16?
[Galaxy S II Android Development] linusdan:
Rules of Google.

Is the device unofficial? Do not pass.

"Ah, but with Magisk you can do that"

The i9100 kernel does not support the namespace, so it is not compatible.

We tried a solution for this, but it did not work.

Chocolates solve the sadness :o :angel:
[Galaxy S II Android Development] SiegHart93:
Hi the room works fine but there's a problem with the selfie camera that doesn't work and it forces the phone to reboot and sometimes ive noticed that the phone boots slow many times. Btw nice room and thanks for keeps this phone alive :D
[Galaxy S II Android Development] philsilvers:
Hi, im using Open Camera v1.45.2 from Play Store, been testing it all day & can say it's flawless, here's some settings for the app - set Lock photo/video orientation to ' Lock to portrait ' , this is so the app opens in portrait mode, landscape works fine.

Turn on - Use Storage Access Framework, this is for 5.0+ storage, then touch on - Select, then go back once & open Photo settings & set Front camera mirror to Mirror photo.

If necessary - los camera app can be uninstalled from system/priv-app/Snap
[Galaxy S II Android Development] rINanDO:
Currently not working on this. I have no idea how difficult this is. Currently I'm working on sdcardfs.
[Galaxy S II Android Development] Iv4n99:
Is possible to reduce a little bit the battery consumption when the WiFi is enabled?

I noticed that the phone consume a lot when the screen is off and the WiFi is enabled
[Galaxy S II Android Development] philsilvers:
No problems here with that issue, I've been streaming internet radio via Bluetooth for days now on build 9 & found it to be faultless, I've tested the combinations you say, and more, with no problems, maybe your install isn't as fresh as you'd expect, hope this helps.
[Galaxy S II Android Development] xdalurker1:
Following your post, I've repeated the clean install per the list in the OP.

I'm reconfirming the bug, and also confirming the error in the log file errors published above

(https://xdaforums.com/showpost.php?p=79049043&postcount=324)

The issue is not related to bluetooth. It is around hotspot + mobile data not working.

To recreate the bug:

6. Format the following partitions:

- Dalvik / ART Cache

- Cache

- System

- Data

- Internal STORAGE

- Preload

- Non-Emulated STORAGE

7. Delete /data/system/storage.xml via Advanced->File Manager

This is just to make sure to fully reset the storage configuration.

Formatting data-partition doesn't really format, because it could contain media like your pictures and video and skips deleting other essential

files including storage.xml.

8. Install now LOS 16.0: lineage-16.0-20190202-UNOFFICIAL-i9100.zip.

Following entering initial parameters (language, wifi password etc):

- turn on mobile data

- turn on hotspot tethering

After a few seconds, hotspot turns off.

Logcat shows IPTable error as described above
[Galaxy S II Android Development] philsilvers:
I'm v.sorry, I need to get some glasses, I'll try that again & get back with my result.

---------- Post added at 09:43 PM ---------- Previous post was at 08:51 PM ----------

Yes you are right, hotspot is totally unuseable , on build 9 also not working, keeps switching off & interferes in the exact way you say.
[Galaxy S II Android Development] Liquid Glass:
Also usb tethering didnt work.
[Galaxy S II Android Development] philsilvers:
Can anyone point me in the right direction - I like this ROM v.much, especially the emulated storage, and also like los 14.1 v.much, so I occasionally flip between them, does anyone know how to convert los 14.1 to emulated storage, if its possible to do, thankyou.
[Galaxy S II Android Development] the.gangster:
Nothing easier than that:

https://xdaforums.com/showthread.php?p=70590252
[Galaxy S II Android Development] philsilvers:
Thankyou very much, I'll take a good look at that.
[Galaxy S II Android Development] philsilvers:
OK had a good look & found it far from easy, due to it lacking any real instruction, but did manage to achieve something, but doesn't look right to me, why does it still have sdcard0 ? with 7.91mb ? where will my files go ? and why doesn't it look like los 16 files, thanks for pointing me to this post though.
[Galaxy S II Android Development] timematcher:
Edit#02 I guess I need to pay more attention to instructions...

Edit:

Never mind. I was able to enable SDCard access by enabling Developer Options , disabing "Android Debugging" and in "Default USB Configuration I changed from "No data transfer" to "File Transfer".

However, I only see my external Micro SD card this way and I am uable to see othe storages which are visible via TWRP. I am stilllooing for pointers on how to enable those storage(s).

---
[Galaxy S II Android Development] rishab321:
Great work man
[Galaxy S II Android Development] gert_bucket:
love the rom , thank-you for this, my only concern is the wifi hotspot not working. this is something disappointing cos I use this often, don want to back to other roms cos this is so great, please fix soon, from a los 16 disciple, with love.
[Galaxy S II Android Development] philsilvers:
Does anyone know a root fix or anything whatsoever to stop play store from updating itself if I were to go back to say version 7+ or 8+ on los16. There must be a way somehow.
[Galaxy S II Android Development] philsilvers:
Dear rlNanDo, would you be kind enough to pm me or tell me here, which program you use to zip your roms, as I want to zip my own flashable backups, nandroids getting too heavy, I have a couple of programs but would like to know the best, coming from an expert such as you, many thanks.
[Galaxy S II Android Development] rINanDO:
Hi,

I don't zip my roms manually. The routine is done by the buildprocess of lineage/aosp.
[Galaxy S II Android Development] philsilvers:
That's really complex, OK, thankyou kindly.
[Galaxy S II Android Development] rINanDO:
New build is up!

Build #10 2019-3-21

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

Android build: 9.0.0-r34

Updated sources

Ported SDCardFS to our kernel

Ported FunctionFS to our kernel

Fixed WiFi HotSpot

Known issues:

Camera app "Snap" works buggy. Sometimes black screen

Wakelock on flashlight not working (Flashlight turns off after 10 secs)

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-20190321-UNOFFICIAL-i9100.zip
[Galaxy S II Android Development] Iv4n99:
Thanks for your hard work! ?
[Galaxy S II Android Development] bersem:
:svetius:

[MENTION=3742928]rlNanDO[/MENTION] good work !

EDIT: second soft reboot after dirty flashing :confused:

SOLVED: Second dirty flash with wipe cache dalwik
[Galaxy S II Android Development] bersem:
[MENTION=3742928]rlNanDO[/MENTION] The problem with the quiet speaker has been solved. It is not because of this ROM. The speaker was clogged. I could not believe how much dirt was inside. It probably did not bother the previous owner and he had never cleaned it.

It works fine for now on latest build. I think i had one soft reboot overnight
[Galaxy S II Android Development] K9100ii:
HELP! The latest build bricked my phone! Now, it boots to the bootloader, then a black screen, and then back to the bootloader, black screen and again and again this loop! What happened??? I have no way of restoring my phone as download mode with USB doesn’t work and my volume buttons are broken! Edit: possibly EMMC brick bug, or maybe ROM? I remember brick bug checks saying my chip wasn’t vulnerable.
[Galaxy S II Android Development] maro777:
Hey

Unfortunately, I have the same.

How to fix it.