[Android General] demo7up:
Very Very DOPE! Im wondering if you can help me with something. I have taken your script to automate alot of my processes. Could you possibly help me with this problem im having?!?! Thank you in advanced!

:installA
cls
echo.
echo You will install an app
echo The app need to be in your ADB-Folder
echo Before you hit enter INSTALL "iKoNo"" on your FireTV
echo.
pause

echo.
echo You can find your IP by going to Settings > About > Network on your device
set /p ip=Enter the IP of your FireTV or FireTVStick:

adb kill-server
adb connect %ip%
adb install "C:\Users\demo\Desktop\FireTV\kodi.apk"
adb install "C:\Users\demo\Desktop\FireTV\settings.apk"
adb install "C:\Users\demo\Desktop\FireTV\llama.apk"

[CODE]Ok here I want some code to go where you can check and verify the top three were installed and if not stop the script i guess using
adb shell pm list packages <- just dont know the proper way of doing it. And does the syntax below look right? Im trying to mimic the functions that adbfire does to automate the LLAMA install. Posted below

adb push "C:\Users\demo\Desktop\FireTV\busybox" /data/local/tmp/

adb shell chmod 755 /data/local/tmp/busybox

adb shell "C:\Users\demo\Desktop\FireTV\busybox" --install -s /data/local/tmp

adb push "C:\Users\demo\Desktop\FireTV\adbfw128\events\llamakodi\linkiko" /sdcard/Llama/

adb push "C:\Users\demo\Desktop\FireTV\adbfw128\events\llamakodi\linkiko\Llama_Profiles.txt" -> /sdcard/Llama/Llama_Profiles.txt

adb push "C:\Users\demo\Desktop\FireTV\adbfw128\events\llamakodi\linkiko\Llama_NfcNames.txt" -> /sdcard/Llama/Llama_NfcNames.txt

adb push "C:\Users\demo\Desktop\FireTV\adbfw128\events\llamakodi\linkiko\Llama_IgnoredCells.txt" -> /sdcard/Llama/Llama_IgnoredCells.txt

adb push "C:\Users\demo\Desktop\FireTV\adbfw128\events\llamakodi\linkiko\Llama_Events.txt" -> /sdcard/Llama/Llama_Events.txt

adb push "C:\Users\demo\Desktop\FireTV\adbfw128\events\llamakodi\linkiko\Llama_Areas.txt" -> /sdcard/Llama/Llama_Areas.txt

adb shell rm -r /sdcard/.imagecache/com.amazon.venezia/org.ikonotv.smarttv

adb shell mkdir -p /sdcard/.imagecache/com.amazon.venezia/org.ikonotv.smarttv

adb push "C:\Users\demo\Desktop\FireTV\adbfw128\icons\ikokodi.icon" /sdcard/.imagecache/com.amazon.venezia/org.ikonotv.smarttv

adb push "C:\Users\demo\Desktop\FireTV\adbfw128\icons\ikokodi.icon\B00NEJS7ZO\thumbnail_bfc0289736b3b0fbd3e32dec9d5d44c9dbe7cef5a082645ab0af157c6f3f600b.png" -> /sdcard/.imagecache/com.amazon.venezia/org.ikonotv.smarttv/B00NEJS7ZO/thumbnail_bfc0289736b3b0fbd3e32dec9d5d44c9dbe7cef5a082645ab0af157c6f3f600b.png

adb push "C:\Users\demo\Desktop\FireTV\adbfw128\icons\icons\ikokodi.icon\B00NEJS7ZO\preview_5dd7e33b605bec171c4bba546e5b35c783feb32a53c44227249ad52f653dc49c.png" -> /sdcard/.imagecache/com.amazon.venezia/org.ikonotv.smarttv/B00NEJS7ZO/preview_5dd7e33b605bec171c4bba546e5b35c783feb32a53c44227249ad52f653dc49c.png

adb kill-server

echo.

echo Done!

exit

pause>nul

cls

goto menu

[/CODE]

Llama's logs:

adbFire v1.28
073115131544
Windows
------------
"./adb.exe" kill-server
server stopped
server started
"./adb.exe" start-server
* daemon not running. starting it now on port 5037 *

* daemon started successfully *

starting server
initial open
192.168.137.174
"./adb.exe" kill-server
server stopped
server started
"./adb.exe" start-server
* daemon not running. starting it now on port 5037 *

* daemon started successfully *

connection attempt
"./adb.exe" connect 192.168.137.174:5555
connected to 192.168.137.174:5555

"./adb.exe" push ./busybox /data/local/tmp/
503 KB/s (1356524 bytes in 2.632s)

"./adb.exe" shell chmod 755 /data/local/tmp/busybox

"./adb.exe" shell /data/local/tmp/busybox --install -s /data/local/tmp

process time duration: 9 seconds
llama options function entered
com.kebab.Llama not found
"./adb.exe" shell pm list packages
opening Llama dialog
org.xbmc.kodi is installed
"./adb.exe" shell pm list packages
org.ikonotv.smarttv is installed
"./adb.exe" shell pm list packages
"./adb.exe" shell rm -r /sdcard/Llama
rm failed for /sdcard/Llama, No such file or directory

"./adb.exe" push .//events/llamakodi/linkiko /sdcard/Llama/
push: .//events/llamakodi/linkiko/Llama_Profiles.txt -> /sdcard/Llama/Llama_Profiles.txt

push: .//events/llamakodi/linkiko/Llama_NfcNames.txt -> /sdcard/Llama/Llama_NfcNames.txt

push: .//events/llamakodi/linkiko/Llama_IgnoredCells.txt -> /sdcard/Llama/Llama_IgnoredCells.txt

push: .//events/llamakodi/linkiko/Llama_Events.txt -> /sdcard/Llama/Llama_Events.txt

push: .//events/llamakodi/linkiko/Llama_Areas.txt -> /sdcard/Llama/Llama_Areas.txt

5 files pushed. 0 files skipped.

10 KB/s (501 bytes in 0.047s)

"./adb.exe" shell rm -r /sdcard/.imagecache/com.amazon.venezia/org.ikonotv.smarttv

"./adb.exe" shell mkdir -p /sdcard/.imagecache/com.amazon.venezia/org.ikonotv.smarttv

"./adb.exe" push ./icons/ikokodi.icon /sdcard/.imagecache/com.amazon.venezia/org.ikonotv.smarttv
push: ./icons/ikokodi.icon/B00NEJS7ZO/thumbnail_bfc0289736b3b0fbd3e32dec9d5d44c9dbe7cef5a082645ab0af157c6f3f600b.png -> /sdcard/.imagecache/com.amazon.venezia/org.ikonotv.smarttv/B00NEJS7ZO/thumbnail_bfc0289736b3b0fbd3e32dec9d5d44c9dbe7cef5a082645ab0af157c6f3f600b.png

push: ./icons/ikokodi.icon/B00NEJS7ZO/preview_5dd7e33b605bec171c4bba546e5b35c783feb32a53c44227249ad52f653dc49c.png -> /sdcard/.imagecache/com.amazon.venezia/org.ikonotv.smarttv/B00NEJS7ZO/preview_5dd7e33b605bec171c4bba546e5b35c783feb32a53c44227249ad52f653dc49c.png

2 files pushed. 0 files skipped.

696 KB/s (94838 bytes in 0.133s)

exit llama function
process time duration: 75 seconds
closing program
"./adb.exe" kill-server
server stopped

---------- Post added at 07:31 PM ---------- Previous post was at 07:10 PM ----------

You will install an app
The app need to be in your ADB-Folder
Before you hit enter INSTALL "iKoNo"" on your FireTV

Press any key to continue . . .

Enter the IP of your FireTV or FireTVStick:213
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
connected to 192.168.137.213:5555
383 KB/s (60646715 bytes in 154.478s)
pkg: /data/local/tmp/kodi.apk
Success
375 KB/s (3269290 bytes in 8.500s)
pkg: /data/local/tmp/settings.apk
Failure [INSTALL_FAILED_ALREADY_EXISTS]
367 KB/s (2783570 bytes in 7.397s)
pkg: /data/local/tmp/llama.apk
Failure [INSTALL_FAILED_ALREADY_EXISTS]
376 KB/s (1356524 bytes in 3.514s)
/system/bin/sh: C:UsersdemoDesktopFireTVbusybox: not found
push: C:\Users\demo\Desktop\FireTV\adbfw128\events\llamakodi\linkiko/Llama_Profiles.txt -> /sdcard/Llama/Llama_Profiles.txt
push: C:\Users\demo\Desktop\FireTV\adbfw128\events\llamakodi\linkiko/Llama_NfcNames.txt -> /sdcard/Llama/Llama_NfcNames.txt
push: C:\Users\demo\Desktop\FireTV\adbfw128\events\llamakodi\linkiko/Llama_IgnoredCells.txt -> /sdcard/Llama/Llama_IgnoredCells.txt
push: C:\Users\demo\Desktop\FireTV\adbfw128\events\llamakodi\linkiko/Llama_Events.txt -> /sdcard/Llama/Llama_Events.txt
push: C:\Users\demo\Desktop\FireTV\adbfw128\events\llamakodi\linkiko/Llama_Areas.txt -> /sdcard/Llama/Llama_Areas.txt
5 files pushed. 0 files skipped.
4 KB/s (501 bytes in 0.117s)
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
push: C:\Users\demo\Desktop\FireTV\adbfw128\icons\ikokodi.icon/B00NEJS7ZO/thumbnail_bfc0289736b3b0fbd3e32dec9d5d44c9dbe7cef5a082645ab0af157c6f3f600b.png -> /sdcard/.imagecache/com.amazon.venezia/org.ikonotv.smarttv/B00NEJS7ZO/thumbnail_bfc0289736b3b0fbd3e32dec9d5d44c9dbe7cef5a082645ab0af157c6f3f600b.png
push: C:\Users\demo\Desktop\FireTV\adbfw128\icons\ikokodi.icon/B00NEJS7ZO/preview_5dd7e33b605bec171c4bba546e5b35c783feb32a53c44227249ad52f653dc49c.png -> /sdcard/.imagecache/com.amazon.venezia/org.ikonotv.smarttv/B00NEJS7ZO/preview_5dd7e33b605bec171c4bba546e5b35c783feb32a53c44227249ad52f653dc49c.png
2 files pushed. 0 files skipped.
296 KB/s (94838 bytes in 0.312s)
The system cannot find the path specified.
The system cannot find the path specified.

Done!