Battery life - LeEco Le Max 2 Questions & Answers

Hello! Is there any command on adb to know how is my battery? I don't trust in apps

You only need ROOT and a Terminal Emulator app.
1 . Open Terminal Emulator app.
2. Type:
su (give Terminal Emulator root)
dumpsys batteryproperties
Ive attached my result. As you can see the battery has degraded very severely(2years old phone) which is very common in our phone sadly
Since I've updated to pie the above command does not work, so i use accu battery which says capacity is around 1900(pretty close)

arsh1129 said:
You only need ROOT and a Terminal Emulator app.
1 . Open Terminal Emulator app.
2. Type:
su (give Terminal Emulator root)
dumpsys batteryproperties
Ive attached my result. As you can see the battery has degraded very severely(2years old phone) which is very common in our phone sadly
Since I've updated to pie the above command does not work, so i use accu battery which says capacity is around 1900(pretty close)
Click to expand...
Click to collapse
I did, but I don't know what happen because I just see until TEMP everything else, doesn't appear
Sent from my LeEco Le Max 2 using XDA Labs

AgustinH said:
I did, but I don't know what happen because I just see until TEMP everything else, doesn't appear
Sent from my LeEco Le Max 2 using XDA Labs
Click to expand...
Click to collapse
Rom? As I said android p broke this command. This will only work on oreo or before. The file this command dumps no longer exists in pie and there is no alternative that I know of.

arsh1129 said:
Rom? As I said android p broke this command. This will only work on oreo or before. The file this command dumps no longer exists in pie and there is no alternative that I know of.
Click to expand...
Click to collapse
Stock 19s
Sent from my LeEco Le Max 2 using XDA Labs

Now I get this
Sent from my LeEco Le Max 2 using XDA Labs

Related

[GSM/CDMA?] [CPU OPTIMIZATION] EternityProject cpufreq Hotplug Governor

Welcome to the EternityProject DualCore Enhancement Thread!
What do we have here?
EternityPRJ_MCPU is a CPUFREQ governor that optimizes SMP doing a fast poweron/off of the second core.
It will make your device to act more smoothly and faster in some conditions.
How-To:
After downloading and extracting the module archive...
With ADB:
Code:
adb push cpufreq_eprj_hotplug.ko /data/local/
adb shell
su
insmod /data/local/cpufreq_eprj_hotplug.ko
exit
exit
Then use an Android app, like Script Manager, to autoload it everytime your device boots (optional) using this command (as root):
Code:
insmod /data/local/cpufreq_eprj_hotplug.ko
For activating it, open SetCPU and select the "eternityprj_MCPmot_hotplug" governor.
That's all.
Download:
Module: HERE
Source: HERE
Making it to work with every RAZR out there:
If this won't work on your RAZR, please post the output of this command:
Code:
cat /proc/kallsyms | grep cpu_up
...and your ROM version. I'll make it to work for your RAZR, too
The EternityProject Developer,
-kholk
kholk said:
Welcome to the EternityProject DualCore Enhancement Thread!
What do we have here?
EternityPRJ_MCPU is a CPUFREQ governor that optimizes SMP doing a fast poweron/off of the second core.
It will make your device to act more smoothly and faster in some conditions.
How-To:
After downloading and extracting the module archive...
With ADB:
Code:
adb push cpufreq_eprj_hotplug.ko /data/local/
adb shell
su
insmod /data/local/cpufreq_eprj_hotplug.ko
exit
exit
Then use an Android app, like Script Manager, to autoload it everytime your device boots (optional) using this command (as root):
Code:
insmod /data/local/cpufreq_eprj_hotplug.ko
For activating it, open SetCPU and select the "eternityprj_MCPmot_hotplug" governor.
That's all.
Download:
Module: HERE
Source: HERE
The EternityProject Developer,
-kholk
Click to expand...
Click to collapse
how does this work? is it like a kernal????
It's a kernel module.
Confirmed working on Verizon CDMA Razr. Thanks!
Is there a way to use terminal emulator to do this from phone?
spimonkey34 said:
Confirmed working on Verizon CDMA Razr. Thanks!
Click to expand...
Click to collapse
Same here just used Root Explorer and terminal to do everything. So far performance seems the same will see how it goes over a day or two
Sent from my DROID RAZR using XDA App
juicehead9 said:
Is there a way to use terminal emulator to do this from phone?
Click to expand...
Click to collapse
Do the same commands you should do with adb shell, only thing is you need to put the module in /data/local in another way, e.g. cp /sdcard/Download/mymodule.ko /data/local/
Benchmarks performance will be the same, it'll work only in real world operations as it will only hotplug and use the CPU1 faster.
juicehead9 said:
Is there a way to use terminal emulator to do this from phone?
Click to expand...
Click to collapse
Yes. Copy the file into /data/local using root explorer or the like.
Then, with terminal emulator, just run the two lines of following 'adb shell' (su and insmod lines).
Sent from my DROID RAZR using XDA App
It worked perfectly thanks!
oh the future looks sooooo promising. Great work kholk!
how does this affect the battery life? does it drain it even more?
OK o did it but not sure how to tell if its working.. like the other person said it ill work in th real world but how do we tell... sorry for the noob question
Sent from my DROID RAZR using xda premium
royalbloodvi said:
how does this affect the battery life? does it drain it even more?
Click to expand...
Click to collapse
You won't notice it, it will drain like 3-4% more battery in a day.
blkghost22 said:
OK o did it but not sure how to tell if its working.. like the other person said it ill work in th real world but how do we tell... sorry for the noob question
Sent from my DROID RAZR using xda premium
Click to expand...
Click to collapse
How does your device feel when you open an application? When you surf with your browser? When you play into menus etc?
Does it feel more reactive?
This does effectively add reactivity to your CPUs, thing that won't change benchmarks results because benchmarks will take the CPU to its MAX prior starting to calculate. That's why something that works in real world operations isn't making benchmarks results to be higher.
Yeah, after installing I definitely see a nice smooth scrolling performance, and unlocking is really fluid as well.
Great work, Kholk! You should take this over to Rootz, it's like a zombieland in there, everyone's doubting the phone and such. :x
i have installed SetCPU and activated the correct Governor, everything looks fine, no errors.
How do i know if this works? (i could not set a script with script manager).
Any permission need to be granted ?
read write execute??
@b.o.n.s
If you've selected the eternityprj_MCPmot_hotplug governor, it's working.
@xalainm
Just do what I wrote on the first post.
Though it's in the source, it's always good form to credit the original authors.
Edit: Oh, come on. You've even changed MODULE_AUTHOR.
Edit2: I see the claims in your OP regarding performance, but can you walk us through the algorithm used here?
Can u give me the exact command for script manager... for some reason i can't do it
Sent from my DROID RAZR using xda premium
blkghost22 said:
Can u give me the exact command for script manager... for some reason i can't do it
Sent from my DROID RAZR using xda premium
Click to expand...
Click to collapse
This is what I have done in Script Manager.
create a new script name it whatever you like and put the command below in the script,
Code:
insmod /data/local/cpufreq_eprj_hotplug.ko
tick run as root and run at boot
save it.

How to shut down permantly one core on Android phone programatically

