How to create zip files which can be flashed from clockworkmod recovery. - Android General

I was just flashing cyanogen mod 9. And I found that it doesn't have any file manager (and I cannot demand one from the cm team as they already have some more important things to take care of). So I installed one from market....not a big deal.
But I got a thing in my mind that how great it would be if it is possible to install apps directly from clockworkmod recovery. Does anyone know of such thing so that applications can be directly installed from clockworkmod recovery. I think that it is possible as there are many zip files around which can be installed from clockworkmod recovery. Is there any method so that we can convert .apk file to flashable. Zip files........
Sent from my GT-I9100 using xda premium

What does update-binary do?
manishk3008 said:
I was just flashing cyanogen mod 9. And I found that it doesn't have any file manager (and I cannot demand one from the cm team as they already have some more important things to take care of). So I installed one from market....not a big deal.
But I got a thing in my mind that how great it would be if it is possible to install apps directly from clockworkmod recovery. Does anyone know of such thing so that applications can be directly installed from clockworkmod recovery. I think that it is possible as there are many zip files around which can be installed from clockworkmod recovery. Is there any method so that we can convert .apk file to flashable. Zip files........
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
I would also like to know this. I am currently trying to replace the Gtalk app from another ROM. I poked into a flashable zip of gtalk. The directory structure looks like this:
./
|-- META-INF
| |-- CERT.RSA
| |-- CERT.SF
| |-- com
| | `-- google
| | `-- android
| | |-- update-binary
| | `-- updater-script
| `-- MANIFEST.MF
|-- system
| |-- app
| | `-- Talk.apk
| `-- lib
| `-- libtalk_jni.so
`-- talk1.3.update-signed.zip
As you can see, ./system simply contains the files you want to replace, in proper direactory structure.
META-INF->MANIFEST.MF looked like:
Manifest-Version: 1.0
Created-By: 1.0 (Android SignApk)
Name: system/lib/libtalk_jni.so
SHA1-Digest: CS1HUsvOtzoRKbv+oVDH2DYgba4=
Name: META-INF/com/google/android/updater-script
SHA1-Digest: GU2aCGeV8dptZE08Gh4LQAXRobo=
Name: system/app/Talk.apk
SHA1-Digest: NGmFc12Uh43BhSHVEE22XU4ZFNw=
Name: META-INF/com/google/android/update-binary
SHA1-Digest: 8bR5X0XTbEu6II0NLIRK/31A1lE=
This is easy enough, just the sha1sums of all the files involved.
The CERT.* stuff must be related to signing the zip.
The updater-script is also not difficult to understand:
ui_print("");ui_print("Installing Talk 1.3...");ui_print("");
set_progress(1.000000);
mount("MTD", "system", "/system");
package_extract_dir("system", "/system");
unmount("/system");
ui_print("Done!");
ui_print("");
But I have no idea what the update-binary does.
Waiting for help from the more experienced friends.

Related

[WIFI NOT WORKING] [ROM] [Acer Iconia Smart S300] [25/03/2012] Nika's ROM v1.1

Hi all,
Warning: wifi doesn't work and development has been discontinued.
Due too the issues I had with the Smartoonay ROM I decided to start and create my own ROM. This is a second try...
Code:
_ _ _ _ _____ ____ __ __
| \ | (_) | ( ) | __ \ / __ \| \/ |
| \| |_| | ____ _ |/ __ | |__) | | | | \ / |
| . ` | | |/ / _` | / __| | _ /| | | | |\/| |
| |\ | | < (_| | \__ \ | | \ \| |__| | | | |
|_| \_|_|_|\_\__,_| |___/ |_| \_\\____/|_| |_|
__ __
/_ |/_ |
__ _| | | |
\ \ / / | | |
\ V /| |_| |
\_/ |_(_)_|
Credits: Vache for making Smartoonay
Paugustus for posting and supporting it
ACER for great devices
http://www.network-science.de/ascii
It contains much of the original 1.000.24 ROM, combined with some of the Smartoonay ROM. Some apps have been removed, some other apps have been added.
Install instructions
Install ClockworkMod Recovery
Reboot into ClockworkMod Recovery (Volume-Up, Focus & Poweron)
Copy "Nika's ROM - CWM - v1.1.zip" to your external (!) sdcard (and optionally: the Smartoonay Kernel)
Note: internal sdcard is not supported by Clockworkmod Recovery
Make a backup of current ROM: "backup and restore" --> Backup
Optional: Perform factory reset: wipe data/factory reset
Install "Nika's ROM - CWM - v1.1.zip": "install zip from sdcard" --> "choose zip from sdcard" --> Select "Nika's ROM - CWM - v1.1.zip"
Optional: If no factory reset, make sure to "wipe cache partition"
If you want to try the Smartoonay Kernel, install it now... (download see next post)
Reboot and enjoy
Changelog
12-03-2012 | v1.0
CWM 4.0.0.8
Rooted
Busybox
Deodexed
Added Miui MiLocker
Minor customizations
25-03-2012 | v1.1
Updated stockrom to 1.000.24
Updated all apps to current versions
Removed
Miui MiLocker
Acer Registration
Asphalt 5
AUPEO!
Lumiread
N.O.V.A
ShakeTutorial
Spider-Man
Top HD Games
WaveSecure
Added
New su 3.0.6
Fasterfix
Stericson Busybox Free
XDA App (free)
ChargeBar
AdAway
Known Issues
Deodex of MusicA.apk was not possible (not sure what it is used for)
Init.d included (credits: vache) but not running yet (afaik) due to lack of kernel support... If you think they may help - use script manager (SManager ads) to add them to boot (star) and su (skull)...
Let me know what you think of it!!
Regards,
Nika.
Downloads
Download it here:
http://sourceforge.net/projects/nika-s300-rom/files/Nika_s%20ROM%20-%20CWM%20-%20v1.1.zip/download
If you want to try the Smartoonay Kernel, you can download it here:
http://sourceforge.net/projects/nika-s300-rom/files/Smartoonay-1.0-bootonly.zip/download
Reinstalling the stock kernel (from 1.000.24) can be done by reinstall my ROM, or download it here:
http://sourceforge.net/projects/nika-s300-rom/files/Stockboot-1.000.24.zip/download
Regards,
Nika.
Screenshots
None yet... anyone?
Hi nikagl,
Glad to see someone making another ROM for the Smart. It will prove valuable for people unable to install Smartoonay.
I'll give it a shot if I can find some time.
Regards,
Thank you very much for your work.
I am planning on trying out an S300 for T-Mo US despite the lack of 3G support here.
I was turned off by some of the problems related to Smartoonay
Just to let you know, I think I created this rom on 1.000.19. Gonna update it to 1.000.24 sometime next week (currently on holiday)...
Would you pls tell me more.......
Dear Nikagl,
Truly appreciate your hard working on this ROM. I like this phone so much and so happy to find the ROM finally.
I've download the 2 files you split, but I have trouble to merge these 2 files together. Would you pls tell me how to unzip the files?
I will give it a try and give you some feedbacks.
Thank you so much and have a great day there.
Jerry
Jerry6026 said:
Dear Nikagl,
Truly appreciate your hard working on this ROM. I like this phone so much and so happy to find the ROM finally.
I've download the 2 files you split, but I have trouble to merge these 2 files together. Would you pls tell me how to unzip the files?
I will give it a try and give you some feedbacks.
Thank you so much and have a great day there.
Jerry
Click to expand...
Click to collapse
I have uploaded it to SourceForge:
https://sourceforge.net/projects/nika-s300-rom/files/Nika_s_ROM_v1.0.zip/download
But please be aware, current build is based on 1.000.19 and I wil upgrade it to 1.000.24 soon... more news when I have time
Regards,
Nika.
Hi all,
I have figured out a way to install the Smartoonay ROM, see the Smartoonay thread. This project is therefore discontinued, unless someone has a good suggestion for what to change to either ROM (I can modify Smartoonays ROM in some respect too)...
Regards,
Nika.
Sorry to hear that you won't continue....
Dear Nikagl,
It is so pity that you decided not to continue the ROM. I tried to installed your ROM for several times, unfortunately, it won't work. I installed the CWM 4.0.0.8. first. It works! , I followed your instructions to carry on but when I tred to install it from the external SD and restored it from the backup, it failed and show " MD5 mismatch".
Maybe the reason is current build is based on 1.000.19. and should upgrade it to 1.000.24. My one is 1.000.24. I think. (Gen 2 )
Once you decide to work on your ROM. I will happy to try again.
Sincerely thank you for your efforts so much. You are great. I think I will donate one day.
Have a nice day over there.
Jerry
No worries, I'll make one soon as I don't like several things in the Smartoonay rom. With regards to your md5 error - can you try downloading it again?
Added my 1.1 version of the ROM. See first post for all details
Enjoy, and let me know
Regards,
Nika.
Jerry6026 said:
I followed your instructions to carry on but when I tred to install it from the external SD and restored it from the backup, it failed and show " MD5 mismatch".
Click to expand...
Click to collapse
Even though this is for the old method I used (backup/restore) I did want to shed a light on this. MD5 Mismatch is often caused by the files on the sdcard getting corrupted. When you check, you'll see that the file somehow turned into 0kb. Not sure yet, but I think there's some issue with the debugging mount in Acer ROMs or this version of the CWM Recovery.
Nevertheless, workaround is as follows:
1. Use the Mount USB from CWM
2. Copy the files onto the sdcard
3. Copy/paste one more extra file or duplicate the backup you want to install
4. Install the backup in the same session (do not reboot or something)
Some more tips:
1. For backups - always copy them to your pc immediately after making it (with the USB mount in CWM)
2. It is possibly to "reMD5" your files - see this thread: only do this when you do not have 0 kb files and are sure the backup is intact!!
3. When you install/restore something and it turns out the be corrupt, reboot into recovery again - if you fix it, and try it again in the same session it will "remember" the old status somehow...
Good luck
Regards,
Nika.
please help me
hello brother I wonder if you could help me fix my phone is the Acer Iconia s300 I am from mexico and I am using a translator to write sorry if the translation is terrible in the end what happens is that when you change the font to the cell was shut down and when lit and did not go acer screen and android I wonder if you could provide me the room or firmware and a tutorial on how to install my email is [email protected] love you for life if you help me
danixmaser said:
hello brother I wonder if you could help me fix my phone is the Acer Iconia s300 I am from mexico and I am using a translator to write sorry if the translation is terrible in the end what happens is that when you change the font to the cell was shut down and when lit and did not go acer screen and android I wonder if you could provide me the room or firmware and a tutorial on how to install my email is [email protected] love you for life if you help me
Click to expand...
Click to collapse
The translation is actually very well, perfect! You will probably loose all settings but you will get a working phone back when you simply install one of the stock ROMs. I have had this issue several times when working on new ROMs and stock ROM always fixes it. Just install 1.000.19 or 1.000.24. You can either download them from the Acer website, or get them from Vache's website:
http://global-download.acer.com/GDF... SMART (S300)&OS=a06&LC=nl&BC=Acer&SC=EMEA_18
http://vache-android.com/v1/index.php?site=files&cat=30
http://vache-android.com/v1/index.php?site=files&file=123
http://vache-android.com/v1/download.php?fileID=123
Then simply connect the device to your PC. Maybe you need to install the drivers (download from Acer) as well and then just run the setup from the Stock firmware...
Good luck!
Regards,
Nika.
Hello, Nika!
I try you ROM - one big problem
WIFI - don't work
BR
Alexander
adav said:
Hello, Nika!
I try you ROM - one big problem
WIFI - don't work
BR
Alexander
Click to expand...
Click to collapse
Hmmm... works fine for me. Possibly caused by a merge issue of the Smartoonay ROM - will check this weekend and upload a new version when available
Hello, again
I try explain -
i bought this devises 5 day ago
for fist i made offisional update to 024ROM
The i instal you last version ClockworkMod Recovery
Then i install you ROM version 1.1
after that i try use WIFI - system say me - "mistake" (ошибка by RUS)
after that i return to prrevios version
Thank you for you work
BR
Alexander
nikagl said:
Hmmm... works fine for me. Possibly caused by a merge issue of the Smartoonay ROM - will check this weekend and upload a new version when available
Click to expand...
Click to collapse
Typically blind as a bat, I only just noticed this thread! I've not tried flashing yet as my main desire for flashing would be an overclockable ROM. To that end, I'm wondering, have you tried compiling your own kernel from source, yet?
I do have an environment to be able to compile kernels, like I compiled the 5.x version of the recovery (did you see that, being blind as a bat ) but I don't have any of the kernel sources and wouldn't know where to find them either. And honestly... I am way to lazy to recompile the sources from scratch.
Did you try the overclocked kernel I added to the Smartoonay thread? As you own a similar device as mine, you may have the same issue where it doesn't boot, but for paugustin it works so maybe it does for you too?

[HOW TO][N00B][w/oPC]How to make a flashable.zip[No PC needed!]

This is my most favourite topic!
I will enlight you all how to create your own flashable zip file. I'm trying to make it as n00bfriendly as I can.
Code:
DISCLAMER
Follow this guide step by step so nothing can happen. Anyway I'm not responsible for any damage caused because of me or this thread. If you have any questions or problems, don't be shy and
[B]ask me I will help or create it for you![/B]
So here we go:
There are two ways how to do it:
WAY ONE (PC):
What you need:
*brain (for those who don't know...)
*your pc
*notepad++
*7zip
*FlashGuide.zip (can be found in attachments)
WAY TWO (I9001):
*brain (yes, here too...)
*your I9001 (you don't need root)
*FlashGuide.zip (can be found in attachments)
*Explorer or RootExplorer app
******************************
WAY ONE (PC):
1.download the files for your pc and install them
2.open 7zip and unzip FlashGuide.zip
3.In the folder FlashGuide you will see two sub-folders which are as "META-INF" and "system"
4.see: META-INF
5.see: SYSTEM
WAY TWO (I9001):
1.download the files for your I9001
2.open the app and unzip FlashGuide.zip
3.In the folder FlashGuide you will see two sub-folders which are as "META-INF" and "system"
4.see: META-INF
5.see: SYSTEM
-----------------------------
META-INF​
Go back to the root of the folder and open up"META-INF". leave those files untouched and open "com" and then "android".
Inside the android folder, you will see two files named as "update-binary" and updater-script.
WAY ONE (PC):
Open the "updater-script" file with "notepad++".
You are free now to type some code you want just press HERE
WAY TWO (I9001):
Open the "updater-script" file by longpress it and choose "Text Editor".
You are free now to type some code you want just press HERE
-----------------------------
SYSTEM​
Concentration! It's nearly finished. Let's see, what you have to do with the "system" folder. It's in the root of the FlashGuide folder.
You should add your MOD now, HOW TO:
ADD an APP
If you want to add an apk file then create a folder named "app" and that "app" folder contains the apk file(s) that you want to put in the system partition of the ROM.
FRAMEWORK
If you want to add framework-mods then add a folder named "framework" into the "system" folder.put your framework mods into that folder. (in the most cases the Framework mods are in a Framework-res.apk file.)
LIBS
If you want to change libs then create a folder named "lib" and put the libs in there.
BIN
If you want to put bin files then the subfolder in the system subfolder will be "bin" and it will contain the bin files.
SCRIPTS
If you want to add scripts then name a folder in the system "etc", create there a folder named "init.d" and put the scripts in there.
NOW CHECK THIS LIST:
I updated the UPDATER-SCRIPT
√
I updated SYSTEM
√
IF NOT BOTH BOXES ARE TICKED, THEN YOU HAVE TO GO BACK!
After doing all that:
WAY ONE (PC):
open 7zip, go to the directory where the FlashGuide folder is located and zip it
WAY TWO (I9001):
After you modded the "Updater-Script" a backup had automatically been created. In this case it's the Updater-Script.bak data. Just delete it. Then go back to the directory where the FlashGuide folder is located, do long press the FlashGuide folder, scroll down, select "zip this folder" and follow further instructions.
Now you can rename the .zip to whatever you want!
THAT's ALL FOLKS!
PRESS HELP IF I THANKED YOU!
-----------------------------
HOW TO EDIT THE UPDATER- SCRIPT:
So once the updater-script has been opened with text editor (notepad++/Explorer), you will have to type some codes or you will get no reaction.
1​
To Display the information of the particular Mod when you select to flash it in CWM Recovery
Code:
ui_print("***The Text you want to display***");
2​
To mount the /system partition
Code:
run_program("/sbin/busybox", "mount", "/system");
3​
To add the apps in the /system partition
Code:
package_extract_dir("system", "/system");
4​
To unmount the /system partition
Code:
run_program("/sbin/busybox", "unmount", "/system");
5​
To delete some apps, frameworks,...
Code:
delete("/system/app/XY.apk");
or
delete("/system/framework/franework-res.apk");
6​
To show progress
Code:
e.g.:
show_progress(0.500000, 0);
show_progress(0.500000, 20) show_progress(0.500000, 40) show_progress(0.500000, 60) show_progress(0.500000, 80) show_progress(1.000000, 0)
Basically the show_progress command indicates the progress of the installation of the MOD.
an example how to use it: [HIDE]
after writing the name/info of the mod write:
show_progress(0.500000, 0);
after writing the code to mount the system partition,you can write the next one:
show_progress(0.500000, 20);
extracting the package from the system partition: show_progress(0.500000, 40);
unmount system partition show_progress(0.500000, 60);
after writing the "happy ending" of installing this zip, write: show_progress(0.500000, 80);
maybe a "reboot system" or "thanks for flashing" phrase, write: show_progress(1.000000, 0)[/HIDE]
Basically the show_progress command indicates the progress of the installation of the mod.
In this case the progress bar fill up in increments of 10, with a 0.5 second delay. What is actually being done by these lines, however, is to keep adding 0.5.
If the progress commands had enough time, this would also mean that each chunk would fill at a slower pace (since the duration is increasing), but the script moves fast enough that the user never sees this.
None of this actually changes the functionality of the script, hence my earlier declaration that this was somewhat POINTLESS to learn. This is strictly an aesthetic issue for the user, but if you are going to write scripts, I hope this comes in handy.
NOTE:
If you are using CM, you have to mount your "system" manually, using the option "mount and storage" in CWM
PRESS HELP IF I THANKED YOU ;D
IF YOU WANT TO LET ME CREATE YOUR FLASHABLE ZIP, TELL ME.
sent from my GameBoy Color
------------------------------
working on:
Project Stock (4.0.4)
very detailed, well done :good:
Sent from my Galaxy Nexus using xda app-developers app
tomixdev said:
very detailed, well done :good:
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
Thanks a lot! you know, it's my first Tutorial! Cheers
sent from my GameBoy Color
------------------------------
working on:
Project Stock (4.0.4)
yeah, thanks man now i don't have to use my pc (which hangs even for a windows 7) to make a zip
I've juste tried this and at the flash, it show me an error ...
In the zip there was just root browser in app and the modded update-script !
Sent from my GT-I9001 using xda premium
LiiQuoR said:
I've juste tried this and at the flash, it show me an error ...
In the zip there was just root browser in app and the modded update-script !
Sent from my GT-I9001 using xda premium
Click to expand...
Click to collapse
please tell me what you wanted to do and upload the file. i will correct it for you
EDIT: have you deleted the updater-script.bak file?
sent from my GameBoy Color
------------------------------
working on:
Project Stock (4.0.4)
Its ok i'm an idiot ! But when i flashed the zip i had a bootloop !
It's just a test but here is my zip : http://depositfiles.com/files/psp2rs2op
Can you put the show_progress in it and can you explain the "(0.500000, 20);" in the command plz !
Sent from my GT-I9001 using xda premium
LiiQuoR said:
Its ok i'm an idiot ! But when i flashed the zip i had a bootloop !
It's just a test but here is my zip : http://depositfiles.com/files/psp2rs2op
Can you put the show_progress in it and can you explain the "(0.500000, 20);" in the command plz !
Sent from my GT-I9001 using xda premium
Click to expand...
Click to collapse
of course i can do. but not now, tomorrow i'm all yours
sent from my GameBoy Color
------------------------------
working on:
Project Stock (4.0.4)
outerh3aven said:
of course i can do. but not now, tomorrow i'm all yours
sent from my GameBoy Color
------------------------------
working on:
Project Stock (4.0.4)
Click to expand...
Click to collapse
K ! Thanks :thumbup: and good night !
------------------------------------------------------------------
Device : Samsung Galaxy S+ (i9001)
Rom : UltraGen 1.6
Kernel : CastagnaIT Kernel V7.3 Ex/Uv
Recovery :TeamWin Recovery Project (TWRP) 2.3.1.1
Sent from Belgium with XDA Premium
LiiQuoR said:
K ! Thanks :thumbup: and good night !
------------------------------------------------------------------
Device : Samsung Galaxy S+ (i9001)
Rom : UltraGen 1.6
Kernel : CastagnaIT Kernel V7.3 Ex/Uv
Recovery :TeamWin Recovery Project (TWRP) 2.3.1.1
Sent from Belgium with XDA Premium
Click to expand...
Click to collapse
Sorry, really well done .zip! Just forgot to add the delete section (If you have an app, etc. already installed) should work now.
will add delete section, permission section and set_progress section right after school.
:thumbup: really well done LiiQuouR!
EDIT: if you are on a Cyanogenmod, aosp or anything what isn't stock 2.3.6 rom, you have to mount system manually
In CWM go to mounts and storage and choose system
, might be the mistake too...
sent from my GameBoy Color
------------------------------
working on:
Project Stock (4.0.4)
I'm on UltraGen 1.6 with twrp!
Thx ! Can you just explain the comand show_progress now^^?
------------------------------------------------------------------
Device : Samsung Galaxy S+ (i9001)
Rom : UltraGen 1.6
Kernel : CastagnaIT Kernel V7.3 Ex/Uv
Recovery :TeamWin Recovery Project (TWRP) 2.3.1.1
Sent from Belgium with XDA Premium
LiiQuoR said:
I'm on UltraGen 1.6 with twrp
------------------------------------------------------------------
Device : Samsung Galaxy S+ (i9001)
Rom : UltraGen 1.6
Kernel : CastagnaIT Kernel V7.3 Ex/Uv
Recovery :TeamWin Recovery Project (TWRP) 2.3.1.1
Sent from Belgium with XDA Premium
Click to expand...
Click to collapse
UltraGen is CM9 based, so you have to mount manually
sent from my GameBoy Color
------------------------------
working on:
Project Stock (4.0.4)
Ok in the command for unmount system you have written "umount" its "unmount" no?
------------------------------------------------------------------
Device : Samsung Galaxy S+ (i9001)
Rom : UltraGen 1.6
Kernel : CastagnaIT Kernel V7.3 Ex/Uv
Recovery :TeamWin Recovery Project (TWRP) 2.3.1.1
Sent from Belgium with XDA Premium
LiiQuoR said:
Ok in the command for unmount system you have written "umount" its "unmount" no?
------------------------------------------------------------------
Device : Samsung Galaxy S+ (i9001)
Rom : UltraGen 1.6
Kernel : CastagnaIT Kernel V7.3 Ex/Uv
Recovery :TeamWin Recovery Project (TWRP) 2.3.1.1
Sent from Belgium with XDA Premium
Click to expand...
Click to collapse
I don't know how it's in TWPR, I'm using CWM. usually the system is not mounted
sent from my GameBoy Color
------------------------------
working on:
Project Stock (4.0.4)
Are you sure of your zip ?
Because i've mounted /system , i've flashed the zip and it failed and when i reboot the phone , it bootlooped... can you please review my zip? (Yours)
Sent from my GT-I9001 using xda premium
LiiQuoR said:
Are you sure of your zip ?
Because i've mounted /system , i've flashed the zip and it failed and when i reboot the phone , it bootlooped... can you please review my zip? (Yours)
Sent from my GT-I9001 using xda premium
Click to expand...
Click to collapse
sorry, today I'm totally retarded, got a 3hour nostop test and i'm exhausted as hell... will do it some time later at home.
sent from my GameBoy Color
------------------------------
working on:
Project Stock (4.0.4)
In the end line of update script you.should put an empty line and after mounting system you should unmount it and be sure your premissions are fixed!
If you do that rules you will never have a bootloop!
alireza7991 said:
In the end line of update script you.should put an empty line and after mounting system you should unmount it and be sure your premissions are fixed!
If you do that rules you will never have a bootloop!
Click to expand...
Click to collapse
wrong, but thanks for your try. worked for me every time without this empty line.
finally got my mistake (today was not my day). used the gb meta-inf files to make a ics zip
can be downloaded here LiiQuoR
sent from my GameBoy Color
------------------------------
working on:
Project Stock (4.0.4)
outerh3aven said:
wrong, but thanks for your try. worked for me every time without this empty line.
finally got my mistake (today was not my day). used the gb files to make a ics zip
can be downloaded here LiiQuoR
sent from my GameBoy Color
------------------------------
working on:
Project Stock (4.0.4)
Click to expand...
Click to collapse
Ok ! But link doesn't work ! Always a problem not your day as you said
Sent from my GT-I9001 using xda premium

[GUIDE][ROM PORTING][CM12/CM13][MediaTek][mt6582] CM ROM Porting Guide.

_______________________________
| ¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶ |
| ¶¶PORTING METHOD MTK¶ |
| ¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶ |
---------------------------------------------
[emoji2]
NOTE:
---------
BEFORE WE START, NO ONE IS TO BE HELD RESPONSIBLE IF DEVICE GETS DAMAGE OR WHATS SO EVER..
###Chill, that was for Disclaimers!!!
*OK
××××××××××××××××××××××××××××××××××
¶¶¶¶for cm13¶¶¶¶
¶¶¶for cm12.1¶¶¶
×××××××××××××××××
Copy & Replace From Stock/CM12.1:::
---->system/etc/firmware
---->system/lib/hw/hwcomposer.mt65xx.so
system/lib/ {the following files} ↓↓↓
---->lib3a.so
---->libaudio.primary.defualt.so
---->libcamalgo.so
---->libcamdrv.so
---->libcameracustom.so
---->libdpframework.so
---->libfeatureio.so
---->libimageio.so
---->libMali.so
Patching Boot.img :::
---->kernel
---->ueventd.rc {add this only when bootloop}
Patching build.prop :::
{replace "xxx" with stock build.prop}
----> ro.product.brand=xxx
ro.product.name=xxx
ro.product.board=xxx
ro.product.manufacturer=xxx
ro.product.locale.language=xxx
ro.product.locale.region=xxx
ro.sf.lcd_density=xxx
ro.product.board=xxx
ro.board.platform=xxx
to.cm.device="your device name"
qemu.hw.mainkeys=xxx
Patching Updater Script :::
{replace " mmcblk0pxx " after the "p" where " xx " with your mount points}
---->Locate :
/META-INF/com/google/android/updater-script
----> format("ext4", "EMMC", "/dev/block/mmcblk0pxx", "/system", "");
----> mount("ext4", "EMMC", "/dev/block/mmcblk0pxx", "/system", "");
----> mount("ext4", "EMMC", "/dev/block/mmcblk0pxx", "/data", "");
============================
Get More info from [https://www.facebook.com/groups/1024872487548231/]
=========================
*Make You Don't Mess Up With Your Precious Device.
*Thanks.
Credit:
#Ferhung
#Android Matrix Development {AMD}
@iykeDROID
=========================================
iykeDROID™ said:
Patching Boot.img :::
---->kernel
---->ueventd.rc {add this only when bootloop}
Patching build.prop :::
{replace "xxx" with stock build.prop}
----> ro.product.brand=xxx
ro.product.name=xxx
ro.product.board=xxx
ro.product.manufacturer=xxx
ro.product.locale.language=xxx
ro.product.locale.region=xxx
ro.sf.lcd_density=xxx
ro.product.board=xxx
ro.board.platform=xxx
to.cm.device="your device name"
qemu.hw.mainkeys=xxx
Patching Updater Script :::
{replace " mmcblk0pxx " after the "p" where " xx " with your mount points}
---->Locate :
/META-INF/com/google/android/updater-script
----> format("ext4", "EMMC", "/dev/block/mmcblk0pxx", "/system", "");
----> mount("ext4", "EMMC", "/dev/block/mmcblk0pxx", "/system", "");
----> mount("ext4", "EMMC", "/dev/block/mmcblk0pxx", "/data", "");
============================
Get More info from [https://www.facebook.com/groups/computerplusandroid/]
=========================
*Make You Don't Mess Up With Your Precious Device.
*Thanks.
Credit:
#Ferhung
#Unknown Porting Team ; No Problems @iykeDROID
=========================================
Click to expand...
Click to collapse
No mount points on newer mt6580 bro, it seem like their rom structures are different
Bro this guide will work with all chipset ??
obaidmuneir said:
Bro this guide will work with all chipset ??
Click to expand...
Click to collapse
Not all chipset but works mostly across most MTK chipsets
@iykeDROID yeah bro we meet again ... i dont have experience building from source and bad laptop as you know ...just for fun i download
uhans5000 oreo 64bit
moto e4 lineage 15 oreo 32bit ( your work )
*what is my game ? *copy / paste replace files in system.img and boot.img and then flash those .img file directly to see if i boot or if anything works ...is this impossible cos of 32-64 bit issue
*where is driver for screen because phone is using different display so i need to make sure to make this work
i just do this for fun cos its only option for me in regard to time amd situation ...i dont publish result only for me ...if you want to advise me ...about trying some sort of port for fun okay thanks ....
IN days of LL i ported one or two rom succesfully so i am not 100% dum just 99%
see you around bro
Sent from my woods_f using XDA Labs

Port a custom rom to your phone without pc [MediaTek only]

Requirements ----
1)A file manager(MixPlorer recommended.Because of its multi-tab feature)
2)Archiver(Zarchiver recommend.Because of its fast compression-decompression feature and user-friendly interface.
PORTING For Same SoCs ( Ex: MT6572 to MT6572 )
*First extract your port rom using Zarchiver in a folder and lets call it the 'port' folder.
*U will see some folder like Meta.inf,system,boot.img,logo.bin etc.
*Get your stock rom and extract it too in another folder.
(Now we have both stock and port rom extracted)
*Now repace this files from stock to port folder--
FILE LIST FOR REPLACING:
Code:
*system/vendor
*system/usr
*system/lib/modules
*system/lib/hw
*system/lib/libncurses.so
*system/etc/firmware
*system/etc/vold.fstab
*system/etc/vold.fstab.nand
*system/etc/bluetooth
Code:
For Fixing Problems...
*system/etc/permissions
*system/etc/security
*system/etc/audio
*system/etc/wifi
*system/lib/drm
*system/lisystem/lib/soundfx
* Now Replace the Stock Boot.img to Port ROM!
* Now Open The Port ROM folder and go to---
META-INF/
google/android
and
open updater-script in MixPlorer(or any other text editor you like)
* Do the same for the Stock ROM
* Now In the Port ROM's Updater Script, find a line that
starts with this...
format(".......
and only replace the mmcblk0p.. with the stock one!
* Do the same for this line...
mount("...
Example:
This is the PORT one!!!
Code:
format("ext4", "EMMC", "/dev/block/
mmcblk0p5", "0", "/system");
mount("ext4", "EMMC", "/dev/block/
mmcblk0p5", "/system");
This is the Stock one!!
Code:
format("ext4", "EMMC", "/dev/block/
mmcblk0p3", "/system");
mount("ext4", "EMMC", "/dev/block/
mmcblk0p3", "/system");
Now just Replace the "mmcblk0p3" from STOCK to PORT!!
It should look like this:
Code:
format("ext4", "EMMC", "/dev/block/
mmcblk0p3", "0", "/system");
mount("ext4", "EMMC", "/dev/block/
mmcblk0p3", "/system");
DO NOT REPLACE THE WHOLE LINE!
* Now go back to the Folder of Port ROM and You'll see 2
folders & 1 file(maybe more) named
-META-INF
-system
-boot.img
Select all these files with Zarchiver and press hold on them.
A pop-up menu will appear and hit compress.
Select this--
Compression FORMAT -- ZIP
Compression type -- Normal
Done...
Compression will be started...
After compression flash it from recovery.
If you see a status 6 or 7 error,then u must have did something wrong in updater script.
See some youtube video's to solve it.
And yeah,this is guide to port stock modded roms.If u want to port MIUI,CM,AOKP,SLIM etc...
Than your have to edit boot.img(kernel).
I will write a guide for this(yeah,without pc)
Keep porting roms
Facing problems???
I'm here
reserved
bump
Nice tutorial :laugh:
But I was not able to find any port ROMs for my Galaxy Star
Have u ported any for it from stock??
adth98 said:
Nice tutorial :laugh:
But I was not able to find any port ROMs for my Galaxy Star
Have u ported any for it from stock??
Click to expand...
Click to collapse
I guess somebody else already ported RR from SGS2!
Check 'GS Android Development' forum.
Yup I was using that ROM:victory:
sm_adil said:
Yup I was using that ROM:victory:
Click to expand...
Click to collapse
does rebooting takes a long time?
For me it took about 15-20 min...
But works fine also later on rebooting it takes lot of time....
Bro how to port custom roms like viper os??? Does it works for that too??
I have a local brandless phone.
Specs are:
SoC: MT6572
RAM: 512MB
ROM: 4GIG
Processor: 1.2GHz dual core
Since it's a crap phone, I'm looking for 8.1 Go ROM for it. Anyone have it?
Sent from my Xperia 1 using XDA Labs
Port custom ROM like miui aosp
Sir where is the guide to port custom ROM miui etc

System file mixer_paths_0.xml resets after reboot

Hi everyone! I'm hoping you're doing well in your houses. I'm quite noob in the AOSP world so I apologise in advance if this is a trivial question but I haven't had any success so far.
I'm trying to fix the low mic gain for Whatsapp (3th party apps in general I assume) in my Samsung Galaxy J7 (SM-J700M) using LineageOS 17.1 (+ Magisk 20.3). Many threads indicate that the file mixer_paths_0.xml must be edited and then everything should work after a reboot.
The problem is that those changes are reset every time I reboot the phone, so I've been unable to check if the solution works (and the idea is that it should works after any other future reboot of course).
So my question is why the file mixer_paths_0.xml is set to its default after the reboot? and how can I make the changes persistent across reboots?
Thanks!
After reading a lot I tried to mount the systems directory with RW permissions but I realised that Magisk is actually in charge of that task and doing so could lead to some issues, so I created a very simple module with the file in question in order to replace/inject the default one but it didn't work the file still have the old values.
Code:
.
|-- META-INF
| `-- com
| `-- google
| `-- android
| |-- update-binary
| `-- updater-script
|-- module.prop
`-- system
`-- vendor
`-- etc
|-- mixer_paths_0.xml
`-- test
I included an empty test file to see if it gets added and indeed it appears but unfortunately mixer_paths_0.xml is not replaced. I assume that the default one is mounted after the module is done and overwrites my custom mixer_paths_0.xml file, if that's the case how can I mount the module files after all the other files are in places?
Thank you!

Categories

Resources