Imo this is more similar to John Deere creating tractor DRM to lock out other entities from repairs. If Toyota came up with a proprietary motor design such that no other repair shop or parts manufacturer could make repairs, it'd be a similar situation. As it stands, there's 3rd party companies making replacement parts and a secondary market with used parts in addition to varying degrees of interoperability with other parts.
There is no secondary market for apps since they're all sold as licenses and never own anything. They also intentionally put restrictions in place to prevent 3rd parties from creating "replacement" apps