Giter VIP home page Giter VIP logo

apkrename's Introduction

This project contains 4 utilities:
--  name -----------------------------  ------depending utilities------------------
    apkRename.sh                        java, jar
    apkRenameAndInstall.sh              java, jar, zip, jarsigner, adb
    setAxmlPkgName.jar   (in lib/)      java
    apkSign.sh                          zip, jarsigner

----------------------------------------------------------------------------------
apkRename.sh

Usage: apkRename.sh [OPTIONS] apkPath_or_packageName newPackageName
  This utility changes APK's package name (not java package name) and
  prepend java package name to partial class name in AndroidManifest.xml:
    Application,Activity,Receiver,Service...
    backupAgent,manageSpaceActivity,targetActivity...
    meta value(only if start with dot)

Note:
 If apkPath_or_packageName ends with .apk then means a apk file to be changed,
   otherwise means a packageName and will pull file from device to:
   ./tmpForApkRename/app.apk then change it

 If newPackageFullName ends with ! then it will remove conflict settings:
   <original-package>,<provider>,android:protectionLevel,process,sharedUserId

 For system app, it will pull app's odex file and convert to dex, add to apk.

 The result APK file is not signed, to install it please use apkSign.sh.

Options:
  -H <host>              - Name of adb server host (default: localhost)
  -P <port>              - Port of adb server (default: 5037)
  -s <devSerialNumber>   - Device Serial Number or qualifier

Examples:
 apkRename.sh /tmp/test.apk       com.exampe.newapp
 apkRename.sh com.example.app     com.exampe.newapp
 apkRename.sh com.android.browser com.exampe.newapp!
 apkRename.sh -s HTC123123 com.android.browser com.exampe.newapp!

--------------------------------------------------------------------------------------------
apkRenameAndInstall

Usage: apkRenameAndInstall.sh [OPTIONS] packageName newPackageName debugKeyStoreFile
  This script get app from all connected android device and change app name
  then install a new one to devices.
  When -s option is specified, only the specified device will be applied.

Options:
  -H <host>              - Name of adb server host (default: localhost)
  -P <port>              - Port of adb server (default: 5037)
  -s <devSerialNumber>   - Device Serial Number or qualifier
  --update               - Update app

Examples:
   apkRenameAndInstall.sh com.android.browser com.android.mybrowser ~/.android/debug.keystore
   apkRenameAndInstall.sh -s HTC12334 com.android.browser com.android.mybrowser ~/.android/debug.keystore

--------------------------------------------------------------------------------------------
setAxmlPkgName.jar

please see lib/.... README.txt

apkrename's People

Contributors

jjqq2013 avatar wanghaidong avatar

Watchers

Leo Pasquini avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.