yashsingh1/xdaforums huggingface dataset:
[Fire TV Themes and Apps] jocala:
I'm a retired coder, and I find this fun. I'm glad adbLink is helpful, and thank you for using it.
[Fire TV Themes and Apps] Y314K:
Thanks again. Just played with the Sleep Timer using the built in ADB Shell. No probs at all.

May I PM you once with a non ADBLink related ? if I may ?
[Fire TV Themes and Apps] jocala:
Sure
[Fire TV Themes and Apps] jocala:
adbLink 3.3 05/15/17

adbLink 3.3 05/15/17

Remote keypad bug fixed

Check for preference database table

bug fixed.

Keyboard shortcuts added for main

screen buttons. Hover over button

to see tooltip and key assignment

or see help topic "Shortcuts".

Shortcut topic added to help.

Lists tooltip and keyboard

shortcuts for main screen buttons.

http://www.jocala.com
[Fire TV Themes and Apps] rainman74:
The Pull Folder is always User-Directory, the customized path for pull folder it is not respected anymore. Last working version for customized pull folder is 3.0.
[Fire TV Themes and Apps] jocala:
Thank you for the report. I confirm your issue.

Pulls go to the default directory set in preferences, which by default is $home. You can change this setting in preferences to whatever directory you wish. The pull directory in the device record should override the global default in preferences. Not working, will be fixed for 3.4.
[Fire TV Themes and Apps] jocala:
adbLink 3.4 released

adbLink 3.4 06/27/17

Cconnect/disconnect buttons are disabled when

the device OS isn't Android.

The pull directory in the device record now overrides

the global default pull directory in in preferences.

A check box, "Disable root", has been added to the

device dialog. If you have a rooted device that

fails to display the file manager correctly, try

checking this box. See help for more detail on this.

http://www.jocala.com
[Fire TV Themes and Apps] IBNobody:
I just redid my AFTV2 with a complete wipe and restore using RBox's tools. Am running the latest AFTV2 image with root and am using adblink 3.4.

adb is giving me issues when trying to install apks. I would get permission denied errors with adb install. Troubleshooting led me to the fact that /data/local/tmp was protected. I verified that I could create files in /data/local/tmp (echo foo>bar) as root, but would get permission errors as a normal user.

I have no issues on my AFTV Stick 2 that DOES NOT have root. I can create anything in /data/local/tmp just fine.

As root, I attempted to chmod 777 /data, /data/local, and /data/local/tmp with no luck. I also tried making my permissions match my AFTV Stick 2. /data is 775, /data/local is 751, /data/local/tmp is 771.

Is there something else going on with permissions?
[Fire TV Themes and Apps] jocala:
No idea on this one, sorry.
[Fire TV Themes and Apps] IBNobody:
Ah, well... I am not leaving this one alone. I will solve it and let you know.

There isn't a way to change the location that adb uses as temp, is there?
[Fire TV Themes and Apps] akscooby:
I just tried to rebuild all my firetv sticks and whilst i can install APK on each with no problem, file manager does nada - I cant seem to see anything to pull and cant seem to push anything (I get a pop up at least to select files). No error messages or anything, just blinks and does nothing! Nothing shown in either of the two file boxes so not even sure which is which :(
[Fire TV Themes and Apps] jocala:
A check box, "Disable root", has been added to the device dialog. If you have a rooted device that fails to display the file manager correctly, try checking this box.

From File Manager Help:
[Fire TV Themes and Apps] akscooby:
yeah I tried that even tho my sticks are pretty much stock but made no difference.

For now have set up an FTP to get the files pushed across as cant get anything to appear (even I assume local files should appear in the left window but all I see it two .. )
[Fire TV Themes and Apps] jocala:
If by local files you mean files on the PC, then no, that's not the case.

Each pane offers a view of the connected android device. This video shows the 3.0 FM in use:

https://www.youtube.com/watch?v=SZkDjbhluOk&feature=youtu.be

The only reports I've had of the "blank pane syndrome" were fixed by either disabling root for the FM or upgrading to SuperSU.
[Fire TV Themes and Apps] akscooby:
cheers - thats what I meant but wasnt sure since both are empty anyway. Will try SuperSU next as nothing else seems to let me see any files on the stick.
[Fire TV Themes and Apps] IBNobody:
I figured it out.

If you are getting permission errors installing apks, and you have all your settings correct on the AFTV, the culprit could be SELinux

This fixed it, but needs root:

chcon u:object_r:shell_data_file:s0 /data/local/tmp
[Fire TV Themes and Apps] jocala:
Good to know, thanks for the update!
[Fire TV Themes and Apps] jocala:
New video: Switching between Kodi & SPMC

New video: Switching between Kodi & SPMC

https://www.youtube.com/watch?v=TEVU3NRE-m8&t=6s
[Fire TV Themes and Apps] Raman325:
[MENTION=2718012]jocala[/MENTION] Hey, having a similar problem to [MENTION=8466010]akscooby[/MENTION] and I do not have root on this device. I've been able to use adbLink in the past on this device no problem, and have not made any changes to the configuration of the FireTV that I'm trying to connect to. Get the following error when clicking on "Edit XML":

/system/bin/sh: /data/local/tmp/adblink/busybox: can't execute: Permission denied

I saw in another thread about a similar issue that you suggested running ADB Shell once to try to reinstall busybox, but that hasn't seemed to fix the issue.

I'm currently running adbLink 3.4 and downgraded to 3.0 to see if it was a version issue but I'm having the same problem for both.

Any other thoughts?

FYI, I have a workaround for the problem I was trying to solve so this isn't super critical but thought you'd be interested
[Fire TV Themes and Apps] jocala:
Thank you for the report. Please see this new video: Editing Kodi XML Files

This video was made using an unrooted Fire TV/2. What busybox is doing in the background is a find operation to locate XML files. Why busybox's permissions aren't correct is puzzling.

Check the permissions busybox has: Open ADB Shell then issue an ls command:

shell@sloane:/ $ ls -l /data/local/tmp/adblink/busybox

The ls command should show:

-rwxr-xr-x shell shell 1356524 2016-10-31 21:49 busybox

You can also try deleting the /data/local/tmp/adblink directory using ADB Shell:

shell@sloane:/ $ rm -r /data/local/tmp/adblink

After this disconnect, then reconnect. The /data/local/tmp/adblink directory will re-install with proper permissions.

I was able to replicate this issue by removing the execute bit from the busybox binary:

Press ADB Shell then:

shell@sloane:/ $ chmod 0600 /data/local/tmp/adblink/busybox

To correct the problem on the fly:

Press ADB Shell then:

shell@sloane:/ $ chmod 0755 /data/local/tmp/adblink/busybox
[Fire TV Themes and Apps] Raman325:
Thanks for the quick response! Looks like the permissions for busybox were set to 666. I hadn't bothered to check that but that's good to know for the future. Thanks for helping me get it resolved! I'm curious what caused the permissions change but for now I'm back in business. Thanks!
[Fire TV Themes and Apps] jocala:
Glad it's sorted out. I've got an update in progress for next month, I'll review the busybox installation routines for any anomalies.
[Fire TV Themes and Apps] jocala:
After a code review I didn't find anything that would inadvertently change permissions for busybox. The only time adbLink sets busybox perms is on installation, where they are set to 0755. So, the 666 perms are still a puzzle to me! For upcoming adbLink version 3.5, I added in permission checks for busybox prior to use and I also added a utility menu function to manually reinstall busybox and set perms. Thanks again for the report.
[Fire TV Themes and Apps] jocala:
adbLink 3.5 Released

adbLink 3.5 10/01/17

Labeling system for long running processes modified.

Forum and WIKI Help links updated.

Busybox permissions check added.

Utility menu function added: Re-install Busybox.

Help menu item added for Re-install Busybox.

http://www.jocala.com
[Fire TV Themes and Apps] jocala:
New Fire TV

adbLink installs Kodi to the new Fire TV (aka "needle", the 4K diamond) w/o problems and all functions appear to be working normally.

You need to install:

kodi-17.5.1-Krypton-armeabi-v7a.apk

Not:

kodi-17.5.1-Krypton-arm64-v8a.apk

The v8a release results in the adb error:

Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]
[Fire TV Themes and Apps] LicQuyd:
I love this program, I use it to push APK to my FireSticks and my Android TV, but I would love to be able to push apks to my devices from my Android Phone. I have not found an easy way to do this. Can anyone recommend an android app for that.

Thanks
[Fire TV Themes and Apps] Embee11:
Thanks for adbLink! For some reason, adbLink (both version 3.3 and 3.5) won't work correctly on my 64-bit Windows 7 Pro machine. I launch it and I see both it and two copies of adb.exe running in the task manager, but under normal operation will I never see the GUI! I've disabled all firewalls and anti-virus/anti-malware, but the GUI absolutely will not show under normal circumstances.

The only way to get the GUI to show is to terminate the second copy of adb.exe. But when it does show, most of the buttons will not function. I understand that most of them will do nothing if I'm not connected to a device, but that's not true of all the buttons. For example, when I try to add a new FireTV to the list, the "New" button does nothing at all.

