Skip to content

Instantly share code, notes, and snippets.

@SeeFlowerX
SeeFlowerX / dx_jar2dex.bat
Last active June 13, 2022 15:45
将此bat放入Android Sdk的build-tools/{版本号}文件夹下 然后把jar拖到bat上即可转换到dex,原dx.bat逻辑和命令有问题,改了下方便转换,记得修改JAVA_HOME。
@echo off
setlocal
set prog=%~f0
set JAVA_HOME=C:\Users\see\Documents\android-studio\jre
set java_exe=%JAVA_HOME%\bin\java.exe
set jarfile=dx.jar
@chinawiz
chinawiz / debug_redbook
Created January 19, 2021 12:36
安卓版小红书调试记录
# 小红书记录
## 第一次 打开
### post fp-it.fengkongcloud.com/v3/cloudconf
request:
{
"data": {
"smid": "2020052707241168070c1d7a7f71343dcde192a7d2c5db00a1935d016596c9",
title description date categories slug
QQ协议分析
QQ协议分析
2014-04-16
protocol
qq-protocol

一. 文字聊天协议族(TCPF, Text Chatting Protocol Family)

@granoeste
granoeste / _main.java
Created May 2, 2012 05:48
[Android] Get the color from the theme.
// ---------------------------------------------------
// Get the color and more attributes from the theme.
// ---------------------------------------------------
TypedArray ta = context.getTheme().obtainStyledAttributes(R.styleable.ViewStyle);
int labelColor = ta.getColor(R.styleable.ViewStyle_labelColor, defValue);
int dividerColor = ta.getColor(R.styleable.ViewStyle_dividerColor, defValue);
float textSize = ta.getDimension(R.styleable.ViewStyle_textSize, defValue);
@zeuxisoo
zeuxisoo / AppInfo.java
Created April 16, 2011 15:45
AppInfo some codes
package com.zeuxislo.appsinfo;
import java.io.File;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.sql.Date;
import java.text.SimpleDateFormat;
import android.app.Activity;
import android.content.pm.IPackageStatsObserver;