how to edit a custom rom zip file ? - Android Q&A, Help & Troubleshooting

hi,
I have a Redmi note 4. I wanted to customize the lineage 15.1 rom . how do I replace the system apps with the ones I want, like the camera app, Gallery app, launcher and phone app. I tried to delete the apks and then add the new apks but after flashing it did not work. Is there a way to replace the system apps, change the icon layout on the home screen and changing a few settings in the base rom zip file ? Other similar threads suggested using Android kitchen tools, but I'm not familiar with the program

linux-mint said:
hi, I have a Redmi note 4. I wanted to customize the lineage 15.1 rom...
Click to expand...
Click to collapse
I've never done this before but, I believe that one or more of the following threads are for performing this type of modification. Don't be afraid to ask for some member guidance/clarification within one of them too.
https://forum.xda-developers.com/showthread.php?t=3125907
https://forum.xda-developers.com/showthread.php?t=3067153
https://forum.xda-developers.com/showthread.php?t=3554854
https://forum.xda-developers.com/showthread.php?t=3779833
https://forum.xda-developers.com/showthread.php?t=3616040
There's others on the forum but, these should help give you a good start.
Good Luck!
~~~~~~~~~~~~~~~
I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.

Bear in mind that if you want to change things like the camera, you will have to change .so files, some binaries and maybe make framework adjustments

Related

Making a custom rom with using android source codes

Hi guys,
I need help. Really I have search on google again again and again but I couldn't find anything about this topic..
My government gave us galaxy (10.1) tablets instead of books. But unfortunately this tablets's OS is not a normal android 3.2; It has been customized and we can't access many applications or other thinks. So I've decided to make a new custom rom for this tablets to offer in a competition of project. I have 2,5 months for this competition and I should make this rom so I need help. I've downloaded the android source (I want to work on 4.1jb) It is 4.2gb on my ubuntu 12.04 and I don't understand anything till see your answer on stackoverflow. I read and have some knowledge about system but It is not enough.. I know c# lang and I know general coding for 4 years.
I should edit the launcher (I said desktop but I don't know how calls It..). It has programs and widgets tabs and I want to put a new tab here. And anyone cannot see programs and widgets tab without any permission. This permission will give students's tablets by teacher ('s tablet). So, students can't play anything in the lesson but when it is over, stundents can play anything what they want.. Teacher will give the permission before leaving class..
This is what I want to do.. Briefly, I want to make a custom rom but directly using android source codes.Because I think I can't make this rom with using kitchen or just editing .apk files..
Thank you for your help..
Go to chef central in XDA forums it's very interesting (read all stickies), build a good kitchen and start building. Take some CM things to build a great ROM.
Sent from my RK29 tab...
I have thought It cannot work, haven't it?
Because I want to make a custom rom with using details. Not just editing .apk packages etc.. I looked for kitchen when I begin to make costum rom but kitchens don't satiate me.
Do you think again I should look kitchens ?
dmrc1143 said:
I have thought It cannot work, haven't it?
Because I want to make a custom rom with using details. Not just editing .apk packages etc.. I looked for kitchen when I begin to make costum rom but kitchens don't satiate me.
Do you think again I should look kitchens ?
Click to expand...
Click to collapse
If you are editing the source code you are doing more than modding apks. What I recommend to you is start building a Android with main features for example low requirements. Then you start deleting all those stuff you don't need building a very small Android. Then you modify system ui like appearance and themes and you start adding those great developer community apps. Those steps are easy for start then you'll modify those great things. And if you have time you should create a project web page in Google developers and start getting support and testers. Also if you post here your Roms you'll gain experienced developer support.
Remember you are building a Android Room not a new OS. Start modding and removing not useful stuff.
If it helps give thanks ! :thumbup:
Edit: I also recommend you if it's possible to don't work with Honeycomb... If you wanna get good results use Jelly Bean or Ice Cream Sandwich.
Sent from my RK29 tab...
SferaDev said:
...Remember you are building a Android Room not a new OS. Start modding and removing not useful stuff.
If it helps give thanks ! :thumbup:
Edit: I also recommend you if it's possible to don't work with Honeycomb... If you wanna get good results use Jelly Bean or Ice Cream Sandwich.
Sent from my RK29 tab...
Click to expand...
Click to collapse
Yes, I'm just editing an android rom not making a new OS. And I'm not working on Honeycomb. I got the source of JB.
Okey, I'll start doing your thinks. But I've an idea and if you know, please help..
Yes, I don't have to edit source code and it seems very hard to do. But I thought making a new tab panel like this panels top of JB. Check it.
http://androidplus.in/wp-content/uploads/2012/08/Jelly-Bean-Apex-theme.jpg
There are apps, downloaded, widgets tab panels on top. If I can add a new panel just with coding a new app. (not editing the source), It would be a solution for me. The panel that I'll add (let's call it education panel) have to open and close with my command (the command that comes from teacher in realty). If the command doesn't let the user of tablet to switch other panels, user can't switch. The education panel is like apps panel and contains some essential tools (like e-book, notepad, some videos about education etc.). Do you have an idea how can I do? or can I do this with just an application?
Please give me knowledge.. (Again I don't have to edit source code (like you've said) if I find this quests answer.)
Ok let's remember how Android it's divided...
I think you must modify for this launcher and systemui, if I'm not wrong. You must deodex the files inside the app package to build the eclipse project.
Good to know you aren't working with Honeycomb
Sent from my RK29 tab...
I was reading out in Android Dev forums and those links are useful to you:
http://forum.xda-developers.com/showthread.php?t=1732635
http://forum.xda-developers.com/showthread.php?t=1814441
Click to expand...
Click to collapse
Sent from my RK29 tab...
Got it. Thank you.
I was (am) busy for this job so I can answer now
dmrc1143 said:
Got it. Thank you.
I was (am) busy for this job so I can answer now
Click to expand...
Click to collapse
For anything you need !
Sent from my RK29 tab...

[Q] How to port custom apps from CyanogenOS to CyanogenMod

Hi to everyone
I hope that someone can help on this thing. Maybe i be wrong but, i think this should not be a big deal to handle cause the two systems are really similiar to each other.
First of all, here is what i try to accomplish:
Ive got myself a new Aquaris X5 from X5 which come out of the box with CyanogenOS.
With the CyanogenOS-ROM from the X5 comes a custom camera-app from BQ itself (Camerabq.apk).
With this custom Camera-app from BQ you have way more functions and also the Quality of the Pictures is better (i think) in comparison to the camera-app from CyanogenOS (Cameranext.apk).
Because of the "advantages" from CyanogenMod compared to CyanogenOS i want to move permanently to CyanogenMod, and thats why i want to port the bq camera-app from CyanogenOS to CyanogenMod.
Here is what i have tried:
Copied Camerabq.apk from CyanogenOS
Flashed CyanogenMod
Installed Camerabq.apk
Results:
Almos every single feature works exact as in CyanogenOS except the panorama-mode.
As soon as i tried to switch into the panorama-mode the camera-app crashes. After that first crash the app doesnt start up again, crashes at every start. It only starts working again, after i delete the app-data.
Sadly i have no skills in app-development and/or app-porting, thats why i hoped someone can help me to accomplish this task.
Are there any missing files, libs, frameworks etc thats needed to make the panorama-mode work?
If i have all the files together, how do i make a flashable zip-file out of this?
Just to make it clear, i dont want to compile my own custom-rom from CM-sources, i just want to make a flashable zip for the custom bq camera-app for everyone.
A logcat is attached to this post.
Greets
FORC3
If you can decompile the apk and then share the androidmanifest.xml, then maybe I could help you.
TheRoyalSeeker said:
If you can decompile the apk and then share the androidmanifest.xml, then maybe I could help you.
Click to expand...
Click to collapse
Thanks for the quick reply :good:
I managed to get a lib-file which was missing by the help of another user.

