Clean up some shell script copy & paste.
Remove apparently meaningless comment that's been copy & pasted all over. Remove trailing whitespace. Consistently use "$@". Inline single-use constant. Test: treehugger Change-Id: Ie3b3e285cd35ecff9e6fdb7144fe4bbd04e42452
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
#!/system/bin/sh
|
||||
# Script to start "appwidget" on the device, which has a very rudimentary shell.
|
||||
base=/system
|
||||
export CLASSPATH=$base/framework/appwidget.jar
|
||||
exec app_process $base/bin com.android.commands.appwidget.AppWidget "$@"
|
||||
|
||||
export CLASSPATH=/system/framework/appwidget.jar
|
||||
exec app_process /system/bin com.android.commands.appwidget.AppWidget "$@"
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
#!/system/bin/sh
|
||||
# Script to start "bmgr" on the device, which has a very rudimentary
|
||||
# shell.
|
||||
#
|
||||
base=/system
|
||||
export CLASSPATH=$base/framework/bmgr.jar
|
||||
exec app_process $base/bin com.android.commands.bmgr.Bmgr "$@"
|
||||
|
||||
export CLASSPATH=/system/framework/bmgr.jar
|
||||
exec app_process /system/bin com.android.commands.bmgr.Bmgr "$@"
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
#!/system/bin/sh
|
||||
# Script to start "content" on the device, which has a very rudimentary shell.
|
||||
base=/system
|
||||
export CLASSPATH=$base/framework/content.jar
|
||||
exec app_process $base/bin com.android.commands.content.Content "$@"
|
||||
|
||||
export CLASSPATH=/system/framework/content.jar
|
||||
exec app_process /system/bin com.android.commands.content.Content "$@"
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
#!/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
|
||||
# checks in the Java classloader, which prohibit dependencies that aren't
|
||||
# listed in system/core/rootdir/etc/public.libraries.android.txt.
|
||||
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 "$@"
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
#!/system/bin/sh
|
||||
# Script to start "input" on the device, which has a very rudimentary
|
||||
# shell.
|
||||
#
|
||||
base=/system
|
||||
export CLASSPATH=$base/framework/input.jar
|
||||
exec app_process $base/bin com.android.commands.input.Input "$@"
|
||||
|
||||
export CLASSPATH=/system/framework/input.jar
|
||||
exec app_process /system/bin com.android.commands.input.Input "$@"
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
#!/system/bin/sh
|
||||
# Script to start "media_cmd" on the device, which has a very rudimentary
|
||||
# shell.
|
||||
#
|
||||
base=/system
|
||||
export CLASSPATH=$base/framework/media.jar
|
||||
exec app_process $base/bin com.android.commands.media.Media "$@"
|
||||
export CLASSPATH=/system/framework/media.jar
|
||||
exec app_process /system/bin com.android.commands.media.Media "$@"
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
#!/system/bin/sh
|
||||
# Script to start "sm" on the device, which has a very rudimentary
|
||||
# shell.
|
||||
#
|
||||
base=/system
|
||||
export CLASSPATH=$base/framework/sm.jar
|
||||
exec app_process $base/bin com.android.commands.sm.Sm "$@"
|
||||
export CLASSPATH=/system/framework/sm.jar
|
||||
exec app_process /system/bin com.android.commands.sm.Sm "$@"
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
#!/system/bin/sh
|
||||
# Script to start "am" on the device, which has a very rudimentary
|
||||
# shell.
|
||||
#
|
||||
base=/system
|
||||
export CLASSPATH=$base/framework/svc.jar
|
||||
exec app_process $base/bin com.android.commands.svc.Svc $*
|
||||
|
||||
export CLASSPATH=/system/framework/svc.jar
|
||||
exec app_process /system/bin com.android.commands.svc.Svc "$@"
|
||||
|
||||
Reference in New Issue
Block a user