[REQUEST] [Xposed] module to hide app from recents? - Android Q&A, Help & Troubleshooting

Hello all,
I was wondering if someone would take time to develop a small Xposed module to prevent apps from appearing in the "recent apps" (long press home button) screen?
I did some research and tested on one app and it worked. I don't know if Xposed has access to the "area" needed; I decompiled an application and here's what I did:
open AndroidManifest.xml and under "Activity" add to the end of the line:
android:excludeFromRecents="true"
This will prevent app from appearing in recent apps. Ofcourse one can decompile/recompile all apps in order to achieve this but after a while with all updates it would become tiresome to do this That's why I think it would be nice if we could do this via Xposed module....
Thanx!
D.

I'm looking for the exact same thing. I'm sure this is something that's necessary, and I guess someone should've done it by now right? couldnt find any.... :|

Related

[Android] Hiding apps in the Drawer

Okay so I rooted my phone and have been having some fun with the pm disable <package name> command. I am wondering whether there is anyway to hide applications from the drawer but not completely disable them.
I have access to these apps on the home screen and don't need them taking up space on the drawer. Obviously this isn't that important, but I can appreciate good design and maybe this is possible (without a home replacement app!)?
Any help is appreciated
On some Roms you can hide these icons by opening the app drawer, long pressing on the icon you want to hide, dragging it onto the desktop (but dont remove your finger) and then when the app drawer closes, drag the icon to the trash.
Not all ROMs allow this but some do.
QMAN101 said:
On some Roms you can hide these icons by opening the app drawer, long pressing on the icon you want to hide, dragging it onto the desktop (but dont remove your finger) and then when the app drawer closes, drag the icon to the trash.
Not all ROMs allow this but some do.
Click to expand...
Click to collapse
What you're referring to is the advanced launcher here is the link to it http://forum.xda-developers.com/showthread.php?t=540880
I think what the poster wanted was a stand alone way to do this without having to rely on one particular ROM or having to use any particular launcher/home replacement.
shaneaus said:
I think what the poster wanted was a stand alone way to do this without having to rely on one particular ROM or having to use any particular launcher/home replacement.
Click to expand...
Click to collapse
Advanced launcher is just an advanced version of the current home though. You would be able to use it and not even know that it's not the default launcher, it works exactly the same, looks exactly the same and behaves the same bar a few added features like folders in the drawer, hiding applications and setting the number of homescreens.
This thread is pretty old, but I can't find an answer to this question anywhere else. Is there any way to hide apps in the drawer? I have a rooted evo with sense. There must be a way someone has found by now!
Only way I know of is an alternate launcher. I use Launcher Pro and that allows hiding icons.
---------
Sent from my Sprint SuperHero.
I want to do this too
it can be done from root explorer renaming app.apk to app.bak
but some will not work
Well there is this app and it seems to work as described with a ton of bonus features... Just make sure to restart you phone after hiding the apps to make it work.
https://market.android.com/details?id=com.smartanuj.hideitpro
menissalt said:
Well there is this app and it seems to work as described with a ton of bonus features... Just make sure to restart you phone after hiding the apps to make it work.
https://market.android.com/details?id=com.smartanuj.hideitpro
Click to expand...
Click to collapse
Er. No it doesn't - it just hides files
Actually it does remove files and i just used it. After long pressing the "audio manager" logo it comes to menu with one icon being "hide apps". Click and select what to hide.
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to Q&A

[Q] Hide App From launcher, and still have the option to start it.

ok, im trying to hide this app, from the app drawer by editing the manifest.xml file, and i did it, to be specific i just remove this line from manifest.xml "<category android:name="android.intent.category.LAUNCHER" />" but i want to hide it, and still have the option to open it...
i tried to start the application using titanium backup, but it doesnt give the option to open app...
im trying to do it by editing manifest.xml. i know there apps to hide anothers app..
if you have any idea of how to, ill appreciate it...
(im not an expert on this, and i dont even know if im asking in the right forum)
Hey, did you come across a solution? I'm facing exactly the same problem right now: The App's gone from the drawer but no longer executable by no means.
Sorry for bumping this old thread, but I endured reading about 10 pages of search results without success.
Thanks in advance!
You can use my app "App Quarantine" to do the job. You can disable the app in question (so it's no longer in the application drawer) and re-enable it as you want. Therefore you could use the home screen widget for quickly launching the app.
ramdroid77 said:
You can use my app "App Quarantine" to do the job. You can disable the app in question (so it's no longer in the application drawer) and re-enable it as you want. Therefore you could use the home screen widget for quickly launching the app.
Click to expand...
Click to collapse
Hey, thanks for the suggestion. Unfortunately I'm searching for a solution to get along without any 3rd party app.
Which means, I want the app to be "set invisible" before even installing it on the phone. I'd really like to know, which file of the apk has to be edited in which way to achieve this.
It'd be totally fine if it simply didn''t appear on the drawer.
Any other ideas?
I have an idea.
I have replaced the icons with a completely transparent .png image and recompiled the apk.
Remember you should not change the file name of the original icon, just replace the content.
I have used apk editor pro for this work.
The app will be in the launcher or app drawer but it will remain invisible.
You should also replace the app name with 3 to 5 spacebars.You can remember the position of the app in the app drawer.
Everyone will see you tapped on a empty space and a app started
I have tested this.
So you can be sure.
One more thing
If you see any folder like mipmap_anydpi_xxx in /res you should delete it
4RCH1 H4CK3R said:
I have an idea.
I have replaced the icons with a completely transparent .png image and recompiled the apk.
Remember you should not change the file name of the original icon, just replace the content.
I have used apk editor pro for this work.
The app will be in the launcher or app drawer but it will remain invisible.
You should also replace the app name with 3 to 5 spacebars.You can remember the position of the app in the app drawer.
Everyone will see you tapped on a empty space and a app started
Click to expand...
Click to collapse
4RCH1 H4CK3R said:
I have tested this.
So you can be sure.
One more thing
If you see any folder like mipmap_anydpi_xxx in /res you should delete it
Click to expand...
Click to collapse
Thread has been moved to the proper location, even though it is a 9-year-old thread...
I can't understand.
Clark Joseph Kent said:
Thread has been moved to the proper location, even though it is a 9-year-old thread...
Click to expand...
Click to collapse
So where should I post the reply?

[Q] Add-On App - Remove / Hide Launcher Icon WITHOUT Removing Category Launcher?

Hi,
I have an add-on / non-stand-alone app that I do not want an app icon to be created for. It is not meant to be run separately, since it is an add-on, but I would like it to show instructions on how to actually use it if someone does run it upon downloading from Google Play.
I have searched around, and kept finding people instructing others to remove
<category android:name="android.intent.category.LAUNCHER" />
I do not want to do this, as not only does it appear to cause the app to not function correctly, but it also prevents people from still having the option to run which would display instructions for use. I have seen others do this same thing I am seeking to do, and been able to look at their manifests: they look basically identical to mine, containing the launcher category, and I have verified that no launcher icon is present, checking directly after the install.
Thanks for your help.

[Solved] Screenshot Button Help

I have an Apex AP-GS918 (Nobis NB09) tablet with rooted stock Jellybean Rom. There is an annoying screenshot button on the bottom bar next to the volume button that I keep pressing accidentally because it is in a bad spot. I wish to disable it or remove it completely. I have searched the forums but all the answers seem to be for Samsung devices. They say to change the quick launch in the settings which I do not have. And they say to remove or disable the system app that controls it, they have different names for the app like screenshotcapture.apk and such, but there is no system app with that or similar name.
If anyone knows a way to be rid of this annoyance, any help would be greatly appreciated.
Thanks in advance.
UPDATE EDIT...
UltraWelfare said:
This feature is included in SystemUI.apk (I think - on some phones) and if you delete it you will have no UI.So don't do it.
Find an app on google play that disables it(I don't know how you will search it :silly
Click to expand...
Click to collapse
I was unable to find an app to disable, and you were correct that it was part of SystemUI.apk. But I found out how to remove it from the bar. I am unable to post where I found the method because I am not allowed to post outside links yet, So I kind of wrote a tutorial (if you can call it that).
I decompiled my SystemUI.apk using Android Multitool on my PC. I edited \res\layout\system_bar.xml.
The info about the buttons are there. I found the line labeled
Code:
@id/screenshot
and changed the following code after it
Code:
android:layout_width="@dimen/navigation_menu_key_width"
to
Code:
android:layout_width="0.0dip"
which makes the screenshot button 0 pixels wide, meaning not there anymore.
Then I recompiled it, opened the new apk using 7zip and copied the edited xml from it to the original apk to prevent signature failure (after making another backup of it of course), used ADB to push it, permission it, and reboot it. After that I was free of that %$#@ button. I now have to use a third party screenshot app from the play store, but it doesn't have a constant button that leaves me with 50 accidental screenshots a day.
It also works to remove the volume buttons, which are pointless when you have the hardware buttons. Those lines are labeled
Code:
@id/sub
@id/add
(on my device anyway). It does NOT work for the 3 dot menu button, but that one isn't so bad to have there.
Take that you cheap Chinese tablet.
Bump
lovestospooge said:
Bump
Click to expand...
Click to collapse
This feature is included in SystemUI.apk (I think - on some phones) and if you delete it you will have no UI.So don't do it.
Find an app on google play that disables it(I don't know how you will search it :silly
UltraWelfare said:
This feature is included in SystemUI.apk (I think - on some phones) and if you delete it you will have no UI.So don't do it.
Find an app on google play that disables it(I don't know how you will search it :silly
Click to expand...
Click to collapse
I got it to go away. The method is in the original post. Thanks for the info that got me going in the right direction.

How to create a limited ROM

Hi Everyone,
I'm working on a project on android tablet, and I need to limit some android and device feature.
We wrote apps and specific launcher which can intercept a lot of intent to limit access, but with newer version of android (since kitkat)
our solution doesn't work anymore, and the user is able to quit the specific launcher or the launched app.
I need some advice, before developping a limited ROM.
Specs :
1 - Disable device action (LongPress on switchOff)
2 - Disable message notification (Low Bat, SignalLost, ...)
3 - Hide the navigation bar
4 - Preload apps / Remove some apps
The limitation, is justified by the fact that human mistake shouldn't fail the device and the running apps
For the points 1 and 4. I read some tutorial that mention how to reaffect actions for a keycode, and which apps can be deleted in system/apps.
I need your help for point 2 and 3.
Thanks
XDArnaud
For #3, one easy way is to disable SystemUI. This will get rid of the status bar and navigation bar, and disable recents. It may also solve #2, though I'm not 100% sure.
Just make sure to DISABLE SystemUI (i.e. from Settings->Applications), don't delete it. Disabling will stop the app itself from starting but allow it to be available for other apps which need it to exist. Deleting may cause your device to fail to boot.
Thank you so much kived, thats a good hint you gave me
I will test this in the few days, and try to disable this automatically after boot.
After that I'll just have to limit access to settings app to avoid user to enable it.
Will I have to deodex the ROM and replace the default settings.apk by mine ? or just adding settings.apk in app and android will launch mine.
Thx
XDArnaud

Categories

Resources