Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions Runner/utils/platform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,14 @@
# Detect Android userland
ANDROID_PATH=/system/build.prop
if [ -f $ANDROID_PATH ]; then
ANDROID=1
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is being used in

if [ "$ANDROID" -eq 1 ]; then

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think platform.sh can be removed along with the recedues in basics.sh if there is no dependency.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is being used in

if [ "$ANDROID" -eq 1 ]; then

I don't see any of the files importing these functions for use.

git grep -nE 'platform\.sh|basic\.sh|pidkiller|SHELL_CMD|ANDROID_PATH' .
Runner/utils/basics.sh:10:. "${TOOLS}/platform.sh"
Runner/utils/platform.sh:7:ANDROID_PATH=/system/build.prop
Runner/utils/platform.sh:8:if [ -f $ANDROID_PATH ]; then
Runner/utils/platform.sh:11:    SHELL_CMD=sh
Runner/utils/platform.sh:15:    SHELL_CMD=bash
Runner/utils/platform.sh:18:function pidkiller()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we remove platform.sh ?

Copy link
Copy Markdown
Contributor Author

@smuppand smuppand Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we remove platform.sh ?

Please review the output. The file below still references platform.sh. What steps can we take to remove it? Let it be there for future reference and usage.

Runner/utils/basics.sh:10:. "${TOOLS}/platform.sh"

# shellcheck disable=SC2209,SC2034
SHELL_CMD=sh
else
ANDROID=0
# shellcheck disable=SC2209,SC2034
SHELL_CMD=bash
fi

function pidkiller()
pidkiller()
{
if [ $ANDROID -eq 0 ]; then
disown $1
fi
kill -9 $1 >/dev/null 2>&1
kill -9 "$1" >/dev/null 2>&1
}
Loading