Create ext4-Image - Android Q&A, Help & Troubleshooting

Good Morning,
I had make a backup with clockwork and twrp. I install the Assayed Kitchen and convert the backup to the work folder.
I had seen that in a original ext4 image (same kind of backup) two folder with the name "tts" and "TTS". Is this a problem if in my backup the folder only one with the name "TTS". At the "TTS" Folder there are some files for pico. In the "tts" there a file named "resourche.rtf". In my Backup all files are in a folder named "TTS".
The second is, that there is a apk in the original named "AUX.apk". If my Backup extracted to the work folder the apk named "_AUX.apk". Renaming to AUX.APK isnĀ“t possible under windows. When I create new rom the "_AUX.apk" will be not renamed back to "AUX.APK". What can I do.
How I create a ext4-file named "system.img.ext4" with the kitchen? I ever get a file named "system.img". How I can convert to ext4? At the creating I give the command that the kitchen create a raw-file. Is this right for ext4?
Why I have to say the kitchen the system size. I look how big the system folder. When the system folder have a size with 400mb I write 500mb. Is this right? Or can I say 420mb too? Because the partition of the device are at 885mb.
The ready ext4-file have to be in a update.zip for flashing with sd card.
I had seen that I have to signing the update.zip. Is this right with apk-sign?
Maybe someone can explain me how to create a rom into ext4.
Thank you very much

Related

Move a file during Installation

You must know that, We use initflashfiles.txt for copying a file from one location to another during Installation.
Directory("DESTINATION FOLDER"):-File("DESIRED FILENAME","FILE SOURCE")
But tell me How to Move a File during Installation?

Extract *.apk?

If I have a *.apk that I download, is there anyway to backup/extract it?
The apk is really just a ZIP file. Try renaming the file to whatever.apk.zip and open using your favorite ZIP utility. You should be able to view all the contents. Resources (such as images) can be extracted. The java code is compiled into a .dex file so you can't view the raw code, but there are utilities (like this one) to decompile it: http://dedexer.sourceforge.net/
ghostfaced said:
The apk is really just a ZIP file. Try renaming the file to whatever.apk.zip and open using your favorite ZIP utility. You should be able to view all the contents. Resources (such as images) can be extracted. The java code is compiled into a .dex file so you can't view the raw code, but there are utilities (like this one) to decompile it: http://dedexer.sourceforge.net/
Click to expand...
Click to collapse
Right but how do I find the *.apk if I am downloading it off of the market?
apps are located in data/app/
There are also various apps in the market that will backup apps.
I use appmonster incedently.
7zip can extract and view contents of an apk without renaming.
backup and reinstalling apps....
view the first link in my signature.
I used MyBackup Pro to do a backup of my apps onto the sd card, then I used ASTRO file manager to navigate to /sdcard/rerware/MyBackup/AllAppsBackups where I found the file LastBackupApps.zip. I then used androzip or something similar to unzip that file and it contained the apk for every one of the apps I backed up.
how to extract .apk.p files
ghostfaced said:
The apk is really just a ZIP file. Try renaming the file to whatever.apk.zip and open using your favorite ZIP utility. You should be able to view all the contents. Resources (such as images) can be extracted. The java code is compiled into a .dex file so you can't view the raw code, but there are utilities (like this one) to decompile it: http://dedexer.sourceforge.net/
Click to expand...
Click to collapse
I have a zip file with .apk.p files in it which are exracted with package_extract_file in the updater script. Is there a way to manually extract these, since renaming to .zip doesn't help if I open them with any unzipper program?
Thanks
lxrose said:
I have a zip file with .apk.p files in it which are exracted with package_extract_file in the updater script. Is there a way to manually extract these, since renaming to .zip doesn't help if I open them with any unzipper program?
Thanks
Click to expand...
Click to collapse
I believe the files you are referring to - the files ending in ".p" - are "patch" files. They only appear in the OTA download .zip file, and they are worthless to you. They are not complete files, but just enough data to patch the corresponding 1.5 app .apk so that it turns into the 2.1 version.
If you want the complete .apk files which they correspond to, just download the Leak-V3 .zip file, extract the "system.img" file, and then unpack that file using the "unyaffs" utility (search for it, you'll find it at code.Google.com).
bftb0
bftb0 said:
I believe the files you are referring to - the files ending in ".p" - are "patch" files. They only appear in the OTA download .zip file, and they are worthless to you. They are not complete files, but just enough data to patch the corresponding 1.5 app .apk so that it turns into the 2.1 version.
If you want the complete .apk files which they correspond to, just download the Leak-V3 .zip file, extract the "system.img" file, and then unpack that file using the "unyaffs" utility (search for it, you'll find it at code.Google.com).
bftb0
Click to expand...
Click to collapse
Thanks for the info. I thought I can update the apk files manually, because from recovery it doesn't work (it is a rooted image, so signature not accepted) and there are some fixes in the new update that I wanted to give a chance.
Unable to install ddx1.14.jar in my HTC wildire
I hve downloaded dexeder.jar file in to my SD card. but i can't install it in my HTC wildfire...
it shows an error...
"ddx1.14.jar cannot be installed because critical information is missing from the application file (MIDlet-Name). Please contact the application provider for more information."
Help me Pls..... Thanks in advance.....
apk download
did you search for the apk online?

How to create "update.zip" for integrate apps?

Hello!
I'd like to create update.zip to integrate app wich can be flashed to any or almost any rom. I'd like to put some essential app in it. Anybody can tell me how can i do this, or is there any guide for this?
Download and install the latest android sdk .also Java jdk find and download autosign. Do this all by searching. I would download a custom rom as a template for your update.zip. extract the data folder and the Meta folder and put into a new folder, go into Meta folder keep clicking through the folders inside Meta one till you find update-script and open it in notepad.
Delete everything except the part saying something like copy package DIRATA and the show progress before it. Once that's all done put the Apps you want into the data folder zip up the data and Meta folders, when you open the zip folder you should only see those 2 no others! Resign it using autosign and flash
bonesy said:
Download and install the latest android sdk .also Java jdk find and download autosign. Do this all by searching. I would download a custom rom as a template for your update.zip. extract the data folder and the Meta folder and put into a new folder, go into Meta folder keep clicking through the folders inside Meta one till you find update-script and open it in notepad.
Delete everything except the part saying something like copy package DIRATA and the show progress before it. Once that's all done put the Apps you want into the data folder zip up the data and Meta folders, when you open the zip folder you should only see those 2 no others! Resign it using autosign and flash
Click to expand...
Click to collapse
+1. Niiice,... A few questions though if you dont mind.
1,... Can I use this command that I use to sign my bootscreens to sign the update.zip ... "java -jar C:\SignApk\SignApk.jar C:\SignApk\testkey.x509.pem C:\SignApk\testkey.pk8 C:\SignApk\bootscreen.zip C:\SignApk\bootscreen_signed.zip" ... and just change the file name as needed? ... Or do the .pem and .pk8 files need to be changed to something else?
2,... If Im using a base custom ROM with Apps2SD, all apps will be installed to the SD right?... Or do they install to the internal memory if you add the apps to the ROM itself?
3,... Is it also possible to add the app and game data (i.e.. game saves) to the ROM or is it best to use a backup programme?
Hope someone can help?
Thanks!
I tought it will harder, but it worked flawlessly
I'd be interested in this too:
ddotpatel said:
2,... If Im using a base custom ROM with Apps2SD, all apps will be installed to the SD right?... Or do they install to the internal memory if you add the apps to the ROM itself?
Click to expand...
Click to collapse
It all goes to the Data partition so... If your ROM is using apps2sd and its turned on (for instance im using androbin and i have done the command "apps2sd on" in terminal) the apps you install from then on will go to your sdcard partition.Quite a handy thing on this androbin rom is in sd card and storage it tells me my secondary partition!
Ddotpatell....
1.Yes you can use that command
2.answered above.
3.I would use a backup program personally
Thanks BONESY, much appreciated.

How to repack system folder back to system.ext4?

I'm currently working on my modified stock ROM. The problem is, that the extracted system folder is 2GB+, with little slimming 1.9GB, but still, very big. I don't know, how to compress it back to .ext4 nor I have any Linux distro on PC. I'm using just the folder with package_extract_dir on updater-script, but the .zip is very huge. Anyone knows how to do it on Windows?
Don't you have to cook the rom so that it's flashable and smaller?
I don't know, maybe. OK, I will try kitchens method.

All my files turned to folders

I had a backup.zip of 6 gb and when i extracted it all my files turned into folders and i m unable to access or use those files.
So my ques is how can i recover my files
I am Using a Windows-10 pc
Edit 1-Tried googling for hours,antivirus scan and recovery softwares but nothing worked out.
ahmad13faizan said:
All my files contained in backup .zip turned to folders after i unzipped my backup.zip and now i am unable to restore or preview any file .all which is left are just the folders with same file names
Backup.zip size -6 gb
Windows-10
Click to expand...
Click to collapse
The correct way to create a zip file is to place all of the files that you want to archive into one folder.
Yeah i did the same but after extracting the zip i couldnt acess those files which are either turned into folders or being displayed as folders.
Please help me it is nasa's stuff backed up in my zip?

Categories

Resources