# Default Legato Applications

**URL:** https://forum.sierrawireless.com/t/default-legato-applications/25772
**Category:** IoT Modules
**Created:** [December 16, 2021, 11:14am UTC](https://forum.sierrawireless.com/t/default-legato-applications/25772 "2021-12-16T11:14:19Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![temaedashop2](https://avatars.discourse-cdn.com/v4/letter/t/e99b99/32.png) [@temaedashop2](https://forum.sierrawireless.com/u/temaedashop2)
#### Post date: [December 16, 2021, 11:14am UTC](https://forum.sierrawireless.com/t/default-legato-applications/25772/1 "2021-12-16T11:14:20Z")

</div>

HI,  
We are using WP7605 for in IOT device.  
When I installed the our applications, some default applications such as “atAirVantage”, “atQmiLinker” disappeared.  
Probably, our system overrode the pre-installed applications.  
Are there any method to recover the pre-installed applications to the default status?  
Regards,

---

<div class="post-metadata">

### Author: ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)
#### Post date: [December 16, 2021, 1:00pm UTC](https://forum.sierrawireless.com/t/default-legato-applications/25772/2 "2021-12-16T13:00:46Z")

</div>

You can downgrade the fw to r13.3 and then back to r16

---

<div class="post-metadata">

### Author: ![temaedashop2](https://avatars.discourse-cdn.com/v4/letter/t/e99b99/32.png) [@temaedashop2](https://forum.sierrawireless.com/u/temaedashop2)
#### Post date: [December 17, 2021, 6:02am UTC](https://forum.sierrawireless.com/t/default-legato-applications/25772/3 "2021-12-17T06:02:34Z")

</div>

Thank you for the reply.  
Currently, we are using SDK for WP76 (Release 13.3 + legato 19.02.0).  
If we downgrade the fw to such as R12.0 and then back to R13.3, can we receover the pre-installed applications?  
Additionally, if we lose “atAirVantage” and“atQmiLinker”, what do you think the problem is?  
Regards,

---

<div class="post-metadata">

### Author: ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)
#### Post date: [December 17, 2021, 6:17am UTC](https://forum.sierrawireless.com/t/default-legato-applications/25772/4 "2021-12-17T06:17:16Z")

</div>

I guess it can recover pre-installed application.  
Have you deleted manually those application?

---

<div class="post-metadata">

### Author: ![temaedashop2](https://avatars.discourse-cdn.com/v4/letter/t/e99b99/32.png) [@temaedashop2](https://forum.sierrawireless.com/u/temaedashop2)
#### Post date: [December 17, 2021, 7:18am UTC](https://forum.sierrawireless.com/t/default-legato-applications/25772/5 "2021-12-17T07:18:08Z")

</div>

OK. I’ll try that.  
By the way, we did not remove the pre-installed applications manually.  
When we installed our custom applications together with the “includded apps (default.sdef)”, some pre-installed applications disappered.  
Above mentioned default.sdef does not included the dissapeared applications such as “atAirVantage” and“atQmiLinker”.  
So, we guess that all the pre-installed applications were replaced with the newly installed applications.  
Regards,

---

<div class="post-metadata">

### Author: ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)
#### Post date: [December 17, 2021, 7:45am UTC](https://forum.sierrawireless.com/t/default-legato-applications/25772/6 "2021-12-17T07:45:17Z")

</div>

default.sdef will include

#include “$LEGATO\_ROOT/apps/platformServices/defaultAirVantage.sinc”  
#include “$LEGATO\_ROOT/apps/platformServices/defaultAtCommands.sinc”

You can have a look on these files.

---

<div class="post-metadata">

### Author: ![temaedashop2](https://avatars.discourse-cdn.com/v4/letter/t/e99b99/32.png) [@temaedashop2](https://forum.sierrawireless.com/u/temaedashop2)
#### Post date: [December 17, 2021, 8:00am UTC](https://forum.sierrawireless.com/t/default-legato-applications/25772/7 "2021-12-17T08:00:43Z")

</div>

Yes, default.sdef in our VSCode includes two lines that you mentioned.  
But for example, “defaultAirVantage.sinc” says that if the device is WP750x or WP85, avcCompat is included.  
Our device is W7605 and avcCompat will not be included.  
If we add avcCompat in default.sdef, how would be the result?  
Regards,

---

<div class="post-metadata">

### Author: ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)
#### Post date: [December 17, 2021, 8:40am UTC](https://forum.sierrawireless.com/t/default-legato-applications/25772/8 "2021-12-17T08:40:12Z")

</div>

you can make a test to force it to include and see what happen

---

<div class="post-metadata">

### Author: ![temaedashop2](https://avatars.discourse-cdn.com/v4/letter/t/e99b99/32.png) [@temaedashop2](https://forum.sierrawireless.com/u/temaedashop2)
#### Post date: [December 17, 2021, 12:37pm UTC](https://forum.sierrawireless.com/t/default-legato-applications/25772/9 "2021-12-17T12:37:31Z")

</div>

I’ve added avcCompat to .sdef, but different error ocurred.  
This approach seems to be not good.  
Could you tell me how to reset the user area of WP7605?  
Do I need to downgrade Legato to such as R12 to reset the user area of WP7605?  
Regards,

---

<div class="post-metadata">

### Author: ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)
#### Post date: [December 18, 2021, 5:01am UTC](https://forum.sierrawireless.com/t/default-legato-applications/25772/10 "2021-12-18T05:01:25Z")

</div>

You can download to R12 and use swiflash to erase userapp partition.

you can see here for not downgrading :

> [@Swiflash -r broken with release 12 on wp77xx?](https://forum.sierrawireless.com/t/swiflash-r-broken-with-release-12-on-wp77xx/20957/2):
>
> According to the release note of fw r12, QTI9X07-2870 is to fix userapp partition being erased which is security hole. You might also try the following without downgrading to older version: (Be careful of the mtd number, different FW might have different mtd number for userapp partition !!! ) root@swi-mdm9x28-wp:~# cat /proc/mtd|grep userapp -i mtd16: 08300000 00040000 "userapp" root@swi-mdm9x28-wp:~# pwd /home/root root@swi-mdm9x28-wp:~# ls UART\_Test1.wp77xx.update root@swi-mdm9x28-wp:~# fl…

---

<div class="post-metadata">

### Author: ![temaedashop2](https://avatars.discourse-cdn.com/v4/letter/t/e99b99/32.png) [@temaedashop2](https://forum.sierrawireless.com/u/temaedashop2)
#### Post date: [December 18, 2021, 10:54am UTC](https://forum.sierrawireless.com/t/default-legato-applications/25772/11 "2021-12-18T10:54:56Z")

</div>

Thank you for the advice.  
I’ve installed R12 .spk file using swiflash, then installed R13.3 .spk file.  
AS the result, I could recover the pre-installed applications.  
Can I add our applications to the device without removing the existing applications that are not included in default.sdef?  
Regards,

---

<div class="post-metadata">

### Author: ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)
#### Post date: [December 18, 2021, 11:55am UTC](https://forum.sierrawireless.com/t/default-legato-applications/25772/12 "2021-12-18T11:55:59Z")

</div>

you can first try not modifying anything, and then just do “make wp76xx” and try the compiled legato.cwe.  
It should be equal to the default one.  
After that you can modify /modules/WiFi/wifi.sdef to add your application.

> **[Flash size wp7607](https://forum.legato.io/t/flash-size-wp7607/3805/35)**
>
> you can go to legato-19.02.0/modules/WiFi/wifi.sdef, under “apps:” section, add e.g. $LEGATO\_ROOT/apps/sample/helloWorld/helloWorld.adef Now the new app will be included in legato.cwe. Please also note that the max size for legato partition is...

---

<div class="post-metadata">

### Author: ![temaedashop2](https://avatars.discourse-cdn.com/v4/letter/t/e99b99/32.png) [@temaedashop2](https://forum.sierrawireless.com/u/temaedashop2)
#### Post date: [December 19, 2021, 7:37am UTC](https://forum.sierrawireless.com/t/default-legato-applications/25772/13 "2021-12-19T07:37:16Z")

</div>

Thank you for the suggestion.  
I’ve tried to make wp76xx but "no rule " error appeared.  
Some make rule seems to be necessary.  
By the way, I found following three folders.  
wp76xx\binApps\atAirVantage  
wp76xx\binApps\atQmiLinker  
wp76xx\binApps\qmiAirVantage  
There are .adef file and some other files in these folders.  
Can I add the above three applications to our system?  
They are the same applications that are not included in default.sdef file.  
Regads,

---

<div class="post-metadata">

### Author: ![temaedashop2](https://avatars.discourse-cdn.com/v4/letter/t/e99b99/32.png) [@temaedashop2](https://forum.sierrawireless.com/u/temaedashop2)
#### Post date: [December 19, 2021, 7:52am UTC](https://forum.sierrawireless.com/t/default-legato-applications/25772/14 "2021-12-19T07:52:44Z")

</div>

Hi,  
I’ve added the following three applications to our system and built it, installed it.  
wp76xx\binApps\atAirVantage  
wp76xx\binApps\atQmiLinker  
wp76xx\binApps\qmiAirVantage  
After the installation, I’ve confirmed that above three applications exist in the Target.  
I think my problem is solved!  
Thank you for your suport.  
Regards,

---

<div class="post-metadata">

### Author: ![temaedashop2](https://avatars.discourse-cdn.com/v4/letter/t/e99b99/32.png) [@temaedashop2](https://forum.sierrawireless.com/u/temaedashop2)
#### Post date: [December 20, 2021, 10:18am UTC](https://forum.sierrawireless.com/t/default-legato-applications/25772/15 "2021-12-20T10:18:09Z")

</div>

Hi,  
I had thought taht the problem was solved but we are encountering another problem.  
We are not sure where we had gotten the following three files.  
wp76xx\binApps\atAirVantage  
wp76xx\binApps\atQmiLinker  
wp76xx\binApps\qmiAirVantage  
Do you know the location where we can get them?  
Regards,

---

<div class="post-metadata">

### Author: ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)
#### Post date: [December 20, 2021, 12:49pm UTC](https://forum.sierrawireless.com/t/default-legato-applications/25772/16 "2021-12-20T12:49:31Z")

</div>

it should be inside build folder:

```auto
owner@ubuntu:~/leaf/leaf-data/swi-wp76_4.7.0/wp76-legato$ find ./ -name "*.update"
./build/wp76xx/tools/devMode.wp76xx.update
./build/wp76xx/system/app/tools/tools.wp76xx.update
./build/wp76xx/system/app/qmiAirVantage/qmiAirVantage.wp76xx.update
./build/wp76xx/system/app/audioService/audioService.wp76xx.update
./build/wp76xx/system/app/atService/atService.wp76xx.update
./build/wp76xx/system/app/wifi/wifi.wp76xx.update
./build/wp76xx/system/app/wifiClientTest/wifiClientTest.wp76xx.update
./build/wp76xx/system/app/wifiApTest/wifiApTest.wp76xx.update
./build/wp76xx/system/app/powerMgr/powerMgr.wp76xx.update
./build/wp76xx/system/app/atAirVantage/atAirVantage.wp76xx.update
./build/wp76xx/system/app/fwupdateService/fwupdateService.wp76xx.update
./build/wp76xx/system/app/secStore/secStore.wp76xx.update
./build/wp76xx/system/app/spiService/spiService.wp76xx.update
./build/wp76xx/system/app/portService/portService.wp76xx.update
./build/wp76xx/system/app/smsInboxService/smsInboxService.wp76xx.update
./build/wp76xx/system/app/wifiWebAp/wifiWebAp.wp76xx.update
./build/wp76xx/system/app/cellNetService/cellNetService.wp76xx.update
./build/wp76xx/system/app/wifiService/wifiService.wp76xx.update
./build/wp76xx/system/app/positioningService/positioningService.wp76xx.update
./build/wp76xx/system/app/modemService/modemService.wp76xx.update
./build/wp76xx/system/app/atQmiLinker/atQmiLinker.wp76xx.update
./build/wp76xx/system/app/avcService/avcService.wp76xx.update
./build/wp76xx/system/app/dataConnectionService/dataConnectionService.wp76xx.update
./build/wp76xx/system/app/voiceCallService/voiceCallService.wp76xx.update
./build/wp76xx/system/app/gpioService/gpioService.wp76xx.update
./build/wp76xx/_staging_system.wp76xx.update
./build/wp76xx/system.wp76xx.update

```

---

<div class="post-metadata">

### Author: ![temaedashop2](https://avatars.discourse-cdn.com/v4/letter/t/e99b99/32.png) [@temaedashop2](https://forum.sierrawireless.com/u/temaedashop2)
#### Post date: [December 21, 2021, 3:54am UTC](https://forum.sierrawireless.com/t/default-legato-applications/25772/17 "2021-12-21T03:54:28Z")

</div>

Thank you for the information.  
At our environment, I’ve found them as follows,  
workspace\leaf-data\current\wp76-legato\apps\proprietary\  
Adding them to our .sdef, we can keep them in our package.  
I think we actually solved the problem this time.  
Thanks,
