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.