System.img Unpacker? - Google Pixel Questions & Answers

Hello,
I'm looking for a tool that can unpack system.img, to grab an apk from it. More specifically, I'm looking to get a framework apk from the pixel 2 April system image to enable AOD on the pixel 1.
However, I haven't been able to find a tool that works. Does anyone know of a tool that is up to date and works? I've been searching for what feels like forever and have come up with nothing.
Thanks!

SubjectGinger said:
Hello,
I'm looking for a tool that can unpack system.img, to grab an apk from it. More specifically, I'm looking to get a framework apk from the pixel 2 April system image to enable AOD on the pixel 1.
However, I haven't been able to find a tool that works. Does anyone know of a tool that is up to date and works? I've been searching for what feels like forever and have come up with nothing.
Thanks!
Click to expand...
Click to collapse
https://forum.xda-developers.com/showthread.php?t=2294909 This worked last time I wanted to do the same.

Related

I need the 3.1 system.img please.

Messed up while playing with the framework-res.apk and need to reflash the system.img. Can someone grab it for me, please?
Thanks!
[EDIT] US 3G version, please.
Actually, might as well pull all the images so we can have 'em. Anyone able to do this?
arrtoodeetoo said:
Actually, might as well pull all the images so we can have 'em. Anyone able to do this?
Click to expand...
Click to collapse
I've been thinking about how to accomplish this, and I think the only way to get a true 3.1 system.img is to take it off of a live system, that was upgraded cleanly from 3.0->3.0.1->3.1 without any setup or anything in between.. the 3.1 update only had patches for files, and the system stuff is in individual folders/files, not an overall patch to the partition (that even possible for system? seems like there are many possible differences to overwrite)
I'd be interested if anyone finds a way to do this as well. As said it looks like 3.1 was simply a patch. We might be waiting on moto for this one...
Sent from my Xoom using Tapatalk

[Q] Modify OEM's update.zip or hack signature

Hey xda community,
my question comes down to rooting Slatebook X2's. Finally, HP placed one of their update.zip files online. It seems that it is signed with Google's certificate but i can't confirm that for sure.
So i am trying to inject su binaries into this update.zip file without loosing the signature. Is there a way to apply patches or anything like this, without the need of resigning the file.
Or is it possible to brute force/ or hack in any other way the private cert/keys of the OEM, using this file?
kind regards
blender3d said:
Hey xda community,
Or is it possible to brute force/ or hack in any other way the private cert/keys of the OEM, using this file?
kind regards
Click to expand...
Click to collapse
+1 XDA please help!
Lahtinen said:
+1 XDA please help!
Click to expand...
Click to collapse
I have also always wondered about this. I managed to extract both the private and public keys from an update zip file with an app called Decrypto Pro. However, I have yet to figure out how to use these keys to resign the modified update.zip. Anybody?
nastiero said:
I have also always wondered about this. I managed to extract both the private and public keys from an update zip file with an app called Decrypto Pro. However, I have yet to figure out how to use these keys to resign the modified update.zip. Anybody?
Click to expand...
Click to collapse
After a few more hours of messing with this program I have concluded it doesn't do what I thought before. A little more research has led me to believe that there is absolutely no way to extract the needed keys from an OTA or Update package for reuse. The encryption is just too strong. The only way to get release keys is from the manufacturer and good luck with that.
nastiero said:
I have also always wondered about this. I managed to extract both the private and public keys from an update zip file with an app called Decrypto Pro. However, I have yet to figure out how to use these keys to resign the modified update.zip. Anybody?
Click to expand...
Click to collapse
Stock signature on stock updates is proprietary and is a closely guarded secret. It can't be done, if it were that easy, we would not need root or TWRP to flash custom ROMs, we could just sign them with the manufacturer's stock signature and flash them via stock recovery. But we don't do it that way and have never been able to do it that way, why do you think that is? Because that isn't how it works. If what you are asking about were possible then it would have already been done in all the years that we've been customizing android. As time goes on, it gets even harder and harder, more secure and more secure. It is far less likely to hack a signature these days than it was in the past and it couldn't even be done back then.
Don't waste your time, you are, by far, not the first person to have the idea, many, many, many have tried and ALL have failed.
If you want to use modified stock firmware, you will have to root the device and/or install TWRP custom recovery then use root or TWRP to apply the modified stock system.

Pre-Installing APKs on Nexus Player Oreo stock rom

This really should be asked in the dev forum, But my post count is not high enough or worthy!
I have several Nexus Players I plan on selling with the oreo update pre installed, There are 2 addl non playstore apps I need to include as part of the package.
I'm trying to avoid "profiling" the devices to add the 2 extra apps. I have flashed the oreo upgrade to all 8 of them.
I cannot push the apks without profiling to enable adb nor can I seem to find a good zip template to make use the bootloader recovery adb function.
I have tested a few and they all fail with footer and signature failures? I'm only left with a few ideas. Please comment if you can help with any of the options below or suggest a better one..
1. Find a proper update.zip template that works with nexus player..Oreo 8.0 or can bypass the check..
2. Can apps installed in a profiled device be preserved thru a reset method that would allow the device to startup with the first run screens re-instated? Remote setup, WiFi, User account.. Out of the box experience?
3. Can an APK or ZIP be copied to a location on the Nexus Player that would allow it to be installed on first run? (I seem to think Youtube does this)
4. Least popular... Modify the Oreo upgrade img to have the 2 apps pre installed? <--This option looks messy..
Any suggestions appreciated!! Thanks
I suppose #2 is possible if you install as a system app.
Sent from my KFFOWI using Tapatalk
rufy93 said:
I suppose #2 is possible if you install as a system app.
Sent from my KFFOWI using Tapatalk
Click to expand...
Click to collapse
After careful examination, #2 and #4 are really the same thing. Without root, I would have to mount the oreo system.img file in linux and add the 2 apks to root/system/app then repack the img file to re-burn the rom. Not exactly sure if that would be enough, I assume there is some checksum or signing in the image file to prevent guys like me from modifying it. Also what would happen after google hits it with an update? would these apps survive? Finding the answer to why the stock Oreo bootloader recovery adb fails to accept the typical update zip format will end up being the right solution.
If you wish to flash using the stock recovery, the update zip must be properly signed. This usually means by the oem private keys.
I haven't been following the modding scene for a long time, but I'm sure these are still inaccessible.
Sent from my KFFOWI using Tapatalk

Redmi Note 5 Pro Stock Camera APK

Hi,
I was able to fetch APK file of Camera of Redmi Note 5 Pro, I was not rooted so I wasn't able to fetch library files and odex file.
But still I believe sharing is caring,
And some Devs might find it useful
I tried putting in system/priv-app/MiuiCamera, giving it permission rw-r-r, and after reboot it shows the app but force closes when tapped.
It won't be installed as normal APK ..
So just sharing it, it might help someone
Not Able to upload via XDA labs app, telling me network issue every time. So here is the,
Google Drive Link : https://drive.google.com/file/d/1v5bBrRnISL3x4ZdV5uqPzEQFiB5dUbL0/view?usp=drivesdk
Thanks
-The Tech Star
magicweapons said:
Hi,
I was able to fetch APK file of Camera of Redmi Note 5 Pro, I was not rooted so I wasn't able to fetch library files and odex file.
But still I believe sharing is caring,
And some Devs might find it useful
I tried putting in system/priv-app/MiuiCamera, giving it permission rw-r-r, and after reboot it shows the app but force closes when tapped.
It won't be installed as normal APK ..
So just sharing it, it might help someone
Not Able to upload via XDA labs app, telling me network issue every time. So here is the,
Google Drive Link : https://drive.google.com/file/d/1v5bBrRnISL3x4ZdV5uqPzEQFiB5dUbL0/view?usp=drivesdk
Thanks
-The Tech Star
Click to expand...
Click to collapse
Its never need to be rooted to get system dump . You can always fetch whole system partition through adb .check adb guides,so with any good file explorer ,there is nothing important available at data partition .so don't fool around here .
When you get handson of this device, Someone pls share the setup to replicate pixel/stock android system wide appearence without root.
Camlin3 said:
Its never need to be rooted to get system dump . You can always fetch whole system partition through adb .check adb guides,so with any good file explorer ,there is nothing important available at data partition .so don't fool around here .
Click to expand...
Click to collapse
Bro, Calm Down, Nobody is Fooling you here, I didn't had the device for a longer period of time, so in that little time I was able to fetch camera APK, why I did this? It's because its Version 2 of Miui Camera, older devices uses Version 1, and there is a lot of difference between them.
If the device would have been with me for much longer time I could fetch system dump through ADB or I could have rooted it and fetched everything, but as you know the device hasn't been sold yet, so what I did what I could have done.
Talking about fetching file with file explorer without root, Sorry it's not possible, Redmi Note 5 Pro uses Emulated partitions, so you can't just "SEE" root folders without root.
So keep Calm, and wait for the device to be sold and get it on hands to provide system files, in the little time, I did, what I could.
Thank you.
PS : I'm not Pro's like you guys, still I shared the camera APK having the Nooby Knowledge.
magicweapons said:
Bro, Calm Down, Nobody is Fooling you here, I didn't had the device for a longer period of time, so in that little time I was able to fetch camera APK, why I did this? It's because its Version 2 of Miui Camera, older devices uses Version 1, and there is a lot of difference between them.
If the device would have been with me for much longer time I could fetch system dump through ADB or I could have rooted it and fetched everything, but as you know the device hasn't been sold yet, so what I did what I could have done.
Talking about fetching file with file explorer without root, Sorry it's not possible, Redmi Note 5 Pro uses Emulated partitions, so you can't just "SEE" root folders without root.
So keep Calm, and wait for the device to be sold and get it on hands to provide system files, in the little time, I did, what I could.
Thank you.
PS : I'm not Pro's like you guys, still I shared the camera APK having the Nooby Knowledge.
Click to expand...
Click to collapse
Appreciate what u have done... Expecting more after u get the device:good:
Hey..im noob here can you tell me the procedure to extract camera apk from redmi note 5 pro.. i may get it in a day or 2.
Someone pls port this camera for other phones as well, as it has got portrait mode in front camera as well.
can we install this apk on lineage os and use portrait mode?
willi9070 said:
When you get handson of this device, Someone pls share the setup to replicate pixel/stock android system wide appearence without root.
Click to expand...
Click to collapse
I do have the device, if only you could guide me how to do the procedure.
iSirCasm said:
I do have the device, if only you could guide me how to do the procedure.
Click to expand...
Click to collapse
I don't know if they kept camera libs the same as the ones on old devices, but here's the list of the files needed (requires access to /system, so rooted device):
from /system/etc
the folder "device_features"
age_gender_bg
android_model_facea.dat
android_model_faceg.dat
face_goodly_***_***
face_ravishing_***_***
face_splendid_***_***
lf_facerank_model.bin
people_gender.dat
watermark_font_****_****.dat
from /system/priv-app
The folder "MiuiCamera"
If you (or anyone else) can, just try to pack them all together and upload them! That will be very helpful!
danypava said:
I don't know if they kept camera libs the same as the ones on old devices, but here's the list of the files needed (requires access to /system, so rooted device):
from /system/etc
the folder "device_features"
age_gender_bg
android_model_facea.dat
android_model_faceg.dat
face_goodly_***_***
face_ravishing_***_***
face_splendid_***_***
lf_facerank_model.bin
people_gender.dat
watermark_font_****_****.dat
from /system/priv-app
The folder "MiuiCamera"
If you (or anyone else) can, just try to pack them all together and upload them! That will be very helpful!
Click to expand...
Click to collapse
Sorry brother, but I have been unable to unlock the bootloader because of this stupid method to unlock BL by Xiaomi. All the Made in India variants are facing 86006 error because of which no one has been able to unlock and root, including me. Bugs have been raised and Xiaomi reported that their developers are working on it.
I hope someone with a rooted device reads this and tries to help.
Is it possible to port redmi note 5 pro's stock camera for other devices, like for redmi note 4?? as it got a good EIS and front portrait mode, will it work on mido??
App not installed on RR
rahulk096 said:
App not installed on RR
Click to expand...
Click to collapse
Same here. Though the app was installed but the camera goes black on opening. Thr camera UI is there but black screen. I'm on RR and could not get any other cameras working than Footej or the one included with my stock gapps
promiscuss said:
Same here. Though the app was installed but the camera goes black on opening. Thr camera UI is there but black screen. I'm on RR and could not get any other cameras working than Footej or the one included with my stock gapps
Click to expand...
Click to collapse
I m back on stock rom
rahulk096 said:
I m back on stock rom
Click to expand...
Click to collapse
On stock it will work like a charm after enabling Camera2API. Need to get this working on RR
not working in custom rom.
guys, is anyone rooted ?? if yes, please extract the required files so that this camera can be used in other phones too...
Goood
aneesh12 said:
guys, is anyone rooted ?? if yes, please extract the required files so that this camera can be used in other phones too...
Click to expand...
Click to collapse
My Phone is rooted, china/global ver
What file do you need? Maybe I can help

