yashsingh1/xdaforums huggingface dataset:
[Galaxy Grand 2 Android Development] Nemirtingas:
​

[Lineage OS 14.1 | Android 7.1.1][Unofficial stable][Build 05/31/19]​

Lineage OS 14.1 For Samsung Galaxy Grand 2 SM-G7105 (ms01lte)​

*** Disclamer
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.
A lot.

Installation instructions

Install instructions:

Wipe Everything Except Internal and Sd

Flash Rom

Flash Gapps

And reboot.

Requirements:

- Flash firmware G7105XXUBQE1 before !

Download

LineageOS 14.1 ms01lte (03/11/2018)

LineageOS 14.1 ms01lte (05/31/2019)

TWRP 3.1.1 (OTA support for ms01lte)

Open Gapps

OTG boot.img (for the old version 20181103)

Flash boot.img via TWRP to enable OTG on G2.

Changelog

- 05/31/2019
- Enabled kernel CGROUP cpu acct
- Moved "Liblights: Lightvalue" errors to debug class
- 05/22/2019
- Kernel Modules enabled, lighter boot.img
- Kernel OTG native support
- Kernel CIFS, NFS Client & NFS Server
- OTA Updates
- Should fix the date bug
- NFC Beta (Android Beam seems to work at least) It REQUIRES a Stock Samsung Battery for Grand 2 or a 4 Pins battery as 1 of them is for the NFC antenna
- May security update

FAQ

No FAQ for now.

Known bugs

No bugs as I tested it.

Thanks To/Credits

* [url]https://github.com/MSM8226-Samsung[/url]
* Sudeep10 for some advices & offline charging fix.
* Samsung for opensourcing their Kernel.

My unified repositories:

https://github.com/Nemirtingas/android_kernel_samsung_msm8226

https://github.com/Nemirtingas/android_device_samsung_msm8226-common

https://github.com/Nemirtingas/android_device_samsung_ms01-common

https://github.com/Nemirtingas/android_device_samsung_ms013g

https://github.com/Nemirtingas/android_device_samsung_ms01lte

https://github.com/Nemirtingas/android_vendor_samsung_ms01-common

https://github.com/Nemirtingas/android_vendor_samsung_ms013g

https://github.com/Nemirtingas/android_vendor_samsung_ms01lte

Don't forget to hit the thanks button, thanks.
​

Complaints/demands/bug reports without logs will be ignored.​
[Galaxy Grand 2 Android Development] munteangabi:
Thank You,Sir!

Good work,for Grand 2 Lte ,the best rom ever!

Galaxy Grand 2 LTE SM-G7105.........firmware G7105XXUBQE1
[Galaxy Grand 2 Android Development] piotrmocko:
It works with Galaxy Grand 2 LTE SM-G7105
[Galaxy Grand 2 Android Development] blazingnks:
thanks for bringing Nougat to g7105.

everything is working fine.

especilly the battery life, it's significantly better than the official firmwares & CM13 rom
[Galaxy Grand 2 Android Development] Nemirtingas:
Already 160 downloads, looks like there a lot of ppl that who likes my ROM.
[Galaxy Grand 2 Android Development] bubu_bubulina:
[MENTION=9416056]Nemirtingas[/MENTION]

Thank you for your work!

The best custom ROM ever, the most stable and battery friendly!

It's my daughter's phone and she is thrilled!

:good:

Galaxy Grand 2 LTE SM-G7105
[Galaxy Grand 2 Android Development] samg2:
I test your romage lineage 14.1

thank you very good rom
[Galaxy Grand 2 Android Development] gogoerkan:
sms gidiyor ama gelmiyor....

sms gelmiyor.hata var
[Galaxy Grand 2 Android Development] FlorynXDA:
Good Work

In my humble opinion, currently this is the most stable rom and best option to keep our Samsung Galaxy Grand 2 SM-G7105 phones relevant (installing new apps) and (more) secured (Privacy Guard, security patches,etc).

Except one small bug that can only be replicated if you

do not install

Android 7.1 GApps for ARM stock/super/aroma, everything works perfectly.

