SHARE
TWEET

Untitled

a guest Jul 17th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. VendorSplash() {
  2.     # $1: Path to the application's root location ($APPLICATION_MP/AMP)
  3.     # $2: UID (1000,1003,etc)
  4.     # $3: OEM (1,2,3,etc)
  5.     # $4: MID (1,2,63,etc)
  6.     local SPLASH_DIR="$1/data/resources/splash"
  7.  
  8.     U=`printf "u%04d" $2`
  9.     V=`printf "v%02d" $3`
  10.     M=`printf "m%02d" $4`
  11.  
  12.     if [ -e $SPLASH_DIR/splash-$V-$U-$M.png ]
  13.     then
  14.         echo "$SPLASH_DIR/splash-$V-$U-$M.png"
  15.         return
  16.     elif [ -e $SPLASH_DIR/splash-$V-$U.png ]
  17.     then
  18.         echo "$SPLASH_DIR/splash-$V-$U.png"
  19.         return
  20.     elif [ -e $SPLASH_DIR/splash-$V.png ]
  21.     then
  22.         echo "$SPLASH_DIR/splash-$V.png"
  23.         return
  24.     elif [ -e $SPLASH_DIR/splash-default.png ]
  25.     then
  26.         echo "$SPLASH_DIR/splash-default.png"
  27.         return
  28.     fi
  29. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top