Skip to content

Instantly share code, notes, and snippets.

View bmc08gt's full-sized avatar

Brandon McAnsh bmc08gt

View GitHub Profile
@bmc08gt
bmc08gt / kernelpanic
Created November 13, 2014 20:29
ghost cm-12.0 panic
[ 0.192003,1] Switching to clocksource gp_timer
[ 0.238943,1] Unable to handle kernel paging request at virtual address ffffffff
[ 0.239127,1] pgd = c0004000
[ 0.239401,1] [ffffffff] *pgd=b77fd821, *pte=00000000, *ppte=00000000
[ 0.240012,1] Internal error: Oops: 17 [#1] PREEMPT SMP ARM
[ 0.240286,1] Modules linked in:
[ 0.240592,1] CPU: 1 Tainted: G W (3.4.42-g7f702bf #2)
[ 0.240897,1] PC is at kmem_cache_alloc_trace+0x68/0x1b4
[ 0.241049,1] LR is at con_insert_unipair+0xa0/0xec
[ 0.241355,1] pc : [<c0124264>] lr : [<c02fa0c0>] psr: a0000013
@bmc08gt
bmc08gt / repopick-cm12
Last active August 29, 2015 14:09
Current CM12 open commits being used
source build/envsetup.sh
repopick 77128 # Switch to new Superuser
repopick 78202 # Change color to match Lollipop Style
repopick 77097 # Allow a device to define the max number of service groups in init.h
# device changes
cd device/motorola/ghost
git fetch http://review.cyanogenmod.org/CyanogenMod/android_device_motorola_ghost refs/changes/14/77814/4 && git cherry-pick FETCH_HEAD
git fetch http://review.cyanogenmod.org/CyanogenMod/android_device_motorola_ghost refs/changes/29/77829/4 && git cherry-pick FETCH_HEAD
@bmc08gt
bmc08gt / gist:509906b4c3d6fbd9fc42
Created March 20, 2015 16:19
extract-files.sh for arm-64 lollipop devices
#!/bin/bash
#
# Copyright (C) 2013, 2015 The CyanogenMod Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@bmc08gt
bmc08gt / 99fixgmsperms
Last active April 3, 2016 15:28
init.d script to workaround opengapps issue #200
#!/system/bin/sh
# Fix permission issues with OpenGApps and CM13/AOSP ROMs (issue #200 @github)
#
# Will check if permission is previously granted by the system before blanket granting
#
# Also will only run on first boot
#set -x
required_perms=(android.permission.ACCESS_FINE_LOCATION android.permission.ACCESS_COARSE_LOCATION)
$ git status
On branch cm-13.0
Your branch is up-to-date with 'origin/cm-13.0'.
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: g5-common/proprietary/app/TimeService/TimeService.apk
modified: g5-common/proprietary/bin/adsprpcd
modified: g5-common/proprietary/bin/energy-awareness
#!/bin/bash
#set -x
oat2dex()
{
APK="$1"
OAT="`dirname $APK`/arm/`basename $APK .apk`.odex"
if [ ! -e $OAT ]; then
return 0
01-01 21:39:49.254 691 696 E Sensors : sns_sam_mr.c(1107):Unable to acquire service handle 0
01-01 21:39:49.254 691 696 E Sensors : mag_cal.c(1609):mag_cal_sam_init: Unknown UUID(1) 00000000-0000-0000
01-01 21:39:49.254 691 696 E Sensors : mag_cal.c(1614):mag_cal_sam_init: Unknown UUID(2) 0000-000000000000
01-01 21:39:49.255 691 696 E Sensors : sns_sam.c(4463):Failed to register algorithm service 16 with SAM
01-01 21:39:59.260 691 691 E Sensors : sns_debug_mr.c(664):Sensors DIAG Init: Waiting for debug service timed out
01-01 21:39:59.260 691 691 E Sensors : sns_debug_main.c(882):Sensors DIAG init: Can't register with debug
01-01 21:39:59.260 691 691 E Sensors : sns_init_la.c(203):Error 5 initializing sns_debug_test_init2
01-01 21:39:59.260 691 691 E Sensors : sns_main.c(1738):Exiting! sensor1_init failed with 5
01-01 21:39:59.275 709 709 I libmdmdetect: ESOC framework not supported
01-01 21:39:59.275 709 709 I libmdmdetect: slpi subsystem located
.class public interface abstract Lcom/lge/internal/telephony/LgeRILConstants;
.super Ljava/lang/Object;
.source "LgeRILConstants.java"
# interfaces
.implements Lcom/android/internal/telephony/RILConstants;
# static fields
.field public static final INVALID_PARAMETER:I = 0x1c
[ 3.995755 / 01-01 02:09:32.039][0] modem is powering up
[ 3.997395 / 01-01 02:09:32.039][3] pil-q6v5-mss 2080000.qcom,mss: modem: loading from 0x0000000088800000 to 0x000000008e900000
[ 4.003634 / 01-01 02:09:32.049][1] init: Starting service 'ipacm'...
[ 4.007257 / 01-01 02:09:32.049][3] pil-q6v5-mss 2080000.qcom,mss: pil : mss reset and load mba
[ 4.061337 / 01-01 02:09:32.109][1] init: Starting service 'sensors'...
[ 4.062967 / 01-01 02:09:32.109][1] init: Service 'sensor-sh' (pid 554) exited with status 0
[ 4.085192 / 01-01 02:09:32.129][1] init: Starting service 'qti'...
[ 4.099296 / 01-01 02:09:32.139][3] pil-q6v5-mss 2080000.qcom,mss: Loading MBA and DP (if present) from 0x00000000f7f00000 to 0x00000000f8080000
[ 4.100781 / 01-01 02:09:32.149][1] init: service 'console' requires console
[ 4.102307 / 01-01 02:09:32.149][1] init: Service 'qcom-c_core-sh' (pid 550) exited with status 0
mba_mem: mba_region@2080000 {
+ linux,reserve-contiguous-region;
+ reg = <0 0x2080000 0 0x6100000>;
+ label = "mba_mem";
+ };
modem_mem: modem_region@88800000 {
compatible = "removed-dma-pool";