yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi 3s Questions & Answers] Asycid:
It works for me too, finally! :)

I think you maybe have to try this:

0) Boot into TWRP recovery

1) Flash ROM

2) Flash gapps (version must be ARM64, 8.1)

3) Reboot to system.

4) Wait a minute, you'll get the infinite boot

5) Reboot phone to TWRP

6) Wipe Dalvik / cache / system / data

7) Flash ROM again

8) Flash Gapps again

9) Now open TWRP --> Mount --> TICK "System" and UNTICK "Mount system as read only"

10) Now open TWRP --> Advanced --> File Manager

11) Go to /system/ and copy the build.prop file to /sdcard/ (DONT'T REBOOT PHONE)

12) On PC, copy build.prop from SDCARD to you local drive and modify it with a text editor. Add this line to the bottom of the build.prop file:

ro.setupwizard.mode=DISABLED

13) Delete the build.prop file from SDCARD

14) Copy this modified build.prop file from your PC drive to your /SDCARD

15) Now in TWRP --> Advanced --> File manager copy this modified build.prop from /sdcard/ to /system/ AND at here push on the /system/build.prop file and selecr "CHMOD" and give this number: "0744"

16) Reboot to system. Now it should boot normally with Gapps. :good:
[Xiaomi Redmi 3s Questions & Answers] madbatwithhat:
Thank you kindly. After days of bootloops flashed xperience custom rom (treble) and gapps (nano) from today successful.
[Xiaomi Redmi 3s Questions & Answers] mixi67:
Thank you bro, it works with me. :) :good: (BTW 6, 7, 8, it is not necessary, or I have jumped and worked) Big thanks one more time

. :)
[Xiaomi Redmi 3s Questions & Answers] alberttaucher:
I have the same issue, will try some of the recommendation from this thread, thanks.
[Xiaomi Redmi 3s Questions & Answers] mixi67:
I have tried the above method with several roms, so it works like this:

0) Boot into TWRP recovery

1) clean cache, dalvik, system, data

3) Flash ROM

4) Flash gapps (version must be ARM64, 8.1)

5) Now open TWRP --> Mount --> TICK "System" and UNTICK "Mount system as read only"

6) Now open TWRP --> Advanced --> File Manager

7) Go to /system/ and copy the build.prop file to /sdcard/ (DONT'T REBOOT PHONE)

8) On PC, copy build.prop from SDCARD to you local drive and modify it with a text editor. Add this line to the bottom of the build.prop file:

ro.setupwizard.mode=DISABLED

9) Delete the build.prop file from SDCARD

10) Copy this modified build.prop file from your PC drive to your /SDCARD

11) Now in TWRP --> Advanced --> File manager copy this modified build.prop from /sdcard/ to /system/ AND at here push on the /system/build.prop file and selecr "CHMOD" and give this number: "0744"

12) Reboot to system. Now it should boot normally with Gapps.

Thanks for the good idea Asycid. :)

P.S.: I edit the file build.prop notepad ++.... sorry my bad english. :)
[Xiaomi Redmi 3s Questions & Answers] alberttaucher:
This solution was working perfectly for me, I just added the mentioned line into build.prop

You can double check what you entered afterwards by using

> cat /system/build.prop
[Xiaomi Redmi 3s Questions & Answers] johnnynuca14:
First boot without sim card and sdcard. Works for me.
[Xiaomi Redmi 3s Questions & Answers] sanjeev_kannan:
Format data and flash
[Xiaomi Redmi 3s Questions & Answers] kemoti:
I confirm it works.
[Xiaomi Redmi 3s Questions & Answers] the_fox_icq:
Can confirm this also works for me :)
[8525, TyTN, MDA Vario II, JasJam ROM Development] rh_wa:
How do I make background images fit the screen? It seems they are all "overscanned" or zoomed in.

Thanks.
[8525, TyTN, MDA Vario II, JasJam ROM Development] softonic123:
320by240 should fit your needs
[Samsung Galaxy J7 Prime / J7 On NXT (Exynos7870)] DarkLord1731:
/*
* 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. You will need to provide your own Google Applications package (gapps). LineageOS 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 our Gerrit Code Review. Your changelog is whatever was merged into gerrit.

Known Issues

- VOLTE

- Touch on delay sometimes

Installation:

Download the zip

Wipe data/factory reset (Needed on first install)

Flash LineageOS

Optional: Install the Google Apps addon package

Reboot

Changelogs:

Checkout Post 2

Downloads:

ROM:

LineageOS Builds

GAPPS:

Official Open Gapps (recommended)

MindTheGapps

NOTE:

- Make sure you flash gapps before first boot to prevert FC

- If you face any FC don't blame me or lineage, it's probably your fault, fix it yourself.

HIT THANKS IF YOU LIKE MY WORK

PAYPAL LINK

Donations will motivate me for further development:)​

XDA:DevDB Information

LineageOS 15.1, ROM for the Samsung Galaxy J7

Contributors

DarkLord1731, LineageOS Team & Contributors, Exynos7870 Team

Source Code: https://github.com/LineageOS

ROM OS Version: 8.x Oreo

ROM Kernel: Linux 3.x

ROM Firmware Required: Nougat/Oreo Bootloader

Based On: AOSP

Version Information

Status: No Longer Updated

Stable Release Date: 2018-12-22

Created 2018-02-01

Last Updated 2019-08-11
[Samsung Galaxy J7 Prime / J7 On NXT (Exynos7870)] DarkLord1731:
If you are facing some bugs other than the ones mentioned in the thread i recommend you to make a clean install with no additional addons you may have installed, and check if those bugs persist because many a times people use some scripts or tweaks for performance/battery tuning and end up with some things broken
[Samsung Galaxy J7 Prime / J7 On NXT (Exynos7870)] BasharSYR:
Tanq

Tanq eu sar :D
[Samsung Galaxy J7 Prime / J7 On NXT (Exynos7870)] Cruxter321:
Awesome!!!!

Thank you very much Dev
[Samsung Galaxy J7 Prime / J7 On NXT (Exynos7870)] Kherham:
Thank you bro. Will test on this weekend.
[Samsung Galaxy J7 Prime / J7 On NXT (Exynos7870)] gencemre2795:
Thanks Bro (Emre Genç YouTube Channel)
[Samsung Galaxy J7 Prime / J7 On NXT (Exynos7870)] chichareal:
Pls dev j7 pro
[Samsung Galaxy J7 Prime / J7 On NXT (Exynos7870)] xcosby:
Show start :) thanks [MENTION=8535890]DarkLord1731[/MENTION]

---------- Post added at 15:54 ---------- Previous post was at 15:52 ----------

Show start :) thanks [MENTION=8535890]DarkLord1731[/MENTION]

---------- Post added at 15:55 ---------- Previous post was at 15:54 ----------

Show start :) thanks [MENTION=8535890]DarkLord1731[/MENTION]

---------- Post added at 15:59 ---------- Previous post was at 15:55 ----------

Show start :) thanks [MENTION=8535890]DarkLord1731[/MENTION]

---------- Post added at 15:59 ---------- Previous post was at 15:59 ----------

Show start :) thanks [MENTION=8535890]DarkLord1731[/MENTION]
[Samsung Galaxy J7 Prime / J7 On NXT (Exynos7870)] chichareal:
Pls dev j7 pro

---------- Post added at 01:14 PM ---------- Previous post was at 12:20 PM ----------

Working j7 pro?
[Samsung Galaxy J7 Prime / J7 On NXT (Exynos7870)] Dreamer130:
Downloaded gonna try ryt now
[Samsung Galaxy J7 Prime / J7 On NXT (Exynos7870)] Mohamed El IDRISSI:
Finally! Gonna test it and report any bugs I find :D

---------- Post added at 02:42 PM ---------- Previous post was at 02:35 PM ----------

This is for J7 Prime J610F do not try on J7 pro!!!
[Samsung Galaxy J7 Prime / J7 On NXT (Exynos7870)] Dreamer130:
Don't flash it bro not yet it doesn't flash I tried just now but it wont flash

---------- Post added at 02:44 PM ---------- Previous post was at 02:42 PM ----------

Rom isn't flashing bro plz check it ? I wiped everything and at last the Rom won't flash had to flash feedstock Rom again hope you fix that file
[Samsung Galaxy J7 Prime / J7 On NXT (Exynos7870)] xcosby:
Show start :) thanks [MENTION=8535890]DarkLord1731[/MENTION]

---------- Post added at 17:47 ---------- Previous post was at 17:46 ----------

Show start :) thanks [MENTION=8535890]DarkLord1731[/MENTION]
[Samsung Galaxy J7 Prime / J7 On NXT (Exynos7870)] xcosby:
Show start :) thanks [MENTION=8535890]DarkLord1731[/MENTION]
[Samsung Galaxy J7 Prime / J7 On NXT (Exynos7870)] Mohamed El IDRISSI:
Are you sure what is the error showing??, You should have done a backup in twrp
[Samsung Galaxy J7 Prime / J7 On NXT (Exynos7870)] Dreamer130:
As always I thought it would flash so I didn't took nanbackup an i wiped data dalvik caches internal caches an flashed the rom it it said this rom is for device on7exelte an your device is: an error occuerd bla bla i didn't remember after that sorry for that ? but rom didn't flash ☹
[Samsung Galaxy J7 Prime / J7 On NXT (Exynos7870)] bjpp21:
Thank you very much :)
[Samsung Galaxy J7 Prime / J7 On NXT (Exynos7870)] Mohamed El IDRISSI:
[MENTION=8535890]DarkLord1731[/MENTION]It is indeed not working luckily I did a backup here's log
[Moto E4 Plus Guides, News, & Discussion] zerogun:
WARNING: if the gpt.bin flash did not work, please stop and do not continue with the rest of the commands. It has been brought to my attention that software upgrades to the phone has changed the gpt and may not allow you to go back to the original stock firmware.

For all of you who DID NOT do a System image backup in TWRP and then found out your backup doesn't work.

First get your stock firmware here, the only place to get Moto stock firmware!

https://firmware.center/firmware/Motorola/Moto E4 Plus/Stock/

Then get fastboot. Google fastboot or grab the one from here: This one still works:

https://xdaforums.com/showthread.php?t=2317790

If your fastboot directory isn't in your $PATH or you don't know how to do that, then copy fastboot into the same folder where you unzipped your stock firmware.

Got to the folder where you put everythig, open up a command or powershell prompt. Hold down shift, right click, "open command window here".

Now for the fun. You veterans can just look at the flashfile.xml to see the order. Those of you who are new, here are the commands you need to do. You could probably copy the entire thing and past it in your command window at one time. But I like to type it out.... line by line. You know, old school.

Commands:

fastboot oem fb_mode_set
fastboot flash gpt gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash modem hlos.bin
fastboot flash fsg fsg.mbn
fastboot erase modemst1
fastboot erase modemst2
fastboot flash dsp adspso.bin
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash oem oem.img
fastboot erase cache
fastboot erase userdata
fastboot erase ddr
fastboot oem fb_mode_clear
fastboot reboot

the command to erase ddr will probably fail, but that shouldn't affect anything. I have tested by bringing my Moto E4 Plus that was running Lineage OS back to 100% stock. Of course, then I went right back to Lineage :)
[Moto E4 Plus Guides, News, & Discussion] glockman4519:
Outstanding. Thank you for the post. I'm sure this will get used quite a bit. I did do a backup but it's always nice to have contingencies at the ready.
[Moto E4 Plus Guides, News, & Discussion] glockman4519:
I know this may sound like a stupid question, but which firmware package should I download and use for the Device purchased straight from Motorola? There are quite a few there and I don't want to flash the wrong one. This device was supposed too work on any US carrier and I would like to keep it that way, but my carrier is Verizon. All I had to do, when I got the device was install my Verizon Sim out of my Nexus 6 and it worked great. I do test for Cricket network too and that is a GSM radio so as I said, I would like it to have the firmware that would have come right from Motorola for this specific device. Thank you in advance.
[Moto E4 Plus Guides, News, & Discussion] aj2333:
https://firmware.center/firmware/Mo...ubsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
[Moto E4 Plus Guides, News, & Discussion] glockman4519:
Thank you very much. You sir are an awesome person.
[Moto E4 Plus Guides, News, & Discussion] glockman4519:
I have another question and forgive me for being a pain but all steps went ok but at the end where the re-boot takes place it just keeps flashing back and forth from a black screen with "Bad Key" in the upper left corner and then to a screen with a colorful circle that says "erasing". I figured it was just doing a factory reset but it just keeps flashing back and forth between the 2 screens. Any idea what to try ? I tryed to boot to recovery and get the same thing. Thank you for any help.
[Moto E4 Plus Guides, News, & Discussion] zerogun:
Did you remember to do an fastboot OEM fb_mode_clear?
[Moto E4 Plus Guides, News, & Discussion] glockman4519:
no I didn't do that. I will go back over your instructions and re-do it. Thank you again for your assistance. I usually don't bug people for help and try to fix things on my own so I really appreciate you help.
[Moto E4 Plus Guides, News, & Discussion] glockman4519:
Actually that is the command input right before the reboot command so I guess I did do that command. I will research this more and thank you for your help once again.
[Moto E4 Plus Guides, News, & Discussion] doodalydoo:
The cmd commands above aren't written correctly for carrier unlocked E4 Plus's. Hlos.bin isn't in the unlocked stock ROM, NON-HLOS.bin is. Also, "flasty" should be flash. Here is the correct commands. This worked on my unlocked phone.

fastboot oem fb_mode_set
fastboot flash gpt gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot erase modemst1
fastboot erase modemst2
fastboot flash dsp adspso.bin
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash oem oem.img
fastboot erase cache
fastboot erase userdata
fastboot erase ddr
fastboot oem fb_mode_clear
fastboot reboot
[Moto E4 Plus Guides, News, & Discussion] glockman4519:
You Sir are the man. I can't thank you enough for your help.

Update: Awesome.... It worked like a charm. I have everything copied now in case I hit the wall again. Thank you once again.
[Moto E4 Plus Guides, News, & Discussion] soaringowl2145:
So I have used this and it worked great. However does anyone know when the firmware in that download will be updated to the latest version?
[Moto E4 Plus Guides, News, & Discussion] almao11:
XT1775 rom's is possible install on XT1776 ?
[Moto E4 Plus Guides, News, & Discussion] bcrichster:
Not Stock ROM, no. Custom ROMs should work fine tho

---------- Post added at 11:41 AM ---------- Previous post was at 11:32 AM ----------

For OP [MENTION=4939155]zerogun[/MENTION] & those of you wondering which stock ROM Firmware to grab for Boost Mobile's XT1776 (owens), I used this one and it worked 100%. The Fastboot cmd list in the 10th post or so i nears perfect, (all the rest is Golden) except that for the Boost Mobile FW's:

fastboot flash oem.img

..needs to actually be:

fastboot flash oem.img_sparsechunk.0

fastboot flash oem.img_sparsechunk.1
[Moto E4 Plus Guides, News, & Discussion] mattleft:
Cool miner malware that pops up on firmware.center.
[Moto E4 Plus Guides, News, & Discussion] koop1955:
I haven't had that problem. Have you scanned your PC for virus/malware?
[Moto E4 Plus Guides, News, & Discussion] soaringowl2145:
I would like to relock my bootloader but on this firmware it says the boot is not signed. Can I relock it after I do the ota as they should be signed then right?
[Moto E4 Plus Guides, News, & Discussion] mindstream98:
Did this allow you to use a non Boost/Sprint sim card?

Thanks,

Victor
[Moto E4 Plus Guides, News, & Discussion] bcrichster:
I read in another thread that it was possible by using a Custom ROM but haven't tried it myself..

Although the Custom ROMs should work on several Carriers, this is a "Completely Back to Stock" thread..

Running an Xp3r!meπt with my XT1776
[Moto E4 Plus Guides, News, & Discussion] stonefabtim:
I used this to go back to stock, now my phone wont even turn on, at all.
[Moto E4 Plus Guides, News, & Discussion] doodalydoo:
Did you ever find a solution to this? My phone is doing the same thing. I have reverted my phone back to stock multiple times using this method without a problem, so I know I didn't do it wrong.

Update 1: I just noticed when I plugged my phone into my computer, the computer can recognize it, but it says "unknown usb device descriptor request failed". This gives me hope because that means the phone is actually on. I figured it was powered off and wouldn't turn on. Seems like the phone is frozen in a pre-boot state or something. I ordered a kit with the appropriate tools to get to the battery. I'm hoping unplugging the battery and plugging it back in can at least get the phone to a state where it can be fixed with something like QFIL.

Update 2: Well I unplugged the battery and plugged it back in and now my computer detects it as "qualcomm hs usb qdloader 9008", which is good because that is what is necessary for programs like QFIL to work. Unfortunately I can't find the the appropriate files to input into QFIL. I need a firehose programmer file and a rawprogram file. Does anyone know how to get these?

Update 3: I found this guide which has a download for those files (https://www.droidsavvy.com/unbrick-qualcomm-mobiles/). I keep getting the sahara fail error though and I don't know how to fix it.
[Moto E4 Plus Guides, News, & Discussion] Josh'sDroid:
It worked... but

It will always boot with the "bad key" text. However, after 5 seconds, the Motorola logo will appear, and boot normally into Android.

I followed all of your instructions. What could be wrong?
[Moto E4 Plus Guides, News, & Discussion] doodalydoo:
Nothing is wrong. As you said, your phone will boot up normally. The bad key texts happens when you unlock your bootloader I believe.
[Moto E4 Plus Guides, News, & Discussion] bcrichster:
Correct. Then it'll change to N/A when ya flash TWRP
[Moto E4 Plus Guides, News, & Discussion] hottlawn:
I am in the same boat. Anyone out there have or can create the files necessary for qfil to work for our phone would be greatly appreciated
[Moto E4 Plus Guides, News, & Discussion] Grelwing:
OK I've been following this guide for a Moto E4 Plus from Boost. It seems to work right up until the phone boots to the 'Welcome' screen. Then I get a persistant error stating 'com.android.phone has stopped'

From what I can deduce from booting to Fastboot, I am running the Owens XT1776. I used [IMG="firmware used"]https://i.imgur.com/zNvKrYd.png[/IMG] firmware to flash onto the phone. I used the set of commands posted by 'Doodalydoo'.

Can't quite figure out where I've gone wrong. I'm pretty good at following directions lol, but obviously not quite good enough. Could someone give me an idea what could be happening?
[Moto E4 Plus Guides, News, & Discussion] bcrichster:
Did you see my post where the oem.img cmds was changed to oem.img_sparsechunk.0 & oem.img_sparsechunk.1 ?

My Boost Mobile (version) thread is here:

https://androidforums.com/threads/b...-to-stock-for-motorola-e4-plus-owens.1264881/
[Moto E4 Plus Guides, News, & Discussion] Grelwing:
Nope. I'm an idiot and missed that post. Thanks! That worked.

!
[Moto E4 Plus Guides, News, & Discussion] bcrichster:
Right on. I found it right after having the exact same issue, going back and comparing file names to the posted cmds.
[Moto E4 Plus Guides, News, & Discussion] Josh'sDroid:
Correct N/A text.

This file will correct that and will display the Google Pixel's boot logo instead of the black screen with the N/A text.

This won't overwrite your existing boot animation.

Flash it through TWRP.
[Moto E4 Plus Guides, News, & Discussion] zerogun:
What you can do is to flash a custom boot logo. That way you don't have to see the N/A ever again.
[Moto E4 Plus Guides, News, & Discussion] Josh'sDroid:
Yeah, that's what I posted a few days ago lol. Thanks ;)
[Moto E4 Plus Guides, News, & Discussion] zerogun:
Oops, didn't see that. My bad. And thanks for posting that Logo. Much better than the white screen with the Moto M I was using.
[Moto E4 Plus Guides, News, & Discussion] stere0123:
Caution!

A quick word of caution to anyone considering following this method - I have also bricked my device by following the commands in post #10, putting myself in exactly the same situation as in posts #20, #21, and #25 with the same error when attempting to unbrick.

(I should have read ahead before blindly running commands!)

Additional information, in case it helps us resolve this (since this method does seem to work for some people, or at least previously did):

I had LineageOS 14.1 and TWRP 3.1.1 installed.

It was model XT1775, factory unlocked (purchased from Amazon).

I performed a factory reset wipe in TWRP then rebooted via TWRP into the bootloader to run the fastboot commands.

I used the "OWENS_RETAIL_7.1.1_NPR26.58-25_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip" file from firmware.center.

The commands ran and their output is in this paste: https://pastebin.com/8XP0Lvsm
[Moto E4 Plus Guides, News, & Discussion] JUSTINMARMER:
This thread saved my phone. All the original steps worked great. No issues.
[Moto E4 Plus Guides, News, & Discussion] gergev:
I also have the Amazon unlocked E4 Plus, and have the phone rooted but want to go back to stock. The phone's current build is NPRS26.58.45.6. Can I use the firmware OWENS_RETAIL_7.1.1_NPR26.58-25_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip ? I thought I read somewhere to not flash with an earlier build.

If I can flash it with the stock NPR26.58-25 build, will it then receive the security updates? Right now the phone is trying to download and update, but on reboot the install is unsuccessful.
[Moto E4 Plus Guides, News, & Discussion] bcrichster:
I don't think I'd try that... ONLY flash the one with exact same numbers
[Moto E4 Plus Guides, News, & Discussion] gergev:
What was your phone's build number prior to flashing it with NPR26.58-25, the same?
[Moto E4 Plus Guides, News, & Discussion] stere0123:
I do not remember if the build number matched.
[Moto E4 Plus Guides, News, & Discussion] gergev:
OK thanks. I purchased mine in April 18 and by that time the build number was already ahead of "stock", so this thread only applies if no updates have been downloaded and installed I guess. My phone is on NPRS26.58.45.6 and moto is trying to download security update NPRS26.58.45.9.
[Moto E4 Plus Guides, News, & Discussion] sammytyt:
Somebody pls help me my phone is not turning on its stuck on moto logo and i tried adb fastboot bt nothing happend i think i flash a corrupted rom my phone model is xt 1770
[Moto E4 Plus Guides, News, & Discussion] bcrichster:
Your phone is MediaTek (nicklaus) but you are asking in Qualcomm (owens) thread.. You can probably get better help from the ones who are using nicklaus..
[Moto E4 Plus Guides, News, & Discussion] sammytyt:
Sir will u pls help me i tried some nicklaus rom using spflashtool bt ntng happend