Also, when I select "Quit" from the menu, it not only doesn't exit, but then the task manager shows 6 to 10 additional copies of adb.exe.

Any ideas? Thanks!
[Fire TV Themes and Apps] jocala:
I can't duplicate this, nor have any other reports like this been made, sorry. Do you an Android dev system running, (Android Studio, Visual Studio, Eclipse,etc)? Anything that might launch an extra adb server process into memory?
[Fire TV Themes and Apps] urie57:
Hi Jocala,

Would it be possible to add kodi forks to adblink rather than having to manually type paths into other, mygica.media.center for example there is also FTMC and CEMC.

Thanks

urie
[Fire TV Themes and Apps] lulli1:
Just wanted to say thank you! You saved me a lot of time and trouble. My remote stopped working after cleaning up the ftvs2 with es Task Manger. It disabled Bluetooth and I didn't know...

At the same time wifi got disabled in the stick.

So no possiblity to connect and steer with the remote neither with the ftvApp. :cowboy:

Than I managed to navigate via PC and your program by entering ADB navigation command in the console, to reset the network and reconnect to my wifi.

It's really hard when you realize that you closed the door from outside without having the key with you... :silly:
[Fire TV Themes and Apps] jocala:
Right now the only presets are for Kodi and SPMC. Adding other forks is possible if the demand is there.
[Fire TV Themes and Apps] jocala:
Glad it was a help. There's also the Keypad button, it allows you to simulate a remote via an adb connection.
[Fire TV Themes and Apps] jocala:
New video

https://www.youtube.com/watch?v=AblqesfaT1c&feature=youtu.be

New video: Adding, editing and deleting adbLink device records.
[Fire TV Themes and Apps] keithy:
Hi Jocala have a fire stick connected with ip address when i try to install apk i get busybox install failed check log any idea ?

adbLink 3.5

011118182302

IP: 192.168.1.107

OS X

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

---------- Post added at 07:27 PM ---------- Previous post was at 07:13 PM ----------

Ok sorted cheers k
[Fire TV Themes and Apps] jocala:
New video

New video: Cloning Desktop Kodi (Windows/Mac/Linux) to an Android device.

https://youtu.be/Cq9RSmO4bDE
[Fire TV Themes and Apps] drizzt09:
I am trying to follow the uninstall debloating commands from this post:

https://xdaforums.com/fire-tv/general/disable-bloatware-2nd-gen-fire-tv-stick-t3674629

When using adblink3.5 and use the uninstall option with -k i get a failed message and log shows:

if i go to adbshell and run his command manually i get:

any ideas how to go about doing this? thanks
[Fire TV Themes and Apps] jocala:
To run adb commands manually, use the Console button, not ADB Shell. Console opens a terminal on your PC, ADB Shell opens a terminal on your Android device. BTW, doesn't debloating require root?
[Fire TV Themes and Apps] drizzt09:
his post states:

This is as good as it is going to get in terms of getting better performance for us 2nd Gen Fire TV Stick Users out there... until we get root (hopefully)! so doesnt look like this requires root

---------- Post added at 03:13 PM ---------- Previous post was at 03:11 PM ----------

when running from console i get this:

C:\adbLink>adb uninstall -k --user 0 com.amazon.android.marketplace

Failure [DELETE_FAILED_INTERNAL_ERROR]

---------- Post added at 03:33 PM ---------- Previous post was at 03:13 PM ----------

looks its because i have 5.2.6.1

it is not possible to root the stick and to uninstall/disable/hide system apps with 5.2.6.1
[Fire TV Themes and Apps] Absterok:
Hi, I was using adblink to simply install a few APK files, I was using a newer fire TV and at connecting it says unauthorized and won't go any further?

Any ideas?

S.
[Fire TV Themes and Apps] jocala:
http://www.jocala.com/usbauth.html

Unfortunately, AFTV users now have to authorize adb connections, Android TV users have had to all along. Unneeded PITA, IMHO, but there it is. See the link above for details. If after authorizing you still get the message simply press the Refresh ADB button.
[Fire TV Themes and Apps] Absterok:
Does this mean the authorize message should have been on the TV screen to allow... Thanks
[Fire TV Themes and Apps] jocala:
Yes, the authorize message is displayed on whatever device your Fire TV is attached to.
[Fire TV Themes and Apps] ing.mcp:
hi, is it possible to backup everything on the firestick? so i can lets say clone it to other firesticks? and not have to add the accounts or do the long process of register or turning on ADB debugging??? tyvm﻿ for the help
[Fire TV Themes and Apps] jocala:
Basically, what you're asking for is a custom ROM, which isn't possible, at least with current sticks. The best you can do is backup/restore the data portions of /sdcard/.
[Fire TV Themes and Apps] ing.mcp:
thanks

TYVM for your time , i was just wondering if it was possible cuz that would be great , like an iphone, you back up everything and if it gets damaged buy a new one and send everything back, thanks again
[Fire TV Themes and Apps] jocala:
adbLink 3.6 released

adbLink v 3.6 released

/sdcard, /data/local/tmp, & /storage

added to presets for file manager

Activity indicator for local restores

now properly resets when job is done.

File manager checks that preset

or ad hoc path exists prior to

directory change via go button.

Android Debug Bridge updated

Version 1.0.39 - 0.0.1-4500957

File manager updated to work with

adb v1.0.39

Fastboot updated

Version 0.0.1-4500957

http://www.jocala.com
[Fire TV Themes and Apps] krakout:
Thanks for the continued support man!
[Fire TV Themes and Apps] capTV:
Thumbnails backup broken again v3.6

I have mine on an SD card on my Five TV, and it's throwing the not found error.
[Fire TV Themes and Apps] jocala:
What's the exact message and where/when does it occur? Is this also reflected in your log?

I'd also check the contents of the /sdcard/xbmc_env.properties file (it points to the location of the external data) and double-check that the files are missing via the file manager or via ADB shell. Also, this is probably not connected, but my gen2 FTV will no longer reliably keep an external sd mounted and other times it complains that the card needs to be formatted.
[Fire TV Themes and Apps] capTV:
From logs:

backup: /sdcard/Android/data/org.xbmc.kodi/files/.kodi/userdata//Thumbnails: No such file or directory

I checked sdcard root, and I can't see a xbmc_env.properties file using explorer.
[Fire TV Themes and Apps] jocala:
if you don't have an xbmc_env.properties file, Kodi won't know where to find your relocated data. adbLink creates this file when it initially moves your data. Check your external sdcard and see if your data is there. If your data's present you can add the xbmc_env.properties file by hand.
[Fire TV Themes and Apps] capTV:
I set it up in advancedsettings.xml, and I'm comfortable it works since I have thumbnails, and was able to back those up without error.

If I add that file, will it break the other pointer? I have multiple profiles with the same setup (all to the same path, to consolidate them).

Also, is just pulling the kodi dir the same as backup, or is backup grabbing some hidden files, etc? If so, I can do it manually if playing with it may break things.
[Fire TV Themes and Apps] jocala:
You don't need the xbmc_env.properties file. That's to tell Kodi that you've moved its entire filetree. Since you opted to move thumbnails manually and adjust via advancedsettings.xml adbLink backup isn't for you. Stick with manual.
[Fire TV Themes and Apps] Embee11:
Hi, jocala, and thanks for your great tool!

I'm wondering what advice you can give about the very long delay after launching adbLink before it's window appears. On one of my 64-bit Windows 7 Pro machines, it takes roughly 15-20 minutes before I see the GUI on my screen. It's easy to believe there's something about my windows configuration that's causing this, but I have no idea what might be wrong.

I just now learned that the launch-GUI delay is not the only one. I clicked the "New" button to create a new device entry, and 10 minutes later, it's still not showing up.

By the way, my anti-malware and firewall are definitely not interfering or causing this issue. I've totally disabled them yet the problem still occurs exactly the same.

Any suggestions, please?
[Fire TV Themes and Apps] jocala:
Sorry, I can't duplicate your issue using any version of Windows, nor have I gotten other reports. Offhand I don't have any theories. For diagnostics I'd try launching from the command-line and see if any errors appear. You could also try booting into safe mode.
[Fire TV Themes and Apps] Embee11:
Okay, thanks, I'll give that a try.

---------- Post added at 09:17 PM ---------- Previous post was at 08:45 PM ----------

The same thing happened in Safe Mode with Networking, which is unfortunate because that means it's nothing to do with my startup or background applications, which is something I could troubleshoot on my own. But here are some more symptoms which may bring something to mind...

1) The adbLink log shows "starting server" very quickly, even though the GUI doesn't show up for at least 10 minutes later. Does that suggest that the "server" (whatever that is in this case) is taking to long to initialize or whatever?

2) Whenever I try to exit formally, using File->Quit, the GUI never goes away (or at least not soon enough). And when I click the close box, the GUI disappears immediately but the task manager shows it is still active, along with at least two copies of adb.exe

3) When I launch adbLink.exe in normal boot mode, I use Process Hacker 2 to list it's open windows, which is an empty list until the GUI appears. I note this because I wondered if something in my setup prevented the GUI window from appearing earlier.

Okay, about trying the command line, which command string should I enter?

Thanks
[Fire TV Themes and Apps] jocala:
1. No. the adb server process does not depend on a gui, it is a part of the Android SDK. An error preventing the adb server from starting would not prevent adbLink's GUI from starting. It [the GUI] would merely report that adb was not running.

2. An instance of adbLink starts one background process of adb server and one only. Other programs can start adb servers in the background as well.

3. The adb server is a background process. I'm unfamiliar with Process Hacker 2 and don't know if it sees non-windowed background processes.

4. To start a Windows program from the command-line simply open a console, cd to the directory where it is installed and type the program name. e.g.:

cd \adblink
adblink

Good luck. If I think of anything I'll follow-up. If you find a reproducible bug you think I can fix I'll be happy to do so.
[Fire TV Themes and Apps] _u2pop_:
Hi bro ltns, dude can you give me some idea how to use adblink in my android phone without pc? Some virtualbox or anything else i can use ur program or a alternative app for android for backup/restore kodi ? Thanks
[Fire TV Themes and Apps] jocala:
No way to run adbLink on a phone. Perhaps one of the Android file managers?
[Fire TV Themes and Apps] rainman74:
[MENTION=5947073]_u2pop_[/MENTION] use Remote ADB Shell and then simply use the adb shell commands rm to delete the contents of the Kodi directory and cp to restore a backup from your sdcard.

http://adbshell.com/commands/adb-shell-rm

http://adbshell.com/commands/adb-shell-cp
[Fire TV Themes and Apps] _u2pop_:
Bro i downloaded the app but didnt work the 'adb' word into the app command so my files is on my phone so i dont know on what adb devices name the path of that memory so thevfiles i want to restore it is on this path /sdcard/Android/data/org.xbmc.kodi/files/.kodi
[Fire TV Themes and Apps] rainman74:
You do not need the adb command in the app.

Just use the shell commands after you connected to your Fire TV and inserted the sdcard in it:

Example - use your own paths:

rm -r /sdcard/Android/data/org.xbmc.kodi/files/.kodi
cp -r /sdcard1/KodiBackup/. /sdcard/Android/data/org.xbmc.kodi/files/

If you want to install the backup directly from your phone, you would need the adb on the Fire TV itself. This can be reinstalled, but only with root on the device.
[Fire TV Themes and Apps] _u2pop_:
Bro but my local phone didnt have that name like sdcard1 [emoji20] look the pic
[Fire TV Themes and Apps] rainman74:
I don't mean your phone, the external sdcard on your Fire TV is meant ;)
[Fire TV Themes and Apps] _u2pop_:
But that what i say at the first question i did [emoji32] i have my backup in my phone i want to restore it uploading it to the fire stick without pc
[Fire TV Themes and Apps] rainman74:
Sorry, I can't keep up. How did you copy the backup to your phone? Just like that you copy it to a sdcard in the phone and then you plug the card into the Fire TV. If you don't have a sdcard slot and no rooted Fire TV either, it won't work.

Then only TotalCommander with the WIFI plugin helps you, then you can copy it via WLAN from your phone to your Fire TV and continue there. If you have an iPhone, you can't do that either, only with an Android phone.

how to: https://www.ghisler.ch/board/viewtopic.php?t=40894
[Fire TV Themes and Apps] skydrome:
would it be possible to make the gui support drag and drop into the filemanager for pushing?
[Fire TV Themes and Apps] jocala:
It's certainly technically possible. I'm currently finalizing an upgrade to QT 5.10x, I'll look into this.
[Fire TV Themes and Apps] rainman74:
What's this? It also redirects to https://www.jocala.com/ but there is no new version :(
[Fire TV Themes and Apps] jocala:
Moving jocala.com from http to https broke online version checking. Fixed in next update.
[Fire TV Themes and Apps] jocala:
adbLink 3.7 Released

adbLink 3.7 Released

adbLink c++ framework updated

from Qt 5.6 to Qt 5.10.1

Message popups have been adjusted to work

with multi-monitor systems.

Toast-style message popups fail

with multi-monitor systems.

Currently disabled.

adbLink update checking routine updated.

https://www.jocala.com
[Fire TV Themes and Apps] zebsogo:
3.7 dmg issue

I've downloaded the Mac Version 3.7 but the disk image .dmg won't mount
[Fire TV Themes and Apps] jocala:
Mounts fine for me. No other reports with issues...
[Fire TV Themes and Apps] zebsogo:
hmm ok thanks i'll try again
[Fire TV Themes and Apps] zebsogo:
Well ive downloaded it many times now and have downloaded it to different hard drives on my mac and also tried downloading it to my other mac but still getting the same issue