热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

为Android的apk应用程序文件加壳以防止反编译的教程

这篇文章主要介绍了为Android的apk应用程序文件加壳以防止反编译的教程,同时对apk程序的解壳操作也有详细讲解,需要的朋友可以参考下

一、什么是加壳?
加壳是在二进制的程序中植入一段代码,在运行的时候优先取得程序的控制权,做一些额外的工作。大多数病毒就是基于此原理。

二、加壳作用
加壳的程序可以有效阻止对程序的反汇编分析,以达到它不可告人的目的。这种技术也常用来保护软件版权,防止被软件破解。

三、Android Dex文件加壳原理
PC平台现在已存在大量的标准的加壳和解壳工具,但是Android作为新兴平台还未出现APK加壳工具。Android Dex文件大量使用引用给加壳带来了一定的难度,但是从理论上讲,Android APK加壳也是可行的。
在这个过程中,牵扯到三个角色:
1、加壳程序:加密源程序为解壳数据、组装解壳程序和解壳数据
2、解壳程序:解密解壳数据,并运行时通过DexClassLoader动态加载
3、源程序:需要加壳处理的被保护代码
根据解壳数据在解壳程序DEX文件中的不同分布,本文将提出两种Android Dex加壳的实现方案。

解壳数据位于解壳程序文件尾部:该种方式简单实用,合并后的DEX文件结构如下。

2016428142304174.png (242×541)

四、加壳程序工作流程:
1、加密源程序APK文件为解壳数据
2、把解壳数据写入解壳程序Dex文件末尾,并在文件尾部添加解壳数据的大小。
3、修改解壳程序DEX头中checksum、signature 和file_size头信息。
4、修改源程序AndroidMainfest.xml文件并覆盖解壳程序AndroidMainfest.xml文件。

五、解壳DEX程序工作流程:
1、读取DEX文件末尾数据获取借壳数据长度。
2、从DEX文件读取解壳数据,解密解壳数据。以文件形式保存解密数据到a.APK文件
3、通过DexClassLoader动态加载a.apk。

解壳数据位于解壳程序文件头
该种方式相对比较复杂, 合并后DEX文件结构如下:

2016428142331268.png (241×526)

六、加壳程序工作流程:
1、加密源程序APK文件为解壳数据
2、计算解壳数据长度,并添加该长度到解壳DEX文件头末尾,并继续解壳数据到文件头末尾。
(插入数据的位置为0x70处)
3、修改解壳程序DEX头中checksum、signature、file_size、header_size、string_ids_off、type_ids_off、proto_ids_off、field_ids_off、
method_ids_off、class_defs_off和data_off相关项。  分析map_off 数据,修改相关的数据偏移量。 
4、修改源程序AndroidMainfest.xml文件并覆盖解壳程序AndroidMainfest.xml文件。

七、加壳程序流程及代码实现
1、加密源程序APK为解壳数据
2、把解壳数据写入解壳程序DEX文件末尾,并在文件尾部添加解壳数据的大小。
3、修改解壳程序DEX头中checksum、signature 和file_size头信息。

代码实现如下:

package com.android.dexshell; 
import java.io.ByteArrayOutputStream; 
import java.io.File; 
import java.io.FileInputStream; 
import java.io.FileOutputStream; 
import java.io.IOException; 
import java.security.MessageDigest; 
import java.security.NoSuchAlgorithmException; 
import java.util.zip.Adler32; 
 
public class DexShellTool { 
 /** 
  * @param args 
  */ 
 public static void main(String[] args) { 
  // TODO Auto-generated method stub 
  try { 
   File payloadSrcFile = new File("g:/payload.apk"); 
   File unShellDexFile = new File("g:/unshell.dex"); 
   byte[] payloadArray = encrpt(readFileBytes(payloadSrcFile)); 
   byte[] unShellDexArray = readFileBytes(unShellDexFile); 
   int payloadLen = payloadArray.length; 
   int unShellDexLen = unShellDexArray.length; 
   int totalLen = payloadLen + unShellDexLen +4; 
   byte[] newdex = new byte[totalLen]; 
   //添加解壳代码 
   System.arraycopy(unShellDexArray, 0, newdex, 0, unShellDexLen); 
   //添加加密后的解壳数据 
   System.arraycopy(payloadArray, 0, newdex, unShellDexLen, 
     payloadLen); 
   //添加解壳数据长度 
   System.arraycopy(intToByte(payloadLen), 0, newdex, totalLen-4, 4); 
      //修改DEX file size文件头 
   fixFileSizeHeader(newdex); 
   //修改DEX SHA1 文件头 
   fixSHA1Header(newdex); 
   //修改DEX CheckSum文件头 
   fixCheckSumHeader(newdex); 
 
 
   String str = "g:/classes.dex"; 
   File file = new File(str); 
   if (!file.exists()) { 
    file.createNewFile(); 
   } 
    
   FileOutputStream localFileOutputStream = new FileOutputStream(str); 
   localFileOutputStream.write(newdex); 
   localFileOutputStream.flush(); 
   localFileOutputStream.close(); 
 
 
  } catch (Exception e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } 
 } 
  
 //直接返回数据,读者可以添加自己加密方法 
 private static byte[] encrpt(byte[] srcdata){ 
  return srcdata; 
 } 
 
 
 private static void fixCheckSumHeader(byte[] dexBytes) { 
  Adler32 adler = new Adler32(); 
  adler.update(dexBytes, 12, dexBytes.length - 12); 
  long value = adler.getValue(); 
  int va = (int) value; 
  byte[] newcs = intToByte(va); 
  byte[] recs = new byte[4]; 
  for (int i = 0; i <4; i++) { 
   recs[i] = newcs[newcs.length - 1 - i]; 
   System.out.println(Integer.toHexString(newcs[i])); 
  } 
  System.arraycopy(recs, 0, dexBytes, 8, 4); 
  System.out.println(Long.toHexString(value)); 
  System.out.println(); 
 } 
 
 
 public static byte[] intToByte(int number) { 
  byte[] b = new byte[4]; 
  for (int i = 3; i >= 0; i--) { 
   b[i] = (byte) (number % 256); 
   number >>= 8; 
  } 
  return b; 
 } 
 
 
 private static void fixSHA1Header(byte[] dexBytes) 
   throws NoSuchAlgorithmException { 
  MessageDigest md = MessageDigest.getInstance("SHA-1"); 
  md.update(dexBytes, 32, dexBytes.length - 32); 
  byte[] newdt = md.digest(); 
  System.arraycopy(newdt, 0, dexBytes, 12, 20); 
  String hexstr = ""; 
  for (int i = 0; i 


八、解壳程序流程及代码实现
在解壳程序的开发过程中需要解决如下几个关键的技术问题:
1.解壳代码如何能够第一时间执行?
Android程序由不同的组件构成,系统在有需要的时候启动程序组件。因此解壳程序必须在Android系统启动组件之前运行,完成对解壳数据的解壳及APK文件的动态加载,否则会使程序出现加载类失败的异常。
Android开发者都知道Applicaiton做为整个应用的上下文,会被系统第一时间调用,这也是应用开发者程序代码的第一执行点。因此通过对AndroidMainfest.xml的application的配置可以实现解壳代码第一时间运行。



package com.android.dexunshell; 
 
import java.io.BufferedInputStream; 
import java.io.ByteArrayInputStream; 
import java.io.ByteArrayOutputStream; 
import java.io.DataInputStream; 
import java.io.File; 
import java.io.FileInputStream; 
import java.io.FileOutputStream; 
import java.io.IOException; 
import java.lang.ref.WeakReference; 
import java.util.ArrayList; 
import java.util.HashMap; 
import java.util.Iterator; 
import java.util.zip.ZipEntry; 
import java.util.zip.ZipInputStream; 
 
import dalvik.system.DexClassLoader; 
import android.app.Application; 
import android.content.pm.ApplicationInfo; 
import android.content.pm.PackageManager; 
import android.content.pm.PackageManager.NameNotFoundException; 
import android.os.Bundle; 
 
public class ProxyApplication extends Application { 
 
 private static final String appkey = "APPLICATION_CLASS_NAME"; 
 private String apkFileName; 
 private String odexPath; 
 private String libPath; 
 @Override 
 public void onCreate() { 
  // TODO Auto-generated method stub 
  super.onCreate(); 
  try { 
   File odex = this.getDir("payload_odex", MODE_PRIVATE); 
   File libs = this.getDir("payload_lib", MODE_PRIVATE); 
   odexPath = odex.getAbsolutePath(); 
   libPath = libs.getAbsolutePath(); 
   apkFileName = odex.getAbsolutePath()+"/payload.apk"; 
   File dexFile = new File(apkFileName); 
   if(!dexFile.exists()) 
    dexFile.createNewFile(); 
   //读取程序classes.dex文件 
   byte[] dexdata = this.readDexFileFromApk(); 
   //分离出解壳后的apk文件已用于动态加载 
   this.splitPayLoadFromDex(dexdata); 
   //配置动态加载环境 
   this.configApplicationEnv(); 
    
  } catch (Exception e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } 
 } 
  
 private void configApplicationEnv() throws NameNotFoundException, IllegalAccessException, InstantiationException, ClassNotFoundException, IOException{ 
 
  Object currentActivityThread = RefInvoke.invokeStaticMethod("android.app.ActivityThread", "currentActivityThread", new Class[]{}, new Object[]{}); 
  HashMap mPackages = (HashMap)RefInvoke.getFieldOjbect("android.app.ActivityThread", currentActivityThread, "mPackages"); 
  //替换组件类加载器为DexClassLoader,已使动态加载代码具有组件生命周期 
  WeakReference wr = (WeakReference) mPackages.get(this.getPackageName()); 
  DexClassLoader dLoader = new DexClassLoader(apkFileName, 
    odexPath, libPath, (ClassLoader) RefInvoke.getFieldOjbect("android.app.LoadedApk", wr.get(), "mClassLoader")); 
  RefInvoke.setFieldOjbect("android.app.LoadedApk", "mClassLoader", wr.get(), dLoader); 
 
  //如果源应用配置有Appliction对象,则替换为源应用Applicaiton,以便不影响源程序逻辑。 
  ApplicationInfo appInfo = this.getPackageManager().getApplicationInfo(this.getPackageName(),PackageManager.GET_META_DATA); 
  Bundle bundle = appInfo.metaData; 
  if(bundle != null && bundle.containsKey(appkey)){ 
    
   String appClassName = bundle.getString(appkey); 
   Application app = (Application)dLoader.loadClass(appClassName).newInstance(); 
   RefInvoke.setFieldOjbect("android.app.ContextImpl", "mOuterContext", this.getBaseContext(), app); 
   RefInvoke.setFieldOjbect("android.content.ContextWrapper", "mBase", app, this.getBaseContext()); 
   Object mBoundApplication = RefInvoke.getFieldOjbect("android.app.ActivityThread", currentActivityThread, "mBoundApplication"); 
   Object info = RefInvoke.getFieldOjbect("android.app.ActivityThread$AppBindData", mBoundApplication, "info"); 
   RefInvoke.setFieldOjbect("android.app.LoadedApk", "mApplication", info, app); 
   Object oldApplication = RefInvoke.getFieldOjbect("android.app.ActivityThread", currentActivityThread, "mInitialApplication"); 
   RefInvoke.setFieldOjbect("android.app.ActivityThread", "mInitialApplication", currentActivityThread, app); 
   ArrayList mAllApplicatiOns= (ArrayList)RefInvoke.getFieldOjbect("android.app.ActivityThread", currentActivityThread, "mAllApplications"); 
   mAllApplications.remove(oldApplication); 
   mAllApplications.add(app); 
   HashMap mProviderMap = (HashMap) RefInvoke.getFieldOjbect("android.app.ActivityThread", currentActivityThread, "mProviderMap"); 
   Iterator it = mProviderMap.values().iterator(); 
   while(it.hasNext()){ 
    Object providerClientRecord = it.next(); 
    Object localProvider = RefInvoke.getFieldOjbect("android.app.ProviderClientRecord", providerClientRecord, "mLocalProvider"); 
    RefInvoke.setFieldOjbect("android.content.ContentProvider", "mContext", localProvider, app); 
   } 
   RefInvoke.invokeMethod(appClassName, "onCreate", app, new Class[]{}, new Object[]{}); 
  } 
 } 
  
 private void splitPayLoadFromDex(byte[] data) throws IOException{ 
  byte[] apkdata = decrypt(data); 
  int ablen = apkdata.length; 
  byte[] dexlen = new byte[4]; 
  System.arraycopy(apkdata, ablen - 4, dexlen, 0, 4); 
  ByteArrayInputStream bais = new ByteArrayInputStream(dexlen); 
  DataInputStream in = new DataInputStream(bais); 
  int readInt = in.readInt(); 
  System.out.println(Integer.toHexString(readInt)); 
  byte[] newdex = new byte[readInt]; 
  System.arraycopy(apkdata, ablen - 4 - readInt, newdex, 0, readInt); 
  File file = new File(apkFileName); 
  try { 
   FileOutputStream localFileOutputStream = new FileOutputStream(file); 
   localFileOutputStream.write(newdex); 
   localFileOutputStream.close(); 
 
  } catch (IOException localIOException) { 
   throw new RuntimeException(localIOException); 
  } 
   
  ZipInputStream localZipInputStream = new ZipInputStream( 
    new BufferedInputStream(new FileInputStream(file))); 
  while (true) { 
   ZipEntry localZipEntry = localZipInputStream.getNextEntry(); 
   if (localZipEntry == null) { 
    localZipInputStream.close(); 
    break; 
   } 
   String name = localZipEntry.getName(); 
   if (name.startsWith("lib/") && name.endsWith(".so")) { 
    File storeFile = new File(libPath+"/"+name.substring(name.lastIndexOf('/'))); 
    storeFile.createNewFile(); 
    FileOutputStream fos = new FileOutputStream(storeFile); 
    byte[] arrayOfByte = new byte[1024]; 
    while (true) { 
     int i = localZipInputStream.read(arrayOfByte); 
     if (i == -1) 
      break; 
     fos.write(arrayOfByte, 0, i); 
    } 
    fos.flush(); 
    fos.close();  
   } 
   localZipInputStream.closeEntry(); 
  } 
  localZipInputStream.close();  
   
 } 
  
 private byte[] readDexFileFromApk() throws IOException { 
  ByteArrayOutputStream dexByteArrayOutputStream = new ByteArrayOutputStream(); 
  ZipInputStream localZipInputStream = new ZipInputStream( 
    new BufferedInputStream(new FileInputStream(this.getApplicationInfo().sourceDir))); 
  while (true) { 
   ZipEntry localZipEntry = localZipInputStream.getNextEntry(); 
   if (localZipEntry == null) { 
    localZipInputStream.close(); 
    break; 
   } 
   if (localZipEntry.getName().equals("classes.dex")) { 
    byte[] arrayOfByte = new byte[1024]; 
    while (true) { 
     int i = localZipInputStream.read(arrayOfByte); 
     if (i == -1) 
      break; 
     dexByteArrayOutputStream.write(arrayOfByte, 0, i); 
    } 
   } 
   localZipInputStream.closeEntry(); 
  } 
  localZipInputStream.close(); 
  return dexByteArrayOutputStream.toByteArray(); 
 } 
  
 ////直接返回数据,读者可以添加自己解密方法 
 private byte[] decrypt(byte[] data){ 
  return data; 
 } 
} 

RefInvoke为反射调用工具类:

package com.android.dexunshell; 
 
import java.lang.reflect.Field; 
import java.lang.reflect.InvocationTargetException; 
import java.lang.reflect.Method; 
 
public class RefInvoke { 
  
 public static Object invokeStaticMethod(String class_name, String method_name, Class[] pareTyple, Object[] pareVaules){ 
   
  try { 
   Class obj_class = Class.forName(class_name); 
   Method method = obj_class.getMethod(method_name,pareTyple); 
   return method.invoke(null, pareVaules); 
  } catch (SecurityException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } catch (IllegalArgumentException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } catch (IllegalAccessException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } catch (NoSuchMethodException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } catch (InvocationTargetException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } catch (ClassNotFoundException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } 
  return null; 
   
 } 
  
 public static Object invokeMethod(String class_name, String method_name, Object obj ,Class[] pareTyple, Object[] pareVaules){ 
   
  try { 
   Class obj_class = Class.forName(class_name); 
   Method method = obj_class.getMethod(method_name,pareTyple); 
   return method.invoke(obj, pareVaules); 
  } catch (SecurityException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } catch (IllegalArgumentException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } catch (IllegalAccessException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } catch (NoSuchMethodException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } catch (InvocationTargetException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } catch (ClassNotFoundException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } 
  return null; 
   
 } 
  
 public static Object getFieldOjbect(String class_name,Object obj, String filedName){ 
  try { 
   Class obj_class = Class.forName(class_name); 
   Field field = obj_class.getDeclaredField(filedName); 
   field.setAccessible(true); 
   return field.get(obj); 
  } catch (SecurityException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } catch (NoSuchFieldException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } catch (IllegalArgumentException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } catch (IllegalAccessException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } catch (ClassNotFoundException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } 
  return null; 
   
 } 
  
 public static Object getStaticFieldOjbect(String class_name, String filedName){ 
   
  try { 
   Class obj_class = Class.forName(class_name); 
   Field field = obj_class.getDeclaredField(filedName); 
   field.setAccessible(true); 
   return field.get(null); 
  } catch (SecurityException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } catch (NoSuchFieldException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } catch (IllegalArgumentException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } catch (IllegalAccessException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } catch (ClassNotFoundException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } 
  return null; 
   
 } 
  
 public static void setFieldOjbect(String classname, String filedName, Object obj, Object filedVaule){ 
  try { 
   Class obj_class = Class.forName(classname); 
   Field field = obj_class.getDeclaredField(filedName); 
   field.setAccessible(true); 
   field.set(obj, filedVaule); 
  } catch (SecurityException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } catch (NoSuchFieldException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } catch (IllegalArgumentException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } catch (IllegalAccessException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } catch (ClassNotFoundException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  }  
 } 
  
 public static void setStaticOjbect(String class_name, String filedName, Object filedVaule){ 
  try { 
   Class obj_class = Class.forName(class_name); 
   Field field = obj_class.getDeclaredField(filedName); 
   field.setAccessible(true); 
   field.set(null, filedVaule); 
  } catch (SecurityException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } catch (NoSuchFieldException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } catch (IllegalArgumentException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } catch (IllegalAccessException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } catch (ClassNotFoundException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  }   
 } 
 
} 


九、总结
本文代码基本实现了APK文件的加壳及脱壳原理,该代码作为实验代码还有诸多地方需要改进。比如:
1、加壳数据的加密算法的添加。
2、脱壳代码由java语言实现,可通过C代码的实现对脱壳逻辑进行保护,以达到更好的反逆向分析效果。


推荐阅读
  • 学习SLAM的女生,很酷
    本文介绍了学习SLAM的女生的故事,她们选择SLAM作为研究方向,面临各种学习挑战,但坚持不懈,最终获得成功。文章鼓励未来想走科研道路的女生勇敢追求自己的梦想,同时提到了一位正在英国攻读硕士学位的女生与SLAM结缘的经历。 ... [详细]
  • 生成式对抗网络模型综述摘要生成式对抗网络模型(GAN)是基于深度学习的一种强大的生成模型,可以应用于计算机视觉、自然语言处理、半监督学习等重要领域。生成式对抗网络 ... [详细]
  • 在Android开发中,使用Picasso库可以实现对网络图片的等比例缩放。本文介绍了使用Picasso库进行图片缩放的方法,并提供了具体的代码实现。通过获取图片的宽高,计算目标宽度和高度,并创建新图实现等比例缩放。 ... [详细]
  • 云原生边缘计算之KubeEdge简介及功能特点
    本文介绍了云原生边缘计算中的KubeEdge系统,该系统是一个开源系统,用于将容器化应用程序编排功能扩展到Edge的主机。它基于Kubernetes构建,并为网络应用程序提供基础架构支持。同时,KubeEdge具有离线模式、基于Kubernetes的节点、群集、应用程序和设备管理、资源优化等特点。此外,KubeEdge还支持跨平台工作,在私有、公共和混合云中都可以运行。同时,KubeEdge还提供数据管理和数据分析管道引擎的支持。最后,本文还介绍了KubeEdge系统生成证书的方法。 ... [详细]
  • Android中高级面试必知必会,积累总结
    本文介绍了Android中高级面试的必知必会内容,并总结了相关经验。文章指出,如今的Android市场对开发人员的要求更高,需要更专业的人才。同时,文章还给出了针对Android岗位的职责和要求,并提供了简历突出的建议。 ... [详细]
  • CSS3选择器的使用方法详解,提高Web开发效率和精准度
    本文详细介绍了CSS3新增的选择器方法,包括属性选择器的使用。通过CSS3选择器,可以提高Web开发的效率和精准度,使得查找元素更加方便和快捷。同时,本文还对属性选择器的各种用法进行了详细解释,并给出了相应的代码示例。通过学习本文,读者可以更好地掌握CSS3选择器的使用方法,提升自己的Web开发能力。 ... [详细]
  • 本文介绍了Java工具类库Hutool,该工具包封装了对文件、流、加密解密、转码、正则、线程、XML等JDK方法的封装,并提供了各种Util工具类。同时,还介绍了Hutool的组件,包括动态代理、布隆过滤、缓存、定时任务等功能。该工具包可以简化Java代码,提高开发效率。 ... [详细]
  • android listview OnItemClickListener失效原因
    最近在做listview时发现OnItemClickListener失效的问题,经过查找发现是因为button的原因。不仅listitem中存在button会影响OnItemClickListener事件的失效,还会导致单击后listview每个item的背景改变,使得item中的所有有关焦点的事件都失效。本文给出了一个范例来说明这种情况,并提供了解决方法。 ... [详细]
  • 生成对抗式网络GAN及其衍生CGAN、DCGAN、WGAN、LSGAN、BEGAN介绍
    一、GAN原理介绍学习GAN的第一篇论文当然由是IanGoodfellow于2014年发表的GenerativeAdversarialNetworks(论文下载链接arxiv:[h ... [详细]
  • [译]技术公司十年经验的职场生涯回顾
    本文是一位在技术公司工作十年的职场人士对自己职业生涯的总结回顾。她的职业规划与众不同,令人深思又有趣。其中涉及到的内容有机器学习、创新创业以及引用了女性主义者在TED演讲中的部分讲义。文章表达了对职业生涯的愿望和希望,认为人类有能力不断改善自己。 ... [详细]
  • ZSI.generate.Wsdl2PythonError: unsupported local simpleType restriction ... [详细]
  • 解决Cydia数据库错误:could not open file /var/lib/dpkg/status 的方法
    本文介绍了解决iOS系统中Cydia数据库错误的方法。通过使用苹果电脑上的Impactor工具和NewTerm软件,以及ifunbox工具和终端命令,可以解决该问题。具体步骤包括下载所需工具、连接手机到电脑、安装NewTerm、下载ifunbox并注册Dropbox账号、下载并解压lib.zip文件、将lib文件夹拖入Books文件夹中,并将lib文件夹拷贝到/var/目录下。以上方法适用于已经越狱且出现Cydia数据库错误的iPhone手机。 ... [详细]
  • sklearn数据集库中的常用数据集类型介绍
    本文介绍了sklearn数据集库中常用的数据集类型,包括玩具数据集和样本生成器。其中详细介绍了波士顿房价数据集,包含了波士顿506处房屋的13种不同特征以及房屋价格,适用于回归任务。 ... [详细]
  • 拥抱Android Design Support Library新变化(导航视图、悬浮ActionBar)
    转载请注明明桑AndroidAndroid5.0Loollipop作为Android最重要的版本之一,为我们带来了全新的界面风格和设计语言。看起来很受欢迎࿰ ... [详细]
  • 动态规划算法的基本步骤及最长递增子序列问题详解
    本文详细介绍了动态规划算法的基本步骤,包括划分阶段、选择状态、决策和状态转移方程,并以最长递增子序列问题为例进行了详细解析。动态规划算法的有效性依赖于问题本身所具有的最优子结构性质和子问题重叠性质。通过将子问题的解保存在一个表中,在以后尽可能多地利用这些子问题的解,从而提高算法的效率。 ... [详细]
author-avatar
乐橙味_367
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有