Note the pits where Tinker is used:

The hardening mode is 360. Other hardening modes are not tested:

// Whether to enable the hardening mode. The default value is false.(supported from tinker-spport 1.0.7) isProtectedApp =true

implementation 'com. Tencent. Bugly: crashreport_upgrade: 1.3.5'
implementation 'com. Tencent. Tinker: tinker - android - lib: 1.9.8'
implementation 'com. Tencent. Bugly: nativecrashreport: 3.3.0' 
Copy the code

1. Update only resource files:

1.1 Hardening Mode Not Enabled:

App unhardened: patches can be detected and used normally. App hardened: patches can be detected and used normally

1.2 Enabling the Hardening Mode:

App unhardened: patches can be detected and used normally. App hardened: patches can be detected and used normally

Update resource files and Java files:

2.1 Hardening Mode Not Enabled:

App Unhardened: patches can be detected and used properly. App hardened: patches cannot be detected

2.2 Enabling the Hardening Mode:

App unhardened: patches can be detected and used normally. App hardened: patches can be detected and used normally

Conclusion:

1. The hardening does not affect resource files

2. The hardening mode is compatible with the unhardening mode