Legacy apps: raise targetSdk for Android 14+

With the new Lineage 21 I found that some old yet very useful apps now fail to install:

Failure [INSTALL_FAILED_DEPRECATED_SDK_VERSION: App package must target at least SDK version 23, but found 19]

I thought would it work if simply raise targetSdk to 23 or it needs more fixes in Java sources?

Bumping targetSdk without adjusting code will almost always break something.