Good Afternoon.
I working on an Android application, but I'm stuck on a problem now. I want to shut down permantly one (or more) of the four CPU cores of my android device. I found a way through ADB but none through Java.:crying:
Can anyone help me out?
Thanks in advance!
GiorgosKanellis said:
Good Afternoon.
I working on an Android application, but I'm stuck on a problem now. I want to shut down permantly one (or more) of the four CPU cores of my android device. I found a way through ADB but none through Java.:crying:
Can anyone help me out?
Thanks in advance!
Click to expand...
Click to collapse
What's the ADB command to do that? There should be a way to integrate some shell commands into java code.
Well I want this ADB piece of code into java in some way.
adb root
adb stop mpdecision
adb shell
echo "0" > /sys/devices/system/cpu/cpu1/online
echo "0" > /sys/devices/system/cpu/cpu2/online
echo "0" > /sys/devices/system/cpu/cpu3/online
Click to expand...
Click to collapse
GiorgosKanellis said:
Well I want this ADB piece of code into java in some way.
Click to expand...
Click to collapse
Hi, can you turn off cpu cores permanently..since boot?. Or when reboot phone it get back load all cores? Thank you
Try using app kernel auditor mod I think it can do what you want
Sent from my iPhone 4s using Tapatalk I also own a g900v
[email protected] said:
Try using app kernel auditor mod I think it can do what you want
Sent from my iPhone 4s using Tapatalk I also own a g900v
Click to expand...
Click to collapse
Thank you, but kernel adiutor or another kernel manager don`t apply changes since early boot (early init). It apply changes once the phone loads the rom and enters on launcher
I need modify kernel image boot.img or something similar
There is boot img which holds
Kernel img ram disk and one other img I can't remember the name of
A custom kernel may be required
Sent from my iPhone 4s using Tapatalk I also own a g900v

Help running this command on adb?

I saw a post on reddit about sanitizing an android device but I was wondering how I could execute the command? I managed to root my device but I'm at a loss as to how to execute it. Through adb? But it doesn't seem to be a valid command.
Help is much appreciated.
The script is:
Code:
cd /data; for i in 0 1 2 3 4 5 6 7 8 9; do cat /dev/urandom > $i; rm $i; done
thumbtwists said:
I saw a post on reddit about sanitizing an android device but I was wondering how I could execute the command? I managed to root my device but I'm at a loss as to how to execute it. Through adb? But it doesn't seem to be a valid command.
Help is much appreciated.
The script is:
Click to expand...
Click to collapse
Do you know what these commands are supposed to do?
Sent from my Sony Xperia Z3 Compact using XDA Labs
Ticklefish said:
Do you know what these commands are supposed to do?
Sent from my Sony Xperia Z3 Compact using XDA Labs
Click to expand...
Click to collapse
Yeah, the poster described it as:
"That will perform a deletion of free space that is superior to "military grade", and unlike some proprietary app, I know exactly what it's doing.
PS. In case you can't read it- It loops 10 times. Each loop it creates a file, starting with the file name "/data/0". It fills that file with random information and will stop when the storage area is full. All freespace will have been consumed by the random information in that file. Then immediately delete the file, and the space will be free again, and the freespace will be random information. Repeat this process 9 more times with file names "1", "2", "3", and so on..."

Extract full backup - no screen

Hello,
Just getting back into Android dev stuff from many years away. I have two low-end Android 4.1.1 tablets, one has a busted screen that doesn't show anything (but does boot and I can grab full access through ADB), the other is one I bought that is identical in model number (M712MC) to transfer the image to. I need to make a full backup of the first via Windows/Linux access only (again, no screen...busted). It is already rooted but does not have a custom recovery on it yet. The lack of visuals on the screen makes implementing that difficult.
Any tips on how to grab the full image from the first device? I can then put on a custom recovery to the second and restore that way.
Thanks in advance.
howetechnical said:
Hello,
Just getting back into Android dev stuff from many years away. I have two low-end Android 4.1.1 tablets, one has a busted screen that doesn't show anything (but does boot and I can grab full access through ADB), the other is one I bought that is identical in model number (M712MC) to transfer the image to. I need to make a full backup of the first via Windows/Linux access only (again, no screen...busted). It is already rooted but does not have a custom recovery on it yet. The lack of visuals on the screen makes implementing that difficult.
Any tips on how to grab the full image from the first device? I can then put on a custom recovery to the second and restore that way.
Thanks in advance.
Click to expand...
Click to collapse
Are you using windows or linux?
Sent from my moto g(6) play using Tapatalk
Sands207 said:
Are you using windows or linux?
Sent from my moto g(6) play using Tapatalk
Click to expand...
Click to collapse
Both (and Mac OS). I have a Windows 10 desktop host with Ubuntu Bash installed, a few Linux VM's (Ubuntu, Kali, and other Debian based distros), and a Macbook Pro.
howetechnical said:
Both (and Mac OS). I have a Windows 10 desktop host with Ubuntu Bash installed, a few Linux VM's (Ubuntu, Kali, and other Debian based distros), and a Macbook Pro.
Click to expand...
Click to collapse
Ok good. What root app are you currently using? Most modern phones use magisk but I'm guessing yours may be using supersu or an equivalent.
Sent from my moto g(6) play using Tapatalk
Sands207 said:
Ok good. What root app are you currently using? Most modern phones use magisk but I'm guessing yours may be using supersu or an equivalent.
Sent from my moto g(6) play using Tapatalk
Click to expand...
Click to collapse
adbd is what's providing me root via adb as far as I can tell (it's the only thing I can find via the config and init files, it's specifically commented about there). /data/app is empty, as is app-private. Any other method to identify what specific root app, other than adbd, is there?
EDIT: I ran a 'pm list packages' and don't see anything about a dedicated root app. It's probably in the ROM itself. The device is a vendor supplied one which I own and verified is within my rights to transfer the image to an identical device.
howetechnical said:
adbd is what's providing me root via adb as far as I can tell (it's the only thing I can find via the config and init files, it's specifically commented about there). /data/app is empty, as is app-private. Any other method to identify what specific root app, other than adbd, is there?
Click to expand...
Click to collapse
Using linux, when you enter sudo su after typing adb devices or adbd devices do you get an elevated shell #?
Sent from my moto g(6) play using Tapatalk
Sands207 said:
Using linux, when you enter sudo su after typing adb devices do you get an elevated shell #?
Sent from my moto g(6) play using Tapatalk
Click to expand...
Click to collapse
Absolutely
howetechnical said:
Absolutely
Click to expand...
Click to collapse
Try following this to a T https://forum.xda-developers.com/showthread.php?t=2450045 it has helped me several times over. if you get stuck, just post here and I'll try my best to help you. You have root shell which is an absolute prerequisite to the process.
Sent from my moto g(6) play using Tapatalk
Sands207 said:
Try following this to a T https://forum.xda-developers.com/showthread.php?t=2450045 it has helped me several times over. if you get stuck, just post here and I'll try my best to help you. You have root shell which is an absolute prerequisite to the process.
Sent from my moto g(6) play using Tapatalk
Click to expand...
Click to collapse
Thanks! Going through it now, will let you know how it goes.
howetechnical said:
Thanks! Going through it now, will let you know how it goes.
Click to expand...
Click to collapse
Excellent!
Sent from my moto g(6) play using Tapatalk
Sands207 said:
Excellent!
Sent from my moto g(6) play using Tapatalk
Click to expand...
Click to collapse
There were a couple of inconsistencies with the partitions/environment from the instructions, but I found workarounds and got the necessary partiton image files off. Now I'm searching for a custom recovery compatible with this tablet, which I'm not finding. I think I remember the stock recovery not allowing this level of control, but maybe I'm wrong.
Any tips for now pushing these partitions to overwrite the identically named ones on the other device? Essentially both have the same OS/image, just mine has the system level configurations custom to my usage.
howetechnical said:
There were a couple of inconsistencies with the partitions/environment from the instructions, but I found workarounds and got the necessary partiton image files off. Now I'm searching for a custom recovery compatible with this tablet, which I'm not finding. I think I remember the stock recovery not allowing this level of control, but maybe I'm wrong.
Any tips for now pushing these partitions to overwrite the identically named ones on the other device? Essentially both have the same OS/image, just mine has the system level configurations custom to my usage.
Click to expand...
Click to collapse
I only have the model number of your device but not what brand name it is. Cwm and philz recovery pre dated todays twrp so a version of one or the other would be what you need. As far as flashing the images to the identical device, fastboot may be an option to flash them without recovery, if you have access to it.
Sent from my moto g(6) play using Tapatalk
---------- Post added at 03:19 PM ---------- Previous post was at 02:55 PM ----------
I just searched for a custom recovery for your device, yifang M712MC and came up empty handed. If you have the recovery.img i can take a look and see if i could port cwm, twrp or philz for you. I develop full time for several other devices so it may take me a few days but I'd be willing to try if it helps you.
Sent from my moto g(6) play using Tapatalk
model?
I have m712mc firmwares. an original m712mc from hcl u2 & m727mc from nextbooks which also work on m712mc (without any noticeable issue. perhaps a little slow)
there a few other firmwares with m712mc floating around but i think anything with a 1GHz cortex A9, 8726M3 1GB DDR1 will likely work.
built by YIFANG regardless of brand is very likely to work.
which m712mc tablet do you have? can you post the full build.prop here?
I need a nextbook m712mc or a compatible m727mc 4.1.1 with 8192cu wifi card or a SMT modified rom with 8192cu.

[OP8P] PhotoChrom enabled - Without PC - Non Root

Hello everyone.
This is a guide to enable the Photochrom camera without using a PC.
Steps:
1. Install Termux - https://play.google.com/store/apps/details?id=com.termux&hl=en&gl=US
2. Run this command on Termux:
apt update > /dev/null 2>&1 && apt --assume-yes install wget > /dev/null 2>&1 && wget https://github.com/MasterDevX/Termux-ADB/raw/master/InstallTools.sh -q && bash InstallTools.sh
Wait for a while and let this command complete. (Needs internet connected)
3. Run this command in Termux:
adb devices
4. Go to developers settings. We need to change 3 settings:
First turn all of them off:
a) Wireless debugging
b) Wireless ADB debugging
c) USB debugging
Now you have to turn them on in this order (Yes the order is important)
a) Wireless debugging (Also click allow on prompt)
b) Wireless ADB debugging
c) USB debugging (Also click allow on prompt)
5. Go back to Termux and type:
Adb devices
You phone should show up with the IP
6. In termux run:
Adb shell
and then run:
am start -n com.oneplus.factorymode/.camera.manualtest.CameraManualTest
CONGRATS!! The camera runs now.
Change camera to camera 4. This is the photochrom camera.
Now go to recent apps and lock this camera app.
Now you never have to worry again.
This app will always be available in recent apps.
EXTRA STEP. If "adb shell" command does not run.
You need to do one extra step after step 5
5.5. If your ip is 192.168.2.3:5555
run this command
adb connect 192.168.2.3:5555
then do step 6
DOESN'T WORK?
Uninstall Termux and repeat procedure again. Follow the video attached.
VIDEO TUTORIAL
For Video Tutorial please follow the link
2020_12_06_19_06_32.mp4
drive.google.com
Hi mate, great job. But I have a doubt, if I follow all the steps my stock camera version will still be the newest? or do I go back to an older version?
Zokinet said:
Hi mate, great job. But I have a doubt, if I follow all the steps my stock camera version will still be the newest? or do I go back to an older version?
Click to expand...
Click to collapse
You stock camera will not be changed
This works fabulous on OnePlus 8 pro IN2021 running Android 11.0.2.2 thanks again.
Hi thanks for taking you time bro but i am on oos 10 and tried following this but i am getting.
plus.factorymode/.camera.manualtest.CameraManualTest <
Starting: Intent { cmp=com.oneplus.factorymode/.camera.manualtest.CameraManualTest }
Warning: Activity not started because the current activity is being kept for the user.
iamtalha said:
You stock camera will not be changed
Click to expand...
Click to collapse
Thanks, All works good.
Good job.
I'm not getting an ip address in Step 5, so termux doesn't see my device. I turned on those settings in order...
Rajul said:
Hi thanks for taking you time bro but i am on oos 10 and tried following this but i am getting.
plus.factorymode/.camera.manualtest.CameraManualTest <
Starting: Intent { cmp=com.oneplus.factorymode/.camera.manualtest.CameraManualTest }
Warning: Activity not started because the current activity is being kept for the user.
Click to expand...
Click to collapse
That means your "adb shell" command didn't work, or you did not use that command. Please watch the video I just attached to the original post
GatorsUF said:
I'm not getting an ip address in Step 5, so termux doesn't see my device. I turned on those settings in order...
Click to expand...
Click to collapse
Please check the video I just attached.
Good video : cheers
Awesome, this works fine on OOS 11 stable. Thanks a lot.
Rajul said:
Hi thanks for taking you time bro but i am on oos 10 and tried following this but i am getting.
plus.factorymode/.camera.manualtest.CameraManualTest <
Starting: Intent { cmp=com.oneplus.factorymode/.camera.manualtest.CameraManualTest }
Warning: Activity not started because the current activity is being kept for the user.
Click to expand...
Click to collapse
You need to disable all your magisk modules to use it.
Tried, no x ray effect
I am not even rooted
Svid said:
You need to disable all your magisk modules to use it.
Tried, no x ray effect
Click to expand...
Click to collapse
iamtalha said:
That means your "adb shell" command didn't work, or you did not use that command. Please watch the video I just attached to the original post
Click to expand...
Click to collapse
Will it work on oos 10?
Rajul said:
Will it work on oos 10?
Click to expand...
Click to collapse
Not sure. But it should
Svid said:
You need to disable all your magisk modules to use it.
Tried, no x ray effect
Click to expand...
Click to collapse
Xray effect is very slight. It is just hyped
OP8Pro, A11, running shell as su was required or else I would get the message:
"Warning: Activity not started because the current activity is being kept for the user."
App launched, but error message popped up, image attached
After disabling xXx NoLimits Magisk Module, the photochrome camera worked!
oSumAtrIX said:
OP8Pro, A11, running shell as su was required or else I would get the message:
"Warning: Activity not started because the current activity is being kept for the user."
App launched, but error message popped up, image attached
After disabling xXx NoLimits Magisk Module, the photochrome camera worked!
Click to expand...
Click to collapse
Yes this method was for non rooted phones. Rooted phones have other better methods
For anyone trying this on OOS 10, it will not work for non rooted oos 10 as the factory mode feature was disabled by OnePlus in latest Stable update but it works for OOS 11 stable.(as of now)
iamtalha said:
Xray effect is very slight. It is just hyped
Click to expand...
Click to collapse
Well this guide does work for me 11.0.2.2 BA but the hype i had was big lol

Categories

Resources