yashsingh1/xdaforums huggingface dataset:
[Fire General] DB126:
Root isn't for everyone, especially those using apps that detect root and abort (banking, games, licensed/streaming content, payment, etc.). There are clever workarounds for those who enjoy the 80/20 rule: 80% managing device, 20% using for intended purpose. All my devices have root (and usually bootloader) permissions but I understand the consequences and use other gizmos for restricted content. Choose your poison wisely.
[Fire General] Rortiz2:
Try reinstalling the apk unifiedsharefacebok and then in command prompt type:

adb shell id

If the "id" command output *does not* start with "uid=2000" you can disable system apps but if the output is uid 2000 you can not disable system apps.
[Fire General] treefitty:
Hi,

I get to step 4 but he ID does start with uid=2000 what am i doing wrong? (Fire 7 2015 running 5.6.1.0)

C:\Users\steph\Downloads\platform-tools_r28.0.0-windows\platform-tools>adb shell pm install -r -d /sdcard/com.amazon.unifiedsharefacebook.apk

pkg: /sdcard/com.amazon.unifiedsharefacebook.apk

Success

C:\Users\steph\Downloads\platform-tools_r28.0.0-windows\platform-tools>adb shell id

uid=2000(shell) gid=2000(shell) groups=1003(graphics),1004(input),1007(log),1011(adb),1015(sdcard_rw),1028(sdcard_r),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats) context=u:r:shell:s0
[Fire General] Rortiz2:
Try to follow these instructions:

https://xdaforums.com/hd8-hd10/general/a-t3820744
[Fire General] o.enciso@gmail.com:
Worked on 5.6.2.0

Worked on 5.6.2.0 (I did got the "uid=2000" but still worked for me)
[Fire General] DragonFire1024:
I tried on 5.4.0.0 just to try and I also didn't get 2000 but it still worked.
[Fire General] Kratmare:
Works great!

However, the instructions can't quite be followed exactly as written.

For anyone having problems:

This doesn't seem to matter one way or the other - others in the thread have been successful with "uid=2000", myself included.

This won't work - it spits out a message that com.amazon.unifiedsharefacebook cannot be debugged.

Oddly, though, if you enter a shell and THEN run both commands separately, it works without a hitch. No idea why, since from my limited understanding of the adb environment the OP's command is exactly the same as doing this, just putting it all on a single line (like using colons in BASIC - yes, that's about my level of coding expertise :laugh: ), but for some reason the OP's formatting won't work and mine will.

So, just to rephrase:

5. Reboot the Fire.

6. (don't know why we have to "reconnect" the Fire btw, we never disconnected it in the instructions :p) In command prompt type:

adb shell
run-as com.amazon.unifiedsharefacebook
pm hide com.amazon.kindle.kso

This last command works, but if you followed my revised instruction #6, you'll have to type "exit" once, to go back a level in the shell that's still open. Basically, in my (very limited! :)) understanding it's like a "cd .." in DOS. If you don't, you'll get confusing error messages about not being allowed to grant that permission.

So the full sequence is:

1. Follow the guide up to and including step #5

2.

adb shell
run-as com.amazon.unifiedsharefacebook
pm hide com.amazon.kindle.kso
exit
pm grant by4a.setedit22 android.permission.WRITE_SECURE_SETTINGS

3. Follow the guide starting at step #9

Thank you so much for this, Rortiz2!
[Fire General] Rortiz2:
Thanks for informing, when I have time I will modify the first post
[Fire General] rG-:
Seems like this link does not work any more: "410: Gone"
[Fire General] Rortiz2:
http://www.mediafire.com/file/66sdm1qmy1omvyd/com.amazon.unifiedsharefacebook.apk
[Fire General] 4273x2:
Sound not working after following the guide

SOLVED.. omg so stupid of me... I have a stylus with a leash that has a plastic plug to use in the headphone jack. Guess it was in too far and the tablet thought it had headphones plugged in. Removed it and put back with just one click.. all is good.. embarrassing..

--------------------------------------------

Hello - First I want to say thanks to Rortiz2 for this guide. I was able to get it to work on my HD8 (7th Gen- v5602). The lock screen is clean with no ads.

Only thing is, now I cannot get any sound from the tablet. Also Alexa does not respond. I have rebooted the tablet a few times, still no sound. Yes, volume is all the way up, no headphones (wired or BT) are connected. Video, music, YT vids all play, but no sound.

I was thinking of backing out the changes to see if it will bring back the sound. Any other ideas of what could be done to resolve this? Thank you very much!
[Fire General] steviep147:
O/S 5.6.2.0. installed on 16th Sept 2018. This worked well for a few hours but the ads are now back. Doesn't seem any different than all the other "fixes" I'm afraid.
[Fire General] 4273x2:
I followed the steps on page one, when I got to step 5:

- adb shell <---- this ran ok

- run-as com.amazon.unifiedsharefacebook <---- this came back as "Package 'com.amazon.unifiedsharefacebook' is not debuggable"

Then for the hell of it I continued with the steps anyway-

"pm hide com.amazon.kindle.kso" And the result was 'False'

I went on with the rest of the steps and the lock screen was cleared.. then ads came back a few hours later.

After a few tries and reboots and getting the same results.. I figured I'll try the other command on page 3 to run the "..unifiedsharefacebook.apk" and it worked!

Here are the steps I did and so far no ads..(4 days + so far??)

1- Copied the file to the sdcard

2- adb shell pm install -r -d /sdcard/com.amazon.unifiedsharefacebook.apk

3- reboot fire

4- adb shell run-as com.amazon.unifiedsharefacebook pm hide com.amazon.kindle.kso

5- pm hide com.amazon.kindle.kso <<----- make sure the result = 'True'

6- adb shell settings put global LOCKSCREEN_AD_ENABLED 0

7- adb shell settings put global ksoHash 0

8- Restart Fire again..

I have not had lockscreen ads since. WiFi is on all the time. Again thanks to Rortiz2.
[Fire General] Rabblerouser:
I normally wouldn't be looking up stuff like this but I just recently got an ad that is keeping me from entering my PIN. Will this work without being able to get past the lock screen?
[Fire General] 4273x2:
You have to get past the lock screen to do these steps.

Maybe wait for a different ad to show so you can enter your pin.

---------- Post added at 01:15 AM ---------- Previous post was at 01:08 AM ----------

Something went wrong. It has been a few weeks and still no ads for me. I did this on my gf's Fire HD8 and no ads for her tablet either.

When you do the 'PM HIDE' command make sure it comes back with a "True" result.
[Fire General] melp57:
They have plenty of money!
[Fire General] tech3475:
I know this is a late response, but if anyone ever has issues with the ads such as usability, poor marketing by third party (no mention of ads), technical, ethical (e.g. gambling app ad), etc. Try contacting Amazon support via chat because I've been able to convince them in the past to remove ads officially because of some problem.
[Fire General] DragonFire1024:
Does anyone know anything about system servers? Amazon's lock screen runs on a server

com.amazon.lockscreen.ILockScreenService

Its package is amazonlockscreen. So at this point even disabling the service does nothing because it not technically running. This also makes it impossible to remove their lock screen, unless the service can also be uninstalled. So my question is, can services be 'uninstalled'? You can run the service list with adb:

adb shell service list
[Fire General] Rortiz2:
I tried:

adb shell service stop com.amazon.android.server.lockscreen.ILockScreenService

and then I looked if it was still running and it was running.
[Fire General] DragonFire1024:
I tried that too. Also tried a few apps to disable it to no avail.
[Fire General] Insanitysmuse:
Both the OP directions and this don't seem to function differently for me. com.amazon.unifiedsharefacebook always comes back as "undebuggable" and com.amazon.kindle.kso always returns as "false".

The ads are gone for now but based on what people have said, I guess I can expect them to return. Is there any reason I can't flag kindle.kso as hidden? I'm on Kindle 7 5th Gen, 5.6.2.0
[Fire General] Rortiz2:
Have you copied the apk in internal storage?

Do you restart the fire at some step? Because if so, you do not have to restart
[Fire General] 4273x2:
If you're using Windows, make sure you run ADB in a command prompt with Administrative rights.. (TBH, not sure if that is really needed, but that is the way I did it)
[Fire General] DB126:
For the actions being performed (ADB access) administrative access is not required on the host.
[Fire General] Insanitysmuse:
I copied the apk to internal, the install step runs fine. If I don't restart, the run-as command says com.amazon.unifiedsharefacebook is unknown. If I install then restart, run-as returns is not debuggable. Either way, no amount of running the command "pm hide com.amazon.kindle.kso" returns "TRUE"

I did try running command as Admin and didn't make a difference. And I can confirm, the ads returned pretty quickly.
[Fire General] Rortiz2:
What version of fire os you have?

Enviado desde mi Aquaris M8 (karin) mediante Tapatalk
[Fire General] Insanitysmuse:
I'm on Kindle 7" 5th Gen, Fire OS is 5.6.2.0

I got this recently but I don't believe it had been used for much of anything - not rooted or messed with as far as I could tell. I got Google play installed fine so I could install a few other apps not on Amazon's store but I didn't really have to do anything fancy for that.
[Fire General] Rortiz2:
It seems very strange.. How much time it takes to return the ads?
[Fire General] Insanitysmuse:
I haven't been using it a ton yet, so hard to say, but about a day or so.
[Fire General] DB126:
"pm hide ..." is not durable and easily reversible by any background service. It is nothing more than a convenience toggle.
[Fire General] Rortiz2:
And how is it possible that in my case the ads never return?
[Fire General] Zer0900:
Hi,

I used this method about 8 to 9 months ago and it worked a treat, thanks. However, the ads returned again there maybe a month ago, I am assuming it was due to something in a system update. I am just wondering, do I just redo the original process once again to get rid of the ads once again? Thanks.
[Fire General] DB126:
I can offer several possible explanations including never registering the device with Amazon, blocking Amazon communications (knowingly or unknowingly) or some other unique characteristic of your config that is not representative of typical FireOS gizmos. However, it would be best if you did your own research into how each of the commands work, their intended purpose, capabilities/limitations and 'best practices' when used in the wild. I have no stomach for debating Android 101 in a public forum.
[Fire General] jtenman:
Not working on version 5.6.2. Get the following on step 3. Ads go away for a little while and then return.

adb shell run-as com.amazon.unifiedsharefacebook pm hide com.amazon.kindle.kso

run-as: Package 'com.amazon.unifiedsharefacebook' is not debuggable
[Fire General] Rortiz2:
Do you install the apk that explains in the tutorial?
[Fire General] jtenman:
Yes. I downloaded the apk in the tutorial and followed the instructions exactly as described.
[Fire General] Rortiz2:
What fire do you have?

Repeat the process
[Fire General] jtenman:
Fire HD 10. Doing the process again makes no difference. Same results.
[Fire General] divxmaster1:
First when I tried this, it didnt work:

shell@austin:/ $ run-as com.amazon.unifiedsharefacebook

run-as com.amazon.unifiedsharefacebook

run-as: Package 'com.amazon.unifiedsharefacebook' is not debuggable

1|shell@austin:/ $ pm hide com.amazon.kindle.kso

pm hide com.amazon.kindle.kso

Package com.amazon.kindle.kso new hidden state: false

So I ran the above as one command:

adb shell run-as com.amazon.unifiedsharefacebook pm hide com.amazon.kindle.kso

Package com.amazon.kindle.kso new hidden state: true

And it worked, tested on two Fire 7 2017.

Cheers,

Divxmaster
[Fire General] Jimmy8881:
I had the same problem and this worked for me too! thank you!!
[Fire General] Superg33k:
Worked great with the Fire HD 10 I just received a couple days ago, running Fire OS 5.3.6.4 with a build date of November 12!

I had to get the APK from another link, but otherwise flawless. Amazing, thanks!
[Fire General] Toothless_NEO:
Re-enable hidden apps

How do I re-enable apps that were hidden using this method
[Fire General] DragonFire1024:
'pm unhide' i believe
[Fire General] medri:
When I

pm hide com.amazon.kindle.kso

I get the error

Error: java.lang.SecurityException: Neither user 10074 nor current process has android.permission.MANAGE_USERS.

My shell UID is 2000 if that helps.

edit: the UID changes with the run-as command to 10074
[Fire General] Rortiz2:
Fire Os version? Fire model? Add more information please.
[Fire General] DreamWalkerGuy:
thank you so much this worked on the update that just got installed today January 15th 2019
[Fire General] Kaot93:
Is there any special trick to get the RSA / ADB confirmation to show up? I'm stuck with an unauthorized device in ADB and have tried everything to get it work

Reinstall usb drivers, erasing .android folder 2 PC's, revoking on device and a couple of cables, nothing works.

Managed to connect to sideload and did a downgrade (it updated itself a while later), but no confirmation message showed up. Has anyone another idea to try?
[Fire General] anon/droid:
What is the "minimally invasive" way to disable automatic OS updates? I mean the minimally required list of packages to "pm hide".

(I only want to disable the lock screen ads and leave all the rest alone. But since this ad removal method here does no longer work on HD 8 2018 I'm afraid that a future OS update will have the same effect for older tablets, too. So I guess it's indeed crucial to avoid such updates.)
[Fire General] Oco:
Best permanent method available, thanks. Worked in Fire 10 HD 2017 5.6.3.0 (5 3.6.4)
[Fire General] 9volts:
How did you measure the RAM usage?

If you have 60% more free RAM just by hiding that list, that is a rather huge savings!
[Fire General] DB126:
Like most modern OS/ROMs Android seek to maximize RAM use which improves responsiveness and resource utilization. Some free RAM is desirable to improve app load times (also used for garbage collection and other background tasks) but isn't strictly necessary. Swap (ZRAM) utilization is a better indicator but hard to accurately assess and manage on an unrooted device. The performance improvements you are seeing are likely the result of less caching/swapping and associated compression/decompression which can be cpu intensive.

Bottom line: free RAM is a poor indicator of tuning/performance unless values are consistently very low or high. The latter is actually worse.
[Fire General] DragonFire1024:
The usage statistics are actually not far off...if you can find the right reports. Amazon has usage stats spread all over the place and about 90% of their apps always run in the background. why? Nothing malicious but it's the way the apps talk and sync with each other. Some have their own database cleaners (if you constantly seek info you can find apps to shut those services down so the data isn't trashed). A lot of apps call home all the time and some hang there because we disabled their friends and they are lost.
[Fire General] undobutton183:
Thanks this technique worked perfectly on my new HD10.

