web-dev-qa-db-ja.com

Androidでのengとuser-debugビルドの違い

2つのbuild_flavorのvizの違いを知りたいです。

engおよびユーザーデバッグ

Engフレーバーとユーザービルドフレーバーの違いは明らかです。しかし、engとuser-debugは私を多少混乱させます。 user-debugにはない、engで提供される追加のデバッグ機能は何ですか?

例えば.

If I take only the Kernel being built:

Will the Debugging levels differ for the eng and user-debug builds?

Android電話でユーザーデバッグビルドが起動するという問題に直面しています。しかし、engビルドはそうではなく、build_flavorが2つのビルドの唯一の違いです。

任意のヘルプ/ポインターをいただければ幸いです。ありがとう!

26
spitfire88

まあ、3つのビルドの違いは。 eng、user、およびuser-debugは次のとおりです。

eng-エンジニアリングビルドにはデフォルトのルートアクセスが付属しています。

ser-ユーザービルドは、実稼働の電話でフラッシュされます。ルートアクセス権はありません。

ser-debug-ユーザーデバッグビルドにはデフォルトのルートアクセスが付属していませんが、ルート化できます。また、追加のロギングが含まれています。

ここで注意すべきことの1つは、engビルドは追加のログを提案するかもしれませんが、そうではないということです。ユーザーデバッグには最大ログが含まれるため、開発中に使用する必要があります

20
spitfire88

eng:これはデフォルトのフレーバーです。単純なmakeは、make engと同じです。

- Installs modules tagged with: eng, debug, user, and/or development.
- Installs non-APK modules that have no tags specified.
- Installs APKs according to the product definition files, in addition to tagged APKs.
- ro.secure=0
- ro.debuggable=1
- ro.kernel.Android.checkjni=1
- adb is enabled by default. 

ユーザー:ユーザーを作成する

これは、最終リリースビットとなるフレーバーです。

- Installs modules tagged with user.
- Installs non-APK modules that have no tags specified.
- Installs APKs according to the product definition files; tags are ignored for APK modules.
- ro.secure=1
- ro.debuggable=0
- adb is disabled by default.

userdebug:userdebugを作成します

ユーザーと同じですが、次の点が異なります。

Also installs modules tagged with debug.
- ro.debuggable=1
- adb is enabled by default. 

ドキュメント: https://source.Android.com/source/add-device.html#build-variants

50
rmdroid