Skip to main content

Posts

Showing posts with the label android

Wireless debugging on Android

 I'm not sure which version of android required to have this feature. For my Redmi 9S follow steps below navigate to  -Settings -> Additional settings-> Developer options -> Wireless debugging   and enable it then click "Pair device with pairing code" then on your laptop (ip port and code are not exactly same with code below😅) zsh 1010 % adb pair 192.168.1.213:41855 Enter pairing code: 185176 Successfully paired to 192.168.1.213:41855 [guid=adb-eee2c79f-MOsHVT] [ Sun 23/09/10 23:14 +07 ][ s002 ][ x86_64/darwin22.0/22.5.0 ][ 5.9 ] < medici@medicis-MacBook-Pro : ~ > zsh 1011 % flutter devices               1 connected device: macOS (desktop) • macos • darwin-arm64 • macOS 13.4.1 22F770820d darwin-arm64 1 wirelessly connected device: Redmi Note 9S (mobile) • adb-eee2c79f-MOsHVT._adb-tls-connect._tcp. • android-arm64 • Android 12 (API 31) [ Sun 23/09/10 23:14 +07 ][ s002 ][ x86_64/darwin22.0/22.5.0 ][ 5.9 ] < medi...

putting sqlite3 on nexus s

i just notice that there is no sqlite3 on samsung nexus s (official ICS ROM) and i need it in debugging my application database. so i download it from somewhere on internet can't remember. Anyway the one that come with android sdk linux version should be fine to put it on phone. and here is what i do. E:\android-sdk-windows-1.5_r2\platform-tools>adb shell shell@android:/ $ su su shell@android:/ # mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system shell@android:/ # dd if=/sdcard/sqlite3 of=/system/bin/sqlite3 dd if=/sdcard/sqlite3 of=/system/bin/sqlite3 47+1 records in 47+1 records out 24120 bytes transferred in 0.003 secs (8040000 bytes/sec) shell@android:/ # chmod 4755 /system/bin/sqlite3 chmod 4755 /system/bin/sqlite3 shell@android:/ # mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system shell@android:/ # sqlite3 sqlite3 SQLite version 3.7.4 Enter...