Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- VendorSplash() {
- # $1: Path to the application's root location ($APPLICATION_MP/AMP)
- # $2: UID (1000,1003,etc)
- # $3: OEM (1,2,3,etc)
- # $4: MID (1,2,63,etc)
- local SPLASH_DIR="$1/data/resources/splash"
- U=`printf "u%04d" $2`
- V=`printf "v%02d" $3`
- M=`printf "m%02d" $4`
- if [ -e $SPLASH_DIR/splash-$V-$U-$M.png ]
- then
- echo "$SPLASH_DIR/splash-$V-$U-$M.png"
- return
- elif [ -e $SPLASH_DIR/splash-$V-$U.png ]
- then
- echo "$SPLASH_DIR/splash-$V-$U.png"
- return
- elif [ -e $SPLASH_DIR/splash-$V.png ]
- then
- echo "$SPLASH_DIR/splash-$V.png"
- return
- elif [ -e $SPLASH_DIR/splash-default.png ]
- then
- echo "$SPLASH_DIR/splash-default.png"
- return
- fi
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement