yashsingh1/xdaforums huggingface dataset:
[Moto G5 Plus Guides, News, & Discussion] NZedPred:
This project is inspired by the thread here by Q9Nap

TWRP Flashable Stock Builds

In that thread, Q9Nap (and later me, although in an unofficial capacity) has created TWRP Flashable builds of the stock rom. These would have been based upon the full fastboot flashable stock images, and then OTA patches from those roms.

Although the tools used have been provided in that thread, there isn't a guide saying how to use them. (I originally posted parts of this guide in that thread, but this is to consolidate it all into one project.) So in the below posts, I'll go through the actual process of generating the TWRP flashable builds themselves.

This project is divided into the following posts:

Tools required

Creating a TWRP flashable build from an existing TWRP flashable build + OTA patch

Creating a TWRP flashable build from the fastboot iamges

Here is the link to the builds that I have created. Other older ones are in the thread mentioned at the top of this post.

https://www.androidfilehost.com/?w=files&flid=273039

Finally, this guide could also be used in principle for other devices, however there may be some device or vendor-specific differences.

XDA:DevDB Information

[GUIDE] Creating TWRP Flashbale Stock roms, ROM for the Moto G5 Plus

Contributors

NZedPred

ROM OS Version: 7.x Nougat

Version Information

Status: Stable

Created 2018-06-16

Last Updated 2018-06-16
[Moto G5 Plus Guides, News, & Discussion] david.gs.gm:
Hi.... Will work with Oreo stock ROM too?
[Moto G5 Plus Guides, News, & Discussion] NZedPred:
We'll find out for sure once we get the OTA. I'd expect it will work, given that it is coming from a nougat base for the first one anyway.
[Moto G5 Plus Guides, News, & Discussion] redbeard1083:
Thanks for putting this together. It's a good resource.
[Moto G5 Plus Guides, News, & Discussion] orvon.freeman:
Thank you OP keep up the great work I always keep latest on my ext so I can flash in case of custom rom issues
[Moto G5 Plus Guides, News, & Discussion] NZedPred:
Hi all - the Fastboot to TWRP Flashable guide in post #4 is now complete.

I'd be really interested if anyone has tried following the guide and had success.

All the best.
[Moto G5 Plus Guides, News, & Discussion] NZedPred:
Modem update via OTA

The update I did of NPNS25.137-93-14 (from NPNS25.137-93-10) had something I hadn't seen in previous updates. The modem was updated, but rather than the partition as a whole being patched, individual files within the partition were patched. The relevant parts of the updater-script from the OTA were as follows:

ui_print("Patching modem files...");
apply_patch("/modem/image/cmnlib.b01", "-",
6fa3c6b7659a838aba82f079794a9ac46b74651b, 6632,
720b36038ee0c7152dac051d7f4bb13dfdd3fb15,
package_extract_file("patch/modem/image/cmnlib.b01.p")) ||
abort("E3008: Failed to apply patch to /modem/image/cmnlib.b01");
apply_patch("/modem/image/cmnlib.b02", "-",
155983f129c89d1c8fb96df20e069e388a23c2c2, 178690,
6e0951d9fab22276dd772cb96ae91eff850b5bf1,
package_extract_file("patch/modem/image/cmnlib.b02.p")) ||
abort("E3008: Failed to apply patch to /modem/image/cmnlib.b02");
apply_patch("/modem/image/cmnlib.mdt", "-",
41fdff0863ac1215135802499433644f2b030b92, 6876,
1e7c7b75c2aec4cecfea538b93350975160ce0b5,
package_extract_file("patch/modem/image/cmnlib.mdt.p")) ||
abort("E3008: Failed to apply patch to /modem/image/cmnlib.mdt");

etc - there were a total of 51 patches applied

The other images have been patched directly, rather than individual files within the image. So the approach had to be slightly different:

Create a folder and mount the modem.img file into it

Use ApplyPatch on each of the folders

Unmount the image

Remove the folder

The resulting code to apply the changes looked like this:

# Make a folder to mount the image in
mkdir modem

# Change to a root shell
sudo su

# Mount the modem image to the modem sub-folder
mount modem.img modem

# ensure the ApplyPatch executable is in the path
export PATH=$PATH:"path to ApplyPatch"

