Ethereum Android
blockchain is not only about issuing money, but also can be applied in many places. The biggest feature of blockchain is decentralization. General Internet procts are centralized, and blockchain can use decentralization to solve the trust problem between each node. Because in the blockchain, information is traceable and cannot be tampered with
now there are many blockchain landing projects. You can properly understand that it is not a simple coin issuing thing, nor a deceptive project.
it is a new encrypted digital asset launched by viabtc based on bitcoin ABC scheme, which can be regarded as a bifurcated or competitive currency of bitcoin BTC
generally, as the main virtual currency, bitcoin's rising value will drive the price of other corresponding currencies to rise. Of course, as an investment proct similar to stocks, there are certain risks.
Lo represents 127.0.0.1, that is, localhost
WLAN 0 represents wireless NIC
after executing the ifconfig command, the system will set the necessary parameters in the kernel table, so that Linux knows how to communicate with NIC on the network. The ifconfig command has the following two formats:
* ifconfig [interface]
* ifconfig interface [aftype] option | address...
the first format of ifconfig (or use the ifconfig command without any parameters) can be used to view the network configuration of the current system
just after the system is installed, Linux is actually used without network card or network connection, but the loopback mode can be used through ifconfig to make the computer think that it is working on the network
now let's run the ifconfig command. The ifconfig command without parameters can display the currently started network interface, The output results are as follows:
[ root@machine1 /sbin]#ifconfig
eth0 Link encap:Ethernet HWaddr 52:54:AB:DD:6F:61
inet addr:210.34.6.89 Bcast :210.34.6.127 M ask:255.255.255.128
UP BROADCAST RUNNING MULTICAST MTU:1500 M etric:1
RX packets:46299 errors :0 dropped:0 overruns :0 frame:189
TX packets:3 057 errors:0 dropped :0 overruns:0 carrier :0
c ollisions:0 txqueuelen :100
I nterrupt:5 Base address:0xece0
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask :255.0.0.0
UP LOOPBACK RUNNING MTU:3924 M etric:1
RX packets:44 errors :0 dropped:0 overruns :0 frame:0
TX packets:44 errors:0 dropped :0 overruns:0 carrier :0
c ollisions:0 txqueuelen : 0
the configuration parameters of the Ethernet card of the machine are headed by eth0. The setting here shows the device name / dev / eth0 of the Ethernet card and the MAC address of the hardware 52:54: ab: DD: 6F: 61. The MAC address is determined by the manufacturer and the unique address of each network card<
however, we can manually change the MAC address of the NIC, as long as we add:
ifconfig eth0 HW ether XX: XX: XX: XX: XX: XX
jiania comments:
eth0, eth1, eth2 to the network in / etc / rc.d/init.d /, representing NIC card 1, NIC card 2, Network card 3
HW means hardware
ether means Ethernet Ethernet
then restart. At this time, check with ifconfig command, and we will find that the MAC address of network card has changed to XX: XX: XX: XX: XX: XX: XX
ifconfig configures the network card
configures the IP address of the network card
ifconfig eth0 192.168.0.1 netmask 255.255.0
configures the IP address and 24 bit mask of 192.168.0.1 on eth0. What if you want to configure an IP address of 192.168.1.1/24 on eth0? Use the following command
ifconfig eth0:0 192.168.1.1 netmask 255.255.255.0
then use the ifconifg command to view the information of the two network cards, which are eth0 and eth0:0. If you want to add more IP, the name of the network card is eth0:1, eth0:2... Fill in a few if you want. ok
configure the hardware address of the network card
ifconfig eth0 HW ether XX: XX: XX: XX: XX: XX changes the hardware address of the network card. At this time, you can cheat the IP address of the LAN
disable the network card
ifconfig eth0 down
enable the network card
ifconfig eth0 up
the function of ifconfig command is very powerful, you can also set the MTU and hybrid mode of the network card.
difference:
1 and Vpay are a fully open network payment platform. Unlike Alipay and WeChat, Vpay is developed on the basis of block chaining technology. It can smoothly achieve point to point cross border transfer and is also a tool for us to dig Vpay coins. p>
2. Bitcoin mines by physical mining, while vpay digital assets mine by circulating computing power. Through users' participation in circulating mining, all users can hold vpay digital assets and ultimately achieve complete decentralization
vpay currency:
1. Vpay is a universal international wallet built with blockchain technology, which can also be understood as a global public distributed ledger. It has the characteristics of fairness, openness and decentralization, and is not controlled by any country, government or party
bitcoin:
1. Bitcoin was first a kind of network virtual currency, similar to Tencent's q-coin, but it can already buy real-life goods
2. It is characterized by decentralization, anonymity, and can only be used in the digital world. It does not belong to any country or financial institution, and is not subject to geographical restrictions. It can be exchanged anywhere in the world. Therefore, it is used as a money laundering tool by some criminals
3. In 2013, the U.S. government recognized the legal status of bitcoin, which led to a sharp rise in the price of bitcoin. In China, on November 19, 2013, a bitcoin was equivalent to 6989 yuan
4. On January 7, 2014, Taobao announced that it would ban the sale of Internet virtual currencies such as bitcoin and lightcoin from January 14
extended data :
Ethereum is the most popular development platform of vpay blockchain. Ethereum is a one-stop development platform for Turing's complete blockchain. It uses a variety of programming languages to implement the protocol, and the client written in go language is used as the default client
it allows anyone to build and use distributed applications running through blockchain technology in the platform. It can be understood as Android in the field of blockchain. It is a development platform. Users can develop applications based on blockchain technology just like Android framework
in the Internet era, there is a database behind every system. This database can be regarded as a large account book. In the past, the person who maintained the system was responsible for managing the database and recording the user's behavior, that is, bookkeeping. The "decentralization" of blockchain allows every member of the system to participate in it, not only everyone bookkeeping, but also through links, Everyone can have a complete account book
Apr 11 16:30:21 localhost kernel: device eth0 left promiscuous mode
Apr 11 16:30:39 localhost kernel: device eth0 entered promiscuous mode
Apr 11 16:30:39 localhost kernel: device eth0 left promiscuous mode
Apr 12 15:11:46 localhost kernel: device eth0 entered promiscuous mode
Apr 12 15:11:46 localhost kernel: device eth0 left promiscuous mode
Apr 13 11:30:58 localhost kernel: device eth0 entered promiscuous mode
Apr 13 11:30:58 localhost kernel: device eth0 left promiscuous mode
log文件实打印状态信息两种
实打印主要:logcat mainlogcat radiologcat eventstcpmp QXDM Log
状态信息:adb shell dmesgadb shell mpstateadb shell mpsysadb bugreport
实log:
adb logcat -b events -v time 打印系统事件志比触屏事件
tcpmp 用于TCP/IP协议相关都使用抓
adb shell tcpmp -s 10000 -w /sdcard/capture.pcap
比抓mms载候UA profilebrowser网候使用proxyAPN载streaming相关内容包括UA profile等
状态log:
其实够bugreport命令adb bugreport>bugreport.log)
面包含dmesgmpstatempsys
dmesg命令adb shell dmesg > ldmesg_kernel.logkernellog凡跟kernel相关比driver问题相机蓝牙usb启等等
mpstate系统状态信息面比较全包括手机前内存信息、cpu信息、logcat缓存kernel缓存等等
mpsys关于系统所进程Process内容都面adb shell mpsys 命令更详尽用
比adb shell mpsys meminfo system查看systemprocess内存信息
mpsys [options]
meminfo 显示内存信息
cpuinfo 显示CPU信息
account 显示accounts信息
activity 显示所activities信息
window 显示键盘窗口关系
wifi 显示wifi信息
通adb logcat/bugreport实查看系统log及系统状态信息
何Log存储保存系统运行情况呢
通些脚本或者执行执行程序保存log信息便析问题
2 抓取实log
? int main(int argc, char *argv[]) { …… //抓取main log char path[] = "/xxx/xxx/app_main.log"; sprintf(cmd,"logcat -v time > %s",path); fd = open(path, O_WRONLY|O_TRUNC|O_CREAT, 0777); <STRONG>system</STRONG>(cmd); //radio log …… sprintf(cmd,"logcat -b radio -v time > %s",path); <STRONG>system</STRONG>(cmd); //kernel …… sprintf(cmd,"cat /proc/kmsg > %s",path); <STRONG>system</STRONG>(cmd); //bluetoolth log sprintf(cmd,"hcimp -w %s","/data/bt.log"); <STRONG>system</STRONG>(cmd); …… }3 抓取状态log
? int main(int argc, char *argv[]) { //panic log 需要判断/proc/apanic_console否存 sprintf(cmd,"cp -R %s %s",from_dir,to_dir); <STRONG>system</STRONG>(cmd); //anr log /data/anr/ sprintf(cmd,"cp -R %s %s",from_dir,to_dir); <STRONG>system</STRONG>(cmd); //tombstones log /data/tombstones/ <STRONG>modem重启复位等</STRONG> sprintf(cmd,"cp -R %s %s",from_dir,to_dir); <STRONG>system</STRONG>(cmd); //mdm log /data/tombstones/mdm/<STRONG>modem重启复位</STRONG> sprintf(cmd,"cp -R %s %s",from_dir,to_dir); <STRONG>system</STRONG>(cmd); …… }
panic log:
表示Linux kernel走知道该走步状况tombstone log:
系统发tombstone候kernel首先报严重警告信号signal,层接收
进程调试工具进程调用栈现场保存起并系统创建data/tombstones目录异进程信息写目录面
发者需要通调用栈析整调用流程找问题点4 Runtime 执行程序
编译执行程序实际使用需要些控制参数
代码何执行些执行程序:
底层通system();
Java层Runtime.getRuntime().exec();
例:
String BIN_PATH = "/system/bin/catch_log";
Runtime.getRuntime().exec(BIN_PATH + " -x 1");
Runtime.getRuntime().exec("/system/bin/cat "+path);
Runtime.getRuntime().exec("su -c chmod 777 /data/glad.txt");
Runtime.getRuntime().exec("/system/bin/sh /data/test.sh");
Android Runtime使直接调用底层Linux执行程序或脚本能
比Linux写测试工具直接编译apk通Runtime调用
或者写脚本apk直接调用省间层或者JNI
参考文档:
5 diag_mdlog
高通提供抓取qxdm log东东
既包括AP端包括BP端或者跟选择端口关系,8064apmodem端口独立
代码位置:\vendor\qcom\proprietary\diag\mdlog\
使用diag_mdlog执行程序抓取log
需要Diag.cfg文件配置滤项选择需要Log信息使用前必须放置Diag.cfg文件
Diag.cfg文件用QXDM通F12Filtered View /Config Diag.cfg
程序能执行用kill -9 PID 其强制结束
6 抓取Ap 端 memory mp
高通qpst工具Memory Dump App
要downloader模式
需要修改nv项:
905 0
4399 1
或者使用emmc进入downloader模式
打连接手机 Get Regions选择需要保存ReginSaveTo选择文件夹确定即
注意:路径能文必须英文路径