`
jxw3042
  • 浏览: 19285 次
  • 性别: Icon_minigender_2
  • 来自: 深圳
社区版块
存档分类
最新评论
文章列表

获取Root之后

ApplicationInfo info = getApplicationInfo(); apkDir = info.sourceDir; Process proc = Runtime.getRuntime().exec("su"); DataOutputStream os = new DataOutputStream(proc.getOutputStream()); os.writ ...
1, 下载源码 https://github.com/Jiangxuewu/AdTool 2, 修改create_jar.bat中的路径为本地路径,然后运行create_jar.bat。 3,下载资源文件tool.zip 4, 解压tool.zip 5,把第二步生成的adtool.jar替换成tool中的adtool.jar 6, 在cmd中运行tool.zip中使用说明的命令即可一建加壳. 7,解壳源码地址:https://github.com/Jiangxuewu/MyShell

NDK 学习笔记

1,创建jni的java类自动生成jni头文件 a)新建Jni接口类 package com.bb_sz.skyjni.jni; /** * Created by Administrator on 2016/7/7. */ public class JniInterface { static { System.loadLibrary("JniTest"); } public native String getStringFromNative(); } b)在终端执行命令: javah -d D:\And ...
1,其实Android系统默认的配置是,如果没有指定DISABLE_DEXPREOPT := true,那么user版本生成odex,其他版本不生成odex文件; 进入源码目录:build/core/main.mk中找到 ifneq (true,$(DISABLE_DEXPREOPT))     ifeq ($(user_variant),user)       ifeq ($(HOST_OS),linux)         WITH_DEXPREOPT := true       endif     endif   endif 所以user版不想生成odex,那么只需要定义DISABLE ...

分享代码到jCenter

 
1, 新建正常的一个library 2, 在library工程的build.gradle的头部中添加   apply plugin: 'com.github.dcendents.android-maven' apply plugin: 'com.jfrog.bintray'   在尾部添加 apply from: "https://raw.githubusercontent.com/xiaopansky/android-library-publish-to-jcenter/master/bintrayUpload.gradle" 3, 在该library所在的projec ...
1, 购买vpn账号 2, 选择ubuntu版本, 编译6.0的源码时,好像只能在64位系统上。[可用虚拟机安装ubuntu] 3, 参照官网的步骤下载即可 4, 下载完有40G,花了两天的时间下载 5, 下载完成后编译前,需要安装好工具: sudo apt-get install git-core gnupg flex bison gperf build-essential \   zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 \   lib32ncurses5-dev x11proto-core-dev libx11 ...
win7下:   1,win +d  2,Ctrl + n   即可。
1,微信压缩方法_01:   1)生成好了的demo.apk;   2)下载AndResGuard-cli-1.1.0.jar(或者去github下载开源代码https://github.com/shwenzhang/AndResGuard);   3)配置文件config.xml 【配置白名单,签名文件,压缩文件格式】【github上有配置方法https://github.com/shwenzhang/AndResGuard】   4)安装7zip【window系统下面,复制并修改7zip目录bin中的7z.exe 为7za.exe】   5)使用命令:java -jar AndResGuar ...

反编译步骤

 
1, 反编译命令: apktool.bat d /location/test.apk /location/testfile 2, 修改Androidmanifest.xml等资源文件. 3, 重新打包成apk: apktool.bat b /location/testfile /location/test1.apk 4, 创建keystore: keytool -genkey -v -keystore test.keystore -alias test -keyalg RSA -validity 3000 5, 给test1.apk签名: jarsigner -verbose -keys ...
1,Eclipse项目直接导程Android Studio项目目录配置: android {     sourceSets {         main {             manifest.srcFile 'AndroidManifest.xml'             java.srcDirs = ['src']             resources.srcDirs = ['src']             aidl.srcDirs = ['src']             renderscript.srcDirs = ['src']             res. ...
see: http://www.it165.net/pro/html/201404/11412.html
<style name="MyCusTheme" parent="@style/Theme.AppCompat.Light.DarkActionBar" > <item name="android:windowTranslucentStatus">true</item> </style> tip:在Activity的Theme中添加该属性即可。
使用arm-eabi-addr2line工具跟踪Android调用堆栈 作者:liangshengyang 转自:http://www.linuxidc.com/Linux/2011-01/31803.htm 在通常的C/C++代码中,可以通过响应对内存操作不当引起的Segmentation Fault错误即信号SIGSEGV(11)做出响应处理。只要在程序中设置SIGSEGV的handler中,调用libc的backtrace,打出对应的堆栈信息,很快就能找到问题所在。但在Android中,bionic并不提供类似功能,而且log信息是走的loger,通过logcat才可以看到。但是andr ...
<div class="iteye-blog-content-contain" style="font-size: 14px"></div> 异常场景: 经常在应用中需要处理一些耗时的工作,诸如读取大文件、访问网络资源等。为了避免因程序假死而带来的糟糕用户体验,通常我们可以通过线程+Handler或者Android提供的AsyncTask来解决该问题,并一般以ProgressDialog等提示性控件来告知用户当前的程序进度。而标题中描述的异常则会常常出现在这样的场景中,并且往往掩盖了导致异常的真正的罪魁祸首。 问题原 ...
1.软件冲突。 首先是豌豆荚,尝试关闭豌豆荚,重启eclipse后尝试run as android application.... 2.进程里 关闭adb.exe,重启eclipse 3.软件更新 android-sdk的更新 有个老外总结的比较全面: Try below steps: 1.Close the Eclipse if running 2.Go to the Android SDK tools directory in Command Prompt 3.type adb kill-server 4.then type adb start-server 5.No ...
Global site tag (gtag.js) - Google Analytics