The bug in question refers to the default Lineage OS camera video recording option, basically it doesn't allow filming on 30 FPS only 60 FPS or 90 FPS which our devices do not support on 1080p recording resolution.

I have several G7105 phones and on 1st one I installed GApps for ARM 7.1 stock and the default camera was replaced by Google Camera which takes pictures and records videos correctly. On my second G7105 phone I installed GApps for ARM 7.1 mini and this GApps version doesn't replace the default Lineage OS camera which has this bug. So far my fix was to install from Google Play a different camera app which of course works with video recording 1920x1080@30FPS.

tldr: Snap Camera is missing the OFF option from High framerate recording menu.

Thank you again for your great work!
[Galaxy Grand 2 Android Development] dooxxinhgai:
My device is sm-g710k, it is korean version, i cant find any custom rom for this, pls help me :(((
[Galaxy Grand 2 Android Development] Nemirtingas:
I'm not working anymore on Grand2, but you can use my repos to build a ROM for g710K, just modify the Kernel config file to use the Korean version and you're good to go I think.
[Galaxy Grand 2 Android Development] adibagoesindrianto:
Can install this rom on G7102 device?
[Galaxy Grand 2 Android Development] acharya21:
Nope flash los 14.1 by sudeep on G7102
[Galaxy Grand 2 Android Development] Nemirtingas:
OTG Support link in the main post, hope you will enjoy it.
[Galaxy Grand 2 Android Development] Theruski90:
otg support doesn't work i flashed it as image in twrp and tried a mouse using cable
[Galaxy Grand 2 Android Development] Nemirtingas:
Triied a usb stick ? OTG works on my phone. USB Stick, mouse or keyboard, I will upload a video to proove you that it works.

https://www.youtube.com/watch?v=6GMTbTYKPPQ
[Galaxy Grand 2 Android Development] yonathan321:
Me too, but i have the SM-G108V

Me too, but i have the SM-G108V i need help i cant find any rom for this phone :c
[Galaxy Grand 2 Android Development] Theruski90:
I found a bug , when you record a video with camera you cant hear any sound and the video recorded is on high speed
[Galaxy Grand 2 Android Development] Nemirtingas:
I'm building a new version of the ROM.

It will include OTG kernel support

I will enable OTA.

I'm working on NFC and ZRAM kernel support.
[Galaxy Grand 2 Android Development] Theruski90:
Nice keep up the work :good:
[Galaxy Grand 2 Android Development] kevin5871:
There is a patch that coverts G7102 / G7105 roms to G710K roms.

First, download this.

Next, unpack and erase the firstline(which starts with assert) in updater-script, which is located at /META-INF/com/google/android.

Then, repack it with .zip

After that, download : https://xdaforums.com/galaxy-grand-2/development/g2kr-converter-mobile-ports-g7102-g7105-t3536631

Flash the one you edited, and then flash the converter. FLASH THE LINAGE OS FIRST.

Now you can use it. Enjoy.
[Galaxy Grand 2 Android Development] Nutzcrackerz:
When can we use the new one?

---------- Post added at 06:31 PM ---------- Previous post was at 06:30 PM ----------

When will it come?
[Galaxy Grand 2 Android Development] Nemirtingas:
Dunno,

Actually I've rebuilt the kernel with Linaro gcc 7.2. OTA works but I can't figure why zram/vnswap crash. Also NFC really doesn't want to work. I've enabled it, but I receive an error on some NFC frame.
[Galaxy Grand 2 Android Development] kevin5871:
I don't know what's your talking about. Sorry.

IF you are talking about the patch, the newest version of that patch should be made by YOU using Linux PC. If you don't, just download older one : https://xdaforums.com/devdb/project/dl/?id=22548 . It works pretty well, though.
[Galaxy Grand 2 Android Development] srilu96:
Casting using Miracast does not work. Is there any solution for it?
[Galaxy Grand 2 Android Development] Javy.Khan:
Where to find this firmware G7105XXUBQE1 to flash before anything?
[Galaxy Grand 2 Android Development] Mranzy:
This is the best rom out there for G7105, many thanks.
[Galaxy Grand 2 Android Development] Mranzy:
There's a bug concerning the date, it says it's 27/december/1969 in the calendar... I searched a bit and it seems it's a bug in lineage 14.1 November release.

---------- Post added at 10:38 PM ---------- Previous post was at 10:09 PM ----------

Also WiFi signal is very poor.
[Galaxy Grand 2 Android Development] jiangbo:
Me too! I'm new and just drop in this thread and trying to find out the way to save this old phone since it has already been forgotten for a long long time.

Could anybody show me which is this 'firmware G7105XXUBQE1' mean?

How to flash this firmware in advance of flashing the Noughat?

It will be very appreciated if someone could help me with that matter.

Thank you very much to give my old phone a new life again. [MENTION=9416056]Nemirtingas[/MENTION]
[Galaxy Grand 2 Android Development] aidennwitz:
Go here: https://samfrew.com/download/GALAXY__GRAND2__/3m23/AMO/G7105XXUBQF2/G7105AMOBQF1/

And flash this file using Odin. Do note that this will factory reset your device as well as remove any recovery you might have flashed, so you will have to reflash it.

[MENTION=9416056]Nemirtingas[/MENTION]

Thanks for the ROM, mate! I was about to give up looking for a 7.1 for the G7105 and I finally stumbled upon this topic. So far everything works perfect and my mother-in-law's phone has been fully revived.
[Galaxy Grand 2 Android Development] pitchmie:
Here is the solution for this bug mentioned in post #28:

review.lineageos.org/c/LineageOS/android_libcore/+/233993

(As I am new and can't post external links yet add h t t p s at the beginning)

[MENTION=9416056]Nemirtingas[/MENTION]

Could you apply the diff at your branch and build new version with the solution?

---------- Post added at 07:05 AM ---------- Previous post was at 06:55 AM ----------

And I have a question that I will put on second post not to mix the things.

Can I apply OTG solution on top of CM13 or is there some dependency from Lineage14.1?
[Galaxy Grand 2 Android Development] Nemirtingas:
__
[Galaxy Grand 2 Android Development] pitchmie:
There is a problem with Wi-Fi in 22/05/19 version. It stacks on Wi-Fi detecting both during phone initial setup as well as later when trying to turn on Wi-Fi in settings. And it is not just poor signal as I have wireless router next to my knee.

I also noticed that there is NFC available :D . You haven't mentioned that in changelog notes.

It would be nice to have both OTG and NFC but due to lack of Wi-Fi I'm coming back to 03/11/18 for now.

Just imagine that a day ago I didn't wanted to upgrade to it.
[Galaxy Grand 2 Android Development] Nemirtingas:
Lack of wifi ? Can you do

adb shell lsmod

adb shell cat /etc/init.d/50insmod

And for NFC, I've just tested, Android Beam seems to work. Don't know what my version of NFC can do or if it Can do anything more.
[Galaxy Grand 2 Android Development] pitchmie:
Here is output:

C:\Users\pc\Desktop\adb_command>adb devices

List of devices attached

75c66371 device

C:\Users\pc\Desktop\adb_command>adb shell lsmod

Module Size Used by

C:\Users\pc\Desktop\adb_command>adb devices

List of devices attached

75c66371 device

C:\Users\pc\Desktop\adb_command>adb shell cat /etc/init.d/50insmod

#! /system/bin/sh

L="log -p i -t insmod"

MODDIR="/system/lib/modules"

MODULES=("wlan" "cifs" "nfs")

for mod i "${MODULES[@]}"; do

[ -e "$MODDIR/$mod.ko" ] && modprobe $mod

done

C:\Users\pc\Desktop\adb_command>
[Galaxy Grand 2 Android Development] Nemirtingas:
Oh yeah x), you downloaded the buggy version I uploaded for like 30 mins. The link is updated to the new version or you can ota update and wifi will be fixed. To load wifi in the buggy version, type as root: modprobe wlan
[Galaxy Grand 2 Android Development] pitchmie:
I downloaded new version and installed again and now all works. Thanks.

I have one lets call it Change Request for consideration in future implementation though.

When I flashed KitKat (which newest version you mentioned as prerequisite) and connected phone via USB cable then phone was detected by Windows and I could sent files directly to SD card from Windows or through Total Commander.

In both CM and Lineage phone is detected but no files are seen and I have to hassle with adb push/pull to do the same.

I haven't checked yet if there is some bug already created in different forums for it and solution ready. Maybe it also will be quick.
[Galaxy Grand 2 Android Development] Nemirtingas:
That's not a bug, it how Android is meant to be. You have to pull down notification, press the USB charging and set it to File Transfer, something like that and everything will be like in KitKat.
[Galaxy Grand 2 Android Development] pitchmie:
Yep it works. Thanks again.

(as an old saying goes "It's not a bug its a feature").

If number of downlods is important mtter for you consider updating this page with information about your ROM availability.

https://www.cyanogenmods.org/list-lineage-os-14-1-rom-samsung-phones/

I have found this tread just by pure luck.
[Galaxy Grand 2 Android Development] Nemirtingas:
Did you test NFC and OTG ?

I can't test NFC a lot except for NFC Beam, and OTG is working on my device.
[Galaxy Grand 2 Android Development] pitchmie:
Not yet.

Are there any logs you want in case I have opportunity for NFC tests?
[Galaxy Grand 2 Android Development] Nemirtingas:
logcat of all nfc related logs.

But even with logs, I might not be able to debug NFC.
[Galaxy Grand 2 Android Development] Nemirtingas:
Yes its possible, I moved those logs to debug message instead of error messages.

It will be applied into the next release if there is any x).
[Galaxy Grand 2 Android Development] yarek83:
GPS does not work for me. But I have not flashed G7105XXUBQE1 firmware before. I have a G7105XXUBNL1 radio, does it affect gps? Except gps, everything works fine.
[Galaxy Grand 2 Android Development] Nemirtingas:
Yes it could affect GPS.
[Galaxy Grand 2 Android Development] FlorynXDA:
It is not due to band version.

BTW the default LineageOS camera still can't record videos same as previous version.
[Galaxy Grand 2 Android Development] Nemirtingas:
As I said, It CAN affect GPS.

I've got not problems here with camera and video recording.
[Galaxy Grand 2 Android Development] FlorynXDA:
Camera works fine, only video option seems to be buggy (for me it it worked only 1st time after a clean install of 22.05.2019 update). No issues with 3rd party camera application either. Also no issues with OTG .

Not sure why but as I previously said there is a missing setting from the menu which would allow normal video recording (25/30 fps, not 60/90).

Anyways thank you again for this! maybe android 8.1 next -)?
[Galaxy Grand 2 Android Development] Nemirtingas:
Nope sorry, I don't dev for this phone anymore. I'm just providing fix & updates for android 7.1. Its an old phone and bringing 8+ to it will be a bad thing I think as Android gets heavier everytime, we have here a slow internal memory, 1.5 Go ram and a low battery life.

But some guys here are still trying to make it for ms013g, I wish them good luck.
[Galaxy Grand 2 Android Development] yarek83:
I have flashed firmware G7105XXUBQE1 but it did not help me with GPS.
[Galaxy Grand 2 Android Development] Nemirtingas:
You'll have to provide logs at least if you want to fix your problem.
[Galaxy Grand 2 Android Development] yarek83:
[06-01 08:57:45.801 687:734 E/]

E/open failed: /dev/mdm: No such file or directory

[06-01 08:57:45.818 687:734 E/LocSvc_eng]

E/int loc_eng_init(loc_eng_data_s_type&, LocCallbacks*, LOC_API_ADAPTER_EVENT_MASK_T, loc_core::ContextBase*): log_eng state error: instance already initialized

[06-01 08:57:45.818 687:734 E/LocSvc_eng]

E/void loc_eng_agps_init(loc_eng_data_s_type&, AGpsExtCallbacks*): log_eng state error: agps instance already initialized
[Galaxy Grand 2 Android Development] Nemirtingas:
There is nothing in this log, and you should not write logs inside posts if they are big as its polluting the thread.
[Galaxy Grand 2 Android Development] pitchmie:
[MENTION=9533917]yarek83[/MENTION]

1) Try "Windows approach" and turn off/turn on in Settings->Location

