Pixel System Image Problems - Google Pixel Questions & Answers

Hey dudes,
I have startetd to unpack the System image of the Pixel. But the rom of the Pixel is completely different from the normal Roms. (I have downloaded the latest from Googel Dev)
In normal system images are a lot of folders like App, bin, etc, fonts... But in the Pixel's System Image are only four folders and one image. The folders are App, lost+found, preloads and priv-app. The image is "system-other-odex-marker".
In the app folder are a lot of folders witch you have expercted. But if you open them are there only ".odex" and no apk's. Lost+found is empty, preloads has some cool images and a retail demo apk and in the priv-app the same as in the app folder. The image has 0KB and none ending.
My question: What is this for a system? It makes me simply impossible to port this rom! :crying:
Thanks
Chris

Related

How does Android file system work (i want to replace some grahpics of a installed ap)

Hello,
i installed an application that uses png images files...now i want to replace some of them with mine. I can extract thoose pngs from the apk in windows with winrar fine. So i know the file name, but when i search for thoose files in Android they are not there. So where do my installed apps go in the Android file system? Do they stay in the apk? Can i modify them there? I tried modifying the apk before installing it wich resulted in a failed installation

[Q] Where are system images kept?

I've Google searched, and searched my phone for all png, bmp and jpg files. I can't find anything.
If I want to view or replace certain Android images, where would I find them?
For example, the wifi icon picture that shows in the status bar.
(Android 4.4.2 Note 3, rooted with Cyanogenmod.)
These images are packaged into .apk files. These apk files are then stored in /system/app or /system/priv-app
For this you will need to learn Android device themeing. The images aren't standalone and they are present in specific files. The file or files you are looking for is the framework-res.apk or systemUI.apk.
If you need help with theming let me know.
Use the Thanks button if I helped

NHA NI2 System APK's Made so you can theme. QMG's, IPT's & PKM's converted to PNG's

NHA NI2 System APK's Made so you can theme. QMG's, IPT's & PKM's converted to PNG's
Once again Samsung has made it so we cannot change the images on our S5 when theming. I have taken several of the System/apps and privapps and I am the process of making them able to theme. I do so by replacing the QMG, IPT & PKM image files with PNG image files. I am not able to do them all, but managed 95% of them. What we need is a program to convert QMG, IPT & PKM to PNG's. Or at least be able to edit the new images. This is very time consuming LOL!!!!
Let me know if I missed any you want done.
Enjoy Themers!!!!
All APK's are Deodexed Only!!!!
Download: Samsung S5 NI2 Framework-res, SystemUI, SecSettings
Download: twframework-res.apk
Download: Keyguard.apk
Download: SecDownloadProviderUi.apk
Download: SecCalculator2.apk
Download: Samsung Camera3.apk
Download: SecGallery2014.apk
Download: SecMms_Blue.apk
Download: SecTeleService.apk
Download: InCallUI.apk
Download: SecEmail_K.apk
Download: ClockPackage.apk
Download: SecContacts_Phone_FLAGSHIP_USA (ASU themed) do not have stock.
Download: SamsungIME.apk
Download: MutliWindowTrayService.apk
I will post more as I finish them.
Please don't forget to hit THANKS!!!!
EMSpilot said:
Once again Samsung has made it so we cannot change the images on our S5 when theming. I have taken several of the System/apps and privapps and I am the process of making them able to theme. I do so by replacing the QMG image files with PNG image files. I am not able to do them all, but managed 95% of them.
Enjoy Themers!!!!
Download: Samsung S5 NI2 Framework-res, SystemUI, SecSettings download Deodexed Only!!!
Downlaod: Keyguard.apk
I will post more as I finish them.
Please don't forget to hit THANKS!!!!
Click to expand...
Click to collapse
Wonderful. Thanks!
Thank you for your hard work!
Sent from my SM-G900V using Tapatalk
Good job and I assume extremely time consuming. What we really need is a tool to convert these files into pngs. Albeit as of right now that is currently impossible without dropping a ton of money to quramsoft.com, but like everything else once a demand is in place a leak usually happens look at IDA pro for example. (Reverse engineering tool)
EMS, you are awesome... Thank you for taking the time to figure this out, then share... Very very kool of you.. Thank you
Thanks EMSPilot these worked wonderfully for the flashlight mod. The toggles match with this where they didn't with the original files. Great job.
@EMSpilot Hey what's up there?
Question, so all these apks were converted to PKM files in Verizons Newest update?
Just asking, that's all! One version back there were only a few apks that were converted to using PKM files. This time around, if they really up'ed the amount, I'm sure we'll see this from here on in. Not happy about that for sure. Appreciate the conversion man. Sure is alotta work!
Sent from my SM-G900P using Tapatalk
This is awesome. Thank you for all the hard work.
yes this is just a d**ck move that samsung made! i have a tab 3 7 inch wifi and when it got kitkat update this september all the images were qmgs instead of pngs. It totally makes want to throw my tablet at the wall but I don't because it is at least better than a piece of crap apple steve jobs product like the iphone. LOL!
Thank You For Doing This!
@EMSpilot, has anything been found that can successfully convert a .qmg back to a .png file, or any of the other file formats?
Our 4.4.4 OTA hasn't quite reached us but we do have a leaked release to play with.
Something for anyone trying to do their own conversion that may help...
1. Decompile your 4.4.4 apk with apktool 2.0.x (1.5.2 doesn't play nice with 4.4.4 files).
2. Make a copy of the decompiled folder so you have the original.
3. Track down any folders than contain image files in the res folder. I've found it's easiest to remove all non-image folders to make things easier. Check every folder. For instance, res/drawables contains a few image files but its mostly .xml files. Delete all folders that do not contain image files. I even went as far as deleting all the extra non-image files that are in folders such as res/drawables.
4. Once we're down to just image files (.qmg, .pkm, .IPT), we're going to bulk rename all of them to .png files.
5. In each folder, press Shift Key & Right Click Mouse, select Open command window here. This is the command to bulk rename:
ren *.qmg *.png
This will rename all .qmg files to .png.
6. Open Winmerge (awesome tool, it's free, learn how to use it) and diff the stock image folder from your 4.4.2 build with the image folder we just converted. See screenshot where I've selected files that are showing as different.
7. Now we are going to copy all files that match but are different.
Right click on the selected area and select 'Copy Left to' (or 'Copy Right to' depending on which side contains your stock 4.4.2 files) and copy the different files to a folder somewhere for safekeeping.
8. Now we have most of the files that match 4.4.4 so we can start doing direct file replacements.
Note:
This does not include .9.png files. You will have to separate out all .9 files from the 4.4.2 and rename them to diff separately.
Now you know just part of what EMSpilot had to go through!
Not Yet
tdunham said:
@EMSpilot, has anything been found that can successfully convert a .qmg back to a .png file, or any of the other file formats?
Our 4.4.4 OTA hasn't quite reached us but we do have a leaked release to play with.
Something for anyone trying to do their own conversion that may help...
1. Decompile your 4.4.4 apk with apktool 2.0.x (1.5.2 doesn't play nice with 4.4.4 files).
2. Make a copy of the decompiled folder so you have the original.
3. Track down any folders than contain image files in the res folder. I've found it's easiest to remove all non-image folders to make things easier. Check every folder. For instance, res/drawables contains a few image files but its mostly .xml files. Delete all folders that do not contain image files. I even went as far as deleting all the extra non-image files that are in folders such as res/drawables.
4. Once we're down to just image files (.qmg, .pkm, .IPT), we're going to bulk rename all of them to .png files.
5. In each folder, press Shift Key & Right Click Mouse, select Open command window here. This is the command to bulk rename:
ren *.qmg *.png
This will rename all .qmg files to .png.
6. Open Winmerge (awesome tool, it's free, learn how to use it) and diff the stock image folder from your 4.4.2 build with the image folder we just converted. See screenshot where I've selected files that are showing as different.
7. Now we are going to copy all files that match but are different.
Right click on the selected area and select 'Copy Left to' (or 'Copy Right to' depending on which side contains your stock 4.4.2 files) and copy the different files to a folder somewhere for safekeeping.
8. Now we have most of the files that match 4.4.4 so we can start doing direct file replacements.
Note:
This does not include .9.png files. You will have to separate out all .9 files from the 4.4.2 and rename them to diff separately.
Now you know just part of what EMSpilot had to go through!
Click to expand...
Click to collapse
Nothing that I am aware of. I am sure it will happen soon!!!
Thanks for the write up.
I wish those out there making Roms would use your stuff as a base. I love some of those Roms out there but you can't change some things that I like to ( namely the toggle background). It works with your systemui but of course that overwrites theirs and of course you lose some things in the transition. Great work by the way.
QMG to PNG
Here is a great tool to help us get this done without all the hassle. I am getting a Verizon Note 4 and will convert and post all soon,
http://forum.xda-developers.com/note-4/themes-apps/app-qmg2png-tool-t2921009
so do u have to recompile the apk using the pc after editing? so i use the app to convert qmg to edit, transfer to pc and edit then recompile? or do i just convert using the apk on the link and push to rom.zip?
EMSpilot said:
Once again Samsung has made it so we cannot change the images on our S5 when theming. I have taken several of the System/apps and privapps and I am the process of making them able to theme. I do so by replacing the QMG, IPT & PKM image files with PNG image files. I am not able to do them all, but managed 95% of them. What we need is a program to convert QMG, IPT & PKM to PNG's. Or at least be able to edit the new images. This is very time consuming LOL!!!!
Let me know if I missed any you want done.
Enjoy Themers!!!!
I will post more as I finish them.
Please don't forget to hit THANKS!!!!
Click to expand...
Click to collapse
@EMSpilot will these apk's work on the t-mobile 5.0 DOB1 firmware.

Bootanimation mod?

Hello There.
Found a Bootanimation thread on the S6 forum:
http://forum.xda-developers.com/galaxy-s6/themes-apps/mod-enable-zip-bootanimation-aroma-boot-t3205320
I was wondering if its possible to use that same zip to get rid of the qmg file extension and be able to just start making and using standard android zip boot animation files.
Any dev interested on looking at the "source" to see how it´s made? What to "mod" in our S7? Something to flash, or just a line to change on the config files.
According to my knowledge and experience, you need to change bootanimation file in system/bin
willysusilo said:
According to my knowledge and experience, you need to change bootanimation file in system/bin
Click to expand...
Click to collapse
You are close... here is the thing:
You can have custom boot animations on your galaxy, just with root access and changing the right bootanimation files that are inside system/media.
The thing is that those files, if we are on Samsung devices, have the extension qmg (bootsamsung.qmg and bootsamsungloop.qmg and shutdown.qmg).
All the other android phones have a file called bootanimation.zip
The difference lies in the type of file. In order to make a qmg file you need to do a lot of tricks with an outdated samsung application, that converts jpgs into compressed qmg files.
On the other hand, if you want to make a standard android boot animation zip, you can just use the images and zip´em (there´s a little more than that) or you can use any gif to convert it to a bootanimation.zip file with online free conversion tools.
You can even use youtube videos to convert them into hight quality gif and then use a gif to bootanimation converter to get your file.
That´s the deal.
Now, the trick is how to make samsung to "read" the original bootanimation.zip files instead of the propietary qmg file.
danielvelez said:
You are close... here is the thing:
You can have custom boot animations on your galaxy, just with root access and changing the right bootanimation files that are inside system/media.
The thing is that those files, if we are on Samsung devices, have the extension qmg (bootsamsung.qmg and bootsamsungloop.qmg and shutdown.qmg).
All the other android phones have a file called bootanimation.zip
The difference lies in the type of file. In order to make a qmg file you need to do a lot of tricks with an outdated samsung application, that converts jpgs into compressed qmg files.
On the other hand, if you want to make a standard android boot animation zip, you can just use the images and zip´em (there´s a little more than that) or you can use any gif to convert it to a bootanimation.zip file with online free conversion tools.
You can even use youtube videos to convert them into hight quality gif and then use a gif to bootanimation converter to get your file.
That´s the deal.
Now, the trick is how to make samsung to "read" the original bootanimation.zip files instead of the propietary qmg file.
Click to expand...
Click to collapse
No, you still dont understand.
To make samsung read bootanimation zip, you need to change bootanimation in system/bin
Bootanimation file in system/bin is diffrent with the system/media
willysusilo said:
No, you still dont understand.
To make samsung read bootanimation zip, you need to change bootanimation in system/bin
Bootanimation file in system/bin is diffrent with the system/media
Click to expand...
Click to collapse
Ah... Now I see what you mean.
The system/bin/bootanimation file has some lines (some unreadable but some that you can actually read) if you open it like a text file, that have some references to the boot animation file.
There are a few interesting lines:
/system/media/bootsamsung.qmg /system/media/bootvideomain.mp4
So guess what you pointed out!
You can use any mp4 video as a boot animation video... just copy the mp4 video to your system/media, and name it "bootvideomain.mp4". Then rename bootsamsung.qmg to something like bootsamsung.qmg.old.
Be sure that the permissions on the mp4 are "rw - r - r."
I have just tested it with really ugly results, but it worked (video should be made on portrait. I placed a "landcape video from whatsapp, so it was compressed to 8mb and unfortunatelly, sideways".
Gonna mess around more to see...
So at the momment, I haven´t changed any file. Just playing with the bootsamsung.qmg and placing a bootvideomain.mp4 on the system/media folder.
It seems it takes a little longer to boot, and the video only plays for about 5 seconds...
Using the same system/bin/bootanimation file.
I´m not a programmer, but it seems like there´s a list of what kind of animation should the

[Guide][Reducing apk size to ~50% of their size][5.0+][More Free Space]

****Your warranty now void***
I am not responsible for crashing of apps or of bootlooping of your device, be sure you know how to get your device recovered using recovery(obviously custom one like twrp)
Hello guys, i am a new user here (not dev lol) and I have a old android device (codename:lettuce) and people like me who have low storage phones suffer problem due to apps getting bigger and bigger everyday.
No more stupids talks lets get to work.
Info: I recommend you to reduce the size of those user apps which you do not update frequently as after every update they will get replace by new one. And I definitely recommend to use app reduction on system integrated apps as it will allow you to move user apps into system on generated free space
Prerequisites:
1. Root Explorer app
2. ZArchiever app
3. Little knowledge of file managing
There are two independent methods to reduce size of any apk or bundled apk. You can either follow both or one or none
Method 1: Compressing APK's "resources.arsc" ( it is present inside apk you can see it using any archive app, i recommend ZArchiver)
Steps:
1. Search for apps which have >=10MB of "resources.arsc" file in the apk or bundled apk files and mark them for the operation.
2. Copy the apk into a dedicated folder in local storage of your device.
3.Open ZArchiver and open the apk's contents using "view" button
4.Extract "resources.arsc" and then again open the same apk.
5. Now tap on add button located in lower right corner and use file icon.
6.Now select the extracted "resources.arsc" file, check the compression level to fastest and add
7.Magic happened, apk size reduced
8.Move and replace the newly compressed apk or bundle apk with the installed one (make sure you force close the corresponding app first) and change the apk permission to 644.
Tips:
1.Do not compress files at ultra as it will slow down loading of images, icons, and other stuffs.
2. Settings have >=30MB of resources
Method 2: Removing "lib" folder inside those apps' apk or bundled apk which extract "lib" folder during installation like Youtube, Maps, Hangouts and many more. Highly recommended for system integrated apps, It is my advice to do not use this method on user apps.
Info:
1.This method should not be applied on Play Store and Google Play Services.
Steps.
1. ***Very Important*** Only for those apps which are installed either as system or user. Applying this method on backed-up apks will corrupt them. Do not touch these "lib" folders "/system/(app or priv-app)/*app_name*/lib" and "/data/app/*app_name/lib"
2.Copy the apk which fulfill condition for this method and extract lib folder using ZArchiver.
3. Here comes boring task, open any file manager you prefer then create and replace all ".so" files present in "lib" and its child folders with blank files ".so" with ***EXTACT SAME NAME*** nothing change in name or neither absence of any filename..
4. You may choose big ".so" files only greater than ~1MB only and leave others untouched.
5.Now after replacing the lib files with blank one, get back to ZArchiver,.open the apk from which u extracted lib folder then tap "add" button in lower right corner, tap upper file icon and then select the extracted and edited lib folder by tapping its icon, change compression level to ultra and tap add.
6.Now you have a apk file with fake lib files.
7.Force stop the app and replace apk file with edited one and set permission to 644.
8.Enjoy
Screenshots
https://photos.app.goo.gl/6dybtLkwu6mscXJ18

Categories

Resources