Manual Patch Resolution
At the end of the apply-waydroid-patches script, it will show the results of how each patch applied. You will want to then make a copy of all the results of the patch scripts (Copy and paste the contents of the terminal output into a Notepad or text document). Each of the patches applied either resulted in "Applying", "Already applied", or "Conflicts". The only ones we want to pay attention to here are the "Conflicts", but only half of them.
Some of the patches have duplicates for different vendor setups. So you will sometimes get results that look like this:
1
Conflicts system/core/0015-init-don-t-bail-out-even-no-SELinux-domain-defined.patch
2
Applying system/core/0015-init-don-t-bail-out-even-no-SELinux-domain-defined.patch 0
Copied!
Notice how the one starting with "0015-" failed, but the patch resolution it found was applied correctly? If that happened on your vendor setup, you can ignore that patch. But if you only see one patch that had a "Conflicts", that will need to be applied and fixed.
First, you apply the patch manually:
1
git am "__patchLocationHere__"
Copied!
You can expect that to fail, but it's crucial to the next step. Next you patch the file again, but using the "patch" command
1
patch -p1 < "__patchLocationHere__"
Copied!
This will generate the .orig & .rej files to help narrow down what you need to fix. Once the conflicting parts (what's in the .rej files) are resolved, delete the .rej & .orig files, then stage the files:
1
git add -A
Copied!
Then we can continue the staged git am commit from the first step:
1
git am --continue
Copied!
After applying the patch(s) to your local project folder, remember to generate the patch needed to resolve that conflict:
1
git format-patch -1
Copied!
Then copy the patch to the appropriate vendor folder for the conflict. Any conflicts that happened from the base patches themselves should go to the vendor/extra/waydroid-patches/roms-patches/your-rom-name/ folder Example:
1
cp system/core/0001-init-don-t-bail-out-even-no-SELinux-domain-defined.patch vendor/extra/waydroid-patches/roms-patches/__YourRomName__/system/core/0015-init-don-t-bail-out-even-no-SELinux-domain-defined.patch
Copied!
Last modified 15d ago
Copy link