yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 Mini Android Development] Danil_e71:
LineageOS is a free, community built, aftermarket firmware distribution of Android 9.0 (Pie), which is designed to increase performance and reliability over stock Android for your device.

#include
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/

LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. CyanogenMod does still include various hardware-specific code, which is also slowly being open-sourced anyway.

All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review.

Kernel source code Github repo.

Device path for CM Github repo.

Device path for CM Github repo.

Vendor path for CM Github repo.

Downloads

14.10.2018 Lineage OS

Current ROM: Here

Installation

Make a backup!

Install recovery here

Reboot into recovery

Wipe data (You may get a "staus 7" error if you fail to wipe.)

[*]Install the Current ROM

[*]Optionally install Gapps

[*]Boot phone into normal mode

Most of Android/LineageOS is licensed under the Apache License with other small parts licensed under other open-source licenses. Which means that you may modify and redistribute without asking for permission as long as the proper credits is given and it is not misappropriated as being the official LineageOS.

Thanks for support

Robert Cosmin Bizon

Bajramovic Armin

Agesath

Gervase Markham

MrGoodtunes

onnsoft

ed38220

XDA:DevDB Information

[ROM][GT-I9195I][UNOFFICIAL][9.0] LineageOS 16, ROM for the Samsung Galaxy S4 Mini

Contributors

Danil_e71

Source Code: [url]https://github.com/Galaxy-MSM8916[/URL]

ROM OS Version: 9.x Pie

ROM Kernel: Linux 3.10.x

Based On: LineageOS

Version Information

Status: Beta

Current Stable Version: 1

Created 2018-10-07

Last Updated 2018-10-07
[Galaxy S 4 Mini Android Development] o0chtm0o:
Nice!
[Galaxy S 4 Mini Android Development] faizankhalifa:
Bugs? Features list? Any missing features? Does the Screencast work?
[Galaxy S 4 Mini Android Development] Danil_e71:
Version 10.10.18

Not works

-Music player

Works

+calls+data

+gps

+camera

+NFC
[Galaxy S 4 Mini Android Development] Simon1511:
Nice work as always?

Will test it in the next days and see how it performs
[Galaxy S 4 Mini Android Development] DroidKing18:
Nope, music player works for me. Not sure if I see any bugs. Nice and stables. Thanks [MENTION=4931116]Danil_e71[/MENTION], fantastic work!
[Galaxy S 4 Mini Android Development] JFK1975:
What about Bluetooth?
[Galaxy S 4 Mini Android Development] DroidKing18:
Well, I didn't test for music or calls, but it's not FCing the whole time, and it can find other devices. Seems good
[Galaxy S 4 Mini Android Development] Danil_e71:
11.10.18 Build#20

+Now second and next bootings - ~10 seconds

+Music player fix
[Galaxy S 4 Mini Android Development] imayoda81:
Noce job as always.. Why don't you get official mantainership ? Are there any problems?

Kudoz
[Galaxy S 4 Mini Android Development] clockhunter:
11/10 build working fine so far :)
[Galaxy S 4 Mini Android Development] rj48:
Download links lead to a 404
[Galaxy S 4 Mini Android Development] clockhunter:
All builds have moved here

https://github.com/Galaxy-MSM8916/releases/releases

Some are still being uploaded.
[Galaxy S 4 Mini Android Development] MrGoodtunes:
Which of the two 20181011 versions have you had success with, j19 or j20?

Also, since there is no SU add-on for LOS-16 (yet), I'm wondering about root access.
[Galaxy S 4 Mini Android Development] clockhunter:
The j20 one. I didn't need root access on this device so I can't tell. Did you try Magisk; From what I read it works on the los 16 of the standard s4 mini so you could give it a try.
[Galaxy S 4 Mini Android Development] DroidKing18:
I think it comes with root. Might be wrong though
[Galaxy S 4 Mini Android Development] Simon1511:
I cant find j20 build, where do I find it?

J19 only gives me a status 7 error
[Galaxy S 4 Mini Android Development] Danil_e71:
Build #24

+fixed BT address

+fixed wake up by home key

https://github.com/Galaxy-MSM8916/r...ineage-16.0-j24-20181014-NIGHTLY-serranovelte
[Galaxy S 4 Mini Android Development] hclkaiser:
1st impressions of build #24 (no GApps):

almost everything I tried, works: calling, being called, SMS, WiFi, BT, sync. with MyPhoneExplorer, K9-mail, DS-File, Öffi, OSMAnd, ...

:):)

so far, just the following problems

- the search-bar (prominently displayed on the home screen) is neither usable nor removable ... or did I miss anything. Installed Lawnchair launcher to get rid of it

- Spotify installs, but doesn't start

- QuickDic (de.reimardoeffinger.quickdic) does not download any dictionaries

Seems to be good enough for daily use (unless you can't live without the two mentioned apps)!!
[Galaxy S 4 Mini Android Development] Simon1511:
Im still getting a Error 7 when trying to install one of the Lineage OS 16 builds.

Im using TWRP 3.1.0.0 and an older build of your LOS 15.1 build. So why am I getting this error?
[Galaxy S 4 Mini Android Development] Simon1511:
No, this version is only for I9195I.

Just search for Lineage 16 for I9195 in the S4 Mini forum

In dont know if theres a Lineage 16 ROM for I9195I, but if there is one you will find it
[Galaxy S 4 Mini Android Development] MrGoodtunes:
There is an excellent LOS-16 for i9195 (without "i" at end) by well-respected dev, here:

https://xdaforums.com/galaxy-s4-mini/orig-development/rom-lineageos-16-0-s4-mini-t3833063
[Galaxy S 4 Mini Android Development] cristihan:
Sorry for the delayed response ... yes, you need to change the zip archive structure in accordance with the new path: system / vendor / etc or you can try this one from here: https://androidfilehost.com/?fid=1395089523397965903
[Galaxy S 4 Mini Android Development] cristihan:
Yes, I installed it and it works very well.
[Galaxy S 4 Mini Android Development] DroidHero2002:
Current builds of twrp and los 16 work great with my I9195I, keep up the great work Danil. If anyone else here ever mains an S7 exynos like I do now, there's a fantastic LOS 16 build by a well respected dev over there too.
[Galaxy S 4 Mini Android Development] thessy:
Hi,

after bricking up a little bit my i9195i with LOS 14.1 (?) on updating, I reflashed stock rom from samsung. Now I want to start with LOS 16.

The link in the "installation list" (second item "2. install recovery here") is wrong, I think.

So where to find the latest twrp recovery?

I know https://github.com/Galaxy-MSM8916 but I'm too stupid to find under 'releases' other things but 'rr-oreo' ;)

Regards

thessy
[Galaxy S 4 Mini Android Development] MrGoodtunes:
Look just 2 posts before yours (#184) and you will see a link to latest recovery (TWRP-3.3.0) for i9195i. There's even a screenshot, thanks to [MENTION=4931309]christihan[/MENTION]
[Galaxy S 4 Mini Android Development] cristihan:
TWRP 3.3.0 for i9195i device:

https://androidfilehost.com/?w=files&flid=295274
[Galaxy S 4 Mini Android Development] thessy:
Thanks [MENTION=7783831]cristihan[/MENTION] and [MENTION=683466]MrGoodtunes[/MENTION].

Got my i9195i flashed with TWRP and with LOS16.

But only with "lineage-16.0-j33-20190301-NIGHTLY-serranovelte".

With "lineage-16.0-j35-20190502-NIGHTLY-serranovelte" device can not boot. After 2 seconds of LOS-logo-animation the device reboots and this in a loop.

Is this known? Where to report bugs/issues?
[Galaxy S 4 Mini Android Development] cristihan:
Yes...j35 is with problems. It was reported here.
[Galaxy S 4 Mini Android Development] thessy:
Ok, follow now every post in this thread ;)
[Galaxy S 4 Mini Android Development] OllyFunkster:
Does anyone have Ambient Display working on this ROM? I'm using the J33 build, AlwaysOnAMOLED from f-droid doesn't work with android 8+ and I'm looking for a way to have notifications and clock always-on / on when proximity sensor is not covered, so I enabled Ambient Display but it doesn't work - there's a brief glimpse of a clock when the power button is pressed to display the unlock screen (I have it go directly to pattern unlock if that makes any difference) but that's the only difference between ambient enabled/disabled.

Any hints would be gratefully received!
[Galaxy S 4 Mini Android Development] chrischa:
Can you please check if your proximity sensor is working? For me neither AmbientDisplay nor InCallScreen is working properly. I think both is caused by the proximity sensor.

If I try to disable the sensor:

serranovelte:/sys/class/input/input6 # echo 0 > enable

dmesg tells me it is already disabled.

[ 210.523779] gp2a_prox_enable_store 852 value = 0

[ 210.523873] gp2a_prox_enable_store already disabled

If I try to enable it:

serranovelte:/sys/class/input/input6 # echo 1 > enable

my device instandly reboots

[ 478.320549] gp2a_prox_enable_store 852 value = 1

[ 478.320645] gp2a_prox_onoff : proximity turn on/off = 1

Best regards
[Galaxy S 4 Mini Android Development] OllyFunkster:
Yes, it appears to be working fine. cat /sys/class/input/input6/enabled gives 1, and covering it causes Telegram to blank the screen. There's a bit of a display brightness glitch when it comes back on (100% brightness for a few milliseconds), but that's not a huge problem.

I checked to see if the proximity sensor is being powered up when the screen is locked (by pointing a camera at it that can see the IR) and it is.

Thanks!
[Galaxy S 4 Mini Android Development] cristihan:
Install AIDA64 an check SENSORS section.
[Galaxy S 4 Mini Android Development] OllyFunkster:
Is there a trustworthy APK source of this? I am google-play-less.
[Galaxy S 4 Mini Android Development] cristihan:
Try apkpuredotcom
[Galaxy S 4 Mini Android Development] chrischa:
can you try the same with the enable (without d) file. If I understand this correctly, this file only represents the state.

EDIT: Your were right. I tested the sensor with an app and it seems to work properly
[Galaxy S 4 Mini Android Development] MrGoodtunes:
I have been noticing momentary brightness upon various screen-on starts with all of Danil's builds, all the way back to the first one I tried, CM-12 (Lollipop). But, as you say, we have more pressing issues.
[Galaxy S 4 Mini Android Development] chrischa:
Hi guys,

i fixed the issue with the black dialing screen. At least in my repository.

I compiled build the whole stuff and it worked for me.

I attached you the changed Dialer.apk. Its no longer required to replace this by Google dialer.

Just replace the Dialer.apk (that stays black) in /system/priv-app/Dialer/ with this one

Best regards
[Galaxy S 4 Mini Android Development] ffox.pl:
Thank you, it works excellent. It is a pity this Dialer has not the dark mode.
[Galaxy S 4 Mini Android Development] chrischa:
If you like dark mode and don't worry about donating a bear I would suggest you swift installer. it enables true black theme for a couple of apps (not only system apps), user apps like whatsapp to. I really like this :)

Probably it's worth a try
[Galaxy S 4 Mini Android Development] OllyFunkster:
Fantastic work!

Do you think that maybe the ambient display issue might be suffering from the same problem with getMaximumRange? I'm not sure if any of the modes of ambient display are supposed to ignore the sensor.
[Galaxy S 4 Mini Android Development] chrischa:
It seems you're right, thanks for this advice.

@Override
public void onSensorChanged(SensorEvent event) {
boolean isNear = event.values[0] < mSensor.getMaximumRange();
if (mSawNear && !isNear) {
if (shouldPulse(event.timestamp)) {
launchDozePulse();
}
} else {
mInPocketTime = event.timestamp;
}

I will check this in the next days.

After I saw this behavior the second time, i start to believe, the maximumRange is not returned correctly by our device.

I could quickly change the implementation here to (and I will do it if I cant find the correct solution).

But there will be some digging work ;)

Best regards
[Galaxy S 4 Mini Android Development] OllyFunkster:
Very interesting. I wonder what the apps that do work use instead? Also it's interesting to note that the built-in "prevent wake while in pocket" (i.e. lock button doesn't wake display if proximity sensor is covered) feature works fine.
[Galaxy S 4 Mini Android Development] OllyFunkster:
Also interesting: the max range is returning MAX_INT (2147483648) but cast as float. I've been looking in the driver for the gp2ap002 but I can't see where max_range gets set so I guess the IIO driver base uses MAX_INT as a default?

