[APP][NO ROOT][ANDROID TV] Leanback Launcher for Fire TV - Fire TV Android Development

Leanback on Fire
Android TV Launcher Ported to Fire TV
Source Code: https://github.com/leanback-on-fire/LeanbackLauncher
Project is continued at https://github.com/tsynik/LeanbackLauncher, not supported by rockon999
Releases: https://github.com/tsynik/LeanbackLauncher/releases (no longer offered by rockon999, forked releases)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
(More screenshots are attached)
Tested on:
- Fire TV Stick 2
Features:
- Can open Bluetooth and WiFi settings without the stock launcher installed.
- Opens notification center, notification settings, and displays the current amount of unread notifications.
- Can display Amazon-downloaded apps in the store for easy updating and management.
- Can open individual app's settings.
- Can sort applications by categories (video, music, favorites, etc)
- Stripped of all Google services (to prevent crashes!)
Limitations:
- Recommendations were removed (unfortunately they are too unstable and unworkable without root, though I am exploring a method of adding them back into the launcher in Alpha 3)
- As this is based on decompiled sources there are bugs that must be squashed
- The uninstall button in edit mode is broken via the traditional Android TV method. Instead use the Fire TV app menu.
- Also, the done button in edit mode is broken too. Simply use the back button on your remote
Basics:
- The menu button will open up an app menu.
- The edit favorites launcher in the settings row can be used to add apps you want easy access to. Press back to exit the selection screen.
Installation:
- Install like any other APK over ADB. (adb install [path])
- If you want the notification counter you need to execute the following command: "adb shell pm grant com.rockon999.android.leanbacklauncher android.permission.WRITE_SECURE_SETTINGS"
- If you are on firmware 5.2.6 or lower you can disable the stock launcher. See this thread for more information. I don't recommend disabling all amazon features. Only OTA and com.amazon.tv.launcher.
- You should install LauncherHijack v3 for a fully functioning home button.
- If you want Google Search you'll need to install a specific version. 've found a working 2.x series version that is better looking, more stable, and much faster than the previous 1.x version. You can get the APK here. Note: The current version of Leanback on Fire may crash if you try to use the "microphone" orb to interact with the 2.x version. Always use the keyboard orb.
A future version will remove the microphone orb. Unfortunately the latest version is incompatible but an older version works surprisingly well. I've found version 1.0.6.2108324 to be the most stable. You can download the APK here.
Notes:
-The notification counter is still in its infancy and may not always function exactly.
- The app must be restarted for WRITE_SECURE_SETTINGS permission to take effect.
- I'll be posted a full guide to the various Android TV APKs that function on Fire TV soon - The guide is posed in General

rockon999 said:
Leanback on Fire
Android TV Launcher Ported to Fire TV
Source Code: https://github.com/rockon999/LeanbackLauncher/
Releases: https://github.com/rockon999/LeanbackLauncher/releases
(More screenshots are attached)
Tested on:
- Fire TV Stick 2
Features:
- Can open Bluetooth and WiFi settings without the stock launcher installed.
- Opens notification center, notification settings, and displays the current amount of unread notifications.
- Can display Amazon-downloaded apps in the store for easy updating and management.
- Can open individual app's settings.
- Favorites row
- Stripped of all Google services (to prevent crashes!)
Limitations:
- Recommendations were removed (unfortunately they are too unstable and unworkable without root, though I am exploring a method of adding them back into the launcher)
- As this is based on decompiled sources there are bugs that must be squashed
- Uninstall is broken via the traditional Android TV method. Instead use the Fire TV app menu.
Basics:
- The menu button will open up an app menu.
- The [+] tile in the favorites row can be used to add apps you want easy access to. Press back to exit the selection screen.
Installation:
- Install like any other APK over ADB. (adb install [path])
- If you want the notification counter you need to execute the following command: "adb shell pm grant com.rockon999.android.leanbacklauncher android.permission.WRITE_SECURE_SETTINGS"
- If you are on firmware 5.4.0 or lower you can disable the stock launcher. See this thread for more information. I don't recommend disabling all amazon features. Only OTA and com.amazon.tv.launcher.
- You should install LauncherHijack v3 for a fully functioning home button.
- If you want Google Search you'll need to install a specific version. Unfortunately the latest version is incompatible but an older version works surprisingly well. I've found version 1.0.6.2108324 to be the most stable. You can download the APK here.
Notes:
-The notification counter is still in its infancy and may not always function exactly.
- The app must be restarted for WRITE_SECURE_SETTINGS permission to take effect.
- I'll be posted a full guide to the various Android TV APKs that function on Fire TV soon
Click to expand...
Click to collapse
Wow thanks for this. This is pretty kool. Haven't tried it on m Fire TV 1 yet, but FYI it installed and works great on my M8S Android TV box. I installed it just to see if it would work and it seems to work as intended even on a non amazon device. Will let you know how it works on the Fire TV.

I tried it on my fire tv 3 with no luck. I can see the apps but when I try to open them they just flash for a second and don't open. Thanks for all you do.

BRICK0044 said:
I tried it on my fire tv 3 with no luck. I can see the apps but when I try to open them they just flash for a second and don't open. Thanks for all you do.
Click to expand...
Click to collapse
If you can send me the relevant logs (adb logcat | grep leanbacklauncher) I can try to add Fire TV 3 support

I have never used logcat but I tried to use it from adblink. Should I be tring to open the apps while it is logging and then find "grep leanbacklauncher"?

BRICK0044 said:
I have never used logcat but I tried to use it from adblink. Should I be tring to open the apps while it is logging and then find "grep leanbacklauncher"?
Click to expand...
Click to collapse
I was listing the command to get any log results from the launcher. If you're on a Mac/Linux run "adb logcat | grep leanbacklauncher" in your terminal. If you're on Windows you should be able to use the command "adb shell logcat | grep leanbacklauncher" instead. Once you've run the command attempt to open an app, hopefully an error will appear in your terminal.

Tried the command you listed and get 'grep' is not recognized as an internal or external command, operable program or batch file.

BRICK0044 said:
Tried the command you listed and get 'grep' is not recognized as an internal or external command, operable program or batch file.
Click to expand...
Click to collapse
Try executing "adb shell" and then running "logcat | grep leanback" in the adb shell that opens.

rockon999 said:
Try executing "adb shell" and then running "logcat | grep leanback" in the adb shell that opens.
Click to expand...
Click to collapse
that worked. here is the logcat Thank you.

Awesome work! Let me know if there's any way I can help.

Thanks so far this is great hopefully we can get some improvments like the ability to line up apps the way we want and maybe even change the titles. Is there anyway I can send a small thank you

warr1979 said:
Is there anyway I can send a small thank you
Click to expand...
Click to collapse
I second that. @rockon999, please post a donation link and/or enable the XDA built-in donation button.

How did you get amazon video to work?

rockon999 said:
Leanback on Fire
Android TV Launcher Ported to Fire TV
Click to expand...
Click to collapse
Great work. Please add this to your OP as the best option of making your Android TV Launcher for FireTV launch @ boot. Especially if not rooted.
https://forum.xda-developers.com/fire-tv/general/noroot-boot-appstarter-t3616824

Y314K said:
Great work. Please add this to your OP as the best option of making your Android TV Launcher for FireTV launch @ boot. Especially if not rooted.
https://forum.xda-developers.com/fire-tv/general/noroot-boot-appstarter-t3616824
Click to expand...
Click to collapse
Thanks for reminding me! I actually used this up until I "uninstalled" the stock launcher (after you uninstall it for your user, it asks you which launcher to run on boot)

velayo said:
How did you get amazon video to work?
Click to expand...
Click to collapse
I have a FTV Stick 2 on 5.2.6.0 w/ OTA blocked and somehow I have an APK called "com.amazon.amazonvideo.livingroom.firetv". It has always been on my device and works perfectly when launched. Since it ends in ".firetv" I'm fairly certain nothing I've done to my stick brought it about and Amazon merely included it for some unknown reason (I'm guessing as an interface for the prime channel).

rockon999 said:
Thanks for reminding me! I actually used this up until I "uninstalled" the stock launcher (after you uninstall it for your user, it asks you which launcher to run on boot)
Click to expand...
Click to collapse
np, I am still very partial to AppStarter v4. Wish someone would update it. But I see myself using your version of Android TV too. So I prefer to just use a 3rd party app to control which launcher starts up at boot. Just like which app controls the Home button.

velayo said:
How did you get amazon video to work?
Click to expand...
Click to collapse
com.amazon.amazonvideo.livingroom.nvidia works fine on Fire TV with latest Firmware

Thank you! Will google for it

AFTVnews.com said:
I second that. @rockon999, please post a donation link and/or enable the XDA built-in donation button.
Click to expand...
Click to collapse
Thank you! I added donations to my profile

Related

[Blocks OTA's!] Full root for Nook Tablet. [11/20/11] [Permanent root!]

Note from developer: If you want to block OTA updates, just use the adb hijack app once (click the button on it once) and then you can run the OTA block part of this script and every other mod for it. The hijacker is right below this V
If you already ran this script but want to apply the mods from an update to the script: Just use this method to be able to rerun the script
NOTE: Anyone who is having problems with drivers, http://forum.xda-developers.com/showthread.php?t=1363652 <-- That explains the two most common problems.
Step by step video from my friend Albert to gain root access:
http://www.youtube.com/watch?v=1zbT1Fj38nE
This also includes a gApps install section in it incase you decide you want to run that.
You may NOT use the included script in your work without atleast asking me as of now, this may change in the future but I dont want to have to hop from thread to thread just to offer support when I can keep the answers organized for all to find. So please just ask first.
Thanks.
Information:
I have gotten zergRush to work on the nook tablet as well as created a batch script for you to run to allow you to root your tablet. This does NOT unlock the bootloader software/hardware checks this is just so you can remove whatever unnecessary crap you wish to get the **** off your device.
Features:
Root (obviously)
Gapps install
De-bloat menu
System mods (New gallery, email, keyboard, and live wallpaper support)
Launcher install (Choice of 3!)
Homecatcher installer (if you install a launcher in the previously mentioned feature)
Root check
USB Vendor ID check.
Needed files for root:
You need drivers first:
http://dl.dropbox.com/u/15069134/usbdrivers.zip
here is an app to pull up usb debugging menu
http://li362-167.members.linode.com/gapps/non_google/tgps_launcher.apk
Code:
<robertely> Also note, that while that box will remain checked, the setting is not persistant.
<robertely> So you have to flick the top 'Usb Development' box twice to get it working.
Download Link for rooting script:
http://dl.dropbox.com/u/15069134/Nook&Zergy.zip
Code:
MD5sum
5df962260797ec4e3d80e107bca1fdb2
How to get adb debugging enabled:
Download the apk provided in the second download link to be able to access the menu *if you're just installing an app the first time, it will pull up the menu anyway but this is more for AFTER you have root as a convienance to access usb debugging and whatnot. Just try to install the apk *or open it if you already set unknown sources* and you will get a prompt to allow non-market apps. Click settings then you should be able to see "Unknown sources" check that followed by going into "Development" and check the 2 "Usb Debugging" boxes and uncheck "auto mount" then your nook tablet is ready to be used in debugging mode.
Instructions to root:
1. Download the "usbdrivers" zip
2. Download the "Nook&Zergy.zip"
3. Extract both to a folder C:\ntroot\
4. Now you should see the following files and folders inside c:\ntroot:
5. Run "runmefirst.bat" and follow the instructions.
6a. When the batch file opens the device manager, If you don't see a broken device icon next to "NOOK Tablet" then you may have some other generic drivers taking over. Not sure how to remove them so you will have to move to another PC that has never had a tablet hooked up and start over.
6b. If you do see NOOK Tablet with a broken device icon.. then right click and choose "update driver". Choose "Let me specify where the driver is" and browse to the c:\ntroot\usbdriver folder and hit ok. It should install and you can click "OK" to the warning about unsigned drivers.
7. Run "NookandZergy.bat" and follow the instructions
7a. If you see a long string of numbers/letters it's your device
Now you should have root.
How to Unroot and Undo system mods: Check out this thread:
Code:
Changelog:
7.5: Added file to block OTA's directly instead of needing titanium backup and did a few script fixes as well as added brianf21's hiddensettings app.
7.0.1: Fixed minor bug where systemui mod was not being properly installed (wrong command was used) NOTE: You will get force closes from the systemui until the script finishes and reboots your tablet.
7.0: Allowed recognition of users that used ADB Hijacker app to allow for system mods to occur even if you didnt choose them with the script originally
6.0: Added ricochet1k's SystemUI mod to have perm back / menu button on status bar + have N automatically redirect to home on first click
6.0: (continued) fixed the sdcard check for users since Zerg causes auto unmount of the sdcard
5.2: Added check for sdcard to install files
5.0.1: Added option for access to the titanium backup and push them to sdcard even if you are already rooted
5.0: Added Titanium backup as well as files needed to block OTA's
4.7: New Market added (3.4.4)
4.6: Added permissions fix.
4.5.5: (Debloater): Added Extreme Debloater option
4.5: Debloated updated to be a customized menu (Has a menu included now) [URL="http://forum.xda-developers.com/showpost.php?p=20229004&postcount=625"]found here[/URL]
4.1: Removed bugs
4.0: Included de-bloater and launcher install (you get to choose!)
3.5: Updated to check for proper USB Vendor ID as well as check for root.
3.0: Updated to include system app replacements (Keyboard, Email, Gallery) As well as adding live wallpapers for other launchers. You need to choose to run this part of the script same as gApps.
2.7: Updated Gapps to latest [9/30/2011]
2.5: Fixed a few minor typo's/bugs with the script
v2.1: Added usb vendor id addition to adb_usb.ini
v2.0: Rewritten script to allow for more user choices; added Gapps installer (thanks anlog); Added busybox installer apk and debug menu puller (allows you to access debugging menu)
v1.1 Updated superuser apk
v1.0: Official release
v.75: Updated to install SU and superuser.apk
v.5: Initial release
Code:
Credits:
Gojimi for his HomeCatcher.apk
Developers of ADW launcher for their APK
Developers of Go launcher for their APK
Syndicate Apps for their Honeycomb Launcher
anlog for finding out how to get nook color drivers to work and general testing
Team Revolutionary for their exploit
B&N for using android like good little sheep
suicideclown for bearing with me while I tried to get it to work on his computer until anlog found the driver fix.
Dsstrainer for the simplified instructions.
How to do it manually instead of running the Nook&Zergy.bat file (for linux or mac users or someone who wants to do it all manually)
Install drivers and follow instructions up until running the batch file then do the following commands in order:
Code:
adb push zergrush /data/local/zergy
adb shell "chmod 755 /data/local/zergy;cd /data/local/;./zergy"
adb wait-for-device install Superuser.apk
adb remount
adb push su /data/local/tmp/
adb shell cd /data/local/tmp;chmod 777 su;cd /;mount -o remount,rw -t rootfs rootfs /;
adb push su /system/bin/su
adb shell chmod 4755 /system/bin/su
Wanna buy me a coffee or something pretty for christmas?
Unroot method can be found here
Rooted nook tablet using my method
Taken from inside of barnes and noble;
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Indirect said:
Alright, I know you all are going to say "We cant find usb debugging" but allow me to assist you. I found that it's in the development menu of where you enable side-loading of applications so just check that then get the zergrush exploit ran using this.
*I do not own a nook tablet so I cannot check, I just learned alot about it tonight while at a barnes and noble store and the guy who worked there was cool enough to try and help root it with me but since you need adb permissions to run the exploit, I couldn't do anything.
Download Link:
http://dl.dropbox.com/u/15069134/Nook&Zergy.zip
Click to expand...
Click to collapse
Wouldn't still need adb drivers to work in order to do this exploit? If both are possible, I'll gladly buy a nook tablet in order to see if it works (because I intended to buy one anyway if it got root).
I think it might use the nook color drivers but again, I can't test so if anyone has the specific drivers, post them.
Very interesting. I hope someone tries this soon.
Sent from my Samsung Legendary 4G, a Universe UTES phone, running "two.three.five"
I am willing to give this a try tonight. want to get in touch? If it works I will record video.
suicideclown said:
I am willing to give this a try tonight. want to get in touch? If it works I will record video.
Click to expand...
Click to collapse
Thanks. Let us know how it goes!
Sent from my Nook Tablet using Tapatalk
Yeah, add me on Gtalk.
[email protected]
Indirect said:
Yeah, add me on Gtalk.
[email protected]
Click to expand...
Click to collapse
I'll help out as well.
gtalk: [email protected]
I tried this quickly and cannot get it working, i have usb debug enabled however the first problem is that the device does not show up in ADB Devices. Second problem or at least i think it might be is that it defaults in to usb storage mode and while plugged in it cannot be altered from that mode. If someone could create a toggle app to change the default i believe this might help. As for the drivers i am looking and will report back later.
ITFloater said:
I tried this quickly and cannot get it working, i have usb debug enabled however the first problem is that the device does not show up in ADB Devices. Second problem or at least i think it might be is that it defaults in to usb storage mode and while plugged in it cannot be altered from that mode. If someone could create a toggle app to change the default i believe this might help. As for the drivers i am looking and will report back later.
Click to expand...
Click to collapse
People hit a wall here last night on irc, May want to hop in #nookcolor to chat about it.
*cough* http://dl.dropbox.com/u/15069134/add-ons.zip *cough* Put that into your android sdk directory and you have the drivers.
Very nice
Sent from my BNTV250 using Tapatalk
905 views, someone must've tried this by now
Sent from my Samsung Legendary 4G, a Universe UTES phone, running "two.three.five"
You need to add the Nook Tablet USB vendor-id to adb_usb.ini, otherwise adb will not see the device. Do not know what the Nook Tablet vendor-id is, but you can find it with serveral utilities.
I just added a zip that I found to add usb vendor ID and gives you the drivers.
Crap...
I got into the application settings menu and was able to allow sideloading, but the window closed before i could turn on usb debugging. I can't figure out how to get back into the menu, since when I try to install an APK it actually does it now instead of spitting out an error.
Looks like I'm going to have to factory reset. I'll try the root right after that and report results here...
BTW, are those drivers 32-bit or 64-bit?
WAIT here is an app to pull up usb debugging menu
http://dl.dropbox.com/u/15069134/me.tennkia.apr-1.apk
Indirect said:
I just added a zip that I found to add usb vendor ID and gives you the drivers.
Click to expand...
Click to collapse
i got USB debugging enabled (i sideloaded AnyCut and put a shortcut to Development on my home screen)
but i cant get adb to recognize my NT... already edited adb_usb.ini with 0x2080 as vendor id.
http://legacyschool.us.to/nookdev/nookcolor-easyADB.exe
^ use that
Indirect said:
http://legacyschool.us.to/nookdev/nookcolor-easyADB.exe
^ use that
Click to expand...
Click to collapse
no dice, still not recognizing NT

[ROOT][WIN] GUI Tool for rooting the Motorola RAZR

This is my first attempt at creating something for users on xda, so be gentle .
Eternityproject has released a fine script for rooting our Motorola RAZR phones on the 4.0.4 update. As a windows-user that used to use batch scripts for everything I could not help but want some more output than just the [rebooting] echo's that the script print on the screen. As a bonus I thought it would be nice to see how long the script will take before my phone is rooted. I have made these wishes into an application, and pedrotorresfilho kindly allowed me to use their script in my application.
So what does it do?
It roots your Motorola RAZR and shows you what the script originally did. It also calculates how long your phone takes to reboot, and shows you how much time you have to get a nice cup of [insert drink here]. Or soda if you prefer that. In theory it is possible to root multiple phones at the same time, which saves time if you have to root 10 RAZRs at once (LOL... as if).
How does one use it?
- Install the program using Microsoft's Awesome ClickOnce distibution system
- Install the Motorola Drivers (Download MotoHelper from here)
- Enable 'Unknown Sources' (on your phone: go to settings, go to security, tick the box next to 'Unknown Sources') (needed to install supersu.apk)
- Enable 'USB Debugging' (on your phone: go to settings, go to developer options, tick the box next to USB Debugging) (needed to communicate with your phone over USB)
- When connecting your phone, please set the USB Mode to 'Media Sync - MTP', to be sure that mounting points won't interfere with the rooting process.
When the application is opened all the connected Android devices will be selected. This means that as soon as you press the 'Root' button, they will be rooted.
In principle the application does nothing more or less than the script. You don't have to have extensive knowledge of adb or android internals, it's just an app that shows the connected devices and a root button . If you are already rooted, it's easy to unroot using SuperSU.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Download links:
Open ClickOnce Application (works only if you have .NET 4.0 installed!)
Download page (use this if the above link does not work/you do not have .NET 4.0)
You can update by opening the application. If there is an update, you will be prompted to download the latest version.
Required:
Windows (with .NET Framework 4.0 Client Profile installed)
Motorola RAZR running ICS (other phones might work, but you will get a warning)
I ask all of you kindly NOT to mirror or reshare the application without my permission. Please share the ClickOnce Application link. Is assures that you are running the latest version!
Credits:
Eternityproject (pedrotorresfilho & kholk) - for writing the script
miloj - For finding the exploit binary to root the phone
Dan Wager - For creating AndroidLib, a .NET wrapper for ADB on Windows
Chainfire - For creating and providing SuperSu and his su binary - http://forum.xda-developers.com/showthread.php?t=1538053
Changelog:
1.0.0.6:
Added more strings to the logging output
Fixed the blocking of the root button if there are no devices selected
Added a splash screen to indicate that the application is actually loading
Changed the location where the splash as well as the credits/welcome screen appear
1.0.0.5:
added credits for Chainfires SuperSU and su
Removed the message that rooting was not successful
Added a few more messages about the script itself (in the script output)
Updated SuperSU and binary to 0.94 (su binary still says it needs to be updated )
1.0.0.4:
The application now properly disposes of the AndroidLib instance, disabled the CheckedItem event on the DeviceList because it was a tad buggy. This won't harm anyone.
1.0.0.3:
Enabled Microsoft ClickOnce Update deployment. If I fix a bug, you are able to update to a less buggy version
DJFliX said:
This is my first attempt at creating something for users on xda, so be gentle .
Credits:
Eternityproject (pedrotorresfilho & kholk) - for writing the script
minoj - For finding/creating the exploit binary to root the phone (please correct me if this is not correct)
Dan Wager - For creating AndroidLib, a .NET wrapper for ADB on Windows
Click to expand...
Click to collapse
+1 congratulations for this work
thanks
My Razr is already rooted, but I can test.
nespresso33 said:
My Razr is already rooted, but I can test.
Click to expand...
Click to collapse
I have sent you a dm .
Can you try with this root method. It's simpler.
http://dev.crackflasher.com/ROOT_TOOLS/razrs_edge_windows.zip
For guys already rooted that wanna test it, first unroot your phone:
Run SuperSU app and press 'full unroot'. If you have superuser app also installed remove it first.
Cheers
whirleyes said:
Can you try with this root method. It's simpler.
http://dev.crackflasher.com/ROOT_TOOLS/razrs_edge_windows.zip
Click to expand...
Click to collapse
Hmm... I will have a look at this. What are your reasons for using this except that it's simple? It's just a matter of preference, right?
pedrotorresfilho said:
For guys already rooted that wanna test it, first unroot your phone:
Run SuperSU app and press 'full unroot'. If you have superuser app also installed remove it first.
Cheers
Click to expand...
Click to collapse
Thanks man! Much appreciated!
Well, I tested the 2 versions ( I got a notification to update your tool ).
It is working great but the installer is strange, ( I had all requirements but for people which don't, it's not great ).
SuperSu and binary are not latest version. And I get at the end a message who say " the phone does not seem to have root" but I had root
nespresso33 said:
Well, I tested the 2 versions ( I got a notification to update your tool ).
It is working great but the installer is strange, ( I had all requirements but for people which don't, it's not great ).
SuperSu and binary are not latest version. And I get at the end a message who say " the phone does not seem to have root" but I had root
Click to expand...
Click to collapse
Yeah, the installer should be extra user friendly. I should probably just advice users to use the .application link. But the link will only work if .NET client profile is already installed. I'll adjust the message about root, It seems that the library that I use does not query root status from the phone, but rather from it's cache. Maybe I have to update the phone data before querying for root. Thanks for your feedback!
Edit: I am now uploading version 1.0.0.5, I added credits for Chainfires SuperSU, removed the message about the rooting. Too bad my connection is bad (3G in the mountains in La Palma) so bear with me while the updated version is uploaded. Should be up within about 10 minutes, users that already have the application installed will asked to update to the latest version.
nespresso33 said:
Well, I tested the 2 versions ( I got a notification to update your tool ).
It is working great but the installer is strange, ( I had all requirements but for people which don't, it's not great ).
SuperSu and binary are not latest version. And I get at the end a message who say " the phone does not seem to have root" but I had root
Click to expand...
Click to collapse
1. Installed and executed (had to confirm the download since google chrome didn't allow setup.exe files to be directly donwloaded)
2. Upon start it updated.
3. First run the app didn't recognized my connected Razr after changing USB to Media Device - MTP and enable USB debug.
3. Closed and reopened the app and it recognized and root went fine.
Notes: Application said to 'Refresh' when ADB has being enable, but theresn't a Refresh button.
Really nice!
pedrotorresfilho said:
1. Installed and executed (had to confirm the download since google chrome didn't allow setup.exe files to be directly donwloaded)
2. Upon start it updated.
3. First run the app didn't recognized my connected Razr after changing USB to Media Device - MTP and enable USB debug.
3. Closed and reopened the app and it recognized and root went fine.
Notes: Application said to 'Refresh' when ADB has being enable, but theresn't a Refresh button.
Really nice!
Click to expand...
Click to collapse
The refresh button is the button next to root . I'll put a tooltip on that button. Glad to hear all is fine. I'm uploading 1.0.0.5 to polish out the small annoyances and update SuperSU. Thank you so much for testing .
Edit: 1.0.0.5 is out . The download link is now public. Please leave suggestions and improvements in this topic or send me a DM. Thanks!

Amazfit Custom Calculator App

All Amazfit Users,
You may be aware that you can load custom Android application to the great Amazfit watch using ADB and launch them using the Launcher UI. So I decided to try a simple calculator for the Watch.
After a couple of days of tweaking around the layout / logic / functionalities to include, I settled down on some basic functions and layout and was able to install and test on the Amazfit.
Give it a try and share your thoughts. Reminds me of the old Casio calculator watches
Instructions:
Download the APK from here: https://mega.nz/#!yIIWVYDT!aIzbrGPJ8sl8bDpn6Ro3aqQoxBEYd6Z-Jf5Db5LoVw8
Connect the watch to your computer via USB and access via ADB (install ADB Drivers as needed)
Open command prompt or shell
Type "adb devices" to check if your devices is listed
Type "adb install calculator.apk" to install the app to the watch (make sure to use the correct path to the APK, if not copied to ADB folder)
You should see the Success message after sometime
To uninstall type "adb uninstall com.madtechcorp.amazfitcalculator" from your command prompt or shell
In the watch, if you have not already enabled "Launcher App List", go to "More Settings" -> "About" -> Keep clicking legal information till you see countdown to zero. Once that is done, you will have the Lab link below. Click on Lab and select "Launcher AppList". This will restart your Launcher. Now go to the Right most app from your watch face, you will see the Launcher.
Scroll through and Click the Calc icon to launch the Calculator.
Notes:
Try to your own risk (though I don't see any risk here
Launcher AppList may only be available in Chinese ROM. Not sure if it is available for US ROM Version. (If you are interested, there is thread by Neuer_User here https://forum.xda-developers.com/showthread.php?t=3539431 that will allow you to install latest English Translated Chinese ROM on your watch.
The watch will vibrate shortly when you press any operator (like +, -.) and vibrate little longer if there is overflow error. Little indicators l added
Credits: Langdon Himebaugh (https://github.com/langhimebaugh/Calculator) for logic and layout ideas.
Thank you.
Just to mention, there is already calculator app working for Amazfit smartwatch.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
link to the apk: https://drive.google.com/file/d/0B8UqPUOXs5AFdTJZZS1ZRnBpTGM/view?usp=sharing
Is it much work to add a countdown timer?
Thx
madtech360 said:
All Amazfit Users,
So I decided to try a simple calculator for the Watch.
Click to expand...
Click to collapse
calzone123 said:
Thank you.
Just to mention, there is already calculator app working for Amazfit smartwatch.
Click to expand...
Click to collapse
Both work and now i can not decide which one i prefer. Thanks for sharing!
calzone123 said:
Thank you.
Just to mention, there is already calculator app working for Amazfit smartwatch.
link to the apk: https://drive.google.com/file/d/0B8UqPUOXs5AFdTJZZS1ZRnBpTGM/view?usp=sharing
Click to expand...
Click to collapse
to uninstall this one, use:
Code:
adb uninstall rocketstartups.wearcalculator
just in case, someone needs that information.
hello you do not plan to do to watch app notes ?
martinh22 said:
hello you do not plan to do to watch app notes ?
Click to expand...
Click to collapse
App notes for a calculator app?
I do not understand what you mean or what's the purpose of that.
he asked for a note app, not related to the calculator
1immortal said:
he asked for a note app, not related to the calculator
Click to expand...
Click to collapse
Ah, okay. Misunderstood it as i thougt this thread was abbout calc app.
nice work, thanks! So... would you mind sharing the code?
calzone123 said:
Thank you.
Just to mention, there is already calculator app working for Amazfit smartwatch.
link to the apk: https://drive.google.com/file/d/0B8UqPUOXs5AFdTJZZS1ZRnBpTGM/view?usp=sharing
Click to expand...
Click to collapse
Hi, the link is down, can you upload again?
Thanks
Hello,
madtech360 said:
You may be aware that you can load custom Android application to the great Amazfit watch using ADB and launch them using the Launcher UI. So I decided to try a simple calculator for the Watch.
After a couple of days of tweaking around the layout / logic / functionalities to include, I settled down on some basic functions and layout and was able to install and test on the Amazfit.
Click to expand...
Click to collapse
How do you compile your project ?
I have tried a empty project with just one empty activity, compiled it with Google Studio using SDK 21.
Application installed correctly but cannot start !
Could you share your sources and project, please ?
Thank you,
Vicnet
HI i have just bought the US Version and am just 1 day old on the same... i got till the LAB level but in that there is no launch app option, how can i get this, as would love to have the apps that you are describing here in this forum.
please let me know how to get it.. without having to add Chinese ROM
utu72 said:
HI i have just bought the US Version and am just 1 day old on the same... i got till the LAB level but in that there is no launch app option, how can i get this, as would love to have the apps that you are describing here in this forum.
please let me know how to get it.. without having to add Chinese ROM
Click to expand...
Click to collapse
I am assuming you have installed the apk.
What do you see when you go into Lab option? Do you see list of items? if so, one of them should be "Launcher Applist".
Clicking on this enables/disables a launcher application. Once enabled, the launcher can be accessed by swiping all the way to the right from the watchface. Here you will see many Huami apps and other apps that you have installed through adb.
utu72 said:
HI i have just bought the US Version and am just 1 day old on the same... i got till the LAB level but in that there is no launch app option, how can i get this, as would love to have the apps that you are describing here in this forum.
please let me know how to get it.. without having to add Chinese ROM
Click to expand...
Click to collapse
https://forum.xda-developers.com/sm...tches/amazfit-enable-app-list-cn-adb-t3574454
Custom app installation
I have not yet installed any apk, as i am not able to find Launcher Applist...
In common Setting after clicking 7 times on Legal Statement, i am getting the Lab and Under Lab i am getting only 2 options BT HCl Snoop Log and Singal Strenght.
In the setting menu i am getting this Huami Lab as an option in which i am having one app PPG Capturing.. but no other option... pls guide me further.
madtech360 said:
I am assuming you have installed the apk.
What do you see when you go into Lab option? Do you see list of items? if so, one of them should be "Launcher Applist".
Clicking on this enables/disables a launcher application. Once enabled, the launcher can be accessed by swiping all the way to the right from the watchface. Here you will see many Huami apps and other apps that you have installed through adb.
Click to expand...
Click to collapse
utu72 said:
I have not yet installed any apk, as i am not able to find Launcher Applist...
In common Setting after clicking 7 times on Legal Statement, i am getting the Lab and Under Lab i am getting only 2 options BT HCl Snoop Log and Singal Strenght.
In the setting menu i am getting this Huami Lab as an option in which i am having one app PPG Capturing.. but no other option... pls guide me further.
Click to expand...
Click to collapse
Read the first post in the thread posted above.
It provides a way to enable launcher for US watches thru adb.
ADB
madtech360 said:
Read the first post in the thread posted above.
It provides a way to enable launcher for US watches thru adb.
Click to expand...
Click to collapse
Yes, i have done that, but going to cmd... then when i type adb shell, it is saying wrong path.... pls can you guide me on this ... much appreciate it..
I have downloaded the adb installer also and the watch is recognised, but then too the cmd path is not working... need your help, as i love the watch and want to make the most of it. Thanks in Advance.
utu72 said:
Yes, i have done that, but going to cmd... then when i type adb shell, it is saying wrong path.... pls can you guide me on this ... much appreciate it..
I have downloaded the adb installer also and the watch is recognised, but then too the cmd path is not working... need your help, as i love the watch and want to make the most of it. Thanks in Advance.
Click to expand...
Click to collapse
U need to type adb shell in the folder where adb is installed...
madtech360 said:
U need to type adb shell in the folder where adb is installed...
Click to expand...
Click to collapse
Btw looks like the Humai is introducing it's own calculator app...but maybe months before it is rolled out to US watches

[PORT] YouTube Music (Vanced) on WearOS 2

This is a mod of YT Music Vanced & microG Vanced. Offline mode works as long as you have a YT Music subscription.
Requirements
• A phone
• ADB
• Basic knowledge about sideloading
• Internet connection
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
YOUTUBE DOWNLOAD
https://dl.down.monster/ytmusic.apk
THE LOGIN PROCESS IS A BIT MESSY SINCE I'VE NEVER DONE SOMETHING LIKE THAT BEFORE AND I HAVE NO INTEREST LEARNING GOOGLE'S API & JAVA
The UI may not be perfect, I've done my best, maybe I'll update it when I'll have time.
Steps
1. Sideload 'ytlogin-mobile.apk' & 'gms-mobile.apk' on your phone(if you already have non-root microg, you'll have to uninstall it atleast temporary, you can keep using it but you won't be able to update it)
2. Sideload 'ytlogin-wear.apk' & 'gms-wear.apk' & 'ytmusic.apk' on your watch.
3. Give WRITE_SECURE_SETTINGS permission to YT Login on your watch using
adb shell pm grant com.down.musicresponse android.permission.WRITE_SECURE_SETTINGS
4. Open Vanced microG Settings on your phone -> Add Google Account and login (after login it'll tell you that it couldn't establish connection to google server, hit ok)
5. Open YT Login on both your phone and watch and hit 'SEND RESPONSE' on your phone(the wear app should close at this point)
5.1 At this point you can uninstall microg(phone) if you want to
6. Open YT Music -> Sign In -> Add account and wait until the login is done(5-30 seconds)
7. That's it, select the account and enjoy YouTube Music on your unsupported Wear device (now you can uninstall YT Login on both your phone and watch if you want to)
TO BE ABLE TO DOWNLOAD MUSIC
Go to Library -> Downloads -> Settings -> Disable 'Download over Wi-Fi only'
BATTERY OPTIMISATION
Open Vanced microG Settings -> Cloud Messaging and disable it
If for some reason the 'official' method doesn't work, you can do it manually
After you login on your google account on the phone(step 4), the login response will be saved in your clipboard, save it in a text file and pull it on your PC
Open CMD and 'adb shell' into your watch and copy & paste the following commands
settings put global email <YOUR_EMAIL_FROM_RESPONSE>
settings put global accountType <YOUR_ACCOUNT_TYPE_FROM_RESPONSE>
settings put global token <YOUR_TOKEN_FROM_RESPONSE>
settings put global sid <YOUR_SID_FROM_RESPONSE>
settings put global lsid <YOUR_LSID_FROM_RESPONSE>
settings put global services<YOUR_SERVICES_FROM_RESPONSE>
settings put global firstname <YOUR_FIRST_NAME_FROM_RESPONSE>
settings put global lastname <YOUR_LAST_NAME_FROM_RESPONSE>
Now simply close CMD, open YT Music and sign in
Example response
THANKS TO
JimSeker for DataLayer example
GitHub - JimSeker/wearable: Android Wear/ Wear OS Examples
Android Wear/ Wear OS Examples. Contribute to JimSeker/wearable development by creating an account on GitHub.
github.com
Hi, it looks like the ytmusic.apk file is missing from the attachments.
MishaalRahman said:
Hi, it looks like the ytmusic.apk file is missing from the attachments.
Click to expand...
Click to collapse
I guess the file is too big, I added 3rd party download link for yt
Can confirm it works. Great job!
Can't wait to try it on the Fossil gen 6
Works great on my Gen 5 Fossil!! Thank you!
Can confirm, it works. I got it running on the ticwatch pro 2020 and I can even switch accounts. It really is just the phone app scaled for the watch.
holy **** this is amazing.. thank you!!!!!!! by the way anyone on chromeos using wifi adb the command is
adb -s *ipAddressHere*:5555 shell pm grant com.down.musicresponse android.permission.WRITE_SECURE_SETTINGS
same for sideloading the apps its:
adb -s *ipAddressHere*:5555 install "gms-wear.apk"
This is incredible! Run of wonder in my ASUS ZENWATCH 2
YT Login on my Phone only get me a Black screen with boarder.
Literally getting my first watch delievery tomorrow. Thanks for the solution. Will update how it works on a square display (oppo watch). Any TG support group?
Edit - Got my watch delievered. Couldn't install ytmusic.apk through wear installer as it said the app is not made for wearOS. Used bugjaeger to install. Would work from a pc too but was feeling lazy
Followed the guide exactly. Great work dev. 10/10 recommended. Works decently IMO on squares.
I'm unable to install gms-mobile.apk on my Pixel 5 (Android 12 Beta) I get "App not installed as package conflicts with an existing package"
Any ideas?
mike freegan said:
I'm unable to install gms-mobile.apk on my Pixel 5 (Android 12 Beta) I get "App not installed as package conflicts with an existing package"
Any ideas?
Click to expand...
Click to collapse
Uninstall Vanced Microg that was installed from Vanced Manager, temporarily.
alt68 said:
YT Login on my Phone only get me a Black screen with boarder. View attachment 5406189
Click to expand...
Click to collapse
Can you share a logcat?
mike freegan said:
I'm unable to install gms-mobile.apk on my Pixel 5 (Android 12 Beta) I get "App not installed as package conflicts with an existing package"
Any ideas?
Click to expand...
Click to collapse
do as mayankshekharison said
DownAP said:
Can you share a logcat?
do as mayankshekharison said
Click to expand...
Click to collapse
Where and how can i find logcat?
Nice
Hi,
On Poco F3 and Fossil Gen5 Carlyle, got until the send response part and then my watch just showed a wall of text with my email at the top with most of the text being off the screen. What should I do?
Minaism said:
Hi,
On Poco F3 and Fossil Gen5 Carlyle, got until the send response part and then my watch just showed a wall of text with my email at the top with most of the text being off the screen. What should I do?
Click to expand...
Click to collapse
Nevermind, just exited the yt login app, entered yt music app, hit sign in, clicked lower right corner, selected account and I was in.
alt68 said:
Where and how can i find logcat?
Click to expand...
Click to collapse
Same for me. Do you have a solution for this?
denzel09 said:
Same for me. Do you have a solution for this?
Click to expand...
Click to collapse
alt68 said:
Where and how can i find logcat?
Click to expand...
Click to collapse
Alternatively you can manually set the account without YT Login app.
After you login on your google account on the phone(step 4), the login response will be saved in your clipboard, save it in a text file and pull it on your PC
Open CMD and 'adb shell' into your watch and copy & paste the following commands
settings put global email <YOUR_EMAIL_FROM_RESPONSE>
settings put global accountType <YOUR_ACCOUNT_TYPE_FROM_RESPONSE>
settings put global token <YOUR_TOKEN_FROM_RESPONSE>
settings put global sid <YOUR_SID_FROM_RESPONSE>
settings put global lsid <YOUR_LSID_FROM_RESPONSE>
settings put global services<YOUR_SERVICES_FROM_RESPONSE>
settings put global firstname <YOUR_FIRST_NAME_FROM_RESPONSE>
settings put global lastname <YOUR_LAST_NAME_FROM_RESPONSE>
Now simply close CMD, open YT Music and sign in
Example response

[APP][NO ROOT] ADB on Boot | Run adb commands at boot automatically

How to use?
1. Enable ADB Debugging from Fire TV settings
2. In this app, add the adb commands that you want to execute on every boot
3. Set whether you want to display a Toast message on completion of command execution
4. Test the script if you want by pressing "Test Script" button.
5. Apply the configs by pressing the apply button.
Support the work by purchasing it from here
Note: when you run this app for the first time, you should press the test script button, so that app can acquire adb permission. If you don't do this, then the adb permission prompt would appear when you boot the stick for the first time, after installing and opening this app.
That's all
Also note that, the commands you'll write here should be without "adb shell" prefix.
For example,
you have to write
echo "Hello World"
and not
adb shell echo "Hello World"
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
(or multiple commands separated by semi-colon ' ; ' )
Awesome thanks!
Is it possible to combine commands with ; or add a delay?
Spamm00r said:
Awesome thanks!
Is it possible to combine commands with ; or add a delay?
Click to expand...
Click to collapse
Yes you can add multiple commands with ; and add a delay using sleep command.
Example,
sleep 3; echo "I'm here after 3 seconds";
Shaikh Amaan FM said:
Yes you can add multiple commands with ; and add a delay using sleep command.
Example,
sleep 3; echo "I'm here after 3 seconds";
Click to expand...
Click to collapse
Perfect!
Did you test wether you can use this app to issue "adb tcpip 5555" command at bot so that the adb wifi tasker function can do the rest? Thatway we would have adb shell on a non rooted device all the time.
Spamm00r said:
Perfect!
Click to expand...
Click to collapse
let me know if you are able to get your work done
Spamm00r said:
Perfect!
Did you test wether you can use this app to issue "adb tcpip 5555" command at bot so that the adb wifi tasker function can do the rest? Thatway we would have adb shell on a non rooted device all the time.
Click to expand...
Click to collapse
The issue with Tasker is something else as far as I can see. May be because Tasker have subscription checking thing in it and it needs Google Libraries which are not available in fire os.
So I finally was able to test this. The app does work ok.
I'd like to be able to execute these scripts not only at boot. For example like when you press test script, I'd like to be able to run the app anytime I want the script to execute.
Can you please also add an setting that allows the scripts to be executed by just opening the app, so that you are not limited to run these scripts only at boot or when you manually press " test script". So we could use these scripts anytime we run this app for example via Tasker.
Why does the shell execution work with this app but not with taskers adb shell?
Spamm00r said:
So I finally was able to test this. The app does work ok.
I'd like to be able to execute these scripts not only at boot. For example like when you press test script, I'd like to be able to run the app anytime I want the script to execute.
Can you please also add an setting that allows the scripts to be executed by just opening the app, so that you are not limited to run these scripts only at boot or when you manually press " test script". So we could use these scripts anytime we run this app for example via Tasker.
Why does the shell execution work with this app but not with taskers adb shell?
Click to expand...
Click to collapse
Are you able to use Tasker in the stick?
I tried in my device and it won't even show a simple Toast and possible reason as I said is that Tasker have subscription checking thing in it and that requires Play services which are missing in Fire OS. So unless you have direct purchased version of Tasker or unless you install Play services in it, I don't see any good way of running Tasker in it.
Shaikh Amaan FM said:
Are you able to use Tasker in the stick?
I tried in my device and it won't even show a simple Toast and possible reason as I said is that Tasker have subscription checking thing in it and that requires Play services which are missing in Fire OS. So unless you have direct purchased version of Tasker or unless you install Play services in it, I don't see any good way of running Tasker in it.
Click to expand...
Click to collapse
Yes I have Tasker running on FireTV 4K without play service. You can download an apk with 7 day trial directly from the tasker website and it works without playstore. If it has issues with subscription or trial expired, it will tell so and refuse to execute some advanced features.
I can run intents and stuff with tasker just fine, but as Fire TV has no Accessibility service installed, you can not use most of the nice features and plugins of Tasker. Issuing shell commands for example does not work. so I can not issue any keyinput with tasker. That's why I have to rely on your app.
With your app however I was able to completely avoid tasker for now.
I used Tasker to run an intent that opens a youtube link. Now I run this intent from your app. Also i can now issue keyinput with your app. With Tasker that was not possible due to missing accessibility service, which Tasker relies on.
How is your app able to issue keyinput via shell, while tasker can not due to mssing accessibility services? Maybe you can make your app more advanced and allow it to be used as a proxy for issuing shell keyinput on devices without accessibility service. This is the one single reason why I wish i had root on this device. Just to have accessibility service back, which Amazon removed in the recent firmware versions.
I use input to press home key, which makes Fire TV switch the HDMI input of the TV to itself. Now Whenever I start the tv, Fire TV automatically switches input to itself and starts playing youtube.
What I now also want is to be able to use your app also after boot, as I need to switch input and issue keyinput after boot while running several times. Thats why I asked you to add an option to runn it also after boot.
Because if I press "test script" keyinput also works with your app. But not with Tasker.
Will it work, if I open your app with intent "android.intent.action.MAIN"? Will it execute the shell script like when at boot? if yes, then I will try to run this intent from Tasker.
Also It would be good if it was possible to have multiple scripts that you can execute so that you are not stuck with one single script. For example allow to save script a, b, c etc, and then have an intent to be ebale to run a specific script a, b or c. etc..
Your script is very helpful and solves a big problems that amazon has introduced by cutting accesisbility service. Without your app, fire tv would be so useless for me. Thanks for releasing it.
Spamm00r said:
What I now also want is to be able to use your app also after boot, as I need to switch input and issue keyinput after boot while running several times. Thats why I asked you to add an option to runn it also after boot.
Because if I press "test script" keyinput also works with your app. But not with Tasker.
Click to expand...
Click to collapse
Yes this can be done, but i'm busy in something else, so it might take a while
Spamm00r said:
Also It would be good if it was possible to have multiple scripts that you can execute so that you are not stuck with one single script.
Click to expand...
Click to collapse
For having multiple scripts, currently I think you can do it by creating different bash files containing scripts and store them somewhere in Fire Device's storage and then execute them (but probably you'll face problem in giving execute permission to those bash files), this process can be made easier but as I said would take time.
Shaikh Amaan FM said:
Yes this can be done, but i'm busy in something else, so it might take a while
For having multiple scripts, currently I think you can do it by creating different bash files containing scripts and store them somewhere in Fire Device's storage and then execute them (but probably you'll face problem in giving execute permission to those bash files), this process can be made easier but as I said would take time.
Click to expand...
Click to collapse
OK no problem. Take your time.
I don't think that you can execute scripts without root. How does your app execute these scripts without root permissions?
Also sometimes the script is not executed, not at boot and not when I press "test script". I think maybe adb is being blocked by some other app? I have to look into why this happens.
Spamm00r said:
OK no problem. Take your time.
I don't think that you can execute scripts without root. How does your app execute these scripts without root permissions?
Also sometimes the script is not executed, not at boot and not when I press "test script". I think maybe adb is being blocked by some other app? I have to look into why this happens.
Click to expand...
Click to collapse
Which fire device do you have and what's the Fire OS version in it. App doesn't works in Fire OS 5, in Fire OS 6, you have to make sure that no other device/service is connected to ADB, In Fire OS 7, I didn't saw any issue
Shaikh Amaan FM said:
Which fire device do you have and what's the Fire OS version in it. App doesn't works in Fire OS 5, in Fire OS 6, you have to make sure that no other device/service is connected to ADB, In Fire OS 7, I didn't saw any issue
Click to expand...
Click to collapse
I have Fire TV Stick 4k and OS is 6. I figured out why it sometimes doe snot work. it is because ADB is occupied by another app. If I disable and enable adb debugging and thatway break any exisiting connections, it works fine. I just have to make sure that no other app blocks adb, as apparently only 1 app can be connected to adb at a time.
That might be another point of improvement, to make sure that adb is not left occupied.
Spamm00r said:
I have Fire TV Stick 4k and OS is 6. I figured out why it sometimes doe snot work. it is because ADB is occupied by another app. If I disable and enable adb debugging and thatway break any exisiting connections, it works fine. I just have to make sure that no other app blocks adb, as apparently only 1 app can be connected to adb at a time.
That might be another point of improvement, to make sure that adb is not left occupied.
Click to expand...
Click to collapse
In fire os 7, there's no such issue. But yeah in fire os 6 I have tested, only one service or device can connect to adb at a time, and I don't think there's anything I can do about it
Shaikh Amaan FM said:
In fire os 7, there's no such issue. But yeah in fire os 6 I have tested, only one service or device can connect to adb at a time, and I don't think there's anything I can do about it
Click to expand...
Click to collapse
My exact Fire OS is: Fire OS 6.2.8.1
WHich Fire TV Stick has OS 7?
Being able to connect multiple clients to adb is a big step forward. Right now I have to manually toggle adb access to allow other tools to connect to adb. This is a big problem.
Spamm00r said:
My exact Fire OS is: Fire OS 6.2.8.1
WHich Fire TV Stick has OS 7?
Being able to connect multiple clients to adb is a big step forward. Right now I have to manually toggle adb access to allow other tools to connect to adb. This is a big problem.
Click to expand...
Click to collapse
I have Fire Stick 3rd gen.
New devices including Fire Stick Lite are running Fire OS 7.x and I can connect multiple different devices/services to adb at the same time without any issue.
Curious that the Lite has newer Fire OS Version than man other devices. In this case it would be desirable to update, but until then how can make sure that your app or any other app disconnects form adb and gives it free to use for other applications.
Right now I have to manually go to developer settings and toggle ADB off and on to make it available to other apps. Otherwise, adb will be occupied by the last app that used it.
Is it possible to automate this? Adding "disconnect" to the shell command didn't help.
Spamm00r said:
Curious that the Lite has newer Fire OS Version than man other devices. In this case it would be desirable to update, but until then how can make sure that your app or any other app disconnects form adb and gives it free to use for other applications.
Right now I have to manually go to developer settings and toggle ADB off and on to make it available to other apps. Otherwise, adb will be occupied by the last app that used it.
Is it possible to automate this? Adding "disconnect" to the shell command didn't help.
Click to expand...
Click to collapse
Look for force stopping the application through adb commands.
I have managed to make the app start also after boot via Taskers app action. But the script is only executed after manually pressing the "test Script" button.
What exact intent action is executed by pressing the "Test Script" button? From the xml file I can only see "com.asfmapps.firetv_adbonboot.MainActivity".
I have also tried to send android.intent.action.BOOT_COMPLETED to your app to make it think it just started up but that also does not make your app to execute the script automatically.
What intent is your app listening for to execute the script? And ho do I issue it via shell or tasker?
Hi,
I'm trying to echo to sys/class/display/mode so I can change the resolution on boot.
When I test the script it shows 'permission denied'. It's an android box so it won't work?

Categories

Resources