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

Developer

Forums

Hi,

 

Please let me know any API that supports for restricting to disable or kill the application from the user.

Only the super user can have the access to disable.

 

If you are talking about preventing disable/delete of the app, only OEM can do that. OEM have to add some flags to applcaition MIF and implement this feature in their code as well.

If you are talking about preventing disable/delete of the app, only OEM can do that. OEM have to add some flags to applcaition MIF and implement this feature in their code as well.

Thanks for replying.
Please can you explain me what is OEM, also any material that explains OEM concepts? 

Thanks for replying.
Please can you explain me what is OEM, also any material that explains OEM concepts? 

OEM - Original Equipment Manufacturer. One who manufacturs devices/handsets. E.g. Samsung, LG etc

OEM - Original Equipment Manufacturer. One who manufacturs devices/handsets. E.g. Samsung, LG etc

Hi
 
I have to test the app in simulator that receives a notification set for the mask
 

NMASK_SHELL_MOD_LIST_CHANGED.
 
I have written a code related to this.Please guide me how to test the app in simulator.
Testing include deleting the application from the simulator. which i am not able to find how to delete?
 
Any guidelines will be appreciated.

Hi
 
I have to test the app in simulator that receives a notification set for the mask
 

NMASK_SHELL_MOD_LIST_CHANGED.
 
I have written a code related to this.Please guide me how to test the app in simulator.
Testing include deleting the application from the simulator. which i am not able to find how to delete?
 
Any guidelines will be appreciated.

Delete option comes for download apps only and that too is shown by BAM. Unless you have BAM installed and downloaded apps you cannot delete them.

Delete option comes for download apps only and that too is shown by BAM. Unless you have BAM installed and downloaded apps you cannot delete them.

Thanks for the replay!
 
I am testing the app in simulator So how to confirm that the notification received  is for deleting the application.
 
Here when i start the application for the first time, i am able to receive the notification twice(notifying twice in EVT_NOTIFY).
 
NMASK_SHELL_MOD_LIST_CHANGED - This mask gets notification for installing and deleting
the app.
 
Then How to test the app for "to receive notification if the application is deleted"?
 
Please suggest how it can be acheived?
 

Thanks for the replay!
 
I am testing the app in simulator So how to confirm that the notification received  is for deleting the application.
 
Here when i start the application for the first time, i am able to receive the notification twice(notifying twice in EVT_NOTIFY).
 
NMASK_SHELL_MOD_LIST_CHANGED - This mask gets notification for installing and deleting
the app.
 
Then How to test the app for "to receive notification if the application is deleted"?
 
Please suggest how it can be acheived?
 

You need to use IModCollector to know if specific app is deleted. If you know classid of the applet, you can directly use IModCollector_GetAppletClassHistoryEntry(). MODCOLLECTOR_HIST_ABSENT is returned in last param if the mod is absent.

You need to use IModCollector to know if specific app is deleted. If you know classid of the applet, you can directly use IModCollector_GetAppletClassHistoryEntry(). MODCOLLECTOR_HIST_ABSENT is returned in last param if the mod is absent.

Thank you so... much for the reply!
I have implemented in the following way, Let us say will create two applications as APP_A and APP_B.Now in APP_A i have called IModCollector_OnHistoryUpdate() for registering APP_B to receive notification in APP_A if APP_B gets deleted.
code: i have implemented this in APP_A
  nErr = ISHELL_CreateInstance(pMe->piShell, AEEIID_IModCollector, (void**)&pMe->pIModCol
);
if(AEE_SUCCESS == (IModCollector_OnHistoryUpdate(pMe->pIModCol, pMe->pISignal,
"fs:/usermods/APP_B", &(pMe->ppReg ))))
 {}
And in APP_A case EVT_NOTIFY :
I have put a DBGPRINTF("NOTIFICATION RECEIVED");
 
Please Guide me how to test this in simulator.By deleting the APP_B using Loader, However APP_A is not able to receive notification. 
 
 Am i doing in a right way else please guide me... 

Thank you so... much for the reply!
I have implemented in the following way, Let us say will create two applications as APP_A and APP_B.Now in APP_A i have called IModCollector_OnHistoryUpdate() for registering APP_B to receive notification in APP_A if APP_B gets deleted.
code: i have implemented this in APP_A
  nErr = ISHELL_CreateInstance(pMe->piShell, AEEIID_IModCollector, (void**)&pMe->pIModCol
);
if(AEE_SUCCESS == (IModCollector_OnHistoryUpdate(pMe->pIModCol, pMe->pISignal,
"fs:/usermods/APP_B", &(pMe->ppReg ))))
 {}
And in APP_A case EVT_NOTIFY :
I have put a DBGPRINTF("NOTIFICATION RECEIVED");
 
Please Guide me how to test this in simulator.By deleting the APP_B using Loader, However APP_A is not able to receive notification. 
 
 Am i doing in a right way else please guide me... 

AEEIID_IModCollector is not a classid but interface id. You need to use AEECLSID_CModCollector class id which implements IModCollector.
IModCollector_OnHistoryUpdate(), third param - cpszCollectionList is collection or collection list not module path (as you provided).
 
You can try like this:
1. Get the collection to which module belongs using IModCollector_GetModCollection(). You can get module id using IModCollector_GetAppletsModHandle() or IModCollector_GetModFromMIFPath().
2. Call IModCollector_OnHistoryUpdate() on that collection.
3. Once you get notification of history change, call IModCollector_GetAppletClassHistoryEntry() to know if that module is present/absent.

AEEIID_IModCollector is not a classid but interface id. You need to use AEECLSID_CModCollector class id which implements IModCollector.
IModCollector_OnHistoryUpdate(), third param - cpszCollectionList is collection or collection list not module path (as you provided).
 
You can try like this:
1. Get the collection to which module belongs using IModCollector_GetModCollection(). You can get module id using IModCollector_GetAppletsModHandle() or IModCollector_GetModFromMIFPath().
2. Call IModCollector_OnHistoryUpdate() on that collection.
3. Once you get notification of history change, call IModCollector_GetAppletClassHistoryEntry() to know if that module is present/absent.