What I definitely can't figure out is what code is responsible for turning the 1 bit of proximity data (sensor is merely object detected / not detected) into 0.0 / 8.0 centimeters. The driver just sets val_state to 0 or 1.
[Galaxy S 4 Mini Android Development] htt.tito:
serranovelte I9195I no navigation (offline maps, maps.me,...)

Hi!

I am very lucky with Lineage serranovelte, but my problem is, that no navigation is working.

Specially all Offline maps......

Can anyone help?!

Thanks

Tito
[Galaxy S 4 Mini Android Development] cristihan:
Try MapFactor Navigator...is working. I have been using it for over a year without problems.
[Galaxy S 4 Mini Android Development] kariboo92:
Hi

is j33 the last working release ?

As I've seen that latest j35 is claimed to bootloop.
[Galaxy S 4 Mini Android Development] OllyFunkster:
Yes J33 is the latest working one right now.
[Galaxy S 4 Mini Android Development] kariboo92:
Hi

IR is not working using lineage-16.0-j33-20190301-NIGHTLY-serranovelte ( also with lineage-15.1-j41-20190101-NIGHTLY-serranovelte )

The IR apps have no effect ( no crash ), just like it does not control the IR emitter.

I need IR to control Air conditioning, SURE app was working under latest official Samsung stock ROM ( Kitkat 4.4.4 )

