[newbie] How to for customizing a given Android firmware ? - Android General

Hello
I own a Chinese phone with a lot of unneeded applications.
Fortunately, the maker has given the .zip software to flash it.
I'm able to open and mount on my Ubuntu computer the .img files and I can see the .apk I would remove. So far so good.
But I bet it is not that easy....
I've tried searching but all I can find is for flashing back the ROM and not about making it.
I would also like to add an su binary at the correct place ...
So I would like to find some documentation for packing back the software and flash it to the device. An How TO would be great and/or some documentation about the process.
Many thanks in advance for your help !

Related

Modifying a ROM

Hi guys, I was wondering how you would go about personalizing ROMs for your own use. Nothing code-wise, but installed programs and such. Opening up the zip files of downloaded ROMs I see the apk files and the system apk files - is it really as easy as just removing those you don't want and plotting in the ones that you do?
If this rom is from the same board as you, can say so.
But, .. you still need to run a linux terminal the code to sign the package that you previously made with same special files..
Just the search tools and you'll find it!
...You can easily too start porting rom's too...

Extracting APK's from original branded firmware

Hi All,
I'm still looking for a way to either decrypt or extract an apk from an SEUS signed/encrypted firmware.
I've tried the Sin_Reconstructor and I've tried replacing the JAR file in plugins with the one provided, but this still seems to simply download the same encrypted files it always has.
I tried to use the other plugin that was supposed to do a dump such as dump0.zip and dump1.zip however this didn't work either.
I'm using SEUS and not Pc Companion to try and get this all done.
Is there a guide anywhere out there on the net for decrypting seus firmwares. I've tried and tried and just can't seem to work out how its done.
I want to learn as much as possible, and once I've done the learning I'd love to give back everything I learn, but without understanding the basics it just feels I'm dead in the water.
Any help from anyone would be greatly apreciated.
Just out of curiousity why do you want to extract it from a signed firmware? From what I gather the decrypted roms are no different just without branding. As well I think actually decrypting rom's is for people with some solid experience in the field. If you want to get your feet wet with extracting and modifying apk's go here http://forum.xda-developers.com/showthread.php?t=714288 . I am completely new to programming as well and this is what I have learned so far. Good luck and learning android is a blast!
BTW the link only really covers visual mods. For learning android coding this is a great place to start: http://developer.android.com/index.html
the Android's SDK not contain an Android device emulator ?
If yes, you can mount the Fw on this VM and extract the APK to an sdcard emulated (HD) ...
The System's APK is in /system/app
paid APK : /data/app
Thol said:
the Android's SDK not contain an Android device emulator ?
If yes, you can mount the Fw on this VM and extract the APK to an sdcard emulated (HD) ...
The System's APK is in /system/app
paid APK : /data/app
Click to expand...
Click to collapse
So you can mount SEUS encrypted firmware on the VM now? When did that start?

[Q] Help with "Stock Android 2.2 Keyboard"

Hello, I recently upgraded to Android 2.2 (Froyo). I was unhappy with not having the (all so accustomed to) Android keyboard and began researching alternatives. I stumbled upon this thread:
http://forum.xda-developers.com/showthread.php?t=780683
I downloaded the file (.zip file) and succesfully got it on my phone. However, I do not know how to go about using a 'root' or what a 'root' is, and I also don't know how to copy the
"/system/app/LatinIME.apk
/system/lib/libjni_latinime.so"
to the system folder.
Any helpful responses will be greatly appreciated.
U r far far away from doing this....!!!!
Rooting is firstly necessary... Its the process where u get access to ur system files by deleting some system files via softwares and/or programming skills.. It also void your manufacturer's warranty..
Do not root only for installing a keyboard..!!! Its a big thing and not for beginners..!!
Then again u have to install custom recovery which is, kind of like bios in computer!! Via custom recovery u can install zip files!!
Good day
Yhuzan said:
Hello, I recently upgraded to Android 2.2 (Froyo). I was unhappy with not having the (all so accustomed to) Android keyboard and began researching alternatives. I stumbled upon this thread:
http://forum.xda-developers.com/showthread.php?t=780683
I downloaded the file (.zip file) and succesfully got it on my phone. However, I do not know how to go about using a 'root' or what a 'root' is, and I also don't know how to copy the
"/system/app/LatinIME.apk
/system/lib/libjni_latinime.so"
to the system folder.
Any helpful responses will be greatly appreciated.
Click to expand...
Click to collapse
Read this
http://www.brighthub.com/mobile/google-android/articles/84211.aspx
Thanks for your replies. I don't necessarily want to void my warranty- being a construction worker and all, phones need to be able to be replaced cheaply- so is there any other possible way to get a free keyboard like the Android 2.1 one? I found a free 7.1x keyboard that was good and easy to use, but you had to pay in order to get options (such as turning off that incessant tapping sound).
Any good free keyboards anybody can point me to that are simple to install?
try this link..
scroll at the middle of the page.. u will see a download option.. download those keyboard apps.. it can also run or other devices besides htc.. download your correct resolution keyboard (download all and see which works best for you)
you will download a zip file.. install the two apk's BY BROWSING TO THAT FILE USING A FILE MANAGER AND THEN CLICKING THE FILE...
GO HERE TO DOWNLOAD
http://forum.xda-developers.com/show....php?p=5475283
INSTALL THE ONE WHICH FITS YOUR RESOLUTION
TRY THE LAST ONE 1ST(LOWER RESOLUTION KEYBOARD)
AFTER U SUCCESSFULLY INSTALL THE TWO SOFTWARE GO TO settings->language & keyboard and then check mark the htc ime keybord..
then suppose u want to use it to text.. then open messaging-> new message
then press and hold the blank area where u type ur text.. select input method and click htc_ime keyboard..
also u may go to settings from the messaging and select htc_ime to use the keyboard..
GOOD DAY
Oh yeah!!
Unzip the files u download to your phone's memory card 1st!
I have the .apk files in my SD card. How do I install them?
browse to the files using a file manager.. the file manager is provided in every phone..
now go to the files.. and install them one by one.. to install select the file.. that is touch the files and then press install..
Thank you kindly. I should have mentioned I had a Galaxy S Vibrant. The one I downloaded did have a resolution too low but I guess i'll just try out a few more and go from there.
Again, thank you.

PC script to auto remove apk's

Hey everyone!
On the rom I currently use there are about 20 apk's I have no need for. What I do is download the rom, and individually delete the apk's before flashing the rom. The thing is I flash quite often (cheeky, I know ) and this is getting quite frustrating.
Ideally I want a script that does this all for me. I found one but it seems be for running on the phone, after the apk's have been installed. Does anyone know how I can create a script for the PC that does this before I even install the rom?
Thank you for any suggestions.
Oh and here's the thread I found that looked relevant...
http://forum.xda-developers.com/showthread.php?t=674357
edcoppen said:
Hey everyone!
On the rom I currently use there are about 20 apk's I have no need for. What I do is download the rom, and individually delete the apk's before flashing the rom. The thing is I flash quite often (cheeky, I know ) and this is getting quite frustrating.
Ideally I want a script that does this all for me. I found one but it seems be for running on the phone, after the apk's have been installed. Does anyone know how I can create a script for the PC that does this before I even install the rom?
Thank you for any suggestions.
Oh and here's the thread I found that looked relevant...
http://forum.xda-developers.com/showthread.php?t=674357
Click to expand...
Click to collapse
Over what OS?
If in Windows (or any M$ OS, incl. DOS) you can make a batch file.
My file is adjunted as example (modify as you like, put in the root dir -obviously to the unzipped ROM- and run. Rezip and maybe re-sign)
salu2
Thank you. This is exactly the kind of thing I am after. If I had of been born just a few years earlier I would probably know all about batch scripts. Fortunately, I just missed the DOS days!
Anyway, I puzzled out / looked up the commands in the script you posted. Based on that I extracted the rom, then placed the batch file within it, so that the cd (current directory) command runs correctly.
Unfortunately this mucks up the signing on the rom. Do you re-sign your CM7 roms every time you do this or is there an easier way?
Edit: My PC is Win 7, 64bit, soon to be Win 8 Consumer Preview.
Edit: The roms do not need resigning.
I don't re-sign the ROM, simply flash again over Clockworkmod Recovery.. and work.
But, you can:
1) sign using Auto-Sign....
2) Click [Thanks]...
Salu2
__________________________________________________________________
I know, I know.... my english is ****ty... but my spanish is much better... ;-)
Big thank you. That's solved that one nicely for me!
You're welcome.
Updated zip in my first Post.
Salu2
Hey again. I was hoping to build on the script you kindly provided. At the moment I am using various alpha roms where the exact apk's present changes fairly often. It would be great if I could see the outcome of each action. This way I would know if the apk has had it's name changed or been removed. How would I enable this?

UPDATE-ZIP/Flashable-zip Whole-file Signer

Here I present,
An easy to use and effective, Flashable-zip(or update.zip) Signer!
There are many update-zip(flashable zip) Signers available, but this is special.
This Signer WHOLE-FILE signs your update.zips/flashable-zips, so it can pass even recovery's Signature Verification(Tested on CWM 5.0.2.8 on HTC Wildfire S)!
Unfortunately, as I am not very veryGood at C/C++ Programming, this tool does not have a Graphic User Interface(GUI).
I apologize, but as I am new to XDA, I don't know how to insert pictures, "Code:" etc, so this thread may look very ugly to you.
Oh yes! And DON'T EVER delete any file included in the zip, as it will cause the zip signer to malfunction.
I may have made this flashable-zip Signer, but I couldn't have done it without this people:
zeppelinrox ( for teaching me a little C/C++ Programming with his scripts )
The creator of signapk.jar ( an important part of this tool )
Google ( For Creating Android so that these tools can be developed )
YOU! ( for testing out my flashable-zip Signer )
And many more, who I apologize for leaving you out
Guide to using this zip signer
To Use this Signer:
1) Unzip the file(Obviously!)
2) Copy & paste the update-zip(a.k.a flashable zip) that you want to sign into that folder.
3) Run ROM Signer.bat
4) Follow the instructions in the application.
5) When it says "File successfully signed......", You are DONE!
After File signing operation succeeds, check the "signed" folder for your signed zip file.
Thank you for Using my Flashable-zip Signer!
I would appreaciate if you would hit the "Thanks" button.
Portable Java(jPortable by PortableApps.com) DIRECT link
Here are the direct links for the 32-bit & 64-bit Windows Portable version of the Java(R) Runtime Environment:
32-bit : http://jaist.dl.sourceforge.net/pro...Versions/jPortable_7_Update_25_online.paf.exe
64-bit: http://jaist.dl.sourceforge.net/pro...rsions/jPortable64_7_Update_25_online.paf.exe
Just click on the link and the Portable Java RE should start downloading!
Nice work
Marília de Oliveira said:
Nice work
Click to expand...
Click to collapse
Lol didn't expect to see you here. Hi @haoyangw long time no see mate
Hi thanks for this signer! good work!
Please if someone can help me,
i have all firmware files for the Nokia 8110 4G and im not sure how to make the META-INF file what do i need to put in there and how to do it, as im trying to sign the package and it dose not go
yowejowe said:
Hi thanks for this signer! good work!
Please if someone can help me,
i have all firmware files for the Nokia 8110 4G and im not sure how to make the META-INF file what do i need to put in there and how to do it, as im trying to sign the package and it dose not go
Click to expand...
Click to collapse
Sorry let me better understand your issue first, you want to create a flashable update.zip for installing your firmware files right? So you want to create the correct META-INF files from scratch? Do you have TWRP recovery installed on your phone already? Cos it supports a newer kind of META-INF structure that makes a lot easier. Also your firmware files are for installing into the /system partition, or to be flashed? Sorry for having so many questions haha, I can better help you if I understand the technical details
haoyangw said:
Sorry let me better understand your issue first, you want to create a flashable update.zip for installing your firmware files right? So you want to create the correct META-INF files from scratch? Do you have TWRP recovery installed on your phone already? Cos it supports a newer kind of META-INF structure that makes a lot easier. Also your firmware files are for installing into the /system partition, or to be flashed? Sorry for having so many questions haha, I can better help you if I understand the technical details
Click to expand...
Click to collapse
HI thanks for the reply,
i have all .img files for this model i want to flash, its a kaios phone, and i have the original recovery still on it, (will the TWRP recovery work on kaios?) and yes i need to create a META-INF file from scratch.
THANKS FOR MAKING THIS TOOL!!!
You just saved me from a chao of broken bootanimation issue!
I REALLY REALLY APPRECIATE YOU AND I ALMOST CRIED( •̥́ ー •̀ू )!!!
THAAANK YOU!!!!O(≧▽≦)O
Is there a Linux version

Categories

Resources