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
Related
I've spent hours trying to workout how to use adb
I'm using Amon_RA's recovery image and want to run a BART backup but it forces you to use adb, which i can't workout
help please!!!
Did you download the Android SDK for OS X?
Please give us some more information, such as the steps you've taken and any errors or other information you get from the Terminal.
yes i have downloaded the sdk from the website
but everytime i even check what devices are connected etc it fails
i open terminal, drag the tools folder into it, it then ses its created a directory
when i try to put in the commands "adb devices" or "bart" however, it ses there is no such command
do i need to put my phone into recovery, or mass storage or something
im stumped
You need to add the tools directory to PATH variable on your computer
Here's how you do it (the alternative way is easier):
Run this in Terminal
Code:
cd
nano .bash_profile
a text editor will open. add this:
Code:
export PATH=${PATH}:/path-to-android-sdk/tools
where you replace "path-to-android-sdk" with the real path.
Alternatively you could run this command in the terminal:
Code:
echo -e "\nexport PATH=${PATH}:/path-to-android-sdk/tools" >> .bash_profile
What you have done is to tell the shell to also look inside the tools directory when entering a command
Oh, in addition to Repp's suggestions, I know in Linux (and I dunno about everyone else) I need to be root to run adb properly. So maybe become root on the Mac. To do so, you need to be an Admin user, not a regular user, and at the Terminal, type
Code:
sudo -s
and then enter your user password when prompted.
okay ive done that, i dont know if it came back with the right response tho
i tried the first method and got into the text editor, i then typed what you said and it returned no response, i dont know if this is correct?
if so what do i do next?
Rather than altering your path, you can also navigate to the sdk/tools directory and run adb like so:
Code:
./adb devices
But you have to be inside the directory where the "adb" command lies.
Also, see my note above regarding root users.
Aah sorry. Just save and exit (press Ctrl+X and answer yes to whether or not you want to save). You could also try the alternative way.
craig0r said:
Oh, in addition to Repp's suggestions, I know in Linux (and I dunno about everyone else) I need to be root to run adb properly. So maybe become root on the Mac. To do so, you need to be an Admin user, not a regular user, and at the Terminal, type
Code:
sudo -s
and then enter your user password when prompted.
Click to expand...
Click to collapse
I have always used it as normal user and it has worked. Don't know why you would need to be root
how dyou get into the directory?
i usually just drag the tools folder into terminal.
is this correct?
DaNiEl FrEnCh said:
how dyou get into the directory?
i usually just drag the tools folder into terminal.
is this correct?
Click to expand...
Click to collapse
At the Terminal type
Code:
cd /Users/YourUserName/path/to/android_sdk/tools/
./adb devices
Repp said:
I have always used it as normal user and it has worked. Don't know why you would need to be root
Click to expand...
Click to collapse
Yeah, it's weird, but it works for me.
You change directory in the terminal with the command cd. So if I wanted to go to the Desktop directory I would write:
Code:
cd ~/Desktop
(~ is like a shortcut for your home directory which is the same as the directory /Users/your-username)
Did any of the methods work (they should )?
to repp, ive done that, all i need to know now is how to use the bart backup function from Amon_RA's recovery image, in adb
craig0r said:
Yeah, it's weird, but it works for me.
Click to expand...
Click to collapse
And it doesn't if you're not root?
DaNiEl FrEnCh said:
to repp, ive done that, all i need to know now is how to use the bart backup function from Amon_RA's recovery image, in adb
Click to expand...
Click to collapse
And it worked?
Unfortunately I have never done that so I can't help you there
how can i check if it worked?
Just run adb from any directory which is not the tools directory.
For example:
Code:
cd
adb devices
where the first line (cd) changes directory to your home directory (the command cd without a path does that) and the other one should list connected devices. As long as it doesn't say
Code:
-bash: adb: command not found
or anything like that, you should be fine
EDIT: If you want to use adb, you don't have to do the "cd" part first. This time only
its working now i can seee what devices i have
Code:
Dans-MacBook:tools Dan$ ./adb devices
* daemon not running. starting it now *
* daemon started successfully *
List of devices attached
HT98DL900002 device
but the main reason i want to use it, is to use it with Amon_RA's recovery
i neeed to do a BART backup so i can switch from the 2.1 rom from lox too 3.0 from modaco
I have never used BART, but unless I'm mistaken, it does almost the same thing as a nandroid backup (?). You could try that instead. Don't know about Amon_RA, but it's possible from MoDaCo's fastboot (linked to and explained how to install here)
other than that, there's nothing I can do
Repp said:
And it doesn't if you're not root?
Click to expand...
Click to collapse
That's right. Probably something to do with permissions in /dev/. It doesn't bother me enough to go hunting the problem down.
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
I am having issues. The first time I tried this I thought it was a success as I went through the steps and got the loading screen on the fire tv to come up. I waited for about 10 minutes and then the firetv reset but Kodi did not install.
Now I am trying to do it and when I hit enter after the string to sideload the .apk nothing happens. I get no response in the terminal and it just goes to the next line. I cannot figure this out for the life of me.
I am using terminal on a mac. This method http://sideloadfiretv.com/sideload-apps-amazon-fire-tv-mac/
please help.
Try the additional "-r" option during install ('-r' means reinstall the app, keeping its data).
For e.g.:
Code:
adb install -r kodi.apk
Calibaan said:
Try the additional "-r" option during install ('-r' means reinstall the app, keeping its data).
For e.g.:
Code:
adb install -r kodi.apk
Click to expand...
Click to collapse
Thanks - I am brand new to mac so this is new to me. So basically my string would be
./adb install /Users/YourUserName/Desktop/-r filename.apk
?
seagood3 said:
Thanks - I am brand new to mac so this is new to me. So basically my string would be
./adb install /Users/YourUserName/Desktop/-r filename.apk
?
Click to expand...
Click to collapse
No. The option "-r" must be used before the complete path to the APK file. Have a look:
Code:
./adb install -r /Users/YourUserName/Desktop/filename.apk
Calibaan said:
No. The option "-r" must be used before the complete path to the APK file. Have a look:
Code:
./adb install -r /Users/YourUserName/Desktop/filename.apk
Click to expand...
Click to collapse
I just tried this and got the same issue where when I hit return, it just drops down to the next line. I don't understand this.
seagood3 said:
I just tried this and got the same issue where when I hit return, it just drops down to the next line. I don't understand this.
Click to expand...
Click to collapse
Couldn't you use adbfire on your mac..... it's available from this link http://forum.xda-developers.com/showthread.php?t=2786505 it might make things a little easier...
slackbladder said:
Couldn't you use adbfire on your mac..... it's available from this link http://forum.xda-developers.com/showthread.php?t=2786505 it might make things a little easier...
Click to expand...
Click to collapse
I haven't used that because I am running into all kinds of issues. First I got the "Can't create log file" error. I googled that and see that I need to drag the app onto the desktop or into the applications folder. The problem is when I try to move it I get another error message "The operation can’t be completed because you don’t have permission to access some of the items". I feel like such a newb with this Mac. I have no clue how to troubleshoot.
any help?
Any chance you have a Windows PC connected to your network that you can try? I did this (http://sideloadfiretv.com/sideload-apps-amazon-fire-tv-windows/) and had no issues.
If you can get ES File Explorer onto the FireTV, then you can go to Network/Cloud and add an account, connected it to a Dropbox account, then just download apks and open them from ES File Explorer, you won't need the PC or adb any more.
seagood3 said:
I just tried this and got the same issue where when I hit return, it just drops down to the next line. I don't understand this.
Click to expand...
Click to collapse
Can you even connect to the aTV?
Try some ADB commands to see if ADB does really work:
Code:
adb devices
This should list all via ADB connected devices. If the list is empty you´re not connected.
When your device is connected try some basic shell commands:
Code:
adb shell
This opens a bash shell. Within this shell type
Code:
ls
and the directory content of the actual folder should be listed.
ADB shell can be left with:
Code:
exit
If this isn´t working, check your ADB version you have installed and try to install a newer/other one. I had such an issue once on Windows with an Android tablet which couldn´t be connected with the ADB version I had already installed on my PC so I took another ADB version and it worked. Of course this shouldn´t be but it seems that this can happen.
Another hint might be your problems regarding adbfire. Perhaps your user restrictions prevent ADB from proper working. I´m not firm on MAC´s but I think they support the "sudo" command (explanation: http://en.wikipedia.org/wiki/Sudo). So try your ADB commands again with an additional sudo before similiar like this:
Code:
sudo adb install kodi.apk
I can't figure this out - I am following this (http://sideloadfiretv.com/sideload-apps-amazon-fire-tv-mac/) perfectly and I got it to work the first time but it just didn't complete it for some reason and now every time when I hit enter on the last step nothing happens.
I can't use the adbfire app because of the other issue.
WTF? why isn't the method through terminal working?
seagood3 said:
I can't figure this out - I am following this (http://sideloadfiretv.com/sideload-apps-amazon-fire-tv-mac/) perfectly and I got it to work the first time but it just didn't complete it for some reason and now every time when I hit enter on the last step nothing happens.
I can't use the adbfire app because of the other issue.
WTF? why isn't the method through terminal working?
Click to expand...
Click to collapse
I don't know...on mac you need to use ./ unless you configure it otherwise so to connect I'd type ./adb connect myipaddress
If you are connecting then you have adb working. I use adbfire but here's what I'd do...
I like keeping my adb folder with platform tools on my desktop. Put the apk you want to install in that folder
type "cd" <space> then drag the whole folder into the terminal--hit enter
now type ./adb connect youripaddress--hit enter
if it says connected type ./adb install<space>then drag the apk from inside your adb folder right into the terminal--hit enter
If you did it right nothing will happen instantly. It depends on how fast your connection is. Wait up to 5 minutes I'd say and you'll either get a success message of an error. If it's the latter, post it here.
Did you read my previous topic and tried what I´ve written?
Forget this Howto since it is just a general guideline and it can´t help you with your actual problem since it is more or less a first time installation guideline but you have already had a previous installation which makes the difference. It can also not deal with restrictions on your system side for e.g. if ADB wouldnt´be allowed to access USB.
If you´re sure that your system is not restricted anyway and ADB should work and if you still prefer to work only with this guideline do a factory reset within your FireTV. This should set the box in a state back again where this guideline should work how it is intended.
Or try SPMC from Amazon App Store which would be the easiest way:
http://www.amazon.com/Semperpax-SPMC/dp/B00MK49LL8
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.
HERE'S THE ANSWER!
Let's say the script is on the /sdcard and named 'script.sh'. The script would be run like so....
Code:
adb connect
adb shell su
cd /sdcard/
sh ./script.sh
@rbox
I've been searching for a guide to run .sh scripts on my Fire Stick Gen1. I've found a couple guides on how to auto run scripts on boot...but I want to simply run a script on demand. Particularly, I'm trying to run a few of the debloat scripts offered inside "esc0rtd3w" FirePwn Amazon FireTV Stick Loader located at... https://github.com/esc0rtd3w/firestick-loader
To run a script on demand. Do I need to have the script in a specific location on the Fire device? Do I need to set permissions for the script? Does it matter what file extension the script has? Does it need .sh at the end of the filename? I noticed the autoboot script guides DO NOT have .sh at the end of the filenames for the scripts its auto running at boot.
I also have another question...
I want to try out esc0rtd3w's FirePwn Amazon FireTV Stick Loader. I downloaded his entire github repo and open the 'autorun.cmd' but it doesn't recognize my device. Does anyone know how to successfully connect to the FireTV Stick Gen1 with his script? I've tried adb connecting to my device and then running his script but it still doesn't recognize my device. Has anyone successfully utilized this tool? If so, how did you get it to recognize your device? Because I haven't been able to utilize his windows script to automate the plethora of tasks it offers, it led me to seek how to run .sh scripts manually.
I still CANNOT for the life of me, figure out how to run a script on the Fire TV through ADB. I'm using terminal on Linux, directly connected to a FireTV Stick Gen 2 with full root. I can manually execute the commands in the script but I cannot execute the script(s)! So here's one of the scripts I'm trying to run... Script Could someone explain to me, how would I execute this script via ADB?
Edit: I solved my issue! The text needs to be in unix format!! I used dos2linux to fix all the scripts and they go without a hitch. So I put all the scripts into a folder. I right clicked on that folder and clicked open terminal. I then executed this code to batch convert all files in the folder to unix format.
Code:
find . -type f -print0 | xargs -0 dos2unix