• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

Spreadtrum .pac file extractor

Search This thread

HemanthJabalpuri

Senior Member
After so much searching, I found a method to extract .pac files easily even in Android device....

https://github.com/divinebird/pacextractor

From above link we can compile a binary file that can extract the .pac file that is found in Spreadtrum Firmware devices....

Place *.pac file and pacextractor compiled from above in a directory of storage and type the following commands in Terminal

Usage:-
Bash:
cd <path of directory of .pac file>
~/pacextractor <name of .pac file>

After finishing you can see the extracted files in the directory of your .pac file....

Linux Users:-
Bash:
git clone https://github.com/divinebird/pacextractor
cd pacextractor
make
By using SuperR-Kitchen also we can extract .pac firmware https://forum.xda-developers.com/ap...-kitchen-v1-1-50-v2-1-6-t3597434/post79213974

Android users:-
Eg:- I placed a .pac called Lava.pac in /sdcard/Music
and compiled the pacextractor.c with CPP-N-IDE app in android... and placed pacextractor binary in Home folder... and typed following commands in Terminal Emulator app
Bash:
cd /sdcard/Music
~/pacextractor Lava.pac

I made a post here because may be some dev see this and improve this pac extractor...

Enjoy..!

Similar Guides:-
https://forum.xda-developers.com/general/general/how-to-extract-pacspd-file-micromax-t3039709

https://forum.hovatek.com/thread-6236.html

https://androidmtk.com/extract-spreadtrum-pac-file
 

Attachments

  • pacextractor.c
    4.3 KB · Views: 509
Last edited:

HemanthJabalpuri

Senior Member
For all users who are using Spreadtrum devices and want to extract .pac file, I made a JAVA version of above post pacextractor for portability.
Usage:
PC Users
Code:
java -jar PacExtractor.jar pacfile outdir

Android Users:
Code:
dalvikvm -cp PacExtractor.jar com.sprd.pacextractor.PacExtractor pacfile outdir

Source:
https://github.com/HemanthJabalpuri/pacextractor
 

Attachments

  • PacExtractor.jar
    23 KB · Views: 310
Last edited:

LMAO-guy

Member
Nov 4, 2017
45
25
19
Visakhapatnam
Samsung Galaxy M31
Sir how to extract pac firmware using extractor.jar I have bit confused I have never tried using jar files
:confused:

---------- Post added at 10:24 AM ---------- Previous post was at 10:21 AM ----------

For all users who are using Spreadtrum devices and want to extract .pac file, I made a JAVA version of above post pacextractor for portability.
Usage:
PC Users
Code:
java -jar PacExtractor.jar pacfile outdir

Android Users:
Code:
dalvikvm -cp PacExtractor.jar com.sprd.pacextractor.PacExtractor pacfile outdir




Sir how to extract pac firmware using extractor.jar I have bit confused I have never tried using jar files
:confused:
 

HemanthJabalpuri

Senior Member
Hey bro if i want to re-pack the extracted .pac file after editing, then what to do ?
We can also extract the .pac firmware using this guide.
https://forum.hovatek.com/thread-6236.html

If we want flash only some partitions like TWRP, magisk_patched_boot.img then you can use this guide, if you have stock rom .pac file.
https://forum.hovatek.com/thread-28774.html

If we want to redistribute the edited or modified partition within a .pac file, then you can build or re-pack that using below guide
https://forum.hovatek.com/thread-1232.html


A full detailed videos done by Hovatek for Spreatrum are at: https://www.youtube.com/playlist?list=PLr_0hlHNXjuXu16Q6857dnt61zMKCBIEk
 
Last edited:

amelbeabk

Senior Member
Oct 8, 2020
73
1
i am using binwalk to extract the firmware bin but the only files it contains is some .crt files and a .romfs file is that all that is in the firmware or is there a different tool i can use to extract it Tutuapp 9Apps Showbox ?
 
Last edited:

Top Liked Posts