Can files be pushed across the network from a PC to Fire TV using ADB? - Fire TV Q&A, Help & Troubleshooting

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

Related

[GUIDE] ADB, logcat, shell, etc

ADB:-
Android Debug Bridge
Very useful program made itself by Google for Programmers and developers. Its based on command line and basically communicates with your Android to respond to certain commands. There is vast amount of knowledge about adb but its most useful commands limit to getting:-
Logcat:-
A real time log of what is happening in background of our devices. It is really useful for developers to see which component has malfunctioned and helps to narrow down their search for what failed and what needs to be fixed. Several times users are asked to give logcats of their devices which are giving errors. We will go in detail that how to get logcats in every and easiest way possible.
App Installation and Management:-
adb proves really handy if you want to install apks directly from your PC or want to batch install or delete them.
Shell Execution:-
You must have heard of Terminal Emulator. It is an app for android to execute shell commands(linux commands) which are basically present as applets in /system/bin, /system/sbin or /system/xbin(in our case) folders. A very imporant applet called busybox is installed there mainly used for execution of basic commands during root browsing or ROM installation. Many times updater script of ROMs use busybox commands to install it. Well, these commands can be initiated from your device too but they can be initiated from adb also making it easy for programmers.
Pushing and Pulling:-
Most used commands of adb. adb makes it a piece of cake for new device developers to get an ideo of structure and basic knowledge of devices by pulling command. We can pull out i.e copy any files or folders from our devices to our PC, even the root directories without rooting the devices. It help rooters and ROM chefs of new devices to get an idea and implement their mods on them. Pushing is also very useful command. It copies your files and folders from PC to your device. Very useful in pushing some /system apps and other things
Remounting and setting permissions
Basic commands:-
Of-course basic commands such as reooting and rebooting in recovery ode and download mode are supported.
Others:-
There are several other features of adb such as fastboot, aapt, etc
Setting up ADB
Pre Requirements:-
A little amount of brain
PC(This is a windows guide, if asked I will add linux and mac guide later)
Java Runtime environment or Java Developing kit
Your Device Drivers
An Android Device
Assuming you all these ready and working properly, we continue
If you are having trouble completing Pre-Requisites, there are several guides featuring them too
Start
1. First Download Android SDK. Roughly about 70 MB
2. There may be any compressed zip file or exe file
If zip file, then extract it to C:\android-sdk
If exe file then double click on it and install it in C:\ Drive(or any other drive you want)
3. Now to get adb and other tools, you need to download 'Platform Tools'
To download them, go to the android-sdk folder and double click on SDK Manager
It will ask you which package to download? However, it is your choice which package to Download, but here, we will only talk about platform
Tools. So, simply tick on Platform Tools and click on install. Once you have done it. Go to the platform-tools folder in the directory where you installed android-sdk. You will find several files there like adb, fastboot, aapt, etc
4. Now, you can backup the whole folder of android-sdk to any external storage that will make you not download package
again if you want to. You can have it placed in any computer and run it as it does not require registry to work
5. Now, you are just one step away from using adb. Next step is SKIPPING SETTING ENVIRONMENT VARIABLE
Many guides on internet say that it is to be done for making it easy for users and if you have some basic knowledge of Command Prompt,
you will know that to execute any application with command prompt, you first need to change the directory to the one where application is
placed. And to skip changing the directories every time you open CMD, you need to put that application is environment variable. Howeve, we will not do so.
6. Type cmd in the search bar. Copy cmd.exe from there. Go to the directory where you have installed android-sdk. Go to platform-tools folder. Paste cmd there, right click on it and in the settings, select Run as Administrator.
7. You are done. Now what to do in it?
ADB Commands
Type adb in command prompt. And several commands will show up on your screen. It is very difficult to analyse these all commands, so we will only talk about most used and important commands
Connect your device via USB cable
And open the CMD in platform-tools folder(Make a shortcut of it on desktop). And type the suitable commands
Code:
adb devices
Will show the list of devices attached to the PC andtheir serial numbers. If this shows up correctly on your PC, then it means that everything is fine for continuing.
Logcat
Code:
adb logcat
It will display the real time log of your device
Best time to do it is when your device boots up
Now, many users ask me how to copy the logcat and upload it from CMD
There are several methods:-
1. Right click on the Title Bar of Command Prompt. Hover the cursor over edit and select mark. Select all the things you want to copy and then click enter. All the things will be copied to clipboard.
2. This is the correct way of getting logcat saved.
Code:
adb logcat > logcat.txt
This command will create a logcat.txt document in platform-tools folder with the complete logcat of the device. Ofcourse you can type any name instead of logcat.txt
3. I prefer taking logcat this way as it neatly compiles logs of different time
Code:
adb logcat -v long > logcat.txt
This is a very nice way to get logcat.
Installing Apps
Code:
adb install %PATH OF APK%
This will install an app on your Android
For example, if my app AreeB.apk is in G:\ drive (G:\AreeB.apk)
Then I will type
Code:
adb install G:\AreeB.apk
Be sure your apk is not in a folder that has space in its name, else the command will break at space bar.
For eg:-
G:\Program Files\AreeB.apk
Mounting
However, I never found any problem in tweaking with system files with adb, but some users said that they couldn't do it, so the problem was that their system partition was mounted as Read Only(R/O)
So, it is necessary now to tell how to mount system partition as Read Write(R/W)
Code:
adb remount
It is easiest way to do so, if it does not work then
There is another method that we will discuss in ADB Shell commands section
Pushing and Pulling
For pushing,
Type
Code:
adb push %PATH TO BE PUSHED% %PATH WHERE TO BE PUSHED%
Suppose I have an app named SystemUI.apk(PATH = G:\SystemUI.apk) which I want to push in /system/app/ on my android(or in other words, install an app as a system app). Then I would type
Code:
adb push G:\SystemUI.apk /system/app/
More examples
G:\Dance.txt file to be pushed in Dance folder in sdcard
Code:
adb push G:\Dance.txt /sdcard/Dance/
OR
Code:
adb push G:\Dance.txt /mnt/sdcard/Dance/
G:\Movies folder to be transferred in SDCARD in Videos Folder
Code:
adb push G:\Movies /sdcard/Videos/
G:\system\framework\framework-res.apk to be pushed in /system/framework/
Code:
adb push G:\system\framework\framework-res.apk /system/framework/
For pulling,
push command replaces with pull and paths are swapped
Code:
adb pull %PATH TO BE PULLED FROM% %PATH TO PLACE PULLED FILE%
Example,
All system apps are to be pulled to G:\ROM\system\app
Code:
adb pull /system/app G:\ROM\system\app\
build.prop to be extracted to desktop
Code:
adb pull /system/build.prop C:\Users\Areeb\Desktop\
However, if a folder is in platform-tools folder, you don't need to type full path
Suppose if I type
Code:
adb pull /system/ system
Then a folder named system will be created inside platform-tools with all the files in system in it
If a file is in platform-tools folder, then also no need to type full path
For example,
There is an app name DeskClock.apk in this folder then, to push it to /system/app, type
Code:
adb push DeskClock.apk /system/app/
ADB Shell Commands
This mode of adb allows you to execute linux shell commands from your PC
These commands can aldo be executed through the mobile using Terminal Emulator
To initiate shell mode
Type
Code:
adb shell
You will get an prompt like this
sh-3.2#
Now you are in shell mode
adb commands won't work here and a new set of commands will work here. But we will only go in a little detail here.
Assuming you are in adb shell mode, I will only type commands that will work on shell. Note:- These commands won't work if you type them alone on cmd. But, these command will directly work on your mobile's Terminal Emulator
As these commands can also work on mobile, I am going to tell you a way of taking logcat on mobile
Type
Code:
logcat
You will see log of your device
To save this
Type
Code:
logcat > /sdcard/log.txt
A file named log.txt will be generated in sdcard
Uninstalling Applications
Code:
cd /data/app
This will change the directory to /data/app
Code:
ls
This will show the list of files in there
Suppose, there is an app named com.opera.browser (Opera Mobile) you want to uninstall it
Type
Code:
rm -r com.opera.browser
This will uninstall the app
Mounting Command:-
Code:
mount -o rw,remount /dev/block/mtdblock3 /system
Miscellanous commands:-
su: Initiates root request
du: Shows file foldrs and size
date: Shows todays date
Forgot next ones, will write later
Credits
Google: For Android and several searchings
Samsung: For Galaxy Ace s5830I
Broadcom: For their Open Sourceness
XDA Forums : For the precious knowledge
My Uncle: For gifting me this Phone
My Teachers: For teaching me English(I would not be here without them)
You: For future Thanks
Till now, thats it, will add some more things later
If any problem, I will add it too
Suggestion? They are welcome
Doesn't it belong to General section???
great work, now i know how to make a logcat. hehehehe. tnx a lot.
Ganesh A said:
Doesn't it belong to General section???
Click to expand...
Click to collapse
Well if you say so
I will request a mod to move it
But I have seen several threads (even stickies) that are guides just about logcat
And my guide features it all
Well I will not argue and request a mod if you insist
Keep it in this section

