Skip to content

Instantly share code, notes, and snippets.

@nullbytepl
Last active March 5, 2021 09:48
Show Gist options
  • Save nullbytepl/aa48d438571a530bc8a237fa9558d0c1 to your computer and use it in GitHub Desktop.
Save nullbytepl/aa48d438571a530bc8a237fa9558d0c1 to your computer and use it in GitHub Desktop.

Non-lib patches

diff -r original/AndroidManifest.xml mod/AndroidManifest.xml
17c17
<     <application android:allowBackup="false" android:appComponentFactory="androidx.core.app.CoreComponentFactory" android:extractNativeLibs="false" android:icon="@mipmap/ic_launcher" android:label="@string/application_name" android:largeHeap="true" android:name="com.sonymobile.scan3d.Scan3DApp" android:networkSecurityConfig="@xml/network_security_config" android:resizeableActivity="false" android:supportsRtl="true">
---
>     <application android:allowBackup="false" android:appComponentFactory="androidx.core.app.CoreComponentFactory" android:extractNativeLibs="true" android:icon="@mipmap/ic_launcher" android:label="@string/application_name" android:largeHeap="true" android:name="com.sonymobile.scan3d.Scan3DApp" android:networkSecurityConfig="@xml/network_security_config" android:resizeableActivity="false" android:supportsRtl="true">
22c22
<         <uses-library android:name="com.sony.device" android:required="true"/>
---
>         <uses-library android:name="com.sony.device" android:required="false"/>
Binary files original/lib/arm64-v8a/libScan3D.so and mod/lib/arm64-v8a/libScan3D.so differ
Only in original/lib: armeabi-v7a
Only in original/lib: x86
Only in original/lib: x86_64

Lib patches:

libScan3D.so

Replace first BL instruction after ro.com.google.clientidbase is referenced with MOV X0, X0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment