[Q] Backup xbmc firetv - Fire TV Q&A, Help & Troubleshooting

Please can some one help me with this bit of a noob at this can some one tell me how to make backup of xbmc on firetv

In XBMC/Kodi gp to System>Settings >Add-ons>All Add-ons>Programs>XBMC Backup and configure it to save your backup on a Samba/NFS share... Look around the settings within the plugin for all options.
Sent from my TF300T using Tapatalk

Noel30 said:
Please can some one help me with this bit of a noob at this can some one tell me how to make backup of xbmc on firetv
Click to expand...
Click to collapse
You can use UI to backup XMBC as the previous poster explained. If you want to do it outside of XBMC, I have couple of scripts that you can run from your command prompt (like you run any other adb commands).
I have a designated folder on my laptop that is also a store for my Google Drive. The logic is to pull files straight to this folder and the Google Drive app on my laptop will sync the files to my cloud drive for extra backup (laptop & cloud drive). The google drive folder is on F:\GoogleDrive and XBMC folder within it. You need to change it to whatever you are using. Also, change the IP of your FTV.
------------------------- BACKUP SCRIPT -----------------------------
set curr_date=%DATE:~10,4%-%DATE:~4,2%-%DATE:~7,2%
mkdir "F:\GoogleDrive\XBMC\%curr_date%"
pause
adb kill-server
pause
adb start-server
pause
adb connect 192.168.100.3
pause
adb devices
pause
adb pull "/sdcard/Android/data/org.xbmc.xbmc/files/.xbmc/userdata" "F:\GoogleDrive\XBMC\%curr_date%\userdata"
pause
adb pull "/sdcard/Android/data/org.xbmc.xbmc/files/.xbmc/addons" "F:\GoogleDrive\XBMC\%curr_date%\addons"
pause
adb disconnect
pause
adb kill-server
pause
-------------------------- SCRIPT END ------------------------------
I wrote a little second script to restore my XBMC backup back to FTV.... (You will need to change the date)
------------------------ RESTORE SCRIPT ---------------------------
set curr_date=YYYY-MM-DD
pause
adb kill-server
pause
adb start-server
pause
adb connect 192.168.100.3
pause
adb devices
pause
adb push "F:\GoogleDrive\XBMC\%curr_date%\userdata" "/sdcard/Android/data/org.xbmc.xbmc/files/.xbmc/userdata"
pause
adb push "F:\GoogleDrive\XBMC\%curr_date%\addons" "/sdcard/Android/data/org.xbmc.xbmc/files/.xbmc/addons"
pause
adb disconnect
pause
adb kill-server
pause
---------------------------- END SCRIPT ----------------------------
I have attached the two scripts (both are ".txt" files, rename them to ".bat" extension). You will put these 2 files where you have Android SDK installed. You can schedule a task in your Windows box to run this automatically. You can use this to target any folder or any cloud provider like onedrive/box/whatever... Once you have the bat files stored, you can simply double click to run it as needed. I usually run them when I make any changes to XBMC. I don't schedule it to run.

XBMC/KODI Backup FireTV
The easiest way to backup/restore XBMC/KODI is with AdbFIRE. It has a one click back up and restore option. Its the easiest way to do anything with the Fire tv. When you backup xbmc name the folder org.xbmc.xbmc and when you backup Kodi name the folder org.kodi.kodi. I noticed when you do not name the folders properly when you go to restore the restore will fail
I Cant post links just do a google search for AdbFire or edit the link
jocala*DotCom/adbfire.html

Firetv505 said:
The easiest way to backup/restore XBMC/KODI is with AdbFIRE. It has a one click back up and restore option. Its the easiest way to do anything with the Fire tv. When you backup xbmc name the folder org.xbmc.xbmc and when you backup Kodi name the folder org.kodi.kodi. I noticed when you do not name the folders properly when you go to restore the restore will fail
I Can post links just do a google search for AdbFire or edit the link
jocala*DotCom*dbfire.html
Click to expand...
Click to collapse
What is the mistake in the restore script? I don't have XBMC on the FTV currently to test it.

