Since uids associated with package names do not overlap unless you use sharedId, you can distinguish package logs by uid.
1. Install the app The uid value is set when the app is installed, so install the app first. 2. Get uid value After installing the package, check the uid value with the following command. Windows - adb.exe shell cmd package dump PACKAGE_NAME Check the userId or packageUid value in the output. ex) adb.exe shell cmd package dump com.example.myapplication > package.txt
Linux, mac - adb shell cmd package dump PACKAGE_NAME | grep packageUid 3. Apply the uid value confirmed to Lognote Temporary apply(test): Add "--uid=XXX" to the logcat command above in lognote. (Removed when Lognote is restarted)
Add settings: Add "--uid=XXX" to the logcat command. (keep when Lognote is restarted) Setting > Log cmd You can check the newly added command in the log command combo box.
4. Result - Only logs based on uid values
* The uid is maintained, so you only need to check the uid when installing it for the first time.
No comments:
Post a Comment