Is there a way to permanently change the underlying data of a flashcard without using the "edit" functionality?

There is a very hacky way to store data using AnkiDroid’s JS API: you can get and set tags so you can use them to store data and modify the card using JS.