Skip to content

Instantly share code, notes, and snippets.

@phhusson
Created February 15, 2021 22:06
Show Gist options
  • Save phhusson/2ab9e6226c6c2f652b7f2231b95b4315 to your computer and use it in GitHub Desktop.
Save phhusson/2ab9e6226c6c2f652b7f2231b95b4315 to your computer and use it in GitHub Desktop.
Make a developer version of NOVA Video Player
project MediaLib/
diff --git a/src/com/archos/mediaprovider/ArchosMediaCommon.java b/src/com/archos/mediaprovider/ArchosMediaCommon.java
index 8ec0596..1d132fc 100644
--- a/src/com/archos/mediaprovider/ArchosMediaCommon.java
+++ b/src/com/archos/mediaprovider/ArchosMediaCommon.java
@@ -51,8 +51,8 @@ public final class ArchosMediaCommon {
public static final long SCANNED_ID_OFFSET = 1000000000;
static {
- AUTHORITY_VIDEO = "com.archos.media.videocommunity";
- AUTHORITY_SCRAPER = "com.archos.media.scrapercommunity";
+ AUTHORITY_VIDEO = "com.archos.media.videophh";
+ AUTHORITY_SCRAPER = "com.archos.media.scraperphh";
CONTENT_AUTHORITY_SLASH_VIDEO = CONTENT + AUTHORITY_VIDEO + SLASH;
CONTENT_AUTHORITY_SLASH_SCRAPER = CONTENT + AUTHORITY_SCRAPER + SLASH;
}
project Video/
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 3cb85a01..aad4b45e 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -19,7 +19,7 @@
xmlns:tools="http://schemas.android.com/tools"
package="com.archos.mediacenter.video"
android:installLocation="auto"
- android:sharedUserId="archos.openmediacenter"
+ android:sharedUserId="phh.openmediacenter"
xmlns:dist="http://schemas.android.com/apk/distribution">
<dist:module dist:instant="true" />
@@ -163,7 +163,7 @@
<!-- Provides search suggestions for video search. -->
<provider
android:name="com.archos.mediacenter.video.browser.SearchProviderVideo"
- android:authorities="browser.SearchProviderVideocommunity" />
+ android:authorities="browser.SearchProviderVideophh" />
<provider
android:name="androidx.core.content.FileProvider"
@@ -1056,7 +1056,7 @@
<!-- ContentProvider for media -->
<provider
android:name="com.archos.mediaprovider.video.VideoProvider"
- android:authorities="com.archos.media.videocommunity;com.archos.media.scrapercommunity"
+ android:authorities="com.archos.media.videophh;com.archos.media.scraperphh"
android:exported="true" />
<!-- BroadcastReceiver to trigger database import -->
<receiver android:name="com.archos.mediaprovider.video.VideoStoreImportReceiver" >
diff --git a/build.gradle b/build.gradle
index 8a69adac..7d75a7af 100644
--- a/build.gradle
+++ b/build.gradle
@@ -113,7 +113,7 @@ android {
versionName = '6.0.5'
versionCode = 600005
if (keystorePropertiesFile.exists()) signingConfig signingConfigs.release
- applicationId "org.courville.nova"
+ applicationId "org.courville.nova.phh"
}
splits {
abi {
diff --git a/res/values-fr/strings.xml b/res/values-fr/strings.xml
index c7d855f1..40354bc9 100644
--- a/res/values-fr/strings.xml
+++ b/res/values-fr/strings.xml
@@ -84,7 +84,7 @@
<string name="root_storage">Stockage interne</string>
<string name="cannot_list">Erreur à la lecture du contenu</string>
<!-- VIDEO -->
- <string name="video">Nova Video Player</string>
+ <string name="video">Phh Video Player</string>
<string name="videos">Vidéos</string>
<string name="all_videos">Toutes les vidéos</string>
<string name="not_played_yet_videos">Pas encore joué</string>
diff --git a/res/xml/searchable_video.xml b/res/xml/searchable_video.xml
index 5b1b2884..1889e3bb 100644
--- a/res/xml/searchable_video.xml
+++ b/res/xml/searchable_video.xml
@@ -18,7 +18,7 @@
<searchable xmlns:android="http://schemas.android.com/apk/res/android"
android:label="@string/video"
android:includeInGlobalSearch="true"
- android:searchSuggestAuthority="browser.SearchProviderVideocommunity"
+ android:searchSuggestAuthority="browser.SearchProviderVideophh"
android:searchSuggestThreshold="3"
android:searchSuggestIntentAction="android.intent.action.VIEW"
android:searchSuggestIntentData="content://com.archos.media/external/video/media"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment