Comments (1)
Thanks for the suggestion of --depth=1
! I'm going to add that shortly.
updater-script
should pull the modems/radios and firmware update binaries. What each (cmnlib64.mbn, cmnlib.mbn) specifically does, I couldn't tell you as my knowledge of the Android filesystem is limited.
This portion was taken from the OxygenOS .zip - this part is updating the system portion of Android, so removing them would either not update the device or potentially cause booting errors. I run this script on my daily device, so I don't have a means to test removing them. :)
You can confirm such is not malicious as the package_extract_file
function is triggering files originally copied from the .zip you specified from Oneplus (they don't actually exist anywhere in this repo).
Example:
# Extract ROM
echo "Extracting from the source image..."
unzip -q "$OXYGEN_PATH" firmware-update/* -d "tmp/"
unzip -jq "$OXYGEN_PATH" RADIO/* -d "tmp/firmware-update/"
- $OXYGEN_PATH is what you entered during the start of
./extract
being run firmware-update/
is a directory pulled during the unzip command and destined for a temporary foldertmp/
If you unzip your OxygenOS zip, you'll see firmware-update
as one of the main folders, with all of these files.
If you'd like to see it in action, add exit
before the end of the script/any cleanup, or comment out the cleanup()
function and you'll be able to see these folders before they get erased.
With regards to update-binary: this wiki should help
from firmware_oneplus.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firmware_oneplus.