Mayur Asodariya
Mayur Asodariya

Reputation: 103

Get android manifest <application> debuggable property value

Check if android debuggable property is true or not in manifest.

<application android:allowBackup="true" android:debuggable="true" >

How to get debuggable property value programmatically?

Upvotes: 1

Views: 393

Answers (2)

Bunty Petiwala
Bunty Petiwala

Reputation: 11

this.getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0

Upvotes: 0

Yahya M
Yahya M

Reputation: 472

You check if DEBUGGABLE is true or false using this

(getContext().getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0 

Upvotes: 1

Related Questions