XBMC/KODI Backup FireTV
dbdoshi said:
What is the mistake in the restore script? I don't have XBMC on the FTV currently to test it.
Click to expand...
Click to collapse
I'm not home right now but when I can I will post it

Related

Can files be pushed across the network from a PC to Fire TV using ADB?

I'd like to push some XBMC repository zips to my Fire TV without the hassle of installing ES File Explorer and pulling the zips from the pc.
Is this possible via ADB?
I've been using ADB to sideload apps.
After a bit more searching I found my answer.
It's quite simple.
If you're already accustomed to connecting to your FIre TV over ADB, to push a file to a directory on the Fire TV, the command syntax is as follows:
Code:
[INDENT][/INDENT][B]adb push <local pc path to file> <destination path on fire tv>[/B]
For example, I wanted to push an XBMC repository zip to the /sdcard/download folder on my fire TV for ease of installation from within XBMC.
The zip archive is named "repositories_installer.zip" and it exists in the following directory on my PC: C:\Android\FireTV\
To do so, my command was:
Code:
[INDENT][/INDENT][B]adb push C:\Android\FireTV\repositories_installer.zip /sdcard/Download[/B]
don't forget you need to do:
Code:
adb connect fire_tv_IP_address
beforehand.
archa1c said:
After a bit more searching I found my answer.
It's quite simple.
If you're already accustomed to connecting to your FIre TV over ADB, to push a file to a directory on the Fire TV, the command syntax is as follows:
Code:
[INDENT][/INDENT][B]adb push <local pc path to file> <destination path on fire tv>[/B]
For example, I wanted to push an XBMC repository zip to the /sdcard/download folder on my fire TV for ease of installation from within XBMC.
The zip archive is named "repositories_installer.zip" and it exists in the following directory on my PC: C:\Android\FireTV\
To do so, my command was:
Code:
[INDENT][/INDENT][B]adb push C:\Android\FireTV\repositories_installer.zip /sdcard/Download[/B]
Click to expand...
Click to collapse
You can push xbmc xml for control remap like that, also you can use "adb pull" command instead of push to retrieve files from it.
Luxferro said:
don't forget you need to do:
Code:
adb connect fire_tv_IP_address
beforehand.
Click to expand...
Click to collapse
I also noticed sometimes I cannot connect like this if I am in an app like XBMC. I must close the app before it will connect. Not sure why, just mentioning in case this scenario applies to anyone.
just a tip, i was able to sideload apps directly from my phone to the ftv, using android terminal emulator app, so probable file push should work.
Sent from my Nexus 5 using XDA Premium 4 mobile app
archa1c said:
After a bit more searching I found my answer.
It's quite simple.
If you're already accustomed to connecting to your FIre TV over ADB, to push a file to a directory on the Fire TV, the command syntax is as follows:
Code:
[INDENT][/INDENT][B]adb push <local pc path to file> <destination path on fire tv>[/B]
For example, I wanted to push an XBMC repository zip to the /sdcard/download folder on my fire TV for ease of installation from within XBMC.
The zip archive is named "repositories_installer.zip" and it exists in the following directory on my PC: C:\Android\FireTV\
To do so, my command was:
Code:
[INDENT][/INDENT][B]adb push C:\Android\FireTV\repositories_installer.zip /sdcard/Download[/B]
Click to expand...
Click to collapse
If your goal was to install XBMC repos, why not just put the files on a SMB/NFS share and access from within XBMC?
How about deleting .zip from sdcard? after i push the zip to sdcard/download, I installed repo or any zip done with the file, how can i deleted it afterwards?
Totalcomander + ADB Plugin
use Totalcomander (Ghisler) and ADB Plugin - extrem easy and powerfull - working like Explorer
you can use it also for your handy

[Q] any way of saving images to storage without root?

