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?
Cannot find out info on how to use AM properly
Moderator: Martin
Re: Cannot find out info on how to use AM properly
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.
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.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.