Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Protozoa are small, and bacteria are small, but viruses are smaller than the both put together."


computers / comp.mobile.android / Re: Tutorial: How to make a one-tap homescreen shortcut to an activity which isn't EXPORTED as public (volume mute)

SubjectAuthor
* Tutorial: How to make a one-tap homescreen shortcut to an activity which isn't EWally J
+- Re: Tutorial: How to make a one-tap homescreen shortcut to an activity which isnLarry Wolff
`- Re: Tutorial: How to make a one-tap homescreen shortcut to an activity which isnWally J

1
Tutorial: How to make a one-tap homescreen shortcut to an activity which isn't EXPORTED as public (volume mute)

<udv4o4$3e219$1@paganini.bofh.team>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=44723&group=comp.mobile.android#44723

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!paganini.bofh.team!not-for-mail
From: walterjo...@invalid.nospam (Wally J)
Newsgroups: comp.mobile.android
Subject: Tutorial: How to make a one-tap homescreen shortcut to an activity which isn't EXPORTED as public (volume mute)
Date: Thu, 14 Sep 2023 10:18:44 -0400
Organization: To protect and to server
Message-ID: <udv4o4$3e219$1@paganini.bofh.team>
Injection-Date: Thu, 14 Sep 2023 14:18:44 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="3606569"; posting-host="dwDaIEJ0Lbu4beRVO8ZWHg.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
Cancel-Lock: sha256:3CcFI5OjlO4y+cNAEjpfD+QugxAf3TV9ibOaGIQ0lTw=
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Notice: Filtered by postfilter v. 0.9.3
X-Priority: 3
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
 by: Wally J - Thu, 14 Sep 2023 14:18 UTC

This tutorial will cover a package/activity which is in the gray zone...
a. It's public (but it's not exported) <== I think that's the terminology
b. It's not hidden (but it doesn't show up in the shortcut inspectors)
c. In summary, you can click down to it - but its activity is hard to find
<https://i.postimg.cc/HsCRLykg/mute01.jpg>

Note: I'm aware there are purpose-built mute-switch apps; but this is
a tutorial to write your own shortcut to any activity which is
not exported as public - so the mute is just one easy-to-run example.

Steps:
A. Locate the activity you wish to make a one-tap shortcut to
B. Find the unique package name & the unique activity name
C. Create the shortcut (name & customize it, as desired)

First we have to locate the activity & figure out the unique name
where the "normal" method fails for this unexported public activity!
a. Start any good activity inspector (which reports public activities).
<https://m.apkpure.com/shortcut-widgets-inspector/com.cemique.shortcutwidgets>
b. Then go to the activity you wish to find the unique name of.
Settings > Sounds and vibration > Vibrate (or Mute)
c. Go back to the activity inspector to find the public activity
Drat. It's not a visibly exported public activity after all. Sigh.

Since it's not a visibly exported public activity, let's dig deeper.
(We never fail to do what we want to do on Android.)

Tutorial:
*How to make shortcut to an activity which isn't EXPORTED as public*

1. Start any good activity manager such as the Sousa "Activity Manager"
Activity Manager: Hidden activities by Andre de Sousa (free, adware)
<https://play.google.com/store/apps/details?id=com.andrefrsousa.tools.activitymanager>

2. Make sure "Show system apps" is turned on in the Activity Manager
settings (click the three dots at the top right of the app GUI)

3. Then search for the activities in the "Settings" entry
(or scroll down to "Settings - com.android.settings")

4. Once you have "Settings com.android.settings" open,
search for "sound", which will bring up three entries
System sound (Settings$SecSoundSystemSoundSettingsActivity)
Sounds and vibration (Settings$SoundSettingsActivity)
Sounds and vibration (SoundSettings)

5. Tap on each one to test which one you are seeking
The first takes you to the sound volume slider.
The other two take you to where you want to go.
(Why do they have two activities doing the same thing?)

6. Press the three dots to the right of the middle entry
A dialog will pop up asking what you wish to do now...
Create shortcut
Launch activity with parameters
Launch activity with ROOT (note the phone is unrooted)

7. Choose "Launch activity with parameters"
*That reveals the two unique pieces of data you need!*
Package name = com.android.settings
Class name = com.android.settings.Settings$SoundSettingsActivity

Once you have those two things, it's easy to manually create a one-tap
homescreen shortcut to that package/activity (aka package/class)!

*[Tutorial] Illustrated (mostly privacy based) one-tap shortcuts*
*so that you can access (in a single tap!) any buried Android setting*
*or app activity*
<https://groups.google.com/g/comp.mobile.android/c/qb3VFw0gWGc>

But this app will create that shortcut for you, so why bother?

8. Go back and this time select "Create shortcut" instead.
This will pop up a "Sounds and vibration" shortcut-editor

9. If desired, change the icon to whatever you like
If desired, change the label of that shortcut to "Mute"
Then press "Create"
This brings up an "Add to Home screen" dialog box
Edit the icon & label as desired
Longpress on the icon to place it on your homescreen where desired.

Voila!

You now have a one-tap shortcut on your homescreen to the private
(unexported) Android system "Sounds & vibration" settings activity.
<https://i.postimg.cc/HsCRLykg/mute01.jpg>
--
Note I'm not sure of the terminology as there are various activities
a. Activities which you can click to that show up in inspectors
b. Activities which you can click to that do not show up in inspectors
c. Activities you can not click to but which show up in inspectors

Re: Tutorial: How to make a one-tap homescreen shortcut to an activity which isn't EXPORTED as public (volume mute)

<udv8rf$1nt5f$1@novabbs.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=44725&group=comp.mobile.android#44725

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!rocksolid2!.POSTED!not-for-mail
From: larrywo...@larrywolff.net (Larry Wolff)
Newsgroups: comp.mobile.android
Subject: Re: Tutorial: How to make a one-tap homescreen shortcut to an activity which isn't EXPORTED as public (volume mute)
Date: Fri, 15 Sep 2023 00:28:47 +0900
Organization: rocksolid2 (novabbs.org)
Message-ID: <udv8rf$1nt5f$1@novabbs.org>
References: <udv4o4$3e219$1@paganini.bofh.team>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 14 Sep 2023 15:28:48 -0000 (UTC)
Injection-Info: novabbs.org;
logging-data="1832111"; mail-complaints-to="usenet@novabbs.org";
posting-account="We4v8KLNpMNkFAjPdBjo15OoXWOMvHEYcV6PIPuJ7Pg";
User-Agent: Xnews/2006.08.24
 by: Larry Wolff - Thu, 14 Sep 2023 15:28 UTC

On 9/14/2023 11:18 PM, Wally J wrote:

> Note: I'm aware there are purpose-built mute-switch apps; but this is
> a tutorial to write your own shortcut to any activity which is
> not exported as public - so the mute is just one easy-to-run example.

It was just an example to mute so this is added information for those
people who want to be able to lay the phone upside down to silence it.

RD Mute came out in 2011 to silence the phone when placed face down.
https://www.makeuseof.com/tag/rdmute-mute-your-phone/

Soon thereafter, it became a standard feature in some Android makes.
https://itigic.com/mute-android-phones-by-turning-it-upside-down/

You can even allow exceptions for important calls & specific callers.
https://www.komando.com/tech-tips/tech-how-to-set-up-do-not-disturb-on-your-android/741539/

They ran a poll to see how many people used the flip-to-silence mode.
https://piunikaweb.com/2020/11/29/do-you-have-flip-to-silence-enabled-on-your-android-phone/
Roughly 1/3rd of the respondents use it, 1/3rd don't use it.
And 1/3rd didn't know it existed.

Google calls it "Flip to Shhh" on the Pixel line of phones.
https://android.gadgethacks.com/how-to/get-pixels-flip-shhh-feature-any-phone-0200605/

But the flip-shhh-feature has long been on any Android phone.
https://android.gadgethacks.com/how-to/get-pixels-flip-shhh-feature-any-phone-0200605/

Re: Tutorial: How to make a one-tap homescreen shortcut to an activity which isn't EXPORTED as public (volume mute)

<udvae6$3eb1d$1@paganini.bofh.team>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=44726&group=comp.mobile.android#44726

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!paganini.bofh.team!not-for-mail
From: walterjo...@invalid.nospam (Wally J)
Newsgroups: comp.mobile.android
Subject: Re: Tutorial: How to make a one-tap homescreen shortcut to an activity which isn't EXPORTED as public (volume mute)
Date: Fri, 15 Sep 2023 00:55:50 +0900
Organization: To protect and to server
Message-ID: <udvae6$3eb1d$1@paganini.bofh.team>
References: <udv4o4$3e219$1@paganini.bofh.team>
Injection-Date: Thu, 14 Sep 2023 15:55:51 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="3615789"; posting-host="zqK6ASfWvEuB0UuSlYK2nw.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
Cancel-Lock: sha256:mh1iLWeCB5pvzRoiT5jFTAiwaf8tlV/ZlQjyzimme4k=
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-MSMail-Priority: Normal
X-Notice: Filtered by postfilter v. 0.9.3
 by: Wally J - Thu, 14 Sep 2023 15:55 UTC

Wally J <walterjones@invalid.nospam> wrote

> 1. Start any good activity manager such as the Sousa "Activity Manager"
> Activity Manager: Hidden activities by Andre de Sousa (free, adware)
> <https://play.google.com/store/apps/details?id=com.andrefrsousa.tools.activitymanager>

Ooops.

I had tested about a dozen Activity Managers, where the one I documented
for this tutorial was NOT the Adware "Sousa" Activity Manager (which seems
to be a bad copy of the "real" FOSS Activity Manager).

I had tested and documented _this_ FOSS Activity Manager in the tutorial.

FOSS Activity Manager by sdex (Yurii Mysochenko)
<https://github.com/sdex/ActivityManager>
<https://f-droid.org/packages/com.activitymanager/>

As far as I know, this FOSS Activity Manager is not on the Google Play
Store repository (so you just have to know that it exists out there).
--
If we have to resort to payware or adware, then something is wrong.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor