Secret apps list found in Home menus! - Fire TV General

After I used terminal emulator with the pm disable function to disable both Gamecircle apps,Amazon Video,Photos (screensaver usage),and the Amazon AppStore,and resetting with ctrl+alt+del,I found a nice little surprise in the apps tab on the Home screen.
When I went to the Apps section,the list of all my installed apps appeared on the right!
When selecting them,they open immediately,but I can't long press to view the details of an app.
However,since they are still in the settings menu as well,I can still view the details from there.
The only issue with it is that it is a little buggy with scrolling through apps.
You can figure out the com-names using 7zipper 2.0 to view the advanced "details" of your apps.
To get the names to disable the same apps I did, change 7zipper's app list to system mode.
Info for people who really hate resource hogs:KFTV Launcher is currently using 80.59MB according to memory booster!
It probably has something to do with each menu selection loading dozens of images and information and sub-apps that seem to have no individual apps for selecting to disable.
So rbox,when you feel the Home Menu MOD is stable enough,please let me know when you release it for xposed.

retroben said:
After I used terminal emulator with the pm disable function to disable both Gamecircle apps,Amazon Video,Photos (screensaver usage),and the Amazon AppStore,and resetting with ctrl+alt+del,I found a nice little surprise in the apps tab on the Home screen.
When I went to the Apps section,the list of all my installed apps appeared on the right!
When selecting them,they open immediately,but I can't long press to view the details of an app.
However,since they are still in the settings menu as well,I can still view the details from there.
The only issue with it is that it is a little buggy with scrolling through apps.
You can figure out the com-names using 7zipper 2.0 to view the advanced "details" of your apps.
To get the names to disable the same apps I did, change 7zipper's app list to system mode.
Info for people who really hate resource hogs:KFTV Launcher is currently using 80.59MB according to memory booster!
It probably has something to do with each menu selection loading dozens of images and information and sub-apps that seem to have no individual apps for selecting to disable.
So rbox,when you feel the Home Menu MOD is stable enough,please let me know when you release it for xposed.
Click to expand...
Click to collapse
This has been known for some time. I think you found the secret that I hadn't been able to figure out; I bet it was disabling the Amazon Appstore. From what I remember, the initial reports were that sideloading the Appstore from Android caused this to happen. The code I haven't been able to find yet, must check for the Appstore and it's not there or the wrong one, it falls back to this grid view. At one point I was working on a mod that exposed (get it... cuz I use Xposed... haha) a similar, but less buggy grid. I may go back to working on that.
As for the menu mod, I just got the UI done for selecting which items should be visible, and I'm just working on the saving/loading of the preferences and getting the menu to reload after it's been changed.

What all did you disable and do you have the disable code you ran?

cybertlc said:
What all did you disable and do you have the disable code you ran?
Click to expand...
Click to collapse
pm disable "com.amazon.venezia"
Note this breaks Netflix completely.

Does disabling Photos and Gamecircle break Netflix as well? What are the package names for those 2?

Download and install "Package Name Viewer" : https://play.google.com/store/apps/details?id=com.gijoon.pkgnameviewer&hl=en

Or if you already have 7Zipper 2.0,you can view the names in the applications section in the details option via longpressing an app.
7Zipper 2.0 is the only well-known app that can extract 7z files on Android.

That's time consuming to do it for every app...Package Viewer does only what it says, shows you the com.xxxx.xxx name for installed packages.

I get a "Failed to connect to dumb state service killed" error when using the pm disable command
Any ideas

Stevie G said:
I get a "Failed to connect to dumb state service killed" error when using the pm disable command
Any ideas
Click to expand...
Click to collapse
How did you get to that point? The easiest is to run 'adb shell', then 'su' and verify you have the # prompt and it should work.

rbox said:
How did you get to that point? The easiest is to run 'adb shell', then 'su' and verify you have the # prompt and it should work.
Click to expand...
Click to collapse
We'll I did not type that.what is the correct way of typing it out adb shell su com.amazon.avod

Stevie G said:
We'll I did not type that.what is the correct way of typing it out adb shell su com.amazon.avod
Click to expand...
Click to collapse
1. adb shell
2. su
3. pm disable com.amazon.avod

lightning413 said:
1. adb shell
2. su
3. pm disable com.amazon.avod
Click to expand...
Click to collapse
Thanks bud

Press enter after every part.
1a. adb shell
1b. Press Enter
2a. su
2b. Press Enter
3a. pm disable name.of.app (some begin with org instead of com)
3b. Obviously press Enter,unless you changed your mind.

Does anyone have a list of what can safely be disabled without interfering with other features/apps/functions? I want to keep my Netflix/Pandora fully functional (but could care less about games).

cybertlc said:
Does anyone have a list of what can safely be disabled without interfering with other features/apps/functions? I want to keep my Netflix/Pandora fully functional (but could care less about games).
Click to expand...
Click to collapse
Why do you feel like you have to disable anything?

rbox said:
Why do you feel like you have to disable anything?
Click to expand...
Click to collapse
I'm assuming there are things that can be disabled to use less resources.

cybertlc said:
I'm assuming there are things that can be disabled to use less resources.
Click to expand...
Click to collapse
Not really. If you run ps from adb shell, there really isn't that much running that you'd be able to disable without completely break everything.

I find that Fire TV is actually not that bad about bloating apps when compared to the GS7 that got replaced by it.
The Sony NSZ-GS7 has some bloat apps like the TTS and most of the other ones I can't remember because none of them are on Fire TV.
Kernel Tuner:
I found out that the best performance governor for CPU is the Interactive governor.
And for I/O Schedular,the deadline mode is the fastest one.

This failed the wife acceptance test as it also causes issues with (but does not totally break) Pandora.

Related

[Android] Possible fix to preview pop up when switching to pen input.

Actually for any of you who are rooted. It is a fix. Just disable com.hanvon.portableink (Floating Windows). Job done. I'm rooted right now, and was wondering if someone who is not could try to disable this. I know you can not do it from the Apps section of the settings. There are however lots of package disabler type apps. If we can find one that will do this without root. We finally have the fix to (IMO) the most annoying thing on this tablet.
Thanks
As far as I know you don't need any package disabler. ADB should be sufficient (c.f. the linked portal article below).
https://www.xda-developers.com/uninstall-carrier-oem-bloatware-without-root-access/
Sent from my HTC One M9 using XDA Labs
ok.thanks. can you write the magic words to disable istead of uninstall?
That should be
Code:
pm hide <name of package>
for disabling and
Code:
pm unhide <name of package>
for re-enabling.
However, I haven't used these since android 5. I'm not sure whether they're still working or whether they got changed in the meantime (e.g. on android 4.x the commands were enable and disable and on android 4.4.4 the commands were block and unbock).
Be aware that disabled apps will not be visible in the package manager or the app overview of your launcher until you re-enable them.
tried with this result:
[email protected]:/ $ pm hide com.hanvon.portableink
Error: java.lang.SecurityException: Neither user 2000 nor current process has android.permission.MANAGE_USERS.
also:
1|[email protected]:/ $ pm disable com.hanvon.portableink
Error: java.lang.SecurityException: Permission Denial: attempt to change component state from pid=498, uid=2000, package uid=10077
what now?
Well, it looks like they don't work, anymore. I'd use the commands from the article if I were you. You can still get the apps back by making a factory reset.
Sent from my HTC One M9 using XDA Labs
tried uninstall. effect: pen works without that preview window
adb shell
pm uninstall -k --user 0 com.hanvon.portableink
thanks for the tipp
Wow, thanks for this. This might be the one tip that lets me keep my yoga book and not return it.
BTW, uninstalling the preview window went well, but I had to reboot my device before the pen would work with apps other than Lenovo note saver. Just a heads up for anyone who tries to disable the preview window, and starts worrying when apps stop taking pen input, and automatically switch on the halo keyboard.
---------- Post added at 06:15 PM ---------- Previous post was at 06:05 PM ----------
Can't take notes with the screen off anymore though. Can others who have uninstalled the preview window confirm this?
had the same, forgot to describe it. What else would make sense to deinstall...
screen off: the original note taker took the notes on screen of, right? That we uninstalled.
maybe that can be replaced by another app
OK, With the upgrade to 7.1.1, I have decided to try without root. But of course the issue with the preview window is still there. In the end I used this app that I had bought in the past.
https://play.google.com/store/apps/details?id=com.ospolice.packagedisablerpro&hl=en
You have to delete all accounts then use adb to set the app as owner. After that it can disable without root.
I know disabling com.hanvon.portableink breaks the Screen Off notes but for me that's better than the pop up window every time I switch modes. And I can enable / disable at will like this.
If anyone finds a less roundabout way without root, I would be happy to know it. Or of course a way to stop the pop up without killing the screen off notes.
Otherwise the upgrade is so far very good.
Thanks
Pls Help
Broomfundel said:
OK, With the upgrade to 7.1.1, I have decided to try without root. But of course the issue with the preview window is still there. In the end I used this app that I had bought in the past.
play.google.com/store/apps/details?id=com.ospolice.packagedisablerpro&hl=en
You have to delete all accounts then use adb to set the app as owner. After that it can disable without root.
I know disabling com.hanvon.portableink breaks the Screen Off notes but for me that's better than the pop up window every time I switch modes. And I can enable / disable at will like this.
If anyone finds a less roundabout way without root, I would be happy to know it. Or of course a way to stop the pop up without killing the screen off notes.
Otherwise the upgrade is so far very good.
Thanks
Click to expand...
Click to collapse
You have to delete all accounts then use adb to set the app as owner.
sorry i am newbie,
how to delete all accountsthen use adb to set the app as owner
can you pls explain this and what the command to disable this com .hanvon .portableink
Hi,
It has been a long time since I did this. But the instructions are available with the app.
In short, in accounts, you remove all the accounts "Google etc..." Then copy the adb command from the apps instructions. It may sound scary but you can't do any harm. Worst case, you just give up and add the accounts back.
The link I used is no longer valid, so here is an up to date one.
https://play.google.com/store/apps/details?id=com.pdp.deviceowner
Hopefully their instructions will be clear enough.
Kvink said:
You have to delete all accounts then use adb to set the app as owner.
sorry i am newbie,
how to delete all accountsthen use adb to set the app as owner
can you pls explain this and what the command to disable this com .hanvon .portableink
Click to expand...
Click to collapse

usage data access

Hi,
is it possible to grant "usage data access" to a app?
I can't find it in the settings but I need it for two apps.
Thanks.
etofi said:
Hi,
is it possible to grant "usage data access" to a app?
I can't find it in the settings but I need it for two apps.
Thanks.
Click to expand...
Click to collapse
Did you ever find a way to grant "usage data access"?
I will be writing a thread sometime in the next day or so that involves a total reinstallation of the settings on the rooted HD 10 that unlocks that setting amongst others Amazon has locked us out of. If you have an HD 8, download activity launcher from the Play Store open it then tap on the box in the upper left, and tap on all activities, scroll down to settings and tap on that and then tap on apps with usage access.
AJW6381 said:
Did you ever find a way to grant "usage data access"?
Click to expand...
Click to collapse
No. I sent the tablet back.
Grab Activity Launcher from the play store and run it. Select 'all activities' and wait for the list to populate. Scroll down and select 'Settings'. In the submenu that opens, scroll down to 'Apps with Usage Access.' From there you can grant / deny this permission to all apps that have requested it.
1ManEntourage said:
Grab Activity Launcher from the play store and run it. Select 'all activities' and wait for the list to populate. Scroll down and select 'Settings'. In the submenu that opens, scroll down to 'Apps with Usage Access.' From there you can grant / deny this permission to all apps that have requested it.
Click to expand...
Click to collapse
Worked! Thanks!
No problem, glad it helped.
Worked like a charm! FIXED!
No go
Activity launcher doesn't work on my Kindle Fire 8. Crashes at 149 every time, even after hard reset.
Trying to find out why my battery drains so fast, and trying to give permission to AccuBattery to track apps.
druekberg said:
Activity launcher doesn't work on my Kindle Fire 8. Crashes at 149 every time, even after hard reset.
Trying to find out why my battery drains so fast, and trying to give permission to AccuBattery to track apps.
Click to expand...
Click to collapse
Try the free version GSAM which is available in the Amazon and Google App stores or via your favorite trusted app download site. You'll need to grant permissions via ADB to gather application specific data. Fortunately, the app guides you through this process which is relatively painless if familiar with ADB and tethered operations. Once complete GSAM runs circles around AccuBattery for those interested in getting to root cause ... although you may not be able to address the culprit(s) on an unrooted device. Another excellent choice: BBS (Better Battery Stats). Good luck.
---------- Post added at 05:48 PM ---------- Previous post was at 05:21 PM ----------
Alternatively, try Activity Manager which works fine on my 8th gen HD 8.
Thank you!
1ManEntourage said:
Grab Activity Launcher from the play store and run it. Select 'all activities' and wait for the list to populate. Scroll down and select 'Settings'. In the submenu that opens, scroll down to 'Apps with Usage Access.' From there you can grant / deny this permission to all apps that have requested it.
Click to expand...
Click to collapse
That was exactly the info I needed for my Kindle Fire 7th Gen. Thank you!
AskKim said:
That was exactly the info I needed for my Kindle Fire 7th Gen. Thank you!
Click to expand...
Click to collapse
also worth noting I don't believe you need root access to Grant the packages that need this permission using adb.
Code:
adb shell pm grant com.package.name android.permission.PACKAGE_USAGE_STATS
Sent from my Amazon KFSUWI using XDA Labs
Sometimes I really thank god for smart people. I purchased a cheap tablet last month from the local walmart just for playing easy games like bingo and slots on but every time I would try and play a game it kept freezing up. And then I just decided to use it only for reading ebooks and then I was going back to using my fire tablet to play the games. I like apps that connect with the games I already enjoy playing and collect free giftcards from them apps. I play them all the time on my cellphone but then the battery runs dead way to fast with all the games that I play. So I just decided to use a giftcard winning app on my fire tablet and I could not use it because I could not give it permission to use the tablets "Usage Data Access" so I just looked online and found this forum. And fixed the problem in less then 2 minutes.
So all in all I would have never figured out how to fix this problem on my own thank you.
I also have the 7th Gen HD 8, but when I download Activity Launcher and run it, it loads up all 225 apps. But there is no settings submenu anywhere?
---------- Post added at 04:58 AM ---------- Previous post was at 04:57 AM ----------
ah...nevermind. Had to click on the "Settings" app itself that Activity Launcher shows in the list of apps...
sadly this is a no go on my fire hdx 8.9 4th gen tablet
Adding an update here as they've either changed Activity Launcher or it shows differently on different tablets. I too have been driven mad by this "usage stats" request. I have wanted to add blockers and timers to my son's tablet but unable to until now.
If you cannot find the usage stats permission, download activities manager from Google Play. If you don't have Google Play on your Fire Tablet you'll need to add it using the ADB program, info for this is easy to find from Google and YouTube but I've linked it below.
Once you have downloaded Activity Manager, open it and click search, the magnifying glass at the top of the screen, start typing in Usage. The first result should say: Apps with Usage Access, open this and turn on whatever apps are off. It will give you a warning, just say "ok" and your apps should work.
As I know info can be hard to come by on the internet I am including ADB advice for anyone with a Fire Tablet here:
Open the description panel in the video to find the links to download the ADB program, the video will show you how to install it.
If you just see a blank "Fire" folder when you plug your Kindle Fire HD 10 (2019) into your desktop computer, tap on your "Settings" icon on your Home screen. Second option is "Connected Devices". Tap on that. First option there is "USB". Tap on that. The bottom half of that list says "Use USB for" and gives you some options. Select "File Transfer", and then go back to your file explorer on you desktop, make sure it is plugged into your Kindle with the supplied cable, and you should see One or Two folders depending on whether or not you have a microSD card installed.
On a Fire 7 and later if you want the the USB data transfer option on all the time/by default then you will need to open the development options, opening the developer options will also help you if you want to remove certain apps from the home screen (https://youtu.be/0zW7jejn2bM) or add Google Services such as play store and YouTube (https://www.youtube.com/watch?v=n58XopeWj5M).
Open Developer Options by doing the following: Settings > Device Options > About Fire Tablet now tap Serial Number about 7 times, go back into the Device Options menu and you will see Developer Options second from the bottom Go into the Dev options and turn them on saying OK on the pop up warning. Under debugging select USB debugging, this will allow you to use the ADB program. #
To keep USB on file transfer by default:
Scroll down to Networking and tap Default USB configuration, set this to File Transfer so you will always see your tablet come up when you put it on a USB cable.
1ManEntourage said:
Grab Activity Launcher from the play store and run it. Select 'all activities' and wait for the list to populate. Scroll down and select 'Settings'. In the submenu that opens, scroll down to 'Apps with Usage Access.' From there you can grant / deny this permission to all apps that have requested it.
Click to expand...
Click to collapse
This worked on my Tab10 2021 as well. Thank you.

NO ROOT REQUIRED: Completely disable and enable your lock screen

Many of us don't have root and many of us also uninstalled may system apps, including Fire Launcher. That left us with some annoyances. One major annoyance was being kicked to the lock screen whenever we swiped away apps from the recent apps menu. Some people saw annoying flashes. Well this isn't quite a fix, but it pretty much takes care of the problem. You can now remove your lock screen completely and replace it at will and you do NOT need root access.
***WARNING: Touching any other settings on your tablet during this guide can cause a brick!!!***
1. Download and install Settings Database Editor.
2. Plug your tablet into your PC and open an ADB window. Enter the following:
Code:
adb shell pm grant by4a.setedit22 android.permission.WRITE_SECURE_SETTINGS
Step number 2 MUST be done in order for this to work.
3. Open Settings Database Editor and tap on the 'secure' tab at the top.
4. These settings are in alphabetical order. Scroll until you see:
Code:
"lockscreen_disabled" "0"
5. Change the 0 to a 1. DO NOT CHANGE ANYTHING ELSE
6. Close Settings Database Editor
Now turn off your screen. Now turn it back on. You are welcome! I have a few more tricks coming. Watch for some later!
IF THE ABOVE DOESN'T WORK, TO DISABLE LOCK SCREEN:
Code:
adb shell settings put secure lockscreen_disabled 1
ENABLE LOCK SCREEN:
Code:
adb shell settings put secure lockscreen_disabled 0
Both methods don´t work on my Fire HD10 2017.
tommes-d said:
Both methods don´t work on my Fire HD10 2017.
Click to expand...
Click to collapse
It worked almost instantly for me. Maybe wait a bit? Did you reboot? It won't work on every device. Doesn't work on my Galaxy S7.
Not working for me too (Fire HD 8 2016). Also, you've made a mistake: original setting name is "lockscreen.disabled" (dot, not an underscore).
sensboston said:
Not working for me too (Fire HD 8 2016). Also, you've made a mistake: original setting name is "lockscreen.disabled" (dot, not an underscore).
Click to expand...
Click to collapse
Disappointing. Today I got a good one though. I can't wait to get home and post a thread.
I know this isn't the correct forum for this but I tried this on a Fire 7 (2017) and it also does not seem to work.
is there an updated way to do this?
is there an updated way to do this?
edit: kindle fire 8 7th gen, confirmed not working.
Doesn't work on my Fire HD8. But while browsing through Settings Database Editor I have found something useful.
In the "Global Table" tab there's a setting called LOCKSCREEN_AD_ENABLED. Change the value from 1 to 0, save. Turn off screen, turn it on again --> ads are gone!
At least for a while...
Seems to be working on KFAUWI (Fire 7 7th Gen) on 5.4.0.0.
EDIT: Maybe it doesn't work with 5.4.0.1 and later?
It would be useful for those reporting success/failure to include not just device model, but fw version as well.
EDIT1: After some time playing around the system I have found out that by default it actually does not work, but if Global Table->"device_provisioned" = 0 then lock screen gets disabled, but serial number gets greyed out and developer options get disabled, while adb remains functional.
On 5.6.0.0 even change to "device_provisioned" did not disable the lock screen.
gabosius said:
Seems to be working on KFAUWI (Fire 7 7th Gen) on 5.4.0.0.
EDIT: Maybe it doesn't work with 5.4.0.1 and later?
It would be useful for those reporting success/failure to include not just device model, but fw version as well.
Click to expand...
Click to collapse
There are settings in the "private" class that override some of these lower ones, usually in favor their using their own software. I think most device stock settings are hidden for the purpose of favoring their own software. Though with Amazon, I scratch my head. Why spend the large amount of money, to install a high tech, customizable GPS system on devices, only to spend more money carelessly blocking your Access?
Sent from my Samsung Galaxy S4 using XDA Labs
DragonFire1024 said:
There are settings in the "private" class that override some of these lower ones, usually in favor their using their own software. I think most device stock settings are hidden for the purpose of favoring their own software. Though with Amazon, I scratch my head. Why spend the large amount of money, to install a high tech, customizable GPS system on devices, only to spend more money carelessly blocking your Access?
Sent from my Samsung Galaxy S4 using XDA Labs
Click to expand...
Click to collapse
That's fairly simple, the same goes for one of the iPhones (don't recall which gen exactly) which had two different models of radio chips, one of which did support LTE, but Apple decided to disable LTE support for that gen of the phone altogether.
Now more on the topic, checked the specs of all 7th gen tablets, indeed none of them seem to support GPS officially (for some reason I thought that HD8/HD10 might have it), but if they have the hw, it could be for testing purposes to test proprietary GPS related sw on development devices before introducing it in the next gen? Or simply they decided to drop it somewhere along the way but left the hardware (as we still have Serial/UART on some production devices nowadays, which are used only for debugging in the development stage).
On the other hand, where did you get the info that it actually has GPS related hardware? Because while exploring my device settings I only found a hint on A-GPS support (which is not proven).
gabosius said:
That's fairly simple, the same goes for one of the iPhones (don't recall which gen exactly) which had two different models of radio chips, one of which did support LTE, but Apple decided to disable LTE support for that gen of the phone altogether.
Now more on the topic, checked the specs of all 7th gen tablets, indeed none of them seem to support GPS officially (for some reason I thought that HD8/HD10 might have it), but if they have the hw, it could be for testing purposes to test proprietary GPS related sw on development devices before introducing it in the next gen? Or simply they decided to drop it somewhere along the way but left the hardware (as we still have Serial/UART on some production devices nowadays, which are used only for debugging in the development stage).
On the other hand, where did you get the info that it actually has GPS related hardware? Because while exploring my device settings I only found a hint on A-GPS support (which is not proven).
Click to expand...
Click to collapse
Add a few .xml configuration files to start and there is configuration settings in the framework. Look for an app on the tablet with HERE in all caps in the title. That's the APK module making it possible. And yes I figured out a way to modify framework settings
DragonFire1024 said:
Add a few .xml configuration files to start and there is configuration settings in the framework. Look for an app on the tablet with HERE in all caps in the title. That's the APK module making it possible. And yes I figured out a way to modify framework settings
Click to expand...
Click to collapse
I see, just checked MT8127 specs, and indeed there seems to be integrated support for GPS with GLONASS, that may be something interesting to play with.
EDIT: HD8/HD10 even have broader support of GPS related technologies according to their SoC specs.
Yeah, I was following root progress thread, even tried Blueborne exploit (the one published by Armis labs on github) on KFAUWI without much success as there is no access to /proc/<pid>/maps. And framework-res.apk mod looks promising only for devices having root, as getting required permissions outside /system is rather problematic.
Yet I was surprised that WRITE_SECURE_SETTINGS can be assigned outside /system. As I was poking around com.amazon.dcp.permission.DISPLAY_DEBUG_UI for quite some time.
gabosius said:
Yet I was surprised that WRITE_SECURE_SETTINGS can be assigned outside /system. As I was poking around com.amazon.dcp.permission.DISPLAY_DEBUG_UI for quite some time.
Click to expand...
Click to collapse
Do you have any idea if you can grant something like Activity Launcher the DISPLAY_DEBUG_UI permission? Some of the activities gave me errors when I tried to open them, saying they require com.amazon.dcp.permission.DISPLAY_DEBUG_UI.
The thing is, this appears to be a custom permission added by Amazon, not available in the official Android documentation.
Would Activity Launcher even be capable of launching certain "hidden" activities with this permission granted? Presumably you would grant permission over ADB the same way as WRITE_SECURE_SETTINGS?
Any ideas would be great.
lakitu47 said:
Do you have any idea if you can grant something like Activity Launcher the DISPLAY_DEBUG_UI permission? Some of the activities gave me errors when I tried to open them, saying they require com.amazon.dcp.permission.DISPLAY_DEBUG_UI.
The thing is, this appears to be a custom permission added by Amazon, not available in the official Android documentation.
Would Activity Launcher even be capable of launching certain "hidden" activities with this permission granted? Presumably you would grant permission over ADB the same way as WRITE_SECURE_SETTINGS?
Any ideas would be great.
Click to expand...
Click to collapse
Tried granting it to other apps and it resulted in "com.amazon.dcp.permission.DISPLAY_DEBUG_UI is not a changeable type" the command I used was pm grant com.amazon.dcp com.amazon.dcp.permission.DISPLAY_DEBUG_UI so yes, the syntax is the same with custom amazon permissions. Also execution of dumpsys package com.amazon.dcp shows that app already has DISPLAY_DEBUG_UI permission.
My guess is that it requires root, as even when I am launching activity from adb shell (not in context of activity manager) I get the same error that it requires the permission, and the same goes for some other hidden amazon applications.
EDIT: you can get list of device permissions by executing "pm list permissions" without quotes from adb shell, there are at least a few interesting ones.
lakitu47 said:
Do you have any idea if you can grant something like Activity Launcher the DISPLAY_DEBUG_UI permission? Some of the activities gave me errors when I tried to open them, saying they require com.amazon.dcp.permission.DISPLAY_DEBUG_UI.
The thing is, this appears to be a custom permission added by Amazon, not available in the official Android documentation.
Would Activity Launcher even be capable of launching certain "hidden" activities with this permission granted? Presumably you would grant permission over ADB the same way as WRITE_SECURE_SETTINGS?
Any ideas would be great.
Click to expand...
Click to collapse
That's a great question and one that hasn't been asked before. I can tell you I've been able to, in some apps, modify the manifest permissions. For example, I can use an app to edit the manifest of Jack Pals terminal emulator to add the secure settings permission and have it successfully install etc. I never thought of doing the same with activity launcher and if successful, seeing what happens. This could be very interesting. If you give me a few copies of some of the manifests permissions, I can see if a recompile and install will hold.
DragonFire1024 said:
That's a great question and one that hasn't been asked before. I can tell you I've been able to, in some apps, modify the manifest permissions. For example, I can use an app to edit the manifest of Jack Pals terminal emulator to add the secure settings permission and have it successfully install etc. I never thought of doing the same with activity launcher and if successful, seeing what happens. This could be very interesting. If you give me a few copies of some of the manifests permissions, I can see if a recompile and install will hold.
Click to expand...
Click to collapse
I attached a text document with ALL of the permissions listed by "pm list permissions" since it was too long to put here.
lakitu47 said:
I attached a text document with ALL of the permissions listed by "pm list permissions" since it was too long to put here.
Click to expand...
Click to collapse
Give me a few hours to see if I can modify the app. If I can, I'll upload a. APK
Sent from my Samsung Galaxy S4 using XDA Labs
DragonFire1024 said:
Give me a few hours to see if I can modify the app. If I can, I'll upload a. APK
Sent from my Samsung Galaxy S4 using XDA Labs
Click to expand...
Click to collapse
Questionable whether anything would change, as I don't see where activity launcher would need write secure settings permission.
On the other hand I did some digging on the "not a changeable permission type" message, and this provides some answer on what it might be expecting in order to activate?/assign the permission.
gabosius said:
Questionable whether anything would change, as I don't see where activity launcher would need write secure settings permission.
On the other hand I did some digging on the "not a changeable permission type" message, and this provides some answer on what it might be expecting in order to activate?/assign the permission.
Click to expand...
Click to collapse
Interesting. So each permission has a certain "protection" level?

g7 debloat - what methods work

just bought a g7.. looking to debloat it.. wish i could actually just flash a purified custom pie rom but doesn't look like any roms exist for the phone yet..
i could use pm uninstall --user 0 via adb but i dont really think that actually removes apps from the phone.. just disconnects it from the specified user profile...
Are you rooted? If so, using 'pm disable' or 'pm uninstall' will disable (not 100% sure if pm uninstall actually removes the files) the specified app globally.
If you are not rooted, then adding the --user 0 term pefroms the action on just your user profile...which doesn't need root.
Please post what you end up disabling without affecting the system. I have only done a quick disable on apps in the apps setting. This only gets the easy stuff like most of the Moto add-ons and Google music, movies, etc.
In an unrooted G7 (I'm waiting for twrp and lineageos 16) will disabling Google music, movies, sheets, slides, and the like mess things up?
How about apps like CQATest, Digital wellbeing, Moto Help, and Moto notifications?
I'm not an android guru so I'm afraid of breaking things.
No, I have most of those things, and more, disabled without issue.
Worst case, if disabling causes an issue, just reenble it.
smokinu said:
No, I have most of those things, and more, disabled without issue.
Worst case, if disabling causes an issue, just reenble it.
Click to expand...
Click to collapse
Thanks. I disabled many apps and left alone those that required uninstall.
It would be great to know in this thread a list of apps you've disabled and/or uninstalled with no ill effects. I'm sure your experience would help many.
maybeme2 said:
Thanks. I disabled many apps and left alone those that required uninstall.
It would be great to know in this thread a list of apps you've disabled and/or uninstalled with no ill effects. I'm sure your experience would help many.
Click to expand...
Click to collapse
Apps that give you the option to uninstall are usually apps that you can download again on the play store.
I'll try to get a list of apps I disabled soon.
smokinu said:
Apps that give you the option to uninstall are usually apps that you can download again on the play store.
I'll try to get a list of apps I disabled soon.
Click to expand...
Click to collapse
Thanks in advance on that, I will work on getting a small list of apps I disable and observation of phone behavior after their disable.
Edit:
For methods, you can root via patching the stock image with magisk.
You can use Titanium Backup to disable apps and watch the system's behavior per disable. I recommend backing up all the SYSTEM app related files first before doing anything, better safe than sorry. I am taking a break from playing with the phone but plan on getting a list of all the SYSTEM apps that are safe to remove.
Here are the apps that I have disabled. This can be done without root. Didn't see any issues after turning these items off. I have uninstalled other apps that had the option, but they are not in this list.
smokinu said:
Here are the apps that I have disabled. This can be done without root. Didn't see any issues after turning these items off. I have uninstalled other apps that had the option, but they are not in this list.
Click to expand...
Click to collapse
have you tried permanently removing anything yet? for river_amz i had some issues of not being able to locate apks.
You can remove apps in an 'adb shell' with:
Code:
rm -r [I]folder[/I]/
as long as you have root. Then restart your phone.
If you factory reset though the app will still be gone. You have to flash firmware to bring them back.
whats wrong with using like Titanium Backup? freeze and test for a few days, then just delete them?
You can disable some more apps besides the ones you already listed
sp1804 said:
just bought a g7.. looking to debloat it.. wish i could actually just flash a purified custom pie rom but doesn't look like any roms exist for the phone yet..
i could use pm uninstall --user 0 via adb but i dont really think that actually removes apps from the phone.. just disconnects it from the specified user profile...
Click to expand...
Click to collapse
I followed a Moto X Style battery saving guide made by @rehpyc that included safely disabling a list of apps. After following only the non-root part, the phone felt slightly more fluid and it boosted its screen on time by an hour and a half (a major difference, considering that with no tweaks its battery life is pretty bad).
Source: https://forum.xda-developers.com/moto-x-style/general/guide-getting-battery-life-t3249458
Here's the list:
» Android Live Wallpapers
» Android System WebView
» Audio Effects
» Bubbles
» Cloud Print
» Connect
» Docs
» Email (I use Gmail)
» Emergency Alerts
» Exchange Services
» Help
» Google Hindi Input
» Google Japanese Input
» Google Keyboard (if you use a different keyboard)
» Google Korean Input
» Google Pinyin Input
» Google Play Movies & TV
» Messaging (if you have an alternative installed)
» MotoCare
» MotoCareInt
» Motorola Checkin
» Motorola Migrate
» Motorola Update Services
» Print Spooler
» Sheets
» Slides
» Tags
» Talkback
Many of these items don't exist on my unrooted G7.
For example, no
Bubbles
Cloud Print
Tags
Talkback
Etc.
Where do you find them?
maybeme2 said:
Many of these items don't exist on my unrooted G7.
For example, no
Bubbles
Cloud Print
Tags
Talkback
Etc.
Where do you find them?
Click to expand...
Click to collapse
In Settings > Apps, tap the three dot menu and select "Show system". If you have already done this with no result, then chances are your G7 has different bundled apps than the X Style.
Aluminium X said:
In Settings > Apps, tap the three dot menu and select "Show system". If you have already done this with no result, then chances are your G7 has different bundled apps than the X Style.
Click to expand...
Click to collapse
Yes my G7 must have different bundled apps than the X Style.
I just wanted to make sure I wasn't missing something.
Thank you.

[GUIDE] Remapping Android TV remote buttons

Remapping Android TV remote buttons
​In this guide I will explain a way to remap to the shortcut buttons on the remotes of Android TV devices which cannot simply be remapped by e.g. Button Mapper.
I will use the Walmart Onn Box as example for this guide, but it should also work for devices like the Xiaomi Mi Box.
The general idea is to install an Android automation app which analyzes the system logs of you device and starts your desired apps when it sees the button press log messages.
Enabling ADB
To install the automation app and give it permissions it needs, you must enable developper mode on your Android TV device and connect to it from your computer.
Those two turorials should explain you how to do it:
https://www.xda-developers.com/how-to-sideload-apps-android-tv​
https://www.xda-developers.com/install-adb-windows-macos-linux​
Easy way to control your Android TV device
Since it is very cumbersome or impossible to do everything with the remote control I recommend to use ScrCpy.
This allows you to easily control your device from your computer using mouse and keyboard.
After installation you can connect to your device with adb and enter 'scrcpy' in your console. You should instantly see the screen of your TV on your computer.
Installing 'Automate'
The app I recommend for the automation is called 'Automate'. It is free, but sadly can't be directly installed from the app store on Android TV (because of compatibility).
To avoid this limitation you can download the APK from e.g. Apkmirror and install it manually via ADB.
adb install .\path\to\the\downloaded\apk\Automate_v1.32.6.apk
Click to expand...
Click to collapse
While you are at it you can also give the app some privileges which it needs later to read the system logs and to start the apps.
adb shell pm grant com.llamalab.automate android.permission.SYSTEM_ALERT_WINDOW
adb shell pm grant com.llamalab.automate android.permission.READ_LOGS
Click to expand...
Click to collapse
To start Automate you need a launcher that can see sideloaded apps. I recommend the X-plore File Manager since it's also a good file manager and can be easily installed from the app store.
( There are also other alternatives like 'Tasker' instead of 'Automate', but since that is not free and activation doesn't work properly on a sideloaded app I can't recommend that. )
Configuring 'Automate'
After starting Automate you can create a new 'flow'. The goal of that flow is to monitor the system logs, and start your desired apps everytime it sees a button press message.
That can be done mainly with a 'Log await' node that contains following configuration:
Tag: WindowManager
Message: .*interceptKeyTq keycode=(\d+).*
Priority: Debug
Logged message (array): keycode
Click to expand...
Click to collapse
You can then use "Expression true?" nodes to check for the found value in keycode (e.g. for the Live TV button) ...
Formula: =keycode[1] = "172"
Click to expand...
Click to collapse
... and start your desired app with "App start" nodes.
Package: com.google.android.tv
Click to expand...
Click to collapse
An example of a full flow can be found here: Remap Onn. Android TV remote buttons
Conclusion
After setting all this up the apps should start when you press the buttons.
However the original app (or its installation view) also starts before it, so if you press the back button you will return to that app instead of the previously running app. To avoid that just use the home button instead.
The Automate app will not automatically start if you reboot your Android TV device. If you want that you can activate that in the settings: 'Run on system startup'. But make sure that everything works perfectly before you do that!
If you get stuck in a loop where you can't use other apps and also can't open and configure Automate anymore, you can use this command via ADB to disable all flows:
adb shell am broadcast -a com.llamalab.automate.intent.action.STOP_FLOW -n com.llamalab.automate/.StartServiceReceiver
Click to expand...
Click to collapse
Double_A_92 said:
To start Automate you need a launcher that can see sideloaded apps.
Click to expand...
Click to collapse
As a one-off, in case you don't want to install another app, you can always run:
Code:
adb shell am start -n com.llamalab.automate/.FlowListActivity
KenMacD said:
As a one-off, in case you don't want to install another app, you can always run:
Code:
adb shell am start -n com.llamalab.automate/.FlowListActivity
Click to expand...
Click to collapse
I went to Settings > Apps > See all apps and then scrolled down and clicked 'Show system apps'. You can find Automate, and then click open to launch.
Thanks for your guide. Now my Xiaomi Stick 4K remotes Netflix, Prime Video and Patchwall buttons are changed to open other apps.
Can you make Automate flow work like Button Mapper having also double click and long press open different apps.
stapreedi said:
Can you make Automate flow work like Button Mapper having also double click and long press open different apps.
Click to expand...
Click to collapse
That's probably not possible, since this is a very janky way that relies only on the android system text logs. Maybe the double click could be done in some complicated way, but the long press definitely not.
Thank you for your reply.
I asked same thing at Reddit AutomateUser and Automate developer ballzak69 answered but he did not tell how to modify flow:
https://www.reddit.com/r/AutomateUser/comments/uo5c00
Your guide is popular:
https://www.reddit.com/r/MiBox/comments/uo1m4s
Thanks for Idea. I have acer remote with netflix, youtube, primevideo and tiki live button. How to find keycode for these button in my acer remote because given keycode don't works
omdhar said:
Thanks for Idea. I have acer remote with netflix, youtube, primevideo and tiki live button. How to find keycode for these button in my acer remote because given keycode don't works
Click to expand...
Click to collapse
Connect the output of the "Log await" with the "Toast show" node, and the output of that back into the "Log await". That will create a little message popup with the keycode everytime you press a button.
Double_A_92 said:
Connect the output of the "Log await" with the "Toast show" node, and the output of that back into the "Log await". That will create a little message popup with the keycode everytime you press a button.
Click to expand...
Click to collapse
Thanks. It will be great if you could share flow example to generate keycode in message popup. It will also help many other here too.
omdhar said:
Thanks. It will be great if you could share flow example to generate keycode in message popup. It will also help many other here too.
Click to expand...
Click to collapse
Download this file Remap Onn. Android TV remote buttons and do what Double_A_92 told. Use your tablet or phone to modify flow file because its easier. When you modify flow file on your tablet or phone then you have to use example Aida64 for app package names on your tv. Use Send files to TV for what app name says. You can do it from Automate apps share icon.
Hey, thanks for the detailed guide! i did everything (i think )but when i hit start its stuck on the “Log await” i used your shared flow cause i got the same box.
Any ideas?
harel013 said:
Hey, thanks for the detailed guide! i did everything (i think )but when i hit start its stuck on the “Log await” i used your shared flow cause i got the same box.
Any ideas?
Click to expand...
Click to collapse
Hmm weird. Try deleting the flow and download it again so you have a fresh copy.
Also make sure to configure which apps you want to start. In my shared flow they are just random apps that I had installed. Maybe that causes problems if they aren't actually installed on the system.
what is different between this way and others way like "Button Mapper" or tvQuickActions?
oldman20 said:
what is different between this way and others way like "Button Mapper" or tvQuickActions?
Click to expand...
Click to collapse
This is for devices where the vendor buttons are not even registered as button presses by the system. So if you tried to use ButtonMapper or other apps, it wound't let you select the button and instead always open the app written on the button.
But yeah, if ButtonMapper works for your device that's obviously a much better way of doing it.
Double_A_92 said:
This is for devices where the vendor buttons are not even registered as button presses by the system. So if you tried to use ButtonMapper or other apps, it wound't let you select the button and instead always open the app written on the button.
But yeah, if ButtonMapper works for your device that's obviously a much better way of doing it.
Click to expand...
Click to collapse
thank, it got it!
btw, can i ask this?
How to check succeeded in transforming tv box into an Android TV ? or just download app from Google Play without issue?
I have the entire thing written out and plugged in, the only issue im having now is "Syntax error in regexp pattern near index1" i cant figure out through google what im doing wrong.
NarkosNakan said:
I have the entire thing written out and plugged in, the only issue im having now is "Syntax error in regexp pattern near index1" i cant figure out through google what im doing wrong.
Click to expand...
Click to collapse
Make sure you really wrote
.*interceptKeyTq keycode=(\d+).*
With all the dots and asterisks....
Double_A_92 said:
Make sure you really wrote
.*interceptKeyTq keycode=(\d+).*
With all the dots and asterisks....
Click to expand...
Click to collapse
Thank you very much, i couldn't see the first period at all in the main post~
The last problem im having is finding key codes, i don't understand how we find those for the app.
NarkosNakan said:
The last problem im having is finding key codes, i don't understand how we find those for the app.
Click to expand...
Click to collapse
Connect the output of the "Log await" with the "Toast show" node, and the output of that back into the "Log await". That will create a little message popup with the keycode everytime you press a button.

Categories

Resources