[Tizen Software Development] adfree:
How to create TPK with APK file inside to use with ACL...

Attempt for Instruction... :D

Require ROOT and my special modified Firmware rootfs.img...

Work for SM-Z130H, SM-Z300H, SM-Z200F

Step 1.

Use my QLauncher_v2.tpk as "Template"...

Rename into *.zip and unpack...

Result looks like this:

QLauncher_v2.tpk\[B][COLOR="Red"]author-signature.xml[/COLOR][/B]
QLauncher_v2.tpk\[B][COLOR="Red"]signature1.xml[/COLOR][/B]
QLauncher_v2.tpk\[B]tizen-manifest.xml[/B]
QLauncher_v2.tpk\shared\res\[B].android.apki[/B]
QLauncher_v2.tpk\shared\res\[B][COLOR="Red"]com.fps.android.qlauncher-1.apk[/COLOR][/B]
QLauncher_v2.tpk\shared\res\screen-density-xhigh\AppIcon.png

QLauncher_v2.tpk\bin\77F3x57s5W.exe
QLauncher_v2.tpk\res\main.html
QLauncher_v2.tpk\res\screen-density-high\download-ACL.png
QLauncher_v2.tpk\shared\res\ACL-splash.png

10 files inside ZIP

3 files are important for Edit/Create new TPK... with own Icon

2 files can be deleted... as we create them later by Signing process...

1 file ... APK ... will be replaced

Step 2.

Delete 2 files:

author-signature.xml

signature1.xml

In last step we can create them by Script...

Step 3.

Replace APK...

So you can delete com.fps.android.qlauncher-1.apk...

Copy new APK in correct folder...

Step 4.

Your APK need correct file name to proceed...

Different ways to find correct file name...

Easier result if allready installed...

A.

With help of SDB...

find / -type f -name '*.apk'

B.

With APK Extractor for instance...

It writes name of App + Package name into Filename...

C.

Unpack APK and search...

Never tried self in this way...

Rename your APK to correct filename.

Step 5.

If Step 4 is correct... you can edit .android.apki

Example:

[B]com.ext.ui-1.apk, com.ext.ui[/B]
converter-rev: 2.0.11
min-acl-rev: 2.0
proxy-rev: 2.1.41
group-id:

This is from APK Extractor...

Look at Line 1 and compare with my Q-Launcher or others...

Step 6.

Edit tizen-manifest.xml

Example:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<manifest xmlns="http://tizen.org/ns/packages" api-version="2.4.0.1" package="[B][COLOR="DarkGreen"]android006[/COLOR][/B]" version="0.0.1">
<profile name="mobile"/>
<author href=""></author>
<description>[B]APK Extractor[/B]</description>
<ui-application appid="[B][COLOR="DarkGreen"]android006.android006[/COLOR][/B]" auto-restart="false" exec="77F3x57s5W.exe"
multiple="false" nodisplay="false" on-boot="false" taskmanage="true" type="capp">
<label>[B]APK Extractor[/B]</label>

Concentrate on first few Lines...

I have marked text of interests...

"Important"...

android00x means path/folder...

So please not use same number for different apps...

Step 7.

Additional Step...

Icon...

Unpack APK in other folder... to search for PNG... it is also ZIP package...

This file is the Icon... it is not 100 % mandatory to use same Resolution...

QLauncher_v2.tpk\shared\res\screen-density-xhigh\AppIcon.png

Step 8.

Create folder in handset... test

You can use Explorer or My Files app.

Step 9.

Copy all files now to test folder...

Remember... 8 files only with correct paths...

Step 10.

sdb root on
sdb shell
hash-signer.sh -a -d /opt/usr/media/[B]test[/B]

Step 11.

Now copy result...

10 files to PC and create simple ZIP... rename into TPK...

... later more...

Best Regards