Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Hello, I am trying to connect through BTIL to a samsung brew enabled phone. I installed btlmain, btilcs, and btilsec modules into the device with a corresponding sig file that I generated using the brew sig file generator at https://brewx.qualcomm.com/testsig/testsig.jsp

I am able to connect to the 3.1.5 emulator and launch applications and events using

SYSTEMExtension::StartApp(myDeviceId,CONTACTS_APP,0,0);
SYSTEMExtension::PressKey(myDeviceId,57396);
SYSTEMExtension::ReleaseKey(myDeviceId,57396);

but I am not able to initialize de samsung device. When I run the BTIL_InitDevice I get back a 40 as return value.
nErr = BTIL_InitDevice ("COM4", &myDeviceId);

nErr gets a 40 back, which means BTILEXTENSION_STATUS_SIGFILE_NOT_FOUND (40). why does it says that sig file is not found, even when I placed their corresponding sig file for each of the modules?

thanks in advance

I think you will need to put the sig in 'BTIL Test Signature Repository'.
A link to this would be in Start Menu->Programs->...
check the read me file in 'BTIL Development Kit\Host\sig' & also read through the BTIL READ ME FIRST.
thanks.

I think you will need to put the sig in 'BTIL Test Signature Repository'.
A link to this would be in Start Menu->Programs->...
check the read me file in 'BTIL Development Kit\Host\sig' & also read through the BTIL READ ME FIRST.
thanks.

Thanks for your reply. I finally got it to work. Qualcomm developers suggested me to use the following function in c++ :
#define MAX_HWID_LEN 30
char hwid[MAX_HWID_LEN + 1];
word32 deviceId=0;
nErr = BTILExtension::InitDeviceP("COM4", deviceId, hwid,MAX_HWID_LEN);
if that fails, hwid gets the hwid of the device and then a signature can be installed :
#include
nErr = SIGMANAGER_PutBREWSigFile(hwid,
"c:\original_signature_location.sig");
Afterwards you can try connecting again.

Thanks for your reply. I finally got it to work. Qualcomm developers suggested me to use the following function in c++ :
#define MAX_HWID_LEN 30
char hwid[MAX_HWID_LEN + 1];
word32 deviceId=0;
nErr = BTILExtension::InitDeviceP("COM4", deviceId, hwid,MAX_HWID_LEN);
if that fails, hwid gets the hwid of the device and then a signature can be installed :
#include
nErr = SIGMANAGER_PutBREWSigFile(hwid,
"c:\original_signature_location.sig");
Afterwards you can try connecting again.