If the app doesn't support your device, you can collect some info to h dịch - If the app doesn't support your device, you can collect some info to h Việt làm thế nào để nói

If the app doesn't support your dev

If the app doesn't support your device, you can collect some info to help.

1.) You need adb installed

2.) Pull a list of your /sys/class and /sys/devices directories
Code:
adb shell ls -alR /sys/class/ > files
adb shell ls -alR /sys/devices/ >> files
3.) Search for current_now or batt_current or BatteryAverageCurrent or power_now and look for the whole path (the interfaces currently used in the app are listed in point C)
Code:
grep -B20 -i files
## example:
grep -B20 -i current_now files
4.) Try it out. Reading the file gives the current, if lucky.
Code:
adb shell cat
## example:
adb shell cat /sys/class/power_supply/Battery/current_now
If it gives a value which can be considered as the current (between 0 and 500 in case of a normal USB 2.0 port), then read out the value more times and look if it changes or not.

5.) If you think, you found your device's interface file to read the current, then please report it in this thread, with the Model string and other device info together.

B.) If your device seems to be supported (no error dialog), but the measured current values are wrong or 0 all the time.

You can report this in this forum. You can switch on a debug info bubble (toast) in pre Lollipp devices (Android 4.0.3-4.4.4) by just long-pushing the battery button in the app, make a screenshot and insert the screen shot in your post.
debug bubble1 debug bubble2
The debug bubble shows the following:
The first line is a device info line
List of all available interfaces (path) including the multiplier (a number which is used to scale the row values got from the interface) and the app internal entry number.
The firs interface in the list is the for measurement used one
The debug bubble is also shown, if no interface is found
There are devices with mA interface ( value 10 = 10 mA) and there are devices with uA interface ( value 10000 = 10 000 uA which is 10 mA). The multiplier is used to get the mA value. In the mentioned first case it is 1.0 and in the second case it is 0.001.

Try to find out what is wrong. The multiplier is wrong, or the used interface is wrong. In the second case, please search for a correct interface (point A).

C.) The list of currently scanned file interfaces:
/sys/class/power_supply/ab8500_fg/current_now
/sys/class/power_supply/android-battery/current_now
/sys/class/power_supply/battery/batt_attr_text
/sys/class/power_supply/battery/batt_chg_current
/sys/class/power_supply/battery/batt_current
/sys/class/power_supply/battery/batt_current_adc
/sys/class/power_supply/battery/batt_current_now
/sys/class/power_supply/battery/BatteryAverageCurrent
/sys/class/power_supply/battery/charger_current
/sys/class/power_supply/battery/current_avg
/sys/class/power_supply/battery/current_max
/sys/class/power_supply/battery/current_now
/sys/class/power_supply/Battery/current_now
/sys/class/power_supply/battery/smem_text
/sys/class/power_supply/bq27520/current_now
/sys/class/power_supply/da9052-bat/current_avg
/sys/class/power_supply/ds2784-fuelgauge/current_now
/sys/class/power_supply/max17042-0/current_now
/sys/class/power_supply/max170xx_battery/current_now
/sys/devices/platform/battery/power_supply/battery/BatteryAverageCurrent
/sys/devices/platform/cpcap_battery/power_supply/usb/current_now
/sys/devices/platform/ds2784-battery/getcurrent
/sys/devices/platform/i2c-adapter/i2c-0/0-0036/power_supply/battery/current_now
/sys/devices/platform/i2c-adapter/i2c-0/0-0036/power_supply/ds2746-battery/current_now
/sys/devices/platform/msm-charger/power_supply/battery_gauge/current_now
/sys/devices/platform/mt6320-battery/power_supply/battery/BatteryAverageCurrent
/sys/devices/platform/mt6329-battery/FG_Battery_CurrentConsumption
/sys/EcControl/BatCurrent
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
Nếu các ứng dụng không hỗ trợ thiết bị của bạn, bạn có thể thu thập một số thông tin để giúp.1.) bạn cần adb cài đặt2.) kéo một danh sách của bạn/sys/lớp và/sys/thiết bị thư mụcMã số:ADB vỏ ls - alR/sys/lớp/> tập tinADB vỏ ls - alR/sys/thiết bị/>> tập tin3.) tìm kiếm current_now hoặc batt_current hoặc BatteryAverageCurrent hoặc power_now và tìm đường dẫn toàn bộ (giao diện hiện đang được sử dụng trong các ứng dụng được liệt kê trong nút nhấn khẩn C)Mã số:grep-B20 -i tập tin## Ví dụ:grep-B20 -i current_now tập tin4.) dùng thử. Đọc các tập tin cho hiện tại, nếu may mắn.Mã số:ADB vỏ mèo ## Ví dụ:ADB vỏ cát /sys/class/power_supply/Battery/current_nowNếu nó sẽ cho một giá trị mà có thể được coi như là hiện tại (giữa 0 và 500 trong trường hợp một cổng USB 2.0 bình thường), sau đó đọc giá trị nhiều lần và xem nếu nó thay đổi hay không.5.) nếu bạn nghĩ rằng, bạn tìm thấy tập tin giao diện điện thoại để đọc hiện hành, sau đó xin vui lòng báo cáo nó trong chủ đề này, với các mô hình chuỗi và thông tin thiết bị khác nhau.B.) nếu thiết bị của bạn có vẻ để hỗ trợ (không có hộp thoại lỗi), nhưng các giá trị hiện tại đo là sai hoặc 0 tất cả thời gian.Bạn có thể báo cáo điều này trong diễn đàn này. Bạn có thể bật một bong bóng thông tin gỡ lỗi (bánh mì nướng) ở trước Lollipp thiết bị (Android 4.0.3-4.4.4) bằng cách chỉ dài-đẩy nút pin trong các ứng dụng, làm cho một ảnh chụp màn hình và chèn màn hình shot trong bài viết của bạn.gỡ lỗi bubble1 gỡ lỗi bubble2Bong bóng gỡ lỗi cho thấy sau đây:Dòng đầu tiên là một đường dây thông tin thiết bịDanh sách tất cả có giao diện (đường dẫn) bao gồm hệ số (một số được sử dụng để quy mô các giá trị hàng đã nhận từ giao diện) và ứng dụng nội bộ số.Giao diện linh sam trong danh sách các cho đo lường sử dụng mộtBong bóng gỡ lỗi cũng hiển thị, nếu không có giao diện được tìm thấyKhông có thiết bị với giao diện mA (giá trị 10 = 10 mA) và không có thiết bị với giao diện uA (giá trị 10000 = 10 000 uA đó là 10 mA). Hệ số được sử dụng để có được giá trị mA. Trong trường hợp đầu tiên được đề cập, nó là 1.0 và trong trường hợp thứ hai, nó là 0,001. Cố gắng tìm hiểu những gì là sai. Hệ số là sai, hoặc giao diện được sử dụng là sai. Trong trường hợp thứ hai, xin vui lòng tìm kiếm một giao diện chính xác (điểm A).C.) danh sách hiện đang quét tập tin giao diện:/sys/Class/power_supply/ab8500_fg/current_now/sys/Class/power_supply/Android-Battery/current_now/sys/Class/power_supply/Battery/batt_attr_text/sys/Class/power_supply/Battery/batt_chg_current/sys/Class/power_supply/Battery/batt_current/sys/Class/power_supply/Battery/batt_current_adc/sys/Class/power_supply/Battery/batt_current_now/sys/Class/power_supply/Battery/BatteryAverageCurrent/sys/Class/power_supply/Battery/charger_current/sys/Class/power_supply/Battery/current_avg/sys/Class/power_supply/Battery/current_max/sys/Class/power_supply/Battery/current_now/sys/Class/power_supply/Battery/current_now/sys/Class/power_supply/Battery/smem_text/sys/Class/power_supply/bq27520/current_now/sys/Class/power_supply/da9052-bat/current_avg/sys/Class/power_supply/ds2784-fuelgauge/current_now/sys/Class/power_supply/max17042-0/current_now/sys/Class/power_supply/max170xx_battery/current_now/sys/devices/platform/Battery/power_supply/Battery/BatteryAverageCurrent/sys/devices/platform/cpcap_battery/power_supply/USB/current_now/sys/devices/platform/ds2784-Battery/getcurrent/sys/devices/platform/I2C-adapter/I2C-0/0-0036/power_supply/Battery/current_now/sys/devices/platform/I2C-adapter/I2C-0/0-0036/power_supply/ds2746-Battery/current_now/sys/devices/platform/MSM-Charger/power_supply/battery_gauge/current_now/sys/devices/platform/mt6320-Battery/power_supply/Battery/BatteryAverageCurrent/sys/devices/platform/mt6329-Battery/FG_Battery_CurrentConsumption/sys/EcControl/BatCurrent
đang được dịch, vui lòng đợi..
Kết quả (Việt) 2:[Sao chép]
Sao chép!
Nếu ứng dụng không hỗ trợ thiết bị của bạn, bạn có thể thu thập một số thông tin để giúp đỡ. 1.) Bạn cần adb cài đặt 2.) Kéo một danh sách / sys của bạn / lớp và / sys / thiết bị thư mục Code: ls adb shell -alR / sys / lớp /> tập tin ls adb shell -alR / sys / thiết bị / >> file 3.) Tìm kiếm current_now hoặc batt_current hoặc BatteryAverageCurrent hoặc power_now và tìm kiếm toàn bộ đường dẫn (các giao diện đang được sử dụng trong các ứng dụng được liệt kê tại điểm C) Mã: grep -i -B20









file
## Ví dụ:
grep -i -B20 current_now file
4.) Hãy thử nó ra. Đọc các tập tin cho hiện tại, nếu may mắn.
Code:
adb shell mèo
## Ví dụ:
adb shell cat / sys / lớp / power_supply / Battery / current_now
Nếu nó mang lại một giá trị mà có thể được coi như hiện nay (giữa 0 và 500 trong trường hợp của một cổng USB 2.0 thông thường), sau đó đọc ra giá trị nhiều hơn lần và xem xét nếu nó thay đổi hay không. 5.) Nếu bạn nghĩ rằng, bạn tìm thấy tập tin giao diện của điện thoại để đọc hiện nay, sau đó xin vui lòng báo cáo nó trong chủ đề này, với chuỗi mẫu và thiết bị thông tin khác nhau. B.) Nếu bạn thiết bị dường như được hỗ trợ (không có hộp thoại báo lỗi), nhưng những giá trị hiện tại đo sai hoặc 0 thì tất cả các thời gian. Bạn có thể báo cáo này trong diễn đàn này. Bạn có thể chuyển về một thông tin gỡ rối bong bóng (bánh mì) trong các thiết bị Lollipp trước (Android 4.0.3-4.4.4) bởi chỉ cần dài nhấn nút pin trong ứng dụng, làm cho một ảnh chụp màn hình và chèn hình ảnh minh họa trong bài viết của bạn. Debug bubble1 debug bubble2 Các bong bóng debug cho thấy sau đây: Dòng đầu tiên là một dòng thiết bị thông tin Danh sách của tất cả các giao diện có sẵn (đường dẫn) bao gồm số nhân (một số trong đó được sử dụng để mở rộng các giá trị liên tiếp nhận được từ giao diện) và nhập nội bộ ứng dụng số. Các giao diện linh sam trong danh sách là để đo lường được sử dụng một trong các bong bóng debug cũng được hiển thị, nếu không có giao diện được tìm thấy có những thiết bị với giao diện mA (giá trị 10 = 10 mA) và có các thiết bị với giao diện UA (giá trị 10000 = 10 000 UA là 10 mA). Các nhân được sử dụng để có được giá trị mA. Trong trường hợp đầu tiên đề cập đến nó là 1.0 và trong trường hợp thứ hai nó là 0.001. Hãy cố gắng tìm ra những gì là sai. Các nhân là sai, hoặc các giao diện sử dụng là sai. Trong trường hợp thứ hai, vui lòng tìm kiếm một giao diện chính xác (điểm A). C.) Danh sách các tập tin đang quét












































đang được dịch, vui lòng đợi..
 
Các ngôn ngữ khác
Hỗ trợ công cụ dịch thuật: Albania, Amharic, Anh, Armenia, Azerbaijan, Ba Lan, Ba Tư, Bantu, Basque, Belarus, Bengal, Bosnia, Bulgaria, Bồ Đào Nha, Catalan, Cebuano, Chichewa, Corsi, Creole (Haiti), Croatia, Do Thái, Estonia, Filipino, Frisia, Gael Scotland, Galicia, George, Gujarat, Hausa, Hawaii, Hindi, Hmong, Hungary, Hy Lạp, Hà Lan, Hà Lan (Nam Phi), Hàn, Iceland, Igbo, Ireland, Java, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Kurd, Kyrgyz, Latinh, Latvia, Litva, Luxembourg, Lào, Macedonia, Malagasy, Malayalam, Malta, Maori, Marathi, Myanmar, Mã Lai, Mông Cổ, Na Uy, Nepal, Nga, Nhật, Odia (Oriya), Pashto, Pháp, Phát hiện ngôn ngữ, Phần Lan, Punjab, Quốc tế ngữ, Rumani, Samoa, Serbia, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenia, Somali, Sunda, Swahili, Séc, Tajik, Tamil, Tatar, Telugu, Thái, Thổ Nhĩ Kỳ, Thụy Điển, Tiếng Indonesia, Tiếng Ý, Trung, Trung (Phồn thể), Turkmen, Tây Ban Nha, Ukraina, Urdu, Uyghur, Uzbek, Việt, Xứ Wales, Yiddish, Yoruba, Zulu, Đan Mạch, Đức, Ả Rập, dịch ngôn ngữ.

Copyright ©2025 I Love Translation. All reserved.

E-mail: