yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] 白い熊:
I think, not sure though, that the way it's implemented there is that it's part of the statusbar display — don't have sources for Ketan's implementation though, can't check.

But it seems it's just displaying it in the statusbar display area — thus the visibility of the line is handled by statusbar per se — when statusbar is displayed it's displayed.

This is apparent when notifications are pulled down — statusbar is not displayed, the line indicator also not…
[Android Apps and Games] rybshik:
Oreo Battery optimization settings for 3C Battery Monitor Pro

On rooted Oreo,

Settings > Battery> Battery optimization > Optimize ?

For "3C Battery Monitor Pro ", which setting should be selected: "Optimize" or to "Don't Optimize" ?
[Android Apps and Games] 3c:
"Don't Optimize", as the other option will prevent the app from running in background to collect data. Unless you disabled history recording ?
[Android Apps and Games] gadgetguy08:
Using version 2.0.4d on Pie with EdXposed, 3c module installed and active.

When attempting to change a permission on an app, I get a message to install the Xposed module. The logcat shows:

08-10 06:42:00.403 I/3c.xposed(13742): Checking actual Xposed configuration false - false (false), (false, false)

What could be causing this behavior?
[Android Apps and Games] 3c:
What is the package name of your (Ed)Xposed Installer app? App checks for that, as well as module actually being loaded.

Historically app checks xposed installed before checking if module is loaded. I should change that, but either way if you give me that package name I can fix this properly.
[Android Apps and Games] gadgetguy08:
org.meowcat.edxposed.manager
[Android Apps and Games] 3c:
Thanks, it has been added to latest beta (2.0.5b) which should be available momentarily. In case new package appears, the app first checks if xposed module is loaded.
[Android Apps and Games] bege10:
3C Toolbox Pro v2.05b (and previous) does not install system helper although root permission is granted.

After copying the file to system/priv-app and rebooting the phone 3C Helper is installed but 3C Toolbox still shows "install system helper" and does not activate WLAN.

Samsung Galaxy S5 Plus (SM-G901F), LineageOS for microG 16 (Android 9), rooted
[Android Apps and Games] 3c:
Are you using Magisk? Did you disable 3C Magisk module? Do you get an error message? Did you reboot after app installed the APK?

If either of those 2 folders exists, app will create a magisk module for installing the helper (still a simple copy, but in a different location, still requires a reboot):

/magisk

/sbin/.magisk/img
[Android Apps and Games] bege10:
The app did NOT install the APK. The error popup said root permission was necessary. As written in my post root permission is granted, also permission to install apps. That's why I manually installed the APK and of course rebooted the phone.

I neither have Magisk nor Xposed, for rooting I use addon-su from LineageOS.
[Android Apps and Games] rybshik:
I have a related question.

On (Moto G6) stock Oreo, I use Magisk without modules.

Is " 3C Battery Monitor Pro" fully functional

without any

Magisk module(s)?
[Android Apps and Games] rybshik:
I would like to see discharge current in "mA" when the

screen is off

.

Let' say, I am listening music or running any sound/voice app, which does not need a screen. So the screen goes off (black).

Is there a setting in 3C Battery Monitor pro to achieve that?
[Android Apps and Games] 3c:
Yes, Battery Monitor needs nothing. Only BATTERY_STATS permissions (for stats tab), which can be obtained using root or ADB.

Sorry, don't understand the question. Do you have an always-on display? Or Samsung edges?

If you enabled battery recording, mA will be recorded when screen's off. Depending on OS version you might have to exclude app from Android Battery Optimizations.

Then opening the app, history tab, will show mA during screen off.

Tested on Magisk and non-Magisk devices, app have no issues installing the helper. It's a simple file copy after all.

Anyway, since Android O, system apps permissions are only granted if an XML file defines them in /system/etc/permissions. Attached is the file for 3C Helper, which gets copied to that folder and named priv-app-permissions-3c.xml. This file is always copied during the process as well as the APK. If it fails, something prevents the app from writing to /system partition.

How did you copy the APK? With 3C Explorer or another app?
[Android Apps and Games] 3c:
Version 2.0.5b

Dear users,

Starting with Toolbox version 2.0.5b, I will only use the Toolbox + unlock key on all my devices (since I migrated all of them). Should you request support by email, I may send you an updated APK for testing, this will be the Toolbox, not the key. I've updated the migration guide with newly available import/export features: https://3c71.com/key. It's much easier, however there's some caveats you should know.

In October 2019, I will update the Toolbox Pro unlock key one last time with no features except the export feature which will run automatically on existing installs, and request installation of the Toolbox app.

Another change coming in October si the mandatory "target API" from Play Store, which will make true battery statistics obsolete on Android 9 and above. Any following toolbox update will require installation of "3C Battery Stats" (and granting that app BATTERY_STATS permissions with root or ADB) to continue collecting true stats.

In some hope to make those transitions as smooth as possible, they'll likely be in beta testing all September.

PS: I expect the pro -> key transition not to be well received, as even today some users are already complaining of having to install 2 apps on their new devices.
[Android Apps and Games] rybshik:
Estimating the actual battery capacity of an old phone

How to use 3C Battery Manager Pro to estimate the actual battery capacity of an old used phone?

Will 1-2 full charger-discharge cycles be sufficient for estimating?

Phones have been used for 1-2 or more years. Obviously, the battery has degraded and the actual battery capacity has reduced.

Specifically, Samsung S7, Motorola G4 and G6.
[Android Apps and Games] 3c:
Results will depend on whether those devices have a real sensor. I'm pretty sure S7 does, not sure about Motos.

1 full charge cycle could be enough if sensor is accurate, however I would try to run a few full cycles, even trying to turn them on multiple times after they shutdown without unplugging, necessary on older devices, but might not be with yours. And then letting them charge for 12 hours or so.

You could also check mA history to make sure it's not "broken", like charging indefinitely or reporting reverted mA or not reporting mA while charging, etc... mA reporting depends on device, manufacturer, Android versions and actual model! I remember my old S7 and the sensor seemed accurate enough, don't know for the G4, G6. Most important is to make sure mA is not reversed, it must be positive when charging, negative otherwise. This is the most frequent.
[Android Apps and Games] marcdw:
I wonder, could SELinux play a part here? I've come across similar situations, be it helper apps or other items like AdAway. With Enforcing items would fail to install or write to /system. With Permissive all is good. I know some folks don't want Permissive but it's something to consider.

LG G3 D851, PAC-ROM 6, MultiROM, XDA Legacy
[Android Apps and Games] rybshik:
I am not sure if I follow. Can you explain please?

How to determine whether or not a device has a real sensor ?

And the main question: in which menu of 3C Battery Manager Pro , which reading provides the estimate of the actual full battery capacity of the aging device?
[Android Apps and Games] 3c:
Doing 'setenforce 0' and then trying to copy can show if that helps. App used to run it, but Google requested it to be removed. That said, all my devices are on 'enforcing' and it works. I've seen lots of devices with /system partition non-writable. Hence my question about which app used to copy the files?

The purpose of calibration is to make sure 0% is 0 and 100% is 100. That's by discharging device completely to 0% and ensuring it is real 0% by turning-on device after it turned off automatically, until it won't turn on at all. For 100%, charging for 12+ hours does the trick.

It's all explained here: https://www.3c71.com/android/?q=node/156.

More information about how it works in the app here: https://www.3c71.com/android/?q=node/209

To determine if it's a real sensor, run configuration wizard and check whether there is values for others than estimated. Make sure they are realistic, some devices reports more than one value, some reports average (preferred) and real-time. Real-time is no good because it produces values that would be useful only at 1 second rate or more, which is a battery killer on any Android devices. Better use average, calculated by the hardware or kernel, to get more accurate results in calibration. But again actual data available can vary greatly between devices, from only estimated (always available) to multiple sensors.
[Android Apps and Games] marcdw:
Yep. Some devices do have write protection which may be an issue. On my Axon 7 we had to do a "reboot disemmcwp" to get apps to write to /system. Always something.

LG G3 D851, Candy7 v6.0 ROM, Google free - no microG, MultiROM, XDA Legacy
[Android Apps and Games] rybshik:
It would be helpful if the app records battery's incoming current flow (when battery is being charged) and, separately, battery's discharging current flow. So, over a period of time, we will get two numbers: battery incoming charge,say, 1500mA*h and battery discharge, say, -500mA*h.

