[转]eclipse快速加入android全部源码
0.先make整个android源码
1.新建Java Project(不是Android project,否则会破坏android源码)
2.打开刚才新建的工程目录,复制.project文件到andorid源代码目录下(比如android2.33目录下)
0.先make整个android源码
1.新建Java Project(不是Android project,否则会破坏android源码)
2.打开刚才新建的工程目录,复制.project文件到andorid源代码目录下(比如android2.33目录下)
原文地址:http://www.itfarmer.com.cn/goodtext/1522.html
第1条:创业者,人生之大事也,不可轻启。创业是带着一群未知的人去一个未知的地方干一件未知的事儿,九死一生,如果没有做好破釜沉舟的决心,最好不要启程。
【51CTO 6月23日外电头条】早在2009年,Oracle公司就斥资74亿美元收购了在Unix服务器硬件领域光彩夺目的制造企业Sun Microsystems 。许多人当时都在猜测谷歌是否也是此次竞购的买家之一。谷歌的资金储备无疑是雄厚的,不过真正的问题在于收购的理由:许多分析人士都认为Sun公司的黄金时期已成往事,谷歌并没有充分的理由将其招至麾下。
Android Debug Bridge version 1.0.29
-d – directs command to the only connected USB device
returns an error if more than one USB device is present.
-e – directs command to the only running emulator.
returns an error if more than one emulator is running.
-s – directs command to the USB device or emulator with
the given serial number. Overrides ANDROID_SERIAL environment variable.
-p – simple product name like ‘sooner’, or a relative/absolute path to a product
1. 下载 http://smali.googlecode.com/ 里的smali.jar和baksmali.jar两个包
2 . 通过odex生成class文件
|
|
执行完上面这行命令后,会生成一个out 文件夹里面是xxx.odex的class文件。出现问题,根据提示可以从rom的 /system/framework 目录下面找,然后放在odex的同一目录,注意的时当前CMD的路径要在当前目录
之前有一篇文章介绍了用thread的join()方法来实现,但是我在实际应用过程中发现了一个问题,就是当任务占用时间过长时,会导致service的超时,太杯具了,研究了下,发现也许有更好的方法,还没来得及测试,先记录。
[ What is it? ] AntiLVL's purpose is to subvert standard license protection methods such as the Android License Verification Library (LVL), Amazon Appstore DRM and Verizon DRM. It also disables many anti-cracking and anti-tampering protection methods. Because every implementation of the LVL is potentially (and often is) quite different, it's not possible to automate patching in every case. It will not always work. However, it has been designed to get around obfuscation and to apply many variations. Under the hood, AntiLVL is a configurable Smali code patcher with rules defined in user-modifiable XML files stored inside the jar called fingerprints. Brief summary of how it works: * Decompiles the Apk * Perform regular expression matching * Carrie out defined modifications * Recompile, update classes.dex * Resign and zipalign
[这是神马?] 英文不好,意思大概就是这个东西可以用来绕过android的签名验证,可以给smail代码打补丁,重新修改xml文件里面的规则等等。
编译源码out下面(/mydroid/out/target/product/generic/symbols /system/bin)的dexopt-wrapper拷到手机
myeclipse中选择工程名,然后点击open in explorer可以打开工程文件夹,eclipse也可以实现
插件地址:http://blog.samsonis.me/2009/02/open-explorer-plugin-for-eclipse/
Ctrl+1 快速修复(最经典的快捷键,就不用多说了)
Ctrl+D: 删除当前行
Ctrl+Alt+↓ 复制当前行到下一行(复制增加)
Ctrl+Alt+↑ 复制当前行到上一行(复制增加)