GUIDE FOR NOOBS / BEGINNERS/ THEMERS/ DEVELOPERS :
BATCH SIGN AND ZIPALIGN YOUR APPS/THEMES
This guide will show you an easy way to batch sign your apks and zipalign it for uploading to Google Play store.
Requisites
Windows OS ;
Your Signature .Keystore file
Java SDK installed
Zipalign tool (Found in tools directory of Android SDK) or download from attachment.
Method
1. Create a BAT file
a. Open Notepad and paste the following
---------------------------------------------------------------------------
Code:
@echo off
"[U]C:\Program Files\Java\jdk1.7.0_45\bin\jarsigner[/U]" -verbose -sigalg MD5withRSA -storepass [U]yourpassword[/U] -digestalg SHA1 -keystore [U]yoursigfile.keystore appname.apk aliasname[/U]
"[U]Your zipalign path\[/U]zipalign" -v 4 "[U]folderpath\Signedapk.apk[/U]"[U]Output folder\Zipalignedapk.apk[/U]"
echo Thanks for your time
pause
------------------------------------------------------------------------------
b. Correct the path of zipalign.exe and apk files as required.
c. Save the file in .bat format
2. Create a folder anywhere in your computer
3. Copy your .keystore file and the bat file created into this folder
4. Now Copy the apk files into the same folder.,
5. Now just run the bat file to have your signed and zipaligned APKs
For more easiness : Complete package download (find Signalign.zip in attachments)
1. Extract to C:\
2. Copy your unsigned apk files into signalign folder
3. Open the "Sign and zipalign.bat" file in notepad
4. Edit appname ; keystore filename ; keystore password ; alias name
You can add any number apks in the bat file.
5. Run the bat file
6. You have your zipaligned apps ready
reserved
Related
Hi
Will this work on vibrant
Original link http://forum.xda-developers.com/showthread.php?t=917684
You require:
1.)Rooted phone.
2.)anroid sdk
1.)First pull the nvram.txt file from /etc/wl to sdcard:
in cmd(windows) goto android-sdk-windows\tools and type
adb shell
2.)Copy nvram.txt from /etc/wl to sdcard
cp /etc/wl/nvram.txt /sdcard/nvram.txt
3.) Using text editor in phone add following line at the end:
macaddr=XX:XX:XX:XX:XX:XX (replace XX:XX:.... with desired mac addr.)
4.)Save file and copy it to /etc/wl from adb shell
cp /sdcard/nvram.txt /etc/wl/nvram.txt
5.)Reboot and it is done.
To restore orignal mac address just delete the macaddr line.
Note:
1.) Tested only in stock LG rome with GNM OC kernel. In other roms or kernel the location of nvram.txt may differ according to the parameter using which driver module (wireless.ko or bcm4325.ko) just find that file and use the above process. It will work.
2.) The file cannot be edited in windows as windows has different new line character than linux. It has to be edited in some linux compactible file editor like Programmers Notepad
Sign, Zip align and ADB push Apk's
What's different about this script?
*It's simple, easy to understand
*It can be used with any JDK. All that is required is replacing the PATH
This was intended to be used on HTC Skins; however, it can be used for any APK.
About
I wrote this batch file because the tools currently on XDA seem very complex or are based on JDK 7. People like myself that prefer to use JDK 6 are at a loss. This batch file assumes you already know how to sign APK's, Zipalign and ADB push Apk's. I've included some of my other threads below if you need further instructions.
Other threads a noob might need
Noobs guide to signing an APK
Noobs guide to installing and running zipalign
****All that is required to make this run, is replacing the directory paths with YOUR OWN Directory paths.
Source Code below, below that is the Multi to the .bat file.
Code:
@ECHO OFF
C:
CD\
CLS
cd c:\Program Files\Java\jdk1.6.0_26\bin (This can be replaced with whatever JDK you're using. Simply, replace the path)
jarsigner -verbose -keystore skin.keystore -signedjar C:\Users\Reynolds\ANDROID\SKINS\Rezound\Pitch_Black\dist\New-Pitchblack.apk C:\Users\Reynolds\ANDROID\SKINS\Rezound\Pitch_Black\dist\Pitchblack.apk [B]REPLACE-THESE-CAPS-W-YOUR-ALIAS[/B]
DEL C:\Users\Reynolds\ANDROID\SKINS\Rezound\Pitch_Black\dist\New-Pitchblack.apk
C:
CD\
CLS
cd C:\Users\Reynolds\ANDROID\SKINS\Rezound\Pitch_Black\dist
zipalign -fv 4 New-Pitchblack.apk Pitchblack.apk
cd c:\android-sdk-windows\platform-tools
C:
CD\
CLS
cd c:\android-sdk-windows\platform-tools [B](Your directory might be different)[/B]
adb install -r C:\Users\Reynolds\ANDROID\SKINS\Rezound\Pitch_Black\dist\Pitchblack.apk [B]( This Path can be replaced with whatever your apk is located in order to push the apk to your device[/B]
Media Fire DL Link: http://www.mediafire.com/?c3f0thcv6cmdwws
I'm not responsible for any Damage taken to your Device.
If you follow my steps, then nothing can go wrong
First things that you need
- A Device with LineageOS 14.1 that is rooted
- Newest APKTool Version: https://ibotpeaches.github.io/Apktool/
- A File Explorer that can use Root. (I use Root Explorer)
- A Text program to open and edit .xml files (I used Notepad++)
Lets Start
1. Go to your Root File Explorer and Navigate to /system/framework, scroll down and you will see the "framework-res.apk" file.
Go ahead and copy it to your Download Folder.
(Maybe you need to activate Read/Write first to copy or change files from the system folder, you can do this in Root Explorer if you click on Mount R/W at the Top)
2. Transfer the framework-res.apk from your Download folder to your PC (I used Google Drive for this)
Create a New Folder and put the "framework-res.apk" and the downloaded "apktool_2.2.2" in it.
Now Rename the "apktool_2.2.2" to "apktool"
Also create a text document and put in this Code:
Code:
@echo off
if "%PATH_BASE%" == "" set PATH_BASE=%PATH%
set PATH=%CD%;%PATH_BASE%;
java -jar -Duser.language=en "%~dp0\apktool.jar" %*
Save it as "apktool.
Now its gonna look like this
http://imgur.com/U1Pu8PM
3. Type in "cmd" in the "NavigationBar" (http://imgur.com/L46rY2r) and press Enter.
Now type in
Code:
apktool if framework-res.apk
Then type in
Code:
apktool d framework-res.apk
It should look like this: http://imgur.com/CdpMTzG
4. Now go into the "framework-res" Folder and go to res/values/colors.xml and open it.
Search for this:
Code:
<color name="primary_material_settings">@color/material_grey_900</color>
And change it into this:
Code:
<color name="primary_material_settings">@color/material_blue_grey_900</color>
Also Search for this:
Code:
<color name="primary_dark_material_settings">@color/black</color>
And change it into this:
Code:
<color name="primary_dark_material_settings">@color/material_blue_grey_950</color>
Press STRG+S to Save everything.
Close the Folder and go back to the CMD Console.
5. Open CMD again and type in:
Code:
apktool b framework-res
Just ignore warnings like this one: http://imgur.com/lwM9Kiy
Go back into the "framework-res" Folder and go into "Original".
Copy "META-INF" and "AndroidManifest" and paste/replace it into the build/res Folder.
Go Back to CMD and type in again:
Code:
apktool b framework-res
Then Go into the "framework-res" Folder and go to "dist"
In that Folder you will find a APK File named "framework-res", Copy that File and transfer it to your Dowload Folder in your Device (I used Google Drive)
6. Now go into your Root File explorer and Navigate to the Download Folder. Long-Press on the "Framework-res.apk" and Copy it to /system (!NOT INTO /System/framework just yet!)
Long-Press on it again and go to Permissions, then change the Permissions to this: http://imgur.com/IkVOQTA and Press "Ok"
Now Long-Press on it a last time and go to Move, and move it into /system/framework and Replace the Old File.
7. Reboot your Device.
BE HAPPY
You are the best!!! I was able to make LineageOS have a Pixel look!
How to transform the Contacts.db file to a VCF file ?
Fadi Doss said:
How to transform the Contacts.db file to a VCF file ?
Click to expand...
Click to collapse
On a Linux distro move to the directory containing your contacts.db file, open a terminal and execute the following:
apt-get install sqlite3 libsqlite3-dev
After dependencies are satisfied, save the script on Github as dbconverter.sh (https://github.com/stachre/dump-contacts2db). Mark it as executable:
chmod +x dbconverter.sh
Use the script like this:
./dbconverter.sh contacts.db > contacts.vcf
Voila! There you have your contacts.vcf!
Edit: I just found an online tool for the same.
LINK
Unfortunately this online tool isn't working well, I have already tried it before.
is there any way to extract payload.bin file using android phone only without computer
currently i'm trying to extract it in Android if somebody know how to then pls. reply
As the extraction script is written in Python, I would try one of these tools https://dev.to/bauripalash/how-to-run-python-programs-on-android-49bg
i just figured it out with termux. first i install python in termux then download payload_dumper64.zip and extract it to data/data/com.termux/files/home then give full read write permission to output folder and then install protobuf in termux after that i copy payload bin to home folder and enter cmd "python payload_dumper.py payload.bin" and got extracted files in output folder but thanks for your reply