Is such battery statistics available?
[Android Apps and Games] peterbonge:
After some time I've tested the app again on my main phone and I have two comments:

1. If I use the file explorer to open a file in a text editor (e.g. QuickEdit) I can't save changes. I get an error message about a missing writing permission (Android 9).

2. I still think that the symbol inside the app icon is just to big. If I set the shape to circle or teardrop it nearly touches the border and that doesn't look good.
[Android Apps and Games] 3c:
Unfortunately it's not available. Some manufacturers provides some kind of max charging rate, but it's a useless constant.

1. Will be fixed in next update

2. Took a screenshot of my home page, I'm not really chocked, yes 3C is very close to borders, not fully standard I'd say. But compared to the clock, calculator or pool icons, that rule doesn't seem to be followed by all apps.
[Android Apps and Games] peterbonge:
The pool icon doesn't count. There isn't really a symbol. It's just a clipped picture. Not well done.

And the clock and calculator icons are somehow also exceptions, but this time good ones. Here it really makes sense that the inner part is so big. Same for the Chrome icon. Most other icons have more space to the border.

I just wanted to say that a little bit smaller would look better. Maybe a little bit more like the ones on the Play store.
[Android Apps and Games] gadgetguy08:
Using 2.0.5b with Android Pie.

When I use Network Manager and attempt to get information about an IP address, nothing is displayed - no info, no message.

Log has this:

08-17 05:33:25.036 V/3c.app.tb(4206): Found host name ec2-35-169-3-40.compute-1.amazonaws.com in domain com

08-17 05:33:25.036 D/3c.app.tb(4206): Opening URL: /line/35.169.3.40

08-17 05:33:25.754 E/3c.app.tb(4206): Failed to get IP information for 35.169.3.40

Any idea what's causing this behavior?
[Android Apps and Games] 3c:
Version 2.0.6

Dear users,

One more update going in beta! Most noticeable addition is the battery charging limit in battery settings, for rooted devices.
[Android Apps and Games] 3c:
Maybe your IP is banned from the service, please try http://ip-api.com/line/35.169.3.40 from your device, see if you can get the information?

Interestingly the play store icon is created from the same source PNG, never understood why Android Studio imports it and doesn't apply the needed ratio on its own.

Will try to reduce all sizes a little for next update.
[Android Apps and Games] gadgetguy08:
Thanks for the url, one of my router's blocklists had recently included that domain for blocking. Not sure why, but I have manually allowed it.
[Android Apps and Games] 3c:
Last beta update (2.0.6a) have the icons a little smaller which should make it look better.
[Android Apps and Games] peterbonge:
Yes, much better. I think it's perfect now.
[Android Apps and Games] 3c:
Indeed, thanks for your feedback. I'll update other apps as well.
[Android Apps and Games] gadgetguy08:
In attempting to use App Manager to show Apps, it takes a very long time or doesn't show at all.

Magisk Superuser log shows dozens and dozens of entries for 3c Toolbox pro being granted SU permission for the same time.

The logs shows this repeatedly:

08-18 19:37:46.363 W/3c.lib (22379): Got root access, resetting attempts

08-18 19:37:46.366 W/3c.lib (22379): Trying to gain root access, remaining attempts: 1

What would cause this?

Android Pie

Magisk 19.3

2.0.5b
[Android Apps and Games] 3c:
This likely means root is constantly lost, for whatever reasons, like a corrupt install, a modified binaries (restorecon crashing the shell), or other things. To investigate this further, I'll need the full logs, which you can send using a support request from app settings, help and support (if it doesn't crash in the middle).

How did you install the app? I suggest you reinstall clean and see if issue persists, if so, send a support request mentioning your post. If the support request doesn't complete, send all files from /sdcard/Android/data/ccc71.at.free/support

I have 2 Android Pie devices, both running Magisk 19.3, one with xposed, didn't see such issue. Did you setup a secondary backup location to point to a network share or FTP ?
[Android Apps and Games] bege10:
For copying I used another file manager with root permission. After using 3C Explorer to copy the APK - not the xml-file - I can switch both mobile data and Wifi. That was not possible before. So the System Helper can switch Wifi without the xml-file. But the 3C settings still say "Install System Helper". Copying the xml-file does not make a difference.

