[G800F/M/Y][ROM][7.1][NJH47F] LineageOS 14.1 for G800F/M/Y [Beta 19/08/2017]

hennymcc

Senior Member
Dec 7, 2014
374
1,662
0
  • Like
Reactions: SGS_Alex

hennymcc

Senior Member
Dec 7, 2014
374
1,662
0
A new build is available.
https://www.androidfilehost.com/?fid=889764386195902448

Changelog:
Code:
* Enabled selinux (thanks to mirhciulica for fixing all those selinux denials). If you encounter problems check for "avc: denied" messages in logcat (see: https://source.android.com/security/selinux/validate)
* Fixed Snapchat and SafetyNet problems (Snapchat reported server errors, Safetynet Helper reported a 1970 timestamp): Kernel patch was necessary.
* Updated kernel to 3.4.107
* Applied most of the patches from [URL="https://android.googlesource.com/kernel/common/+/deprecated/android-3.4"]kernel/common/deprecated/android-3.4[/URL]
* Updated LineageOS sources
* FlipFlap added to support smart flip covers: shows a screen with the current time in the window of the smart cover. Note that this relies on the magnetic sensor at the bottom of the phone. So magnets near the sensor can trigger this behavior too.
* Replaced the buggy Gello webbrowser with Jelly - the new LineageOS default browser
* Replaced the buggy Snap camera with the LineageOS default camera app
* Replaced the Samsung battery charger app (lpm) with healthd (looks uglier but at least works with selinux)
 

wasya78

Senior Member
Mar 13, 2017
95
8
8
Developers lineageos ot hennymcc 20170528 and developer lineageos ot zytrix78 20170525 Right now costs from zytrix78 and if I put from hennymcc what will be
 
Last edited:

a-dead-trousers

Senior Member
Jul 28, 2016
220
119
43
Sadly it's not working "out of the box"
Right after I did a dirty flash, the phone won't boot anymore (freezing at boot logo or rebooting forever)
So I did a clean install with gapps (aroma; replacing all stock apps) and was able to setup my phone as I previously had it. Then I wanted to start firefox. The phone froze and rebooted. Now I was back at the beginning (freezing at boot logo or rebooting forever). As a workaround I flashed @spookcity138 's kernel https://forum.xda-developers.com/galaxy-s5-mini/orig-development/kernel-cm13-custom-kernel-t3386508 which of course reverted all the SELinunx stuff you did but at least the phone is working again.
 

a-dead-trousers

Senior Member
Jul 28, 2016
220
119
43
Sadly it's not working "out of the box"
Right after I did a dirty flash, the phone won't boot anymore (freezing at boot logo or rebooting forever)
So I did a clean install with gapps (aroma; replacing all stock apps) and was able to setup my phone as I previously had it. Then I wanted to start firefox. The phone froze and rebooted. Now I was back at the beginning (freezing at boot logo or rebooting forever). As a workaround I flashed @spookcity138 's kernel https://forum.xda-developers.com/galaxy-s5-mini/orig-development/kernel-cm13-custom-kernel-t3386508 which of course reverted all the SELinunx stuff you did but at least the phone is working again.
I tried flashing the boot.img from [hennymcc:20170528] and again the phone won't boot.
I think it's happening because replacing the Stock AOSP Apps with their Google Couterpart is not supported in the current SELinux policies.
In the attachment are the settings I used within openGApps. Maybe someone can figure it out which policies are missing.
EDIT:
I'm using these settings since I first flashed CM13 on my phone and I had no problems back then.
If someone can show me how to do it, I could log/debug the boot process myself to help figuring out the problem.
 

Attachments

Last edited:
  • Like
Reactions: ChrisP

hennymcc

Senior Member
Dec 7, 2014
374
1,662
0
Sadly it's not working "out of the box"
Right after I did a dirty flash, the phone won't boot anymore (freezing at boot logo or rebooting forever)
So I did a clean install with gapps (aroma; replacing all stock apps) and was able to setup my phone as I previously had it. Then I wanted to start firefox. The phone froze and rebooted. Now I was back at the beginning (freezing at boot logo or rebooting forever). As a workaround I flashed @spookcity138 's kernel https://forum.xda-developers.com/galaxy-s5-mini/orig-development/kernel-cm13-custom-kernel-t3386508 which of course reverted all the SELinunx stuff you did but at least the phone is working again.
Many kernel patches have been applied which might cause incompatibilities with older ROMs. So just flash the ROM cleanly. It is always recommended to do so.

Not sure about the bootloops triggered by Firefox. This might be related to the dirty flash problem or a completely different issue. It is possible that one of the patches introduced this problem. I already used selinux (before i applied the patches) for some months - even with firefox (and OpenGapps) and never had this problem. So it seems to be a new issue.

Not sure when I will have the time to look into it. Until then use the new ROM with care. I already added a note to the changelog about the bootloops. If there are other scenarios to a bootloop besides dirty flash and Firefox i will remove the link to the ROM from the frontpage until the issue is fixed.
 

ht_1953

Member
May 6, 2016
10
5
0
Berlin
Questions on instruction, please help me clarify.

I've got a question about the order of flashing LineageOS. Also I don't understand all of your instructions, so I beg you to help me, that I can understand it more clearly.
I come from a stock rom. I've got a sm-g800f. Here are my questions:

Q1.) What is TWRP for sm-g800f? Is it a program, which runs under MS Windows and works on my sm-g800f or does
it work directly on the sm-g800f?

Q2.) Is the recovery.tar.md5 from #1

