Skip to content

Instantly share code, notes, and snippets.

View regalstreak's full-sized avatar
🚀
Code wins arguments.

Neil Agarwal regalstreak

🚀
Code wins arguments.
View GitHub Profile
@regalstreak
regalstreak / logcat.log
Created May 23, 2017 20:46
hammerheadcaf halogenOS 7.1.2 1st eng build, camera doesnt work
regalstreak@rsubuntu:~/logcats/first$ adb logcat | grep camera
I/SystemServiceManager: Starting com.android.server.camera.CameraService
I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 pkg=org.codeaurora.snapcam cmp=org.codeaurora.snapcam/com.android.camera.CameraLauncher bnds=[840,1544][1035,1784] (has extras)} from uid 1000 on display 0
I/ActivityManager: Start proc 3963:org.codeaurora.snapcam/u0a46 for activity org.codeaurora.snapcam/com.android.camera.CameraLauncher
V/CAM_PhotoModule: Open camera device.
V/CameraHolder: open camera 0
I/CameraService: CameraService::connect call (PID -1 "org.codeaurora.snapcam", camera ID 0) for HAL version 256 and Camera API version 1
I/CameraService: onTorchStatusChangedLocked: Torch status changed for cameraId=0, newStatus=0
I/CameraFlashlight: Opening camera 0
E/CameraFlashlight: Could not open camera 0: -38
@regalstreak
regalstreak / logcat.log
Created May 23, 2017 20:40
hammerheadcaf halogenOS 7.1.2 first eng build
regalstreak@rsubuntu:~/logcats/first$ adb logcat | grep wifi
I/SystemServiceManager: Starting com.android.server.wifi.p2p.WifiP2pService
I/SystemServiceManager: Starting com.android.server.wifi.WifiService
I/SystemServiceManager: Starting com.android.server.wifi.scanner.WifiScanningService
I/SystemServiceManager: Starting com.android.server.wifi.RttService
D/ConnectivityService: wifiOnly=false
D/wifi : set interface wlan0 flags (UP)
I/WifiHAL : Initializing wifi
D/wifi : Did set static halHandle = 0xb42b2560
D/wifi : halHandle = 0xb42b2560, mVM = 0xb42b3180, mCls = 0x20153a
https://extensions.gnome.org/extension/19/user-themes/
https://extensions.gnome.org/extension/750/openweather/
https://extensions.gnome.org/extension/905/refresh-wifi-connections/
https://extensions.gnome.org/extension/817/battery-status/
https://extensions.gnome.org/extension/1166/extension-update-notifier/
https://extensions.gnome.org/extension/760/minimize-all/
https://extensions.gnome.org/extension/1112/screenshot-tool/
https://extensions.gnome.org/extension/1173/datetime-format/
https://extensions.gnome.org/extension/1040/random-wallpaper/
https://extensions.gnome.org/extension/1162/emoji-selector/
@regalstreak
regalstreak / gist:0e5c4c68c8a299ee40f43cd302505e2f
Created January 9, 2017 17:57
Find fastest ubuntu mirror
Netselect from https://packages.debian.org/stable/net/netselect
Command:
sudo netselect -v -s10 -t20 `wget -q -O- https://launchpad.net/ubuntu/+archivemirrors | grep -P -B8 "statusUP|statusSIX" | grep -o -P "(f|ht)tp.*\"" | tr '"\n' ' '`
Lower rank is better
public String[] parseMyJson(String... urls){
String jsonUrl = urls[0];
String[] jsonData = null;
try {
// Bring in the raw json data to jsonRawData
InputStream in1 = new java.net.URL(jsonUrl).openStream();
String jsonRawData = IOUtils.toString(in1, "UTF-8");
in1.close();
--------- beginning of crash
E/AndroidRuntime: FATAL EXCEPTION: main
E/AndroidRuntime: Process: com.android.settings, PID: 2933
E/AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.Settings$SimSettingsActivity}: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.android.settings.sim.SIM_SUB_INFO_SETTINGS }
E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)
E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
E/AndroidRuntime: at android.app.ActivityThread.-wrap12(ActivityThread.java)
E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)
E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime: at android.os.Looper.loop(Looper.java:154)
regalstreak@RegalStreak-PC-Deepin:~$ adb logcat -v tag | grep QC-time-services
E/QC-time-services: Daemon:tod_update_ind_cb: Got Update from modem msg_id 39
D/QC-time-services: Lib:time_genoff_operation: pargs->base = 12
D/QC-time-services: Lib:time_genoff_operation: pargs->operation = 0
D/QC-time-services: Lib:time_genoff_operation: pargs->ts_val = 1462115832000
D/QC-time-services: Lib:time_genoff_operation: Send to server passed!!
D/QC-time-services: Daemon: Connection accepted:time_genoff
D/QC-time-services: Daemon:Received base = 12, unit = 1, operation = 0,value = 1462115832000
D/QC-time-services: Daemon:genoff_opr: Base = 12, val = 1462115832000, operation = 0
D/QC-time-services: Daemon:rtc_get: Time read from RTC -- MM/DD/YY HH:MM:SS2/26/70 5:17:48
regalstreak@RegalStreak-PC-Deepin:~$ adb logcat -v tag
--------- beginning of main
W/auditd : type=2000 audit(0.0:1): initialized
--------- beginning of system
I/vold : Vold 3.0 (the awakening) firing up
V/vold : Detected support for: exfat ext4 f2fs ntfs vfat
I//system/bin/tzdatacheck: tzdata file /data/misc/zoneinfo/current/tzdata does not exist. No action required.
I/lowmemorykiller: Using in-kernel low memory killer interface
I/rmt_storage: Shared memory initialised successfully.
I/rmt_storage: Registering modemst1: 0x4a /boot/modem_fs1
regalstreak@RegalStreak-PC-Deepin:~$ adb logcat -v tag | grep E/
E/rmt_storage: debug open failed with errno 2
E/rmt_storage: telcel Not MX version, just exit!
E/rfs_access: debug open failed with errno 2
E/QSEECOMD: : Listener: index = 0, hierarchy = 0
E/DrmLibRpmb: rpmb_init succeeded! with ret = 0
E/QSEECOMD: : Listener: index = 1, hierarchy = 0
E/SSD : ssd_init_service succeeded!
E/QSEECOMD: : Listener: index = 2, hierarchy = 0
E/QSEECOMD: : Init dlopen(libsecureui.so, RLTD_NOW) is failed....
regalstreak@RegalStreak-PC-Deepin:~$ adb logcat -v tag
--------- beginning of main
W/auditd : type=2000 audit(0.0:1): initialized
--------- beginning of system
I/vold : Vold 3.0 (the awakening) firing up
V/vold : Detected support for: exfat ext4 f2fs ntfs vfat
I//system/bin/tzdatacheck: tzdata file /data/misc/zoneinfo/current/tzdata does not exist. No action required.
I/lowmemorykiller: Using in-kernel low memory killer interface
I/rmt_storage: Shared memory initialised successfully.
I/rmt_storage: Registering modemst1: 0x4a /boot/modem_fs1