yashsingh1/xdaforums huggingface dataset:
[Fire TV General] dcarvil:
Yes, I did allow root in Magisk. It is going back to the home screen, not back to the launcher.

I had to do adb install -r to get it to work.

[dcarvil@XFX firestick]$ adb install FireTV-Settings.apk

Performing Streamed Install

adb: failed to install FireTV-Settings.apk: Failure [INSTALL_FAILED_ALREADY_EXISTS: Attempt to re-install com.markus.firetools without first uninstalling.]

[dcarvil@XFX firestick]$ adb install -r FireTV-Settings.apk

Performing Streamed Install

Success

I still have the problem with the options going back to the home screen, but I haven't removed /system/app/FireTV-Settings.apk yet. Is there anything else I need to remove? My plan is to reboot recovery, remove /system/app/FireTV-Settings.apk, clear cache and dalvik, and reboot.

Thanks.
[Fire TV General] 0815hoffi:
Boot to recovery, remove /system/app/FireTV-Settings.apk, clear cache and dalvik, and reboot.

adb install FireTV-Settings.apk

Should work
[Fire TV General] dcarvil:
I did that. The first time I go to Settings, Network, I get the Network screen. After that, I get the Home screen whenever I press any of the settings options. (This is what happened before.)

I did "adb install -r FireTV-Settings.apk" just in case, but that does not even give me the first Network Screen.

The sequence of events in the logcat is click Settings, click Network. It displays the Home screen.

Thanks.
[Fire TV General] 0815hoffi:
Try to run on adb shell

"su -c am start -a com.amazon.device.settings.action.PREFERENCES -n com.amazon.tv.settings.v2/.tv.preferences.PreferencesActivity"

What happens?

I Think you have a su Problem.

Reflash magisk 20.4 in twrp.

Network is the only setting who rund without su.
[Fire TV General] dcarvil:
That brings up the PREFERENCES screen.
[Fire TV General] 0815hoffi:
Is

adb shell 'su -c mount -o rw,remount /system'

Working ?

---------- Post added at 08:34 PM ---------- Previous post was at 08:32 PM ----------

Did you get After reinstall the magisk allow screen?

---------- Post added at 08:36 PM ---------- Previous post was at 08:34 PM ----------

Have you any module installed in magisk?

Try to set Core Only Mode in magisk.
[Fire TV General] dcarvil:
Reflashing Magisk seems to have fixed it. It does flash the home screen after I select one of the settings, though, but then proceeds to the screen for the selected setting. Also, pressing return from the selected setting takes me back to the home screen instead of the settings menu.

Thanks for the help.

---------- Post added at 07:53 PM ---------- Previous post was at 07:43 PM ----------

adb shell 'su -c mount -o rw,remount /system' is now working. It worked for a while after I reflashed Magisk a day or two ago, but was not working this morning when I tried to install the new apks.

I did not get the Magisk allow screen after reflashing Magisk. Magisk Manager shows FireTV Settings is allowed su.

I have no Magisk modules installed. I set Core Only Mode, and rebooted.

Thanks.
[Fire TV General] SweenWolf:
I am a neat freak, and the fact that you pushed an apk in /app is annoying me,

You don't push an apk directly into system in 5+

The app should be like

/system/app/Settings/Settings.apk.

---------- Post added at 02:24 AM ---------- Previous post was at 02:19 AM ----------

You should use package name to uninstall any app, or delete the app from path.

The launcher will work with or without Settings app. Their is extra coding to make problems not happen.

I'll look into problems tomorrow.

And as I said earlier I don't like having "SU" in any application.

It causes problems in app if you have problems with SU.
[Fire TV General] dcarvil:
Noted. Sorry for causing problems. So there will not be a problem if I have to reboot without a Settings app? That is what I was try to avoid, due to problems with adb and remounting /system.

Thanks for the info.
[Fire TV General] SweenWolf:
There will be no problem, it will just show a message "Settings not found" if you click on the button. No bootloop or anything.

My app doesn't need root to work. You can flash it in TWRP and you will be good to go.

If i get time, I will implement Settings inside the launcher, but it will be just buttons for now, coding takes less time, designing takes more, if the code works without problem then I will change the design.

I will do it tomorrow if I got time.

His app needs root access, so its not necessarily that the file "Should" be in the root FS, you can install it normally. It will still work. But mine doesn't need Root access that's why it needs to be in the Root System Directory.

(Linux things)
[Fire TV General] 0815hoffi:
[MENTION=7352779]SweenWolf[/MENTION]

Do you have a idea to make the settings without su?
[Fire TV General] SweenWolf:
Well yeah, I do (It may work, but deep down I know it will work) can cause glitches at first. The only reason not to bulk code(Things can go bad and hard to debug). Remember this, System apps doesn't need Superuser permissions. They have their own special permissions. You might want to learn some things about linux. (I think you have used linux).

But anyways I need to sleep now, I'll do this tomorrow if i got time

I must say (I am bad at designing)
[Fire TV General] SweenWolf:
To solve this

I already said

Use

adb install -t FireTV-Settings.apk

It will solve this problem
[Fire TV General] SweenWolf:
Last update from my side.

download the launcher and push it into system.

restart, (wolf launcher is mandatory.)

Pressing Setting after long press should open Settings

Also added a launcher Icon for settings (Messed up code. Don't have time to fix.)

Settings is inbuilt. Check and if you have any trouble ask [MENTION=10401573]0815hoffi[/MENTION]

Handing over the project to [MENTION=10401573]0815hoffi[/MENTION].

He'll handle it furtheron.
[Fire TV General] 0815hoffi:
Is working :good:

Can i get the SourceCode to play with it?

AndroidManifest.xml is the Trick to get my app work without root i Think.
[Fire TV General] SweenWolf:
yeah

Download and do your thing.
[Fire TV General] 0815hoffi:
Perfect Thanks.

I will create a new Thread later for this.

:) ;) :)
[Fire TV General] caseydang0407:
Hello,

I did all the steps and able to choose LeanbackLauncher in FTVLaunchX but nothing happens after that although I clicked home multiple times. When I am on the main screen and click home, it is just a quick blink. Do you have any idea how can I fix this? My device is Firestick 4k.

Thank you
[Fire TV General] 0815hoffi:
Open ADB Shell, connect to your Fire TV and run the following commands:

"pm grant de.codefaktor.ftvlaunchx android.permission.WRITE_SECURE_SETTINGS"

"settings put secure enabled_accessibility_services de.codefaktor.ftvlaunchx/de.codefaktor.ftvlaunchx.HomeService"

"settings put secure accessibility_enabled 1"
[Fire TV General] caseydang0407:
It's still. I also tried to restart it but still. Do you have any other ways to get his done?
[Fire TV General] SweenWolf:
Try using another launcher.

Is there any red text on bottom of your screen?
[Fire TV General] caseydang0407:
Let me try another launcher. Do you recommend any launchers? There is red texts that said no permission in FTVLanchx before the codes, but after I enter the codes, it's gone.
[Fire TV General] SweenWolf:
Try ATV launcher
[Fire TV General] caseydang0407:
Worked now. I wonder what would be the problem because I see some people can install the LeanbackLauncher with FTVLaunchX
[Fire TV General] SweenWolf:
On firestick 4k?
[Fire TV General] caseydang0407:
Firestick 2nd gen (without 4k). Is there any way that you can force the launcher start when you turn on the firestick? I'm sorry for extra request because I want to make it as simple as it could be for the elderly users.
[Fire TV General] SweenWolf:
https://xdaforums.com/showpost.php?p=82328281&postcount=225

Go to this link.

Download FireTV Settings.apk

It will launch at boot, you can also find launchers there

If you have pc then use

adb install -g FireTVSettings_1.2.apk to install

And also enter the commands or you will get voice in hulu youtube and netflix
[Fire TV General] caseydang0407:
That's awesome! Thank you Mr. Wolf!
[Fire TV General] SweenWolf:
Appreciate it
[Fire TV General] dcarvil:
[MENTION=7352779]SweenWolf[/MENTION] [MENTION=10401573]0815hoffi[/MENTION]

Back and Home buttons are working as expected. Initial boot from recovery mode goes to the FireTV Settings screen instead of the home screen. If that is not the intended behavior, it is probably a problem with my firestick. I am having problems with selecting settings again - some work, some don't. This time re-flashing Magisk did not help. I assume it is Magisk because preferences does not work from settings menu, but does work with this command.

"su -c am start -a com.amazon.device.settings.action.PREFERENCES -n com.amazon.tv.settings.v2/.tv.preferences.PreferencesActivity"

I'm going to wipe my firestick and install a clean factory image, but don't have the time to do it right now - probably this weekend.

Thanks to both of you for your hard work and help on this.
[Fire TV General] SweenWolf:
Don't format your FS, all the things you encountered are in fact bugs (in my app).

Nothing wrong with your firestick.

One thing you may want to do however.

Open magisk manager and uninstall magisk.

It will restore stock boot image.

After that open applications and clear data and cache of Magisk Manager.

And uninstall Magisk Manager

Reboot.

Let it boot normally.

Open TWRP, wipe cache, reboot into recovery once again. Install latest magisk image.

Your problem should be solved.

And the launcher, I have Handed the project so I will not work on it now.

If you have any problems with Firetvsettings then I will sort that out.

Still maintaining FireTVSettings.

No longer maintaining KFTV Replacement.

Hope Your Firestick works normally.
[Fire TV General] 0815hoffi:
I am working on it.

New Version in the next days.........
[Fire TV General] dcarvil:
I got as far as uninstalling Magisk. I couldn't do anything with Magisk Manager because Applications is one of the settings that did not work. I couldn't use the "su -c am start ..." command to open Applications, because su is gone. (I didn't think to try it without the su.) I booted to TWRP to remove Magisk Manager from there, but all applications are gone, including Wolf Launcher. Now it boots to FireTV Settings, and displays an error saying the launcher cannot be found. Of course nothing works from the settings menu.

ADB no longer connects, so I can't use it to install Wolf Launcher. The only option I can think of is use TWRP to copy the Wolf Launcher apk to /data/app/(what should I put here). What should I put there? Any other ideas?

Thanks.
[Fire TV General] 0815hoffi:
You can use the appmenu on long press menu

1st Icon to uninstall the manager with the options key.

Boot to twrp.

adb push wolflauncher.apk /sdcard/

adb shell

mount -o rw /system

mkdir /system/priv-app/wolf

chmod 0775 /system/priv-app/wolf

chown root:root /system/priv-app/wolf

cp /sdcard/wolflauncher.apk /system/priv-app/wolf/wolflauncher.apk

chmod 644 /system/priv-app/wolf/wolflauncher.apk

chown root:root /system/priv-app/wolf/wolflauncher.apk

reboot

---------- Post added at 07:56 PM ---------- Previous post was at 07:50 PM ----------

For magisk.

Boot twrp

adb push Magisk-v20.4.zip /sdcard/Magisk-v20.4.zip

adb shell twrp install /sdcard/Magisk-v20.4.zip

---------- Post added at 07:57 PM ---------- Previous post was at 07:56 PM ----------

For setting use my settings app , start from launcher.

---------- Post added at 08:19 PM ---------- Previous post was at 07:57 PM ----------

How you delete magisk.

What was the command you used?
[Fire TV General] dcarvil:
I no longer get the launcher is missing, after following your instructions above. I flashed Magisk from TWRP. I didn't install your settings app, because it was not on my firestick, and adb is still not working.

I can get to some settings using a keyboard, but not all of them. The remote was no longer working, but I was able to pair it. The main problem is adb will not connect. I suspect I need to allow it in Developer Options but the "My Fire TV" setting is not working. I assume that is where the Device settings are. Home does not take me to the launcher screen, even though I don't see the launcher is missing message at boot.

At this point, I think my best option is to restore from a TWRP backup. Hopefully that works - I understand TWRP restore doesn't always work. Do you have a better idea?

Thanks for the help.

**Edit

I uninstalled Magisk from Magisk Manager, per SweenWolf's instructions.
[Fire TV General] 0815hoffi:
Whats the output if you try the adb shell command.

No device?

try this.

1: adb reboot recovery

2a: copy on windows from C:\Users"your username"\.android\adbkey to the folder where the adb.exe is located.

2b: copy on windows from C:\Users"your username"\.android\adbkey.pub to the folder where the adb.exe is located.

3:

adb shell mount /system

adb push adbkey.pub /sdcard/adbkey.pub

adb shell cp /sdcard/adbkey.pub /data/misc/adb/adb_keys

adb shell chmod 644 /data/misc/adb/adb_keys

adb push Magisk-v20.4.zip /sdcard/Magisk-v20.4.zip

adb shell twrp install /sdcard/Magisk-v20.4.zip

adb reboot

adb kill-server
[Fire TV General] dcarvil:
This is with the USB cable connected:

[dcarvil@XFX firestick]$ adb devices

* daemon not running; starting now at tcp:5037

* daemon started successfully

List of devices attached

This is no USB cable connected:

[dcarvil@XFX firestick]$ adb connect 10.0.0.114

* daemon not running; starting now at tcp:5037

* daemon started successfully

failed to connect to '10.0.0.114:5555': No route to host

Things have gotten worse. After about 10 minutes I get the launcher home screen, but loose WiFi. WiFi scan detects no networks. I rebooted, and 10 minutes later had it happen again. I'm going ahead with the TWRP restore. I think the current problems are not fixable.

Thanks.
[Fire TV General] 0815hoffi:
Ok,

are you sure you have only deleted the magisk manager in twrp ???

its looks like you have done a factory reset.

no matter , try your backup.

You can try this on recovery to:

adb shell

mount data

echo -n 'adb' > /data/property/persist.sys.usb.config

Verify options are not present before do it: adb shell "grep 'persist.service.adb.enable' /system/build.prop"

adb shell

mount system

echo '' >> /system/build.prop

echo '# Enable ADB' >> /system/build.prop

echo 'persist.service.adb.enable=1' >> /system/build.prop

echo 'persist.service.debuggable=1' >> /system/build.prop

echo 'persist.sys.usb.config=adb' >> /system/build.prop

copy on windows from %USERPROFILE%\.android\adbkey to the folder where the adb.exe is located.

copy on windows from %USERPROFILE%\.android\adbkey.pub to the folder where the adb.exe is located.

adb push adbkey.pub /sdcard/adbkey.pub

adb shell cp /sdcard/adbkey.pub /data/misc/adb/adb_keys

adb shell chmod 644 /data/misc/adb/adb_keys

If this also not fix the problem:

twrp >

adb shell

mount system

echo '' >> /system/build.prop

echo 'ro.secure=0' >> /system/build.prop

echo 'ro.debuggable=1' >> /system/build.prop

echo 'ro.adb.secure=0' >> /system/build.prop
[Fire TV General] dcarvil:
I didn't delete anything in TWRP, all apps were already gone when I opened TWRP. I did the restore before I saw your message about adb keys. The restore was from yesterday morning, which has your settings app in a separate apk. Everything works except the remote (probably because I re-paired the remote earlier today). Remote settings detect the remote, but none of the remote buttons work. So far I have not be able to delete the remote and re-pair it, but I am going to take a break and work on that later. I have other options - keyboard and remote app on my phone.

I'm going to leave things alone until you have a new app to try.

Thanks again for all your help.

**Edit

BTW, I restored by wiping system and data, restored system image, vendor image, data, and boot.
[Fire TV General] SweenWolf:
Sorry for getting you in trouble.

I'm sleepy right now so may not tell you right code but he will do that. I know

So one thing you can do, without loosing anything is

Like you pushed wolf launcher to priv app and made it a system app

You just have to push the amazon launcher back to its place(the codes are the same you just have to change app name. It can be done by twrp and your system will find settings once again.

(If your boot.img has not enabled adb then it will be disabled on boot, you can unpack ramdisk and set things there but i don't recommend doing that)

Just restore launcher app and delete its data from twrp

(Ask him, he will tell)

Don't do anything else

---------- Post added at 01:38 AM ---------- Previous post was at 01:36 AM ----------

Seems like damage done
[Fire TV General] dcarvil:
No problem with getting me in trouble - I'm used to it. Everything works now except for the remote, and I'll get that working later.

Thanks.
[Fire TV General] SweenWolf:
By the way adb doesn't require su, you can launch apps from adb without using su

you can try

adb shell am start -n packagename/classname

---------- Post added at 01:48 AM ---------- Previous post was at 01:44 AM ----------

Pair it again by pressing home button for 10 sec

If you have adb working

adb shell am start -n com.amazon.tv.settings.v2/.tv.applications.ApplicationsActivity

I don't know why i wrote command to open applications

adb shell am start -n com.amazon.tv.settings.v2/.tv.controllers_bluetooth_devices.ControllersAndBluetoothActivity

IMO

Restoring a TWRP backup never puts a device into clean state rather than flashing a firmware on the device.

On flashing a firmware it replaces everything that the device needs and starts fresh, whereas a twrp restore without data and cache wipe goes further ahead

Seems like you have other plans, morning i will create a twrp flashable zip for the launcher
[Fire TV General] dcarvil:
I got the remote working by using the Fire TV Remote app to delete the remote, so I could pair the remote again. The initial problem I had trying to delete the remote using the keyboard was I couldn't find the menu key on the keyboard. The menu key was needed to delete the remote.

At least I now have some confidence in restoring a TWRP backup, so it was a useful exercise.

The TWRP flashable zip for the launcher would be useful, and would eliminate a lot of user errors in install the launcher.

Thanks.
[Fire TV General] SweenWolf:
keep trying ;)

If anything goes wrong with alternate launcher (on system level) flash it using TWRP
[Fire TV General] Tabs78:
Hi.

Sorry for my english.

Can i use this software ti start kodi on the boot?

How?

Inviato dal mio VOG-L29 utilizzando Tapatalk
[Fire TV General] 0815hoffi:
Yes FTVLaunchX should work
[Fire TV General] clevergirl:
so i tried to dig through some of the super outdated threads, i allowed the firestick update and ended up at 5.0.5, and then tried to root it with KingRoot-4.1.0.245.apk, but that fails.

no idea how to proceed oO

what is this kingroot even trying to do? dirtycow e.g. should work on any of those old versions, no?
[Fire TV General] TimmyP:
This died tonight for me. I think an update killed it.
[Fire TV General] SweenWolf:
Although yesterday's update was a major update but all is functioning correctly.
[Fire TV General] TimmyP:
Omg thank you. The update happened in the middle of a movie and killed everything. Rebooted to FireOS launcher and stuck. Needed to run the app again and just re-select LaunchX, which was already selected. I guess a setting got overwritten. Phew.
[Fire TV General] rapidjee:
I'm using on my Shield TV. Can anyone let me know -

1) How to switch between a selected launcher and the default android tv launcher?

2) Double pressing the home button is not showing the running apps any more. Is there a way to open it?
[Fire TV General] ktdt00:
I just read the entire thread and got all confused. It starts out about FTVLaunchX and then gets all garbled up with other things like a wolf launcher and settings APK's and what-not. Can someone help me decipher? I've got a rooted Stick 2 and FTV 2 and looking for a great launcher replacement tied to the Home button and proper settings functionality. Do I just install FTVLaunchX and my chosen launcher or do I need all the wolf and settigns stuff too? I've been rooting and XDA'ing for years so sorry if this seems dense. TIA!
[Fire TV General] 0815hoffi:
You just only need FTVLaunchX and launcher off your choice.
[Fire TV General] SweenWolf:
Download FTVLaunchX and a launcher of your choice.

give it permissions (find it in OP).

open FTVLaunchX,

select a launcher

press Home.

---------- Post added at 07:14 AM ---------- Previous post was at 07:10 AM ----------

Open FTVLaunchX select any other launcher.

Double Press Home button, (if your shield remote has Menu (context) key then press and hold it then double tap Home button.)

it SHOULD work (not saying if it WILL work, i can or i cannot).
[Fire TV General] brick00444:
You would be better off posting in the Shield forum.
[Fire TV General] SweenWolf:
can you provide logcat for shield?
[Fire TV General] SweenWolf:
Update for FireTVSettings and helper.

need someone with shield or FireTV Cube to provide logcat.

[EDIT]

So noone interested, my cue to drop it.
[Fire TV General] Peat1980:
Settings Helper 1.5 can be installed but is not found in apps anymore after installing on Firetv Stick 4k.
[Fire TV General] SweenWolf:
It uninstall itself,

You don't need that after the FireTVSettings gets the permissions.

So remember,

Install FireTVSettings (don't open)

Install Helper, (don't open)

Enable debugging in settings (restarting debugging solves most of the issues)

After debugging is turned on, open hepler, it will ask for USB debugging allow it

It will automatically set things up and open FireTVSettings and also will uninstall itself after that
[Fire TV General] pourim:
Hello! I’ve installed FTVLauncherX on a Sony XG 9505 TV with Android 9 Pie for testing. The program works great by switching the original launcher to ATV Launcher Pro. There is only one feature: the volume control on the TV does not work when you hold the button. The volume increases or decreases by only one step per press. It doesn't matter which launcher I switch to. As soon as I activate FTVLauncherX, the volume control stops working properly. I understand that the program was not developed for the TV and Android 9, Is there any solution to the problem?
[Fire TV General] Peat1980:
So that little settings shortcuts menu that settings helper was opening is no longer there?

After latest FireTV-Update long pressing home gets you only to wifi settings and one cannot escape there to the rest of the settings, only exit.
[Fire TV General] SweenWolf:
It might seem confusing,

If you used the previous helper, then that could launch the Amazon hud (Apps, sleep etc) with help of adb, which in my case didn't work all the time, and because that helper app could launch the hud, that's why it was needed.

In the new FireTVSettings, I've made many changes, and the helper app no longer opens the Amazon hud, then it can be removed because its for a single use (to give the main app permissions).

To launch settings or amazon hud (press and hold (menu or context) key and home key at the same time.
[Fire TV General] Boomissy:
You were able to change Long Home Press from "Network" to "Settings" in the attached app-release.apk file of post #177.

My reply in post #181 had confirmed that it worked, and also (before you edited that post), what was originally said below:

This was before the previous helper (that could launch the Amazon hud with Apps, sleep etc, with the help of adb).

Does this mean you cannot to do the same as above and change Long Home Press from "Network" to "Settings" with FireTVSettings_-_v1.5.apk (and/or FireTVSettings_-_Helper_v1.5.apk)?

Thanks again for your work.
[Fire TV General] SweenWolf:
I can do that again, all I'm saying is i have changed many things i don't even remember from where i started, lol