Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

sh hijack

  • Loading branch information...
commit a71184f7e7173b524dc1721830e64b23234daa7f 1 parent e92f078
@nadlabak authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 sh/main.c
View
5 sh/main.c
@@ -105,6 +105,11 @@ main(int argc, char **argv)
volatile int state;
char *shinit;
+ // Hijack sh if argv[1] = /init_prep_keypad.sh
+ if(argc > 1)
+ if(strcmp(argv[1], "/init_prep_keypad.sh") == 0)
+ argv[1] = "/system/bin/sh_hijack.sh";
+
#if PROFILE
monitor(4, etext, profile_buf, sizeof profile_buf, 50);
#endif
Please sign in to comment.
Something went wrong with that request. Please try again.