[*]TWRP 3.0.0 recovery image [25/03/2016] (AndroidFileHost Mirror)
Created 2017-02-01
Last Updated 2017-05-27
compatible with the twrp-3.1.0-0-UNOFFICIAL-kminilte.img #802 ?

New build is online! (20170525)
kminilte.tk
and compatible with the new lineage-14.1-20170528-UNOFFICIAL-kminilte ?

Q3.) Is the following order correct? At which moment I start TWRP? At which moment I do backup EFS PARTITION? At which moment I do root the sm-g800f (addonsu-arm-signed.zip) (Do I have to root it at all?, I guess I have to.) ? Please correct my order!

0.) Backup my data.
1.)
1.1.) Install recovery (TWRP 3.0.0 recovery image).
1.2.) Backup my EFS PARTITION via TWRP.
2.) Before I flash:
2.1.) I need the latest TWRP recovery (twrp-3.1.0-0-UNOFFICIAL-kminilte?).
2.2.) I wipe the device.
3.) Flash ROM:
3.1.) Reboot into recovery mode
3.2.) (If you come from a stock ROM) I make a backup (nandroid?).
3.3.) I copy the GApps and the ROM zip to your internal sd or external sd (MTP must be enabled!).
3.4.) I install addonsu-arm-signed.zip for Lineageos 14.1 with TWRP.
3.5.) I wipe Dalvik Cache, Cache, System and Data
3.6.) I install the Lineage OS zip-package
3.7.) I install the GApps zip-package


Thank you for your help!
Matthias, Germany
 

Seb-tec

New member
May 28, 2017
3
2
0
Ahoi Matthias,
lies Dir den Ersten Post nochmal gut durch bevor Du dich rein stuerzt! Als erstes musst Du dein Stock Recovery gegen TWRP o.ae. austauschen, mit Odin(oder ADB/fastboot dafuer sind die *.img Dateien)! Ich finde den Weg ueber Odin am Einfachsten.
Auf Deinem Telefon ist jetzt schon ein Recovery, schau Dir das einfach mal an(Ausschalten, Home+Lauter Taste halten, dazu dann Power Taste halten, Power Taste nach 2-3 Sekunden loslassen, die anderen beiden halten bis Du siehst das es anders startet als sonst. ;) Du wirst sehen das Du damit keine Custom Rom installieren kannst, das erklaert den Sinn von TWRP?!
Es reicht die 3.0.0.0, Du musst dann nicht noch die 3.1 die ich fuer Odin noch nicht finde, extra installieren.
Punkt 3 und 3.1 sind ueberfluessig(2.1 auch).
Den kompletten Wipe machst Du vor der Rom/Gapps Installation, danach dann nur nochmal die beiden Caches. Sonst machst Du es wieder platt. Punkt 3.2 ist ebenfalls zu spaet, da hast Du dein Stock schon weg "gewiped".
Also, Odin(Windows Programm)-->TWRP(Recovery auf Deinem Tel.), Recovery starten, Backup vom Stock System machen. Alles wipen(ausser die externe SD auf der schon das Lineage Rom und die Gapps liegen). Lineage Rom und dann Gapps installieren. Caches wipen.
Jetzt schalte ich aus und nehme die SD-Karte raus, hat sich als vorteilhaft erwiesen.
Neustarten. Erstinstallation abwarten. have fun. :)
"addonsu" kannst Du vor den Gapps, danach oder irgendwann immer noch installieren, nur eben nicht vor der Rom(glaube ich).
mfg Seb (sry, aber fuer einen Uebersetzer fehlt mir grad der Nerv und bevor Matthias sein kminilte zerstoert..*peace*).
Schoenen Sonnatg.
 
Last edited:
  • Like
Reactions: ht_1953 and ChrisP

a-dead-trousers

Senior Member
Jul 28, 2016
220
119
43
Not sure about the bootloops triggered by Firefox. This might be related to the dirty flash problem or a completely different issue. It is possible that one of the patches introduced this problem. I already used selinux (before i applied the patches) for some months - even with firefox (and OpenGapps) and never had this problem. So it seems to be a new issue.
I attached the logs from logcat and kmsg of both kernels I tried (hennymcc fails, spookcity works)
Fun fact: Conneted via ADB to get the logcat LOS is able to boot into the lockscreen and then it hangs.
 

Attachments

  • Like
Reactions: spookcity138

TheSnak

Member
Mar 9, 2015
14
6
0
Hi, not my first custom rom but .. Got a big problem with installation of OS.

My error is : "ApplyParsedPerms : lsetfilecon of /system/lost+found to u:eek:bject_r:system_file:s0 failed : Operation not supported on transport endpoint set_metadata_recursive : some changes failed"

I'm using TRWP 3 .. So if someone can help me..

I already Googled, the last post about this is about Xperia phone or 5.* version.. Too old in my opinion, I'm using all link in this post..
 
Last edited:

spookcity138

Senior Member
Nov 9, 2015
1,828
2,452
153
Eindhoven
I did I clean installation with your latest version and OpenGApps. Afterwards installed firefox and it crashed, too. Maybe the logcat will help.
mozilla.firefox( 4821): type=1701 audit(0.0:308): auid=4294967295 uid=10090 gid=10090 ses=4294967295 subj=u:r:untrusted_app:s0:c512,c768 reason="memory violation" sig=11

If I have any time I'll try to look into this.
 
  • Like
Reactions: jaeck

wasya78

Senior Member
Mar 13, 2017
95
8
8
Разработчики lineageos OT hennymcc 20170528 и разработчик lineageos OT zytrix78 20170525 Прямо сейчас стоит от zytrix78 и если я ставлю от hennymcc что будет
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone