#!/bin/bash
for dir in ~/opengapps/tmp/*/
do
pkg=${dir%*/}
dpi=$(ls -1 $pkg | head -1)
echo "Preparing $pkg/$dpi"
rsync -aq $pkg/$dpi/ ~/opengapps/sys/
done
6.Change script file permission
chmod 777 myapps.sh
7.Execute script file
./myapps.sh
8.Remove some apks
Calculator
Email
Exchange2
SpeechRecorder
9.Push apk into system folder
adb push ~/opengapps/sys/. /system/.
10.Use adb push some files into folder /system/lib