After Android-goldfish-2.6.29 is upgraded to Android-goldfish-3.4, the APK with normal permission can only read its own print information when reading logs.

Source: Internet
Author: User

1. for jeallybean 4.2.2, the location of the permission list
. /frameworks/base/CORE/RES/androidmanifest. XML
when compiling APK ,. /out directory, some will be based on the androidmanifest of APK. XML crop the above XML to generate manifest. java file. It is interesting to track manifest. Java-related rules in./build.
2. adding the following permissions will cause problems in eclipse packaging. It seems that you need to package the BSP signature to the/system/APP/directory.



Installation, report permission error
not granting permission android. permission. read_logs to package COM. compal. TP. logs (protectionlevel = 50 flags = 0x8be44)
not granting permission android. permission. set_debug_app to package COM. compal. TP. logs (protectionlevel = 50 flags = 0x8be44)
not granting permission android. permission. diagnostic to package COM. compal. TP. logs (protectionlevel = 2 flags = 0x8be44)

3. CompareCodeAndroid-goldfish-3.4 added some stuff
Struct logger_reader {
...
Bool r_all; /* Reader can read all entries */
Int r_ver; /* Reader Abi version */
};
The following code is available in the open function:
Reader-> r_all = in_egroup_p (inode-> I _gid) |
Capable (cap_syslog );

The last door was closed, but it was not thorough enough. If runtime.getruntime.exe C is used, some key information can be obtained.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.