[Abandoned] PixelMod Creator

Intro :-
This is a program I made to help other users who wants pixel experience, but don't want to download a new mod after each update or cant wait for a developer to make them a new mod. So i put together some softwares like apktool and others and wrote a batch script that does all this in a single click. Now users don't need to download a new mod after each update, simply run the create.bat script and make sure to follow the instructions properly, and after a few minutes your mod is ready to flash.
Requirements :-
Windows 7 or above
Java Development Kit (8u120 and above)
Python (3.5 and above)
How To Use :-
Place the rom in the root directory to extract the required apk files. Or manually copy paste the required apk files in the root directory. You can also pull the apk files from your device.
Follow the instruction on the screen. There will only be a few pauses which requires user input and after that the program will execute on its own.
After the execution of the program, the Rescue.zip and PixelMod.zip files will be in Out Folder. The apk files used in the process will also be copied there in case the user run the program again.
Flash the PixelMod.zip from twrp recovery and enjoy.
Required APK Files :-
framework-res.apk
org.cyanogenmod.platform-res.apk
Settings.apk
DocumentsUI.apk
Tested On :-
LineageOS and roms based on its code.
Contributors :-
Rahul Pillai - Bootanimation And Modified Framework
Download :- PixelMod Creator v1.0 - Link Deleted. Refer to my new thread. Universal PixelMod
Changelogs :-
Version 1.0 :-
- Intial bring up
- Extract files from rom.zip or directly from device.
- Build a Rescue.zip file for preventing bootloops.
- System-Wide Blue UI
- Round Icons
- Night Light
Bugs :-
Since I don't have a script to modify framework properly, I am using an alternate method. That is I modified the xml files before hand and each time these xml files replaces the new ones to give system-wide blue ui and round icons. So if the are any changes merged into these particular xml files, they will be lost after using this program.
reserved.
Good work mate, gonna try now
Video guide would nice idea..
PixelMod for LineageOS 14.1 build 03/05/2017
https://drive.google.com/file/d/0B7HXP-jo8pQVSGZ6S3hoajNpWUk/view?usp=drivesdk
I will not be posting a video guide. I have made it way too easier to create pixel mod. All you need to do is install jdk python, and then run a single script. No need to watch a video to know how to do it.
This seems very interesting. I'm surprised that comments and contributions aren't much on this thread. But, OP, I urge you not to be discouraged. Nice work. Hopefully, you will find a solution to what mentioned as a bug.
This is awesome we were waiting for this as earlier pixel mod project was closed , thanks a ton broda but i am a noob tbh so i dont understand like i need to flash any Noughat based 7.1.2? or only lineage mods? and how to get the pixel mod in it? can u please help me in it? Thanks a ton again
---------- Post added at 12:40 AM ---------- Previous post was at 12:38 AM ----------
and can you please what all is included in the pixel mod?
Likhit123 said:
This is awesome we were waiting for this as earlier pixel mod project was closed , thanks a ton broda but i am a noob tbh so i dont understand like i need to flash any Noughat based 7.1.2? or only lineage mods? and how to get the pixel mod in it? can u please help me in it? Thanks a ton again
---------- Post added at 12:40 AM ---------- Previous post was at 12:38 AM ----------
and can you please what all is included in the pixel mod?
Click to expand...
Click to collapse
this is a mod for lineageos and other roms based on its source. first step, download the rom and place it inside the pixelmod folder, right next to the batch script. then simply run the batch script file and after a few minutes your very own pixelmod will be ready to flash.
Now flash the rom, gapps, any kernel if you wish, any other zips you want to flash and then flash the pixelmod.
Things or mods in this: round icons, system wide blue ui, round settings icon, round files icon, night light quick tile (aka night mode), pixel ui sounds, pixel boot animation.
Working to bring system nav bar also. Stay Tuned.
Thanks for your work.
BTW,would you please have a look at the post about pixel nav bar animation mod?Thx anyway.
https://chromloop.com/2016/11/guide-how-to-port-pixel-navigation-bar-animation-to-your-phone/
Chris_Wang said:
Thanks for your work.
BTW,would you please have a look at the post about pixel nav bar animation mod?Thx anyway.
https://chromloop.com/2016/11/guide-how-to-port-pixel-navigation-bar-animation-to-your-phone/
Click to expand...
Click to collapse
Currently porting nav bar is way out of my league. If someone accomplishes this in such a way that it can be integrated in this tool., then i'll add this here. Or until i learn enough to properly port it myself.
This thread is now declared abandoned, as i figured out another way to create a universal mod.
Link to my new thread - https://forum.xda-developers.com/redmi-note-3/themes/universal-pixelmod-t3602324
Please have patience, it may take a while for me to upload the file and properly update the thread. It should be done within a few days.
Thread closed at OPs request

How to theme xiaomi miui/nougat roms

Hello, I would like to customize the phone more to my preferences and I would like to edit the systemui etc, I've tried looking for systemui, but just couldn't find it, I am using aosp extended, and when I looked for the systemui.apk in the system folder, its just not there. I used to work a bit with those things a few years back, but I don't know if its different because miui is maybe built differently or just android changed the way files are compiled or anything. Anyway, if someone could shortly explain to me how to edit miui/any custom rom system files, or give me a guide that fits miui, I would really appreciate it, thanks.
anyone pls? :\

[HELP] Need a Daily Driver for Realme 3 Pro with good battery, fingerprint, xposed ?

Hello,
I have searched entire XDA, but every rom has some kind of bug which makes it unstable for daily run. I am looking for a daily driver, with these things :
1. Good battery backup
2. Fingerprint
3. MAGISK with Xposed
4. No SE Linux bugs
I'm even okay with Color OS, but i have heard Magisk modules don't work with stock Color OS. And GSI doesn't support fingerprint
Any help would be appreciated, thanks
Admins - Bymistake placed in DEV section, kindly delete the post. I have posted in help section now.
https://forum.xda-developers.com/realme-3-pro/help/help-daily-driver-realme-3-pro-battery-t4015985
Samdroid18 said:
Hello,
I have searched entire XDA, but every rom has some kind of bug which makes it unstable for daily run. I am looking for a daily driver, with these things :
1. Good battery backup
2. Fingerprint
3. MAGISK with Xposed
4. No SE Linux bugs
I'm even okay with Color OS, but i have heard Magisk modules don't work with stock Color OS. And GSI doesn't support fingerprint
Any help would be appreciated, thanks
Admins - Bymistake placed in DEV section, kindly delete the post. I have posted in help section now.
https://forum.xda-developers.com/realme-3-pro/help/help-daily-driver-realme-3-pro-battery-t4015985
Click to expand...
Click to collapse
I'll suggest to you goto Telegram..
Even tho dev is running slow for this device
Samdroid18 said:
Hello,
I have searched entire XDA, but every rom has some kind of bug which makes it unstable for daily run. I am looking for a daily driver, with these things :
1. Good battery backup
2. Fingerprint
3. MAGISK with Xposed
4. No SE Linux bugs
I'm even okay with Color OS, but i have heard Magisk modules don't work with stock Color OS. And GSI doesn't support fingerprint
Any help would be appreciated, thanks
Admins - Bymistake placed in DEV section, kindly delete the post. I have posted in help section now.
https://forum.xda-developers.com/realme-3-pro/help/help-daily-driver-realme-3-pro-battery-t4015985
Click to expand...
Click to collapse
For 1 and 2, cRDroid is the best option. I haven't used busybox on it. So don't know about 3 and 4
Best option out of available is CrDroid.
For 3 and 4, my answer is also same as above.
Samdroid18 said:
...
Admins - Bymistake placed in DEV section, kindly delete the post. I have posted in help section now.
Click to expand...
Click to collapse
THREAD CLOSED on request of OP as duplicate of https://forum.xda-developers.com/realme-3-pro/help/help-daily-driver-realme-3-pro-battery-t4015985

Categories

Resources