Is IR supposed to work with lineage-16.0-j33-20190301-NIGHTLY-serranovelte ?
[Galaxy S 4 Mini Android Development] MrGoodtunes:
This is a known issue. Some i9195i users who need IR have found success flashing Pixel Experience by mernurisha:

https://xdaforums.com/galaxy-s4-mini/development/rom-pixel-experience-t3870945
[Galaxy S 4 Mini Android Development] kariboo92:
Yes, I've move to PixelExperience_serranovelte-9.0-20190714-1041-UNOFFICIAL and confirm IR is working.

Thanks
[Galaxy S 4 Mini Android Development] pinkqui:
Thank you, Cristisihan, but your change in mixer_paths.xml did not help me. I played with it and I found a fix. I changed (in the original file) the sensitivity of mic adc1 from 6 to 3 . <ctl name="ADC1 Volume" value="3" /> (line 59)
[Galaxy S 4 Mini Android Development] kariboo92:
Deleted
[Galaxy S 4 Mini Android Development] fassal:
Decryption fix of /data in TWRP

[MENTION=4931116]Danil_e71[/MENTION] could you or one of your teammates fix the decryption problem of TWRP for our 9195I? I did not find a TWRP that is able to decrypt the data partition. I do not know how much work this would mean but I would be so happy to be able to make backups of /data with TWRP and to access it in case something goes wrong with the OS. It is much appreciated! Thanks!
[Galaxy S 4 Mini Android Development] kariboo92:
I've build from the git sources repositories, and FM radio & IR Led are not working.

Too bad the fixes have not been committed on the git sources.

I've checked the kernel has been built with the IR driver Led addon commit https://github.com/Galaxy-MSM8916/android_kernel_samsung_msm8916/commit/12807b38bf60338a00963b6edfbd0abc461c7dc9

Despite the kernel config is built with option config SEC_FPGA_ICE40XX=y, and the IR device settings are built (consumerir.msm8916 ... ).

I wonder if there could be a conflict between the two configs below that are both enabled:

CONFIG_SEC_FPGA_ICE40XX=y

CONFIG_USB_ICE40_HCD=y
[Galaxy S 4 Mini Android Development] kariboo92:
The 14.1 version is the last with IR blaster working.

Since, IR blaster does not work anymore on Lineage 15.x and these Lineage 16 builds.

It seems the IR blaster got broken when the github repo moved from Danile71 to Galaxy-MSM8916

Also the manifest for 14.1 is not avalaible.

The Local manifest for CM Github repo given on the 1st page of 14.1 version https://xdaforums.com/galaxy-s4-mini/orig-development/rom-cyanogenmod-14-1-t3522169

is broken : https://github.com/Danile71/android

I am trying to build 14.1 version to understand where the IR blaster get broken.
[Galaxy S 4 Mini Android Development] SWEtt:
The Dialer works, but i couldn't just replace it with the original one.

When i tried that the dialer icon dissappeared from the home screen. I tried to restore the old one, nothing happened.

Then i just executed your Dialer.apk, it installed itself, asked for permission and then everything worked.

So if anyone have the same problem, try that.

Thank you chrischa for the fix.
[Galaxy S 4 Mini Android Development] xdanoobi:
Security Questions

Last Updated 2018-10-07[/QUOTE]

Hi and big thanks for providing this ROM with which I can still use my old s4mini plus!

a) Wondering, can we expect to receive an update for this ROM in the near future? One that implements the latest Android security patches?

b) I also noticed that SELINUX enforcement is turned of. Why is that and isn't that a security risk?

c) I'm having trouble with Privacy Guard, it does not seem to function correctly.

Settings => Security & privacy => Privacy / Trust => Privacy / Privacy Guard

For example, when I enable "protection" mode for one ore more apps it won't stick.

When I try to enter "advanced" mode it just reloads the simple mode.

Does anyone else have this issue?

Merci :cowboy:
[Galaxy S 4 Mini Android Development] ffox.pl:
Try this LineageOS 16.0 ROM.
[Galaxy S 4 Mini Android Development] Riiaz:
Dlted post
[Galaxy S 4 Mini Android Development] sabotage154:
hello. can anyone confirm that the vpn >always on vpn > block VPN feature works on this ROM? on stock pie roms the vpn >always on vpn >block VPN feature kills the network connection as soon as vpn connection is dropped. i noticed on some lineageos ROMS on other devices the vpn > always on > block VPN feature is broke.

Can anyone confirm that the vpn > always on vpn > block vpn feature works on this ROM? thank you
[Galaxy S 4 Mini Android Development] 014789632:
Google Pay

Is Google Pay working on LineageOS 16 rom?
[Galaxy S 4 Mini Android Development] htt.tito:
Update from Version 33 to 35

Hi!

Can anyone help?

How to update from version 33 to version 35?

What is the difference?

Thanks!
[Galaxy S 4 Mini Android Development] cristihan:
The J35 is known it gives bootloops.
[Galaxy S 4 Mini Android Development] fgfgfyuyyy:
Does Netflix work on this rom? What doesn't work on this rom?
[Galaxy S 4 Mini Android Development] kariboo92:
IR does not work on this rom. ( same when building the kernel from git sources )

mernurisha fixed IR on his ROM, I don"t know how.
[Galaxy S 4 Mini Android Development] fgfgfyuyyy:
But does Netflix work?
[Galaxy S 4 Mini Android Development] msbln:
J33 - Unstable

I tried J33 with OpenGAppsPico. Randomly crashes into SoftReboot when used extensively.

So I moved over to

https://xdaforums.com/showpost.php?p=81171363&postcount=8
[Galaxy S 4 Mini Android Development] roohooo:
Hi all,

would someone please give me a short info if the ROM is utilizing the chinese Beidou satellites (BDS) when getting position with this phone?

Thanks!

r.

--> Question already answered in another thread.
[Galaxy S 4 Mini Android Development] cristihan:
Thank you very much [MENTION=3799537]chrischa[/MENTION]. Excellent work ... it works perfectly. One remark ... a small shortcoming that it doesn't have the recording function, otherwise perfect. If you ever have time to add the code that ensures voice recording I would be fully grateful.
[Galaxy S 4 Mini Android Development] chrischa:
Hi, thanks for testing it and trusting in my "development" :D

