Related
Some people aren't sure how to create a flashable zip. So here is a template zip file.
Instructions add your APK files to the appropriate directory within the zip.
ie framework-res.apk would go in system/framework/
SystemUI.apk would go in system/app/
Vigor_VZW_bootanimation.zip would go in system/customize/resource/
*You may need to create directories within the zip*
lol nice idea i have never thought about making one for people I forget people dont know how
This could be very useful for people who are new to theming and from development and who are still learning how to sign zips.
Nice work and good idea.
Sent from my ADR6425LVW using XDA App
ljbaumer said:
This could be very useful for people who are new to theming and from development and who are still learning how to sign zips.
Nice work and good idea.
Sent from my ADR6425LVW using XDA App
Click to expand...
Click to collapse
Agreed. This is pretty sweet and actually an idea I was going to ask someone for once (I had no idea how to do these).
And MrSmith, now I can try to get all the boot anims updated with flashables also so that everyone will have different options. Thanks!!
Thanks for dropping this. Already have one, but this helps anyone trying to learn. You may have given the next big developer a good first tool. Congrats.....
Sent from my ADR6425LVW using Tapatalk
Thanks. I'll give this a go on cleanrom.
Sent from my ADR6425LVW using xda premium
Is this just the required directories for theming or does it include the ones required to make a flashable ROM?
ShaneMA said:
Is this just the required directories for theming or does it include the ones required to make a flashable ROM?
Click to expand...
Click to collapse
this is just a flashible zip only you will need to add your files to the right folders to make it theme
is there a list of the folders? for example what folders should i make to add ringtones to the ones that are already on my phone? how about notifications, wallpapers, etc.?
bal1985 said:
is there a list of the folders? for example what folders should i make to add ringtones to the ones that are already on my phone? how about notifications, wallpapers, etc.?
Click to expand...
Click to collapse
The three things you've listed are items that can be freely transferred via USB. This is more for theme elements and applications.
However to answer your question, stock ringtones and notifications are in /system/media/audio/ringtones and /system/media/audio/notifications . The stock wallpapers are stored in /system/customize/resource.
MrSmith317 said:
Some people aren't sure how to create a flashable zip. So here is a template zip file.
Instructions add your APK files to the appropriate directory within the zip.
ie framework-res.apk would go in system/framework/
SystemUI.apk would go in system/app/
Vigor_VZW_bootanimation.zip would go in system/customize/resource/
*You may need to create directories within the zip*
Click to expand...
Click to collapse
Good idea.. I have my own templates I use. Never thought to post.. kinda nervous that someone out there would brick their phone and blame me...been busy as hell past month, hopefully soon I'll get some time to port over some of my previous work over to the rezound, since now all the issues with compiling and decompiling have been figured out.. I got some catching up to do
Sent from my ADR6425LVW using Tapatalk
Mr. Smith,
So if I wanted to make a flashable zip of say the market apk or root explorer that I can keep on the root of my SD card so if for some reason the rom I flash is missing gapps. Would I just make a folder called data with a subfolder called app and then it would get installed in data app ? Then drop the apk within the app folder and resign using android signer ?
I just had that happen while trying to flash the anthrax kernel , for some reason I lost my market apk and since it was a fresh flash I had no access to a file explorer. So ended up googling the commands to adb push the market apk to system. It worked, but made me think if I had my own flashable market zip I could have just flashed that and been up and running easier .
mjh68 said:
Mr. Smith,
So if I wanted to make a flashable zip of say the market apk or root explorer that I can keep on the root of my SD card so if for some reason the rom I flash is missing gapps. Would I just make a folder called data with a subfolder called app and then it would get installed in data app ? Then drop the apk within the app folder and resign using android signer ?
I just had that happen while trying to flash the anthrax kernel , for some reason I lost my market apk and since it was a fresh flash I had no access to a file explorer. So ended up googling the commands to adb push the market apk to system. It worked, but made me think if I had my own flashable market zip I could have just flashed that and been up and running easier .
Click to expand...
Click to collapse
You got it. As long as you get the structure down right, flashing the zip will drop the files in the proper directory on your phone/device.
What about file permissions and owner? How do we set that in the zip (eg. if I need to flash a file to /system that requires permissions 644, owner 0/0.
Nighthound said:
What about file permissions and owner? How do we set that in the zip (eg. if I need to flash a file to /system that requires permissions 644, owner 0/0.
Click to expand...
Click to collapse
Android handles that. However you can edit the script : META-INF/com/google/android/updater-script to make whatever changes you need. So you could add a line: run_program("/sbin/busybox", "chmod", "644", "xxx_file");
MrSmith317 said:
Android handles that. However you can edit the script : META-INF/com/google/android/updater-script to make whatever changes you need. So you could add a line: run_program("/sbin/busybox", "chmod", "644", "xxx_file");
Click to expand...
Click to collapse
Ahh, I googled for edify scripts and found there is a set_perm command which does exactly what I need. Thanks!
Nighthound said:
Ahh, I googled for edify scripts and found there is a set_perm command which does exactly what I need. Thanks!
Click to expand...
Click to collapse
haha that too.
MrSmith317 said:
Come a day there won't be room for naughty men like us to slip about at all.
This job goes south, there well may not be another.
So here is us, on the raggedy edge. Don't push me, and I won't push you.
Dong le ma?
Click to expand...
Click to collapse
Shiny!
MrSmith317 said:
Some people aren't sure how to create a flashable zip. So here is a template zip file.
Instructions add your APK files to the appropriate directory within the zip.
ie framework-res.apk would go in system/framework/
SystemUI.apk would go in system/app/
Vigor_VZW_bootanimation.zip would go in system/customize/resource/
*You may need to create directories within the zip*
Click to expand...
Click to collapse
Quick Q. is it possible to create 1 flashable zip that would flash more than 1 file into different directories I.e a file into System/app and another in System/Framework ?
funnyangrykid said:
Quick Q. is it possible to create 1 flashable zip that would flash more than 1 file into different directories I.e a file into System/app and another in System/Framework ?
Click to expand...
Click to collapse
Yeah man, that's what this blank flashable zip does
You can put as many files in the 'app' or 'framework' folder and it will flash them all
HI Developer,
Could you tell me how to change animaton when charge while device are switch off ?
Because my device not showing animation properly when it charge
I am using live with walkman custom rom ,root and unlock bootloader.
Big hope to developer.
Open the zip file of your ROM.
Go to /system/semc/chargemon/data
You should see some .png files.
iONEx said:
Open the zip file of your ROM.
Go to /system/semc/chargemon/data
You should see some .png files.
Click to expand...
Click to collapse
Can i change it ? i hope you have example file for xperia live
I've attached png's from CM7.2.
Extract it and replace it in your ROM zip. It should work ok.
You can always restore the original.
And always do a nandroid backup before messing with system files
Thank you so much i will try it .
Sent from my WT19i using XDA
iONEx said:
I've attached png's from CM7.2.
Extract it and replace it in your ROM zip. It should work ok.
You can always restore the original.
And always do a nandroid backup before messing with system files
Click to expand...
Click to collapse
it work thanks
Firstly, thanks to ayyu3m and others too for the initial test.
Just install widget apks as how you install a normal apk.
All the 11 additional widgets attached
Thanks to ayyu3m and nlooooo for the screenshots
Unable to install.
ckpv5 said:
Before I start to upload all other htc widgets which is not in Desire X stock ROM, can someone test this one first.
Just install it as how you install a normal apk and advise if it working as it should.
If it works, I will upload more Htc widgets.
Click to expand...
Click to collapse
Application Not Installed
I wonder why
Ahh... maybe it need to be re-signed to install as normal apk.
Please retry as I uploaded a re-signed apk.
ckpv5 said:
Ahh... maybe it need to be re-signed to install as normal apk.
Please retry as I uploaded a re-signed apk.
Click to expand...
Click to collapse
Needs to be installed a system app make a flashable zip and flash through CWM
The Android Manual said:
Needs to be installed a system app make a flashable zip and flash through CWM
Click to expand...
Click to collapse
That's for unsigned apk.
This is a re-signed apk, can be installed on unrooted stock ROM or rooted ROM.
Still nothing. Manual is on point, it needs to be put on system partition.
This was downloaded from HTC HUB, so if it get installed after resigned, and you can't see the widget in the widget list, my guess is it may not work for Sense 4.1 lite.
INSTALL_FAILED_SHARED_USER_INCOMPATIBLE
You can't install it when it's not signed with an HTC certificate.
cobje said:
INSTALL_FAILED_SHARED_USER_INCOMPATIBLE
You can't install it when it's not signed with an HTC certificate.
Click to expand...
Click to collapse
Ahh..ok... nothing much I can do here to help; unless someone know how to make this widget installable on unrooted DX then I can provide total of 11 additional widgets.
I decompiled the APK, removed the shared uid part, compiled it, pushed it to /system/app and the widget didn't show up. I signed it with my own certificate, pushed it to /system/app and still no luck.
Use a flashable zip
cobje said:
I decompiled the APK, removed the shared uid part, compiled it, pushed it to /system/app and the widget didn't show up. I signed it with my own certificate, pushed it to /system/app and still no luck.
Click to expand...
Click to collapse
Use CWM because the Desire X does not allow you to touch the System Partition using a ROOT explorer even with Root Explorer
The Android Manual said:
Use CWM because the Desire X does not allow you to touch the System Partition using a ROOT explorer even with Root Explorer
Click to expand...
Click to collapse
There's an app called Aroma File Manager made by Amarullz, it is made to be used from recovery as a flashable zip, you just start it like you flash a zip from sd card. Maybe that can be used if there's a problem making flashable zip.
The Android Manual said:
Use CWM because the Desire X does not allow you to touch the System Partition using a ROOT explorer even with Root Explorer
Click to expand...
Click to collapse
Sorry, didn't mention it but I used ADB in recovery. I think I've gotten used to it, so I don't say it anymore.
I personally hate flashable ZIPs, I'd rather do it manually.
What about the version code and version name in AndroidManifest.xml
I have edited a few and will let you all know in a while
Is this the widget you guys are looking for? (left)
The Android Manual said:
Is this the widget you guys are looking for? (left)
Click to expand...
Click to collapse
Yeah. How is it working in your rom man? We need all other widgets also.
ayyu3m said:
Yeah. How is it working in your rom man? We need all other widgets also.
Click to expand...
Click to collapse
I told you guys use CWM make a flashable zip lol or just flash my ROM
I'll make one for you when I get home
and ckpv5 peace
The Android Manual said:
I told you guys use CWM make a flashable zip lol or just flash my ROM
I'll make one for you when I get home
and ckpv5 peace
Click to expand...
Click to collapse
I am still using stock man Will i be able to flash the zip via stock recovery?
ayyu3m said:
I am still using stock man Will i be able to flash the zip via stock recovery?
Click to expand...
Click to collapse
Can you retest the one that I re-uploaded on OP ? It's the same one that you tested in PM; just to make sure again it does work.
hi
when i had "desire c" with arabic rom i change driodkufi-regular.ttf with driodnaskh-regular.ttf and change permision then my arabic font changed but now in desire x , when i do that (driodnaskh-regular.ttf=358kb and droidkufi-regular.ttf=79kb) and restart my phone not any thing changed and when check the /system/fonts i see that droidkufi-regullar.ttf comeback to 79kb again ,
is there any body know how can fix the fonts that after restart phone dont replace that with the orginal font?
thanks
HTC implemented some sort of security to their newer devices where you cannot write to the system as the kernel will reset it.
What you can do is adb push the font in recovery, or make a flashable zip for the font and flash it in recovery.
Basic thing is any change to system, to make it work properly you need to do it at recovery level
ckpv5 said:
HTC implemented some sort of security to their newer devices where you cannot write to the system as the kernel will reset it.
What you can do is adb push the font in recovery, or make a flashable zip for the font and flash it in recovery.
Basic thing is any change to system, to make it work properly you need to do it at recovery level
Click to expand...
Click to collapse
thanks for guide
is there any way or references or others that i can make a .zip file to flash font from recovery
thanks again
Here is the stock fonts for my ROM which is a flashable zip.
What you can do is open it with an archiver (I use 7-zip), and replace it with all the fonts from your current ROM and name it as stock fonts (you need this if something goes wrong as not all fonts may work for your device).
Then make another one and put in all the fonts that you want to change and name it as modded fonts zip.
So flash the modded fonts zip and see how it goes.
If some fonts make your device stuck, reflash back your stock fonts zip.
ckpv5 said:
Here is the stock fonts for my ROM which is a flashable zip.
What you can do is open it with an archiver (I use 7-zip), and replace it with all the fonts from your current ROM and name it as stock fonts (you need this if something goes wrong as not all fonts may work for your device).
Then make another one and put in all the fonts that you want to change and name it as modded fonts zip.
So flash the modded fonts zip and see how it goes.
If some fonts make your device stuck, reflash back your stock fonts zip.
Click to expand...
Click to collapse
hi master :good:
I use your .zip file and 7zip too , delete all fonts and just simply put my font in zip file and flash it , every thing is well and nice , and the font changed :good:
really thanks
babakhad said:
hi master :good:
I use your .zip file and 7zip too , delete all fonts and just simply put my font in zip file and flash it , every thing is well and nice , and the font changed :good:
really thanks
Click to expand...
Click to collapse
Glad it helps
babakhad said:
hi master :good:
I use your .zip file and 7zip too , delete all fonts and just simply put my font in zip file and flash it , every thing is well and nice , and the font changed :good:
really thanks
Click to expand...
Click to collapse
Could you please elaborate the steps. I would like to do it too.
mintyx said:
Could you please elaborate the steps. I would like to do it too.
Click to expand...
Click to collapse
Use Aroma File Manager from recovery to do the same copying you do when the phone is on. You have he link in DesX Index.
mintyx said:
Could you please elaborate the steps. I would like to do it too.
Click to expand...
Click to collapse
ok the steps that i did:
1- install 7zip
2- open Stock_fonts.zip with 7zip(just open not unzip)
3- in sytem/fonts folder i delete every fonts
4- drag my own font (that i like to replace with driodkufi-regullar.ttf on my phone) to /system/fonts
5- accept the warnning
6- down
7- flash zip file with cwm on my phone
ckpv5 said:
HTC implemented some sort of security to their newer devices where you cannot write to the system as the kernel will reset it.
What you can do is adb push the font in recovery, or make a flashable zip for the font and flash it in recovery.
Basic thing is any change to system, to make it work properly you need to do it at recovery level
Click to expand...
Click to collapse
I found a way to defeat the write protection on other HTC devices. It might work on this one device too, if somebody wants to help, send me a pm.
babakhad said:
ok the steps that i did:
1- install 7zip
2- open Stock_fonts.zip with 7zip(just open not unzip)
3- in sytem/fonts folder i delete every fonts
4- drag my own font (that i like to replace with driodkufi-regullar.ttf on my phone) to /system/fonts
5- accept the warnning
6- down
7- flash zip file with cwm on my phone
Click to expand...
Click to collapse
hello babakhad, I have some question..
I see there's so many fonts on the Stock_fonts.zip, so I just have to delete it all and put only one font that i want to use? Only one .ttf file? If I only put one .ttf file, will the font in the lockscreen change too?
Hey guys, how can I do this? I used some tool to deodex the files but failed to make a flashable zip, could anyone point me out? thanks
LukBoy99 said:
Hey guys, how can I do this? I used some tool to deodex the files but failed to make a flashable zip, could anyone point me out? thanks
Click to expand...
Click to collapse
Use lordroid tool to deodex. It will deodex the rom as well as create flashable zip
vikash1994b said:
Use lordroid tool to deodex. It will deodex the rom as well as create flashable zip
Click to expand...
Click to collapse
i have some odex.xxx folder in /system such as odex.priv-app, should I delete those after or ignore?
LukBoy99 said:
i have some odex.xxx folder in /system such as odex.priv-app, should I delete those after or ignore?
Click to expand...
Click to collapse
Those will be deleted once u flash the zip.
Just replace this delete.sh file in the flashable deodexed zip.it will delete the odex files,sqsh file.
Delete.sh-https://drive.google.com/file/d/0B_ACsHR2ThfsalVfbWJ4QWotTnM/view?usp=drivesdk
vikash1994b said:
Those will be deleted once u flash the zip.
Just replace this delete.sh file in the flashable deodexed zip.it will delete the odex files,sqsh file.
Delete.sh-https://drive.google.com/file/d/0B_ACsHR2ThfsalVfbWJ4QWotTnM/view?usp=drivesdk
Click to expand...
Click to collapse
alright thanks, im doing it now ill tell you how it goes.
vikash1994b said:
Those will be deleted once u flash the zip.
Just replace this delete.sh file in the flashable deodexed zip.it will delete the odex files,sqsh file.
Delete.sh-https://drive.google.com/file/d/0B_ACsHR2ThfsalVfbWJ4QWotTnM/view?usp=drivesdk
Click to expand...
Click to collapse
Failed to deodex photos, should I just do it anyway?
[20:29:51][stdError] Photos.odex contains multiple dex files. You must specify which one to disassemble with the -e option
[20:29:51][stdError] Valid entries include:
[20:29:51][stdError] /system/app/Photos/Photos.apk
[20:29:51][stdError] /system/app/Photos/Photos.apk:classes2.dex
[20:29:51]It's exit value was : 1
[20:29:51][Deodexer][E]Failed at baksmali Photos.odex
[20:29:51][Apkworker][E]Photos.apk Failed to deodex
LukBoy99 said:
Failed to deodex photos, should I just do it anyway?
[20:29:51][stdError] Photos.odex contains multiple dex files. You must specify which one to disassemble with the -e option
[20:29:51][stdError] Valid entries include:
[20:29:51][stdError] /system/app/Photos/Photos.apk
[20:29:51][stdError] /system/app/Photos/Photos.apk:classes2.dex
[20:29:51]It's exit value was : 1
[20:29:51][Deodexer][E]Failed at baksmali Photos.odex
[20:29:51][Apkworker][E]Photos.apk Failed to deodex
Click to expand...
Click to collapse
Yes,just proceed and create zip
After u flash and reboot, photos force close so u just need to ignore it and update it via playstore then it wont happen similarlt for other apps like drive and maps afaik.
Btw u did move the odex files to respective folders right? If u didnt then u will have to do it and then deodex it orelse phone will bootloop.
vikash1994b said:
Yes,just proceed and create zip
After u flash and reboot, photos force close so u just need to ignore it and update it via playstore then it wont happen similarlt for other apps like drive and maps afaik.
Btw u did move the odex files to respective folders right? If u didnt then u will have to do it and then deodex it orelse phone will bootloop.
Click to expand...
Click to collapse
what do you mean move? I just copied from system: framework, apps, priv-app and build.prop and moved semcxxx which was 3 files from framework to apps and after finished back to framework.
LukBoy99 said:
what do you mean move? I just copied from system: framework, apps, priv-app and build.prop and moved semcxxx which was 3 files from framework to apps and after finished back to framework.
Click to expand...
Click to collapse
Oh,then its fine.
If u had extracted system folder from system.sin then u need to move the odex files to respectively folder.
Have u flashed the deodexed zip?
vikash1994b said:
Oh,then its fine.
If u had extracted system folder from system.sin then u need to move the odex files to respectively folder.
Have u flashed the deodexed zip?
Click to expand...
Click to collapse
unfortunately DownloadAgent has stopped. this message is being spammed and every restart i need to optimize 307 apps...
LukBoy99 said:
unfortunately DownloadAgent has stopped. this message is being spammed and every restart i need to optimize 307 apps...
Click to expand...
Click to collapse
Don't know why is popping for u.it never happened with me. If u want i can upload my deodex patch.
Ok got rid of that apparently by moving it (bootinfo.apk) to sd card then back and restarting, now anyawy to test deodex is success?
vikash1994b said:
Don't know why is popping for u.it never happened with me. If u want i can upload my deodex patch.
Click to expand...
Click to collapse
Ok it's ****ing back,,, can you give me your /system/app/bootinfo folder? it's that.
LukBoy99 said:
Ok it's ****ing back,,, can you give me your /system/app/bootinfo folder? it's that.
Click to expand...
Click to collapse
Here-https://drive.google.com/file/d/0B_ACsHR2ThfsZk02SDg4cUZmTWs/view?usp=drivesdk
vikash1994b said:
Here-https://drive.google.com/file/d/0B_ACsHR2ThfsZk02SDg4cUZmTWs/view?usp=drivesdk
Click to expand...
Click to collapse
Still download agent has stopped..
Ok on 2nd thought can you give me camera, camera common, and video apps? (Video has camera icon not video viewer)