alogcat NOW を使用すると、rootアクセスまたはコンピュータに添付することなく、私のデバイス上のシステムログファイルにアクセスする方法
i <コード> adb logcat を使用して、を使用して、それが大丈夫であるため、たくさんのメッセージが記録されていることを知っています。
998877666655443333 < / CODE>もっと他には表示されません。
だから、rootアクセスなしで私のNexus 7 のAndroidログファイルにアクセスすることは?
alogcat NOW を使用すると、rootアクセスまたはコンピュータに添付することなく、私のデバイス上のシステムログファイルにアクセスする方法
i <コード> adb logcat を使用して、を使用して、それが大丈夫であるため、たくさんのメッセージが記録されていることを知っています。
998877666655443333 < / CODE>もっと他には表示されません。
だから、rootアクセスなしで私のNexus 7 のAndroidログファイルにアクセスすることは?
Since aLogcat now no longer works with Jelly Bean, how can I access the system log files on my device without either root access or attaching it to a computer?
I have tried using adb logcat
from my PC and that worked fine, so I know that plenty of messages are being logged.
Using logcat
from Android Terminal Emulator on my Nexus 7 shows almost no output though and adb logcat
from Android Terminal Emulator, starts the daemon but then just says - waiting for device -
and nothing more appears.
So, is it possible to access android log files on my Nexus 7 without root access?
いいえ、セキュリティ上の理由から、rootアクセスなしでNexus 7(またはJelly Bean以降の他のデバイスを実行している他のデバイス)にAndroidログファイルにアクセスすることはできません。 GoogleはJelly Beanでそれを変更しました。
alogcatのようなLogCat Readersが修正されるまで待つことをお勧めします(すなわち、それらはすべてのログを表示するためのrootアクセスを必要とする)。
AISEC-TR-2012-001-ANDROID-OS-SECURITY.PDF - 3.3 Android Permission Model :READ_LOGS権限は、多くのデバイスで次のように置き換えることができます。 Androidのバージョン、したがって標準のアプリのバージョンに応じて インストール:
read_contacts
- にリストされています
get_tasks - 開始されたすべてのアクティビティはシステムのログ
- が記録されています
read_history_bookmarks - 新しいWebページを開くブラウザのアクティビティで、
read_sms
以下のすべての解決策はrootアクセスを必要とする:
シェルのrootとしてLOGCATを実行するか、シェルPMコマンド(root必須)で手動でそれを付与する必要があります( XDA 、Exchange org.jtb.alogcat.donate アプリのPKG名):
<コード> pm grant org.jtb.alogcat.donate android.permission.READ_LOGS
これは怠惰なもののためのもので、 提案されています: あなたが絶望的な、不注意で怠け者であれば、この醜いと安全でのハックを適用することによってすべてのアプリを修正することで修正することができます。 / STATUS / 23707879180451456 "rel =" NOREFERRER "> Twitter を介したCHAINFIRE:
<コード> view = context.LayoutInflater.Inflate(Android.Resource.Layout.SimpleSpinnerItem, parent, false); 1
CyanogenMod開発者Koushik DuttaのG + POST :
JellyBeanのAndroidログ権限/動作変更は?
アプリケーションが "logcat"を実行した場合は、UIDによって作成されたログエントリのみが表示されます。他のUIDからのログラインは表示されません。基本的に、それは今濾過されているようです。
私は通常と同じ権限を持っています。他のログコレクターアプリでも同じことが起こっていることを確認しました。
No, for security reasons it is not possible to access android log files on the Nexus 7 (or any other device running Jelly Bean or higher) without root access. Google changed that with Jelly Bean.
I'd suggest you wait until logcat readers like aLogCat and such get fixed (i.e. they will require root access to show all logs then).
From AISEC-TR-2012-001-Android-OS-Security.pdf - 3.3 Android Permission Model:
The READ_LOGS permission can substitute the following on many devices, depending on the Android version and thus the standard appsxe2x80x99 versions installed:
READ_CONTACTS
GET_TASKS xe2x80x93 every started Activity is listed in the systemxe2x80x99s logs
READ_HISTORY_BOOKMARKS xe2x80x93 opening new web pages is a browser Activity and thus logged
READ_SMS
All solutions below require root access:
You need to either run logcat as root in a shell or manually grant it via the shell pm command (root required) works also (see XDA, exchange org.jtb.alogcat.donate with the app's pkg name):
pm grant org.jtb.alogcat.donate android.permission.READ_LOGS
This is for the lazy ones and not suggested: If you're desperate, careless and lazy, you can fix it by giving every app the READ_LOGS permission by applying this ugly and insecure hack (Chainfire via twitter):
chmod 04755 /system/bin/logcat
To quote CyanogenMod developer Koushik Dutta's G+ post:
Did the Android Log permissions/behavior change in JellyBean?
It seems that if an application runs "logcat" now, it can see only the log entries created by its UID. Log lines from other UIDs are not shown. Basically, it seems to be filtered now.
I have the same permissions as usual. Also confirmed the same thing is happening in other log collector apps.
私はこれに混乱していますが、いくつか説明します。
私のNexus7と私のGalaxy Nexusで同じアプリを実行して、JellyBeanでは、電話機はすべてのアプリからのログ出力を見る、タブレットはそうではありません。これは、それがJellybeanそのNexus7ではないと言うでしょう。これをバックアップして、私はチェックしました、そしてそれらは両方とも異なるカーネルを持っています。タブレット、新しいものを持つ。
その更新されたカーネルは、ログが表示されないという意味です。
allの後にrootしなければならないと思います:(
I'm confused by this though it would explain some things.
Running the same app on my nexus7 and my galaxy nexus, both on jellybean, the phone sees log output from all apps, the tablet doesn't. This would say that it's not jellybean its the nexus7. Backing this up, I've just checked and they both have different kernels. The tablet, with a newer one.
Maybe its the updated kernel that, means logs don't appear.
Guess I'll have to root after all: (
代替アプローチを使用するLogcat App を開発しました。リモートデバッグ機能を利用します。最初に電話で有効にする必要がありますが、一度だけ行わなければならず、その後アプリを使用してすべてのログを取得できます。
I have developed a Logcat app that uses alternative approach. It utilizes remote debugging feature. You need to enable it on the phone first, but it has to be done only once and then you can use the app to retrieve all logs.
© 2022 cndgn.com All Rights Reserved. Q&Aハウス 全著作権所有