ApplyPatch modem/image/cmnlib.b01 - 6fa3c6b7659a838aba82f079794a9ac46b74651b 6632 720b36038ee0c7152dac051d7f4bb13dfdd3fb15 ota/patch/modem/image/cmnlib.b01.p
ApplyPatch modem/image/cmnlib.b02 - 155983f129c89d1c8fb96df20e069e388a23c2c2 178690 6e0951d9fab22276dd772cb96ae91eff850b5bf1 ota/patch/modem/image/cmnlib.b02.p
ApplyPatch modem/image/cmnlib.mdt - 41fdff0863ac1215135802499433644f2b030b92 6876 1e7c7b75c2aec4cecfea538b93350975160ce0b5 ota/patch/modem/image/cmnlib.mdt.p

etc... for the remainder of the patches

# Unmount the modem image
umount modem

# Exit the root shell
exit

# Remove the modem folder
rmdir modem

Because the updater-script was consistently formatted, after doing the first 20 manually to make sure I was doing it right, I used a spreadsheet to extract the relevant hashes and filenames, and turned them into the commands above. This could have been done using a script or similar, but I'm a master of spreadsheets so chose to do it that way :)
[Moto G5 Plus Guides, News, & Discussion] Tech_Savvy:
[MENTION=7346927]NZedPred[/MENTION] is it possible to make a flashable zip to update only the firmware? I'm on custom rom and only would like the upgrade my firmware....would i only have to delete system boot and recovery from the zip?
[Moto G5 Plus Guides, News, & Discussion] NZedPred:
Hi - yes it's possible. Not 100% sure what you mean by "only the firmware" (modem/network related?), but you can alter the update the zip to only update the partitions that you want. These are the current steps in the updater-script (META-INF/com/google/android/updater-script):

modem

fsg

Erase modemst1 and modemst2

dsp

logo

boot

system

oem

Erase ddr

I've read that the modem and fsg are relating to the network. See the thread here for more information: Motorola Moto G Partitions Explained.

Not sure if custom roms would use oem. I know that Treble roms use oem in place of vendor, so if you're using a treble rom you wouldn't want to update that.

So all you need to do is remove the commands you don't want in the updater-script.

Hope this helps a bit.
[Moto G5 Plus Guides, News, & Discussion] NZedPred:
Bootloader partitions

This is a quick guide on determining which partitions are related to the bootloader.

Using a full fastboot firmware, extract the bootloader.img file. Although it is a binary file, it has sections that are text, e.g. the following is using the less command

SINGLE_N_LONELY^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@index.xml^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@<82>^@^@^@^@^@^@^@<?xml version="1.0"?>
<index>
<package compatible="cpu.name:MSM8953 protocol:fastboot" filename="bootloader.pkg.xml"/>
</index>

Scrolling down a few pages, you'll find the following:

<?xml version="1.0" ?>
<recipe>
<flash partition="aboot" filename="emmc_appsboot.mbn"/>
<flash partition="rpm" filename="rpm.mbn"/>
<flash partition="tz" filename="tz.mbn"/>
<flash partition="devcfg" filename="devcfg.mbn"/>
<flash partition="cmnlib" filename="cmnlib.mbn"/>
<flash partition="cmnlib64" filename="cmnlib64.mbn"/>
<flash partition="keymaster" filename="keymaster.mbn"/>
<flash partition="prov" filename="prov.mbn"/>
<flash partition="sbl1" filename="sbl1.mbn"/>
</recipe>

So, that tells us exactly which partitions are updated when we update the bootloader. The filenames and partitions are the same as those that we would see in an OTA, e.g. when we see commands like this:

ui_print("updating rpm ...");
assert(package_extract_file("rpm.mbn", "/tmp/rpm.mbn"),
apply_raw_image("/tmp/rpm.mbn", "rpm"),
delete("/tmp/rpm.mbn"));
show_progress(0.100000,0);
assert(set_backup_flag());
ui_print("updating tz ...");
assert(package_extract_file("tz.mbn", "/tmp/tz.mbn"),
apply_raw_image("/tmp/tz.mbn", "tz"),
delete("/tmp/tz.mbn"));
show_progress(0.050000,0);
ui_print("updating devcfg ...");
assert(package_extract_file("devcfg.mbn", "/tmp/devcfg.mbn"),
apply_raw_image("/tmp/devcfg.mbn", "devcfg"),
delete("/tmp/devcfg.mbn"));
show_progress(0.050000,0);

etc...
[Moto G5 Plus Guides, News, & Discussion] romuloxiii:
Wow, great thread. Thank you so much for providing all of this info. I have been curious about how this works for quite some time. I can't wait to give it a try this coming weekend.

Thanks again mate!!
[Xiaomi Mi A1 Questions & Answers] ajay9804:
Any dev can port one plus 6 camera with super slowmotion and portrait mode
[Xiaomi Mi A1 Questions & Answers] unknown11:
Hmmm...:eek: maybe try this one? https://www.apkmirror.com/apk/oneplus-ltd/oneplus-camera/oneplus-camera-2-5-33-release/oneplus-camera-2-5-33-android-apk-download/
[Xiaomi Mi A1 Questions & Answers] Akhil_72:
you can buy one plus 6 ?
[Samsung Galaxy S7 Questions and Answers] Ibuprophen:
I don't have this device but, the following area of the forum is specific to your device.

https://xdaforums.com/galaxy-s7

The following is the Q&A thread that's specific to your device too.

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

Good Luck!

~~~~~~~~~~~~~~~

I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.
[Samsung Galaxy S7 Questions and Answers] AYBFunkyMonkey:
Doh... my bad, didn't even realize there were device specific forums. Is there any way I can get my topic moved, or should I just repost over there?
[Samsung Galaxy S7 Questions and Answers] Ibuprophen:
This is simple... :)

The following steps are the best way to have a thread moved by a Moderator (and they prefer to be asked by the specific member who opened the thread... that's you).

1) On the first post, select the bottom left triangle (reporting a post).

2) When the next page loads, select the reason on drop down section (at the bottom left of the text area), then select the one that states "Thread/post moving or maintenance".

3) Since this is a simple move, just type the reason within the text area. Something simple like "Can you please move this thread to the, more appropriate, " https://xdaforums.com/galaxy-s7/help" area of the forum. (you can also tell them that "Ibuprophen is awesome!" LOL!).

4) Finally, select the "Send report" and you'll then be taken back to your thread.

Your all set!

The report is then listed on cue for a Moderator. It typically takes anywhere from 10 min to a day or two. The Moderators are very good and are pretty much on top of things.

Reporting a thread isn't intended as a bad thing. It just elevates having to send call-outs and PM's to a bunch of Moderators till one is available.

You've now graduated from the "Moving a thread 101" course! LMAO!!!

Good Luck!

~~~~~~~~~~~~~~~

I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.
[Samsung Galaxy S7 Questions and Answers] AYBFunkyMonkey:
So I've been trying to figure out a way to test the phone with AC power before I make any permanent changes, such as removing the top of the battery. I need something like small alligator clips to grab onto the edges of the battery port on the board. Searching places like Amazon, the smallest I can find are 1" alligator clips, which I already have. They are too large to reliably grab the correct pins, and they feel too strong as well, I worry about cracking the small plastic piece. I need something that functions similar to an alligator clip, but due to the size of this port and how close the pins are together, it would need to be extremely small, like 0.5mm wide or so. Anybody know what type of connector would work for this?
[Samsung Galaxy S7 Questions and Answers] Ibuprophen:
If you're looking for a USB Pinout, I just attached a Standard Samsung USB Pinout that should coincide with your S7 as well.

View attachment 4531678

Good Luck!

~~~~~~~~~~~~~~~

I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.
[Samsung Galaxy S7 Questions and Answers] AYBFunkyMonkey:
Unfortunately, I believe a USB connection would be too low amperage for powering the phone while running 3D games, which is why I'm attempting to use that variable power supply instead.
[Android Head-Units] Daryl80:
Hi All

I have been reading these forums and generally googling day and night trying to work out what went wrong but haven't been able to solve it so far.

So by means of context I bought an android HU (Brand: Andream EW822P8QH) from aliexpress and was working flawlessly until about two weeks ago.

Details can be found aliexpress dot com /item/Octa-Core-2G-RAM-32G-ROM-Car-DVD-Player-Stereo-Android-7-1-Navigation-BT-For/32834839813.html?spm=a2g0s.9042311.0.0.3da24c4dDGESm4

It's running 7.1.2 and was running the CarWebGuru launcher, when apparently it asked for an update.

Since then, none of the physical buttons work. I've lost all steering wheel controls, so am now just reliant on the touch screen itself, so cannot control volume, etc.

