Does someone have file_contexts file for OP3 on 7.X (Nougat) ? - OnePlus 3 Questions & Answers

Trying to make some very minor changes to the ROM, and I just need the original "file_contexts" (NON-BIN VERSION) file for OP3 on 7.X (Nougat). Does anyone have a copy of it?
Summary: 7.X+ now uses .bin files ("file_contexts.bin"). I can't use this file with the make_ext4fs utility. I need to use the original format "file_contexts" file. If anyone could convert the attached .bin file (I don't know how, and professor Google doesn't yield any salient results), or if they have a file they know will work, please let me know.
Thank you!!!

Related

[Extract|Build] LG DZ Tools (updated 03/06/11)

Hello.
WP7DZExtract extracts every partition from DZ file and converts flash.bin to nb (opens by htcRIE).
My second tool WP7DZBuild builds DZ from partitions and their table (mb it will be not required, please pm me LG device owners).
By the way, files from that topic were extract using this tool.
Usage:
WP7DZExtract.exe input.dz output_dir, there input.dz is DZ ROM file, output_dir is directory.
In output directory will be created many files, one of them, flash.bin, is nb file, just rename it to flash.nb and open it using htcRIE or any tool.
WP7DZBuild.exe input_dir output.dz, there input_dir is directory constains flash.bin, output.dz is out file.
Note: This tools requires .Net Framework 4.0 (at least Client Profile). You can download it form Microsoft web site.
I hope it works (althrough my device is LG, but there is no way to dump or flash it's ROM). Any bugreports here.
Thanks!
I've used standart GZIPStream (works well for unpacking), but it's output doesn't equals original, i've tried to use SharpZip, DotNetZip and even gzip, but uselessly... LG Flasher doesn't work on my computer (why?), so i can't check my work, i fully hope on you, LG owners! Sorry for my english, i dislike online translators and write as i know, though my english skill is pour (too).
Very nice. Hope to get using this very soon.
Yes support for lg devices i am loving it :3 Thanks.
I will tested out.
thx for sharing
Build tool is ready!
Great work!
I'm getting a "#46 Cannot load. Invalid file format" when opening flash.nb with HTCRIE
Please post the link to your ROM, mb i broked down something while developed build tool.
Telus_LG_E900
airwa1kin7 said:
Telus_LG_E900
Click to expand...
Click to collapse
Everything works well. Mb you are using old version of htcRIE? Try to donwload most fresh. At least WP7DZExtract checks hash after unpacking and compares it with dz included, so if hash matchs file is successfully unpacked.
Screenshot
Your correct. I was using "0.5.0.12" Upgraded to "0.7.0.19" and it works.
I was able to get the LG Quantum dz and use these tools to have a look inside the rom and the registry. It makes me wish we could rebuild these roms to unbrand them.
fb401 said:
I was able to get the LG Quantum dz and use these tools to have a look inside the rom and the registry. It makes me wish we could rebuild these roms to unbrand them.
Click to expand...
Click to collapse
That's right, i wanted to build my own rom, but as i wrote above there is no rom for my device. Please test it LG owners, i want to check my gz.
WP7DZBuild
I have been working on my own encrypt/decrypt program. The decrypting is fine, however the trick is encrypting the extracted files back into a flashable image. Using GZip or Zip on linux produces a ROM that is 200 KB smaller than the original LG C900AT ROM. The LG flasher program gives the error "ErrNum 501 Load Image."
So I tried using your WP7DZBuild tool to create a ROM and it's size is 214 MB, the original ROM is ~191.8 MB. The LG flasher program does not give an error when using the ROM built with your tool, but the ROM will not flash to the phone (LG Quantum C900). The LG flasher program just sits waiting. It seems as if the recompression of the files is the key to making the build process work. The original ROM from LG contains files that are decompressable with GZip, but using GZip to recompress results in an invalid file.
I have looked at the binary file produced when using both GZip and Zip, both contain the filename which is not included in the Original ROM . Also, looking at the GZIP file format, some of the Data headers are empty in the original ROM, but both GZip and ZIP fill these fields in.
Do you guys have any ideas as to a ZIP program/library that can output a valid Zip file for inclusion in a flashable ROM that does not include the name of the file that was compressed to make the file? Maybe the original LG encryption program deletes/zeros certain fields in the Zip file header?
Also, just taking the decrypted original ROM's files while still compressed by whatever method LG used, I can create a flashable ROM (it's actually what my phone is running right now!). I'm thinking of GZipping the files and then going back and zeroing out the fields so that the data headers match the original. Maybe that will work.
Has anybody else tried to rebuild a ROM and flash it to the phone?
Everyone test on kdz g5 ?

[Q][02/24/2012]How to make flashable file for DHD

Hello people,
As I stated on the title, I would like to know how to make flashable file.
Here I have a system apk file and I want to make it flashable.
If you can give me a suggestion, I really appreciate it.
Best regards.
http://forum.xda-developers.com/showthread.php?t=732957
if u are using windows then create a folder wich is zipped for it to be flashable

nned xml files from Official Oreo Rom

Hi All,
i'd be grateful if someone uploads the following files from Official Oreo
media_profiles.xml
media_profiles_V1_0.xml
media_profiles_vendor.xml
they should be in
system/etc/
and
system/vender/etc/
thanks.
Here is media_profiles_v1.0. I can't find the other two files you asked for. There are a bunch of media_codec files though. I looked in the places you suggested and did a root search.
Couldn't find this file:
Code:
media_profiles_vendor.xml
By the way, the media_profiles_V1_0.xml attached was found in:
Code:
/vendor/etc

vendor folder

Hey guys, anyone on nougat 7.1.2 ?
Can you provide me full vendor folder from that rom.?
I'll be thankful to you
@dean [email protected]#, the easiest way is to download the factory-image, matching your ROM, and extracting vendor.img from there.
but bro @rp158 ,I want extracted vendor.img
How i can extract it.
@dean [email protected]#, corrected the link above. You've to extract the zip-file, simply. What's your problem preciesly?
@rp158 went to your given link extracted that folder then it also gives vendor.img. If you have nexus 5x can you provide me the folder from /system.
As I need this folder for porting purposes.
@dean [email protected]#: either I or you don't understand: nearly every month there's a new vendor.img. So you need the version belonging to your specific ROM-build, probably not mine.
To go on: post the build-number of your ROM.
Build number- (OPR4.170623.020)
Please provide it unpacked.
@dean [email protected]#: that's 8.0.0 revision 35. Cannot download the whole package atm, maybe tomorrow. But what's your problem now? The download, an unzip-function, anything else?
@rp158 My problem only is that I am not able to unpack vendor.img only.
@dean [email protected]#: it's a long way, with your minimal step-by-step- information
I guess, you've no PC available to extract vendor from factory image. I did it now by TotalCommander on my N5X... If this whyever doesn't succeed, I'll upload it to MEGA. But you'll understand, that's quite laborious for a monthly changing file...
Added vendor.img from 8.0.0 r35
@rp158 Is there any way to unpack this img
@dean [email protected]#: ookeee, now I understand. I was the whole time at the dark side of your moon, sorry. Look at this tool.
@dean [email protected]#: my actual vendor-folder 8.0.0 r35 as zip-file uploaded, finally (older image deleted). Hope it helps.
@rp158 Thanks bro for providing

Android 9.05 build.prop

Anyone on latest Android Pie, please share build.prop
File name is "build.txt" because they wouldn't let me upload it with ".prop" extension.
Download, rename to "build.prop"

Categories

Resources