Comments (81)
Ok, here is a quick and dirty solution:
Edit: before doing this first uninstall LauncherHijack if you have it still installed.
First install the cloned LauncherHijack apk from here
Then install the apk inside this zip
(don't pay attention to its UI if it shows, it's just a template, the important part is that when it opens it configures the accessibility variables as needed)
Then grant it the required permission by running:
adb shell pm grant com.example.settest.settingstest android.permission.WRITE_SECURE_SETTINGS
Then open the application (SettingsTest), after you do that, LauncherHijack should open automatically.
(if it doesn't and it still complains when you open it then something did not work as intended)
After you're done you can uninstall SettingsTest.
from launcherhijack.
That's because apparently (i hope I'm wrong) the latest Fire OS version prevents editing the values involved. Specifically, if you try to set accessibility_enabled to 1, the value is set to 0 instead (if you put any other value it gets written correctly though), and if you try to edit enabled_accessibility_services any value you put gets completely ignored. You can try adb shell settings get on the values to see what happened. This happens even if LauncherHijack is not installed or a clone apk is installed instead, so the apk being on the blacklist is not the problem.
(note: I tested it on a 2nd generation Fire TV Stick)
from launcherhijack.
Ok, here is a quick and dirty solution:
Edit: before doing this first uninstall LauncherHijack if you have it still installed.
First install the cloned LauncherHijack apk from here
Then install the apk inside this zip
(don't pay attention to its UI if it shows, it's just a template, the important part is that when it opens it configures the accessibility variables as needed)Then grant it the required permission by running:
adb shell pm grant com.example.settest.settingstest android.permission.WRITE_SECURE_SETTINGS
Then open the application (SettingsTest), after you do that, LauncherHijack should open automatically.
(if it doesn't and it still complains when you open it then something did not work as intended)After you're done you can uninstall SettingsTest.
DUDE!! Awesome work. Much LOVE!!!
from launcherhijack.
@r3dlobst3r uninstall Settings Test and other launcher hijack, then download this
https://www.dropbox.com/s/gxqoj2ffzlopms2/LH4.0.3.apk?dl=01
Its a Modified launcher hijack with integrated Accessibility Settings, just Install the App and follow the on screen instructions, its specially for Firestick 4k
Simply install the app by
adb install -g LH4.0.3.apk
Then simply press DONE, you are all set
This will grant Accessibility Settings and then you don't have to enter any commands even
from launcherhijack.
Launch On Boot is available here, it has a setting to make it launch the app you selected on wake.
Back on topic: after some tests I noticed that the accessibility settings do get written correctly when you edit them, but something overwrites them almost immediately. (about 50 milliseconds later) If the culprit is a non-essential system app maybe it can be disabled. Edit: that's probably done by Android itself to keep things tidy when there are no accessibility services enabled, see my last post instead.
from launcherhijack.
Hold on, I found an exploit: the value getting immediately overwritten with 0 is only accessibility_enabled, and that only happens when enabled_accessibility_services is empty. On the other hand, enabled_accessibility_services cannot be written only via adb, via application it gets written correctly, and stays like that. After that, you can write accessibility enabled too, and LauncherHijack works correctly. All you need is to write a tiny application that does this job and grant it via adb the permission com.android.permission.WRITE_SECURE_SETTINGS, since it's a system permission.
Edit: this job could also be done by LauncherHijack itself, then you would just need to grant it the WRITE_SECURE_SETTINGS permission instead of setting the accessibility variables manually.
from launcherhijack.
Launch On Boot is available here, it has a setting to make it launch the app you selected on wake.
Thanks to wilkovatch we now have LauncherHijack working again for updated Firesticks. I had to uninstall HA Launcher and reinstall as it wasn't appearing in LauncherHijack as a Launcher. Once I did that everything started to come together.
My Home key is bound to my custom launcher HA Launcher, almost all of the time. Occasionally it fails and the Home key brings me back to the stock Amazon Home screen, but if I press the Home key again it launches my custom HA Launcher. I'm going to try to narrow down when this happens. I can access the Long Press Home functions using Menu and Home together. So far so good.
I'm using Launch On Boot to cover all other ways to avoid the stock Amazon Home screen, but it is not consistent.
* Launching custom HA Launcher from Boot/Restart (Hard Restart or Pull Power) works. * Launching custom HA Launcher from Sleep (Screen Off/Wake?) doesn't work. * Launching custom HA Launcher from Power Standby (Soft Restart/Not full Power Off) doesn't work.
I'm testing a few other Launch On Boot type apps.
I've also come across a method to corrupt the stock Amazon Launcher so that it literally cannot run at all The potential downfall with this is if your custom Launcher fails or locks up for any reason, then you could be in trouble with no Launcher, and no easy way to get one working again.
So far with both LauncherHijack and Launch on Boot.....ATV Launcher is almost flawless
I also wouldnt want the Amazon Home to be completely gone...I would think you risk bricking and not being able to recover. You could aslo screw up your ability to get to Prime Video as the app for that doesnt seem to work to get there on mine
from launcherhijack.
Step 1) sift through hundreds of old comments about launcher hijacker no longer working (hint: early 2018 collab between baronkiko and speeddymon)
Step 2) find the test APK, I believe there are a couple.
Step 3) apply the same package renaming and 3rd party permission work arounds you're using for the current version.
Good luck.
from launcherhijack.
@wilkovatch can i make your app work for setting this app service too?
firetv is killing it
i know its a bit offtoppic but still
whole logcat here https://paste.kodi.tv/iceciravax.kodi
10-09 18:48:29.348 594 634 W ActivityManager: Unable to launch app com.urbandroid.lux/10167 for service Intent { act=com.urbandroid.lux.action_command_restart_on_low_memory cmp=com.urbandroid.lux/.TwilightService }: process is bad
from launcherhijack.
How are people still commenting and polluting my thread after I closed it?
from launcherhijack.
So this would mean this Hijack is dead? NO way to now use any other launcher but theirs? Sux
from launcherhijack.
Nothing prevents you from installing and running another launcher, but without LauncherHijack you cannot access it using the home button, which will take you to the Amazon launcher instead.
Launch on Boot still works, so you can use it to open another launcher on boot/wake.
Also, certain launchers (for example AppStarter) will not take you to the Amazon launcher when pressing the back button, so when using one of those you can just spam the back button when you want to leave an app instead of using the home button.
Of course this is not a real solution, but it's the best that can be done given the current situation. (unless I'm missing something)
from launcherhijack.
I dont see any option for launch on boot....where? in the specific Launcher? I like ATV Launcher
from launcherhijack.
Launch on Boot is a separate application, you have to install it (via apk or Google Play) then open it and select which application to launch on boot/wake.
from launcherhijack.
Ill try that....it seems there is not way back to what we had here before correct?
from launcherhijack.
As far as I know there is currently no way to get LauncherHijack working: you can't downgrade Fire OS, and the latest version cannot be rooted, so no way to get rid of the Amazon launcher or to get the accessibility stuff working for LauncherHijack. Maybe the devs can get around this requirement by changing approach. (in the settings menu LauncherHijack has a setting to enable detecting when the Amazon launcher is opened, but it did not work for me)
Note: I could be wrong, the devs can confirm or rectify what I said.
from launcherhijack.
thanks.....very much a bummer.....all most a deal breaker on 4k stick over an Android Box
from launcherhijack.
To comment on this also,
it seems that on the 6.2.6.4 Software version, it is impossible to enable Launcher Hijack to perform the correct actions , since it constantly requires to enable the accessibility services.
Tried for a good 3h on a Firestick 4K to make the Hijack happening.
from launcherhijack.
Thanks wilkovatch. I've been banging my head against a brick wall for days trying to get this to work. My new Firestick 4K is on version 6.2.6.4 of Fire OS, and everything you've said checks out. There are many who have succeeded to get it working, but as far as I know you cannot prevent Amazon from updating Fire OS (I have all updating options switched off, yet it still does daily checks for and applies updates regardless), so all of those who've got Launcher Hijack working have their days numbered in Amazon's desperate arms race to control the Fire OS launcher. I can see why they engage in this arms race: advertising of paid content, spy device on your internet connection, voice data to add to your NSA profile. The extremely low price for the hardware specification now makes sense.
I currently use App Startup on Boot to specify the super customisable HA Launcher, however this only starts HA Launcher if you pull the power, or manually do a Restart. Normal Power On just brings the Firestick out of Sleep mode, and launches straight into the Amazon Launcher. You mentioned that Launch on Boot also works on wake, but this is not the case for me.
Which Launch On Boot app did you test this on?
Not the end of the world to do down, down, click every time I switch on, but probably gonna put it on a remote control power socket so it will be switched off when not in use., rather than letting Amazon, NSA, or whatever other damn Americans hack my network and connected devices whenever they want. Now wishing I went for an Android box, but of course the Firestick 4K price tempted me. Considering how little control we have over these devices, I'm not a happy customer at all. I'll be selling it once I can find a suitable replacement that doesn't cost a fortune.
from launcherhijack.
I have found that Launch on boot does a decent job with ATV Launcher....I long press the home button and put it to sleep....but if you just press home and not power off the stick goes to sleep after the screensaver
Where do you turn off update functions? I dont see that anywhere
from launcherhijack.
I have found that Launch on boot does a decent job with ATV Launcher....I long press the home button and put it to sleep....but if you just press home and not power off the stick goes to sleep after the screensaver
Where do you turn off update functions? I dont see that anywhere
Sorry, it was only turning off apps updating in the Amazon Appstore inside Settings > Appliactions.
I like ATV launcher also, especially as it prevents you from backing out unlike HA Launcher. And I much prefer the icons generated in ATV Launcher. However ATV Launcher only allows a single group/category: Applications. In HA Launcher, I have my own categories: Weather, Films, TV, Games, Launchers, Web, Apps, Tools which makes it much much easier to naviagte. I've managed to set a wallpaper on a Firestick 4K with great difficulty, and customised all the icon/text sizes and appearance. A royal pain to set it all up again though when I do a Factory Reset.
from launcherhijack.
Thanks wilkovatch. I've already tried two others, but I'll try that now instead.
from launcherhijack.
ATV Allows you to make Folders....
from launcherhijack.
ATV Allows you to make Folders....
Yes, but they are lumped in under Applications, so you have to navigate to them and then open them. In HA Launcher the Groups are just the next line of icons, one less click, plus all icons displayed out front instead of hidden inside a folder.
from launcherhijack.
Hold on, I found an exploit: the value getting immediately overwritten with 0 is only accessibility_enabled, and that only happens when enabled_accessibility_services is empty. On the other hand, enabled_accessibility_services cannot be written only via adb, via application it gets written correctly, and stays like that. After that, you can write accessibility enabled too, and LauncherHijack works correctly. All you need is to write a tiny application that does this job and grant it via adb the permission com.android.permission.WRITE_SECURE_SETTINGS, since it's a system permission.
Edit: this job could also be done by LauncherHijack itself, then you would just need to grant it the WRITE_SECURE_SETTINGS permission instead of setting the accessibility variables manually.
Hey, thanks for the intel, do you think this should be made as a standalone or maybe as an installator within the LauncherHijack app ?
from launcherhijack.
The easiest way is to make it standalone (so the LauncherHijack devs don't need to do anything), but I opened a pull request to include it into LauncherHijack. (it will require some more work to include it elegantly though)
from launcherhijack.
What are the correct setting in Launcher Hijack to have selected?
Overlay?
Launcher OPen detection?
from launcherhijack.
The defaults should be okay, but enabling those should not do any harm. (probably they make it detect cases where the amazon launcher opens without pressing the home button, such as after an app crashes, etc)
from launcherhijack.
Ok, here is a quick and dirty solution:
wilkovatch, You are the Maan! Dude it works.
I had to reenter the adb command three times via the Firestick TV remote (phone died yesterday, and I already had Remote adb on the Firestick so stupidly began there, but now realise I should've done it from this computer). The joys of the day after the night before. Eventually got it. Bang!
Now the Firestick 4K is starting to look pretty snazzy.
Thanks bud.
from launcherhijack.
Just checking, but now when I press and hold the Home button we do not get the sleep etc options we used to with normal Amazon Home....
we cant have both right??
from launcherhijack.
You can still get them by pressing menu before pressing home. (if the setting "disable while menu is held" is enabled in LauncherHijack)
from launcherhijack.
You can still get them by pressing menu before pressing home. (if the setting "disable while menu is held" is enabled in LauncherHijack)
Grassy Ass!
from launcherhijack.
Where do you turn off update functions? I dont see that anywhere
Here's how to disable Amazon Updates to your device... Method 3, configuring parental controls, or server filters... http://www.aftvnews.com/how-to-block-software-updates-on-the-amazon-fire-tv-or-fire-tv-stick/
from launcherhijack.
Launch On Boot is available here, it has a setting to make it launch the app you selected on wake.
Thanks to wilkovatch we now have LauncherHijack working again for updated Firesticks. I had to uninstall HA Launcher and reinstall as it wasn't appearing in LauncherHijack as a Launcher. Once I did that everything started to come together.
My Home key is bound to my custom launcher HA Launcher, almost all of the time. Occasionally it fails and the Home key brings me back to the stock Amazon Home screen, but if I press the Home key again it launches my custom HA Launcher. I'm going to try to narrow down when this happens. I can access the Long Press Home functions using Menu and Home together. So far so good.
I'm using Launch On Boot to cover all other ways to avoid the stock Amazon Home screen, but it is not consistent.
- Launching custom HA Launcher from Boot/Restart (Hard Restart or Pull Power) works.
- Launching custom HA Launcher from Sleep (Screen Off/Wake?) doesn't work.
- Launching custom HA Launcher from Power Standby (Soft Restart/Not full Power Off) doesn't work.
I'm testing a few other Launch On Boot type apps.
I've also come across a method to corrupt the stock Amazon Launcher so that it literally cannot run at all The potential downfall with this is if your custom Launcher fails or locks up for any reason, then you could be in trouble with no Launcher, and no easy way to get one working again.
from launcherhijack.
Where do you turn off update functions? I dont see that anywhere
Here's how to disable Amazon Updates to your device... Method 3, configuring parental controls, or server filters... http://www.aftvnews.com/how-to-block-software-updates-on-the-amazon-fire-tv-or-fire-tv-stick/
This really becomes hard for the 4k stick
from launcherhijack.
Launcher hijack used to be 100% flawless in the 3.x version. Once they implemented "long press home for settings," it became unreliable. The bug with Amazon launcher appearing on wakeup was never present before.
from launcherhijack.
Launcher hijack used to be 100% flawless in the 3.x version. Once they implemented "long press home for settings," it became unreliable. The bug with Amazon launcher appearing on wakeup was never present before.
I would say that is MORE Amazon finding ways to combat Hijacking...IMO
from launcherhijack.
Well, not exactly. If 4.x works, then the test versions of 3.x will work. There are betas floating around in the comments from after Amazon originally killed the app and brought attention back to the devs. I believe there were extra adb commands required.
I switched to 4.x but downgraded a while ago due to the Amazon launcher appearing after wake. I just don't go into settings all that often for the update to be worth it. The workaround is to just disable the hijacker if you need to change something.
from launcherhijack.
Are you even reading this entire thread? Seems not
you are off of my topic....please delete they are misleading
from launcherhijack.
Yes, I'm reading your entire thread. The same solution applies to older versions of hijacker. You're using a 3rd party solution to set permissions, then veered off into complaining about the default launcher still appearing. I offered a working solution.
from launcherhijack.
Clarify the steps....your solution is misleading
from launcherhijack.
I also wouldnt want the Amazon Home to be completely gone...I would think you risk bricking and not being able to recover. You could aslo screw up your ability to get to Prime Video as the app for that doesnt seem to work to get there on mine
I would love the stock Amazon launcher completely gone. The only visible part I would like to retain are the Settings, the App Drawer, the Long Press Home screen. The rest of it is pure unadulterated marketing user-unfriendly garbage.
Admittedly if you intend to use any Amazon services you would want them, but I don't and never will. I may experiment with killing Amazon's Launcher, and I'm gonna try to track down the update process and freeze that also.
from launcherhijack.
Here's how to disable Amazon Updates to your device... Method 3, configuring parental controls, or server filters... http://www.aftvnews.com/how-to-block-software-updates-on-the-amazon-fire-tv-or-fire-tv-stick/
This really becomes hard for the 4k stick
I managed to use URL Filter in my router to block access to the Amazon update servers. I had to substitute an * instead of .net on the longest one, but I subsequently can no longer reach those servers. I'll keep an eye on the date/time of the daily update checks, but won't really know until the next update comes out.
from launcherhijack.
I'm using Launch On Boot to cover all other ways to avoid the stock Amazon Home screen, but it is not consistent.
- Launching custom HA Launcher from Boot/Restart (Hard Restart or Pull Power) works.
- Launching custom HA Launcher from Sleep (Screen Off/Wake?) doesn't work.
- Launching custom HA Launcher from Power Standby (Soft Restart/Not full Power Off) doesn't work.
Why I hadn't tried switching the Wake to the App option Off then On in "Launch On Boot" I don't know. I've tried so many things on this Firestick, it's amazing it still works. Needless to say everything works now, including Sleep and Power Standby.
There's still an odd glitch where you hit Home from an app and are taken back to the stock Amazon Launcher instead of HA launcher, but I'm slowly eliminating all the loopholes.
from launcherhijack.
Ok, here is a quick and dirty solution:
Edit: before doing this first uninstall LauncherHijack if you have it still installed.
First install the cloned LauncherHijack apk from here
Then install the apk inside this zip
(don't pay attention to its UI if it shows, it's just a template, the important part is that when it opens it configures the accessibility variables as needed)Then grant it the required permission by running:
adb shell pm grant com.example.settest.settingstest android.permission.WRITE_SECURE_SETTINGS
Then open the application (SettingsTest), after you do that, LauncherHijack should open automatically.
(if it doesn't and it still complains when you open it then something did not work as intended)After you're done you can uninstall SettingsTest.
Dude you r awesome!!!!!!!
Thank you so much!!!!!!
This method should be put into HELP.md
from launcherhijack.
THANK YOU SO MUCH!!!
Ok, here is a quick and dirty solution:
Edit: before doing this first uninstall LauncherHijack if you have it still installed.
First install the cloned LauncherHijack apk from here
Then install the apk inside this zip
(don't pay attention to its UI if it shows, it's just a template, the important part is that when it opens it configures the accessibility variables as needed)Then grant it the required permission by running:
adb shell pm grant com.example.settest.settingstest android.permission.WRITE_SECURE_SETTINGS
Then open the application (SettingsTest), after you do that, LauncherHijack should open automatically.
(if it doesn't and it still complains when you open it then something did not work as intended)After you're done you can uninstall SettingsTest.
from launcherhijack.
@El-Koder in launcher hijack settings, simple uncheck "disable while menu is held" yes this will make the hold home button actions no longer work. But it will fix the issue where it going to the Amazon launcher.
Why this is happening example: press the menu key, then press the home key, it will take you to the Amazon launcher. Now that you've disabled that function, no more issues.
from launcherhijack.
@s0ybean hey, do you think you can link me to those test builds? I can't even seem to find where the comments are to search through that are from 2018. Any help appreciated
from launcherhijack.
Another bug fixable. If you're in an app and the fire tv goes to sleep and you keep pressing back to get out of the app instead of home it will go back to Amazon's launcher. This only happens until you press the home button.
To fix this, I made 2 tasker profiles, one for the screen state if off, launch ATV Launcher and another for screen state on, launch ATV Launcher.
Which tasker are you using? is the a Firestick version? or did you just sideload one
from launcherhijack.
@dashriprock007 I bought it on my phone then extracted the apk and sideloaded it. Works like a charm, now I legit never see the Amazon launcher unless I Wana go to settings. I've tested every possible use case.
What settings do you use on Launcher Hijack and Tasker to complete your perfection again?
How did you set up the profile? Some steps would be great for others too.....remote isnt friendly on it
from launcherhijack.
You gotta make a task off that profile, don't delete it. It should have like a small popup we're it asks you to type a name and click a check mark
from launcherhijack.
@dashriprock007 Ok so,
First uninstall "launch on boot" app as you don't need it anymore if you have it.
Launcherhijack: Use ATV Launcher as you can't back out of it, settings in launcher hijack to enable are - hardware button detection, broadcast reciever detection. Only have those enabled, disable "disable while menu is held" yes this gives you the ability to hold the menu and long press the home button to get to the sleep/settings menu pop up thing. But it adds a bug if you press the menu key and press home it will go back to Amazon's home. I don't even use that thing as I have a power button on my remote and settings is right inside ATV Launcher as a simple menu button press.
Tasker: click profiles, call it sleep or something, select state > phone (I believe) > display state > keep it set to off then back out and click the check marks on the top right to save it. Then inside that profile it should have a pop up and ask you to make a task for it, choose app > launch app > ATV Launcher.
Now make another profile called wake and do the same thing except make the display set to "on" this time.
I use ATV Launcher pro version which I've extracted for the best experience as it offers more customizability.
Keep in mind when using tasker you'll probably need a mouse or mousetoggle.
What about the setting in LauncherHijack to disable during task switching?
Ive got it all set up....I did like the ability to put it to sleep....this will only goto sleep based of screensaver now?
from launcherhijack.
I use the launcher hijack on my fire tv so I keep task switching disabled.
If you use it on a tablet enable it or disable it, test it see what works.
Like I said it works perfect for my use case as I have a power button on my remote that puts it to sleep.
If you want to make it go to sleep via a button, you can try making a task that puts device to sleep when you open app (export said app via tasker and tasker factory) then add it to your home screen as an app and you would press the app and it would send the device to sleep.
Someone is currently working on getting accessibility to work with there button mapping app to work with fire tv so you can change what key presses do on your remote. I'll update you when it's out
Please update that here for sure! Right now it does work great!
from launcherhijack.
Will do. Glad I can help you out!
from launcherhijack.
I setup a Tasker profile to fix the issue with sleep mode causing the default launcher to activate. You can either import it and use as is in Tasker or export it to an APK via app factory and install it to your Fire Stick, here's the XML for the profile:
<TaskerData sr="" dvi="1" tv="5.8.3">
<Profile sr="prof63" ve="2">
<cdate>1565902310384</cdate>
<edate>1565920564951</edate>
<id>63</id>
<mid0>60</mid0>
<nme>Wake</nme>
<Event sr="con0" ve="2">
<code>208</code>
<pri>0</pri>
</Event>
</Profile>
<Project sr="proj0" ve="2">
<cdate>1565898422917</cdate>
<name>LauncherHelper</name>
<pids>63</pids>
<tids>60</tids>
<Kid sr="Kid">
<launchID>60</launchID>
<pkg>com.tasker.launcherhelper</pkg>
<vTarg>28</vTarg>
<vnme>1.0</vnme>
<vnum>23</vnum>
</Kid>
<Img sr="icon" ve="2">
<nme>hl_aaa_ext_home</nme>
</Img>
</Project>
<Task sr="task60">
<cdate>1565897351966</cdate>
<edate>1565920564951</edate>
<id>60</id>
<nme>Launch Launcher</nme>
<pri>6</pri>
<rty>1</rty>
<Kid sr="Kid">
<launchID>60</launchID>
<pkg>com.tasker.atvapp</pkg>
<vTarg>28</vTarg>
<vnme>1.0</vnme>
</Kid>
<Action sr="act0" ve="7">
<code>344</code>
<se>false</se>
<Int sr="arg0" val="9"/>
<Str sr="arg1" ve="3">%Package</Str>
<Str sr="arg2" ve="3">%version</Str>
</Action>
<Action sr="act1" ve="7">
<code>20</code>
<se>false</se>
<App sr="arg0">
<appClass></appClass>
<appPkg>%Package</appPkg>
<label>%Package</label>
</App>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="1"/>
<Int sr="arg3" val="1"/>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%version</lhs>
<op>12</op>
<rhs></rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act10" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">Value must be a number between 1 and %packages(#)!</Str>
<Int sr="arg1" val="1"/>
<ConditionList sr="if">
<bool0>Or</bool0>
<Condition sr="c0" ve="3">
<lhs>%input</lhs>
<op>6</op>
<rhs>1</rhs>
</Condition>
<Condition sr="c1" ve="3">
<lhs>%input</lhs>
<op>7</op>
<rhs>%packages(#)</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act11" ve="7">
<code>135</code>
<Int sr="arg0" val="1"/>
<Int sr="arg1" val="8"/>
<Str sr="arg2" ve="3">A</Str>
<ConditionList sr="if">
<bool0>Or</bool0>
<Condition sr="c0" ve="3">
<lhs>%input</lhs>
<op>6</op>
<rhs>1</rhs>
</Condition>
<Condition sr="c1" ve="3">
<lhs>%input</lhs>
<op>7</op>
<rhs>%packages(#)</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act12" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%Package</Str>
<Str sr="arg1" ve="3">%packages(%input)</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Int sr="arg5" val="3"/>
</Action>
<Action sr="act13" ve="7">
<code>20</code>
<se>false</se>
<App sr="arg0">
<appClass></appClass>
<appPkg>%Package</appPkg>
<label>%Package</label>
</App>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="1"/>
<Int sr="arg3" val="1"/>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%Package</lhs>
<op>12</op>
<rhs></rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act14" ve="7">
<code>38</code>
</Action>
<Action sr="act2" ve="7">
<code>37</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%version</lhs>
<op>13</op>
<rhs></rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act3" ve="7">
<code>344</code>
<se>false</se>
<Int sr="arg0" val="11"/>
<Str sr="arg1" ve="3"/>
<Str sr="arg2" ve="3">%self</Str>
</Action>
<Action sr="act4" ve="7">
<code>815</code>
<Int sr="arg0" val="0"/>
<Str sr="arg1" ve="3"/>
<Str sr="arg2" ve="3">%packages</Str>
</Action>
<Action sr="act5" ve="7">
<code>129</code>
<se>false</se>
<Str sr="arg0" ve="3">var text = "";
setLocal("packages", packages.filter(function(package)
{
if ((!package.match(/amazon|hijack/i)) && (package != self) && (package.match(/launcher/i)))
{
text = text + (text.split("\n").length + ". " + package + "\n");
return true;
}
return false;
}).toString());</Str>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="1"/>
<Int sr="arg3" val="45"/>
</Action>
<Action sr="act6" ve="7">
<code>590</code>
<Str sr="arg0" ve="3">%packages</Str>
<Str sr="arg1" ve="3">,</Str>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act7" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">You must install a launcher before you can continue.</Str>
<Int sr="arg1" val="1"/>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%packages(#)</lhs>
<op>6</op>
<rhs>1</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act8" ve="7">
<code>135</code>
<Int sr="arg0" val="4"/>
<Int sr="arg1" val="1"/>
<Str sr="arg2" ve="3"/>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%packages(#)</lhs>
<op>6</op>
<rhs>1</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act9" ve="7">
<code>360</code>
<label>A</label>
<Bundle sr="arg0">
<Vals sr="val">
<net.dinglisch.android.tasker.RELEVANT_VARIABLES><StringArray sr=""><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0>%input
Input
The text that was inserted in the dialog</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0></StringArray></net.dinglisch.android.tasker.RELEVANT_VARIABLES>
<net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>[Ljava.lang.String;</net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">Select Launcher</Str>
<Str sr="arg2" ve="3">%text</Str>
<Str sr="arg3" ve="3">1</Str>
<Int sr="arg4" val="120"/>
<Str sr="arg5" ve="3">12290</Str>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="0"/>
</Action>
</Task>
</TaskerData>
from launcherhijack.
If your in an app and the device goes to sleep and you wake the device up, will this stay inside the app? Or will it go to your new added launcher homescreen like ATV?
from launcherhijack.
It will go back to the custom launcher. If that does happen the previous app will remain active in the background so you should be able to re-open it and resume from where you left off.
EDIT:
Actually, I did some more testing, looks like if it falls asleep normally it'll stay on whatever app it's on.
from launcherhijack.
Can you do a test for me,
Go in an app you can back out of to home without pressing home. Now let it fall asleep, now wake it up and start pressing the back button inside the app, does it go back to the Amazon launcher?
Cheers!
from launcherhijack.
I tested on Smart YouTube TV, spamming back took be back to ATV launcher.
from launcherhijack.
I should of clarified a bit, pushing the power button to put it to sleep then waking it up will make it go back to ATV, but if you let it fall asleep on it's own it should stay on whatever app you're on. This isn't really a problem for me as like I said before the app is still active in the background and can be resumed by re-opening it.
from launcherhijack.
You could probably use AutoInput UI Query with Tasker to get the active package. After that just store it in a global variable and have the screen on action check for that variable and launch the package if the variable exists.
from launcherhijack.
Any idea on how to enable it?
from launcherhijack.
Tasker can write to secure settings if you grant it the permission via ADB:
https://tasker.joaoapps.com/userguide/en/help/ah_secure_setting_grant.html
from launcherhijack.
@HotdogWithMustard any ideas?
from launcherhijack.
Hey guys this is all good info... BUT I fear it is really making my original reason for the thread very confusing....can we start a new thread regarding the advanced Tasker stuff past @oathzed great info on profiles
?
I feel this should be separate for more advanced testing
from launcherhijack.
@dashriprock007 no worries, I've made another issue.
from launcherhijack.
@dashriprock007 no worries, I've made another issue.
And you can copy paste and delete here to clean it up.... So you had success on button mapper? Your work or other...
from launcherhijack.
Where can others find it?
Also can you and @HotdogWithMustard delete and move to your new thread?
from launcherhijack.
Ok, here is a quick and dirty solution:
Edit: before doing this first uninstall LauncherHijack if you have it still installed.
First install the cloned LauncherHijack apk from here
Then install the apk inside this zip
(don't pay attention to its UI if it shows, it's just a template, the important part is that when it opens it configures the accessibility variables as needed)Then grant it the required permission by running:
adb shell pm grant com.example.settest.settingstest android.permission.WRITE_SECURE_SETTINGS
Then open the application (SettingsTest), after you do that, LauncherHijack should open automatically.
(if it doesn't and it still complains when you open it then something did not work as intended)After you're done you can uninstall SettingsTest.
This worked for me, but had a weird artefact. Whenever I go into Youtube app or Netflex app subsequent to running these steps firestick behaves as if VoiceView is ON. I've tried turning On and off again, but consistently happening. Wondered if anybody else has had the same issue? Potential Bug?
from launcherhijack.
@wilhela4 I had this same problem because I was trying to do the original way and I think it messed things up so I restored my firetv to factory then followed this guide again and no voice view issue happened.
from launcherhijack.
-
pm grant com.baronkiko.launcherhijack android.permission.WRITE_SECURE_SETTINGS
I don't know why people think Amazon is blocking package names. They're not, this works fine.
from launcherhijack.
- https://github.com/wilkovatch/LauncherHijack
- pm grant com.baronkiko.launcherhijack android.permission.WRITE_SECURE_SETTINGS
I don't know why people think Amazon is blocking package names. They're not, this works fine.
huh?
from launcherhijack.
This is an answer to your open issue.
from launcherhijack.
YOu have participated in this to know that many were having issues with the old way to do things so I am confused as to why youre saying this now?
from launcherhijack.
I know, but I'm just answering the issue. Since that guy forked it and added the proper changes so you no longer need a seperate app to activate the accessibility.
from launcherhijack.
@wilkovatch can i make your app work for setting this app service too?
firetv is killing iti know its a bit offtoppic but still
whole logcat here https://paste.kodi.tv/iceciravax.kodi
10-09 18:48:29.348 594 634 W ActivityManager: Unable to launch app com.urbandroid.lux/10167 for service Intent { act=com.urbandroid.lux.action_command_restart_on_low_memory cmp=com.urbandroid.lux/.TwilightService }: process is bad
Delete this....why are you posting this here....confusing as hell. Start your own thread so people can use this for help
from launcherhijack.
adb shell pm uninstall com.baronkiko.launcherhijack
adb shell pm uninstall com.baronkiko.launcherhijack2
adb shell pm uninstall com.example.settest.settingstest
adb install app-debug.apk
adb install LauncherHijackCloned.apk
adb shell pm grant com.example.settest.settingstest android.permission.WRITE_SECURE_SETTINGS
adb shell am start -n com.example.settest.settingstest/com.example.settest.settingstest.MainActivity
adb shell settings put secure enabled_accessibility_services com.baronkiko.launcherhijack2/com.baronkiko.launcherhijack2.AccServ
adb shell settings put secure accessibility_enabled 1
from launcherhijack.
adb shell pm uninstall com.baronkiko.launcherhijack
adb shell pm uninstall com.baronkiko.launcherhijack2
adb shell pm uninstall com.example.settest.settingstest
adb install app-debug.apk
adb install LauncherHijackCloned.apk
adb shell pm grant com.example.settest.settingstest android.permission.WRITE_SECURE_SETTINGS
adb shell am start -n com.example.settest.settingstest/com.example.settest.settingstest.MainActivity
adb shell settings put secure enabled_accessibility_services com.baronkiko.launcherhijack2/com.baronkiko.launcherhijack2.AccServ
adb shell settings put secure accessibility_enabled 1After following this, Launcher Hijack works. However now the fire tv is reading everything on screen out loud.
@dmulrooney
from launcherhijack.
Thanks for the reply @sweenwolf , I am still getting a prompt that accessibility services are disabled with the apk you attached. I installed my launcher first with adb, then I used adb -g to install the modified LH apk.
from launcherhijack.
Thanks for the reply @sweenwolf , I am still getting a prompt that accessibility services are disabled with the apk you attached. I installed my launcher first with adb, then I used adb -g to install the modified LH apk.
Can you attach a screenshot?
BTW You have to press "Done" to save the settings
@r3dlobst3r you tried?
from launcherhijack.
I’m sorry to open the thread, today I’m done the steps to install the own launcher but it don’t work’s. It seems Amazon has change something since the OS Version 6.2.7.3.
Have anyone a new solution?
from launcherhijack.
Related Issues (20)
- Dosent work until app launches HOT 1
- Says "launcher hijack is blocked"
- Working on older Bueller units?
- Launcher Hijack fails due to Accessibility Settings (FireTV Stick 4k) HOT 1
- FireTV update killed this again. HOT 1
- Warning about "Updates (Specifically 5.6.2.0)" - is it still valid?
- 4k Firestick Accessibility Commands Solutions not Works HOT 1
- NullPointerException in AccServ.onAccessibilityEvent when pressing home button
- Bricked my FireHD10
- Can't get firestick to stop beeping/chirping in background
- The open buttom is dimend
- Launcher hijack stops working
- [NEW FEATURE] Version information
- [QUESTION] clarify maintenance
- [NEW FEATURE] Release with modified app ID - Fix Amazons ID blokcking
- [NEW FEATURE] Release on F-Droid
- Not being able to use launcher hijack with non-launchers
- Home screen opens after run 'adb shell uiautomator dump' command.
- Amazon Stylus doesn’t work properly with Launcher Hijack enabled
- Accessibility Issue (TTS talks even if it's off)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from launcherhijack.