Reading all forums, I understood that under Settings - Car Settings - Steering Control settings should allow you to reconfigure all the buttons once again. Unfortunately when I try to load it, the screen goes white, then goes back to the start of the Setting menu. (Interesting, I had a short cut to Steering Controls on my desktop, but again when I launch it, screen goes black then, back to the desktop

I thought there was something in Settings - Car Settings - Extra Settings, by pressing the code 123456, but once again the screen goes white and seems to go back to the start.

It just seems as though, both these settings areas are corrupted/ gone now.

Can anybody provide me with any clues on what I can get this working again?

Happy to do a factory reset, but nothing seems to happen through the Setting menu.

Was thinking is it even possible to install a new ROM etc. I would say while I've done this on my phone, never on a head unit so welcome any advice on which ROM and some guidance on steps.

Oh I can access the Settings - Dev Options by entering the code 7890 so do let me know if you want me to look at anything there. Interesting one last symptom, my navigation menu bar (by swiping down from top of the screen) no longer works., so definitely seems like something buggy is going on.

Thanks in advance to all who reply.
[Windows Mobile Development and Hacking General] shhkkoihai:
Hey guys,

Stealth is a great PDA with li'l drawbacks, which if worked upon, can be made the better.

Well, Is there any way through which i can customize the volume keys, on side of the phone, for scrolling and selecting. Or is there any software available which can do the same.

Thanks.

My Device:

O2 XDA Stealth

WM6.1 WWE 080205Beta1.5

OS: CE OS 5.2.1920 (Build 19199.1.0.0)
[Xiaomi Mi Mix 2 Questions & Answers] jormin:
I have looked through the forum and googled a bit, but i didnt find anyone had provided the fastboot/miflash rom link of global beta 8.6.14 for mix2.

I am wondering if anyone has the download link?

Also, if i flash the recovery one via twrp, the toggle layout if not working on my phone. I cant change the order of the icons also cant replace them with others...
[Xiaomi Mi Mix 2 Questions & Answers] Mackay53:
You won't get a fastboot version for a test rom
[Xiaomi Mi Mix 2 Questions & Answers] jormin:
Well pity me then...

but never mind, the only reason i want to flash via fastboot is the dirty flash made my toggles all gone, but i have found a way to fix it.

https://xdaforums.com/mi-mix-2/how-to/miui-global-oreo-beta-nightly-build-t3736178/page30 this page has the answer
[Huawei Mate 10  Questions & Answers] wonsky21:
Hi.

Anyone knows if M10 Pro has built in ICE or SOS functionalities? Can't find it anywhere...
[Sony Xperia M] michael1342:
can i change my android jelly bean 4.1.2 into marshmallow or higher because i cannot move my apps into sd card i can't install games in my xperia?? Thanks Im beginner in this :):)
[Sony Xperia M] shaqman89:
Yes, you can with a custom ROM.

Just explore into the development forums.

Currently, I'm using a 7.1.2 ROM (Nougat)
[Sony Xperia M] cig84:
Hi! Which ROM are you on?
[Sony Xperia M] shaqman89:
It's this one.

https://xdaforums.com/xperia-m/development/rom-lineageoms-xperia-m-nicki-c1905-t3612243/page21
[Razer Phone Questions & Answers] itosayako:
I'm trying to...

1. tprop persist.usb.eng 1, setprop sys.usb.config mtp,mass_storage,diag,serial_smd,adb, setprop sys.usb.config diag,adb

or

2. dial app

*#*#717717#*#*

but diag port isn't open

Is there a way to access diag mode?
[Samsung Galaxy J7 (2017) Questions & Answers] maxxmann2:
When I receive my unlock code who has the scoop on what to do next
[Samsung Galaxy J7 (2017) Questions & Answers] xxMoon:
Read this

I attained root, here is my guide.

https://xdaforums.com/galaxy-j7/how-to/root-guide-samsung-galaxy-j7-prime-t4010939
[Samsung Galaxy J7 (2017) Questions & Answers] aushmakhadka@gmail.com:
Root
[OnePlus 6 Questions & Answers] Aceliweth:
Hi everyone. I have a OP6 with 5.1.7 OOS and during this 2-3 days I have huge battery drain from Android OS my phone went from 100-0 in 6hours with the screen off
[OnePlus 6 Questions & Answers] mikex8593:
Stock ROM? Wipe cache/dalvik?
[OnePlus 6 Questions & Answers] Aceliweth:
Yes for both
[OnePlus 6 Questions & Answers] DoobyDroid:
Not had that but mine seems to drain fast in the morning from taking of full charge from 7am to 7:50 I'm already down to 91% with little use other than quick browse of FB and Google now feed had this on 5.1.6 just cleared cache in recovery again , jeez my honor 7x I could use for like 10 min constant before it even went from 100% to 99% , summit a miss ?
[OnePlus 6 Questions & Answers] mikex8593:
Did you try a clean install? Or it could be a rogue app not allowing the phone to enter deep sleep. You can download betterbatterystats from this thread.

https://xdaforums.com/showthread.php?t=1179809
[OnePlus 6 Questions & Answers] Aceliweth:
It's really strange
[OnePlus 6 Questions & Answers] Aceliweth:
I will try it today
[Xiaomi Mi Mix 2 Themes, Apps, and Mods] kenet:
DOWNLOAD

https://mega.nz/#!4g9CSaSA!kYML02UApKqHXhvDrdp04xvRAzwzmRBik5RGyjCMuEQ

To return to the stock battery

STOCK BATTERY

https://mega.nz/#!B1tRzBjA!9MqtjJETS0mV1q9rzgkVNHqCdd1b1h6aIoNeoj2mlDk

​

Thanks to gharrington for the sources
[Xiaomi Mi Mix 2 Themes, Apps, and Mods] haistiinta:
not working,black screen after reboot
[Xiaomi Mi Mix 2 Themes, Apps, and Mods] kenet:
Are you using it in global beta 10 miui?

I just installed it again and it goes perfectly.
[Xiaomi Mi Mix 2 Themes, Apps, and Mods] haistiinta:
yes

---------- Post added at 08:58 AM ---------- Previous post was at 08:48 AM ----------

at the second installation it works
[Xiaomi Mi Mix 2 Themes, Apps, and Mods] thuglifesk:
would this work on one .eu rom
[Xiaomi Mi Mix 2 Themes, Apps, and Mods] kenet:
No, if you want the mod. I would need your MiuiSystemUI.
[Xiaomi Mi Mix 2 Themes, Apps, and Mods] frosty234:
I'd also be interested in a version for xiaomi.eu stable miui 10 Rom.
[Android Q&A, Help & Troubleshooting] Allaun:
The phone allows you to enable bootloader unlocking in the developer options. So, I was wondering what command is needed to enable it? :confused:
[Android Q&A, Help & Troubleshooting] bones841:
I have no clue, I've been searching high and low, trying to figure out a way to root this device and I've hit a wall at every turn. Any help would be appreciated
[Android Q&A, Help & Troubleshooting] SP6RK:
Zte firmware needed

If someone can find the zte firmware/stock rom i can install magisk into it untill someone can build a twrp recovery for it

---------- Post added at 01:50 AM ---------- Previous post was at 01:49 AM ----------

If someone finds the firmware i can root it untill someone can build twrp for it
[Android Q&A, Help & Troubleshooting] JONBRYANTDENVER:
uni-android unlock tool will unlock bootloader so you can root the n9137 and many other devices... it cost 50 bucks and its good for a year of unlimited unlocking. GOOD LUCK!
[Android Q&A, Help & Troubleshooting] rob00:
Any progress on this front? I have a ZTE Tempo X N9137 HW1.0 from Assurance Wireless (Free Gov't phone).

I Just want to root this phone, so I can run rooted apps. I am not interested in installing other ROMs (I am not sure, but my feeling is that I have to leave the original ROM alone in order for this phone to continue to work w Assurance Wireless under the gov't lifeline free cell program - someone correct me if I am wrong and it is confirmed that I can actually ROM better ROMs into this ZTE and continue to work normally with Assurance Wireless.)

Do I need to install TWRP or CWM in order to root the ZTE, or can I use ADB and Fastboot to unlock the bootloader and install Magisk or SuperSU to allow root?

I googled around, but I can't find TWRP or CWM for the ZTE N9137.

Any help or link to guides specifically for the ZTE Tempo X N9137 is greatly welcomed and needed,

Thanks
[Android Q&A, Help & Troubleshooting] sketchscarz:
What is needed?

I have this phone as well. You still need the firmware? DO you need the version or the actual firmware file?
[Android Q&A, Help & Troubleshooting] rob00:
Root ZTE Tempo X N9137 Assurance Phone

Any luck rooting this phone using KingRoot?

Has the Bootloader been unlocked yet?

If I ever get this phone rooted,. will I be able to replace the ROM?what will happen to the Assurance portion of it? WIll it still work as a free gov't phone, or does it need to have the Assurance software to work as the free government phone?

I need to root this phone so I can run rooted app to expand the very limited built in storage space. I cannot install any new app because there is no more storage space. The solution is to allow App2SD or other app that install apps into the SD card, but this requires root access.'

any help greatly appreciated