(Guide) How to logcat, ADB, shell, etc

ADB:-
Android Debug Bridge
Very useful program made itself by Google for Programmers and developers. Its based on command line and basically communicates with your Android to respond to certain commands. There is vast amount of knowledge about adb but its most useful commands limit to getting:-
Logcat:-
A real time log of what is happening in background of our devices. It is really useful for developers to see which component has malfunctioned and helps to narrow down their search for what failed and what needs to be fixed. Several times users are asked to give logcats of their devices which are giving errors. We will go in detail that how to get logcats in every and easiest way possible.
App Installation and Management:-
adb proves really handy if you want to install apks directly from your PC or want to batch install or delete them.
Shell Execution:-
You must have heard of Terminal Emulator. It is an app for android to execute shell commands(linux commands) which are basically present as applets in /system/bin, /system/sbin or /system/xbin(in our case) folders. A very imporant applet called busybox is installed there mainly used for execution of basic commands during root browsing or ROM installation. Many times updater script of ROMs use busybox commands to install it. Well, these commands can be initiated from your device too but they can be initiated from adb also making it easy for programmers.
Pushing and Pulling:-
Most used commands of adb. adb makes it a piece of cake for new device developers to get an ideo of structure and basic knowledge of devices by pulling command. We can pull out i.e copy any files or folders from our devices to our PC, even the root directories without rooting the devices. It help rooters and ROM chefs of new devices to get an idea and implement their mods on them. Pushing is also very useful command. It copies your files and folders from PC to your device. Very useful in pushing some /system apps and other things
Remounting and setting permissions
Basic commands:-
Of-course basic commands such as reooting and rebooting in recovery ode and download mode are supported.
Others:-
There are several other features of adb such as fastboot, aapt, etc
Setting up ADB
Pre Requirements:-
A little amount of brain
PC(This is a windows guide, if asked I will add linux and mac guide later)
Java Runtime environment or Java Developing kit
Your Device Drivers
An Android Device
Assuming you all these ready and working properly, we continue
If you are having trouble completing Pre-Requisites, there are several guides featuring them too
Start
1. First Download Android SDK. Roughly about 70 MB
2. There may be any compressed zip file or exe file
If zip file, then extract it to C:\android-sdk
If exe file then double click on it and install it in C:\ Drive(or any other drive you want)
3. Now to get adb and other tools, you need to download 'Platform Tools'
To download them, go to the android-sdk folder and double click on SDK Manager
It will ask you which package to download? However, it is your choice which package to Download, but here, we will only talk about platform
Tools. So, simply tick on Platform Tools and click on install. Once you have done it. Go to the platform-tools folder in the directory where you installed android-sdk. You will find several files there like adb, fastboot, aapt, etc
4. Now, you can backup the whole folder of android-sdk to any external storage that will make you not download package
again if you want to. You can have it placed in any computer and run it as it does not require registry to work
5. Now, you are just one step away from using adb. Next step is SKIPPING SETTING ENVIRONMENT VARIABLE
Many guides on internet say that it is to be done for making it easy for users and if you have some basic knowledge of Command Prompt,
you will know that to execute any application with command prompt, you first need to change the directory to the one where application is
placed. And to skip changing the directories every time you open CMD, you need to put that application is environment variable. Howeve, we will not do so.
6. Type cmd in the search bar. Copy cmd.exe from there. Go to the directory where you have installed android-sdk. Go to platform-tools folder. Paste cmd there, right click on it and in the settings, select Run as Administrator.
7. You are done. Now what to do in it?
ADB Commands
Type adb in command prompt. And several commands will show up on your screen. It is very difficult to analyse these all commands, so we will only talk about most used and important commands
Connect your device via USB cable
And open the CMD in platform-tools folder(Make a shortcut of it on desktop). And type the suitable commands
Code:
adb devices
Will show the list of devices attached to the PC andtheir serial numbers. If this shows up correctly on your PC, then it means that everything is fine for continuing.
Logcat
Code:
adb logcat
It will display the real time log of your device
Best time to do it is when your device boots up
Now, many users ask me how to copy the logcat and upload it from CMD
There are several methods:-
1. Right click on the Title Bar of Command Prompt. Hover the cursor over edit and select mark. Select all the things you want to copy and then click enter. All the things will be copied to clipboard.
2. This is the correct way of getting logcat saved.
Code:
adb logcat > logcat.txt
This command will create a logcat.txt document in platform-tools folder with the complete logcat of the device. Ofcourse you can type any name instead of logcat.txt
3. I prefer taking logcat this way as it neatly compiles logs of different time
Code:
adb logcat -v long > logcat.txt
This is a very nice way to get logcat.
Installing Apps
Code:
adb install %PATH OF APK%
This will install an app on your Android
For example, if my app AreeB.apk is in G:\ drive (G:\AreeB.apk)
Then I will type
Code:
adb install G:\AreeB.apk
Be sure your apk is not in a folder that has space in its name, else the command will break at space bar.
For eg:-
G:\Program Files\AreeB.apk
Mounting
However, I never found any problem in tweaking with system files with adb, but some users said that they couldn't do it, so the problem was that their system partition was mounted as Read Only(R/O)
So, it is necessary now to tell how to mount system partition as Read Write(R/W)
Code:
adb remount
It is easiest way to do so, if it does not work then
There is another method that we will discuss in ADB Shell commands section
Pushing and Pulling
For pushing,
Type
Code:
adb push %PATH TO BE PUSHED% %PATH WHERE TO BE PUSHED%
Suppose I have an app named SystemUI.apk(PATH = G:\SystemUI.apk) which I want to push in /system/app/ on my android(or in other words, install an app as a system app). Then I would type
Code:
adb push G:\SystemUI.apk /system/app/
More examples
G:\Dance.txt file to be pushed in Dance folder in sdcard
Code:
adb push G:\Dance.txt /sdcard/Dance/
OR
Code:
adb push G:\Dance.txt /mnt/sdcard/Dance/
G:\Movies folder to be transferred in SDCARD in Videos Folder
Code:
adb push G:\Movies /sdcard/Videos/
G:\system\framework\framework-res.apk to be pushed in /system/framework/
Code:
adb push G:\system\framework\framework-res.apk /system/framework/
For pulling,
push command replaces with pull and paths are swapped
Code:
adb pull %PATH TO BE PULLED FROM% %PATH TO PLACE PULLED FILE%
Example,
All system apps are to be pulled to G:\ROM\system\app
Code:
adb pull /system/app G:\ROM\system\app\
build.prop to be extracted to desktop
Code:
adb pull /system/build.prop C:\Users\Areeb\Desktop\
However, if a folder is in platform-tools folder, you don't need to type full path
Suppose if I type
Code:
adb pull /system/ system
Then a folder named system will be created inside platform-tools with all the files in system in it
If a file is in platform-tools folder, then also no need to type full path
For example,
There is an app name DeskClock.apk in this folder then, to push it to /system/app, type
Code:
adb push DeskClock.apk /system/app/
ADB Shell Commands
This mode of adb allows you to execute linux shell commands from your PC
These commands can aldo be executed through the mobile using Terminal Emulator
To initiate shell mode
Type
Code:
adb shell
You will get an prompt like this
sh-3.2#
Now you are in shell mode
adb commands won't work here and a new set of commands will work here. But we will only go in a little detail here.
Assuming you are in adb shell mode, I will only type commands that will work on shell. Note:- These commands won't work if you type them alone on cmd. But, these command will directly work on your mobile's Terminal Emulator
As these commands can also work on mobile, I am going to tell you a way of taking logcat on mobile
Type
Code:
logcat
You will see log of your device
To save this
Type
Code:
logcat > /sdcard/log.txt
A file named log.txt will be generated in sdcard
Uninstalling Applications
Code:
cd /data/app
This will change the directory to /data/app
Code:
ls
This will show the list of files in there
Suppose, there is an app named com.opera.browser (Opera Mobile) you want to uninstall it
Type
Code:
rm -r com.opera.browser
This will uninstall the app
Mounting Command:-
Code:
mount -o rw,remount system /system/
Miscellanous commands:-
su: Initiates root request
du: Shows files, folders and size
date: Shows todays date
surfaceflinger: Shows your bootanimation (Tested on GB)
grep: Used to search through text files
chmod: Sets permission to files
sh: Initiates shell mode
echo: Displays the text you wrote with the command. Analogous to PRINT command on QBasic
Forgot next ones, will write later
Credits
Google: For Android and several searchings
Samsung: For Galaxy Ace s5830I
Broadcom: For their Open Sourceness
XDA Forums : For the precious knowledge
My Uncle: For gifting me this Phone
My Teachers: For teaching me English(I would not be here without them)
You: For future Thanks
Till now, thats it, will add some more things later
If any problem, I will add it too
Suggestion? They are welcome
Nice thread , every thing is very clearly stated.
Thx, Nice guide.
I suggest to change the 'remount' command in:
mount -o remount,rw /system
As the effect is the same and it works universally (at least, should)
Sent from my GT-5660 using xda app-developers app
ItachiSama said:
I suggest to change the 'remount' command in:
mount -o remount,rw /system
As the effect is the same and it works universally (at least, should)
Sent from my GT-5660 using xda app-developers app
Click to expand...
Click to collapse
I use the command you mentioned every time. Thanks for reminding. I can't remember why I wrote that command there!

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.

How to unbrick kindle fire hdx 7?

Today I was thinking: "It would be great to install cm12.1 on mine KFHDX7"
So i downgraded my tablet, rooted it with tovelroot and than I found, what i need a twrp. So i tried this:
1. Root your Kindle Fire using SuperOneClick and make sure adb is enabled.
2. Download the latest version of FireFireFire, a custom recovery tool for the Kindle Fire.
3. Unzip the utility and copy the u-boot.bin file to the directory where you have adb installed. For instance, c:\androidsdk\
4. Download the twrp-blaze.2.0.0RC0.img, which is the version of TWRP 2.0 for the Kindle Fire.
5. Copy that file to the same directory (such as :\androidsdk\)
6. Open a command prompt by opening the Start Menu and typing “cmd” and pressing enter.
7. Navigate to c:\androidsdk\ or whatever directory you’ve placed your files in by entering “cd c:\androidsdk\” or the appropriate directory.
8a. Make sure your tablet is connected to your computer with a USB cable.
8b. Optional: type “adb devices” to make sure your Kindle Fire is connected and adb is functioning properly. If this works, you should see a listing for your device.
9. Copy the two files to your Kindle SD card by entering the following commands and pressing enter after each:
adb push u-boot.bin /sdcard/
adb push twrp-blaze-2.0.0RC0.img /sdcard/
10. Open an ADB shell and then install the bootloader and recovery by entering the following commands one at a time. Note that if you get a message saying “permission denied,” it means that your tablet hasn’t been rooted properly. Try running SuperOneClick again.
adb shell
su
dd if=/sdcard/twrp-blaze-2.0.0RC0.img of=/dev/block/mmcblk0p5
dd if=/sdcard/u-boot.bin of=/dev/block/mmcblk0p2
11. Reboot your device with the following commands.
exit
adb reboot
I wasn't mentioned, what this tutorial is for Fire HD and I bricked my device.
What should I do?
Capitan_Veshdoki said:
Today I was thinking: "It would be great to install cm12.1 on mine KFHDX7"
So i downgraded my tablet, rooted it with tovelroot and than I found, what i need a twrp. So i tried this:
1. Root your Kindle Fire using SuperOneClick and make sure adb is enabled.
2. Download the latest version of FireFireFire, a custom recovery tool for the Kindle Fire.
3. Unzip the utility and copy the u-boot.bin file to the directory where you have adb installed. For instance, c:\androidsdk\
4. Download the twrp-blaze.2.0.0RC0.img, which is the version of TWRP 2.0 for the Kindle Fire.
5. Copy that file to the same directory (such as :\androidsdk\)
6. Open a command prompt by opening the Start Menu and typing â??cmdâ? and pressing enter.
7. Navigate to c:\androidsdk\ or whatever directory youâ??ve placed your files in by entering â??cd c:\androidsdk\â? or the appropriate directory.
8a. Make sure your tablet is connected to your computer with a USB cable.
8b. Optional: type â??adb devicesâ? to make sure your Kindle Fire is connected and adb is functioning properly. If this works, you should see a listing for your device.
9. Copy the two files to your Kindle SD card by entering the following commands and pressing enter after each:
adb push u-boot.bin /sdcard/
adb push twrp-blaze-2.0.0RC0.img /sdcard/
10. Open an ADB shell and then install the bootloader and recovery by entering the following commands one at a time. Note that if you get a message saying â??permission denied,â? it means that your tablet hasnâ??t been rooted properly. Try running SuperOneClick again.
adb shell
su
dd if=/sdcard/twrp-blaze-2.0.0RC0.img of=/dev/block/mmcblk0p5
dd if=/sdcard/u-boot.bin of=/dev/block/mmcblk0p2
11. Reboot your device with the following commands.
exit
adb reboot
I wasn't mentioned, what this tutorial is for Fire HD and I bricked my device.
What should I do?
Click to expand...
Click to collapse
http://forum.xda-developers.com/kindle-fire-hdx
Sent from my KFFOWI using XDA Labs

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