What should we do as clean up?

Is it safe to delete com.amazon.unifiedsharefacebook.apk?

Uninstall unifiedsharefacebook?
[Fire General] benst0412:
Same Error here.

FireOS 6.3.1.2 On Fire7 (9th Generaton)
[Fire General] Michajin:
For the fire7 2019, i used the temp root to give access to disable.
[Fire General] DB126:
Exactly. Quick and permanent w/no side effects (unlike persistent root).
[Fire General] Rortiz2:
Updated post for 8th/9th gen fires
[Fire General] benst0412:
Works perfectly and easy (so far). Thanks for the update! :)
[Fire General] Michajin:
I would recommend blocking OTA's also because they could potentially enable the com.amazon.kindle.kso and potentially block temp root. As well as a factory reset would enable it. The first I always disable are ;

Device Setup

DeviceSoftwareOTA

Forced OTA

Special offers

I use a package-disabler app instead of a shell. If anyone is looking fro other options....
[Fire General] Rortiz2:
Package disabler does the same :/
[Fire General] jk2020:
Have executed above complete list instructions to get rid of all amazon apps on the screen.

All commands executed without failures.

After reboot "Fire starting..." and does not disappear.

If I press the home button a message appears saying that this action is not allowed. Please check parental lock. I do have access to settings but not to parental lock settings. I also do have access via adb.

Is there anything I can do to get it working or do I have to do a factory reset?

My device

Fire 7 9.G/2019

mtk-su V18 installed and executed according to instructions for 9th generation
[Fire General] mrmazak:
In that 'list' it was noted, but not described in detail. The user said they had apex as there default drowser.

Did you install apex?

Also stated in the quoted post, they have same issue as you , with the home button.

So, yes , my opinion is to factory reset and try again.

Since you used "adb hide" commands, you possibly could undo those actions by reversing so e of the hid apps with "adb unhide"
[Fire General] jk2020:
Apex not installed;

Instead of executing factory reset I just used "pm unhide ..." for whole list above and after reboot my device is behaving as before with one exception; I do have adv on my fire 7 also I bought the more expensive variant without ads ... LOL

So executed pm disable com.amazon.kindle.kso and after reboot it looks like I have the normal behaviour without adv

So back to fire7 device and normal behaviour

Will try once more to do a "hide" on the undesiralbe apps as a workaround and hope that there is soon a solution availalbe to install lineageos instead.

---------- Post added at 03:53 PM ---------- Previous post was at 03:08 PM ----------

Tried whole list again.

Looks like what caused the problem is following:

pm hide com.amazon.firelauncher

As soon as hiding firelauncher the device shows "fire starting..."

All others work.

How do I get rid of the amazon header line in the screen showing "Start, books, audible, ..."?
[Fire General] DragonFire1024:
So I have found where Amazon has tucked away their system server that controls the lock screen. It and a lot of other things are in /system/framework/fosframework.jar and framework.jar. the fos jar is all of Amazon's customizations and the other is Android's. I don't have the folders pulled up in front of me right now so I can't tell you the exact path but it is something like smali/com/Amazon/fireOS. there are a couple of fireOS folders in the various directories there. These are part of the internal apis for Amazon fire os or whatever you want to call it. unfortunately there's not much we can do unless you know how to edit the code and some of it's self-explanatory while the rest of it is still alien to me. now I was looking through the jars because I came across a zip file that was trying to explain on how you can use hidden Android API by combining your framework file with the Android jar file from the SDK and access to a whole bunch of the internal stuff that normally you wouldn't have access to. that's another story that I'm not going to get into right now. There are also various other settings including settings for the sink of the wireless display/cast screen/Miracast. And as I suspected while everything else is in place, the code inside the jar file is voided out. I have no idea how to withdraw the voids from them and that essentially renders the script useless. Derek's plain white today I've been able to get every single thing to work except for a screen to actually mirror. anyways it'll be something and I'll look over while I'm doing other things are waiting for other stuff to finish I just thought I'd give everybody a heads up and maybe somebody would like to decompile and take a look for themselves and maybe find some goodies.

---------- Post added at 07:31 PM ---------- Previous post was at 07:27 PM ----------

you can try downloading settings database editor, issue it the proper permission and go into the secure tab and scroll down until you see the matching menu titles. Set those to zero and reboot. That might do it, I do not know though. I have not used fire launcher in I cannot tell you how many years. It's just a theory that I have, and have not been enthusiastic enough to test it. Now that the time has come that somebody else can try it, maybe you can enlighten me :P
[Fire General] Spider-Pool:
Freakin Sweet!

Such an amazing tutorial! The Tablet DOES run a lot faster now! I did have ta remind myself ta type in ./ before each command though haha :cool:
[Fire General] jordant2:
This tutorial removed ads for me on a Fire 7 (9th Gen) running Fire OS 6.3.1.2, and I also removed the Fire Launcher. Just make sure you install your desired launcher BEFORE you remove com.amazon.firelauncher I already had Nova installed but I'm sure you run into some serious issues if you don't have another launcher already installed. I haven't been brave enough to remove anything else! Great work with this.
[Fire General] DragonFire1024:
If anyone is interested in at least customizing their lock screen wallpaper you can always check out this link. It will also disable and remove Amazon's lock screen and replace it with a more Android stock like one.

https://xdaforums.com/hd8-hd10/help/root-disable-replace-lock-screen-set-t3935689
[Fire General] jordant2:
You didn't have another launcher installed after removing the fire launcher, that's why it wouldn't boot properly. You need Nova, or Action Launcher, etc. installed first.
[Fire General] zachyyc:
i followed everything to a t and now i think i got a brick....

i followed the whole tutorial on what to do and when i was finished i tried to use my kindle and it wont turn on and my linux and pc wont even recognize it. is it forever a brick? its a brand new kindle fire 7 9th gen, thank you to anyone and everyone who can help
[Fire General] co.ag.2005:
thanks for confirming that it works! I went through the steps verbatim but received a java error on the 1st "pm disable..." command. Did you get this too? (see attached screenshot). Even though the last step says they are turned off, they indeed are not. I'm running the 2019 Fire Tablet 7 with the same OS update as you.

This isn't my first time to ADB or anything. I used to root and rom all my android phones since the Nexus One way back in the day.
[Fire General] DragonFire1024:
You need to be root te-run most p.m. commands.
[Fire General] co.ag.2005:
ok, I assumed that would be the case but since the thread title said "No Root" I was hoping it'd work w/o it.
[Fire General] starmanj:
Yep getting same error. Updated to 6.3.1.2; that may be the problem.

---------- Post added at 05:05 PM ---------- Previous post was at 05:01 PM ----------

Getting this java error Fire 2019 Mustang 6.3.1.2: Error: java.lang.IllegalArgumentException: Component class com.amazon.kindle.kso.lockscreen.LockscreenUpdateService does not exist in com.amazon.kindle.kso
[Fire General] zachyyc:
Please help me

I can't figure out what to do, windows and Linux won't recognize it after I did this, should I send it back to Amazon or is it fixable?
[Fire General] DragonFire1024:
Also if you can't run it through the shell or ADB, you have to be root I believe but you can download an app like 3C toolbox and then disable application services individually using the application. Posted an example screenshot below of some services I disabled in the system user interface.
[Fire General] starmanj:
Thanks for advice- I executed temp root but still didn't work. I downloaded 3C all-in-one but can't for the life of me find the screen you are on?
[Fire General] DragonFire1024:
What exactly are you trying to do just remove the lock screen or replace it?