This would also mean that my whole inner layer will be installed on my users devices Even only a small part of that layer is really used.
Business logic should not be shipped as part of UI. Rather, it should be packed as a set of APIs inside a secured space of yours which makes it much easier to manage restrictions you mentioned.
This way, for example, companion app access a small set of APIs you have defined.
Also, size of code being delivered becomes no issue since you only deliver UI.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…