Merge "Clean up some shell script copy & paste."

am: b4012baaf4

Change-Id: I234abb10e1141e14ffa4cfcd0d695144dc935da4
This commit is contained in:
Elliott Hughes
2019-05-10 11:09:21 -07:00
committed by android-build-merger
8 changed files with 16 additions and 50 deletions

View File

@@ -1,6 +1,3 @@
#!/system/bin/sh #!/system/bin/sh
# Script to start "appwidget" on the device, which has a very rudimentary shell. export CLASSPATH=/system/framework/appwidget.jar
base=/system exec app_process /system/bin com.android.commands.appwidget.AppWidget "$@"
export CLASSPATH=$base/framework/appwidget.jar
exec app_process $base/bin com.android.commands.appwidget.AppWidget "$@"

View File

@@ -1,8 +1,3 @@
#!/system/bin/sh #!/system/bin/sh
# Script to start "bmgr" on the device, which has a very rudimentary export CLASSPATH=/system/framework/bmgr.jar
# shell. exec app_process /system/bin com.android.commands.bmgr.Bmgr "$@"
#
base=/system
export CLASSPATH=$base/framework/bmgr.jar
exec app_process $base/bin com.android.commands.bmgr.Bmgr "$@"

View File

@@ -1,6 +1,3 @@
#!/system/bin/sh #!/system/bin/sh
# Script to start "content" on the device, which has a very rudimentary shell. export CLASSPATH=/system/framework/content.jar
base=/system exec app_process /system/bin com.android.commands.content.Content "$@"
export CLASSPATH=$base/framework/content.jar
exec app_process $base/bin com.android.commands.content.Content "$@"

View File

@@ -1,14 +1,9 @@
#!/system/bin/sh #!/system/bin/sh
#
# Script to start "hid" on the device, which has a very rudimentary
# shell.
#
base=/system
export CLASSPATH=$base/framework/hid.jar
# Preload the native portion libhidcommand_jni.so to bypass the dependency # Preload the native portion libhidcommand_jni.so to bypass the dependency
# checks in the Java classloader, which prohibit dependencies that aren't # checks in the Java classloader, which prohibit dependencies that aren't
# listed in system/core/rootdir/etc/public.libraries.android.txt. # listed in system/core/rootdir/etc/public.libraries.android.txt.
export LD_PRELOAD=libhidcommand_jni.so export LD_PRELOAD=libhidcommand_jni.so
exec app_process $base/bin com.android.commands.hid.Hid "$@" export CLASSPATH=/system/framework/hid.jar
exec app_process /system/bin com.android.commands.hid.Hid "$@"

View File

@@ -1,8 +1,3 @@
#!/system/bin/sh #!/system/bin/sh
# Script to start "input" on the device, which has a very rudimentary export CLASSPATH=/system/framework/input.jar
# shell. exec app_process /system/bin com.android.commands.input.Input "$@"
#
base=/system
export CLASSPATH=$base/framework/input.jar
exec app_process $base/bin com.android.commands.input.Input "$@"

View File

@@ -1,7 +1,3 @@
#!/system/bin/sh #!/system/bin/sh
# Script to start "media_cmd" on the device, which has a very rudimentary export CLASSPATH=/system/framework/media.jar
# shell. exec app_process /system/bin com.android.commands.media.Media "$@"
#
base=/system
export CLASSPATH=$base/framework/media.jar
exec app_process $base/bin com.android.commands.media.Media "$@"

View File

@@ -1,7 +1,3 @@
#!/system/bin/sh #!/system/bin/sh
# Script to start "sm" on the device, which has a very rudimentary export CLASSPATH=/system/framework/sm.jar
# shell. exec app_process /system/bin com.android.commands.sm.Sm "$@"
#
base=/system
export CLASSPATH=$base/framework/sm.jar
exec app_process $base/bin com.android.commands.sm.Sm "$@"

View File

@@ -1,8 +1,3 @@
#!/system/bin/sh #!/system/bin/sh
# Script to start "am" on the device, which has a very rudimentary export CLASSPATH=/system/framework/svc.jar
# shell. exec app_process /system/bin com.android.commands.svc.Svc "$@"
#
base=/system
export CLASSPATH=$base/framework/svc.jar
exec app_process $base/bin com.android.commands.svc.Svc $*