2) What happens if you go back to 20181103 version (as I understand you were on it earlier). Does the problem disappear?

3) As I understand you flashed newer version of KitKat recently. Was the GPS working at that stage?

And I agree with

except maybe this three lines (however they don't tell me anything either)

[06-01 08:57:45.801 687:734 E/]

E/open failed: /dev/mdm: No such file or directory

[06-01 08:57:45.818 687:734 E/LocSvc_eng]

E/int loc_eng_init(loc_eng_data_s_type&, LocCallbacks*, LOC_API_ADAPTER_EVENT_MASK_T, loc_core::ContextBase*): log_eng state error: instance already initialized

[06-01 08:57:45.818 687:734 E/LocSvc_eng]

E/void loc_eng_agps_init(loc_eng_data_s_type&, AGpsExtCallbacks*): log_eng state error: agps instance already initialized

Please edit post#58 and delete the rest.
[Galaxy Grand 2 Android Development] yarek83:
1) Does not help

2) On 20181103 was the same problem with GPS

3) I have flashed this https://samfrew.com/download/GALAXY__GRAND2__/3m23/AMO/G7105XXUBQF2/G7105AMOBQF1/ by Odin. But I made a stupid mistake because I did not check the GPS, shame.

The first problem with GPS appeared after flashing ResurrectionRemix-M-v5.7.4 (that was known bug) and then occurs every lineage compilation.

I have a full TWRP backup (with EFS and Modem partitions) of the original stock on which the GPS was ok. Maybe I should first try to restore all partitions through TWRP?
[Galaxy Grand 2 Android Development] pitchmie:
From what you describing it could be anything HW problem including.

I would start with flashing KitKat again and checking that earlier SW didn't damaged your device.

Also it is legacy problem not connected with Nemirtingas work so I don't think that it should be discussed in this thread. Look for solution in any thread with discussion where the original problem is described.
[Galaxy Grand 2 Android Development] Arkiel:
Great ROM !

Nearly everything working fine :

I encountered some troubles with (google) camera/video mode, but using aroma GApps seems to work.

Nevertheless, my cellular network stopped working after I switched Airplane Mode. At first, the SIM card wasn't detected. Removing and replacing it made it recognized again, but from then, it can register on mobile network. The SIM card doesn't seems to be the probleme, as the IMEI is correctly detected and, when searching for mobile networks, it displays the correct provider (Orange F).

I tried re-flashing firmware G7105XXUBOB1 and G7105XXUBQF2, before a clean install, but the problem seems to even occur on stock ROMs now.

I also tried some basic things like manually setting the APN, switching Airplane Mode, de-activate lock screen, ... without success.

Did anyone encountered that problem, or have an idea about how to restore Cellular Network ?
[Galaxy Grand 2 Android Development] Nemirtingas:
Never encountered that issue. Maybe the modem is dying, its an old phone, even mine is giving some signs of weakness.

Just to be sure, reboot it and with adb log kernel messages with dmesg and logcat.
[Galaxy Grand 2 Android Development] Arkiel:
Thanks for your reply !

I provided the logs in attachments.

(I'm currently downloading firmwire XXUBQG2 for testing)
[Galaxy Grand 2 Android Development] Nemirtingas:
Also get into phone call and type *#*#4636#*#* and look into phone info and look for any buggy information, like Preferred network type, Data service & such.

You should test a different sim card or try you sim card into another phone.
[Galaxy Grand 2 Android Development] Arkiel:
It seems like a lot of information in Phone Info are buggy. The only correct/working things are the IMEI number and the signal intensity.

Preferred network type is LTE/UMTS auto (PRL) but i don't know if it's correct.

The Phone number is not visible, Data service is disconnected, data network type is unknown.

Pings also fail.
[Galaxy Grand 2 Android Development] Arkiel:
I'm re-posting to let you know that, by changing the SIM card, everything works fine!

Maybe it is, but i don't think the problem was directly related to the ROM. It seems like it was a bad coincidence, and my SIM card died during the setup.

Anyway, i can delete my previous post, or let them so everyone can know that if they encounter a network problem, it's not necessarily a dying modem!

Thank you for your time and your great ROM [MENTION=9416056]Nemirtingas[/MENTION]
[Galaxy Grand 2 Android Development] Nemirtingas:
Np, good news. You can keep your messages.
[Galaxy Grand 2 Android Development] finnal123:
Phone call still working perfectly but messenger or skype calling not working i can hear them, but they cant hear me
[Galaxy Grand 2 Android Development] Nemirtingas:
I'm building a test version for G710K.
[Galaxy Grand 2 Android Development] Henry Markle:
"Flash firmware G7105XXUBQE1 before !"

How to do this?? ^
[Galaxy Grand 2 Android Development] devAhmedSK:
i tried to download and flash it by odin but it alawys fails

any help please
[Galaxy Grand 2 Android Development] ajay101:
battery charge drains very fast also when connected laptop using wifi hotspot data usage is high even not downloading anything
[Galaxy Grand 2 Android Development] djiskodjisko:
1 BUG. Reporting

Found

I tested this rom and find BUG:

1.)

wi fi signal is unstable and poor

...(in 6.1 rom is signal much better, and in original firmware is also good). My suggestion is to use original settings and files from oriiginal firmvare or from 6.1 rom in this forum and copy/add to this rom)

ANYBODY ANSWER ME HOW TO FIX WI-FI SIGNAL.. FLASH WITH SOME FILE THRU TWRP? SAY SOMETHING.....:rolleyes:
[Galaxy Grand 2 Android Development] Yovanny2000:
SM-G7105

Gracias amigo realmente es increíble pensé que no funcionaría pero me va genial está bien optimizado al primer inicio el sistema es muy lento ya que es imposible usarlo pero en 1 hora el dispositivo se puso rápido nuevamente y ahora va sin errores incluso pude jugar mi juego favorito sin problemas...
[Galaxy Grand 2 Android Development] Sawon M.:
please upload the rom on google drive.beacause mediafire is not working in our country. We cannot download from mediafire.
[Galaxy Grand 2 Android Development] pitchmie:
[MENTION=9533917]yarek83[/MENTION]

For some time I think I was able to reproduce your problem which is that GPS is working but the Google Maps doesn't show your position (no blue dot).

Unfortunatelly (or fortunately for me) the problem is gone now.

Can you confirm that the problem I mention is the one you had?

Do you still have it?

Can you check if upgrade to new version of Google Maps solves the problem?

Can you check if using Magisks solves the problem?

Anyway I haven't done anything with the ROM (even the version without screen ERROR logs not flashed) so the problem is definitely on Google SW side and not in Nemirtingas SW.
[Galaxy Grand 2 Android Development] MelodyCasste:
G7108V needhelp

Hello, my phone is G7108V, which is a 4G mobile phone in mainland China. For this reason, I can't find any ROM suitable for this mobile phone, I wonder if you can help me.
[Galaxy Grand 2 Android Development] Kuwasid:
Can I flash this on SM-G710L Sir?
[Galaxy Grand 2 Android Development] space1x:
Nasıl yükleyebilirim lütfen yardım edin?

Translation: How can I install please help?

Nemirtingas​
[Galaxy Grand 2 Android Development] ebaia:
- Flash firmware G7105XXUBQE1 (search it on web)

- Flash TWRP 3.1.1

- Wipe Everything Except Internal and Sd from TWRP (recovery)

- Flash LineageOS 14.1 ms01lte (05/31/2019)

- Flash Open Gapps

- Reboot
[Galaxy Grand 2 Android Development] hadis9900:
port this rom for g7102 model:cry::cry::cry:
[Galaxy Grand 2 Android Development] Nemirtingas:
Why would I port this rom to G7102 as there are already roms for G7102 ? Even newer than LOS 14.
[Galaxy Grand 2 Android Development] Stephen:
Moderator Information,

Thread has been closed at OP's request.

Many thanks,

Stephen
[Lenovo ZUK Z2 (Plus) Questions & Answers] Test-particle:
Hi Everyone,

I have a Normal old generation LED tv with HDMI, but no WiFi. and I want to use my Z2 plus as Android tv and connect it through HDMI to tv.

Is it possible? if yes please suggest some...

Also, I am okay with using only the phone's motherboard as device for connecting tv. :)