Of course I rebooted after each copying.

Strangely it works different than you write.

Why can the 3C Explorer copy the files but not the 3C settings?

Why do the settings still don't recognize the helper although Wifi can be switched by 3C Toolbox?
[Android Apps and Games] 3c:
The app checks if the app is installed (ccc71.at.system) and if not found, checks this path: /system/priv-app/ATSystem/ATSystem.apk.

If it keeps saying 'install system helper', I suppose app is blocked somehow, maybe things like xprivacy can do that ?

In app's manager, app's list, if you show system app do you see system helper? If you tap on it, then open, details, does it show ccc71.at.system as the package name?

This is really odd anyway.
[Android Apps and Games] bege10:
Both is correct, the path and the package name. :confused:

I neither have Magisk nor Xposed. AppLock only locks the UI of apps and if that is deactivated the problem remains.

Not recognizing the installed app is the one issue, not being able to install it although the 3C Explorer can do it the other issue.
[Android Apps and Games] 3c:
Both make no sense though.

Did you check system app's list ? I'm pretty sure the helper is listed there?
[Android Apps and Games] bege10:
Oh, I think my post was misunderstandable. I meant the package name in the apps list is correct. So yes, it is in the apps list when system apps are displayed. Everything is okay but the install option in 3C Toolbox.
[Android Apps and Games] 3c:
Can you send a support request (just after opening active tweaks settings to see if it says install/remove) from app settings, help and support so I check last logs? Thanks.
[Android Apps and Games] bege10:
Just sent it.
[Android Apps and Games] IMTREX:
Good morning!

I got 2 devices running 3C Toolbox Pro. On both of them I have scheduled an automatic restart via the devicemanger every night at 1am so my phones go freshly started into the mornings. This is running since long time successful.

However with the last update it doesn't work any more. If you schedule it, you can also test the scheduled command with the "run" function pushing the 3 dots then run. This also doesn't run the restart any more.

I haven't changed or touched the ROM's lately, so no correlation to that.

Can you check and confirm?

Should I send a support request?

Best regards!

Interesting finding: One device yesterday received update notice for Magisk Manager to version 232. After updating 3C scheduled command (reboot) is working once more. Other device does not get the update, it still says up to date (version 224) and it did not reboot last night.
[Android Apps and Games] donkeypunch1257:
Website

I'm trying to view all the available information on the website but keep getting an error from multiple different browsers.
[Android Apps and Games] 3c:
Thanks for letting me know, this is now fixed.
[Android Apps and Games] bege10:
Did you find anything in the log I sent to you?

Charge limit worked after it was implemented. Meanwhile it does not work any more. Battery goes to 100% again.

The setting "Charge limit method" is empty. Is that normal?

Explorer bug:

Several folders and files have the date May 5, 2014 18:50:06 or :07

All other file managers show the correct dates (different, not the same date)
[Android Apps and Games] 3c:
Actually yes, but not immediately as my log trace tool was made obsolete by Google. Now that I could pin-point stack trace, I found this:

08-19 17:15:30.736 W/3c.lib ( 6668): Not installing priv.xml binary to system folders

08-19 17:15:30.736 W/3c.lib ( 6668): java.io.FileNotFoundException: /data/user/0/ccc71.at/priv.xml (Permission denied)

It's when the app tries to copy files, it first extract those from its "assets" (the apk), into its private data folder. As you can see app does not have (write) access to its own private data, so everything fails. Then as you copied the APK manually, the app doesn't find it where it's automatically installed. But yet, check app information should be ok. Considering the above issue, I'm pretty sure the app installation is somehow corrupted.

Explorer, seems odd. I can't find anywhere on my test device a folder with identical dates everywhere. Can you run a 'ls -l <path>' in app's terminal output (possibly with su checked) and share the output to me to confirm actual dates? Please also attach a screenshot of the explorer showing the same folder content.

An empty list means, the app didn't find any compatible files to perform charge limit... Odd again, last update is just more cautious about files being truly supported and check the actual value. Do you remember which method was selected previously?
[Android Apps and Games] bege10:
The terminal output and screenshots you find attached.

With respect to System Helper do you suggest to re-install the app completely? (Maybe this solves the other problems, too?)

The "Charge limit method" has been empty the first time I opened it. I don't remember that it was there in the first version you implemented this feature.
[Android Apps and Games] 3c:
It might be a good idea to reinstall indeed. I suggest you follow the migration guide here to keep your settings with a fresh install: https://3c71.com/key, this way you install the toolbox, migrate your setting, and then reinstall the pro key clean.

For charging limiter, if the list is empty, your device is not supported. We can run tests if interested, but you'll need to find all *charge* or *charging* files under /sys and test if they can stop the charging process.

To find those files, you could run those commands:

cd /sys
find -name '*charge*'
find -name '*charging*'

if you have some charg*_enable or charg*_disable files, chances are that support can be added. You'll have to check the content of those files, and try to revert it to disable charging and see if it stops. Files may contain 0 (disable) or 1, or some text (enabled/disabled), or other values.
[Android Apps and Games] KapilNagpal01:
I would also request for promo code of your awesome app. I appreciate your help in advance. Wish you success in all your endeavors. Thanks in advance for gracing my request.
[Android Apps and Games] Lughnasadh:
Supporting the developer for putting in the countless amount of hours it takes to create and maintain an app like this for years would also be nice and appreciative. Just saying...
[Android Apps and Games] 3c:
I was wrongly using the last status change time (st_ctime) instead of modified time (st_mtime), hence the odd results on some files. This will be fixed in next update.
[Android Apps and Games] lacxp:
Hi!

I can't switch gps after updating android 10. I tried to reinstall 3c toolbox and its pro key and I also granted every permission through adb, but it just doesn't work. is it because related OS implementation has changed or the problem is on my side?

Thanks in advance ?
[Android Apps and Games] bege10:
I reinstalled 3C Toolbox and Pro Key.

The charging limiter now shows "Samsung" in the method setting. Charging limitation now works.

But the very moment I open the Battery settings (not Charging settings but one step before) charging stops (Android battery manager says battery is not being charged, charging LED goes off, 3C battery manager still shows about +1000mA, percentage does not increase) and does not continue until I reboot the phone. Changing the "limit" to 100% doesn't make a change.

Edit: After charging has stopped at 80% as set and the level is now down to 45%again I plugged in the charger again - and charging does not start. Please, try to find a fix asap.

3C Toolbox now can install System Helper APK and XML file, but the settings still say "Install System Helper".

---------- Post added at 05:29 PM ---------- Previous post was at 05:19 PM ----------

Battery manager status shows

- plugged in: Status Charging AC, mA flow +1150mA (+41.07%/h)

- unplugged: Status Charging Unplugged, mA flow +450mA (+16.07%/h)

The unplugged status does not make sense to me.

---------- Post added at 05:34 PM ---------- Previous post was at 05:29 PM ----------

https://xdaforums.com/showpost.php?p=79409666&postcount=678

Do you still consider this request?
[Android Apps and Games] 3c:
That's exactly the problem, it only happens when you open battery settings, and is solved by a "simple" (but annoying) reboot. It is fixed in next update (and confirmed by alpha testers).

FWIW, the app was testing available charge limit methods, to only offer those that can work. Sadly the methods that are not supported are actually preventing charging, but the app is not able to re-enable it. It's actually a bug in the kernel. eg app reads the content of a file, puts 0 in that file, check it's set to 0, puts back 1 in that file, checks it's set to 1, and puts back the original value (read before) and checks it's the same as the one it reads. Files could actually contain other values (enable/disable), but one of those files can disable charging, but it does not allow enabling it back, hence the kernel bug.

Yes, that's an issue when using SuperSU. Works perfectly with Magisk. This is also fixed for next update.

Yes indeed. I have other important things to do before, one is releasing an update to Battery Monitor, which should happen soon. Then it's the Play Store compliance update (where Android 9 and above would need to use 3C Battery Stats, still only if rooted or using ADB to grant stats permission).

I plan to add new filtering capabilities to the app and will add labels at the same time, because labels will need a way to filter, and other criteria have been asked in the past. Filtering by all sorting methods would actually be perfect. And this filtering requires a dedicated dialog box, that would include the old user/system quick filter, labels, and other elements from the sort.