Modified tpk generating script
authorKeebong <keebong.bahn@samsung.com>
Wed, 8 May 2013 12:08:33 +0000 (21:08 +0900)
committerKeebong <keebong.bahn@samsung.com>
Wed, 8 May 2013 12:08:33 +0000 (21:08 +0900)
Change-Id: I61d12572ba910e6e28d2343eb0e4e8d932495074
Signed-off-by: Keebong <keebong.bahn@samsung.com>
util/gen_multi_priv_pkg.sh

index de32ca9..40afa7f 100755 (executable)
@@ -21,6 +21,57 @@ fi
 
 sed  -i 's/HwAcceleration="On"/HwAcceleration="Off"/g' ${current_path}/info/manifest.xml
 sed -i /\<Privilege\>/d ${current_path}/info/manifest.xml
+tmp="<Privilege>http://tizen.org/privilege/account.read"
+cmd="/<Privileges>$/ a $tmp"
+cmd2="</Privilege>"
+sed -i "${cmd}${cmd2}" ${current_path}/info/manifest.xml
+tmp="<Privilege>http://tizen.org/privilege/account.write"
+cmd="/<Privileges>$/ 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 /\<Privilege\>/d ${current_path}/info/manifest.xml
+tmp="<Privilege>http://tizen.org/privilege/contact.read"
+cmd="/<Privileges>$/ a $tmp"
+cmd2="</Privilege>"
+sed -i "${cmd}${cmd2}" ${current_path}/info/manifest.xml
+tmp="<Privilege>http://tizen.org/privilege/contact.write"
+cmd="/<Privileges>$/ 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 /\<Privilege\>/d ${current_path}/info/manifest.xml
+tmp="<Privilege>http://tizen.org/privilege/userprofile.read"
+cmd="/<Privileges>$/ a $tmp"
+cmd2="</Privilege>"
+sed -i "${cmd}${cmd2}" ${current_path}/info/manifest.xml
+tmp="<Privilege>http://tizen.org/privilege/userprofile.write"
+cmd="/<Privileges>$/ 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 /\<Privilege\>/d ${current_path}/info/manifest.xml
 tmp="<Privilege>http://tizen.org/privilege/application.launch"
 cmd="/<Privileges>$/ a $tmp"
 cmd2="</Privilege>"