随笔分类 - Android
摘要:手机连接wifi后显示叹号:网络受限, 参考地址 , 开启飞行模式下,执行以下命令。 adb shell settings delete global captive_portal_https_url adb shell settings delete global captive_portal_h
阅读全文
摘要:d2j-dex2jar.bat 把.apk文件拖到d2j-dex2jar.bat上,则会把该apk文件中的dex转换为一个.jar包,然后就可以用jd-gui之类的工具查看源代码了 apktool 用apktool解包 , 解包后可以对java字节码代码进行修改,修改跳转流程、返回值、临时变量的的值
阅读全文
摘要:解决方案: 根据构建报错信息 "31.0.0版本的构建工具缺少了DX文件" 发现,31.0.0版本的构建工具缺少了"dx.bat"和"dx.jar"这两文件,正确的做法就是复制对应路径的"d8.bat"和"d8.jar"这两文件创建副本,并分别改名为"dx.bat"和"dx.jar"【该方法同样适用
阅读全文
摘要:问题:Android studio使用时,报错出现提示乱码问题,无法查看具体报错问题,如图 解决方法: 可点击studio状态栏的 Help —> Edit Custom VM Options ,操作如下图 在文件后面添加 -Dfile.encoding=UTF-8 (要注意不能有空格,否则stud
阅读全文
摘要:以前做安卓开发的时候是用Ecliplse+Android sdk,每次sdk版本更新的时候都是要去网路上搜索并下载对应的sdk版本(有时候某些站点还不能直接访问,只能另外寻找国内的镜像站点);Android Studio出现后把安装和更新sdk版本的过程集成到IDE里,省去网络搜索下载的麻烦,确实方
阅读全文
摘要:您上传的 APK 或 Android App Bundle 内含活动、活动别名、服务或广播接收器,这些项目有 intent 过滤器,但没有“android:exported”属性设置。此文件无法在 Android 12 或更高版本上安装。详情请参阅:developer.android.com/abo
阅读全文
摘要:添加系统环境变量ANDROID_HOME指向android sdk目录 ANDROID_HOME=<android sdk folder path> 然后在系统环境变量PATH后再添加如下两个路径(win10上这两个路径是单独分开的): %ANDROID_SDK_HOME%\platform-too
阅读全文
摘要:新建系统环境变量 JAVA_HOME JAVA_HOME = jdk安装目录路径 修改系统环境变量 Path 在后面添加: ;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin; 新建系统环境变量 CLASSPATH CLASSPATH = .;%JAVA_HOME%\lib\d
阅读全文
摘要:解决方法: 在系统中增加环境变量:JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8
阅读全文
摘要:列出已经连接到电脑的设备,如果设备状态unauthorized,需要在设备上点击同意USB调试,允许电脑访问本设备。 $ adb devices List of devices attached 0123456789ABCDEF device 通过adb shell查找apk文件位置,替换 package name为包名或者application id。 adb shell pm path...
阅读全文
摘要:此文的源码测试过,除了下面这个问题之外,基本没有什么大问题: package com.android.dexunshell; import java.io.IOException; import java.net.URL; import java.util.Enumeration; import com.eebbk.mingming.k7utils.ReflectUtils; import ...
阅读全文
摘要:获取Activity中配置文件中的按钮,以及设置按钮的单击事件: public class TestButtonActivity extends Activity { Button btn1, btn2; Toast tst; @Override protected void onCreate(Bundle savedInstanceState) { super.onC...
阅读全文
摘要:从Activity打开某个网页地址: String url = "http://www.stackoverflow.com"; Intent i = new Intent(Intent.ACTION_VIEW); i.setData(Uri.parse(url)); startActivity(i);
阅读全文
摘要:Author: http://www.cnblogs.com/open-coder/p/3763170.html With some external tools, we could crack a Java program without any difficult. For some big Java program that obfuscates it’s byte code, we co...
阅读全文
摘要:I search the Android NDK document and Internet a bit, and could not find anything useful to help me play sound with C++ under the Android NDK. Most of topics are about how to play sound with Java, so ...
阅读全文
摘要:One possible solution would be using tool named dex2jar. With this tool, you could extract the classes.dex file from the .APK file, and convert classes.dex into a bunch of java byte code files. Then f...
阅读全文
摘要:There is no glu libraries for android ndk, so I need re-implement one for it. After some time research, I grab some ideas and re-implement glPerspective and gluLookAt function. Both of them works pret...
阅读全文
摘要:Previously, for those assets like model, textures I will use ‘adb push’ command to upload them into a separate folder /data, and load them in native code. It is not good way, because I need to keep th...
阅读全文
摘要:The Advantage of Compress texture Note, the texture compress method here means some formats that also be supported by our display card. So compress texture will take less storage, less band...
阅读全文
摘要:1. fatal error: <GLES/gl.h>: No such file or directory. File “GLES/gl.h”located under the android ndk platform directory, but you will notice that there are several versions exists. What you need to ...
阅读全文