Python Script to resign an Android ROM using custom keys
Sample usage (based on your folder design):
python3 ROM_resigner/resign.py "system/system,vendor,product" ROM_resigner/AOSP_security
python3 ROM_resigner/resign.py "system,vendor,product" ROM_resigner/AOSP_security
For real-life usage, you should replace the signature files in the AOSP_security directory, otherwise the system will be insecure.
This code is released on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied!
HIGH-RISK CODE!!! USE AT OWN RISK!!!!!! YOU MAY BRICK OR DESTROY YOUR DEVICE!!! IT SHOULD ONLY BE USED ON DEVELOPMENT SYSTEMS!
PLEASE DO NOT USE IF YOU DO NOT UNDERSTAND WHAT YOU ARE DOING OR YOU ARE NOT WILLING TO EXCEPT THE RISK OF DESTROYING YOUR DEVICE!!!
YOU HAVE BEEN WARNED!!!