Remove forever lockscreen ads [NO ROOT] [FIRE OS 5.6.1.0 AND UP] [ANY FIRE!] - Fire General

Before starting I wanted to thank @Supersonic27543 for the tutorial to disable system apps in Fire Os 5.6.1.0 and @Monkeybomb365 for the tutorial to remove the lockscreen ads.
THIS IS ONLY FOR FIRE OS 5.6.1.0 AND UP, BUT YOU CAN TRY TO DO IT IN OTHER VERSIONS AND COMMENT IF IT HAS WORKED.​
REQUISITES:​- ADB DRIVERS INSTALLED
- USB CABLE
- COMPUTER
- com.amazon.unifiedsharefacebook.apk DOWNLOAD Only for 4th/5th/6th/7th gen Fires.
Fires 4th/5th/6th/7th gen:
1. Enable usb debugging and connect the fire to the computer.
2. Copy the file com.amazon.unifiedsharefacebook downloaded previously and copy it to the internal storage (sdcard0) of the fire.
3. Open a command prompt and type:
Code:
adb shell pm install -r -d /sdcard/com.amazon.unifiedsharefacebook.apk
4. Reboot the fire.
5. Connect the fire again and in command prompt type:
Code:
- adb shell
- run-as com.amazon.unifiedsharefacebook
- pm hide com.amazon.kindle.kso
- exit
7. Without disconnecting the fire from the computer type in command prompt:
Code:
- adb shell settings put global LOCKSCREEN_AD_ENABLED 0
- adb shell settings put global ksoHash 0
8. Restart the fire and enjoy a tablet without lockscreen ads.
Fires 8th/9th gen:
1. Download latest mtk-su from here (Thanks @diplomatic :victory
2. Copy arm/mtk-su to your ADB folder
3. Open a CMD
4. Push mtk-su:
Code:
adb push mtk-su /data/local/tmp/mtk-su
5. Chmod it:
Code:
adb shell chmod 755 /data/local/tmp/mtk-su
6. Open an adb shell:
Code:
adb shell
7. CD to data/local/tmp:
Code:
cd data/local/tmp
8. Get root shell:
Code:
./mtk-su
9. Disable ads:
Code:
pm disable com.amazon.kindle.kso
10. Reboot:
Code:
reboot
If you use linux do the same process but using the terminal instead of the command prompt.
IF IT HAS WORKED PRESS THE THANK BUTTON!
IF YOU DO NOT UNDERSTAND OR THERE ARE ERRORS COMMENT
This method also removes the special offers icon that appears in the lower corner of the lock screen.
I do not have the one on the camera because I have disabled it and I have replaced it with google camera:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Rortiz2 said:
Before starting I wanted to thank @Supersonic27543 for the tutorial to disable system apps in Fire Os 5.6.1.0 and @Monkeybomb365 for the tutorial to remove the lockscreen ads.
THIS IS ONLY FOR FIRE OS 5.6.1.0 AND UP, BUT YOU CAN TRY TO DO IT IN OTHER VERSIONS AND COMMENT IF IT HAS WORKED.​
REQUISITES:​- ADB DRIVERS INSTALLED
- USB CABLE
- COMPUTER
- com.amazon.unifiedsharefacebook.apk DOWNLOAD
- Settings Database Editor DOWNLOAD
1. Enable usb debugging and connect the fire to the computer.
2. Copy the file com.amazon.unifiedsharefacebook downloaded previously and copy it to the internal storage (sdcard0) of the fire.
3. Open a command prompt and type:
Code:
adb shell pm install -r -d /sdcard/com.amazon.unifiedsharefacebook.apk
4. Reboot the fire.
5. Connect the fire again and in command prompt type:
Code:
adb shell run-as com.amazon.unifiedsharefacebook pm hide com.amazon.kindle.kso
6. Without disconnecting the fire from the computer install Settings Database editor but do not open it.
7. Type in command prompt:
Code:
adb shell pm grant by4a.setedit22 android.permission.WRITE_SECURE_SETTINGS
8. Open Settings Data Base Editor and where it says System Table press it and select Global Table.
9. Find the line that says:
"LOCKSCREEN_AD_ENABLED" "1"
10. Click on it and select edit value. Delete 1 and set to 0.
11. Restart the fire and enjoy a tablet without lockscreen ads.
If you use linux do the same process but using e terminal instead of the command prompt.
IF IT HAS WORKED PRESS THE THANK BUTTON!
IF YOU DO NOT UNDERSTAND OR THERE ARE ERRORS COMMENT
Click to expand...
Click to collapse
This is brilliant. Before, changing LOCKSCREEN_AD_ENABLED value only worked for a short while because the KSO app would overwrite the value when it synced with the other amazon related settings. With the app 'hidden' you're actually tricking the system, and amazon into thinking the lock screen ads were 'legitimately' removed. Though the app is hidden, it can no longer sync the settings because it's services have been disabled. This may actually really piss Amazon off. However, they won't be able to fix it without a huge amount of trouble, money and resources. ?

....

at step 2, this is what i keep getting. i was able to do step 3, but afraid the ads will return as i dont think step 2 was completed properly. thoughts ?
C:\Users\MixXx K>adb shell pm install -r -d /sdcard/com.amazon.unifiedsharefacebook.apk
pkg: /sdcard/com.amazon.unifiedsharefacebook.apk
Success
C:\Users\MixXx K>adb shell run-as com.amazon.unifiedsharefacebook pm hide com.amazon.kindle.kso
run-as: Package 'com.amazon.unifiedsharefacebook' is not debuggable
C:\Users\MixXx K>adb shell pm grant by4a.setedit22 android.permission.WRITE_SECURE_SETTINGS

@DragonFire1024 Can't this trick be used with other Amazon apps?

Adyatan said:
@DragonFire1024 Can't this trick be used with other Amazon apps?
Click to expand...
Click to collapse
I don't understand what you mean.

mixxxk said:
at step 2, this is what i keep getting. i was able to do step 3, but afraid the ads will return as i dont think step 2 was completed properly. thoughts ?
C:\Users\MixXx K>adb shell pm install -r -d /sdcard/com.amazon.unifiedsharefacebook.apk
pkg: /sdcard/com.amazon.unifiedsharefacebook.apk
Success
C:\Users\MixXx K>adb shell run-as com.amazon.unifiedsharefacebook pm hide com.amazon.kindle.kso
run-as: Package 'com.amazon.unifiedsharefacebook' is not debuggable
C:\Users\MixXx K>adb shell pm grant by4a.setedit22 android.permission.WRITE_SECURE_SETTINGS
---------- Post added at 07:19 AM ---------- Previous post was at 07:18 AM ----------
at step 2, this is what i keep getting. i was able to do step 3, but afraid the ads will return as i dont think step 2 was completed properly. thoughts ?
C:\Users\MixXx K>adb shell pm install -r -d /sdcard/com.amazon.unifiedsharefacebook.apk
pkg: /sdcard/com.amazon.unifiedsharefacebook.apk
Success
C:\Users\MixXx K>adb shell run-as com.amazon.unifiedsharefacebook pm hide com.amazon.kindle.kso
run-as: Package 'com.amazon.unifiedsharefacebook' is not debuggable
C:\Users\MixXx K>adb shell pm grant by4a.setedit22 android.permission.WRITE_SECURE_SETTINGS
---------- Post added at 07:21 AM ---------- Previous post was at 07:19 AM ----------
at step 2, this is what i keep getting. i was able to do step 3, but afraid the ads will return as i dont think step 2 was completed properly. thoughts ?
C:\Users\MixXx K>adb shell pm install -r -d /sdcard/com.amazon.unifiedsharefacebook.apk
pkg: /sdcard/com.amazon.unifiedsharefacebook.apk
Success
C:\Users\MixXx K>adb shell run-as com.amazon.unifiedsharefacebook pm hide com.amazon.kindle.kso
run-as: Package 'com.amazon.unifiedsharefacebook' is not debuggable
C:\Users\MixXx K>adb shell pm grant by4a.setedit22 android.permission.WRITE_SECURE_SETTINGS
Click to expand...
Click to collapse
@mixxxk What version of fire os are you using?
You have copied the apk in the internal memory (sdcard0)?

Adyatan said:
@DragonFire1024 Can't this trick be used with other Amazon apps?
Click to expand...
Click to collapse
@Adyatan Yes, here is a script that hides all amazon apps:
https://mega.nz/#!mtUVgYAL!q5svMvzgpkcH04B21UBc71KZ4m0Nex6lSw7liQljBO8

Sorry, xda was down this morning, didn't realize it posted that over and over.
I'm using 5.6.2.0
And yes, copied directly.
Rortiz2 said:
@mixxxk What version of fire os are you using?
You have copied the apk in the internal memory (sdcard0)?
Click to expand...
Click to collapse

mixxxk said:
Sorry, xda was down this morning, didn't realize it posted that over and over.
I'm using 5.6.2.0
And yes, copied directly.
Click to expand...
Click to collapse
mmm... What fire you have? HD10? HD8? 7 2015? 7 2017?

Duplicated Comment

HD8 2017
Rortiz2 said:
mmm... What fire you have? HD10? HD8? 7 2015? 7 2017?
Click to expand...
Click to collapse

Worked nicely on 5.4.0.0 on Fire 7 (2017, 7th Gen), thanks!

Sasco1st said:
Worked nicely on 5.4.0.0 on Fire 7 (2017, 7th Gen), thanks!
Click to expand...
Click to collapse
You can still disable system apps on 5.4.0.0.
Sent from my Amazon Jem using XDA Labs

mixxxk said:
HD8 2017
Click to expand...
Click to collapse
It seems that in the fire hd8 2017 running Fire OS 5.6.2.0 this method does not work.
Please report it in this forum:
https://forum.xda-developers.com/hd8...-t3820744/amp/

404 Page Not Found
Rortiz2 said:
It seems that in the fire hd8 2017 running Fire OS 5.6.2.0 this method does not work.
Please report it in this forum:
https://forum.xda-developers.com/hd8...-t3820744/amp/
Click to expand...
Click to collapse

mixxxk said:
at step 2, this is what i keep getting. i was able to do step 3, but afraid the ads will return as i dont think step 2 was completed properly. thoughts ?
C:\Users\MixXx K>adb shell pm install -r -d /sdcard/com.amazon.unifiedsharefacebook.apk
pkg: /sdcard/com.amazon.unifiedsharefacebook.apk
Success
C:\Users\MixXx K>adb shell run-as com.amazon.unifiedsharefacebook pm hide com.amazon.kindle.kso
run-as: Package 'com.amazon.unifiedsharefacebook' is not debuggable
C:\Users\MixXx K>adb shell pm grant by4a.setedit22 android.permission.WRITE_SECURE_SETTINGS
Click to expand...
Click to collapse
Same problem with Fire HD 10 (7th generation)
OS 5.6.2.0

jb17112 said:
Same problem with Fire HD 10 (7th generation)
OS 5.6.2.0
Click to expand...
Click to collapse
The HD 10 can be rooted. No need to use this method when you can delete the appropriate packages.
Sent from my Amazon Jem using XDA Labs

DragonFire1024 said:
The HD 10 can be rooted. No need to use this method when you can delete the appropriate packages.
Click to expand...
Click to collapse
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.

mixxxk said:
404 Page Not Found
Click to expand...
Click to collapse
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.

Related

[Q] Help recovering KF from boot loop after changing system/app permissions

Hello, here are the specs:
Device: Kindle Fire
OS version: 6.2.1
Desktop: Mac Mini (from 2010)
Desktop OS: OS X Lion
Problem: When the Kindle starts, it gets stuck in an endless loop, showing the Kindle Fire intro animation and rebooting.
Cause: After rooting the device using the Burrito Root method (using a PC), I tried to install the Android Market app. After a few unsuccessful tries, I made the stupid mistake to change the system/app permissions using the File Expert app. After realizing what I had done, I went back to change permissions to what they were before, apparently did this not work.
What I have tried so far:
I tried Kindle Fire Unbrick Utility to no avail. http://forum.xda-developers.com/showthread.php?t=1428428
I then tried to fix it through the OS X Terminal
Code:
adb shell
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
chmod 755 /system/app
Although adb seems to be recognizing my device when I input ./adb devices
I seem to have lost root. Here is a screen cap:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I also tried fastboot as suggested in the thread: http://forum.xda-developers.com/showthread.php?t=1399009&page=2
Code:
./fastboot-mac -i 0x1949 oem idme bootmode 4000
...and it just gets stuck in <waiting for device>
Apparently I have lost super user permissions and can't trouble shoot my device. Is there a way to recover su access? Can I just flash the ROM and reinstall the stock firmware?
Please help me
Thanks in advance.
You don't have root on the adb shell. Did you tap on "Root" and then run "adb kill-server" and "adb root"? That should give you root on the adb shell. You would then run the following...
Code:
adb remount
adb chown 0.0 /system/app
adb chown 0.0 /system/app/*
adb shell chmod 755 /system/app
adb shell chmod 644 /system/app/*
if you can't get root and have twrp available just reflash one of the prerooted stock roms:
http://forum.xda-developers.com/showthread.php?t=1402440
if not try to install fff and twrp from fastboot (use your corresponding mac commands)
first you will have to get to fastboot mode by
adb shell idme bootmode 4002
or
adb shell su -c "idme bootmode 4000"
and
adb reboot
if that don't work you can use this:
http://forum.xda-developers.com/showthread.php?t=1414832
once you'r in fastboot mode you can install twrp with kfu and flash one of the above images with twrp
b63 said:
if you can't get root and have twrp available just reflash one of the prerooted stock roms:
http://forum.xda-developers.com/showthread.php?t=1402440
if not try to install fff and twrp from fastboot (use your corresponding mac commands)
first you will have to get to fastboot mode by
adb shell idme bootmode 4002
or
adb shell su -c "idme bootmode 4000"
and
adb reboot
if that don't work you can use this:
http://forum.xda-developers.com/showthread.php?t=1414832
once you'r in fastboot mode you can install twrp with kfu and flash one of the above images with twrp
Click to expand...
Click to collapse
Followed the steps here: http://forum.xda-developers.com/showpost.php?p=20927454&postcount=604
I just installed twrp and it boots into the yellow triangle.
After that, I downloaded KF Stock Secure Boot (What's the difference between secure and unsecure?)
I moved the contents in the zip to the directory where my fastboot app lies, including the boot.img
Did this:
Code:
sudo ./fastboot boot boot.img
The Kindle Fire restarted, booted into KF os (with the kindle fire animated logo and all), but went back to the previous boot loop.
I am now downloading the KF Stock Boot to try booting from that.
I went to check my /system/ permissions and got this:
Code:
drwxr-xr-x root root 1969-12-31 16:00 lost+found
d--------- root root 2011-12-30 17:13 app
drwxr-xr-x root shell 2011-12-30 17:14 bin
-rw-r--r-- root root 2151 2008-08-01 05:00 build.prop
drwxr-xr-x root root 2011-12-30 17:14 etc
drwxr-xr-x root root 2011-12-30 17:14 fonts
drwxr-xr-x root root 2011-12-30 17:14 framework
drwxr-xr-x root root 2011-12-30 17:14 lib
drwxr-xr-x root root 2011-12-30 17:14 media
drwxr-xr-x root root 2011-12-30 17:14 tts
drwxr-xr-x root root 2011-12-30 17:14 usr
drwxr-xr-x root shell 2011-12-30 17:14 vendor
drwxr-xr-x root shell 2012-01-17 16:57 xbin
Permissions are still messed up. Is there a way to fix permissions before attempting to boot from the downloaded stock?
Thanks for the response by the way!
Change the bootmode back to normal with...
fastboot oem idme bootmode 4000
Then boot into TWRP, go to Mount and tap on system. Then correct the permissions with...
adb shell chmod 755 /systme/app
lmntone said:
Change the bootmode back to normal with...
fastboot oem idme bootmode 4000
Then boot into TWRP, go to Mount and tap on system. Then correct the permissions with...
adb shell chmod 755 /systme/app
Click to expand...
Click to collapse
While stuck in the boot loop I did what you told me to:
Code:
sudo ./fastboot -i 0x1949 oem idme bootmode 4000
It sits on <waiting for device>
I hard reset the device with the power button, then three dots appear in terminal "..."
Kindle boots up to the Yellow Triangle and stays there.
Did I mess up?
I DID IT! Thanks for the help.
I was finally able to boot into TWRP and followed the steps you mention. I will turn this into a How To.

[ROOT][GUIDE] Enable Google Voice Search for Kodi 18 on Fire TV

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The following steps activate the Google Voice Search with Google Assistant so that it can be used in a current Kodi 18 Nightly Build on a Fire TV.
The tutorial assumes that an alternative launcher, e.g. AppStarter, is used because Amazon Alexa voice search is completely replaced by Google Assistant. Xposed edge and HDXPosed must also be installed and activated. Before installing it is recommended to make a backup of the system and data partition via TWRP if you have connected an external sdcard. Many thanks to @SimLynks for some tips from his PlayFire modification.
If you want to use the complete Leanback Launcher with integrated Chromecast, then have a look at my more comprehensive guide: Link
This manual is only possible with a rooted device!
Tested on a Fire TV 4k box
Firmware 5.2.6.2
Instructions:
Unpack all zip files and copy all apk in the appendix to C:\adb\
1. Disabling unnecessary and Google Voice Recognition blocking Amazon apps
Code:
adb shell su -c pm disable com.amazon.advertisingidsettings
adb shell su -c pm disable com.amazon.device.sale.service
adb shell su -c pm disable com.amazon.tv.legal.notices
adb shell su -c pm disable com.amazon.tv.nimh
adb shell su -c pm disable com.amazon.tv.settings/com.amazon.tv.settings.tv.AppDisableService
adb shell su -c pm uninstall -k --user 0 com.amazon.vizzini
(Notice: Disable com.amazon.vizzini works too, but I noticed that the app reactivates itself from time to time.)
2. Customize build.prop
View attachment mod-build.prop.zip
Code:
adb shell su -c mount -o remount,rw /system
adb push C:\adb\mod-build.prop.sh /sdcard/
adb shell su -c sh /sdcard/mod-build.prop.sh
adb shell su -c rm /sdcard/mod-build.prop.sh
adb shell su -c mount -o remount,ro /system
3. Adjust permissions for voice recognition
View attachment tv_core_hardware.zip
Code:
adb shell su -c mount -o remount,rw /system
adb push C:\adb\tv_core_hardware.xml /sdcard/
adb shell su -c cp /sdcard/tv_core_hardware.xml /system/etc/permissions/tv_core_hardware.xml
adb shell su -c chmod 644 /system/etc/permissions/tv_core_hardware.xml
adb shell su -c chown root:root /system/etc/permissions/tv_core_hardware.xml
adb shell su -c rm /sdcard/tv_core_hardware.xml
adb shell su -c mount -o remount,ro /system
4. Install Open Google apps for Android TV
(If you already have the Google Apps installed, you can skip this and the next section.)
Download the matching zip file and copy it to the sdcard.
Open GApps for ARM (Fire TV sticks)
Open GApps for ARM64 (Fire TV boxes)
Copy the customized gapps-config.txt to the same directory as the GApps on the sdcard.
View attachment gapps-config.txt
Then install the GApps zip via TWRP and restart the device. Please don't sign up for Google Play Store yet!
5. Allow Google registration (NoTouchAuthDelegate)
View attachment Tv-NoTouchGsf.apk
Code:
adb shell su -c mount -o remount,rw /system
adb push C:\adb\Tv-NoTouchGsf.apk /sdcard/
adb shell su -c chmod 755 /system/app/NoTouchAuthDelegate/
adb shell su -c rm /system/app/NoTouchAuthDelegate/NoTouchAuthDelegate.apk
adb shell su -c cp /sdcard/Tv-NoTouchGsf.apk /system/app/NoTouchAuthDelegate/NoTouchAuthDelegate.apk
adb shell su -c chmod 644 /system/app/NoTouchAuthDelegate/NoTouchAuthDelegate.apk
adb shell su -c chown root:root /system/app/NoTouchAuthDelegate/NoTouchAuthDelegate.apk
adb shell su -c rm /sdcard/Tv-NoTouchGsf.apk
adb shell su -c mount -o remount,ro /system
6. Install Google app to enable voice recognition (com.google.android.katniss)
Now restart the device and then sign in to Google Play Store. Attention, the Google Play Store is a system app and therefore only appears in the AppStarter if the display of system apps is activated. Alternatively you can use my modified conFIREator.
Then search for and install the "Google" app on the Play Store. It'll take a while.
(Notice: The search does not work with the search button on the remote!)
7. Adjust the Xposed edge key configuration for the search button of the Fire TV remote
Activate the "Keys" in the Xposed edge and add the new KEYCODE_SEARCH key (simply press the search key on the Fire Remote for recognition).
Use "Single Click" with the activity "com.google.android.katniss\.search.SearchActivity" and leave "Long press" empty. This is the standard function, you first have to click and release the microphone, wait until the input is ready ("Speak Now" appears), and then press and hold the microphone and speak again.
(Notice: Alternatively you also can only link the action "Long press" with the activity "com.google.android.katniss\.search.SearchActivity". Then you have everything at the touch of a button: activate and speak. You should try it the way you like it best.)
Reboot for the last time.
That's all and now you can start the voice search by pressing and holding the search button in Kodi.
Google Assistant also now finds hits in Kodi (movies, tv shows, music), along with other sources such as YouTube, if Kodi already is running.
Once you have installed the PlayFire TV settings, you can choose which apps the Google Assistant is allowed to search for hits.
(Notice: The activation of the detection can take up to 5 seconds in individual cases, but usually it is very fast. Just hold down the search button and wait. But this is also the case on an Android TV.)
.

[ROOT][GUIDE][2018] Enable Leanback Laucher, Recommendations, Castreceiver, Assistant

I hereby discontinue support for my Fire TV Guides and Apps. I've been a big fan of Fire TV devices for the last 2-3 years, but Amazon has now with each firmware further limited the possibilities of a configurable Android environment and even destroyed standard Android commands. This goes too far for me now.
I can recommend the following devices to anyone who wants to have a reasonable and much better Android TV experience, which I now use myself and am enthusiastic about:
Mi Box
Mi Box S
Sony Android TV (ATV3 platform, eg. XF7, XF8, XF9 or higher)
Will be trying this tomorrow, thankyou
Awesome a new project for tomorrow. Thanks for all your hard work.
rainman74 said:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The following steps installs the newest Leanback Launcher with Recommendations, Chromecast integrated, Daydream and activates the Google Voice Search with Google Assistant so that it also can be used in a current Kodi 18 Nightly Build on a Fire TV.
This is the most comprehensive and up-to-date transformation of a Fire TV into an Android TV device with almost all Google functionalities usable.
Amazon TV Launcher and Amazon Alexa voice search are completely replaced by Leanback Launcher and Google Voice Search. Xposed edge, XInstaller and HDXPosed must also be installed and activated. Before installing it is recommended to make a backup of the system and data partition via TWRP if you have connected an external sdcard. Many thanks to @SimLynks for some tips from his PlayFire modification and to @peleg for his wonderful [project] aftv2atv.
This manual is only possible with a rooted device!
Tested on a rooted Fire TV 4k box
Firmware 5.2.6.2
Instructions:
Unpack all zip files and copy all apk in the appendix to C:\adb\
1. Disabling unnecessary and blocking Amazon junk
Code:
adb shell su -c pm disable amazon.jackson19
adb shell su -c pm disable com.amazon.acos.providers.UnifiedSettingsProvider
adb shell su -c pm disable com.amazon.advertisingidsettings
adb shell su -c pm disable com.amazon.ags.app
adb shell su -c pm disable com.amazon.application.compatibility.enforcer
adb shell su -c pm disable com.amazon.application.compatibility.enforcer.sdk.library
adb shell su -c pm disable com.amazon.avod
adb shell su -c pm disable com.amazon.bueller.music
adb shell su -c pm disable com.amazon.bueller.notification
adb shell su -c pm disable com.amazon.bueller.photos
adb shell su -c pm disable com.amazon.client.metrics
adb shell su -c pm disable com.amazon.client.metrics.api
adb shell su -c pm disable com.amazon.communication.discovery
adb shell su -c pm disable com.amazon.device.sale.service
adb shell su -c pm disable com.amazon.device.software.ota
adb shell su -c pm disable com.amazon.device.software.ota.override
adb shell su -c pm disable com.amazon.device.sync
adb shell su -c pm disable com.amazon.device.sync.sdk.internal
adb shell su -c pm disable com.amazon.imp
adb shell su -c pm disable com.amazon.kindle.cms
adb shell su -c pm disable com.amazon.kor.demo
adb shell su -c pm disable com.amazon.logan
adb shell su -c pm disable com.amazon.metrics.api
adb shell su -c pm disable com.amazon.ods.kindleconnect
adb shell su -c pm disable com.amazon.recess
adb shell su -c pm disable com.amazon.tahoe
adb shell su -c pm disable com.amazon.tcomm.client
adb shell su -c pm disable com.amazon.tv.csapp
adb shell su -c pm disable com.amazon.tv.launcher
adb shell su -c pm disable com.amazon.tv.launcher/.ui.HomeActivity_vNext
adb shell su -c pm disable com.amazon.tv.legal.notices
adb shell su -c pm disable com.amazon.tv.nimh
adb shell su -c pm disable com.amazon.tv.settings/com.amazon.tv.settings.tv.AppDisableService
adb shell su -c mount -o remount,rw /system
adb shell su -c rm -r /system/priv-app/com.amazon.vizzini
adb shell su -c rm -r /system/priv-app/WhisperplayCore
adb shell su -c rm -r /system/priv-app/WhisperplayInstall
adb shell su -c mount -o remount,ro /system
(Notice: Amazon Alexa and Wisperplay will be completely deleted to make room on the system partition for Chromecast Integrated.)
2. Customize build.prop
View attachment 4481935
Code:
adb shell su -c mount -o remount,rw /system
adb push C:\adb\mod-build.prop.sh /sdcard/
adb shell su -c sh /sdcard/mod-build.prop.sh
adb shell su -c rm /sdcard/mod-build.prop.sh
adb shell su -c mount -o remount,ro /system
3. Adjust permissions for voice recognition
View attachment 4481936
Code:
adb shell su -c mount -o remount,rw /system
adb push C:\adb\tv_core_hardware.xml /sdcard/
adb shell su -c cp /sdcard/tv_core_hardware.xml /system/etc/permissions/tv_core_hardware.xml
adb shell su -c chmod 644 /system/etc/permissions/tv_core_hardware.xml
adb shell su -c chown root:root /system/etc/permissions/tv_core_hardware.xml
adb shell su -c rm /sdcard/tv_core_hardware.xml
adb shell su -c mount -o remount,ro /system
4. Install Open Google apps for Android TV
Download the matching zip file and copy it to the sdcard (I use version open_gapps-arm64-5.1-tvstock-20180423).
Open GApps for ARM (Fire TV sticks)
Open GApps for ARM64 (Fire TV boxes)
Insert this code to new "gapps-config.txt" and copy it to the same directory as the GApps on the sdcard.
Code:
forceclean
skipswypelibs
skipvendorlibs
GoogleAssistant
+extsharedstock
+keyboardstock
+provision
+packageinstallerstock
+webviewstock
+notouchauthdelegate
Include
gappspico
backdrop
#castreceiver
configupdater
googlebackuptransport
googlecontactsync
gsfcore
leanbacklauncher
overscan
secondscreenauthbridge
secondscreensetup
tvcustomization
tvetc
tvframework
tvgmscore
tvkeyboardgoogle
tvvending
tvwallpaper
tvwidget
Then install the GApps zip via TWRP and restart the device. Please don't sign up for Google Play Store yet!
5. Allow Google registration (NoTouchAuthDelegate)
View attachment 4481943
Code:
adb shell su -c mount -o remount,rw /system
adb push C:\adb\Tv-NoTouchGsf.apk /sdcard/
adb shell su -c chmod 755 /system/app/NoTouchAuthDelegate/
adb shell su -c rm /system/app/NoTouchAuthDelegate/NoTouchAuthDelegate.apk
adb shell su -c cp /sdcard/Tv-NoTouchGsf.apk /system/app/NoTouchAuthDelegate/NoTouchAuthDelegate.apk
adb shell su -c chmod 644 /system/app/NoTouchAuthDelegate/NoTouchAuthDelegate.apk
adb shell su -c chown root:root /system/app/NoTouchAuthDelegate/NoTouchAuthDelegate.apk
adb shell su -c rm /sdcard/Tv-NoTouchGsf.apk
adb shell su -c mount -o remount,ro /system
6. Install Google app to enable voice recognition (com.google.android.katniss)
Now restart the device and then sign in to Google Play Store.
Then search for and install the "Google" app on the Play Store. It'll take a while (I use current Google 2.2.0.138699360).
(Notice: The search in the Play Store does not work with the search button on the remote!)
7. Adjust the Xposed edge key configuration for the search button of the Fire TV remote
Activate the "Keys" in the Xposed edge and add the new KEYCODE_SEARCH key (simply press the search key on the Fire Remote for recognition).
Use "Single Click" with the activity "com.google.android.katniss\.search.SearchActivity" and leave "Long press" empty. This is the standard function, you first have to click and release the microphone, wait until the input is ready ("Speak Now" appears), and then press and hold the microphone and speak, then release.
More useful key assignments for the Leanback Launcher see attached photos:
View attachment 4488212View attachment 4488213View attachment 4488214View attachment 4488215
8. Install Android TV Settings modified for Fire TV
Once you have installed the aftv2atv Fire TV settings (better than the modified settings apk from PlayFire), you can choose which apps the Google Assistant is allowed to search for hits.
View attachment 4488216
Code:
adb shell su -c mount -o remount,rw /system
adb push C:\adb\TvSettings-2.1.1.apk /sdcard/
adb shell su -c cp /sdcard/TvSettings-2.1.1.apk /system/priv-app/TvSettings/TvSettings.apk
adb shell su -c chmod 644 /system/priv-app/TvSettings/TvSettings.apk
adb shell su -c chown root:root /system/priv-app/TvSettings/TvSettings.apk
adb shell su -c rm /sdcard/TvSettings-2.1.1.apk
adb shell su -c mount -o remount,ro /system
9. Finish
Reboot for the last time.
That's all and now you will boot directly in Leanback Launcher and start the voice search by pressing the search button in Leanback Launcher and Kodi.
Google Assistant also now finds hits in Kodi (movies, tv shows and music, if Kodi already is running), along with other sources such as YouTube, Spotify, etc. (directly install these apps from Google Play Store)
10. Optional: Access Amazon settings
If you still need to access the Amazon settings, you can install my modified conFIREator Settings app additionally (More details click here):
View attachment 4488238
Known issues
Although the cast receivers are displayed and found correctly, no device could connect. Looks like Google has something here against unlicensed cast receivers.
.
Click to expand...
Click to collapse
After step 5 your guide says install the google app, when i log into google and search for the app it wont let me install it ? i get error code 0
sconnyuk said:
After step 5 your guide says install the google app, when i log into google and search for the app it wont let me install it ? i get error code 0
Click to expand...
Click to collapse
Did you already have an older version installed? Then simply uninstall them before.
rainman74 said:
Did you already have an older version installed? Then simply uninstall them before.
Click to expand...
Click to collapse
brand new install of latest fire tv2 rom. clean slate and following your guide.
---------- Post added at 05:12 PM ---------- Previous post was at 05:11 PM ----------
ive just tried again, im up to instaaling gapps and waiting on optomising
---------- Post added at 05:14 PM ---------- Previous post was at 05:12 PM ----------
rainman74 said:
Did you already have an older version installed? Then simply uninstall them before.
Click to expand...
Click to collapse
no, ive just formatted and installed latest rom (fire tv2) and folowing as a clean slate.
---------- Post added at 05:15 PM ---------- Previous post was at 05:14 PM ----------
rainman74 said:
Did you already have an older version installed? Then simply uninstall them before.
Click to expand...
Click to collapse
can you tell me what i need to do after step 5 ? it says install google app but it isnt included in your guide ? thanks
sconnyuk said:
can you tell me what i need to do after step 5 ? it says install google app but it isnt included in your guide ? thanks
Click to expand...
Click to collapse
then sideload Google App 2.2.0
rainman74 said:
then sideload Google App 2.2.0
Click to expand...
Click to collapse
its asking for decription key ?
sconnyuk said:
its asking for decription key ?
Click to expand...
Click to collapse
Link with key
rainman74 said:
Link with key
Click to expand...
Click to collapse
Thanks for all the help but after i install that and go sign into google store, search google and try install i get error code 0 again, no matter what i try install i get trhe same error code, any idea ?
sconnyuk said:
Thanks for all the help but after i install that and go sign into google store, search google and try install i get error code 0 again, no matter what i try install i get trhe same error code, any idea ?
Click to expand...
Click to collapse
Code:
adb shell
chown -R media_rw:media_rw /data/media/
find /data/media/ -type d -exec chmod 775 {} ‘;’
find /data/media/ -type f -exec chmod 664 {} ‘;’4)
rainman74 said:
Code:
adb shell
chown -R media_rw:media_rw /data/media/
find /data/media/ -type d -exec chmod 775 {} ‘;’
find /data/media/ -type f -exec chmod 664 {} ‘;’4)
Click to expand...
Click to collapse
Thanks, im restoring my backup at the moment, what will this code do ? i dont get any reccomendations and i cant see any setting icons on my home screen either, will this fix those issues too ?
sconnyuk said:
Thanks, im restoring my backup at the moment, what will this code do ? i dont get any reccomendations and i cant see any setting icons on my home screen either, will this fix those issues too ?
Click to expand...
Click to collapse
restoring permissions, that is a possible solution for Error 0
rainman74 said:
restoring permissions, that is a possible solution for Error 0
Click to expand...
Click to collapse
no, restoring my backup from twrp. im going to give it 3rd and final go see if i can get it working
sconnyuk said:
no, restoring my backup from twrp. im going to give it 3rd and final go see if i can get it working
Click to expand...
Click to collapse
Best luck! I have tested my guide on 4 Fire TVs... I've never got Error 0.
rainman74 said:
Best luck! I have tested my guide on 4 Fire TVs... I've never got Error 0.
Click to expand...
Click to collapse
Ok, so i seem to have got a littel further this time, i can now install from playstore and reccomendations work (sometimes) but, i cannot see any settings icon ? and obviously my original settings are disabled.
Also i cant see my sideloaded apps anywhere or even know where to access them from ? can you shed any light on this for me please ?
sconnyuk said:
Ok, so i seem to have got a littel further this time, i can now install from playstore and reccomendations work (sometimes) but, i cannot see any settings icon ? and obviously my original settings are disabled.
Also i cant see my sideloaded apps anywhere or even know where to access them from ? can you shed any light on this for me please ?
Click to expand...
Click to collapse
Is it possible that you have not configured XInstaller correctly? Please send me screenshots of your XPosed modules and one screenshot of each XInstaller area. If the settings do not appear at the bottom of the launcher, you have not installed the Settings.apk correctly. Please scroll down in the launcher and take a screenshot.
To access all apps, press and hold the Menu key, then the app bar opens with all (even the non-leanback) apps. To do this, however, you must have configured all keys as specified in Xposed edge.
rainman74 said:
Is it possible that you have not configured XInstaller correctly? Please send me screenshots of your XPosed modules and one screenshot of each XInstaller area. If the settings do not appear at the bottom of the launcher, you have not installed the Settings.apk correctly. Please scroll down in the launcher and take a screenshot.
To access all apps, press and hold the Menu key, then the app bar opens with all (even the non-leanback) apps. To do this, however, you must have configured all keys as specified in Xposed edge.
Click to expand...
Click to collapse
Yes I've not configured xinstaller as I can't find the app xinstaller to launch. I have managed to get as far as installing settings and running all commands but I do not see any settings. If there was a way to select xinstaller I might be able to progress?
sconnyuk said:
Yes I've not configured xinstaller as I can't find the app xinstaller to launch. I have managed to get as far as installing settings and running all commands but I do not see any settings. If there was a way to select xinstaller I might be able to progress?
Click to expand...
Click to collapse
Launch the Xposed Installer
- Click on the three lines in the top left corner of the screen
- Click on Modules
- Click the check box to activate XInstaller (use Mouse Toogle for Fire TV)
Restart the Fire TV
Launch the Xposed Installer again
- Click on Modules again
- Click on XInstaller
In XInstaller click on XInstaller first
- Check Expert mode
- Press the back arrow
In the Installations page, in the "Enable" section, check the boxes for:
- Downgrading apps
- Installing unknown apps
- Then scroll down to the "Disable" section and check the boxes for:
- Checking signatures
- Checking signatures (F-Droid)
- Forward locking
- Verifying apps
- Checking SDK version
- Checking duplicated permissions
- Press the back arrow
In the Misc page, in the "Enable" section, check the box for:
- Debugging apps
- Then scroll down to the "Disable" section and check the boxes for:
- Checking permissions
- Verifying JAR
- Verifying signatures
- Checking Lucky Patcher
- Auto updating Google Play
Exit the program
rainman74 said:
Launch the Xposed Installer
- Click on the three lines in the top left corner of the screen
- Click on Modules
- Click the check box to activate XInstaller (use Mouse Toogle for Fire TV)
Restart the Fire TV
Launch the Xposed Installer again
- Click on Modules again
- Click on XInstaller
In XInstaller click on XInstaller first
- Check Expert mode
- Press the back arrow
In the Installations page, in the "Enable" section, check the boxes for:
- Downgrading apps
- Installing unknown apps
- Then scroll down to the "Disable" section and check the boxes for:
- Checking signatures
- Checking signatures (F-Droid)
- Forward locking
- Verifying apps
- Checking SDK version
- Checking duplicated permissions
- Press the back arrow
In the Misc page, in the "Enable" section, check the box for:
- Debugging apps
- Then scroll down to the "Disable" section and check the boxes for:
- Checking permissions
- Verifying JAR
- Verifying signatures
- Checking Lucky Patcher
- Auto updating Google Play
Exit the program
Click to expand...
Click to collapse
Thanks for that, its working now.
I have recomendations come up correctly, i can see and use my settings now and its now setup better than i had previously.
One question, how to make my sideloaded apps show on the homescreen ? or isnt this possible ?
Thanks for your help and for putting this together.

[GUIDE][Android 8.0] Reducing battery consumption on a Galaxy Tab S3/S4

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
This guide almost halves the battery consumption on a Samsung Galaxy Tab S3/S4 with Android 8.0.
Compared for example with a Google Pixel C, the battery on a Samsung Galaxy Tab reduces significantly faster due to some unnecessary apps from Samsung and a questionable and very comprehensive tracking of user data.
This tutorial is very careful with deactivating apps and only covers the absolutely crucial apps. Other tutorials remove significantly more apps, but this has no effect on battery consumption.
Hint: Operating the Galaxy Tab S3 under Android 8 is highly recommended as the performance is 25%-50% faster than under Android 7.
1. Install the following Google apps to later remove the sluggish and battery consuming Samsung apps:
Gmail
Contacts
Clock
Calculator
2. Disable the following packages, which consume battery unnecessarily:
Code:
adb shell su -c pm disable com.samsung.android.app.clockpack
adb shell su -c pm disable com.samsung.android.calendar
adb shell su -c pm disable com.samsung.android.contacts[I] (* If you want to use the phone dialer, then don't disable this package!)[/I]
adb shell su -c pm disable com.samsung.android.email.provider
adb shell su -c pm disable com.samsung.android.providers.context
adb shell su -c pm disable com.samsung.android.rubin.app
adb shell su -c pm disable com.samsung.android.voc
adb shell su -c pm disable com.sec.android.app.clockpackage
adb shell su -c pm disable com.sec.android.app.popupcalculator
adb shell su -c pm disable com.sec.android.app.sbrowser
adb shell su -c pm disable com.sec.spp.push
3. Optional: Remove remaining bloatware
Code:
adb shell su -c pm disable com.android.providers.partnerbookmarks
adb shell su -c pm disable com.microsoft.office.excel
adb shell su -c pm disable com.microsoft.office.onenote
adb shell su -c pm disable com.microsoft.office.powerpoint
adb shell su -c pm disable com.microsoft.office.word
adb shell su -c pm disable com.samsung.android.ststub
adb shell su -c pm disable com.samsung.android.knox.containeragent
adb shell su -c pm disable com.samsung.android.knox.containercore
adb shell su -c pm disable com.samsung.knox.securefolder
adb shell su -c pm disable com.samsung.knox.securefolder.setuppage
adb shell su -c pm disable com.sec.enterprise.knox.attestation
adb shell su -c pm disable com.sec.enterprise.knox.cloudmdm.smdms
adb shell su -c pm disable com.sec.enterprise.mdm.services.simpin
adb shell su -c pm disable com.sec.enterprise.mdm.vpn
4. Optional: Disable more unnecessary apps
Code:
adb shell su -c pm disable com.sec.android.app.kidshome
adb shell su -c pm disable com.sec.android.emergencylauncher
adb shell su -c pm disable com.sec.android.widgetapp.samsungapps
adb shell su -c pm disable com.sec.android.widgetapp.webmanual
adb shell su -c pm disable com.sec.musicstudio
If anyone has any further tips, please contact me.
Thanks, rainman. May I ask, which app you are using above?
corwin_amber said:
Thanks, rainman. May I ask, which app you are using above?
Click to expand...
Click to collapse
It's GSam Battery Monitor Pro
Can't do this with unrooted devices right? Since it uses "su -c"?
Anyway "adb shell su -c pm disable" doesn't work on my Tab S3.
Tried "pm uninstall -k --user 0 <name of package>" and it works but it uninstalls it though.
Package Disabler pro for Samsung
Hi,
Same Problem with unrooted device here. Can not disable the mentioned apps by using adb from my computer. Completely uninstalling is a bit risky I guess.
Found an app called Package Disabler Pro for Samsung instead. Works on unrooted stock devices and disables every app you want. Just tick the checkbox near to it. If you can not find the mentioned packages by name use the search function on top.
Works great, but you have to pay for it. For me it is worth that.
https://play.google.com/store/apps/details?id=com.elmklmsamsung.batteryaddon
Edit: Read on another place that Samsung AASA Service has to be disabled running oreo. Works for me.
Every app from the OP can be disabled with this command, no root necessary: $ pm disable-user --user 0 PACKAGENAME
You find more here: https://forum.xda-developers.com/galaxy-tab-s3/how-to/debloat-unbloat-tab-s3-android-8-0-0-t3906338
ItsOnlyMeAgain said:
Hi,
Same Problem with unrooted device here. Can not disable the mentioned apps by using adb from my computer. Completely uninstalling is a bit risky I guess.
Click to expand...
Click to collapse
Possibly unrelated question..
My understanding is that if you uninstall an app, that modifies the /system partition, which would then fire dm-verity on next boot.
I also am at a loss as how the app can be truly uninstalled with the /system partition read only.
So does "pm uninstall..." actually uninstall on an unrooted device?
Thanks in advance for any clarification here.
-Pie

Getting all blacklisted, system/user packages back any Fire OS version (Root only)

Hey Fire TV owners if you have an already unlocked Fire TV device whether it's .sh rooted via temp Magisk root or a fully unlockable device, you can input these commands to get all those packages back in working order and I thank @Pro-me3us for these commands from the Fire TV Cube Gen 3 (Gazelle) temp root guide.
Enable ADB debugging in Settings, My Fire TV, Developer Options.
adb connect 192.168.x.x or have it connected via USB adb.
adb devices,
su (grant root)
setenforce 0
echo '<?xml version="1.0" encoding="utf-8" standalone="yes" ?><map><set name="DenyListKeyPackages"></set></map>' > /data/system/PackageManagerDenyList
pm clear com.fireos.arcus.proxy
pm disable-user com.fireos.arcus.proxy
pm disable-user com.amazon.device.software.ota
pm clear com.amazon.device.software.ota
pm disable-user com.amazon.device.software.ota.override
pm clear com.amazon.device.software.ota.override
pm disable-user com.amazon.tv.forcedotaupdater.v2
pm clear com.amazon.tv.forcedotaupdater.v2
pm list packages -d
then reboot

Categories

Resources