yashsingh1/xdaforums huggingface dataset:
[Fire HD 8 and HD 10 General] DragonFire1024:
This really works best if you 'uninstall' Fire Launcher. Please read the whole post, including the very bottom about what does and doesn't work. This will stop flickering and allow Nova or whatever launcher you prefer, to be default launcher. If you choose to 'uninstall' Fire Launcher, after completing the steps, it is advised to boot into recovery, wipe the cache and reboot. That will ensure Nova takes over. Otherwise here is how to undo the appwidget:

usage: adb shell appwidget revokebind --package <PACKAGE> [--user <USER_ID> | current]
<PACKAGE> an Android package name.
<USER_ID> The user id under which the package is installed.
Example:
# Revoke the permisison to bind app widgets from the "com.package.name" package.
adb shell revokebind --package com.teslacoilsw.launcher --user current

OR

adb shell revokebind --package com.teslacoilsw.launcher --user 0

I would run both commands to be sure.
[Fire HD 8 and HD 10 General] onsideways:
I've tried to load Google Now Launcher but even that won't work. When I go to install it & open it up, a message pops up saying that if I want to try Google Now Launcher, I need to set it as my default. I click okay and it takes me into the FireOS settings where I don't have that option. I even tried loading it into the HijackLaunch app (same as I used for Nova) but nothing. Must be doing something wrong?
[Fire HD 8 and HD 10 General] DragonFire1024:
adb shell appwidget grantbind --package package.name.of.your.launcher --user 0

or

adb shell appwidget grantbind --package package.name.of.your.launcher> --user current
[Fire HD 8 and HD 10 General] Provided:
Success!!

To DragonFire: What haven't you successfully done for your kindle?

Answer: Nothing:laugh:
[Fire HD 8 and HD 10 General] DragonFire1024:
Well if I can learn, maybe port over Nexus ROM to the HD 8. I have a feeling more effort for root is coming soon. They just sold a lot and are rolling out a new HD 10. That's almost about it. My rooted Fire 7 is awesome, Nexus of course. Now ask what I did to my Galaxy S7 lol
[Fire HD 8 and HD 10 General] Provided:
I thought your fire 7 was unrooted on 5.4.0.0?

Im guessing you rooted, changed ROM, and maybe even changed os on your galaxy.

I agree that more and more people are looking for possible root methods for the recent fire os. Can't wait for positive results!

Question: I have a kindle that is not registered. I would like to change the name of the kindle, where it says "My Fire" at the top left corner of the screen.

Is this possible without root or registration? If it helps, I'm running fire os 5.4.0.0. I would not like to register it. Amazon knows to much about me anyway...

Thx
[Fire HD 8 and HD 10 General] DragonFire1024:
I have a Fire 7 and an HD 8. The 7 is rooted, was on 5.3.1. my S7 is rooted, and almost wiped of Samsung except for the logo lol. Bootloader's is locked so no ROM for it.

'My Fire' will stay My Fire even with root. That's an Amazon function. If you look up the thread in either the Fire 7 or HD 8 section titled 'add Google contacts, get a neat surprise' you can add a similar function through that. I'll link you to it when I get home.
[Fire HD 8 and HD 10 General] Provided:
Ok thanks, but i dont need a link because I had already done that over the weekend already.
[Fire HD 8 and HD 10 General] rosteven1:
Newbie Question

Help - Is there anyway that I can get "Step by Step" Newbie level instructions; I can't get ADB SDK to open up to a command prompt on my PC, so I must be doing something really wrong!!!
[Fire HD 8 and HD 10 General] wt15:
What does ADB mean? And how can I use this to remove ads?
[Fire HD 8 and HD 10 General] obvious:
Android debug bridge

You can't. It doesn't do that. Search around for netguard ad blocking. Basically speaking, buy netguard. It's worth it. Then download github version then download hosts from backup menu.
[Fire HD 8 and HD 10 General] Buddhakeks:
I get

[ERROR] Unsupported argument: -package

any ideas?
[Fire HD 8 and HD 10 General] sga999:
I'm not sure if this was already written here, or maybe everyone else already understands this. I have 5 launchers, count 'em!, installed. (I'm just seeing what I like best and experimenting). If I do the grantbind for a launcher, then add whatever widgets I want, then move on to the next launcher and do the same thing, all of the widgets for all of those launchers seem to work fine. I admit that I've only added a calendar widget and an email widget, so it's certainly not extensive testing.

Somehow I had thought that once I did the grantbind for another launcher, the prior launcher's widgets would "go away" or not function properly. Now I realize the error in my thinking and just wanted to point that out. As someone already mentioned before, Google Now Launcher works without doing any grantbind for it.

I did not have to use the hijacker to set the home launcher each time. I merely click the icon for the next launcher I want to show. Finally, after a reboot, I thought I would not be able to remove or add widgets unless I did the grantbind again. But it seems like I can still do that for all launchers!

Well, I just found one exception to that. Nova Launcher seems to be flaky. It isn't consistent about when it allows a widget. I'm not sure if the variable is about whether it wants to be home launcher, wants a new grantbind after reboot, or some other factor.
[Fire HD 8 and HD 10 General] sga999:
--package, i. e. 2 hyphens.

---------- Post added at 08:18 PM ---------- Previous post was at 08:08 PM ----------

Correcting something I said in my prior post. I said I didn't use the hijacker but merely clicked on the launcher icon. But obviously I could not get to the Google Now launcher with that method, and I had to use the hijacker.
[Fire HD 8 and HD 10 General] raymond016:
can you do a TUT video? i still dont understand how to do it.

especially step 3: Paste the file to your PC desktop and open it with a text editor. I use Notepad+++. You do NOT need to make any edits.

Sorry, im a noob :(
[Fire HD 8 and HD 10 General] DragonFire1024:
Copy the appwidget file from your tablet to your PC. Open the file with Notepad++ or another text editor. Without editing the file, tap file at top left > save as 'all files' and change the file name to appwidget.sh
[Fire HD 8 and HD 10 General] raymond016:
thanks, it's work
[Fire HD 8 and HD 10 General] kentodessa:
2. Locate appwidget and copy it to clipboard.

3. Paste the file to your PC desktop and open it

How to Locate on phone and than paste on PC???
[Fire HD 8 and HD 10 General] Blaiser47:
Just copy it to you SD card storage (internal) and add sh file extension. No need to bring to go your pc.
[Fire HD 8 and HD 10 General] AGeorge22:
So I'm pretty new to adb, so I'll need some likely basic help. I shift-right-clicked to open command prompt from the platform-tools folder, typed

adb shell appwidget grantbind --package <com.teslacoilsw.launcher> --user 0

And I'm getting the error: The system cannot find the file specified. I have appwidget.sh on my computer's desktop, in the adb folder, and in /storage/emulated/0. Anyone able to help me figure out what's going wrong? Thanks!

Nevermind...just realized I needed to remove the < > from the code around Nova. Leaving this in case anyone is as clueless as I am!
[Fire HD 8 and HD 10 General] glmooreky:
I've been trying to do this for hours bit to no avail. I've followed all the steps correctly but after I enter:

"adb shell appwidget grantbind --package com.anddoes.launcher --user 0" or

"adb shell appwidget grantbind --package com.anddoes.launcher --user current"

I get the message "/system/bin/sh: adb: not found"

I'm trying to do this for apex launcher BTW. Is this launcher not supported by this method? Any help is greatly appreciated.

---------- Post added at 11:40 AM ---------- Previous post was at 11:23 AM ----------

NVM figured it out... clerical error lol.
[Fire HD 8 and HD 10 General] Rhugginsj:
Total noob

I've been reading and reading and reading about ADB and trying to understand how to do this. I cannot seem to find app.widget file on my fire????? Any help greatly appreciated. I'm trying to learn!
[Fire HD 8 and HD 10 General] dondraper23:
Hey- I'm a total noob as well- so new I can't post links. I just used this method yesterday so maybe I can help a bit. If you never used ADB before, do a YouTube search for "How to install the Android SDK and run ADB Shell"- the video I followed was posted by a user named "Babbling Boolean". Using ADB is kinda tricky at first, but once you do, it's like riding a bike.

Next, download Total Commander from Google Play (or find the apk file and sideload it). You can't use ES File Explorer (which was my explorer of choice) to locate the appwidget file. In Total Commander, on the left side of the screen, you should see a list starting with "Internal storage". A folder called "Files system root" should be a few rows down- got into that. From there, a lists of folders, starting with "acct" should be listed. Scroll down until you see the "system" folder. Go into that, then go into the "bin" folder and that's where the appwidget file is. I hope this helps!
[Fire HD 8 and HD 10 General] Drymarchon:
I need help

so, i got as far as making it a .sh file and putting it on my internal storage, but i can run any of the code... can so one maybe make a video on how to do it for noobs to adb like me? i have a pic of my cmd but i can't put it in bc new account, can't put links....
[Fire HD 8 and HD 10 General] h8ffelpu:
hi,

i managed to go through this tut with my fire 10, but it doesnt seem to work with nova launcher. everytime i drag a widget on my homescreen it jumps into the fire os settings. same when i try it with evie launcher.

i already removed fire os.

with google now, widgets work just fine. any suggestions?

fire10 (2017)

fire os 5.6.0.1

rooted

supersu 2.79
[Fire HD 8 and HD 10 General] dondraper23:
I believe with the Google Now Launcher, widgets work by default. I have Nova Launcher set on my parents Fire HD's (8" and a rooted 10") and about a month ago I tried to change the weather widget on the homescreen and for some reason lost the ability to do so (it would jump to the Fire OS settings). I went through all the steps mentioned in the original post on both devices again and haven't had an issue since. I stopped by my parents this morning and I still was able to switch widgets.
[Fire HD 8 and HD 10 General] j626w:
any way to fix this if you already signed in? Completely willing to sign out and all that.
[Fire HD 8 and HD 10 General] DragonFire1024:
I was unaware being signed in had an effect on this. So I'm not sure. May have to sign out and clear cache in recovery?
[Fire HD 8 and HD 10 General] j626w:
worked out fine, thanks! Any way to replace the lockscreen as well? Or am I stuck with the stock one?
[Fire HD 8 and HD 10 General] DragonFire1024:
Only disable it. This doesn't always work https://xdaforums.com/hd8-hd10/help/root-required-completely-disable-enable-t3739257

If you have a rooted HD 10 this works https://xdaforums.com/hd8-hd10/general/root-enable-lock-screen-options-t3777318
[Fire HD 8 and HD 10 General] j626w:
I have the fire 7 gen 7, sadly didn't work :/
[Fire HD 8 and HD 10 General] pimisen:
How does it work with launcher as a system app

Hi Guys, i use Apex Launcher as a system app (/system/app/com.anddoes.launcher). To use widgets the described way does not work :( Any Ideas? Do i have to insert the path to /system/app/<packagename> someware? Or is a system app not a "package"?

Any hint appreciated, thanks in advance

regards

pimisen
[Fire HD 8 and HD 10 General] DragonFire1024:
Try placing it in /system/priv-app. Usually once a system app, you don't need to run the appwidget script.
[Fire HD 8 and HD 10 General] pimisen:
Yeah! Worx. Thx

:good:
[Fire HD 8 and HD 10 General] DragonFire1024:
When installing apps as system apps, always try /system/priv-app first if it exists. Then apps not actually meant for the system are granted the system level permissions they request and need.
[Fire HD 8 and HD 10 General] Dankees:
This is where you lose me.

How do I run that through ADB? That's the part I don't know how to do.
[Fire HD 8 and HD 10 General] Dankees:
Where do I get this Android SDK Package?

I'm not finding it anywhere.
[Fire HD 8 and HD 10 General] tylerhole:
Use this to install ADB on your computer. https://r.tapatalk.com/shareLink?ur...share_tid=2588979&share_fid=3793&share_type=t
[Fire HD 8 and HD 10 General] Dankees:
OK, I did that. What do I do after that?

I'm confused. I can't get the ADB to stay opened.

(Thanks for helping.)
[Fire HD 8 and HD 10 General] tylerhole:
You should read this over...but don't worry necessarily about the installing Android SDK. https://www.howtogeek.com/125769/how-to-install-and-use-abd-the-android-debug-bridge-utility/
[Fire HD 8 and HD 10 General] Dankees:
Thank you.

This is where I get lost.

I can't find an SDK Tools exe file anywhere...?

I got the install window opened and installed what it wanted me to install, but when I try to open the ADB.exe file, it won't star opened...?

Are you able to make the appwidget.sh file for me for Nova Launcher?
[Fire HD 8 and HD 10 General] tylerhole:
Check your messages.
[Fire HD 8 and HD 10 General] 063_XOBX:
Just to make this easy for anyone else with a case of the stupids the command that worked for me with Trebuchet was

Just insert your launchers name in place of "com.lineageport.trebuchet" and you're good to put some widgets on your home screen.
[Fire HD 8 and HD 10 General] dbojan76:
Not really sure why you need to copy file from device to pc, save it without edits then copy it back to the device...

Here is what worked for me

Short version:

copy file appwidget from \system\bin to \storage\emulated\0

run this from adb terminal:

adb shell appwidget grantbind --package com.mi.launcher --user 0

add widgets to screen.

(replace com.mi.launcher with the name of your launcher. com.nova.launcher or whatever)

Long version

-connect kindle to pc using microusb cable

-install ghost commander. start it. select left panel of it (click on left part of the half line, that goes across the top of the screen)

-using ghost commander navigate to apps folder. (click on the arrow on the top right part of the screen, select home, then select Applications from the items.)

-note the name of your launcher, and the package name . For "Mi Launcher", package name is com.mi.launcher.

-navigate to \system\bin folder using left side of the panel (arrow on top, home, "local storage")

-use .. at the top left to get to \ location. (also known as root)

-navigate to \system\bin

-click on the right panel (half line accross the top of the screen)

-navigate to "local storage" on the right panel (click on the right panel, arrow, home, "local storage")

-click on the left panel, click on the right part of the filename of the file "appwidget", to select it

-click on the copy text at the bottom of the screen, top copy file appwidget to "local storage"

on pc, in the command line type:

adb shell appwidget grantbind --package com.mi.launcher --user 0

replace com.mi.launcher with the name of your launcher. com.nova.launcher or whatever.
[Fire HD 8 and HD 10 General] cogsci:
How did you overcome this error? I'm getting this too. I noticed that files cannot be made executable in /sdcard. Is this maybe the problem?
[Fire HD 8 and HD 10 General] DelphinusMinor:
As mentioned for some people you may need to remove the current user part.

adb shell appwidget grantbind --package com.teslacoilsw.launcher

So all I needed to do was paste the above command and my widgets are working.

Also, a tip for people not familiar with push/pull commands. Simply "Send to" from Total Commander whatever the file is to your Dropbox and then copy it from there to your PC to resave the file.

After that, simply copy the renamed file to your internal storage and done.

This will omit the need for doing so many adb commands.
[Fire HD 8 and HD 10 General] DragonFire1024:
I think the user part depends on the actual activation of another account or accidental activation of the guest account (which causes other problems).
[Fire HD 8 and HD 10 General] DelphinusMinor:
Yea, that would make sense.
[Fire HD 8 and HD 10 General] bassbeat66:
Not working with Launcher Hijack

EDIT: I was finally able to get this to work, using a different launcher and a different method. I'm currently using ADW launcher and was able to use widgets.

I'm wondering if this dependent on the launcher itself; ie - this only works with well known launchers (Nova, ADW). I'd be interested to see if you can use this tip with multiple launchers.

This isn't working for me at all. Is this only for Nova launcher?

I'm using Launcher Hijack, with a few launchers and everyone I try for this, I get the same thing name.of.launcher: No such file or directory; I've included a screen shot of the whole process. I'm currently using Flick Launcher on my Fire HD 8 (7th gen) and I've tired the code with that and Smart Launcher, only to get the no such file or directory. I even tried using the name for Launcher Hijack in the case that I needed to use the actually program that's running the launchers.

Am I typing in something wrong? Am I using the wrong launcher?

EDIT: Apparently I can't upload any images so I just pasted the results I'm getting below.

<PACKAGE> an Android package name.

<USER_ID> The user id under which the package is installed.

Example:

# Revoke the permisison to bind app widgets from the "foo.bar.baz" package.

adb shell revokebind --package foo.bar.baz --user current

[ERROR] Unsupported operation: null

et grantbind --package <com.universallauncher.universallauncher> --user 0 <

/system/bin/sh: can't open com.universallauncher.universallauncher: No such file or directory

ge <com.universallauncher.universallauncher> --user current <

/system/bin/sh: can't open com.universallauncher.universallauncher: No such file or directory

dget grantbind --package <home.solo.launcher.free> --user 0 <

/system/bin/sh: can't open home.solo.launcher.free: No such file or directory

dget grantbind --package <com.universallauncher.universallauncher> --user 0 <

/system/bin/sh: can't open com.universallauncher.universallauncher: No such file or directory

ge <com.universallauncher.universallauncher> --user current <

/system/bin/sh: can't open com.universallauncher.universallauncher: No such file or directory

dget grantbind --package <com.baronkiko.launcherhijack> --user 0 <

/system/bin/sh: can't open com.baronkiko.launcherhijack: No such file or directory

ind --package <com.baronkiko.launcherhijack> --user current <

/system/bin/sh: can't open com.baronkiko.launcherhijack: No such file or directory

--package <com.universallauncher.universallauncher> --user 0 <

/system/bin/sh: can't open com.universallauncher.universallauncher: No such file or directory

ge <com.universallauncher.universallauncher> --user current <

/system/bin/sh: can't open com.universallauncher.universallauncher: No such file or directory

1|shell@douglas:/ $ sh /sdcard/appwidget.sh

usage: adb shell appwidget [subcommand] [options]
[Fire General] DragonFire1024:
This may not work on a Fire HD 7, but I like to share.

Enable Widgets:

Reference: /system/bin/appwidget

# Script to start "appwidget" on the device, which has a very rudimentary shell.
base=/system
export CLASSPATH=$base/framework/appwidget.jar
exec app_process $base/bin com.android.commands.appwidget.AppWidget "$@"

1. Use a file manager like Total Commander and navigate to /system/bin/

2. Locate appwidget and copy it to clipboard.

3. Paste the file to your PC desktop and open it with a text editor. I use Notepad+++. You do NOT need to make any edits.

4. Click file, save as. Change the filename to appwidget.sh and save it as a Unix file type. (If using regular Notepad, save it as the ALL FILES file type)

5. Copy appwidget.sh and place it into internal storage of your fire (/sdcard).

6. Open ADB, get into a shell and type:

shell@giza:/ $ sh /sdcard/appwidget.sh

7. Exit the shell and come back to ADB and type:

adb shell appwidget grantbind --package <PACKAGE.name.of.your.launcher> --user <USER_ID>

(USER_ID = 0)

If above doesn't work:

adb shell appwidget grantbind --package <PACKAGE.name.of.your.launcher> --user current

Now add your favorite widgets through your favorite launcher :)
[Fire General] savvytechwinner:
How do you switch to that launcher????? Do you use launcher hijack
[Fire General] DragonFire1024:
I am using Evie. Install it, then uninstall firelauncher or other launcher. Reboot. Then follow initial post steps. I don't see a difference with or without launcher hijack, when firelauncher is uninstalled.

I found this script in /system/bin. Wish I could find one for live wallpapers.
[Fire General] savvytechwinner:
But...

the home button doesn't work when you uninstall fire launcher

or whisper link

I am NOT kiding about that either
[Fire General] DragonFire1024:
Correct...for now anyways. Maybe someone can extract the settings from launcher so they stay and launcher goes. Or find a way to just uninstall the actual launcher only.
[Fire General] savvytechwinner:
Ok...

Uninstalling

"com.amazon.kindle.otter.oobe" WILL screw up your home button too

There is a wierd side affect where when you install firelauncher or the apk i mentioned above when you click the home button it locks your screen.
[Fire General] DragonFire1024:
I went back to Nova for now. Be advised if you want to switch launchers, you have to run the script again to enable widgets.
[Fire General] savvytechwinner:
When Fire Laucnher is uninstalled the home button doesn't work and when you press it, the screen turns off and it goes back to the lockscreen. How do you manage this?
[Fire General] DragonFire1024:
I haven't yet. The lock screen is embedded in /system/framework/framework-res.apk in the form of PNG and icons layered over one another. The reason for the lock screen is because there are dummy screens in front of and behind the enter screens. Those dummies block the wallpapers and what not and send us to the lock screen. Unless someone really really good at modifying APKs comes along, We might be stuck with that annoyance.
[Fire General] DragonFire1024:
Just downloaded 'Google Wallpapers.' All of the included wallpapers work...except the stock live ones lmao.
[Fire General] savvytechwinner:
WTF I did this and it still goes to settings I did exactly what it said >:(
[Fire General] DragonFire1024:
oops. I may have forgotten a step. Try

$ sh /sdcard/appwidget.sh

Then do the next step.

adb shell appwidget grantbind --package <PACKAGE.name.of.your.launcher> --user <USER_ID>

or

adb shell appwidget grantbind --package <PACKAGE.name.of.your.launcher> --user current
[Fire General] savvytechwinner:
Nevermind. I redid the steps and everything is working now. Thank you!
[Fire General] DragonFire1024:
Awesome! And to think, I found it buried in one of these tablets makes me scratch my head a bit. I'm hoping to find more goodies!
[Fire General] Thorou:
This worked great, thanks!

I just renamed "appwidget" to "appwidget.sh" on the tablet, saves a bit of time versus copying to PC etc.

It may even be possible to run the shell straight from /system/bin, I'll try that should I need to restore again.
[Fire General] vendo232:
Hi

the first step does not work for me. I have appwidget.sh at /sdcard and the command in shell sh /sdcard/appwidget.sh

is giving me [ERROR] Unsupported operation: null

what am I doing wrong? i have Fire HD 8 7th with 5.4

---------- Post added at 05:53 PM ---------- Previous post was at 05:37 PM ----------

adb shell appwidget grantbind --package <PACKAGE.name.of.your.launcher> --user current

what I used for Nova Launcher was

adb shell appwidget grantbind --package com.nova.launcher --user current

was it right? I would like to enable widgets in Nova launcher