java 如何解压我在 Android 8.1 rom 中找到的 system.new.dat.br 文件(基于aosp)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/47893437/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-03 09:50:58  来源:igfitidea点击:

How to Unpack system.new.dat.br file which I found in Android 8.1 rom(aosp Based)

javaandroidbuildandroid-ndkandroid-build

提问by Nobin Khan

I recently downloaded a aosp based rom from xda for my Xiaomi redmi note 3 pro(kenzo) device. It's name is "Pixel experience android 8.1". when extract the rom zip file, there is a file name "system.new.dat.br" , I want to extract it or unpack. but i can't do it. please can any one help me about this how to unpack the new type system.

我最近从 xda 为我的小米红米 Note 3 pro(kenzo) 设备下载了基于 aosp 的 rom。它的名字是“Pixel Experience android 8.1”。解压rom zip文件时,有一个文件名“system.new.dat.br”,我想解压或解压。但我做不到。请任何人帮助我了解如何解压缩新类型系统。

回答by Vladimir

On Linux this can be decompressed with brotlilike this (Ubuntu):

在 Linux 上,可以像这样使用brotli解压(Ubuntu):

$ sudo apt install brotli
$ brotli --decompress system.new.dat.br -o system.new.dat

回答by Spannaa

system.new.dat.bris system.new.datcompressed into a .br (brotli) file.

system.new.dat.brsystem.new.dat压缩成 .br (brotli) 文件。

On Windows, you can use Eric Lawrence's Brotli.exeto decompress the .br file to system.new.datwhich you can extract as before.

在 Windows 上,您可以使用 Eric Lawrence 的Brotli.exe来解压缩 .br 文件system.new.dat,您可以像以前一样解压到该文件。