Skip to content

Commit

Permalink
Security assessment fixes (#1275)
Browse files Browse the repository at this point in the history
* Remove DebugProbesKt.bin from prod apk.

* Remove unused permisson.

* Update proguard-rules.pro

* Added read media permssion.
  • Loading branch information
jigar-f authored Dec 31, 2024
1 parent 1fdb1e6 commit efa0ad1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ android {
}
// Use legacy packaging to helps reduce apk size
packagingOptions{
exclude "DebugProbesKt.bin"
jniLibs {
useLegacyPackaging true
}
Expand Down Expand Up @@ -356,8 +357,7 @@ dependencies {

implementation files('libs/opuslib-release.aar')
implementation 'com.github.getlantern:secrets-android:f6a7a69f3d'
// implementation 'com.github.getlantern:db-android:6c0525eeb9'
// implementation 'com.github.getlantern:messaging-android:eabf104396'


implementation 'com.github.getlantern:db-android:a137a028d4'
implementation 'com.github.getlantern:messaging-android:4c346e64ee'
Expand Down
1 change: 0 additions & 1 deletion android/app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -219,4 +219,3 @@
##---------------Begin: proguard configuration for Signal ----------
-keep class org.whispersystems.** { *; }
##---------------End: proguard configuration for Signal ----------
#
7 changes: 5 additions & 2 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />

<!-- Re-enable for Chat!
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
Expand Down

0 comments on commit efa0ad1

Please sign in to comment.