Skip to content

Instantly share code, notes, and snippets.

@recter
Created December 20, 2013 08:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save recter/8051738 to your computer and use it in GitHub Desktop.
Save recter/8051738 to your computer and use it in GitHub Desktop.
往APK根目录加文件例子

往APK根目录加文件例子

在接android平台SDK中避免不了遇到很多地方需要给APK根目录增加文件,例如联想SDK. 联想SDK需要往apk根目录加bin文件夹。我们就用联想做个例子:

  • 使用jar工具操作

1.解压APK:jar -xf lenovo.apk;

2.删除签名文件:rd /s /q META-INF;

3.删除APK:del lenovo.apk;

4.放入bin文件夹到当前目录;

5.生成APK文件:jar -cf v_new.apk .,注意末尾的.是需要的;

然后签名,签名APK请参照APKtool使用例子的后几句。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment