From dc1eaeb90f9407ec7ef4f3c64f769022f82f2ee5 Mon Sep 17 00:00:00 2001 From: Keebong Date: Wed, 8 May 2013 21:08:33 +0900 Subject: [PATCH] Modified tpk generating script Change-Id: I61d12572ba910e6e28d2343eb0e4e8d932495074 Signed-off-by: Keebong --- util/gen_multi_priv_pkg.sh | 51 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/util/gen_multi_priv_pkg.sh b/util/gen_multi_priv_pkg.sh index de32ca9..40afa7f 100755 --- a/util/gen_multi_priv_pkg.sh +++ b/util/gen_multi_priv_pkg.sh @@ -21,6 +21,57 @@ fi sed -i 's/HwAcceleration="On"/HwAcceleration="Off"/g' ${current_path}/info/manifest.xml sed -i /\/d ${current_path}/info/manifest.xml +tmp="http://tizen.org/privilege/account.read" +cmd="/$/ a $tmp" +cmd2="" +sed -i "${cmd}${cmd2}" ${current_path}/info/manifest.xml +tmp="http://tizen.org/privilege/account.write" +cmd="/$/ a $tmp" +sed -i "${cmd}${cmd2}" ${current_path}/info/manifest.xml +zip -r ../FtApp-2account-rw.zip bin data info lib res shared author-signature.xml signature1.xml +mv ../FtApp-2account-rwl.zip ../FtApp-2account-rw.tpk +chmod +x ../FtApp-2account-rw.tpk +sed -i 's/HwAcceleration="Off"/HwAcceleration="On"/g' ${current_path}/info/manifest.xml +zip -r ../FtApp-hwon-2account-rw.zip bin data info lib res shared author-signature.xml signature1.xml +mv ../FtApp-hwon-2account-rw.zip ../FtApp-hwon-2account-rw.tpk +chmod +x ../FtApp-hwon-2account-rw.tpk + +sed -i 's/HwAcceleration="On"/HwAcceleration="Off"/g' ${current_path}/info/manifest.xml +#sed -i /\/d ${current_path}/info/manifest.xml +tmp="http://tizen.org/privilege/contact.read" +cmd="/$/ a $tmp" +cmd2="" +sed -i "${cmd}${cmd2}" ${current_path}/info/manifest.xml +tmp="http://tizen.org/privilege/contact.write" +cmd="/$/ a $tmp" +sed -i "${cmd}${cmd2}" ${current_path}/info/manifest.xml +zip -r ../FtApp-4accountrw-contactrw.zip bin data info lib res shared author-signature.xml signature1.xml +mv ../FtApp-4accountrw-contactrw.zip ../FtApp-4accountrw-contactrw.tpk +chmod +x ../FtApp-4accountrw-contactrw.tpk +sed -i 's/HwAcceleration="Off"/HwAcceleration="On"/g' ${current_path}/info/manifest.xml +zip -r ../FtApp-hwon-4accountrw-contactrw.zip bin data info lib res shared author-signature.xml signature1.xml +mv ../FtApp-hwon-4accountrw-contactrw.zip ../FtApp-hwon-4accountrw-contactrw.tpk +chmod +x ../FtApp-hwon-4accountrw-contactrw.tpk + +sed -i 's/HwAcceleration="On"/HwAcceleration="Off"/g' ${current_path}/info/manifest.xml +sed -i /\/d ${current_path}/info/manifest.xml +tmp="http://tizen.org/privilege/userprofile.read" +cmd="/$/ a $tmp" +cmd2="" +sed -i "${cmd}${cmd2}" ${current_path}/info/manifest.xml +tmp="http://tizen.org/privilege/userprofile.write" +cmd="/$/ a $tmp" +sed -i "${cmd}${cmd2}" ${current_path}/info/manifest.xml +zip -r ../FtApp-6accrw-contactrw-userprofrw.zip bin data info lib res shared author-signature.xml signature1.xml +mv ../FtApp-6accrw-contactrw-userprofrw.zip ../FtApp-6accrw-contactrw-userprofrw.tpk +chmod +x ../FtApp-6accrw-contactrw-userprofrw.tpk +sed -i 's/HwAcceleration="Off"/HwAcceleration="On"/g' ${current_path}/info/manifest.xml +zip -r ../FtApp-hwon-6accrw-contactrw-userprofrw.zip bin data info lib res shared author-signature.xml signature1.xml +mv ../FtApp-hwon-6accrw-contactrw-userprofrw.zip ../FtApp-hwon-6accrw-contactrw-userprofrw.tpk +chmod +x ../FtApp-hwon-6accrw-contactrw-userprofrw.tpk + +sed -i 's/HwAcceleration="On"/HwAcceleration="Off"/g' ${current_path}/info/manifest.xml +sed -i /\/d ${current_path}/info/manifest.xml tmp="http://tizen.org/privilege/application.launch" cmd="/$/ a $tmp" cmd2="" -- 2.7.4