Skip to content

Comments

use getExnternalFilesDir instead of getExternalStorageDirectory#44

Open
jishnu7 wants to merge 4 commits intoplay-co:masterfrom
jishnu7:external-write
Open

use getExnternalFilesDir instead of getExternalStorageDirectory#44
jishnu7 wants to merge 4 commits intoplay-co:masterfrom
jishnu7:external-write

Conversation

@jishnu7
Copy link
Contributor

@jishnu7 jishnu7 commented Feb 10, 2016

Former one doesn't need WRITE_EXTERNAL_STORAGE permission.

This might need testing. Tested only on one of the game we were working on.

@jishnu7
Copy link
Contributor Author

jishnu7 commented Feb 16, 2016

@martell ping

@martell
Copy link
Contributor

martell commented Feb 16, 2016

Yes I agree we should not really be using the root path to the SD card and should be using
Android/data/data/com.package.name.

I will need a bit of time to test this on a few different game projects to confirm that it is safe.
The issue I have to consider is that if a game's tealeaf version is updated it might result in game data being lost as it is in a different location.

jishnu7 pushed a commit to jishnu7/native-android that referenced this pull request May 5, 2020
* fix repo in package.json
* add base gradle prject files and scripts
* first modifications to Makefile and build.js
* fixed android seed
* fixing links.json path
* fix java src title  folder renaming
* rename project folder to package name
* updated linked package
* fixed typo in arg
* bump min version
* fix ndk project path
* fixed path to native build script
* debug path
* gradle apk assembling completed, no native.js copied (it is next todo)
* fixed native.js copying, gitignore, couple build.js settings (updateManifest is todo)
* completed assembling apk with gradle, injectAppLinks and injectPluginXML are NOT tested
* Removing all files in .gitignore
* removed jni/gen from gitignore
* fixed gitignore
* put back removed gradle dir
* fixed injectAppLinks, start modifiying injectPluginsXML with gradle not fixed
* update gradle to use local jars and copy necessary files and insert plugins settings in manifest and other files
* fixed submodule native-core
* update readme
* minSdk 23 -> 21
* fixes to update appcompat lib version
* armeabi-v7a only
* issue 6 , template script should be work for both Mac and Linux
* tested on clean ubun thu, issue 3 (license acceptance) fixed)
* formatting template
* fixed issue-1 remove project folder before use gradle script to copy seed project
* added error solving description to read me, removed error from gradle template script
* added native build file
* added scripts to inject gradle dependencies from plugins settings, not all plugins fixed to support, only Flurry and gameplay
* moving from gcm to fcm for gameplay plugin, moving to oficcial latest OneSignal installation instruction without gcm dependencies using Android OneSignal plugin. Not done, still couple todos in build.js
* fixed migrations and plugins dependencies in gradles imsertion
* update kochava
* fixes for build.js
* paralelization fix, install bulk jars fix
* added repos insertion into build.gradle and proguard insertion into teleaf/proguard
* updates for plugins
* fix proguard syntax
* various changes and updates (js assets/resources
* rm -rf moved to more earlier hook in devkit-core/native-android.js
* fixes for gradle injection
* bump up gradle version and gradle plugin version to avoid build issues
* fixed realeased apk zipalign and sign
* clean Makefile and scripts/analyze.sh
* versionCode and versionName insertion in app/build.gradle
* fixed app label
* apk dev fixes
* fixed signing for debug app
* removed redundant argument in readme
* fix versioning if version is empty
* fixed java version switch for Ubuntu, fixed desccription if expect tool not found
* small fixes
* fixed blinking activity
* removed redundant xsl parameters
* downgrade min sdk
* modified proguard
* fixed AsyncTask import
* enabled multiDex for tealeaf module
* Update README.md
* Update package.json
* removed file and fixed gitignore
* removed generated files from git cache
* preinstall fixes
* changed path to preinstall
* added barista
* fixed barista preparation, but dust does not work still
* removing ndk generated objects
* put profiler back
* barista generation fixed and works
* put barista generated C++ V8 files
* app_links android:autoVerify=true added
* lowered ndk min build version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants