How do I extract blobs from cm14.1 without connecting my device? - Android Q&A, Help & Troubleshooting

Hi,
I'm working on my first build. I am working on a remote server and I cannot plug my device to the server to extract proprietary blobs. I did a little reading which recommended I download and extract the CM14.1 ROM however when I "$ ./extract-files.sh /home/Downloads/lineage" it gives me a whole bunch of "cannot stat" "No such file or directory"
I search for the files where I extracted the rom and those files aren't there.
Any ideas?

pt80chip said:
Hi,
I'm working on my first build. I am working on a remote server and I cannot plug my device to the server to extract proprietary blobs. I did a little reading which recommended I download and extract the CM14.1 ROM however when I "$ ./extract-files.sh /home/Downloads/lineage" it gives me a whole bunch of "cannot stat" "No such file or directory"
I search for the files where I extracted the rom and those files aren't there.
Any ideas?
Click to expand...
Click to collapse
Search here for your espicific device and add it to your local_manifests
https://github.com/TheMuppets

FSadino said:
Search here for your espicific device and add it to your local_manifests
https://github.com/TheMuppets
Click to expand...
Click to collapse
Thank you, that worked for me.

Related

Compiling 4.2.2 for mako -- quick settings dont appear

I've downloaded and built 4.2.1 just fine, so i tried 4.2.2 today and for some reason the quick settings wont work. I press the icon in the notification window and it makes the sound but they never appear.
This is my build process:
Download the source and make a local mirror with --mirror
Make my working copy from the mirror with repo init -u /opt/aosp_master/platform/manifest.git -b android-4.2.2_r1
Grab the three proprietary binary files and extract them. That yields me a vendor folder, which I copy in to the root of my source directory
make -j9 dist
Then I flash the ota .zip. I also tried flashing the system.img (after using flash-all.sh to install the factory jdq39 image)
Everything else works, that I've seen, except the quick settings...
Any ideas? Am I the only one having issues like this?
inh said:
I've downloaded and built 4.2.1 just fine, so i tried 4.2.2 today and for some reason the quick settings wont work. I press the icon in the notification window and it makes the sound but they never appear.
This is my build process:
Download the source and make a local mirror with --mirror
Make my working copy from the mirror with repo init -u /opt/aosp_master/platform/manifest.git -b android-4.2.2_r1
Grab the three proprietary binary files and extract them. That yields me a vendor folder, which I copy in to the root of my source directory
make -j9 dist
Then I flash the ota .zip. I also tried flashing the system.img (after using flash-all.sh to install the factory jdq39 image)
Everything else works, that I've seen, except the quick settings...
Any ideas? Am I the only one having issues like this?
Click to expand...
Click to collapse
Hi I was about to direct you to google groups but it seems you got the anyway going by the content of the post either that or you've got a stalker
https://groups.google.com/forum/?fr...ick/android-building/BaLWXaIiIK0/qUhdrxqG7gUJ
trevd said:
Hi I was about to direct you to google groups but it seems you got the anyway going by the content of the post either that or you've got a stalker
https://groups.google.com/forum/?fr...ick/android-building/BaLWXaIiIK0/qUhdrxqG7gUJ
Click to expand...
Click to collapse
So it would seem
For completeness' sake:
Jean-Baptiste Queru
Known issue, this is believed to be a missing post-boot configuration, fixing this is on my todo list.
JBQ
Click to expand...
Click to collapse

[Q] Building ROM from downloaded Source

Hey,
I have downloaded the source code for my device - Lenovo S6000-H from the lenovo website but after reading many guides cant figure out how to compile it as all the rest use git to get the source.
I also dont think I need to change any enviromental variables as its the source for my model.
Using ubuntu 12.04.3 with JDK 6u35 and have the latest Android JDK/NDK
I have downloaded and install all needed programs and set up all my paths in ~/.bashrc
There isnt a single make file I can use to compile the whole system or does it need to be done in individual parts?
Couldnt find a lunchrc file either so unsure on how to compile it to get a flashable rom..
Any help appreciated
chuckie987 said:
Hey,
I have downloaded the source code for my device - Lenovo S6000-H from the lenovo website but after reading many guides cant figure out how to compile it as all the rest use git to get the source.
I also dont think I need to change any enviromental variables as its the source for my model.
Using ubuntu 12.04.3 with JDK 6u35 and have the latest Android JDK/NDK
I have downloaded and install all needed programs and set up all my paths in ~/.bashrc
There isnt a single make file I can use to compile the whole system or does it need to be done in individual parts?
Couldnt find a lunchrc file either so unsure on how to compile it to get a flashable rom..
Any help appreciated
Click to expand...
Click to collapse
See if these threads helps:
[Tutorial] How to compile a kernel
[Q] Build Kernel MT6577 - Can't boot after build
Thanks they did help but I dont think the source code they provided is complete as getting File not found errors,
In file included from mediatek/platform/mt6589/kernel/core/mt_spm_idle.c:19:0:
../mediatek/platform/mt6589/kernel/core/include/mach/env.h:3:30: fatal error: partition_define.h: No such file or directory
mediatek/platform/mt6589/kernel/core/camera_isp.c:40:31: fatal error: ../smi/smi_common.h: No such file or directory
#include "../smi/smi_common.h"
chuckie987 said:
Thanks they did help but I dont think the source code they provided is complete as getting File not found errors,
In file included from mediatek/platform/mt6589/kernel/core/mt_spm_idle.c:19:0:
../mediatek/platform/mt6589/kernel/core/include/mach/env.h:3:30: fatal error: partition_define.h: No such file or directory
mediatek/platform/mt6589/kernel/core/camera_isp.c:40:31: fatal error: ../smi/smi_common.h: No such file or directory
#include "../smi/smi_common.h"
Click to expand...
Click to collapse
You must try others sources.
I have the same problem as you. I'm able to compile various MT6577 sources but none works on my device.
Good luck and happy compiling. :fingers-crossed:

[Help]Problems getting Proprietary Files/Binary/Blobs

Hello, my device is a Samsung Galaxy Music and I've been trying to make a device tree and needed to get the proprietary files. Using ADB in windows, I wanted to execute the extract-files.sh in my stock rom and if I'm correct it should be inside /vendor/samsung/ivoryss in my case, however, the vendor folder exists but inside there are only two files: a folder called pittpatt and a file named gfx.fw . Also used a command to search files and searched for extract-files.sh however it wasn't there. Do I'm doing something wrong? Should I do it from a linux OS like Ubuntu? Also I downloaded the source from the Samsung Open Source Release Center. Are there the proprietary files?
My phone is rooted and it has USB debugging activated.
Edit: Also I tried extracting boot.img and its files however it has exactly the same files of recovery.img so I'm completely lost...
Edit2: Oh I'm sorry, I should had post this on Android Q&A, Help & Troubleshooting, is there a way to move it without reposting it?

[TOOL] [Windows] S.U.R v1.3 - Simple Unpack & Repack Tool Deodexer [by JamFlux]

@MikeChannon, please delete this.
Deleted topic because I don't think about giving more support.
Use @SuperR. kitchen.
Reserved
ohhh thanks bro!!! great job
Enviado desde mi POCOPHONE F1 mediante Tapatalk
I want to use Linux. How to use?
Virus??!!
Why my windows 10 security center scaned the virus??!!
ClassiCTR said:
I want to use Linux. How to use?
Click to expand...
Click to collapse
Sorry, it's a Windows tool.
568060545 said:
Why my windows 10 security center scaned the virus??!!
Click to expand...
Click to collapse
Because batch file it's converted to .exe and thats why. Don't worry. It's safe.
Version updated to 1.1
Best performance
https://www.androidfilehost.com/?fid=6006931924117938149
JamFlux said:
Version updated to 1.1
Best performance
https://www.androidfilehost.com/?fid=6006931924117938149
Click to expand...
Click to collapse
hi bro, first thank you for the mighty work you do
i need to repack my rom to other format not to original format
zemzmi said:
hi bro, first thank you for the mighty work you do
i need to repack my rom to other format not to original format
Click to expand...
Click to collapse
Go to 01-Project folder, then temp folder and rename for the format you need: system.img, system.new.dat or system.new.dat.br, then restart application and recover the project.
JamFlux said:
Go to 01-Project folder, then temp folder and rename for the format you need: system.img, system.new.dat or system.new.dat.br, then restart application and recover the project.
Click to expand...
Click to collapse
thanks and good work :good:
possible virus detected
JamFlux said:
Because batch file it's converted to .exe and thats why. Don't worry. It's safe.
Click to expand...
Click to collapse
So then, Why is SUR.exe needed if Sur.bat works ok without it?
Bro, virustotal detects 8/69 threats of SUR.exe file:
https://www.virustotal.com/gui/file/68f8708f5f156caef86535cb132e82527eb08ead3facaf3f09c10ab28618670c/behavior/VirusTotal%20Jujubox
Behaviour of this file does these filesystem actions:
Code:
Processes Tree
2584 - factura.exe
148 - C:\Windows\system32\cmd /c C:\Users\<USER>\AppData\Local\Temp\D751.tmp\D752.bat C:\Users\<USER>\Downloads\factura.exe
2812 - mode con: cols=72 lines=13
WTH is factura.exe?
Similarly, SUR_v1.1u.7z is 13/51 detected by Virustotal.
najabi said:
So then, Why is SUR.exe needed if Sur.bat works ok without it?
Bro, virustotal detects 8/69 threats of SUR.exe file:
https://www.virustotal.com/gui/file/68f8708f5f156caef86535cb132e82527eb08ead3facaf3f09c10ab28618670c/behavior/VirusTotal%20Jujubox
Behaviour of this file does these filesystem actions:
Code:
Processes Tree
2584 - factura.exe
148 - C:\Windows\system32\cmd /c C:\Users\<USER>\AppData\Local\Temp\D751.tmp\D752.bat C:\Users\<USER>\Downloads\factura.exe
2812 - mode con: cols=72 lines=13
WTH is factura.exe?
Similarly, SUR_v1.1u.7z is 13/51 detected by Virustotal.
Click to expand...
Click to collapse
Hi @najabi
I used a tool to compile .bat to .exe, may be its a false positive. I use that program because it can add administrative privileges. But now I put administrative privileges to .bat inside. Just use .bat from here: https://github.com/jamflux/SUR/raw/master/SUR.bat
Can't open?
JamFlux said:
Hi @najabi
I used a tool to compile .bat to .exe, may be its a false positive. I use that program because it can add administrative privileges. But now I put administrative privileges to .bat inside. Just use .bat from here: https://github.com/jamflux/SUR/raw/master/SUR.bat
Click to expand...
Click to collapse
Hi JamFlux,
I tried to unpack a vendor .zip with the utility using the .bat but I got an error anyway.
I think it's best to use scripting commands than .exe binaries when possible, they are easier to spot and analyse. You can use administrative command promt aswell. Which tool do you use to make executables from .bat files? Is it from reputable sources?
najabi said:
Hi JamFlux,
I tried to unpack a vendor .zip with the utility using the .bat but I got an error anyway.
I think it's best to use scripting commands than .exe binaries when possible, they are easier to spot and analyse. You can use administrative command promt aswell. Which tool do you use to make executables from .bat files? Is it from reputable sources?
Click to expand...
Click to collapse
Hi
I'm using this tool:
https://bat-to-exe-converter.uptodown.com/windows
But now I'm using command promt inside .bat
Hope you can unpack vendor.img
Best regards
JamFlux said:
Hi
I'm using this tool:
https://bat-to-exe-converter.uptodown.com/windows
But now I'm using command promt inside .bat
Hope you can unpack vendor.img
Best regards
Click to expand...
Click to collapse
In my opinion, I don't think it's a reputable tool, the developer's webpage doesn't work, and uptodown is not exactly a trusted source.
We must be extra careful these days as they put virus everywhere in executables.
That SUR.exe file is detected as infected by several engines, I think you should consider removing it from the tool.
najabi said:
In my opinion, I don't think it's a reputable tool, the developer's webpage doesn't work, and uptodown is not exactly a trusted source.
We must be extra careful these days as they put virus everywhere in executables.
That SUR.exe file is detected as infected by several engines, I think you should consider removing it from the tool.
Click to expand...
Click to collapse
I remove totally the executable in new version. Thanks.
New version 1.2 supporting deodexing from android 8.0 to android Q.
Download: https://www.androidfilehost.com/?fid=6006931924117945116
@JamFlux mate i have one question. Can I also unpack, edit (removing or adding apps, e.g.) and repack MIUI ROMs? Thx!
Sent from my [device_name] using XDA-Developers Legacy app

