0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

play storeの無いandroid に ブラウザを入れる

Last updated at Posted at 2021-12-14

midoriを入れる

ソースコードダウンロード
git clone https://github.com/midori-browser/core.git
VersionとかLint警告で止まるのを修正
$ git diff -U0 | cat
diff --git a/app/build.gradle b/app/build.gradle
index 5129c1f0..f8435bb0 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -11 +11 @@ android {
-        minSdkVersion 15
+        minSdkVersion 22
@@ -26,0 +27,4 @@ android {
+    lintOptions {
+        checkReleaseBuilds false
+        abortOnError false
+    }
@@ -33 +37 @@ dependencies {
-    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
+    implementation 'com.android.support.constraint:constraint-layout:2.0.4'
diff --git a/build.gradle b/build.gradle
index a3176b9e..5a82c533 100644
--- a/build.gradle
+++ b/build.gradle
@@ -4 +4,2 @@ buildscript {
-    ext.kotlin_version = '1.2.71'
+    ext.kotlin_version = '1.6.0'
+
@@ -7 +8 @@ buildscript {
-        jcenter()
+        mavenCentral();
@@ -10 +11 @@ buildscript {
-        classpath 'com.android.tools.build:gradle:3.2.1'
+        classpath 'com.android.tools.build:gradle:7.0.4'
@@ -21 +22 @@ allprojects {
-        jcenter()
+        mavenCentral();
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index 9a4163a4..29e41345 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -3 +3 @@ distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip
ビルド
D:\yano\workspace\android\midori\core>gradlew assemble

> Configure project :app
Warning: The 'kotlin-android-extensions' Gradle plugin is deprecated. Please use this migration guide (https://goo.gle/kotlin-android-extensions-deprecation) to start working with View Binding (https://developer.android.com/topic/libraries/view-binding) and the 'kotlin-parcelize' plugin.

> Task :app:processDebugMainManifest
[com.android.support:animated-vector-drawable:28.0.0] C:\Users\th-yano\.gradle\caches\transforms-3\5c4a99a2143b93cffe52d7df27714f9f\transformed\animated-vector-drawable-28.0.0\AndroidManifest.xml Warning:
        Package name 'android.support.graphics.drawable' used in: com.android.support:animated-vector-drawable:28.0.0, com.android.support:support-vector-drawable:28.0.0.

> Task :app:processReleaseMainManifest
[com.android.support:animated-vector-drawable:28.0.0] C:\Users\th-yano\.gradle\caches\transforms-3\5c4a99a2143b93cffe52d7df27714f9f\transformed\animated-vector-drawable-28.0.0\AndroidManifest.xml Warning:
        Package name 'android.support.graphics.drawable' used in: com.android.support:animated-vector-drawable:28.0.0, com.android.support:support-vector-drawable:28.0.0.

BUILD SUCCESSFUL in 9s
60 actionable tasks: 58 executed, 2 up-to-date
apkは2つ出来る
D:\yano\workspace\android\midori\core>dir /s "*.apk"
 ドライブ D のボリューム ラベルがありません。
 ボリューム シリアル番号は E8E4-9800 です

 D:\yano\workspace\android\midori\core\app\build\outputs\apk\debug のディレクトリ

2021/12/14  13:56         3,029,363 app-debug.apk
               1 個のファイル           3,029,363 バイト

 D:\yano\workspace\android\midori\core\app\build\outputs\apk\release のディレクトリ

2021/12/14  13:56         2,386,153 app-release-unsigned.apk
               1 個のファイル           2,386,153 バイト

     ファイルの総数:
               2 個のファイル           5,415,516 バイト
               0 個のディレクトリ  656,569,143,296 バイトの空き領域
デバッグ版のインストール
D:\yano\workspace\android\midori\core>adb install -t D:\yano\workspace\android\midori\core\app\build\outputs\apk\debug\app-debug.apk
Performing Streamed Install
Success
起動
D:\yano\workspace\android\midori\core>adb shell
generic_x86:/ # pm list packages | grep midori
package:org.midori_browser.midori
generic_x86:/ # pm dump org.midori_browser.midori | grep org.midori_browser.midori | grep "/" | grep Activity
        5440bff org.midori_browser.midori/.BrowserActivity filter fdafdcc
        5440bff org.midori_browser.midori/.BrowserActivity filter fdafdcc
      Intent { flg=0x10000000 cmp=org.midori_browser.midori/.BrowserActivity }
      mActivityComponent=org.midori_browser.midori/.BrowserActivity
    mIntent=Intent { flg=0x10000000 cmp=org.midori_browser.midori/.BrowserActivity }
generic_x86:/ # am start -n org.midori_browser.midori/.BrowserActivity
Starting: Intent { cmp=org.midori_browser.midori/.BrowserActivity }
generic_x86:/ # exit

見れた
display.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?