1 Power consumption positioning tool and method 1-1 battery information provided by the system 1-1-1 used before Android 4.4 KitKatadb shell dumpsys batteryinfo > d:/batterinfo.logGet the Power log1-1-2 used in Android 4.4 KitKat and later
Get logs
adb shell dumpsys batterystats > d:/batterstats.logGet a battery log you can use the command to clear records and re-recordadb shell dumpsys batter
Android App development skill map, androidapp
Operating System
Windows/MacOSX/Linux
Programming Language
Java
HTML/JS (Hybrid/Web App)
C/C ++ (NDK)
SQL (DB)
Kotlin
Development Tools
IDE
Android Studio
Eclipse
Debugging tools
Network debugging
Charles
Wireshark
Fiddler
}}Upload Log method:You need to run init in application first,Then add code such as the following in whatever location: LogCollector.upload(boolean isWifiOnly);
Number of references:
1.boolean iswifionly; True means that only the WiFi case is sent, false means that the network is sent (including traffic and WiFi)
You will be able to trigger at the right time in the service,ac
the command is not the same as I listed separately, because this is sometimes useful.For example, we want to collect com.tianxia.test memory usage, analyze whether it will be memory leaks, footsteps similar:
1234567891011
#!/system/bin/sh #这个脚步比较粗糙, that's what this means file=/sdcard/cpu/mem_info. log rm $file until [1-GT 10000] do echo-e "\n\n\n\n\n---------------" >> $file date >> $file dumpsys meminfo com.tianxia.test >> $file sleep 3 done
verify the legitimacy of these data.
Zip unzip the directory to cover the risk. Allow in Zip: /.. /file such a path. If you unzip to the current directory, it is possible to overwrite the files in the parent directory.
Android components improper exposure, do not need to export the need exported = False.
Local port open issue, Socket server. Try not to open this interface. If you want to, also just bind to 127.0.0.1, do not expose to the
Encountering a problem in the project, I need to interact with my Androdi mobile app and my PC's browser, and I need to connect to WiFi via wifi,pc and my phone.The mobile app wants to send some data to the browser, and after the browser takes some action, it feeds the results back to the phone.My initial idea was that
on the conditions.If the server in the issued text message, does not include the phone number, the phone is unable to obtain the phone number. If the text contains a number, the phone will cache it for his use. In addition, for other operators ' SIM cards or Uim cards, the MDN may be saved in the UIM card. 100% being able to get a native number is unlikely.Mobile Shenzhou Line, Unicom's card can be taken. The dynamic zone is not available. Other cards have not been tried yet.The ability to read
Use Android-Debug-Database to view the App Database in the browser.
Usage reference:Http://www.jianshu.com/p/89ccae3e590bSource Code address:Https://github.com/amitshekhariitbhu/Android-Debug-DatabaseFeatures:
Add dependency:Add the following code in your build. gradle:1 debugCompile 'com. amitshekhar. android: debug-d
Setcontentview (R.layout.activity_splash); // Bmob SDK Initialization--only this piece of code is required to complete the initialization // please go to bmob official website (http://www.bmob.cn/) to apply for ApplicationID, specific address: Http://docs.bmob.cn/android/faststart/index.html?menukey=fast_start key=start_android Bmob.initialize (this, constant.bmob_app_id); + "Launched! ");Apply Appkey, modify the
There are a lot of tutorials on using WiFi to connect Android devices to debug apps, but you need to use Bluetooth to communicate in your project. So it involves using Bluetooth to call ADB.1. Pairing your computer's Bluetooth with your phone (Control Panel, devices and printers, adding devices)2. Set on the phone (set à many other wireless connections à network share à bluetooth shared network)3. PC-side,
1. Mobile Phone Assistant1.1 USB LinkCan read the phone's PID and VID, determine the only device, you can install the corresponding driver for the phone, etc.Socket on fixed port communication1.2 WIFI LinkPC on the computer in the entire network segment to send UDP packets, mobile phone connected after WiFi can listen to this port, received packets, trying to connect with the pc machine to establish a conne
consumption at what level, should be in the mind.Second trick: View the power consumption of each component through the ADB tool.Each component in the phone (CPU, LED, sensor, GPS, 3G, WiFi, Wakelock, and so on) is placed in the Power_profile.xml file, and the system is set up--in the battery-usage case. The usage of energy consumption in statistics is also based on the value of Power_profile.xml as the base parameter. Use the command to monitor the
Android App Stress Test (i) Monkey tool introductionObjective This article mainly introduces monkey tools. Monkey testing is an automated test of the Android platform, through the monkey program to simulate the user touch screen, swipe, button and other operations to stress the program on the device, the detection of how long the program will be abnormal. This ar
Look for the night God Android Simulator, under a few other simulators have no proxy functionOne, night God Android Simulator Setup Agent1. Click Settings in the lower right corner2. Tap settings to go to the WiFi connection option3. After entering the list, the mouse click on the WiFi location, long press the left but
1. Declare the permissions required to run the app itself2. Declaring the permissions required to invoke the applicationCommon Permissions for Android systems
Permissions
Description
Access_network_state
Permission to allow an application to obtain network status information
Access_wifi_state
Permission to allow an application to obtain Wi-Fi network
as:The last is to modify the hosts on the server, refer to the above DNS configuration hosts operation is the sameIt's almost all set up.The last thing to note is to clear the cache on the phone, be sure to close the browser and app, clean up the memory and then open, or the phone's DNS and network settings may not be switched over.The above configuration I have been tested on Android devices, IOS is not a
First, monkey Test (smoke test)Use the Monkey Test tool to do the following:1. Installation of the app2. App random action test (app stress test)3. Uninstall the AppIi. loading and unloading test of Ann1. Installing and uninstalling the app using a test real machine2. Use of third-party software to assist with installation and uninstallationThird, upgrade test1.
There are a lot of tutorials on using WiFi to connect Android devices to debug apps, but you need Bluetooth to communicate with your project, so it involves using Bluetooth to call ADB.1. Pairing your computer's Bluetooth with your phone (Control Panel, device and printer, add device)2. Set on the phone (set à more wireless connection à network share à bluetooth shared network)3. PC-side, device and printer
Preparation tools:1 charles:https://www.charlesproxy.com (fee)2 night God Simulator: https://www.yeshen.com (free)2 Simulator settingsOrClick WiFi AccessThe mouse long press WiFi access to modify the interface (do not click. left mouse button Click and hold for a few seconds)Click Modify Network as shown in the address, fill in your computer's IP address (not sure can cmd ipconfig view)Setup Complete3 Grab
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.