[G1 Android Development] Devildog8791:
Starting with Linux

I have downloaded the file and unzipped it. Where is the best place to put the folder? I have it in my home folder, but I can't get the folders to show up. Do I double click on Script.sh to get them to show up? I have apktool set up, but I keep getting errors in there, so I figured I would give this program a shot and see if I can get things working in here.

edit: Okay, I think I am getting somewhere. I was getting stuck on the chmod commands, but I was not including sudo. I have that done, but now I am getting the following errors:

devildog8791@Tims-PC ~/apkmanager $ sudo chmod 0755 Script.sh

devildog8791@Tims-PC ~/apkmanager $ cd other

devildog8791@Tims-PC ~/apkmanager/other $ sudo chmod 0755 7za

devildog8791@Tims-PC ~/apkmanager/other $ sudo chmod 0755 aapt

devildog8791@Tims-PC ~/apkmanager/other $ sudo chmod 0755 apktool

devildog8791@Tims-PC ~/apkmanager/other $ sudo chmod 0755 apktool.jar

devildog8791@Tims-PC ~/apkmanager/other $ sudo chmod 0755 optipng

devildog8791@Tims-PC ~/apkmanager/other $ sudo chmod 0755 signapk.jar

devildog8791@Tims-PC ~/apkmanager/other $ sudo chmod 0755 testkey.pk8

devildog8791@Tims-PC ~/apkmanager/other $ sudo chmod 0755 testkey.x509.pem

devildog8791@Tims-PC ~/apkmanager/other $ cd

devildog8791@Tims-PC ~ $ cd apkmanager

devildog8791@Tims-PC ~/apkmanager $ ./Script.sh

The program adb is missing or is not in your PATH,

please install it or fix your PATH variable

The program sox is missing or is not in your PATH,

please install it or fix your PATH variable

I am new to Linux and I'm not sure how to set the PATH variables. i have adb on the computer in the tools folder. Is sox a program that I need to install?

edit 2: I finally got the menu to come up, but I still cannot get the folders to show in the apkmanager folder. When I try to select a number on the menu, it just backspaces and deletes my entry. The only number that I can select is 0, but that is not what I need to do. I have the apk file in the apkmanager folder because I don't have the folders that are supposed to be created. Here is what I have done so far {Sorry about the long post, but I wanted everything that I have done to be visible for troubleshooting).

evildog8791@Tims-PC ~/apkmanager $ ./Script.sh

The program adb is missing or is not in your PATH,

please install it or fix your PATH variable

The program sox is missing or is not in your PATH,

please install it or fix your PATH variable

devildog8791@Tims-PC ~/apkmanager $ cd

devildog8791@Tims-PC ~ $ echo $PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

devildog8791@Tims-PC ~ $ PATH=/'/home/devildog8791/sdk/tools/adb'

devildog8791@Tims-PC ~ $ cd apkmanager

devildog8791@Tims-PC ~/apkmanager $ ./Script.sh

./Script.sh: 284: which: not found

./Script.sh: 284: which: not found

./Script.sh: 284: which: not found

./Script.sh: 284: which: not found

./Script.sh: 284: which: not found

./Script.sh: 284: which: not found

./Script.sh: 284: which: not found

./Script.sh: 289: clear: not found

Do you want to clean out all your current projects (y/N)? y

./Script.sh: 301: rm: not found

./Script.sh: 301: rm: not found

./Script.sh: 301: rm: not found

./Script.sh: 301: rm: not found

./Script.sh: 301: rm: not found

./Script.sh: 301: mkdir: not found

./Script.sh: 301: mkdir: not found

./Script.sh: 301: mkdir: not found

****************************** Apk Manager *******************************

------------------Simple Tasks Such As Image Editing----------------------

0 Adb pull

1 Extract apk

2 Optimize images inside (Only if "Extract Apk" was selected)

3 Zip apk

4 Sign apk (Dont do this if its a system apk)

5 Zipalign apk (Do once apk is created/signed)

6 Install apk (Dont do this if system apk, do adb push)

7 Zip / Sign / Install apk (All in one step)

8 Adb push (Only for system apk)

-----------------Advanced Tasks Such As Code Editing-----------------------

9 Decompile apk

10 Compile apk

11 Sign apk

12 Install apk

13 Compile apk / Sign apk / Install apk (All in one step)

---------------------------------------------------------------------------

14 Batch Optimize Apk (inside place-apk-here-to-batch-optimize only)

15 Sign an apk (inside place-apk-here-for-signing folder only)

16 Batch optimize ogg files (inside place-ogg-here only)

17 Quit

****************************************************************************

Please make your decision: 2

./Script.sh: 305: find: not found

****************************** Apk Manager *******************************

------------------Simple Tasks Such As Image Editing----------------------

0 Adb pull

1 Extract apk

2 Optimize images inside (Only if "Extract Apk" was selected)

3 Zip apk

4 Sign apk (Dont do this if its a system apk)

5 Zipalign apk (Do once apk is created/signed)

6 Install apk (Dont do this if system apk, do adb push)

7 Zip / Sign / Install apk (All in one step)

8 Adb push (Only for system apk)

-----------------Advanced Tasks Such As Code Editing-----------------------

9 Decompile apk

10 Compile apk

11 Sign apk

12 Install apk

13 Compile apk / Sign apk / Install apk (All in one step)

---------------------------------------------------------------------------

14 Batch Optimize Apk (inside place-apk-here-to-batch-optimize only)

15 Sign an apk (inside place-apk-here-for-signing folder only)

16 Batch optimize ogg files (inside place-ogg-here only)

17 Quit

****************************************************************************

Please make your decision: 2

./Script.sh: 305: find: not found

****************************** Apk Manager *******************************

------------------Simple Tasks Such As Image Editing----------------------

0 Adb pull

1 Extract apk

2 Optimize images inside (Only if "Extract Apk" was selected)

3 Zip apk

4 Sign apk (Dont do this if its a system apk)

5 Zipalign apk (Do once apk is created/signed)

6 Install apk (Dont do this if system apk, do adb push)

7 Zip / Sign / Install apk (All in one step)

8 Adb push (Only for system apk)

-----------------Advanced Tasks Such As Code Editing-----------------------

9 Decompile apk

10 Compile apk

11 Sign apk

12 Install apk

13 Compile apk / Sign apk / Install apk (All in one step)

---------------------------------------------------------------------------

14 Batch Optimize Apk (inside place-apk-here-to-batch-optimize only)

15 Sign an apk (inside place-apk-here-for-signing folder only)

16 Batch optimize ogg files (inside place-ogg-here only)

17 Quit

****************************************************************************

Please make your decision: 0

Where do you want adb to pull the apk from?

Example of input : /system/app/launcher.apk

'/home/devildog8791/apkmanager/Vending.apk'

./Script.sh: 305: basename: not found

./Script.sh: 305: adb: not found

Error: while pulling

****************************** Apk Manager *******************************

------------------Simple Tasks Such As Image Editing----------------------

0 Adb pull

1 Extract apk

2 Optimize images inside (Only if "Extract Apk" was selected)

3 Zip apk

4 Sign apk (Dont do this if its a system apk)

5 Zipalign apk (Do once apk is created/signed)

6 Install apk (Dont do this if system apk, do adb push)

7 Zip / Sign / Install apk (All in one step)

8 Adb push (Only for system apk)

-----------------Advanced Tasks Such As Code Editing-----------------------

9 Decompile apk

10 Compile apk

11 Sign apk

12 Install apk

13 Compile apk / Sign apk / Install apk (All in one step)

---------------------------------------------------------------------------

14 Batch Optimize Apk (inside place-apk-here-to-batch-optimize only)

15 Sign an apk (inside place-apk-here-for-signing folder only)

16 Batch optimize ogg files (inside place-ogg-here only)

17 Quit

****************************************************************************

Please make your decision: 2

./Script.sh: 305: find: not found

****************************** Apk Manager *******************************

------------------Simple Tasks Such As Image Editing----------------------

0 Adb pull

1 Extract apk

2 Optimize images inside (Only if "Extract Apk" was selected)

3 Zip apk

4 Sign apk (Dont do this if its a system apk)

5 Zipalign apk (Do once apk is created/signed)

6 Install apk (Dont do this if system apk, do adb push)

7 Zip / Sign / Install apk (All in one step)

8 Adb push (Only for system apk)

-----------------Advanced Tasks Such As Code Editing-----------------------

9 Decompile apk

10 Compile apk

11 Sign apk

12 Install apk

13 Compile apk / Sign apk / Install apk (All in one step)

---------------------------------------------------------------------------

14 Batch Optimize Apk (inside place-apk-here-to-batch-optimize only)

15 Sign an apk (inside place-apk-here-for-signing folder only)

16 Batch optimize ogg files (inside place-ogg-here only)

17 Quit

****************************************************************************

Please make your decision: 9

./Script.sh: 305: rm: not found

./Script.sh: 305: rm: not found

./Script.sh: 305: rm: not found

./Script.sh: 305: rm: not found

./Script.sh: 305: rm: not found

./Script.sh: 305: clear: not found

./Script.sh: 305: java: not found

****************************** Apk Manager *******************************

------------------Simple Tasks Such As Image Editing----------------------

0 Adb pull

1 Extract apk

2 Optimize images inside (Only if "Extract Apk" was selected)

3 Zip apk

4 Sign apk (Dont do this if its a system apk)

5 Zipalign apk (Do once apk is created/signed)

6 Install apk (Dont do this if system apk, do adb push)

7 Zip / Sign / Install apk (All in one step)

8 Adb push (Only for system apk)

-----------------Advanced Tasks Such As Code Editing-----------------------

9 Decompile apk

10 Compile apk

11 Sign apk

12 Install apk

13 Compile apk / Sign apk / Install apk (All in one step)

---------------------------------------------------------------------------

14 Batch Optimize Apk (inside place-apk-here-to-batch-optimize only)

15 Sign an apk (inside place-apk-here-for-signing folder only)

16 Batch optimize ogg files (inside place-ogg-here only)

17 Quit

****************************************************************************

Please make your decision:

Unknown command: ''

****************************** Apk Manager *******************************

------------------Simple Tasks Such As Image Editing----------------------

0 Adb pull

1 Extract apk

2 Optimize images inside (Only if "Extract Apk" was selected)

3 Zip apk

4 Sign apk (Dont do this if its a system apk)

5 Zipalign apk (Do once apk is created/signed)

6 Install apk (Dont do this if system apk, do adb push)

7 Zip / Sign / Install apk (All in one step)

8 Adb push (Only for system apk)

-----------------Advanced Tasks Such As Code Editing-----------------------

9 Decompile apk

10 Compile apk

11 Sign apk

12 Install apk

13 Compile apk / Sign apk / Install apk (All in one step)

---------------------------------------------------------------------------

14 Batch Optimize Apk (inside place-apk-here-to-batch-optimize only)

15 Sign an apk (inside place-apk-here-for-signing folder only)

16 Batch optimize ogg files (inside place-ogg-here only)

17 Quit

****************************************************************************

Please make your decision:

Unknown command: ''

****************************** Apk Manager *******************************

------------------Simple Tasks Such As Image Editing----------------------

0 Adb pull

1 Extract apk

2 Optimize images inside (Only if "Extract Apk" was selected)

3 Zip apk

4 Sign apk (Dont do this if its a system apk)

5 Zipalign apk (Do once apk is created/signed)

6 Install apk (Dont do this if system apk, do adb push)

7 Zip / Sign / Install apk (All in one step)

8 Adb push (Only for system apk)

-----------------Advanced Tasks Such As Code Editing-----------------------

9 Decompile apk

10 Compile apk

11 Sign apk

12 Install apk

13 Compile apk / Sign apk / Install apk (All in one step)

---------------------------------------------------------------------------

14 Batch Optimize Apk (inside place-apk-here-to-batch-optimize only)

15 Sign an apk (inside place-apk-here-for-signing folder only)

16 Batch optimize ogg files (inside place-ogg-here only)

17 Quit

****************************************************************************

Please make your decision: 9

./Script.sh: 305: rm: not found

./Script.sh: 305: rm: not found

./Script.sh: 305: rm: not found

./Script.sh: 305: rm: not found

./Script.sh: 305: rm: not found

./Script.sh: 305: clear: not found

./Script.sh: 305: java: not found

****************************** Apk Manager *******************************

------------------Simple Tasks Such As Image Editing----------------------

0 Adb pull

1 Extract apk

2 Optimize images inside (Only if "Extract Apk" was selected)

3 Zip apk

4 Sign apk (Dont do this if its a system apk)

5 Zipalign apk (Do once apk is created/signed)

6 Install apk (Dont do this if system apk, do adb push)

7 Zip / Sign / Install apk (All in one step)

8 Adb push (Only for system apk)

-----------------Advanced Tasks Such As Code Editing-----------------------

9 Decompile apk

10 Compile apk

11 Sign apk

12 Install apk

13 Compile apk / Sign apk / Install apk (All in one step)

---------------------------------------------------------------------------

14 Batch Optimize Apk (inside place-apk-here-to-batch-optimize only)

15 Sign an apk (inside place-apk-here-for-signing folder only)

16 Batch optimize ogg files (inside place-ogg-here only)

17 Quit

****************************************************************************

Please make your decision: 14

./Script.sh: 305: mkdir: not found

./Script.sh: 305: find: not found

./Script.sh: 305: rm: not found

****************************** Apk Manager *******************************

------------------Simple Tasks Such As Image Editing----------------------

0 Adb pull

1 Extract apk

2 Optimize images inside (Only if "Extract Apk" was selected)

3 Zip apk

4 Sign apk (Dont do this if its a system apk)

5 Zipalign apk (Do once apk is created/signed)

6 Install apk (Dont do this if system apk, do adb push)

7 Zip / Sign / Install apk (All in one step)

8 Adb push (Only for system apk)

-----------------Advanced Tasks Such As Code Editing-----------------------

9 Decompile apk

10 Compile apk

11 Sign apk

12 Install apk

13 Compile apk / Sign apk / Install apk (All in one step)

---------------------------------------------------------------------------

14 Batch Optimize Apk (inside place-apk-here-to-batch-optimize only)

15 Sign an apk (inside place-apk-here-for-signing folder only)

16 Batch optimize ogg files (inside place-ogg-here only)

17 Quit

****************************************************************************

Please make your decision: