I want to add flashable zip contents to my aosp build. It contains some folders (check below image) with framework and build.prop addons. I don't know where to place these files. Although I've placed priv-app folder contents to packages/apps/here with each .mk file in it. Can any Developer help!
http://i63.tinypic.com/b6syyr.png
You place the folders normally like you place it in an existing rom using root explorer.
Basics:
What your updater script does is move the complete system folder to system partition
There is nothing such in the script which copies files individually from a given folder to destination
So if you want to copy something inside priv-app , place desired apk's in priv-app
If you want to do some symlinking or change permission , head to updater-script and edit it using Notepad++ only..
Good Luck Dev ,
Cheers
Related
Hey
How can I change the icons of Android, Apps etc?
Maybe i have to edit the .kdz-file / system.img-file?
Which programs do i need?
Thank u!
You have to edit the /res folder in the apk file.
Joost
extract the framework-res.apk file from your rom via root explorer then use this to extract the contains from the framework file and you can also use that tool to repack the framework file
APK Manager
http://forum.xda-developers.com/showthread.php?t=695701
Adb pull the app then with 7zip extract. Look in res/drawable-mdpi and you will see all images in the apk. Look for icon and replace.
Repack all files in a zip then rename zip to apk. Adb push the apk.
MARK
I have a png of a dock and I want it in my MIUI theme but how do I replace the dock thats already in the .mtz?
You would have to use apk manager and swap out the img
Change the mtz to zip and extract. Take the com.android.launcher file and add a zip extension, then extract. In the res/drawable-hdpi folder remove the hotseat_background.png that's there with yours. Be sure it's named and sized correctly. Zip that folder back up and remove the zip extension. Delete the com.android.launcher file in the theme folder and replace it with the edited version. Zip the theme folder and then change zip to mtz again.
You can also avoid zipping and unzipping by using 7zip. Just open the archive and swap files.
Here is the compatibility file to add in to the kitchen. Here is also the new updated SU files to give root to the ROM. Here is also a plugin to add "Ad Free Hosts"
Unpack the folders withing the "Kitchen" folder to your root folder. Allow it to overwrite the files. It will add the stuff I specified.
Hopefully it all works and you guys can get started!
Credits to:
dsixda for making the kitchen
Chainfire - for his SuperSU files
Note 5 Touchwiz For 5.1.1 Lollipop.It Fully Work On S6 Port Rom,Also Work On Stock.
Stock Odex Users,Delete Your Arm Folder.
Installation
Extract The Zip and put the apk in system/priv-app/TouchwizHome_MR1 and the libs in system/priv-app/TouchwizHome_MR1/lib/arm, then set correct permissions and reboot.
If Not Work,Delete Old ToucwizHome Folder From System/APP And Copy The New Extracted Folder To System/App,Then Set Correct Permissions,don't forget to give permissions for the lib folder and the lib files
Folder Permission:-rwxrxrx
Apk Permissions:-rwrr
lib Permission:-rwrr
hope you'll like it......
All credit goes to @Extreme_Ninja2099 and this post. Thanks so much
This method seems to work best for changing bootanimations on the OP8/Pro.
How to add your own bootanimation:
Download [Magisk]OPGoogle.zip
On computer, "Open Archive" of this zip with 7zip or similar program
Navigate to system>product>media in with this open
Pull bootanimation of your choice into this folder (must be named "bootanimation.zip")
Make sure it is similar ratio/description as original bootanimation in this folder!
Go back and make sure the archive is saved.
Now navigate to root of this zip and open module.prop in an txt editor (I use VSCodium but many will work like notepad++, etc)
Change information here to your own and
Save it somewhere on your computer before pulling it into the open archive to replace the one in it
Navigate back and make sure to archive saves and close
Now you have a flashable bootanimation module for OP8/Pro
The attached bootanimation is a Google/Pixel BootAnimation (black). Enjoy! ^o^
Again, big thanks to @Extreme_Ninja2099 . Hope they don't mind me making this guide lmk