There is a need for the project to be done today. To confuse our apk.Then spent an afternoon studying, and Python wrote a one-click generated script.Principle:My development environment is that ADT Bundle is an integrated development environment for the Android SDK with Proguard.You only need to export the code when you open the comment in project.properties.Then choose Export exported apk will be automatic
Android Security Special-Apk reinforcement Analysis
0x00
I am not going to be ugly about the principle part. The above three articles are very clear. I am going to discuss how to implement the reinforcement process from 0, and I have stepped on a lot of pitfalls.0x01
The first step is to create the reinforced Apk,
APK software Anti-compilation go adsSpecific steps:1. Download apktool :https://code.google.com/p/android-apktool/downloads/list2. Decompile the APK with Apktool. On the command line, enter the following command: Apktool.bat d-f aaa.apk (apk Path) anti-compilation apk file3
Android Source Code contains the APK file containing the so file, androidapk
Method 1:
1 include $(CLEAR_VARS) 2 # Module name should match apk name to be installed 3 LOCAL_MODULE := Test 4 LOCAL_MODULE_TAGS := optional 5 LOCAL_SRC_FILES := $(LOCAL_MODULE).apk 6 LOCAL_MODULE_CLASS := APPS 7 LOCAL_MODULE_SUFFIX := $(
Virtual Machine AVD Manager is started or the device connected to the mobile phone debugging device solves the two problems above, the apk installation package is finally generated.Next, install the generated apk and run it on the android virtual machine. The following error occurs during Installation: android Install
Determine if the APK is signedWith command: jarsigner-verify-verbose-certs If there is an Android debug word is debugIf signed: [Certificate is valid for 13-8-31 2:31 to 41-1-16 2:31]Determine if the APK signature is consistentJDK needs to be installed; to check the fingerprint of the signature used by demo.apk, you c
1. Restart the mobile phone with 0 permissions:Now let's define a class that implements this function:
/*** Click Event * @ Param view */Public void reboot (view) {intent reboot = new intent (intent. action_reboot); reboot. putextra ("Nowait", 1); reboot. putextra ("interval", 1); reboot. putextra ("window", 0); sendbroadcast (reboot );}
The program is terminated abnormally. logcat controls the output and
the user name and serial number input box, "lisence correct!" is displayed !". For example:
2. Reverse conversion-Write the registration server
Reading the smali code of the F1 and F2 functions does not repeat any more. This only requires patience, because the decompiled smali code has many jumps and is relatively difficult to read, however, it is easier to understand than assembly. The following lists the Java code of the two F1 and F2 functions used by this
Why do you want to do something that looks unreliable?Because just learned Android development, not very good control of the Android interface editing and operation, so I want to use a rush to the HTML5 version, anyway, this application is also needed from the server to obtain a large amount of data to display on the phone, that is to say: Must be networked to work properly , so think about it, anyway, to g
package name can be obtained through the Getpackagename () method of the activity or context (activity inherits from the context), and the addition can have many settings, typically set to 0.Finally, the Packagemanager object is fetched, and the context object provides the Getpackagemanager () method to get the object.In summary, the template code is as follows: (Note that the method encapsulated here is in an activity, so use this instead of the con
Android Project Practice (40): Andoird 7.0 + installation APK adaptation, andoirdapk
First, let's take a look at the code for installing the apk file.
/*** Use implicit Intent to call the system installer to install APK */public static void install (Context context) {intent Intent = new Intent (Intent. ACTION_VIEW);
1. First, add android: sharedUserId = "shared id" to 2. Create a Context based on the package name. The createPackageContext method provided in the Activity can be created based on the package name.3. Obtain the shared Apk resource.Note:1. The difference between findViewById () in Activity and findViewById () in View is as follows:The Layout of the Activity after setContextView () can be obtained by findVie
Obtain the android APK package signature information and post it on 133
No comments for the Development Workshop
1. Use the command to obtain the signature information of the android APK package
Jarsigner-verify-verbose-Certs
You can use the following command to obtain the fingerprint information of a keystore:
D
properties on the intent.For each version of Android, install the APK using the code First step:Add Application> Additional Configuration Items - providerAndroid:name= "Android.support.v4.content.FileProvider"android:authorities= "Your package name. Fileprovider"android:exported= "false"android:granturipermissions= "true"> Meta-dataAndroid:name= "Android.support.FILE_PROVIDER_P
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.