# How to include some files as part of an android packaged build

**URL:** <https://forums.unrealengine.com/t/how-to-include-some-files-as-part-of-an-android-packaged-build/507275>\
**Category:** Mobile\
**Tags:** unreal-engine, Android, UE4-27, question\
**Created:** [March 16, 2022, 8:11am UTC](https://forums.unrealengine.com/t/how-to-include-some-files-as-part-of-an-android-packaged-build/507275 "2022-03-16T08:11:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![illYay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@illYay](https://forums.unrealengine.com/u/illYay)\
**Post date:** [March 16, 2022, 8:11am UTC](https://forums.unrealengine.com/t/how-to-include-some-files-as-part-of-an-android-packaged-build/507275/1 "2022-03-16T08:11:55Z")

</div>

I got lib files to package using UPL and seeing how other examples have done it.

However I’m not sure how to include some non-library files. Just some generic resources that aren’t exactly resources.

Our app is able to load the files if I push them with adb to a specific folder, but I’d like the unreal packing step to just do it automatically without an adb push.

---

<div class="post-metadata">

**Author:** ![Cektantwork](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cektantwork/32/717411_2.png) [@Cektantwork](https://forums.unrealengine.com/u/Cektantwork)\
**Post date:** [March 18, 2022, 1:02pm UTC](https://forums.unrealengine.com/t/how-to-include-some-files-as-part-of-an-android-packaged-build/507275/2 "2022-03-18T13:02:45Z")

</div>

You can try use it in your UPL:

```auto
<copyfile src="PathToFile" dest="$S(BuildDir)/PathToDirectory" />

```

---

<div class="post-metadata">

**Author:** ![illYay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@illYay](https://forums.unrealengine.com/u/illYay)\
**Post date:** [March 19, 2022, 4:34pm UTC](https://forums.unrealengine.com/t/how-to-include-some-files-as-part-of-an-android-packaged-build/507275/3 "2022-03-19T16:34:03Z")

</div>

I did try that and I do use that for lib files, but if I just try random files it doesn’t seem to make it into either the /sdcard folders or the /data folders that the game files seem to get deployed to.

I was doing \<copydirectory into the build dir. The build dir seems to resemble an android project, but somehow just copying a dir into there doesn’t make it end up in the apk itself that I know of. I also tried coping it into the res folder but that didn’t work.

---

<div class="post-metadata">

**Author:** ![Cektantwork](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cektantwork/32/717411_2.png) [@Cektantwork](https://forums.unrealengine.com/u/Cektantwork)\
**Post date:** [March 21, 2022, 10:59am UTC](https://forums.unrealengine.com/t/how-to-include-some-files-as-part-of-an-android-packaged-build/507275/4 "2022-03-21T10:59:07Z")

</div>

Hmm. i don’t know, I applied on my knowledge of ios, where I added fonts inside the app using an XML file.

---

<div class="post-metadata">

**Author:** ![illYay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@illYay](https://forums.unrealengine.com/u/illYay)\
**Post date:** [March 21, 2022, 6:52pm UTC](https://forums.unrealengine.com/t/how-to-include-some-files-as-part-of-an-android-packaged-build/507275/5 "2022-03-21T18:52:41Z")

</div>

It’s possible that is actually the correct solution for android too and I just didn’t set something up completely right. Maybe there’s a specific folder I have to move it to, not just the build folder itself.

It might also have made it to a different location on the android file system other than what I checked so far.

---

<div class="post-metadata">

**Author:** ![JaredTherriault](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jaredtherriault/32/1194499_2.png) [@JaredTherriault](https://forums.unrealengine.com/u/JaredTherriault)\
**Post date:** [March 21, 2022, 7:02pm UTC](https://forums.unrealengine.com/t/how-to-include-some-files-as-part-of-an-android-packaged-build/507275/6 "2022-03-21T19:02:53Z")

</div>

Have you tried putting them in Content (but not importing them, just copy them straight in with explorer) then adding the directory in ‘Additional Non-Asset Directories To Copy’ in the ‘Packaging’ section in Project Settings?

---

<div class="post-metadata">

**Author:** ![illYay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@illYay](https://forums.unrealengine.com/u/illYay)\
**Post date:** [March 21, 2022, 10:00pm UTC](https://forums.unrealengine.com/t/how-to-include-some-files-as-part-of-an-android-packaged-build/507275/7 "2022-03-21T22:00:22Z")

</div>

Oh that sounds like it could work. I’ll try that in a bit.
