I have a file eula.zip which I want to be in root of the android apk when i build from unity3d.
in unity 4.0 I can do this by exporting as android project and pasting the zip file in
android project root and then building apk from eclipse
but I have to do it in unity3.5,
I have tried to place it in following locations-
Assets folder
plugins folder
Plugins/Android folder
none of these seam to work
what should do to have eula.zip in the root of the android apk from unity.
There is a solution, it is more a hack, rather than a good way to solve the issue. I have made it this way:
Decompile the apk with apktool
Add file to needed directory of decompiled project
Make sure apktool.yml includes your file when compiling apk
Compile project
Sign obtained apk with jarsigner
try modify this directory:
C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer
or
C:\Program Files(x86)\Unity\Editor\Data\PlaybackEngines\AndroidPlayer
I know this post is quite old, but it still shows up in the Google search and I found an elegant solution:
Simply copy the files directly into your project's src directory (not into the com.whatever... package).
it sounds like you're looking for the "file:///android_asset/" directory, in the eclipse project it would be in the /assets subdirectory.
in unity, use this:
Plugins/Android/assets