can i extract payload.bin in android without pc? - Xiaomi Mi A1 Questions & Answers

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

Related

editing IMG files

Can anyone recommend any good tools for windows to edit the IMG files.
Thanks
Winimage can open and extract but I need to insert a file back in.
Thanks
Get Linux and you'll have all the tools for free.
Use Linux live CD!
Sent from my Nexus One using Tapatalk
I don't know how to do it in Windows, but you can do it with the ubuntu .2 for HD2. What I do is copy my data.img and mount the original in ubuntu. the commands I use are:
In Terminal cd to the directory where your data.img is and enter:
mount -o data.img /media/data
You may have to enter if it says the mount point doesn't exist:
mkdir /media/data
Then you can open the img file like any other drive with the file manger.

GUIDE : How to modify the cust.img

Hey there.
Does anyone knows how to modify the cust.img file of the latest official 2.3.5?
I want to remove some firmware apks (swype to install another version which support greek).
Thanks!
Hi I got this information from That-Guy:
1. Download Slitaz Linux 3.0 Live CD
2. Open terminal
3. Copy cust.img from phone to /home/tux folder
4. mkdir tmp
5. mount cust.img /home/tux/tmp
6. cd /home/tmp/hw/default/app
7. Delete apk files what you don't want
8. unmount tmp
9. Copy cust.img from /home/tux folder to phone
Thanks. I did the following and worked:
In Linux (ubuntu 10.04):
1)copy the cust.img file from your .cust_backup/image folder of your mobile somewhere in your computer (ex Desktop)
2)open a terminal and type sudo su (root permissions) and then your computer password
3)Go to "somewhere" : with command: cd somewhere (ex cd ~/Desktop )
4)type at terminal mount -o loop cust.img /mnt/
5)type sudo nautilus . This should open you a navigation window.
6)navigate to: file system --> mnt/
inside the hw/default/app are the apks of the default cust.img.
Edit it as you wish.
to unmount type at terminal (with root permissions again): umount /mnt/
you are ready to copy the cust.img back to your phone and replace the old one
can someone give us a clear cust.img and the apps to a folder in order to let us choose which of them we want to install?
I'm not so familiar with linux OS and i am afraid to do it on my own. :/
Doesn't poweriso work for this on windows?
Sent from my u8800-51 running popaura ICS.
Somcom3X said:
Doesn't poweriso work for this on windows?
Click to expand...
Click to collapse
i tried to open my cust.img with poweriso without success.
It stopped with an error, "the file format is invalid or unsupported".
http://forum.xda-developers.com/showthread.php?t=1373146
ufukyayla said:
http://forum.xda-developers.com/showthread.php?t=1373146
Click to expand...
Click to collapse
last post there is mine...

[GUIDE] NOOB/ Beginners : Batch sign and Zipalign your apps/themes

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

Convert IMG into Odin flashable TAR.MD5

Hello dear humans,
This tutorial will help you convert simple IMG files into TAR.MD5, which is flashable using Odin (Mobile or PC version both).
For this you need to install JAVA JDK and Cygwin from the links below.
JAVA JDK: http://www.oracle.com/technetwork/ja...s-2133151.html
Cygwin: content.wuala.com/contents/neroyoung/XDA%20ROM%20Dev%20Tools/Cygwin.zip
How to install?
-Before doing anything, install Java then install Cygwin by extracting the zip and then extracting the cygwin_packages.zip, Run the cygwin.exe setup and select "Install from local...." then select the folder containing extracted files from cygwin_packages.zip, then click the "S" like button on all
and install in a folder you can access easily using commands.
(THE ABOVE LINKS ARE ONLY FOR WINDOWS VERSION OF JDK AND CYGWIN, IF YOU WANT TO INSTALL IN OTHER OPERATING SYSTEMS SO PLEASE GOOGLE IT. #IN LINUX DON'T INSTALL ANYTHING JUST DO IT IN THE TERMINAL)
Now in folder installed cygwin, go to home open cygwin.exe or open it from the shortcut in your desktop (THE IMG FILE AND CYGWIN MUST BE IN SAME FOLDER), lets name our IMG file recovery.img, in cygwin type the following commands without $ [Because cygwim already types $ before a command]
$ tar -H ustar -c recovery.img >
recovery.tar
$ md5sum -t recovery.tar >> recovery.tar
$ mv recovery.tar recovery.tar.md5
Congrats you've successfully concerted your IMG file.to Odin flashable TAR.MD5
Hit Thanks if this helped you

[GUIDE] Extract Samsung *.tar.md5 files on Linux

Hey. While trying to port a TouchWiz ROM, I came across tar.md5 files. For some reason, every guide to open this format assumes you're using Windows. I use Linux Mint, so it was a bit of a problem. I found the solution, and thought I should post it here.
Materials required:
Android Kitchen
Linux distro with p7zip
Basic Terminal knowledge
Procedure:
1. Download Android Kitchen here: http://forum.xda-developers.com/showthread.php?t=633246
2. Download and install p7zip (for Ubuntu-based distros):
Code:
sudo apt-get install p7zip p7zip-full p7zip-rar
3. Open a Terminal in the directory where you have your tar.md5. Do:
Code:
7z e SomeReallyLongNameHowDoesSamsungRememberThis.tar.md5
And wait for the shell prompt to appear again. When it does, go to Android Kitchen's original_update folder and paste the boot.img and system.img that were extracted there.
4. Open a Terminal in Android Kitchen's directory. Do:
Code:
./menu
1
(just press enter, type nothing before it)
(type number corresponding to "system.img and boot.img" and press enter)
When it asks you for your password, give it the password. It needs that for mounting the IMG file.
Now your /system folder is in WORKING_whatever, and you can make a ZIP from Android Kitchen. Done.

Categories

Resources