2 Solutions came to mind :
1- A minimal webservice (either B4J or PHP), Once the client installs the app (B4A/B4J/B4i) you can send the device ID to the webservice along with the installation datetime
and every time the client opens the app, run a check up with the webservice in the background to check if the client has installed this app previously or not and if the free license has expired or not.
Cons : The client can turn off the internet to prevent the check up, so you have to force the client to connect to the internet at least once (once he/she installs the app) to do the checking (You can write an empty txt file and if the file exist then the client has made the check up and if it doesn't exist then he/she didn't connect to the webservice)
*Implement certain features that require internet connection to force the client to connect to the internet.
2- request PERMISSION_WRITE_EXTERNAL_STORAGE and write a very simple txt that contains the installation datetime, once the client install the app check for this file and see if it exists and if it does then read it's contents and check when it was last installed.