Coder Social home page Coder Social logo

Comments (123)

arminth avatar arminth commented on July 21, 2024 4

Done! ;)

from launcherhijack.

sturgeo1 avatar sturgeo1 commented on July 21, 2024 2

I have the same issue. Downloaded it to two brand new Fire HD 8 tablets and the app does not function. It works perfectly on my Fire 7. Any suggestions or workarounds?

from launcherhijack.

davidfi01 avatar davidfi01 commented on July 21, 2024 1

V3.0 works on HD8 2018 if you enable "allow display over other apps". However, a side effect is that when you open task switcher, and try to jump to another task, it jumps you back to the home page only.

Another overlay shows in YouTube. The control overlay with the pause, forward and back buttons does not disappear when playing videos.

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024 1

Ok, will try detect the recents menu. Don't know how much it will help. I think the flickering will stick while the default launcher is still installed.

from launcherhijack.

drizzt09 avatar drizzt09 commented on July 21, 2024

v2.1 appears to work on the Fire HD 8 though

from launcherhijack.

friedl avatar friedl commented on July 21, 2024

I can confirm V3 does not work on a Fire HD8 with Fire OS 6.3.0.1.

v2.1 appears to work on the Fire HD 8 though

Also on the newest Fire OS?

from launcherhijack.

drizzt09 avatar drizzt09 commented on July 21, 2024

Yes I have brand new out of box yesterday 8HD that upgraded to 6.3.0.1

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

Sadly I don't own one of the new hd 8's so I honestly have no idea. If some of you could send the crash log from the app opening then I can at least have a guess what's going wrong. It may be easy to fix or hard to fix I just don't know without more info. If it's a hard fix then there really isn't much chance I could fix it as I can't test any changes I have made.

from launcherhijack.

drizzt09 avatar drizzt09 commented on July 21, 2024

I can plug into logcat this weekend and grab logs.
Have to do it when kids aren't around as it's an xmas present. Opened to set it up last night so it's ready to go on unwrap

from launcherhijack.

friedl avatar friedl commented on July 21, 2024

V3.0 works on HD8 2018 if you enable "allow display over other apps". However, a side effect is that when you open task switcher, and try to jump to another task, it jumps you back to the home page only.

Awesome. That worked. I can live with the task switcher not working, because closing tasks still works.

from launcherhijack.

drizzt09 avatar drizzt09 commented on July 21, 2024

HiJack3Crash.txt
ok this is the fatal when trying to launch v3:
I/ActivityManager(569): Start proc 11833:com.baronkiko.launcherhijack/u0a178 for service com.baronkiko.launcherhijack/.HomeButtonService 11-25 15:32:24.997: D/VendorDisplayManagerGlobalCallback(11833): callGetInstance: nil 11-25 15:32:25.003: W/ActivityThread(11833): Application com.baronkiko.launcherhijack can be debugged on port 8100... 11-25 15:32:25.009: W/System(11833): ClassLoader referenced unknown path: /data/app/com.baronkiko.launcherhijack-1/lib/arm 11-25 15:32:25.051: D/AndroidRuntime(11833): Shutting down VM 11-25 15:32:25.052: E/AndroidRuntime(11833): FATAL EXCEPTION: main 11-25 15:32:25.052: E/AndroidRuntime(11833): Process: com.baronkiko.launcherhijack, PID: 11833 11-25 15:32:25.052: E/AndroidRuntime(11833): java.lang.RuntimeException: Unable to create service com.baronkiko.launcherhijack.HomeButtonService: android.view.WindowManager$BadTokenException: Unable to add window android.view.ViewRootImpl$W@7867e5 -- permission denied for window type 2006 11-25 15:32:25.052: E/AndroidRuntime(11833): at android.app.ActivityThread.handleCreateService(ActivityThread.java:3223) 11-25 15:32:25.052: E/AndroidRuntime(11833): at android.app.ActivityThread.-wrap5(ActivityThread.java) 11-25 15:32:25.052: E/AndroidRuntime(11833): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1578) 11-25 15:32:25.052: E/AndroidRuntime(11833): at android.os.Handler.dispatchMessage(Handler.java:102) 11-25 15:32:25.052: E/AndroidRuntime(11833): at android.os.Looper.loop(Looper.java:154) 11-25 15:32:25.052: E/AndroidRuntime(11833): at android.app.ActivityThread.main(ActivityThread.java:6188) 11-25 15:32:25.052: E/AndroidRuntime(11833): at java.lang.reflect.Method.invoke(Native Method) 11-25 15:32:25.052: E/AndroidRuntime(11833): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:911) 11-25 15:32:25.052: E/AndroidRuntime(11833): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:801) 11-25 15:32:25.052: E/AndroidRuntime(11833): Caused by: android.view.WindowManager$BadTokenException: Unable to add window android.view.ViewRootImpl$W@7867e5 -- permission denied for window type 2006 11-25 15:32:25.052: E/AndroidRuntime(11833): at android.view.ViewRootImpl.setView(ViewRootImpl.java:705) 11-25 15:32:25.052: E/AndroidRuntime(11833): at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:342) 11-25 15:32:25.052: E/AndroidRuntime(11833): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:95) 11-25 15:32:25.052: E/AndroidRuntime(11833): at com.baronkiko.launcherhijack.HomeButtonService.onCreate(HomeButtonService.java:52) 11-25 15:32:25.052: E/AndroidRuntime(11833): at android.app.ActivityThread.handleCreateService(ActivityThread.java:3213) 11-25 15:32:25.052: E/AndroidRuntime(11833): ... 8 more

from launcherhijack.

drizzt09 avatar drizzt09 commented on July 21, 2024

after following steps above to allow draw over other apps i was too able to open without crash. I also experienced the issue of not be able to use task switcher and captured those logs. Those ones are a little harder to pinpoint the issue so here is the full log for the test.
HiJack3.txt

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

Ah that's part of the same issue that hit fire TV. It's due to new security restrictions added to android.
You can probably just run:
adb shell pm grant com.baronkiko.launcherhijack android.permission.SYSTEM_ALERT_WINDOW

That allows the app to create it's alert window.

Can you still enable accessibility services on the new hd 8? If not there is another command I can look up for you to set that.

But do let me know how that command changes things.
I am still yet to look at the longer log yet. Need my pc for that as mobile formatting is broken

from launcherhijack.

davidfi01 avatar davidfi01 commented on July 21, 2024

Can you do it by using app permission settings or only through adb?

from launcherhijack.

drizzt09 avatar drizzt09 commented on July 21, 2024

accessibility detect home is there and able to enable.
Maybe we need the other one in the code to set the permission(s).

Running the shell command does not help with the task switcher. However it seems to have messed with the home button being pressed.
1/3 times pressing home chooses my Apex Launcher. 2/3 selects Amazon Home
HiJack3home.txt

Update, the home button consistency issue was fixed after device reboot. Task switcher issue still persists

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

Ah forgot you need a reboot for the perm to fully take effect. You need to set it via adb on more recent android versions because it was used for viruses and other nasty things. Not sure if the latest fireos falls in this category.
It doesn't look like I can get around the switcher stuff without some code. If any of you are budding Devs you can check out the firetv branch and may be able to get it going (it works in a totally different way) but it's not nice code so it's probably too much of a time sync for most.

from launcherhijack.

drizzt09 avatar drizzt09 commented on July 21, 2024

What's different in 2.1 that it doesn't happen with?

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

It works differently, simply put v2 waits till it sees the home screen open and then opens your desired launcher.
V3 directly intercepts the home button press so the default launcher never opens meaning it's much quicker.
The fire TV version works differently again to achieve the same effect as v3 but within the new security restrictions and while I got it working on the TV with 100% success rate it broke the settings menu and long press menu severely limiting the usability of the app. Those issues shouldn't be present on the tablet hence why I said you could probably get that version working.

Not sure all that is 100% accurate as I wrote it a long time ago now but it's more or less the story.

from launcherhijack.

gregordr avatar gregordr commented on July 21, 2024

Thanks for the app @BaronKiko. The home-button works perfectly, but the task switcher always defaults back to the home page (just like @drizzt09 said. Is there anything that can be done about this?

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

As I have said previously the firetv version may fix it as it works differently but it's still in development. Unfortunately I have been busy with getting a real job so it's been on hold for 3-4 months now and shouldn't be used on a device without fixing up.
I can try make a build at some point with the extra firetv stuff removed if I get a spare evening or 2 but please don't hold me to it as getting that time isn't so easy.

from launcherhijack.

dwaal avatar dwaal commented on July 21, 2024

I have Hijack running on my FireHD 10 (2017). Works perfect.

I just installed it on my new FireHD 8 (2018) and tested it with various launchers. Sometimes it works, sometimes it does not. Very strange.

Shouldn't it work all the time or not at all? It's more like 50:50

from launcherhijack.

gregordr avatar gregordr commented on July 21, 2024

@BaronKiko I tried the 2.1 one. It sometimes flashes the old screen, but it works just fine for me :) The only thing that is weird are widgets, but I don't think it's possible to fix this.

That said, take your time. Real life is more important than this, so get everything working there before you worry about this :) and good luck with the Job Search!

from launcherhijack.

dwaal avatar dwaal commented on July 21, 2024

I tried 2.1 from scratch on my FireHD 8.

What I did:
Installed Apex 3.3.3 and LawnchairLauncher2.2
Installed LauncherHijack v2.1

Started LauncherHijack and selected one of the new launchers
Went to "Settings -> Accessibility -> To detect home button press". The problem here is, when I click on it, it does show me an empty screen.
Unlike with my FireHD 10, where there is a ON/OFF toggle button to set "detect home button press".

Is this only me or is the option "To detect home button press" permanently "OFF" and there is no way to change it for the new "Fire HD 8 (2018)" ???

Can somebody confirm this?

from launcherhijack.

splitbrain avatar splitbrain commented on July 21, 2024

@dwaal I needed to upgrade FireOS to 6.3.0.1 before the accessibility options worked on my 8th gen Fire HD 8. Before I also had the empty screen. I'm using Launcher Hijack v3.

from launcherhijack.

drizzt09 avatar drizzt09 commented on July 21, 2024

I concur accessibility is broken in 6.3.0.0. had to upgrade to 6.3.0.1
It also doesn't just affect this app. It was same with my parental controls app. Was also missing the on off toggle and needed the OS update

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

Accessibility is not broken in the os, the menu was removed for security reasons. The new tablets as I am led to believe (don't own one so can't confirm) are using a newer fireos version that the firetv cube and stick have been using for a while now. This new version is based on a later android base version.
In fairness it's Google that have made the decision to hide it as it is a really bad security flaw allowing mostly full access to an unrooted device.
Amazon may have added the option back and that would be handy to know but you can still enable accessibility services via adb.

The command is in the next post and works for any service you wish to enable. This means you can't accidentally enable it but it is kind of a pain.

Hopefully that clears things up as the same issue has been posted on various threads a couple times now. Either that or people aren't reading this stuff -_-

Somebody mentioned widgets, in amazons infinite wisdom they block widgets on all 3rd party launchers. There are some adb commands that enabled widgets on any launcher of your choosing (can't remember what they are but some googling should bring it up). I never use them because Google being the top dogs have some kinda backdoor in fireos/android that allows their launcher, Google now which seems to be getting killed off :( , to use widgets on the device out of the box so I suggest you just use that. It's a solid launcher anyhow.

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

THESE COMMANDS ARE WRONG, USE THE ONES FURTHER DOWN THE PAGE!!!

Turns out the command was on another issue so here is it:
You can enable the service via adb with:

adb shell settings get enabled_accessibility_services
Copy the output from the above command and paste it into the command below

adb shell settings put enabled_accessibility_services (PASTE_HERE):com.baronkiko.launcherhijack/com.baronkiko.launcherhijack.AccServ
Hope that helps,

from launcherhijack.

drizzt09 avatar drizzt09 commented on July 21, 2024

The accessibility settings are there on fireOS 5 (android 5) and in FireOS6 (android 7) with the patch update.
It's also on my android phone (android 8.1) and my old phone (Android 6). It's needed for many apps such as parental controls. It was also on my galaxy tablet when it was android 5, 6 and 7. I have never not seen it there.(except fireOS 6.3.0.0)

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

I can't remember the details but the menu to enable them is defiantly missing on the firetv someone donated to me. Hence the need for the command.
It's a smart thing to do honestly, as I mentioned earlier it's really just a great way for hackers to install a virus onto your phone. You get to intercept all button presses, read what's on the screen in the currently loaded app etc. Basically you can lock someones device up, go through all their apps 1 by 1 and take any data that shows up on the screen. So take all your contacts, read your facebook, instagram, twitter and all that good stuff. All while the owner gets to watch his phone flicking through apps unable to do anything as you can't remove a battery in modern devices. Worse yet they can just silently watch everything you do.

Nasty stuff but it's pretty much the only way to do what this app does. Frankly if I didn't write the code I would be hesitant to install it myself.

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

Oops, command above are wrong though it doesn't seem they are needed. Correct one to get should be:
adb shell settings get secure enabled_accessibility_services
Set should be:
adb shell settings put secure enabled_accessibility_services (PASTE_HERE):com.baronkiko.launcherhijack/com.baronkiko.launcherhijack.AccServ

And as you know you also have to use:
pm grant com.baronkiko.launcherhijack android.permission.SYSTEM_ALERT_WINDOW

from launcherhijack.

dwaal avatar dwaal commented on July 21, 2024

Thanks. Works now with a little more jitter compared to v3.

The warning message emitted by the "to detect home button press" toggle sounds quite a little bit less scary: it can read text you type (except passwords). Is it text you type or any data showing on the screen?
Btw, why lump into one permission to ability to detect home button press and reading text you type?

Is every app able to "detect home button press" when you turn this on?

This all sounds a bit scary. Maybe I stick with my temporary workaround and just use the Amazon launcher. Once you put ALL the garbage apps from Amazon into a single "app folder" you are basically just left with the stuff you installed yourself from the PlayStore.
Also you obviously don't have to turn on "home button detection" ;)

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

It's not quite all 1 permission, there are multiple sub perms for each service mostly to reduce the noise an app would have to deal with, but it's easier to just enable it all as android perms are a pain. This app specifically intercepts home button presses and listens to the default fire launcher opening and the device booting. I.e. it's not spying or anything like that and if you don't trust me all the code is there to read :P
It also creates an invisible overlay window that isn't part of the accessibility services (that's what the other command enables). That also intercepts home button presses.

It is possible that other services will spy but assuming you trust the source you should be fine. Just like how any company that makes drivers for windows could be doing malicious things but you wouldn't worry about installing an nVidia driver for example.

My point was that it makes you think about what you are installing. Most people when told to enable a service in the settings will just do it, similar to how most people just never read the permissions page that comes up when installing an app.
Most people that have the know how to install adb, enable dev options and run the required commands know what they are doing and are aware of the risks. Very few can do all that yet not understand the dangers.
On top of all that Google's basic rule of thumb is if you break your device through the normal OS it's a security issue and therefore Googles fault (at least in part). If you break it through adb, well you are a dev so that's on you. Not to say they won't help recover your device but it's not a bug for them to fix.

In short the rule is: only install services from developers you trust. Same goes for regular apps but it's far less likely to break the device if you ignore the rule.

Finally if you can get v3 working it should be better, You will need to re-run the commands every time you install, update or reinstall the app.

from launcherhijack.

dwaal avatar dwaal commented on July 21, 2024

I trust you/LauncherHijacker - never implied otherwise :)

I was under the impression from your description that the app unlocks this permission for all apps - obviously not the case - I understand that now.

Finally if you can get v3 working it should be better, You will need to re-run the commands every time you install, update or reinstall the app.

Maybe you should update README.md and list the best path to get it working on FireHD 8 (2018 edition) to save you further trouble ;)

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

You are probably right but until I know exactly the best way I will have to leave it. I usually wait until I get at least 2 people saying a specific fix worked. If it's not 100% with v3 then something is likely still up. Be that the code, permissions or something else I don't know.

Honestly this whole project needs a face lift to make it clear for the newer devices including the TV range.

from launcherhijack.

Darko016 avatar Darko016 commented on July 21, 2024

I too am experiencing the same issues named above on a brand new 8th generation Fire HD 8. I did what davidfi01 mentioned, which is to enable Display over other apps under Special App Access. The problem is that you can't switch between tasks. The other bigger problem I experienced was pressing the home button several times to see if it would break Nova Launcher and surely it broke pretty much 3 out of 4 presses, meaning it went back to Amazon's Fire Home Page instead of Nova Launcher.

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

If you do the adb commands listed, the "allow display over other apps" and have tried both version then there really isn't a whole lot more I can suggest.
Really starting to feel like it's going to need a code rework which isn't easy without a device to test with or the time to do the development.

from launcherhijack.

drizzt09 avatar drizzt09 commented on July 21, 2024

@Darko016 restart the tablet. I have inconsistent home button till I restarted tablet then it was 100%

No resolution for the task switch at this time

from launcherhijack.

gregordr avatar gregordr commented on July 21, 2024

By the way, I think the ADB commands don't work anymore on the new tablet - not related to this app, but still wanted to inform everyone.

I yet have to try it with the Google Now launcher.

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

I don't see why they wouldn't. You can test if the accessibility service command works, simply:

  1. turn you device off fully
  2. start your device again
  3. see if the home button takes you to default launcher or your custom one (DON'T OPEN THE LAUNCHER HIJACK APP MANUALLY)

If the home works even 0.1% of the time the service is launched properly.

This works because this app starts on boot using the accessibility service. Without it you need to open the app to start the overlay which deffinatly does work on later OS's.

If you are worried about the overlay install Facebook messenger, open and return to home screen. Get someone to send you a message and you should get an overlay.

Hopefully those tests work out

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

So in a surprise to everybody (myself included) I managed to find some precious dev time. Now no promises but this build may work. I clearly haven't tested it for the new device as I don't have one but it works on the fireTV and the my previous generation tablet.

LauncherHijackV32.apk.zip

Give it a go and let me know how it works. You will need to run the aforementioned commands to get the accessibility service running.

Please let me know how it goes, if all goes well we are looking at a release.

from launcherhijack.

gregordr avatar gregordr commented on July 21, 2024

Pros:

  • Now asks for accessibility service permission on install/launch.
  • Works for me even without granting it
  • Works consistently (I sometimes see a glance of the fire launcher, but it always quickly takes me back to nova :)
    Cons:
    The app switcher doesn't work, like on the previous version

Thanks!

from launcherhijack.

drizzt09 avatar drizzt09 commented on July 21, 2024

perfect timing. We decided to give the tablet to my daughter for her birthday (today) instead of Xmas. I was just coming on to roll back to v2.1 when i check and saw your email.
It may be overkill but I.

  1. stopped v3
  2. cleared data on v3
  3. uninstalled v3
  4. installed v3.2
  5. launched v3.2 which prompted for draw over other apps, turned on
  6. selected my Apex Launcher
  7. went into Fire Settings > Accessibility > Services and turned on HOME detection

home button works (with a flicker of firehome) and the biggest change....recent app switcher now works for me.
Excellent job, thank you
Note: no commands were needed

from launcherhijack.

gregordr avatar gregordr commented on July 21, 2024

Interesting. Did you reboot? I wonder why the app switcher works for you, but not for me.

from launcherhijack.

drizzt09 avatar drizzt09 commented on July 21, 2024

spoke too soon, after restart app switcher no longer worked. :(

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

It shouldn't flicker at all if the requested launcher is still loaded (ie don't launch a game or anything). No idea why you are having issues with the app switcher, I haven't been able to replicate it on any device. This version disables the final backup and is the only thing I could think is stopping it. I haven't updated version numbers so make sure to delete the previous version before installing.
app-release.apk.zip

from launcherhijack.

drizzt09 avatar drizzt09 commented on July 21, 2024

nope now its worse. home detection working 1/3 times-ish and app switcher still not working. even after reboot

from launcherhijack.

drizzt09 avatar drizzt09 commented on July 21, 2024

went back to v2.1 as i have to wrap it and get stuff ready for her party.
I can try other builds at later times

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

app-release.apk 2.zip
Hmm, this build removes the second backup. Does the issue occur on 2.1? If this doesn't help the app switcher then I don't think there is anything more I can do without a device.

It does concern me it's so inconstant in the previous build. On my devices since the new update no matter what I do it never need the final backup.

Thanks for the feedback. good luck with the party, wish her a happy birthday :)

from launcherhijack.

gregordr avatar gregordr commented on July 21, 2024

Now the app switcher works :)

Old launcher still flashes for a bit, but I don't care personally. It still switches after less than a second.

It's perfect for me

from launcherhijack.

drizzt09 avatar drizzt09 commented on July 21, 2024

Ok I'll have to test at another time. 2.1 everything works except it has the flicker when you press home.
Original 3 was better with the home button. Didn't notice a flicker but app switcher (recents) doesn't work. You open app switcher and select any open app and it return to home (proper launcher home, but still home and not the selected app).

from launcherhijack.

arminth avatar arminth commented on July 21, 2024

Confirm works for me. Tried v3 with the adb-commands (there was nothing to paste actually) and it worked. Then I saw new version which worked for me as well.
Using Google now launcher and recent apps switch doesn't work. Will try apex launcher.
Thanks a lot! Makes my 53$ black Friday deal really usable!

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

Of all the things, I will take out that layer and clean up so it should hopefully work for all the devices. Use that one for now, I am trying to get this working with F-Droid to make updating easier. If/when I get that sorted I'm aiming to release this all. That build isn't optimised so do look out for that update. I will post here once it's out.
Thank you for testing guys.

from launcherhijack.

gregordr avatar gregordr commented on July 21, 2024

Ok I'll have to test at another time. 2.1 everything works except it has the flicker when you press home.
Original 3 was better with the home button. Didn't notice a flicker but app switcher (recents) doesn't work. You open app switcher and select any open app and it return to home (proper launcher home, but still home and not the selected app).

Can confirm, even after rebooting! The new version is like 2.1 but more consistent

Home button works, but with a flash sometimes
App switcher works

It works 100% of the time now! Unlike 2.1, I NEVER get stuck in the amazon launcher.

Thanks again for this amazing app, it made my 50 something$ investment also really usable! Have you considered putting up a donate link?

from launcherhijack.

arminth avatar arminth commented on July 21, 2024

Another remark regarding Task-Switcher/recent apps.
It works with Apex, Nova and also Google launcher. You just have to switch the tablet off and on again. Then it is working with any launcher I tested.
Again - thanks a ton!! Donate link is definetly something you should think about!

from launcherhijack.

arminth avatar arminth commented on July 21, 2024

I stand corrected!
Just found that the recent apps stops working after some time... This is obviously the crappy "ads on lockscreen"! The moment they appear on the lockscreen (and after a reboot, this is not yet the case immediately which is why it worked for me in the first place), recent apps is not working anymore.
Well, I can live with it! ;)

from launcherhijack.

davidfi01 avatar davidfi01 commented on July 21, 2024

So far, 3.2 works fine. I installed it, turned on overlay rebooted, upon reboot, choose Google now launcher. Rebooted to Google now. Went to settings, apps, and disabled overlay more for launcher hijack.

Only side effect I have so far is Amazon launcher glasses when home button pressed sometimes.

from launcherhijack.

davidfi01 avatar davidfi01 commented on July 21, 2024

Please add a donate button. This app needs your support!

from launcherhijack.

gregordr avatar gregordr commented on July 21, 2024

@davidfi01 Can you use widgets? I couldn't get them to work on Nova.

Also, can you tell me how to install Google Now launcher? I tried it, but when I tried to use it I just got a message stating there is a newer version, redirecting me to a non-existant page.

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

I will think about the donation button. I don't really like asking for money.
In regards to the ads you can either ask amazon support nicely and they will sometimes disable it for free, pay amazon or:

  1. Enable ADB on device & install ADB on computer
  2. Connect and verify on computer that device is connected with "adb devices"
  3. adb shell
  4. pm clear --user 0 com.amazon.kindle.kso
  5. Restart the device

It works on my device.

Also if you really want to stop the flicker from the default launcher you can simply remove/corrupt the firelauncher. There are 2 known issues with this, 1) when closing the last app in the app switcher you get kicked back to the lock screen. 2) You can't bring it back without making a new user account, the one you delete it on will be stuck without it forever. It's still much nicer in my opinion so I just have a second dummy account so I can fix my tablet if I break my main account.

Installing google now is odd, if you can find and install it you can't open it directly. But if you select it in LauncherHijack you can use it.
You should be able to get widgets on any launcher with:
appwidget grantbind --package <launcher_package_name> --user current
Launcher Hijack tells you the package name when selecting a launcher (the second line).

from launcherhijack.

gregordr avatar gregordr commented on July 21, 2024

appwidget grantbind --package <launcher_package_name> --user current

I tried that before, but it didn't work. Either way, now it does!

For reference, nova launcher is: adb shell appwidget grantbind --package com.teslacoilsw.launcher --user current

This: https://play.google.com/store/apps/details?id=com.google.android.launcher

Is not even selectable in LauncherHijack. I assume the package has been disabled in an update.
I will later try an older version.

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

The widget limit is a real shame. These darn new kindles -_-
If installed google should be selectable, it is selectable on my tablet. The package is com.google.android.googlequicksearchbox for some reason.

from launcherhijack.

arminth avatar arminth commented on July 21, 2024

Widgets on Google now launcher work.

from launcherhijack.

arminth avatar arminth commented on July 21, 2024

Is there something like a Team Win Recovery Rom and LineageOS for that thing?

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

There are custom roms but they wont help you unless you can unlock the boot loader which is infamously hard on the fire devices. If it were that simple this whole project wouldn't exist :P

from launcherhijack.

drizzt09 avatar drizzt09 commented on July 21, 2024

You mentioned you were going to post final on fdroid. Aptoide is a good store as well

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

Will have a look see, F-Droid is being a pain to publish to and not really what I wanted after further investigation.
Sadly I have noticed a pretty bad issue, basically my new home button capture doesn't work with software buttons. I thought I had tested but I guess not. So that explains all the reports you guys have been sending.
Will have to think about it but I have been at it for a good 8 hours today so I think it's time to call it and clear my head. My initial target of fixing the TV version was a success so this is top priority now.

In regards to donations, I was hoping to get this released today, and with it some front page comments regarding the issue, but alas no luck. So while I honestly don't want to encourage it as that's your hard earned money you can send it to my paypal with my email: [email protected] Please please don't feel obliged.

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

Ok some more testing is needed. This may or may not resolve the task switcher issue but its main purpose is to improve reliability. I would like to know how it effects both. It implements a new 4th capture system, hopefully it's works on your device. I would also like some logs if you can, ideally with some markers so I know when you did various things. Cheers.

app-debug.apk.zip

from launcherhijack.

davidfi01 avatar davidfi01 commented on July 21, 2024

I'll look at it later today. Thanks.

D

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

Sounds good. Sadly as I don't have the device I'm basically on hold whenever I release a test. Nothing to do but wait. Luckily there are a couple of you which speeds up response time a lot. Ah well a friend has just come over so time for a break.

from launcherhijack.

gregordr avatar gregordr commented on July 21, 2024

Ok some more testing is needed. This may or may not resolve the task switcher issue but its main purpose is to improve reliability. I would like to know how it effects both. It implements a new 4th capture system, hopefully it's works on your device. I would also like some logs if you can, ideally with some markers so I know when you did various things. Cheers.

app-debug.apk.zip

Alright!

Home button works perfectly, no flashes:

2018-12-02 16:36:01.231 28332-28332/com.baronkiko.launcherhijack D/HomeButtonService: Close System Dialog: homekey
2018-12-02 16:36:01.319 28332-28332/com.baronkiko.launcherhijack E/hg: action:android.intent.action.CLOSE_SYSTEM_DIALOGS,reason:homekey
2018-12-02 16:36:01.319 28332-28332/com.baronkiko.launcherhijack D/New Home: Home Press but new

Task switcher again goes back to home screen:
Opening task switcher:
2018-12-02 16:36:51.751 28332-28332/com.baronkiko.launcherhijack D/HomeButtonService: Close System Dialog: recentapps
Selecting any app:
2018-12-02 16:37:55.178 28332-28332/com.baronkiko.launcherhijack D/HomeButtonService: Close System Dialog: homekey

2018-12-02 16:37:55.202 28332-28332/com.baronkiko.launcherhijack E/hg: action:android.intent.action.CLOSE_SYSTEM_DIALOGS,reason:homekey
2018-12-02 16:37:55.202 28332-28332/com.baronkiko.launcherhijack D/New Home: Home Press but new

Now Im at the homescreen again :/
One more bug that exists:
Go to recent apps:

2018-12-02 16:37:55.178 28332-28332/com.baronkiko.launcherhijack D/HomeButtonService: Close System Dialog: homekey
2018-12-02 16:37:55.202 28332-28332/com.baronkiko.launcherhijack E/hg: action:android.intent.action.CLOSE_SYSTEM_DIALOGS,reason:homekey
2018-12-02 16:37:55.202 28332-28332/com.baronkiko.launcherhijack D/New Home: Home Press but new

Press home button:

2018-12-02 16:39:20.135 28332-28332/com.baronkiko.launcherhijack D/HomeButtonService: Close System Dialog: homekey
2018-12-02 16:39:20.163 28332-28332/com.baronkiko.launcherhijack E/hg: action:android.intent.action.CLOSE_SYSTEM_DIALOGS,reason:homekey
2018-12-02 16:39:20.163 28332-28332/com.baronkiko.launcherhijack D/New Home: Home Press but new

Now Fire launcher flashes shortly, but it's not a huge deal.

by the way, what is the reason that the former version wasn't good enough?

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

Great logs but not a great result. Does it behave differently if you revoke the system alert window permission and reboot your device?
adb shell pm revoke com.baronkiko.launcherhijack android.permission.SYSTEM_ALERT_WINDOW

To explain how why the previous version wasn't good enough, basically there are 4 ways it detects the home button being pressed.

  1. Hardware button detection, no use with software home buttons like on the fire tablets but used for the fire tv
  2. A system alert window, ie an invisible app that floats over the screen. This gets a chance to capture hardware presses before the underlying app and stop it going through. This allows me to stop the system getting the home press. So it's quick and no flash.
  3. A new layer that's only in that build I just gave you. This uses a broadcast receiver to monitor home intents, then it can launch the app. It's about as quick as method 2.
  4. The last resort, by far the slowest but more reliable than 2 and 3, uses an accessibility service to get notified when an application has loaded. In this case the default launcher. This isn't ideal because the fire launcher has to finish loading before you can even begin to load the new launcher.

So in the version before only method 4 was being used meaning you are basically using version 2. Not too bad but the big disadvantage is you can't do the trick I mentioned of earlier, deleting/corrupting the default launcher to reclaim the resources and make it almost perfect.

Hopefully that makes it clear. Do let me know how changing the perm effects results. Also can you get the line that starts "Launcher Hijack Service Started" as I put your device name there and need to know it to selectively remove parts for the new device. Thank you.

from launcherhijack.

gregordr avatar gregordr commented on July 21, 2024

Alright, will try out later today!

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

So the task switcher works perfectly? And home works 100% of the time? You edited your response....

from launcherhijack.

gregordr avatar gregordr commented on July 21, 2024

Yeah sorry, i was wrong about what i said.

After taking the logs I uninstalled it and installed the older version again.
My mistake, sorry.

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

Ah that makes sense. I just getting dinner so take your time :)

from launcherhijack.

gregordr avatar gregordr commented on July 21, 2024

Alright, tried that and still no luck.

By the way, does that mean that you are trying to capture the homebutton press, but for whatever reason it also captures any touch in the app-selector?

I couldn't find the line you wanted, only: 2018-12-02 22:48:06.001 7239-7239/com.baronkiko.launcherhijack I/isMyServiceRunning?: false

2018-12-02 22:49:54.608 7479-7479/com.baronkiko.launcherhijack D/HomeButtonService: Close System Dialog: recentapps 2018-12-02 22:49:57.767 7479-7479/com.baronkiko.launcherhijack D/HomeButtonService: Close System Dialog: homekey

Works much less consistently now :/ How about in the homebuttenservice-floating window you color the window in a tint, or just a color, so we can see where it is? Maybe that would help us find out why it takes us home when we use the task switcher.

Also, on which branch is the new apk?

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

Ok not finding that line I mentioned is kinda concerning. It must have appeared given some of the previous logs. It only gets printed once straight after you enable the service.

Also it appears revoking the perm did nothing. Needs a new builds for the test :( I was aiming to remove the home button service messages.
Will try get you that soon.

Changing the colour of the window, for some unknown android reason changes it's behaviour so it's not worth it. Also as I said I'm trying to strip it out to see what happens without it.

All the new stuff is on the fire TV branch, the only one that has been updated in months. The new broadcast receiver method isn't up yet as I'm not sure it will help anything.

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

app-debug.apk 2.zip
Bam, probably last one of the night. Am getting sleepy.

from launcherhijack.

gregordr avatar gregordr commented on July 21, 2024

Task switcher still doesn't work :/

2018-12-03 20:26:15.344 19981-19981/com.baronkiko.launcherhijack V/AccServ: Launcher Hijack Service Started on Amazon KFKAWI

Task switcher opened:

2018-12-03 20:26:15.344 19981-19981/com.baronkiko.launcherhijack V/AccServ: Launcher Hijack Service Started on Amazon KFKAWI
Selecting app:
2018-12-03 20:28:11.778 19981-19981/com.baronkiko.launcherhijack E/hg: action:android.intent.action.CLOSE_SYSTEM_DIALOGS,reason:homekey 2018-12-03 20:28:11.779 19981-19981/com.baronkiko.launcherhijack D/New Home: Home Press but new 2018-12-03 20:28:11.938 19981-20377/com.baronkiko.launcherhijack D/mali_winsys: EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000

from launcherhijack.

drizzt09 avatar drizzt09 commented on July 21, 2024

Im not great at reading android logs but doesnt that look like its selecting home instead of the app selected... which would make sense as thats how it behaves

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

Yeah for some reason a home request is being issued by the system. Good news if you do have a separate device id (KFKAWI) so I guess I could disable the home button while the task switcher is open on the new tablets. Is it only the task switcher bug that remains? Any flickering of any variety?
I got everything I need from logs now btw so you don't need to worry about that anymore.

from launcherhijack.

gregordr avatar gregordr commented on July 21, 2024

I couldn't find any other bug, except that the launcher appears as an app in the app switcher on some occasions, but that doesn't bother me.

Flickering occurs sometimes when closing apps with the home button, and always when doing Recents tasks -> home. If I press home on my homescreen, I can sometimes get it to switch to firelauncher for some reason, until I press home again or open the switcher.

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

app-debug.apk 3.zip
This build should disable the hijack while the app switcher is open assuming the menu has the same class name. Let me know how it goes :)

from launcherhijack.

gregordr avatar gregordr commented on July 21, 2024

Task switcher still not working

Edit: Restarted, now it seems to work. @BaronKiko

Yes, works well now! But my launcher appears as a recent app, if that's important.

Should I try uninstalling the fire launcher?

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

Can you get the log after you select another app in the app switcher?

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

Great, you can try uninstall it but I suggest you make a new user account to test first. Once broken there is no bringing it back on that account.

Edit: For the launcher appearing in the recents, try close it then don't open it manually and just use the home button. It shouldn't add it but it can't remove it.

from launcherhijack.

gregordr avatar gregordr commented on July 21, 2024

Great, you can try uninstall it but I suggest you make a new user account to test first. Once broken there is no bringing it back on that account.

Any way to back up all the data? Or every time something goes wrong I have to start a new account?

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

I would suggest you do a backup of your entire device just generally to be safe.
But as long as you don't do anything important on that second account then you can simply use it for testing until you are comfortable it works.
Once happy delete the testing one, make another just for use if you do break something then delete the default on your main account and job done. You don't technically need the recovery account as you can log in and make one even without the home screen but it's just makes recovering stuff quicker.

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

We have a release candidate that should work across all devices out of the box, bold claims I know :P
Please test it on any Fire devices you can. I'm doing a new help writeup then looking to release if all goes well.
app-debug.apk 4.zip

from launcherhijack.

thechanch avatar thechanch commented on July 21, 2024

On your debug APK 4 above, can't click cancel or ok when selecting any launcher, they're both greyes out. Fire 8hd 6.3.0.1

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

@andrewcianci Very strange, it's just a default android dialog so I have no idea why it wouldn't work. Maybe try reboot your device and/or fully reinstall the app (go to the manage installed page -> Launcher hijack -> menu -> uninstall for all users)

@Somethingweirdhere Btw I added instructions for corrupting the default launcher in the new help file: https://github.com/BaronKiko/LauncherHijack/blob/master/HELP.md

from launcherhijack.

drizzt09 avatar drizzt09 commented on July 21, 2024

@andrewcianci all builds have been greyed out for me. but still works to select it.
i figured it was just a colour scheme looking like its greyed out but not really

from launcherhijack.

thechanch avatar thechanch commented on July 21, 2024

[update] so the buttons are greyed out, but still selectable. hitting OK sets the launcher (evie in this case) but it is not hidden in the task manager (both evie and launcher hijack 3.2 are visible in the task switcher). so, for now it works 👍

from launcherhijack.

drizzt09 avatar drizzt09 commented on July 21, 2024

@andrewcianci what happens if you swipe or x either of them form task/recents switcher/manager

from launcherhijack.

thechanch avatar thechanch commented on July 21, 2024

@drizzt09 IMG_1014.mp4.zip

from launcherhijack.

drizzt09 avatar drizzt09 commented on July 21, 2024

@andrewcianci what happens if you press the home button without crashing the 2 two?
just open recents and press home button

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

I'm going to assume that's just the style choice Amazon has chosen for the dialog boxes. I apply no styling and they look different on every device I know of. As long as the buttons work I choose not to worry about it.
Launcher Hijack should appear in the recents as it's just an app and doesn't need to be open for the service to work. Your chosen launcher however shouldn't but after watching that video that's the least of your concerns.
As has been discovered frequently throughout this thread rebooting after setting up fixes a lot of issues. And clearly make sure the accessibility service is enabled. Assuming you have already done that or doing that makes no difference I need those logs

from launcherhijack.

thechanch avatar thechanch commented on July 21, 2024

unable to grab logs right now, i'll try tonight. accessibility service is enabled and rebooted a handful of times.
@drizzt09 for reference, pressing home drops me to the stock launcher, and then hitting home again flashes screen back into evie.

from launcherhijack.

drizzt09 avatar drizzt09 commented on July 21, 2024

if you go into recents and swipe away everything. it should auto return to home... and if working properly should be eevie. although i found eevie didnt work well on fire tablet 7. which is why i switched to using Apex. I have not tested Eevie on Fire tab 8 since Apex worked so well on FT7 i stuck with it

from launcherhijack.

BaronKiko avatar BaronKiko commented on July 21, 2024

Oh something to note, the button doesn't override while the recents menu is open. Somebody in this thread (don't want to read it all again to find out) reported issues regarding it so I disabled it in that case. You can go into the new settings menu in launcher hijack and change it but you probably wont be able to switch apps without it.

It does look like the service isn't running, I had the issue where the service wouldn't start regardless of the settings but thought it was just development. If that's the case you have to:

  1. Do a complete uninstall for all user as I mentioned earlier
  2. Do a full reboot so shutdown wait a couple seconds then boot again
  3. Reinstall and all the usual

I think it's due to not changing the version number.
If all that doesn't help then it's really about those logs. I'm not planning on doing any more dev today, spent a good 10 hours so there is no need to rush.

from launcherhijack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.