のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

Android

android adb audit avc denied

SELinux関係みたいだ。 08-10 10:39:05.960: W/adb(18810): type=1400 audit(0.0:256479): avc: denied { read } for name="usb" dev="tmpfs" ino=6306 scontext=u:r:shell:s0 tcontext=u:object_r:usb_device:s0 tclass=dir permissive=0https://source.and…

ndk-stack

ndk-stackndk-stack は、 android NDK についてくるツールの一つです。 使い方はおもに以下の2通りぐらいです。 logcatから直接使う場合$ adb logcat | ndk-stack -sym proj.android/obj/local/armeabi/ 保存してあるlogcatを読み込む場合$ ndk-stack -sym p…

android::SparseBitSet::nextSetBit

39 FontCollection::FontCollection(const vector<FontFamily*>& typefaces) : 40 mMaxChar(0) { 41 AutoMutex _l(gMinikinLock); 42 mId = sNextId++; 43 vector<uint32_t> lastChar; 44 size_t nTypefaces = typefaces.size(); 45 #ifdef VERBOSE_DEBUG 46 ALOGD("nTypefaces = %d</uint32_t></fontfamily*>…

AOSP Android 差分

前準備 $ mkdir android $ cd android $ repo init -u https://android.googlesource.com/platform/manifest -b android-5.1..1_r1 $ repo syncファイル差分すべてを取得 $ repo forall -p -c git diff android-5.1.0_r1..android-5.1.1_r1 > diff_android-5…

MAPI

VPNを構成しなくても実現する方法があります。Outlookとメールボックスサーバ間のMAPI/RPCプロトコル通信をHTTP/HTTPSでカプセルして、クライアントアクセスサーバを仲介役とする“Outlook Anywhere”機能 >diff.txt diff_android-5.1.0_r1_android-5.1.1_r1.t…

Android Log

横にしたとき 05-11 16:46:47.667: I/ActivityManager(682): Config changes=480 {1.0 ?mcc?mnc en_CA ldltr sw360dp w598dp h335dp 480dpi nrml land finger -keyb/v/h -nav/h s.884}縦にしたとき 05-11 16:47:44.508: I/ActivityManager(682): Config chan…

Android bugreportsの取り出し方

バグレポートの取り出し方のメモ adb shell $su #chmod 777 /data #chmod 777 /data/data #chmod 777 /data/data/com.android.shell #chmod 777 /data/data/com.android.shell/files #chmod 777 /data/data/com.android.shell/files/bugreports #chmod 777 /…

pa_gapps-modular-pico-5.1-20150315-signedのupdater-scriptのbin

pa_gapps-modular-pico-5.1-20150315-signedのupdater-scriptのbin

updater-script

gapps-L-3-17-15.zipのupdater-script

Android Device Monitorでマスクしたいときの方法

Android Device Monitorのログでマスクしたいときの設定方法 by Log tag: ^(?!.*QSEECOMD|WifiStateMachine|wpa_supplicant)Filter tags in LogCat (in Android Eclipse Plug-In)

valgrind: failed to start tool 'memcheck' for platform 'arm-linux': Permission denied

#chown -R shell.shell /data/local/Inst #cd /data/local/Inst/bin #./valgrind # su shell $ ./valgrind valgrind: failed to start tool 'memcheck' for platform 'arm-linux': Permission denied $ whoami whoami: unknown uid 2000ユーザーをSHELLにし…

android valgrind build

ビルド環境 ・valgrind-3.10.1 ・android-ndk-r10d ・ubuntu 14.04

android valgrind その2

>adb shell shell@hammerhead:/ $ su shell@hammerhead:/ # chmod 777 /data/local shell@hammerhead:/ # chmod 777 /data/local/Inst shell@hammerhead:/ # mkdir /data/local/Inst shell@hammerhead:/ # chmod 777 /data/local/Inst shell@hammerhead:/ # …

android valgrind

AOSPのoutフォルダ ~/LP501r1_debug/android/out/target/product/hammerhead/system/lib/valgrind$ ll total 39668 drwxrwxr-x 2 user user 4096 3月 24 11:22 ./ drwxrwxr-x 8 user user 12288 3月 24 11:21 ../ -rwxrwxr-x 1 user user 5625000 3月 24 11:…

ubuntu 14.04 clan 3.5

sudo ln -s /usr/bin/clang-3.5 /usr/bin/clang sudo ln -s /usr/bin/clang++-3.5 /usr/bin/clang++ sudo ln -s /usr/bin/scan-build-3.5 /usr/bin/scan-buildscan-build -V -k --status-bugs -o analyze_out --use-analyzer=/usr/bin/clang --use-cc=clang …

FAILED BINDER TRANSACTION

636 void signalExceptionForError(JNIEnv* env, jobject obj, status_t err, 637 bool canThrowRemoteException) 638 { 639 switch (err) { 640 case UNKNOWN_ERROR: 641 jniThrowException(env, "java/lang/RuntimeException", "Unknown error"); 642 brea…

InputDispatcher

I/InputDispatcher(685): Window 'Window{2d5a5961 u0 com.android.settings/com.android.settings.SubSettings}' spent 3366.0ms processing the last input event: MotionEvent( deviceId=4, source=0x00001002, action=2, flags=0x00000000, metaState=0x…

avc

03-04 05:07:23.947: W/ls(30040): type=1400 audit(0.0:1322): avc: denied { getattr } for path="/persist" dev="mmcblk0p16" ino=2 scontext=u:r:shell:s0 tcontext=u:object_r:persist_file:s0 tclass=dir 03-04 05:07:28.947: W/ls(30047): type=1400 …

FontCollection

(gdb) bt #0 android::FontCollection::itemize (this=0xaffb9158, string=string@entry=0x9f3e1c80, string_size=string_size@entry=8, style=..., result=result@entry=0xbeeacddc) at frameworks/minikin/libs/minikin/FontCollection.cpp:183 #1 0xb5771…

"Hung broadcast"

3473 case LAUNCH_TIMEOUT_MSG: { 3474 if (mService.mDidDexOpt) { 3475 mService.mDidDexOpt = false; 3476 mHandler.sendEmptyMessageDelayed(LAUNCH_TIMEOUT_MSG, LAUNCH_TIMEOUT); 3477 return; 3478 } 3479 synchronized (mService) { 3480 if (mLaunc…

"Launch timeout has expired, giving up wake lock!"

3473 case LAUNCH_TIMEOUT_MSG: { 3474 if (mService.mDidDexOpt) { 3475 mService.mDidDexOpt = false; 3476 mHandler.sendEmptyMessageDelayed(LAUNCH_TIMEOUT_MSG, LAUNCH_TIMEOUT); 3477 return; 3478 } 3479 synchronized (mService) { 3480 if (mLaunc…

"reacting to signal"

04-02 14:25:27.316 673-680/system_process I/art&#65109; Thread[5,tid=680,WaitingInMainSignalCatcherLoop,Thread*=0xaf60e400,peer=0x12c02080,"Signal Catcher"]: reacting to signal 3 168 int SignalCatcher::WaitForSignal(Thread* self, SignalSet…

"Sending signal. PID: "

04-02 14:25:28.656 673-781/system_process I/Process&#65109; Sending signal. PID: 1075 SIG: 3 863 void android_os_Process_sendSignal(JNIEnv* env, jobject clazz, jint pid, jint sig) 864 { 865 if (pid > 0) { 866 ALOGI("Sending signal. PID: %"…

"Launch timeout has expired, giving up wake lock!"

3427 private final class ActivityStackSupervisorHandler extends Handler { 3428 3429 public ActivityStackSupervisorHandler(Looper looper) { 3430 super(looper); 3431 } 3432 3433 void activityIdleInternal(ActivityRecord r) { 3434 synchronized…

art "Long monitor contention event with owner method="

--------- beginning of main 04-02 14:25:17.040 673-781/system_process W/art&#65109; Long monitor contention event with owner method= void com.android.server.wm.WindowManagerService.removeWindow (com.android.server.wm.Session, android.view.…

SystemUIでBreakをかけると、1分ぐらいで、WatchDog Timeoutする

/system_process W/Watchdog&#65109; *** WATCHDOG KILLING SYSTEM PROCESS: Blocked in monitor com.android.server.am.ActivityManagerService on foreground thread (android.fg), Blocked in handler on main thread (main), Blocked in handler on disp…

SystemBar StatusBar NavigationBar

SystemBar=StatusBar+NavigationBar the system bars (that is, the status and the navigation bars)

weight bold

41 42 // Resolve the 1..9 weight based on base weight and bold flag 43 static void resolveStyle(TypefaceImpl* typeface) { 44 int weight = typeface->fBaseWeight / 100; 45 if (typeface->fSkiaStyle & SkTypeface::kBold) { 46 weight += 3; 47 } …

PhoneStatusBar onConfigurationChange

3125 // SystemUIService notifies SystemBars of configuration changes, which then calls down here 3126 @Override 3127 protected void onConfigurationChanged(Configuration newConfig) { 3128 super.onConfigurationChanged(newConfig); // calls re…

Config.updateFrom

824 public int updateFrom(Configuration delta) { 825 int changed = 0; 826 if (delta.fontScale > 0 && fontScale != delta.fontScale) { 827 changed |= ActivityInfo.CONFIG_FONT_SCALE; 828 fontScale = delta.fontScale; 829 } 830 if (delta.mcc !=…