An aar package named pos-hal-XXX.aar and a service apk package named XX-pos-hal-service-XXX.apk are required.
No, development can be carried out even when the two versions are inconsistent. However, the interface functions are still implemented in the current apk version.
try {
IPos pos = HalService.getInstance().getPos(null);
DeviceInfo deviceInfo = pos.getDeviceInfo();//DeviceInfo
ILogger logger = pos.getLogger();//ILogger
ISystem system= pos.getSystem();//ISystem
IEmv emv = pos.getEmv();//IEmv
//... ...
} catch (Exception e) {
e.printStackTrace();
}No, at that time, it was necessary for manufacturer B to implement the interface service and output the XX-pos-hal-service-XXX.apk to application development so that the application could be used normally on manufacturer B's POS.