Question features missing

how do i get the samsung screen recorder and secure folder on my a226b and or any other samsung ad i dont have them for some reason and i would like to know if theres any universal twrp or odin thing to flash that would gove them back or maybe secret setting to enable or apk to install
Win_7 said:
how do i get the samsung screen recorder and secure folder on my a226b and or any other samsung ad i dont have them for some reason and i would like to know if theres any universal twrp or odin thing to flash that would gove them back or maybe secret setting to enable or apk to install
Click to expand...
Click to collapse
There Isn't a screen recorder or secure folder on the SM-A226B you can use calculator+ and flash a android 13 GSI to use the screen recorder.
You can enable screenrecorder by modifiying some lines in /system/etc/floating_feature.xml
<SEC_FLOATING_FEATURE_FRAMEWORK_SUPPORT_SCREEN_RECORDER>TRUE</SEC_FLOATING_FEATURE_FRAMEWORK_SUPPORT_SCREEN_RECORDER>
<SEC_FLOATING_FEATURE_FRAMEWORK_CONFIG_SCREEN_RECORDER_ITEM>-pip</SEC_FLOATING_FEATURE_FRAMEWORK_CONFIG_SCREEN_RECORDER_ITEM>
Without spaces. If there is already the value simply change to this. I'm working on a way to enable secure folder in my free time. First tests were successful however there are still some problems. I'm extracting files from A13 5G (SM-A136B) because it has the same chipset as A22 5G and has secure folder
fede2782 said:
You can enable screenrecorder by modifiying some lines in /system/etc/floating_feature.xml
<SEC_FLOATING_FEATURE_FRAMEWORK_SUPPORT_SCREEN_RECORDER>TRUE</SEC_FLOATING_FEATURE_FRAMEWORK_SUPPORT_SCREEN_RECORDER>
<SEC_FLOATING_FEATURE_FRAMEWORK_CONFIG_SCREEN_RECORDER_ITEM>-pip</SEC_FLOATING_FEATURE_FRAMEWORK_CONFIG_SCREEN_RECORDER_ITEM>
Without spaces. If there is already the value simply change to this. I'm working on a way to enable secure folder in my free time. First tests were successful however there are still some problems. I'm extracting files from A13 5G (SM-A136B) because it has the same chipset as A22 5G and has secure folder
Click to expand...
Click to collapse
thanks!!!! will this work on any other phone other than a226b?
and do you know of any file manager app that can actually edit system files (i have a good one called filemanager+ but it can only read even if i do mount -o remount,rw /
Yes, it should. If this doesn't work there is another line that may need to be changed. Make sure you have at least one ui 3. Updating Samsung Capture may be required (https://www.apkmirror.com/apk/samsu.../samsung-capture-5-4-22-android-apk-download/) Let me know.
I do not know any good file manager because I modify system files with Magisk. You can use termux. Pull file to pc or use quick edit on phone.
fede2782 said:
Yes, it should. If this doesn't work there is another line that may need to be changed. Make sure you have at least one ui 3. Updating Samsung Capture may be required (Here's where you can download latest apk) Let me know.
I do not know any good file manager because I modify system files with Magisk. You can use termux. Pull file to pc or use quick edit on phone.
Click to expand...
Click to collapse
eh thats ok i used adb and accepted root on device
my phone didnt have the file is that ok if i just create it?
also you made a mistake on the url can you send a working one?
fede2782 said:
Yes, it should. If this doesn't work there is another line that may need to be changed. Make sure you have at least one ui 3. Updating Samsung Capture may be required (Here's where you can download latest apk) Let me know.
I do not know any good file manager because I modify system files with Magisk. You can use termux. Pull file to pc or use quick edit on phone.
Click to expand...
Click to collapse
um how can i fix "system partition doesnt have enough free space" when trying to convert newer samsung capture to system app
You don't need to convert. Just update with apk when phone on. Like every app. I made a mistake in the link. I fixed it. The file should exist on every Samsung one ui device.
fede2782 said:
You don't need to convert. Just update with apk when phone on. Like every app. I made a mistake in the link. I fixed it. The file should exist on every Samsung one ui device.
Click to expand...
Click to collapse
oh bruh i deleted system app and reinstalled
An apk of Samsung capture must remain in the /system partition in order to get priv-app permissions
I recommend you to reinstall original firmware (One UI 5.1 if it is available in your region) then modify floating_feature.xml.
This file is placed in every samsung device in /system/etc/floating_feature.xml
You do not have to create nothing. Just modify it add that lines. In my firmware (official one UI 5.1) the second line is already placed in the file. So I simply added:
<SEC_FLOATING_FEATURE_FRAMEWORK_SUPPORT_SCREEN_RECORDER>TRUE</SEC_FLOATING_FEATURE_FRAMEWORK_SUPPORT_SCREEN_RECORDER>
in the middle of the file
fede2782 said:
An apk of Samsung capture must remain in the /system partition in order to get priv-app permissions
I recommend you to reinstall original firmware (One UI 5.1 if it is available in your region) then modify floating_feature.xml.
This file is placed in every samsung device in /system/etc/floating_feature.xml
You do not have to create nothing. Just modify it add that lines. In my firmware (official one UI 5.1) the second line is already placed in the file. So I simply added:
<SEC_FLOATING_FEATURE_FRAMEWORK_SUPPORT_SCREEN_RECORDER>TRUE</SEC_FLOATING_FEATURE_FRAMEWORK_SUPPORT_SCREEN_RECORDER>
in the middle of the file
Click to expand...
Click to collapse
i still didnt have the file i made it and updated capture but didnt get screen recorder even after reboot :/ am on android 11 and im not updating especially as theres bootloader update
For me it is working. The file floating_feature.xml needs to exist. if it doesn't exist this means your firmware version is old and it doesn't have modern one UI. I don't know how I can help you more
fede2782 said:
For me it is working. The file floating_feature.xml needs to exist. if it doesn't exist this means your firmware version is old and it doesn't have modern one UI. I don't know how I can help you more
Click to expand...
Click to collapse
i have a70 with screenrecorder its on android 10
my a22 is on oneui 3.1
I don't know.
fede2782 said:
I don't know.
Click to expand...
Click to collapse
alright then sorry for bothgering you
Win_7 said:
alright then sorry for bothgering you
Click to expand...
Click to collapse
Don't worry
Image clipper wip being prepared! Object Eraser! deCorizer - Add missing One UI features to A22 5G
You can flash this Magisk module AT YOUR OWN RISK. I AM NOT RESPONSIBLE for lost warranty, bootloops, lost data or any other damage to your device. THE SOFTWARE IS PROVIDED “AS IS” This module tries to add as many One UI features as possible to...
forum.xda-developers.com
fede2782 said:
Image clipper wip being prepared! Object Eraser! deCorizer - Add missing One UI features to A22 5G
You can flash this Magisk module AT YOUR OWN RISK. I AM NOT RESPONSIBLE for lost warranty, bootloops, lost data or any other damage to your device. THE SOFTWARE IS PROVIDED “AS IS” This module tries to add as many One UI features as possible to...
forum.xda-developers.com
Click to expand...
Click to collapse
it didnt work
it just said system is root and a couple other things then i rebooted nthing
Win_7 said:
it didnt work
it just said system is root and a couple other things then i rebooted nthing
Click to expand...
Click to collapse
At the moment is only for DWC1 OXM
I'll try to download your file from AVA1 as soon as I can and I'll patch it
fede2782 said:
At the moment is only for DWC1 OXM
I'll try to download your file from AVA1 as soon as I can and I'll patch it
Click to expand...
Click to collapse
i have AVA6 not 1

Categories

Resources