Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
システム上のファイルにアクセスする必要があります。つまり、情報を取得するためです。ファイルbuild.propはそう取り出します
Runtime.getRuntime().exec("/system/bin/getprop").getInputStream();
他のファイルのリストとそれらの読み取り方法が必要です。ありがとう
SecurityExceptionアプリに関連付けられているユーザーにはこのファイルを読み取る権限がないため、 があると思います。これを行う唯一の方法は、デバイスをルート化することです。
SecurityException
ROOTが必要なため、ほとんどのファイルに/systemアクセスできません。
/system