I'm not sure if call recording is permitted everywhere. I never thought about that and I'm not sure about the different laws regarding that.

I'm quite sure the proximity sensor should be fixed instead of the dialer but i could not achieve that.

If you really require the feature, probably we can talk about that nevertheless ;)
[Galaxy S 4 Mini Android Development] cristihan:
Hi [MENTION=3799537]chrischa[/MENTION] and thanks for the reply. It is legal in my country to record voice and this function automatically becomes active in LOS in countries where this is not prohibited. In LOS-16 build by mernurisha this function is present and active.

https://xdaforums.com/galaxy-s4-mini/development/rom-lineageos-16-0-t3958381

I use Danil_e71's source code in my eOS build for i9195i (ungoogled phone) because it is available and stable. The mernurisha source code has a bug in 2.4 Ghz wifi. I tried to replace in eOS ROM, Dialer.apk (black dialer screen) with the one from mernurisha build, as I did with the one compiled by you but the same problem remains ... black screen dialer. With your Dialer.apk everything works normally (except the voice recording function wich is missing). The bottom line is that something is missing from Dialer.apk (mernurisha or LOS build) and I think it's that code change you found. Attached is Dialer.apk from mernurisha's build.
[Galaxy S 4 Mini Android Development] chrischa:
Hi cristihan,

did you check out the source code of mernurishas build? As far as I remember I could not find his code somewhere.

From my point there are two solutions: directly chage the code in the class file:

boolean near = sensorEvent.values[0] < sensorEvent.sensor.getMaximumRange();
boolean near = sensorEvent.values[0] <= 0L;

I'll take a look if I can find it in the ByteCode. Im not sure if the app is signed, this may be a problem.

The better way from my perspective would be to merge [MENTION=9489673]mernurisha[/MENTION] s sensor implementation.

But as I told you, I could not find the source code anywhere.

Best Regards.
[Galaxy S 4 Mini Android Development] cristihan:
Hi [MENTION=3799537]chrischa[/MENTION],

Thank you again. Indeed mernurisha never gave the source code...... that's why I use Daniil's source.
[Galaxy S 4 Mini Android Development] cristihan:
Hi [MENTION=3799537]chrischa[/MENTION],

below a link about voice recordings on LOS.

https://www.reddit.com/r/LineageOS/comments/dyiicr/lineageos_native_call_recording_now_enabled_or/
[Galaxy S 4 Mini Android Development] sayefchamp:
Can you build roms for serranovelte

xx

as well
[Galaxy S 4 Mini Android Development] Nokono:
This rom IS for serranoveltexx
[Galaxy S 4 Mini Android Development] sayefchamp:
No it Isn'.....

When i try to flash it in twrp it says that the rom is for serranovelte....

That's why i can't flash it.....
[Galaxy S 4 Mini Android Development] Nokono:
Serranovelte=serranoveltexx=i9195i= s4 mini plus value edition.

What phone do you have? If "right" one then you are doing smth wrong
[Galaxy S 4 Mini Android Development] sayefchamp:
I don't know.....

Every rom I tried had that same answer...(except dot os)

I'm currently using dot os 2.4

but every other roms i tried didn't work...
[Galaxy S 4 Mini Android Development] Nokono:
What recovery? TWRP? Version? You need latest, 3.4.0.0 or Q-3.3.1.0

---------- Post added at 07:18 PM ---------- Previous post was at 07:06 PM ----------

Could you give the link to that rom? I' ll check.
[Galaxy S 4 Mini Android Development] sayefchamp:
Dot os here: click here

Where to get letest twrp for my phone...??
[Galaxy S 4 Mini Android Development] Nokono:
Yes, that dot os is for our device.

TWRP is there https://xdaforums.com/galaxy-s4-mini/development/recovery-samsung-galaxy-s4-mini-ve-unof-t3955165
[Galaxy S 4 Mini Android Development] sayefchamp:
Can you port oxygen os for this model...??