Skip to content

Instantly share code, notes, and snippets.

@imnuts
imnuts / apns-conf.xml
Created December 17, 2012 16:52
A listing of APNs to be used as the apns-conf.xml file in Android. Hoping to make as complete and accurate of a list as possible.
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2006, Google Inc.
**
** 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
@imnuts
imnuts / set_perms.sh
Last active October 13, 2015 18:18
Script to set permissions on /system for the VZW Galaxy Note 2. Useful when building ROMs that are to be packaged into a system.img.
#!/bin/bash
chown -R 0:0 system/*
find system/ -type f -print0 | xargs -0 chmod 0644
find system/ -type d -print0 | xargs -0 chmod 0755
chown 0:0 system/build.prop
chmod 0644 system/build.prop
chown -R 0:2000 system/bin/*
find system/bin/ -type f -print0 | xargs -0 chmod 0755
@imnuts
imnuts / package-gapps.sh
Created October 19, 2012 15:37
Script to build a flashable Google Apps package
#!/bin/bash
#
# Script to build a Google Apps package
#
DATE=$(date +%Y%m%d)
# Remove any old packages
if [ -f *.zip ]; then
echo "Removing old zips"
@imnuts
imnuts / linaro.sh
Created October 18, 2012 04:12
Script that will go through and cherry-pick commits to enable building with strict-aliasing and -O3 ala Linaro
#!/bin/bash
#
# Script to go through and merge in Linaro fixes after a repo sync
#
# Where are we?
WORKING_DIR=`pwd`
# We move into each project, cherry-pick Linaro commits
# and go to the next project
@imnuts
imnuts / local_manifest.xml
Created September 18, 2012 17:45
Local Manifest to build ButterNutz
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote fetch="git://github.com" name="github" />
<remove-project name="platform/build" />
<project path="build" name="imnuts/platform_build" remote="github" revision="jellybean">
<copyfile src="core/root.mk" dest="Makefile" />
</project>
<remove-project name="device/samsung/tuna" />
@imnuts
imnuts / align.bat
Created September 12, 2011 01:20
Batch file for Windows to zip align files in a directory and sub-directories
@echo off
REM Batch file to recursively zip align *.apk files in a directory
REM and its sub-directories. This is significantly easier and faster
REM than manually zip aligning them.
@echo Zip aligning now...
for /R %%X in (*.apk) do zipalign 4 "%%X" "%%~dpX%%~nX.new"
@echo Replacing non-aligned files with zip aligned files...
for /R %%X in (*.new) do move /Y "%%X" "%%~dpX%%~nX.apk"
@echo Zip aligning done, press any key to exit
pause
@imnuts
imnuts / gps.conf
Created August 6, 2011 05:00
GPS Config File from Darky, edited by bobloblaw1
NTP_SERVER=us.pool.ntp.org
NTP_SERVER=0.us.pool.ntp.org
NTP_SERVER=1.us.pool.ntp.org
NTP_SERVER=2.us.pool.ntp.org
NTP_SERVER=3.us.pool.ntp.org
NTP_SERVER=north-america.pool.ntp.org
NTP_SERVER=0.north-america.pool.ntp.org
NTP_SERVER=1.north-america.pool.ntp.org
NTP_SERVER=2.north-america.pool.ntp.org
NTP_SERVER=3.north-america.pool.ntp.org