diff options
author | Narayan Kamath <narayan@google.com> | 2014-04-07 12:44:58 +0100 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2014-04-09 13:39:41 +0100 |
commit | 22ec1eefa4dc8e12f7da8e8750d4770144941526 (patch) | |
tree | f5ca6c4f0055e8c4ef01cf484abc65d983ec990b /include | |
parent | a5608acbd7647e0fd9aa87e5319715b0cbd6b0c0 (diff) | |
download | frameworks_base-22ec1eefa4dc8e12f7da8e8750d4770144941526.zip frameworks_base-22ec1eefa4dc8e12f7da8e8750d4770144941526.tar.gz frameworks_base-22ec1eefa4dc8e12f7da8e8750d4770144941526.tar.bz2 |
Clean up argc / argv processing for runtime args.
- Make copies of argc, argv before argv is potentially
overwritten with the process name.
- Allow multiple command line arguments to be passed to
ZygoteInit (this is required for some of the 64 bit
zygote work).
- Add an explanatory comment about how these argments
are processed.
Change-Id: I752be69c5c0f97ed17d1a3dded19f46ee00929b0
Diffstat (limited to 'include')
-rw-r--r-- | include/android_runtime/AndroidRuntime.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/android_runtime/AndroidRuntime.h b/include/android_runtime/AndroidRuntime.h index 6f2af90..3dfdb46 100644 --- a/include/android_runtime/AndroidRuntime.h +++ b/include/android_runtime/AndroidRuntime.h @@ -55,8 +55,7 @@ public: /** * Call a class's static main method with the given arguments, */ - status_t callMain(const char* className, jclass clazz, int argc, - const char* const argv[]); + status_t callMain(const String8& className, jclass clazz, const Vector<String8>& args); /** * Find a class, with the input either of the form @@ -66,7 +65,7 @@ public: int addVmArguments(int argc, const char* const argv[]); - void start(const char *classname, const char* options); + void start(const char *classname, const Vector<String8>& options); void exit(int code); |