Extract boot image from payload.bin on Android?

Is there any kind of tool FOR Android that can extract a boot image from a payload.bin? Or do you basically need a PC for the task? I do it all the time from my desktop, but a tool to do it on my phone itself would be super convenient if it exists somewhere. Thanks guys!
H4X0R46 said:
Is there any kind of tool FOR Android that can extract a boot image from a payload.bin? Or do you basically need a PC for the task? I do it all the time from my desktop, but a tool to do it on my phone itself would be super convenient if it exists somewhere. Thanks guys!
Click to expand...
Click to collapse
There's a high likelihood that Termux can do it. If you have a payload.bin that you can link me I'll try it. I think it can run these python scripts assuming there's nothing wrong with them.
https://github.com/cyxx/extract_android_ota_payload
Spaceminer said:
There's a high likelihood that Termux can do it. If you have a payload.bin that you can link me I'll try it. I think it can run these python scripts assuming there's nothing wrong with them.
https://github.com/cyxx/extract_android_ota_payload
Click to expand...
Click to collapse
Here's a download link for the latest OxygenOS build for a OnePlus 7 Pro: https://www.oneplus.com/support/softwareupgrade/details?code=PM1574156267635
I tried to run the python script with Termux, it said it couldn't execute the script, permission was denied. I granted it superuser too. Try it out, I may have done it wrong. Thanks man! [emoji16]
EDIT: You'll have to extract the payload.bin, that link is to a full flashable rom zip.
H4X0R46 said:
Here's a download link for the latest OxygenOS build for a OnePlus 7 Pro: https://www.oneplus.com/support/softwareupgrade/details?code=PM1574156267635
I tried to run the python script with Termux, it said it couldn't execute the script, permission was denied. I granted it superuser too. Try it out, I may have done it wrong. Thanks man! [emoji16]
EDIT: You'll have to extract the payload.bin, that link is to a full flashable rom zip.
Click to expand...
Click to collapse
I think I know what happened. Was the file on an sdcard? Because scripts can't run there, and I totally forgot about that. You normally have to copy the file into termux's home location. /data/data/com.termux/files/home If you get permission denied there, then change the group owner, and user to what's in the screen shot and it'll work. You can avoid that situation entirely though, by downloading the file directly into Termux's home folder using wget. For those scripts to run you'll need to install python and protobuf too. From termux run, (without root), pkg install protobuf & pkg install python.
I'm going to try extracting that. Downloading it now.
Edit: I tried but I can't get it to work. The scripts error out because it's expecting some kind of info from Google. I tried adjusting the metainfo structure to match a pixel device and it got further into the process, but it still gives an error. What do you use on pc? I might be able to port it to Termux.
Spaceminer said:
I think I know what happened. Was the file on an sdcard? Because scripts can't run there, and I totally forgot about that. You normally have to copy the file into termux's home location. /data/data/com.termux/files/home If you get permission denied there, then change the group owner, and user to what's in the screen shot and it'll work. You can avoid that situation entirely though, by downloading the file directly into Termux's home folder using wget. For those scripts to run you'll need to install python and protobuf too. From termux run, (without root), pkg install protobuf & pkg install python.
I'm going to try extracting that. Downloading it now.
Edit: I tried but I can't get it to work. The scripts error out because it's expecting some kind of info from Google. I tried adjusting the metainfo structure to match a pixel device and it got further into the process, but it still gives an error. What do you use on pc? I might be able to port it to Termux.
Click to expand...
Click to collapse
Thanks for testing this out, sorry for the late reply, life's been hectic. The tool I USUALLY use for WIndows is payload dumper 64. I'll link it here.
Link: https://androidfilehost.com/?fid=818070582850510260

Categories

Resources