<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Android on Salt&#39;s blog</title>
    <link>https://saltpp.netlify.app/tags/android/</link>
    <description>Recent content in Android on Salt&#39;s blog</description>
    <generator>Hugo</generator>
    <language>ja-JP</language>
    <managingEditor>saltpp@gmail.com (Salt)</managingEditor>
    <webMaster>saltpp@gmail.com (Salt)</webMaster>
    <lastBuildDate>Sun, 22 Sep 2019 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://saltpp.netlify.app/tags/android/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Nexus 6 用 ROM の Build 方法</title>
      <link>https://saltpp.netlify.app/posts/software/android/nexus6build/</link>
      <pubDate>Sun, 22 Sep 2019 00:00:00 +0000</pubDate><author>saltpp@gmail.com (Salt)</author>
      <guid>https://saltpp.netlify.app/posts/software/android/nexus6build/</guid>
      <description>&lt;!-- thumbnail: &#34;images/Software/Android/Nexus6Build/header.jpg&#34; --&gt;&#xA;&lt;!-- https://qiita.com/machortz/items/a5f78605a61c19a6eb50 --&gt;&#xA;&lt;h2 id=&#34;概要&#34;&gt;概要&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Nexus 6 用 ROM をソースから Build する方法&lt;/li&gt;&#xA;&lt;li&gt;たまに自作 ROM で遊びたくなるのでメモ&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;詳細&#34;&gt;詳細&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;ビルド番号の確認&#xA;&lt;a href=&#34;https://developers.google.com/android/images#shamu&#34;&gt;Factory Image&lt;/a&gt; からビルド番号を確認しておく&#xA;→7.1.1 の最終は N6F27M&lt;/p&gt;</description>
    </item>
    <item>
      <title>Essential Phone の LCD 交換</title>
      <link>https://saltpp.netlify.app/posts/hardware/android/essentialphonelcd/</link>
      <pubDate>Sun, 28 Apr 2019 00:00:00 +0000</pubDate><author>saltpp@gmail.com (Salt)</author>
      <guid>https://saltpp.netlify.app/posts/hardware/android/essentialphonelcd/</guid>
      <description>&lt;!-- thumbnail: &#34;images/hugo_logo.png&#34;  --&gt;&#xA;&lt;h2 id=&#34;概要&#34;&gt;概要&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Essential Phone PH-1 の LCD を交換した時のメモ（というか、Twitter を引用する部分が AMP 対応できているかのテスト用だったり）&lt;/li&gt;&#xA;&lt;li&gt;LCD は、Aliexpress で探すと $40 ぐらいで買える。&#xA;&lt;ul&gt;&#xA;&lt;li&gt;$38.26 で購入した。ドルではなく日本円で買った方が安かったかも？&lt;/li&gt;&#xA;&lt;li&gt;ただ、タップの反応が悪いハズレ品が来た。勝手にタップされて電話されるし、感度を低く設定すると勝手なタップはなくなるけど下の方は触っても反応しないし、、&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;LCD は接着部分を十分に温めると無傷で取れる。温めたことで LCD が劣化するのかもしれないけど、見た目としては無傷。外した後、電源入れてみたけど劣化した感じはなかった。80度ぐらいで粘着テープは柔らかくなるはず、なので、それぐらいを目安にヒートガンで温める。&lt;/li&gt;&#xA;&lt;li&gt;再度固定するには 1mm 幅？の両面テープが必要そう。なかったので接着剤で固定した。100均にあったコニシのプラスチック用ボンドGPクリヤーを使用。&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;以下メモと言っても-tweet-だけど&#34;&gt;以下メモ、と言っても tweet だけど&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;表面のガラスの下のガラスが割れて、タッチがまともに効かなくなった。。&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;!---&#xA;&lt;blockquote class=&#34;twitter-tweet&#34;&gt;&lt;p lang=&#34;ja&#34; dir=&#34;ltr&#34;&gt;表面のガラス板の下のタッチセンサ用の？ガラス版まで割れてしまうとタッチをまともに受け付けてくれなくなるのかな？カッターの刃で浮いてるところ &lt;a href=&#34;https://t.co/xXM0p4Srzg&#34;&gt;pic.twitter.com/xXM0p4Srzg&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Android Pie だと HTTP 通信できない</title>
      <link>https://saltpp.netlify.app/posts/software/android/piehttp/</link>
      <pubDate>Thu, 25 Oct 2018 00:00:00 +0000</pubDate><author>saltpp@gmail.com (Salt)</author>
      <guid>https://saltpp.netlify.app/posts/software/android/piehttp/</guid>
      <description>&lt;h2 id=&#34;概要&#34;&gt;概要&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Fresco で HTTP な画像をダウンロードできなくて悩んだのでメモ&lt;/li&gt;&#xA;&lt;li&gt;Oreo なデバイスなら問題なくダウンロードできるのに Pie なデバイスだとだめだった&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;回避方法&#34;&gt;回避方法&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://stackoverflow.com/questions/51902629/how-to-allow-all-network-connection-types-http-and-https-in-android-9-pie&#34;&gt;ここ&lt;/a&gt;の通り&lt;br&gt;&#xA;res/xml/network_security_config.xml を作成して&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;&amp;lt;?xml version=&amp;#34;1.0&amp;#34; encoding=&amp;#34;utf-8&amp;#34;?&amp;gt;&#xA;&amp;lt;network-security-config&amp;gt;&#xA;    &amp;lt;base-config cleartextTrafficPermitted=&amp;#34;true&amp;#34;&amp;gt;&#xA;        &amp;lt;trust-anchors&amp;gt;&#xA;            &amp;lt;certificates src=&amp;#34;system&amp;#34; /&amp;gt;&#xA;        &amp;lt;/trust-anchors&amp;gt;&#xA;    &amp;lt;/base-config&amp;gt;&#xA;&amp;lt;/network-security-config&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;を書いて &lt;code&gt;application&lt;/code&gt; タグの &lt;code&gt;android:networkSecurityConfig&lt;/code&gt; アトリビュートで &lt;code&gt;@xml/network_security_config&lt;/code&gt; を指定する&lt;/p&gt;</description>
    </item>
    <item>
      <title>uninstall → install しても勝手にリストアされるよ</title>
      <link>https://saltpp.netlify.app/posts/software/android/realmmigrationneededexception/</link>
      <pubDate>Tue, 23 Oct 2018 00:00:00 +0000</pubDate><author>saltpp@gmail.com (Salt)</author>
      <guid>https://saltpp.netlify.app/posts/software/android/realmmigrationneededexception/</guid>
      <description>&lt;h2 id=&#34;概要&#34;&gt;概要&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Realm の model を変えた場合は、一旦アプリを uninstall しておかないと、migration が必要だよという RealmMigrationNeededException を吐く&lt;/li&gt;&#xA;&lt;li&gt;というのは、model が変わったから当然なんだけど、いつからか uninstall → install しても同じ exception を吐くようになって謎だったのでメモ&lt;/li&gt;&#xA;&lt;li&gt;デバイスから *.realm を全部消して、package 名が入っているディレクトリ・ファイルを全部消しても、「model にメンバが１つ増えたから migration しろ」的な exception を吐くから謎すぎた&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;原因&#34;&gt;原因&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/realm/realm-java/issues/1856&#34;&gt;ここ&lt;/a&gt; に書かれている通り、auto-backup が効いてて、uninstall → install しても実行する前に古いデータでリストアされるので、exception を吐くのだった。。そんな気もしたけど、、ちょっとハマった^^;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;解決方法&#34;&gt;解決方法&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;以下のどれかで良さそう（一番上しか確認してない）&lt;/p&gt;</description>
    </item>
    <item>
      <title>FragmentStatePagerAdapter のバグ</title>
      <link>https://saltpp.netlify.app/posts/software/android/fragmentstatepageradapter/</link>
      <pubDate>Sat, 20 Oct 2018 00:00:00 +0000</pubDate><author>saltpp@gmail.com (Salt)</author>
      <guid>https://saltpp.netlify.app/posts/software/android/fragmentstatepageradapter/</guid>
      <description>&lt;h2 id=&#34;概要&#34;&gt;概要&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;FragmentStatePagerAdapter のバグで悩んだのでメモ&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://issuetracker.google.com/issues/36956111&#34;&gt;ここ&lt;/a&gt; の #52 に書かれているように 2018/7/31 時点でもバグが残ったままみたい。#11 のを使わせてもらったら想定通りの動きになった。&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;FragmentPagerAdapter は基本的に全 Fragment を保存するらしいので、あまり調べてない&lt;/p&gt;</description>
    </item>
    <item>
      <title>Android で位置偽装する方法</title>
      <link>https://saltpp.netlify.app/posts/software/android/fakegpslocation/</link>
      <pubDate>Mon, 10 Sep 2018 00:00:00 +0000</pubDate><author>saltpp@gmail.com (Salt)</author>
      <guid>https://saltpp.netlify.app/posts/software/android/fakegpslocation/</guid>
      <description>&lt;h2 id=&#34;概要&#34;&gt;概要&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Android で GPS の位置偽装する方法&lt;/li&gt;&#xA;&lt;li&gt;Technical な興味で試しただけ。悪用しないように。&lt;/li&gt;&#xA;&lt;li&gt;ROM をビルドできる環境があれば簡単に位置偽装はできる。ま、ぐぐるとやってそうな人はいっぱい出てくるしね。&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Pixel 3 が日本にも来そうだし最新の Android をビルドできる環境は整いそう&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;４年前（2014/7月ぐらい）に試していたもの。最近別件で Galaxy Nexus を使った時に Ingress を試してみたらまだ使えたのでメモを残してみた。ただ滑らかには動かせない、ランダムに動かされてしまう。&lt;/li&gt;&#xA;&lt;li&gt;今どきのアプリではチェックされててまともには使えないと思われる。アプリによっては突然アカウントが BAN されるので注意。&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;試したアプリ&#34;&gt;試したアプリ&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Ingress&lt;/p&gt;</description>
    </item>
    <item>
      <title>Android で位置偽装する方法（その２）</title>
      <link>https://saltpp.netlify.app/posts/software/android/fakegpslocationdqw/</link>
      <pubDate>Mon, 10 Sep 2018 00:00:00 +0000</pubDate><author>saltpp@gmail.com (Salt)</author>
      <guid>https://saltpp.netlify.app/posts/software/android/fakegpslocationdqw/</guid>
      <description>&lt;h2 id=&#34;概要&#34;&gt;概要&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://saltpp.netlify.app/posts/software/android/fakegpslocation/&#34;&gt;Android で位置偽装する方法&lt;/a&gt; の続き&lt;/li&gt;&#xA;&lt;li&gt;Android 7.1.1 では、Unix domain socket は使えなくなっていた &lt;br&gt;&#xA;ので broadcast intent で情報渡すようにしてみた&lt;/li&gt;&#xA;&lt;li&gt;ドラゴンクエストウォークは問題なく偽装できた&lt;/li&gt;&#xA;&lt;li&gt;ポケモン Go は Magisk で root 取ってるの隠しても偽装できず&lt;/li&gt;&#xA;&lt;li&gt;詳細は後で&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
    </item>
    <item>
      <title>Galaxy Nexus 用 ROM の Build 方法</title>
      <link>https://saltpp.netlify.app/posts/software/android/galaxynexusbuild/</link>
      <pubDate>Sun, 02 Sep 2018 00:00:00 +0000</pubDate><author>saltpp@gmail.com (Salt)</author>
      <guid>https://saltpp.netlify.app/posts/software/android/galaxynexusbuild/</guid>
      <description>&lt;h2 id=&#34;概要&#34;&gt;概要&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Galaxy Nexus 用 ROM をソースから Build する方法&lt;/li&gt;&#xA;&lt;li&gt;たまに自作 ROM で遊びたくなるのでメモ&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;詳細&#34;&gt;詳細&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;ソースの取得&lt;br&gt;&#xA;4.3.1_r1 が最終っぽい。（↓の repository で git branch -av して確認）&lt;br&gt;&#xA;いや、本来は&lt;a href=&#34;https://source.android.com/setup/start/build-numbers&#34;&gt;ここ&lt;/a&gt;で最終のを探すべきだった^^;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Android で Hello, world!</title>
      <link>https://saltpp.netlify.app/posts/software/android/helloworld/</link>
      <pubDate>Sat, 11 Aug 2018 00:00:00 +0000</pubDate><author>saltpp@gmail.com (Salt)</author>
      <guid>https://saltpp.netlify.app/posts/software/android/helloworld/</guid>
      <description>&lt;h2 id=&#34;概要&#34;&gt;概要&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Android での少し実用的な Hello, world! アプリ&lt;/li&gt;&#xA;&lt;li&gt;Android Studio でスケルトン作れば Hello World! と出るけど、resouce 出してるだけで変化させれないので、ボタン押したら出す、APIコールの結果とか入れればそれが出る、ぐらいのもの&lt;/li&gt;&#xA;&lt;li&gt;テスト用にいつも使うのでコピペするよう&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;詳細&#34;&gt;詳細&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;スケルトン作成&lt;/p&gt;</description>
    </item>
    <item>
      <title>Android で native なアプリを作る方法</title>
      <link>https://saltpp.netlify.app/posts/software/android/nativeapp/</link>
      <pubDate>Sat, 11 Aug 2018 00:00:00 +0000</pubDate><author>saltpp@gmail.com (Salt)</author>
      <guid>https://saltpp.netlify.app/posts/software/android/nativeapp/</guid>
      <description>&lt;h2 id=&#34;概要&#34;&gt;概要&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;とりあえずな native なアプリの作り方&lt;/li&gt;&#xA;&lt;li&gt;Android.mk を、どっかのを真似して書けばいいだけ&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;方法&#34;&gt;方法&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Android のソースツリーの package/apps の下とかにディレクトリ掘って、Android.mk を作る&lt;br&gt;&#xA;以下のような感じで、どっかのを真似する&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
