You'll probably need to modify a lot of places to get that to work... Have you considered just using Runtime Resource Overlays instead?
You can make resource overlays automatically enable for a specific device variant by, for example, doing this:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="app.i.want.to.overlay.mydevice">
<overlay android:targetPackage="app.i.want.to.overlay"
android:requiredSystemPropertyName="ro.boot.product.hardware.sku"
android:requiredSystemPropertyValue="MyDevice"
android:isStatic="true" /></manifest>
You can also overlay framework resources if necessary, by declaring the overlay as
<overlay android:targetPackage="android" android:priority="1" android:category="android.theme" />
and setting
Best regards,
Arne Christian