sdex / activitymanager Goto Github PK
View Code? Open in Web Editor NEWLaunch any application activity
License: Apache License 2.0
Launch any application activity
License: Apache License 2.0
adb shell sh /storage/emulated/0/Android/data/moe.shizuku.privileged.api/start.sh echo start
I want to customize the launch parameters of some app shortcuts, but I want to use their icons.
Thanks for the useful app.
I'm a PhD student interested in finding security vulnerabilities in open source projects.
We found a total of 06 warnings (indicating potential vulnerabilities) when running the CogniCrypt static analyzer (*) on ActivityManager (or its library dependencies). We documented each one of these issues in private gists for the sake of confidentiality (non-disclosure).
Can you please let us know whether we can share these gists with you? We are eager to evaluate the perception of developers (e.g. severity of these warnings) and improve ActivityManager's security, and the quality of the reports of static analysis tools.
Similar to #3, Notices scroll position also gets lost after device rotation
After rotation:
This does not need to enter github to translate applications, especially for some areas that may not be able to access github very friendly.
I want to work around a Matrix Element bug in making shortcuts; I want to choose a custom icon for a shortcut to Firefox Fennec.
I can do both with this app, if it lets me setData()
to a custom URI.
// im.vector.app.features.link.LinkHandlerActivity - mozilla.components.feature.pwa.WebAppLauncherActivity
Intent intent = new Intent();
intent.setClassName(packageName, activityName);
intent.setData(android.net.Uri.parse(permalink));
ctx.startActivity(intent);
to take advantage of the full length of the mobile screen when reading pdfs I want to automate the process of going to developer options-->display cutout-->waterfall cutout mode, and then open the Readera app to read the pdfs. When finished I have to switch to normal screen mode.
How could I do it with this app?
Thanks for the useful app.
Just a small request: a shortcut-creation activity for the reasons mentioned at SimpleMobileTools/Simple-Contacts#1019.
Thanks
Test run
When I open the manifest viewer, the app becomes unresponsive for several seconds, sometimes even several minutes if the manifest is really big. The initial render seems to display the manifest just fine but I can't scroll at all and usually get the "Activity Manager isn't responding" prompt.
Android version: 11
Activity Manager version: 5.2.1
Tested with these packages:
org.mozilla.fenix
: hangs for ~25-30scom.google.android.apps.photos
): had to kill the app after a couple minutesHi.
In the current version, addToHistory()
will not check if the history item with the same parameters already exists in the history. IMO this app will be more convenient if the exactly same history items will be shown only once. Making this feature optional is also great.
Some users, including me, treat the history as an alternative to shortcut. In this case, we don't need to record what parameters are used each time, we just need to record the parameters themselves. Maybe you could delete the existing one when adding an item.
Anyway, thank you for this amazing tool!
Please add tiles support
Sort app list by app name, package name, install time, update time, etc.
Favorites list, people can add frequently used activities into the list.
This app is good. Thank you very much!
Using OneUI 5.1 on Galaxy S21
I made a shortcut for "com.android.settings.notification.history.NotificationHistoryActivity" inside "com.android.settings", but when I tried to open the shortcut, a toast message says "App isn't installed", but if I try to open directly form the list (in Activity Manager) it opens normally.
I want to recognize HistoryActivity
-made shortcuts at a glance, without reading the label. But it says Custom icon is not supported for Intent shortcut yet. Only for activity.
Example use-cases that require HistoryActivity
are at #8.
I am not actually sure if this is a problem with Activity Manager or with my launcher. But as my launcher is a proprietary package from the phone manufacturer (Nothing Launcher) I will start here.
I use Arcticons for all my application icons, and would like to use them for my activity shortcut as well. These are outline only icons with full transparency. This does not seem to work when creating shortcuts. Instead the shortcut will get a solid white background.
Can Activity Manager somehow instruct the shortcut to not be given a background at all? Is there a problem with using transparent PNGs?
It could also be that I am doing something wrong, please let me know what else I can try!
What follows is the process to reproduce this, with screenshots.
I will be using the following image as the icon for my tests:
When I chose the PNG as my image for the shortcut, the preview in Activity Manager looks correct:
After pressing “Create”, the system modal shows a white square with rounded corners (and a circle in the middle?):
Once added to the home screen, my launcher modifies the icon to be circular, but it is still white:
I'm trying to use activity manager to make a shortcut to open up a text file in an editor.
I can tell the editor which file to attempt to open by including it into the data part of the intent, such as content://com.termux.documents/document/%2Fdata%2Fdata%2Fcom.termux%2Ffiles%2Fhome%2FAchats.txt or content://com.android.externalstorage.documents/primary%3Aessai.txt
However, this fails because the editor has no permission.
If on the other hand, I tick the FLAG_GRANT_READ_URI_PERMISSION, i get an error because ActivityManager has no permission :-)
Suggestion: include a UI where ActivityManager can request a persistable-uri-permission from the user (this would pop up a file picker, where user chooses the file to make accessible), and use that permission to grant to the target.
Another advantage of this would be that this removes the hassle of needing to figure out what the URI of the file actually is (see the 2 rather unreadable examples in the second paragraph).
The Shortcut Maker app from Playstore handles it this way, but unfortunately has other bugs which makes it not usable (drops other flags such as FLAG_ACTIVITY_MULTIPLE_TASK and FLAG_ACTIVITY_NEW_DOCUMENT)
Thanks,
Alain
This will make the UI more harmonious.
Some inputs can be automatically completed, just like when creating shortcuts.
At this point, the list dialogs provided for action and mime can be removed.
The main interface can only search the name of the application. To search the activities in a application, you must to click on that application.
Is it possible to search for activities in all applications on the main interface?
Launching activities as root is possible but creating shortcut of the activity as root? Is this feature intentionally avoided?
Hi, this issue has a relation with #5.
We found failures similar in activities:
Note:
Basically the title. Show total numbers of activities an app has after app's name if possible.
Please add compatibility with Tasker .
Dear ActivityManager Development Team,
I am writing to request that additional languages be added to the ActivityManager software. As a user of this software, I have found it very useful in my daily work, but I believe that it could be even more effective if it were available in more languages.
Specifically, I would like to suggest the addition of [list of languages] to the software. These languages are widely spoken in different regions of the world and would allow more users to benefit from the features and functionalities of ActivityManager.
I understand that adding new languages requires resources and time, but I believe it would be a worthwhile investment for both users and the development team. By making the software accessible to a wider audience, ActivityManager can increase its reach and impact, while also helping users who may not speak the currently supported languages.
Thank you for your consideration of this request. Please let me know if you need any further information or if there is anything else I can do to help.
`
Hello, I have some quick thoughts about the intent builder (no particular order):
vnd.android.document/directory
is missing from the list. It's hard to remember exactly how to type it manually.*FLAG_ACTIVITY_PREVIOUS_IS_TOP
which isn't always wanted and AFAIK it can't be unset.*I use that to create shortcuts to specific folders for the DocumentsUI Files app, I don't know how many other apps react to it but at least some file managers do.
Steps to reproduce:
When I perform these sequences of events, the dialog disappears on-screen rotation:
Note: the pause from activity can be performed in several ways. We suggest using a double rotation (starts in portrait, goes to landscape, and back to portrait) with this function previously enabled in the smartphone.
The expected behavior is the return to the previous state with the fragments of the previous image.
However, the fragment disappears and goes back to the main activity.
Device:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.