OP Package Manager is a custom package management script designed for OnePlus 3/3T devices. It allows you to install, upgrade, preview, and list packages from a GitHub repository, specifically tailored for the OP environment. It also provides easy management of additional configurations, such as bashrc
modifications for custom package behavior.
This tool works directly from the terminal, ensuring seamless installation of necessary packages, along with special handling for configuration files (e.g., op-bashrc
), which are appended to /system/etc/bash/bashrc
to make packages behave as expected.
- Install Packages: Installs a specified version of a package from the repository.
- Preview Packages: Allows you to preview package contents before installation.
- Upgrade Packages: Upgrades installed packages to a specified version.
- List Remote Packages: Lists all available packages and their versions from the GitHub repository.
- Manage Config Files: Appends
op-bashrc
contents to/system/etc/bash/bashrc
if available, ensuring correct behavior for certain packages.
- Root access: This tool requires root privileges to modify the
/system
partition and certain directories. - OnePlus 3/3T: This package manager is designed for use with OnePlus 3/3T devices, but can be adapted for other devices with a similar setup.
curl
andunzip
: Ensure thatcurl
andunzip
are installed on your device, as they are required for fetching and extracting packages.- A working shell environment: The script is intended to be run in a Bash shell or compatible environment.
- Acquire adb shell on OnePlus 3/3T.
- Elevate privileges to root access
su
. - Download release op.zip,
adb push op.zip /sdcard/Download/
. - Install op.zip Command:
magisk --install-module op.zip
- Reboot device.