ok, something really simple somebody may be able to help me with, not sure if its possible, but i want to store a few images onto my fire tv, so i can use them with my xbmc setup as wallpapers, my device isnt rooted, as its the uk version that got sent out today, ive installed dropbox, and es file explorer but their is no option to save. anybody know if this is possible? its driving me crazy. ive also tried uploading with the amazon cloud drive app, the pictures show up on the photo section on my home screen, but thats it... is their any way i would find these in the root access?
thanks
I think you should be able to use adb to push them to the SD card. Try one of the fireTV utility apps for a GUI.
Sent from my SCH-I545 using Tapatalk
chantelle310 said:
ok, something really simple somebody may be able to help me with, not sure if its possible, but i want to store a few images onto my fire tv, so i can use them with my xbmc setup as wallpapers, my device isnt rooted, as its the uk version that got sent out today, ive installed dropbox, and es file explorer but their is no option to save. anybody know if this is possible? its driving me crazy. ive also tried uploading with the amazon cloud drive app, the pictures show up on the photo section on my home screen, but thats it... is their any way i would find these in the root access?
thanks
Click to expand...
Click to collapse
Connect to the Fire TV via ADB (WIndows guide and Mac guide)
Then use the command:
Code:
adb push C:\path\to\image.jpg \sdcard\
This will transfer any file from your PC to the \sdcard\ directory of your Fire TV. Root is not needed.
You guys are the best... Thank a lot!
?
AFTVnews.com said:
Connect to the Fire TV via ADB (
Then use the command:
Code:
adb push C:\path\to\image.jpg \sdcard\
This will transfer any file from your PC to the \sdcard\ directory of your Fire TV. Root is not needed.
Click to expand...
Click to collapse
having a little trouble, could you tell me where im going wrong?
chantelle310 said:
having a little trouble, could you tell me where im going wrong?
Click to expand...
Click to collapse
Change the c:\path\to to actually be the correct path to the image file on your computer (for example c:\users\images\Photo.jpg)
Sent from my SCH-I545 using Tapatalk
collindv said:
Change the c:\path\to to actually be the correct path to the image file on your computer (for example c:\users\images\Photo.jpg)
Sent from my SCH-I545 using Tapatalk
Click to expand...
Click to collapse
Will give that a try now.. Thank you.
New ground for me... Can you tell lol
Since you want these in XBMC, you can do in XBMC using the file manager too.
Tight_wad said:
Since you want these in XBMC, you can do in XBMC using the file manager too.
Click to expand...
Click to collapse
Can I do it directly from my mac without having to sideload?
Still no luck
I don't think its finding the adb program. Are you running the command from the folder where adb resides?
Sent from my SCH-I545 using Tapatalk
chantelle310 said:
Still no luck
Click to expand...
Click to collapse
The command is slightly different between Mac and Windows. The command I gave you is for Windows. Here is what you should enter since you're on a Mac:
First, change to the directory where you have adb by running this command:
Code:
cd /Users/channy/Desktop/platform-tools/
Then move the file to your Fire TV by running this command:
Code:
./adb push /Users/channy/Desktop/platform-tools/wallpapers/Breaking-Bad-Simpsons-2362199.jpg /sdcard/
AFTVnews.com said:
The command is slightly different between Mac and Windows. The command I gave you is for Windows. Here is what you should enter since you're on a Mac:
First, change to the directory where you have adb by running this command:
Code:
cd /Users/channy/Desktop/platform-tools/
Then move the file to your Fire TV by running this command:
Code:
./adb push /Users/channy/Desktop/platform-tools/wallpapers/Breaking-Bad-Simpsons-2362199.jpg /sdcard/
Click to expand...
Click to collapse
absolute life saver, ive given myself the biggest headache trying to fix this all day, thanks alot,
ps, been following your page on twitter for a while just realised
chantelle310 said:
absolute life saver, ive given myself the biggest headache trying to fix this all day, thanks alot,
ps, been following your page on twitter for a while just realised
Click to expand...
Click to collapse
Awesome. Glad you got it working! And glad you're enjoying the site.
Here are a couple tips:
If you move the adb file from the platform-tools folder into your /Users/channy/ folder, you can just open terminal and start running "./adb" commands without first doing the "cd..." command.
Also, on mac you can drag and drop files into the terminal window instead of typing the full path to the file. For this case you would type "./adb push ", then drag the image onto the terminal, then type " /sdcard/". Note the space at the end of the first part and the beginning of the second part.
AFTVnews.com said:
Awesome. Glad you got it working! And glad you're enjoying the site.
Here are a couple tips:
If you move the adb file from the platform-tools folder into your /Users/channy/ folder, you can just open terminal and start running "./adb" commands without first doing the "cd..." command.
Also, on mac you can drag and drop files into the terminal window instead of typing the full path to the file. For this case you would type "./adb push ", then drag the image onto the terminal, then type " /sdcard/". Note the space at the end of the first part and the beginning of the second part.
Click to expand...
Click to collapse
Even better.. Thankyou for that info. Whilst I caught you online.. Little off topic but do I need to block OTA updates? I plan on eventually rooting when/if it becomes available. And if so... The only way I can do this as I'm on stock firmware would be to use the block domain methods with my router?
chantelle310 said:
Even better.. Thankyou for that info. Whilst I caught you online.. Little off topic but do I need to block OTA updates? I plan on eventually rooting when/if it becomes available. And if so... The only way I can do this as I'm on stock firmware would be to use the block domain methods with my router?
Click to expand...
Click to collapse
If you have any interest in rooting it's always best to block updates. At the very least that way you can choose whether you want to install the update or not.
If you're not rooted, your best option is to block the update domains via your router. If that isn't something you can do, you can always sign up for a free OpenDNS account and block the domains that way. You would just need to enter the OpenDNS DNS IP addresses into your Fire TV's settings, just like in this guide.
AFTVnews.com said:
If you have any interest in rooting it's always best to block updates. At the very least that way you can choose whether you want to install the update or not.
If you're not rooted, your best option is to block the update domains via your router. If that isn't something you can do, you can always sign up for a free OpenDNS account and block the domains that way. You would just need to enter the OpenDNS DNS IP addresses into your Fire TV's settings, just like in this guide.
Click to expand...
Click to collapse
You're awesome. Thank you very much. My xbmc setup is now looking exactly how I wanted it with your help.

Fire tv apps from other account

Hi. Sorry if this is in the wrong area.
Is there a way to take apps off the fire tv such as hulu etc that can be then transferred to a different user account.
I have 2 accounts that are used separately and have got usa apps via changing language etc then reverted back to uk. But I want to transfer these to my other device without having to change regions again.
Tried copying app to usb then transferring but that didn't work.
Any ideas please.
Thanks
I would suggest to use ADB. Especially the "adb install <insertnamehere>.apk" command
http://adbshell.com/commands/adb-install/how-to-use-adb-install.html
Hi thanks for that. I'm fine with installing the apps it is just how to get the app off the other decide to install on the the one. Does es file explorer back up apps ?
You could try an apk extractor app; no idea if this pulls the settings as well as the app.
You can copy APK from an Android device via ADB "pull" command to your PC
adb pull <remote> [<local>] - copy file/dir from device
Click to expand...
Click to collapse
1.) connect via ADB
2.) use ADB "pull" command for e.g.
Code:
adb pull /system/app "%~dp0\apk_backup\system_apps"
This pulls all preinstalled system apps and stores them in the local subfolder /apk_backup/system_apps
3.)
Code:
adb pull /data/app "%~dp0\apk_backup\data_apps"
Similiar as 2.) but for user installed APKs.
I managed to get one done but when I transferred it to my other box it wouldn't open and said that I didn't own it !! Any ideas ?
Can not tell for sure but some apps may require additional libraries from /system/libs.
Perhaps the app also checks for the existance of the Amazon appstore app. I don´t know if there is also an addtionally "hard" check which does check for the actual account on the installed app store.
Never tried this on my own.

Extract Fire TV APKs?

Hi, i have a fire tv and nexus player. I'd like to try and install some of the apps designed for the fire tv to see if they will work on the nexus, seeing as these apps should be designed to be used with a remote.
I've tried following this guide .. http://www.aftvnews.com/how-to-transfer-amazon-fire-tv-apps-to-a-fire-tv-stick/ .. but i must be doing something wrong as i get an error at the last step, maybe i am not entering the directory correctly as i get a 'no such file or directory exists' error.
this is the string i am entering. 'adb pull /data/app/uk.co.bbc.iplayer-2.apk F:/Downloads'
can anyone help?
thanks.
..
hendoben said:
Hi, i have a fire tv and nexus player. I'd like to try and install some of the apps designed for the fire tv to see if they will work on the nexus, seeing as these apps should be designed to be used with a remote.
I've tried following this guide .. http://www.aftvnews.com/how-to-transfer-amazon-fire-tv-apps-to-a-fire-tv-stick/ .. but i must be doing something wrong as i get an error at the last step, maybe i am not entering the directory correctly as i get a 'no such file or directory exists' error.
this is the string i am entering. 'adb pull /data/app/uk.co.bbc.iplayer-2.apk F:/Downloads'
can anyone help?
thanks.
Click to expand...
Click to collapse
Enable ADB DEBUGGING on your Fire TV.
Find the IP address of your Fire TV.
Install adb on your windows machine.
Type
Code:
adb connect 192.168.1.115
(Just replace the IP I listed with your IP address)
then to confirm it connected type
Code:
adb devices
You should get an output like this:
Code:
192.168.1.115:5555 device
then do
Code:
adb shell
then run
Code:
pm list packages -3 -f
You will get an output that looks similar to mine:
Code:
package:/data/app/com.amz.games505.Terraria-1.apk=com.amz.games505.Terraria
package:/data/app/com.concretesoftware.pbachallenge_amazonfree-1.apk=com.concretesoftware.pbachallenge_amazonfree
package:/data/app/com.digitalx.amazonvirtualfireplace-1.apk=com.digitalx.amazonvirtualfireplace
package:/data/app/com.digitalx.amazonvirtualsnowfallhd-1.apk=com.digitalx.amazonvirtualsnowfallhd
package:/data/app/com.dotgears.flapfire-1.apk=com.dotgears.flapfire
package:/data/app/com.ea.life_full_azn-1.apk=com.ea.life_full_azn
package:/data/app/com.edgeway.firefliesambience-1.apk=com.edgeway.firefliesambience
package:/data/app/com.edgeway.moonlightocean-1.apk=com.edgeway.moonlightocean
package:/data/app/com.edgeway.perfectstorm-1.apk=com.edgeway.perfectstorm
package:/data/app/com.edgewaysoft.snowyambience-1.apk=com.edgewaysoft.snowyambience
package:/data/app/com.edgewaysoft.stormyambience-1.apk=com.edgewaysoft.stormyambience
package:/data/app/com.estrongs.android.pop-1.apk=com.estrongs.android.pop
package:/data/app/com.fallentreegames.amazon.quellmemento-1.apk=com.fallentreegames.amazon.quellmemento
package:/data/app/com.fallentreegames.amazon.quellreflect-2.apk=com.fallentreegames.amazon.quellreflect
package:/data/app/com.inxile.BardTale-1.apk=com.inxile.BardTale
package:/data/app/com.lego.starwars.thenewyodachronicles-1.apk=com.lego.starwars.thenewyodachronicles
package:/data/app/com.mg.meteoearth-1.apk=com.mg.meteoearth
package:/data/app/com.pbs.video-1.apk=com.pbs.video
package:/data/app/com.playrisedigital.ttaf-1.apk=com.playrisedigital.ttaf
package:/data/app/com.playrisedigital.ttra-1.apk=com.playrisedigital.ttra
package:/data/app/com.serenity.calmfireplace-1.apk=com.serenity.calmfireplace
package:/data/app/com.the10tons.trouserheart-1.apk=com.the10tons.trouserheart
package:/data/app/com.vectorunit.purple.amazon-1.apk=com.vectorunit.purple.amazon
package:/data/app/com.wukongtv.wkhelper-1.apk=com.wukongtv.wkhelper
package:/data/app/com.zenstudios.ZenPinball.amazon-1.apk=com.zenstudios.ZenPinball.amazon
package:/data/app/org.chromium.youtube_apk-1.apk=org.chromium.youtube_apk
Now copy and past that into notepad and go to Edit, then Replace... and under "Find what" put "package:", and under "replace with" put "adb pull " (make sure there is a space after the word 'pull')
Now click on Replace all, then you will have an output similar to this:
Code:
adb pull /data/app/com.amz.games505.Terraria-1.apk=com.amz.games505.Terraria
adb pull /data/app/com.concretesoftware.pbachallenge_amazonfree-1.apk=com.concretesoftware.pbachallenge_amazonfree
adb pull /data/app/com.digitalx.amazonvirtualfireplace-1.apk=com.digitalx.amazonvirtualfireplace
adb pull /data/app/com.digitalx.amazonvirtualsnowfallhd-1.apk=com.digitalx.amazonvirtualsnowfallhd
adb pull /data/app/com.dotgears.flapfire-1.apk=com.dotgears.flapfire
adb pull /data/app/com.ea.life_full_azn-1.apk=com.ea.life_full_azn
adb pull /data/app/com.edgeway.firefliesambience-1.apk=com.edgeway.firefliesambience
adb pull /data/app/com.edgeway.moonlightocean-1.apk=com.edgeway.moonlightocean
adb pull /data/app/com.edgeway.perfectstorm-1.apk=com.edgeway.perfectstorm
adb pull /data/app/com.edgewaysoft.snowyambience-1.apk=com.edgewaysoft.snowyambience
adb pull /data/app/com.edgewaysoft.stormyambience-1.apk=com.edgewaysoft.stormyambience
adb pull /data/app/com.estrongs.android.pop-1.apk=com.estrongs.android.pop
adb pull /data/app/com.fallentreegames.amazon.quellmemento-1.apk=com.fallentreegames.amazon.quellmemento
adb pull /data/app/com.fallentreegames.amazon.quellreflect-2.apk=com.fallentreegames.amazon.quellreflect
adb pull /data/app/com.inxile.BardTale-1.apk=com.inxile.BardTale
adb pull /data/app/com.lego.starwars.thenewyodachronicles-1.apk=com.lego.starwars.thenewyodachronicles
adb pull /data/app/com.mg.meteoearth-1.apk=com.mg.meteoearth
adb pull /data/app/com.pbs.video-1.apk=com.pbs.video
adb pull /data/app/com.playrisedigital.ttaf-1.apk=com.playrisedigital.ttaf
adb pull /data/app/com.playrisedigital.ttra-1.apk=com.playrisedigital.ttra
adb pull /data/app/com.serenity.calmfireplace-1.apk=com.serenity.calmfireplace
adb pull /data/app/com.the10tons.trouserheart-1.apk=com.the10tons.trouserheart
adb pull /data/app/com.vectorunit.purple.amazon-1.apk=com.vectorunit.purple.amazon
adb pull /data/app/com.wukongtv.wkhelper-1.apk=com.wukongtv.wkhelper
adb pull /data/app/com.zenstudios.ZenPinball.amazon-1.apk=com.zenstudios.ZenPinball.amazon
adb pull /data/app/org.chromium.youtube_apk-1.apk=org.chromium.youtube_apk
Now on each line just delete everything after apk, for exmaple:
Code:
adb pull /data/app/org.chromium.youtube_apk-1.apk=org.chromium.youtube_apk
becomes
Code:
adb pull /data/app/org.chromium.youtube_apk-1.apk
Now just save that file as a bat file and run it from whichever directory you want the files stored in on your PC and it will copy all your apks from your Fire TV (Stick) to your PC. It may take a few minutes.
Hi thanks for your thorough explanation. Just a bit stuck on the last part, how do i save as a .bat?
okay i know how to make a bat, but i'm still unclear what the bat needs to consist of? all the txt from each box above?
hendoben said:
Hi thanks for your thorough explanation. Just a bit stuck on the last part, how do i save as a .bat?
Click to expand...
Click to collapse
Just rename the text file from .txt to .bat
thanks again. i had just edited my post before i realised you replied. is there any chance you could post a sample .txt? just so i know exactly what to include before i make the .bat. as the one i created didn't work.
also got this error 'error more than one device and emulator' after i entered..
Code:
adb shell
hendoben said:
thanks again. i had just edited my post before i realised you replied. is there any chance you could post a sample .txt? just so i know exactly what to include before i make the .bat. as the one i created didn't work.
also got this error 'error more than one device and emulator' after i entered..
Code:
adb shell
Click to expand...
Click to collapse
There I attached a zip file of the text file that I actually found can just save directly as a bat file if you, when saving, select *.* all files and just type in the name and put ".bat" at the end of the name when saving. As far as the error you're getting, just disconnect whatever other devices you have connected that have adb debugging enabled..
Any chance I can get someone to download and pull HBO GO for the fire TV? I have an ADT-1 and comcast is not allowing activation of hbo go on android tv's but will allow it on Fire Tv's so I want to see if I can use the apk from the Fire Tv to get it working. Thanks!
Hello, can someone sideload the Amazon Video apk for me from a Fire TV and make available (public or PM). I would like this install on my nvidia shield TV.
Could someone please extract the following apps so the community can try to use them on Android TV?
All4, ITVHub, Demand 5, RTÉ Player, 3Player, and TG4 .
---------- Post added at 07:52 PM ---------- Previous post was at 07:17 PM ----------
dusf said:
Could someone please extract the following apps so the community can try to use them on Android TV?
All4, ITVHub, Demand 5, RTÉ Player, 3Player, and TG4 .
Click to expand...
Click to collapse
Mod, please delete my post as I am creating a separate thread.

Run a BAT File on Firestick?

Is it possible to run a Batch File on a Firestick? Trying to help people set their firesticks up and, I have written a Batch file using ADB that works well loading programs onto a firestick and installing them. That only works if someone is on my local network though. If I push all of the files to someone including the batch file, would you be able to run the batch file on a firestick?
trizzypballr said:
Is it possible to run a Batch File on a Firestick? Trying to help people set their firesticks up and, I have written a Batch file using ADB that works well loading programs onto a firestick and installing them. That only works if someone is on my local network though. If I push all of the files to someone including the batch file, would you be able to run the batch file on a firestick?
Click to expand...
Click to collapse
i have a firestick that i need setup and was going to do it over this weekend, if you can send me the stuff i can test
Batch files are for Windows only.
The easiest way to do this would be to put all your apks into a folder, along with the adb.exe, AdbWinApi.dll, and your batch file.
Have them enable ADB on their stick, and give them the folder. Here's an example of a batch file that would make it dead simple:
Code:
@echo off
set /p ip="Enter Fire TV IP: "
adb connect %ip%
adb install apks\example.apk
<other code here>
adb disconnect
This would be the example file tree:
Code:
| adb.exe
| AdbWinApi.dll
| example.bat
|
\---apks
example.apk
Then give this folder to the person
trizzypballr said:
Is it possible to run a Batch File on a Firestick? Trying to help people set their firesticks up and, I have written a Batch file using ADB that works well loading programs onto a firestick and installing them. That only works if someone is on my local network though. If I push all of the files to someone including the batch file, would you be able to run the batch file on a firestick?
Click to expand...
Click to collapse
You can run any shell script on a Fire TV: A First Script
rainman74 said:
You can run any shell script on a Fire TV: A First Script
Click to expand...
Click to collapse
Are we able to use ADB commands on a shell script on a firestick? Looking at a gethub .sh file for use on firesticks it looks like they are?
For simplicity sake here is a scaled down version of the goal. I want to put kodi.apk and terrarium.apk onto their firestick for them. I want to be able to connect via teamviewer and push a folder over that contains:
kodi.apk
terrarium.apk
a shell file
The goal is that either the shell file is triggered somehow or the person with the firestick in front of them runs it and it does the equivalent of what I can do from my computer with the batch file using:
adb install "kodi.apk"
adb install "terrarium.apk"
I tried googling shell script on a firestick and didnt have any luck besides finding the github of a firestick loader that i searched through.
trizzypballr said:
Are we able to use ADB commands on a shell script on a firestick? Looking at a gethub .sh file for use on firesticks it looks like they are?
For simplicity sake here is a scaled down version of the goal. I want to put kodi.apk and terrarium.apk onto their firestick for them. I want to be able to connect via teamviewer and push a folder over that contains:
kodi.apk
terrarium.apk
a shell file
The goal is that either the shell file is triggered somehow or the person with the firestick in front of them runs it and it does the equivalent of what I can do from my computer with the batch file using:
adb install "kodi.apk"
adb install "terrarium.apk"
I tried googling shell script on a firestick and didnt have any luck besides finding the github of a firestick loader that i searched through.
Click to expand...
Click to collapse
You don't need adb for that, I'll write you a script example later...
By the way, you could also execute adb commands if you reinstalled adb before (Amazon deliberately removed this). Do you have root rights on the sticks?
rainman74 said:
You don't need adb for that, I'll write you a script example later...
By the way, you could also execute adb commands if you reinstalled adb before (Amazon deliberately removed this). Do you have root rights on the sticks?
Click to expand...
Click to collapse
No the sticks are not rooted
trizzypballr said:
No the sticks are not rooted
Click to expand...
Click to collapse
ok, here is the example, that you can customize.
Code:
#!/bin/sh
pm install /sdcard/kodi.apk
pm install /sdcard/terrarium.apk
You have to save the sh file in Unix format (linefeed as line ends). The easiest way is to save it in Notepad++ as a Unix script file.
rainman74 said:
ok, here is the example, that you can customize.
Code:
#!/bin/sh
pm install /sdcard/kodi.apk
pm install /sdcard/terrarium.apk
You have to save the sh file in Unix format (linefeed as line ends). The easiest way is to save it in Notepad++ as a Unix script file.
Click to expand...
Click to collapse
I tried saving as .sh and also as .bash . The firestick gave the message that there is no program to run it. How can I make this runnable on a firestick
trizzypballr said:
I tried saving as .sh and also as .bash . The firestick gave the message that there is no program to run it. How can I make this runnable on a firestick
Click to expand...
Click to collapse
Code:
sh file.sh
or
Code:
chmod 755 file.sh
to make the text file executable, and then run
Code:
./file.sh
Google isn't your friend, is it?
rainman74 said:
Code:
sh file.sh
or
Code:
chmod 755 file.sh
to make the text file executable, and then run
Code:
./file.sh
Google isn't your friend, is it?
Click to expand...
Click to collapse
I did try to google but didnt google the correct thing apparently I tried Googling "how to run Unix File on Firestick" and a few variations of it with no luck. I appreciate all of your help though for sure!
Trying to figure out where to run this on the firestick, after googling it, it seems like I need to get to a command code somehow to run this? I was hoping it was executable. Can I make it executable on my computer and then when I push it to the firestick just click on it and it runs?
trizzypballr said:
I did try to google but didnt google the correct thing apparently I tried Googling "how to run Unix File on Firestick" and a few variations of it with no luck. I appreciate all of your help though for sure!
Trying to figure out where to run this on the firestick, after googling it, it seems like I need to get to a command code somehow to run this? I was hoping it was executable. Can I make it executable on my computer and then when I push it to the firestick just click on it and it runs?
Click to expand...
Click to collapse
You cannot shortcut a sh file to the Fire TV gui!
Use View attachment Terminal-Emulator-1.0.70.apk to manually execute a sh file.
If you want to start it by pressing a button I can recommend Terminal Shortcut, only this version View attachment Terminal-Shortcut-Pro-4.11_MOD.apk still works with the Fire Remote. Here you can include scripts accordingly. I have modified the version so that it cannot be updated by a newer one

Categories

Resources