This backend functionalities is doable something for you?
1. Admin Panel base design
2. Authentication of user based on IMEI/Serail Other device info
Create user Id based on device info (same user can work on multiple devices)
3. Remove device on admin panel
4. Authrize app on admin panel
5. Log implementation with google firebase.