Cannot find out info on how to use AM properly

Post your questions and help other users.

Moderator: Martin

Post Reply
Econdoc
Posts: 153
Joined: 28 May 2016 20:06

Cannot find out info on how to use AM properly

Post by Econdoc » 15 Apr 2018 14:54

The documentation issue arises again. What sources exist for looking up information such as these below?

Init Variable System Settings (Global). Wifi_on apparently has at least 4 settings (0,1,2,3). What do these values mean?

Where does one find the appropriate values to use in place of “com.android.settings:id/switch_bar” which shows up in clickById, checkById, etc?
Also “android:id/switch_widget” used for some buttons in Custom UI?
From what little I know, these are placeholders for the variables that contain the real information.
Is there a website that defines these things?

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Cannot find out info on how to use AM properly

Post by Desmanto » 15 Apr 2018 18:04

I only have 0 and 1 for these value. Maybe you can try to turn wifi on, check the value. Turn wifi off, check the value. See what available value, that is what each value correspond to. Always need try and error, unless someone document it somewhere. Changing system setting is very risky, you got to know what you are doing and always make a full TWRP backup before trying something out of the chart. I have experience it first hand : viewtopic.php?f=4&t=7272

Those element id can only be found if you decompile and dig inside the apk and find each element id. But it is very time-consuming and doesn't guarantee you can find the element you want. I wish to know a better way too. So far, the Control UI overlay is the only fastest method to find it. These ids differ in each app. Different device will use different Id too, so there is no one solution for all. Gotta to find it by ourself.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Post Reply