Intent to open "Storage" window directly by passing package name?

sbkhbk

New member
Hello there,

Is there any intent to navigate to storage windows directly by passing the package name?

ANDROID.SETTINGS.APPLICATION_DETAILS_SETTINGS navigates to application settings and am forced to click on "Storage & cache" option, but using my pixel 7a,am unable to click on "Storage & cache" even if i use wildcards or any other option. So if there is an intent which navigates to storage setting would be super good.
 

Dm114

Well-known member
Hello there,

Is there any intent to navigate to storage windows directly by passing the package name?

ANDROID.SETTINGS.APPLICATION_DETAILS_SETTINGS navigates to application settings and am forced to click on "Storage & cache" option, but using my pixel 7a,am unable to click on "Storage & cache" even if i use wildcards or any other option. So if there is an intent which navigates to storage setting would be super good.
Use UI Interaction (it's what I'm using to clear cache)
 

sbkhbk

New member
I was using UI Interaction only, but it's not working all the time for me on pixel 7a even though all the fundamental settings are correct. So want to try out intent method to get rid of this issue.
 

Dimlos

Well-known member
This macro works on my Pixel 7a, so give it a try.
 

Attachments

  • macro.jpg
    macro.jpg
    181.8 KB · Views: 13
  • App_Settings.macro
    3.8 KB · Views: 4

sbkhbk

New member
This macro works on my Pixel 7a, so give it a try.
This Macro works, but UI interactions failing when the screen is locked. I'm trying to clean cache for all 3rd party apps let's say Saturday at 4 am in the morning. But UI Interaction fails for unknown reason. I can upload my macro if required. Am trying to keep the screen awake and set timeout options but I guess device needs to be unlocked. Any idea on this?
 

hsurB

Well-known member
This Macro works, but UI interactions failing when the screen is locked. I'm trying to clean cache for all 3rd party apps let's say Saturday at 4 am in the morning. But UI Interaction fails for unknown reason. I can upload my macro if required. Am trying to keep the screen awake and set timeout options but I guess device needs to be unlocked. Any idea on this?

Ui interaction won't work with screen locked. It performs touches on screen as if you were doing it manually.
You obviously need the phone to be unlocked and on certain screen for it to work.
If you want to do at 4am you can create another macro or build it in this one to:
1. Turn screen on
2. Swipe to unlock with pin
3. Enter pin with ui interactions
4. Use macro mentioned above in posts
 

sbkhbk

New member
Ui interaction won't work with screen locked. It performs touches on screen as if you were doing it manually.
You obviously need the phone to be unlocked and on certain screen for it to work.
If you want to do at 4am you can create another macro or build it in this one to:
1. Turn screen on
2. Swipe to unlock with pin
3. Enter pin with ui interactions
4. Use macro mentioned above in posts
Can you share a macro for action 2 & 3 which you mentioned?
 

hsurB

Well-known member
Can you share a macro for action 2 & 3 which you mentioned?

Haha I would have to know PIN to your device.
You would need to turn pointer location in developer settings of your phone, write down X,Y coordinates of buttons from your lock screen and create this macro yourself. I am not sure if it works using text click [9] for exemple or click [p] for exemple (if its password not pin).
Remember such macro would have to contain wait before next action between most actions to make sure it works flawlessly
 

sbkhbk

New member
Haha I would have to know PIN to your device.
You would need to turn pointer location in developer settings of your phone, write down X,Y coordinates of buttons from your lock screen and create this macro yourself. I am not sure if it works using text click [9] for exemple or click for exemple (if its password not pin).
Remember such macro would have to contain wait before next action between most actions to make sure it works flawlessly
Well I just need a sample macro to modify according to my pin. If possible share it across.
 

sbkhbk

New member
This macro works on my Pixel 7a, so give it a try.
Thanks for this macro, infact i found out the root cause, when i was executing this macro continuously due to some unknown reason, it just turned off all the macrodroid settings in "Accessibility", so after i turn-on everything started working.

But now with the "Read content on Screen" fuction, i've a problem. On my motorola phone, when i ask to read the contents of the "Application Storage" window, it is not detecting the objects with it's properties rather its using index. so what happens is that with different execution of the macro, the index number is changing. I'm trying to capture the cache size of different 3rd party application, so in pixel 7a it is able to read this cache object like this - [android:id/summary$3], but in motorola it's not recognized as this id rather it uses index and it's always changing.

any idea for forcing motorola phone to detect the id instead of index?

"Read screen content" is configured like this

Variable: Screen
Key: This Dictionary
Option: Exclude view ids without text
Option: Include overlays (pro version required)

please suggest if am doing something wrong here.
 
Top