Related
Hey all. Well i was sitting there today and i was thinking, why is it only that OpenHome, and aHome, etc. are the only programs/os's that have the ability to change the font through the settings, as well as themes ..
Now amongst the thoughts, i was thinking that it couldent be that hard to do, and it had to be open source if its android no? If i knew how to code/disect and insert i am sure that this could be inculded in some roms, and it would make those roms pwn all others.. Right?
If you guys support this .. lets make it happen. If i knew how, i would, i think all we have to do is disect Open Home and find that code, insert it into a kernal/rom and make it a feature in a rom, and than the Font Packs would work as well with annny rom, that would be the issh.
You mean like Stericson's Metamorph?
Its in the themes section.
They have flashable fonts already and in market i think.
yeah metamorph does this flawlessly.
also simple enough to do from the terminal. overwrite DroidSans.ttf and DroidSans-Bold.ttf with your chosen fonts in the /system/fonts folder and reboot. done.
there's a thread for the font....
metamorph does it all
Maybe what he is talking about is something I too would like to see... native support inside the rom a la google...
Easiest way to change your phones if you're rooted (and don't expect it to happen if you're not rooted):
Probably best done from ADB (IMHO) so you can easily recover if you happen to pick a font that borks the visibility on your phone somehow, and also keeps you from having to copy them from the SD card.
## This backs up the current font to a local directory you're in.
adb pull /system/fonts/DroidSans.ttf DroidSans.ttf
## go read-write
adb remount
## replace the font here with whatever font you want.
adb push /windows/fonts/SegoUI.ttf /system/fonts/DroidSans.ttf
## and.... reboot.
adb reboot
This script has only been tested with CM ROM, I cannot guarantee that it will work with other ROMs.
DESCRIPTION
I couldn't decide on one single boot animation to use on my phone, so I thought, why not start every boot with a random animation?
I threw together a simple script that will randomly choose a boot animation zip file from a directory and copy the file to /data/local. The script defaults to using /sdcard/bootanimation as the directory to store all the animations.
INSTALLING THE SCRIPT
Extract 09bootanimation from the zip file, then type the following from your command prompt:
Code:
adb remount
adb push 09bootanimation /system/etc/init.d
adb shell chmod 750 /system/etc/init.d/09bootanimation
If you are using CM 5.0.6 - 5.0.8, you will need to do an additional step. The fstab file is missing, so extract fstab from the zip file and execute the following:
Code:
adb remount
adb push fstab /system/etc
Thanks to godsfilth for figuring out the fstab problem. =)
If you are not using CM ROM, you may have the init.d directory in a different location.
Reminder: Because the script is installed in the system directory, you need to redo all the installation steps after upgrading your ROM.
INSTALLING BOOT ANIMATIONS
Create a directory called bootanimation in the SD card root directory, and put all your animation zip files in the directory. The script will only choose from zip files in the directory.
If you want to change the default directory, just change the variable in the script.
Thanks to godsfilth for getting it to work with SD cards! =)
SELECTING A SPECIFIC ANIMATION
If you want to view a new animation, instead of rebooting repeatedly and hoping that it will be selected at random, you can use the following method.
Create a file called bootanimation.use in the bootanimation directory where you have placed all the zip files. The file should contain a single line with the filename of the boot animation, without the directory path. For example:
Code:
bootanimation-prash.zip
When you want to go back to random animations, simply delete bootanimation.use from the directory.
HELP! I CAN'T GET THIS TO WORK!
If you have problems getting the script to work, grab the logcat of the startup process and post it to pastebin. You can get the logcat output by rebooting the phone and then immediately running
Code:
adb logcat > log.txt
Once the boot animation has started you can press Ctrl-C to stop the log collection. Please include in your post the ROM that you are running.
SAMPLE LIST OF BOOT ANIMATIONS
For those who are looking for some boot animations to choose from, here's a small list of animations from other XDA threads. Feel free to recommend animations, and I'll update this list.
Prash's CyanogenMod 5.0
Qteknology's Nexus animations
Nighthound's Win7 Nexus
Nighthound's BSOD
Nighthound's Qteknology's Splash Inverted
nmeofdst8's Nexus One Red Flame Edition
iDance°-->ra1n's Ubuntu Nexus and Tiesto animations
Droid Eris thread with lots of cool boot animations
FUTURE CHANGES
Eventually I might get motivated enough to write a simple program to simplify the entire process. It would be great if someone has the spare time to do so.
CHANGELOG
Version 1.3
Updated to work with CM 5.0.6 (push fstab to /system/etc) [thanks godsfilth again]
Added option to specify boot animation to use
Added logging output
Version 1.2
Changed filename to 09bootanimation to work with CM Apps2SD.
Version 1.1
Enables storage on SD card [thanks godsfilth!].
Added error checking for no animation files.
Version 1.0
Initial release.
Nighthound said:
I couldn't decide on one single boot animation to use on my phone, so I thought, why not start every boot with a random animation?
I threw together a simple script that will randomly choose a boot animation zip file from a directory and copy the file to /data/local. The script defaults to using /data/local/bootanimation as the directory to store all the animations.
Installing the script
Extract the script from the zip file, then type the following code:
Code:
adb remount
adb push 10bootanimation /system/etc/init.d
adb shell chmod 750 /system/etc/init.d/10bootanimation
Note that I'm running CM5, your ROM may have the init.d directory in a different location.
Installing boot animations
Do this once, the very first time you're using this:
Code:
adb shell mkdir /data/local/bootanimation
After that, use this to copy your animations:
Code:
adb push [i]animation-filename.zip[/i] /data/local/bootanimation
If you want to change the default directory, just change the variable in the script.
My knowledge of the Linux system is limited and I couldn't figure out how to access the sdcard during boot up, so unfortunately all the animations will have to reside in the data partition for now. Would be great if someone could help out with that.
Click to expand...
Click to collapse
Exactly what i was looking for thanks!!!!!!
Anyone else gonna touch this to get it to work off the sdcard?? That would make this so sweet!
good stuff! I altered this a bit to work from the sd card.
edit: I see godsfilth did too...nice
i got it working don't know if theres any negative side effects everything seems to work fine just delete the bootanimation.tmp file when you add new animations
installation is the same as before except I have the boot animations going to /sdcard/bootanimation so put them there
might want to nandroid before installing i did but im paranoid about things like that.
also im not responsable for anything that happens if you flash this file everything runs fine on my phone so i think its stable but all mods run some form of minor risk
also not responsible for worn out sdcards or missed calls/sms sue to the constant rebooting of your phone to show off the animation
Are we supposed to rename each bootanimation.zip with a unique name, or keep the filenames "bootanimation.zip" and make individual directories? Renaming each bootanimation.zip and placing them in /sdcard/bootanimation is not working for me.
godsfilth said:
i got it working don't know if theres any negative side effects everything seems to work fine just delete the bootanimation.tmp file when you add new animations
installation is the same as before except I have the boot animations going to /sdcard/bootanimation so put them there
might want to nandroid before installing i did but im paranoid about things like that.
also im not responsable for anything that happens if you flash this file everything runs fine on my phone so i think its stable but all mods run some form of minor risk
also not responsible for worn out sdcards or missed calls/sms sue to the constant rebooting of your phone to show off the animation
Click to expand...
Click to collapse
overground said:
Are we supposed to rename each bootanimation.zip with a unique name, or keep the filenames "bootanimation.zip" and make individual directories? Renaming each bootanimation.zip and placing them in /sdcard/bootanimation is not working for me.
Click to expand...
Click to collapse
have you tried deleting the temp file that the script generates? I have all different kinds of names for my boot animations so i dont think it matters as long as there all in the same directory
godsfilth said:
have you tried deleting the temp file that the script generates? I have all different kinds of names for my boot animations so i dont think it matters as long as there all in the same directory
Click to expand...
Click to collapse
Well, there was no .tmp file created, and I was using the /sdcard/bootanimation version, which did not work for me. Using the original version works fine. Thanks
Edit: Although, I'd rather have them on sd...I'll keep trying.
Edit2: Still no go on the /sdcard option...wonder if using Desire Rom or apps2sd messes it up? Doesn't seem like it should. The /sdcard script looks fine. Hmmm...?
overground said:
Well, there was no .tmp file created, and I was using the /sdcard/bootanimation version, which did not work for me. Using the original version works fine. Thanks
Edit: Although, I'd rather have them on sd...I'll keep trying.
Click to expand...
Click to collapse
what ROM are you using i'm running CM's latest if you are running CM then try pushing the script again following the directions in the first post just use the sdcard script instead also
i have no idea why the script Nighthound posted works and my sdcard one does not. all i did was edit his script to mount the sdcard load from /sdcard/bootanimation and then unmount the sdcard literally added for lines of text and edited the load directory
EDIT:so you're using the desire rom where does the desire ROM keep its init.d if its not /system/etc then you will need to push the file to wherever the desire rom stores it plus i think desire uses a different format for boot animation since it has sound too
godsfilth said:
what ROM are you using i'm running CM's latest if you are running CM then try pushing the script again following the directions in the first post just use the sdcard script instead also
i have no idea why the script Nighthound posted works and my sdcard one does not. all i did was edit his script to mount the sdcard load from /sdcard/bootanimation and then unmount the sdcard literally added for lines of text and edited the load directory
Click to expand...
Click to collapse
I know. It looks fine and there's no reason why it shouldn't be working. Right now I'm on Manup's NexDesire. I've been back and forth like 3x now and OP script is the only one working for me. Oh well, not a big deal. When I switch ROM's, I'll try your's again. Thanks for the ideas.
Edit for your edit: init.d in this rom is also in /system/etc
Sweet! The sdcard script worked like a champ! Thanks for modifying that. Now I can just keep adding all the coolness without getting bored!
godsfilth said:
i got it working don't know if theres any negative side effects everything seems to work fine just delete the bootanimation.tmp file when you add new animations
installation is the same as before except I have the boot animations going to /sdcard/bootanimation so put them there
might want to nandroid before installing i did but im paranoid about things like that.
also im not responsable for anything that happens if you flash this file everything runs fine on my phone so i think its stable but all mods run some form of minor risk
also not responsible for worn out sdcards or missed calls/sms sue to the constant rebooting of your phone to show off the animation
Click to expand...
Click to collapse
Thanks for the help! I've updated the OP with the new version. By the way, you don't have to delete the temp file because it is regenerated every boot.
Are we supposed to delete the one we have in /system/media? I haven't actually seen a random change. I've seen the same one everytime I reboot.
Beast84 said:
Are we supposed to delete the one we have in /system/media? I haven't actually seen a random change. I've seen the same one everytime I reboot.
Click to expand...
Click to collapse
I've only got the random changing to work using the original script with folder /data/local/bootanimation. That is working flawlessly, however.
overground said:
I've only got the random changing to work using the original script with folder /data/local/bootanimation. That is working flawlessly, however.
Click to expand...
Click to collapse
I got a different animation the first time I booted & now I only see one everytime I boot. I have the stock, cyanogen, win7nexus & both QTeknology's white & black animations but all I see is the win7nexus.
Beast84 said:
Are we supposed to delete the one we have in /system/media? I haven't actually seen a random change. I've seen the same one everytime I reboot.
Click to expand...
Click to collapse
Which version of the script are you using (v1.0, godsfilth's version or v1.1)? And where are you putting the animation files?
overground said:
I've only got the random changing to work using the original script with folder /data/local/bootanimation. That is working flawlessly, however.
Click to expand...
Click to collapse
Are you using any custom ROM?
Nighthound said:
Which version of the script are you using (v1.0, godsfilth's version or v1.1)? And where are you putting the animation files?
Click to expand...
Click to collapse
I'm using 1.1 and all my animations are in /sdcard/bootanimation. Is there a difference between godsfilth's & your 1.1?
Beast84 said:
I'm using 1.1 and all my animations are in /sdcard/bootanimation. Is there a difference between godsfilth's & your 1.1?
Click to expand...
Click to collapse
The only difference is I added an error check in 1.1. Other than that the sdcard mount procedure is the same. From your earlier description, you said that the script copied the animation to /data/local once, and then didn't work again after that? Did you chmod the script after copying it into /system/etc/init.d ?
Nighthound said:
Are you using any custom ROM?
Click to expand...
Click to collapse
Yes, as I mentioned earlier in the thread, I'm on Manup's NexDesire 1.2, which may or may not be the culprit. Was suggested earlier that because the Desire ROMs sometimes call a boot sound in addition to bootanimation, this may screw with it. I haven't really looked into it, but this ROM has no boot sound. I don't know if it is because it is
1. removed the .mp3
2. the portion of the script that calls it is commented out
3. both 1 and 2
I hope 2 or 3 is true, because that would be cleaner.
I'll check it out further when I get a chance.
In the meantime I suggest posting both versions of the script, so it can work for everyone. Thanks Nighthound
Nighthound said:
The only difference is I added an error check in 1.1. Other than that the sdcard mount procedure is the same. From your earlier description, you said that the script copied the animation to /data/local once, and then didn't work again after that? Did you chmod the script after copying it into /system/etc/init.d ?
Click to expand...
Click to collapse
I can't get adb to work properly on my laptop so I actually made an update.zip to get the file in system/etc/init.d. Shouldn't that get it working properly without having to chmod anything? If not, would be nice enough to give me the commands to chmod from terminal? I know it can't be too different from the adb commands but I just wanna make sure I do it right
Updated: July 24/2010 Go to the X10 Theme repo for a listing of uploaded themes.
Thanks to everyone that is helping out and contributing. I also apologize if I rip anything off. If I do please post it and I will definitely correct it.
The usual disclaimer goes with this... Use at your own risk and backup your system before making any changes. You know what to do if you run into problems
I think this is important...
Links for various stuff:
framework-res.apk
/system/app/ folder
startup show (boot animation)
Mms.apk
Phonebook.apk
apps2sd-work in progress?
http://forum.xda-developers.com/showthread.php?p=7037044#post7037044
Many visual aspects of the os and system apps can be changed and surprisingly easily. By default when opening an apk you should look around the res-drawable folders for the pngs to edit. If you have noticed, there are some png's that look like xxx.9.png. To modify these files easily, remove the 9 from the filename and open with your preferred editor. When you are done editing the files save them, open the command prompt and type draw9patch. This should open a window with an arrow in it. Drag your file there and I'm pretty sure it goes into the same folder. That's it.
If you are using a mac use betterzip and take a look here.
You can also use root explorer (I havent tried this myself)
Step 1:
Connect phone to pc, enable usb debugging and open adb. Type:
adb pull /system/framework/framework-res.apk framework-res.apk
That will pull your framework-res.apk to whatever folder is displaying in your command line.
Step 2:
Find the framework-res.apk on your hard drive, right click and open with 7zip.
Step 3:
Use png's here or create your own and dump into the appropriate folder within framework-res.apk.
Step 4:
When you are done editing the files open up adb and type the following command:
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
adb push framework-res.apk /sdcard/framework-res.apk
adb shell dd if=/sdcard/framework-res.apk of=/system/framework/framework-res.apk
That will put the new framework-res.apk on your phone. It should automatically reboot (if not reboot it) and your changes should be applied!
When running the script above you can replace framework-res.apk with whatever you want. For example, Timescape.apk
Remember, it is CASE sensitive I made this problem many times)
If you would like to pull an entire folder put a slash at the end of the last word. For example, adb pull /system/etc /etc"/" (no " in actual script )
Courtesy of corruptfate is the steps to modify the startupshow (post #207)
step 1: open adb shell
step 2: type "adb shell"
step 3: type "su"
step 4: type "mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system"
step 5: type "mkdir system/etc/semc/startupshow"
step 6: exit and redo step 1 - 4
step 7: type "mkdir system/etc/semc/startupshow/default"
step 8: exit and open command prompt again, this time type "ddms"
step 9: look for the default folder in system > etc > semc > startupshow > default
step 10: push the images into that folder
Possible reasons your phone won't boot after modifications:
images anren't stored properly, right format, right size etc.
unpacked apk improperly, use 7zip, it doesn't mess anything up
you signed the package before pushing it- unless you know what you're doing follow the directions to a tee and you should be fine
pushed the package to the wrong directory, /system/framework-res.apk XX, /system/framework/framework-res.apk
I'm sure many other reasons, these were the only ones I encountered
How to get past boot screen:
Use backup framework-res.apk and push that one to your phone. Remember to place that one where the modified one is.
To see if adb sees your phone type adb devices, if a serial number pops up try pushing your original, if not...
Flash your phone again from scratch . Sorry, I don't know any better way yet.
Please post your themes and download themes from the X10 theme repo
The basics:
http://forum.xda-developers.com/showthread.php?t=502010
http://developer.android.com/index.html
http://developer.android.com/guide/developing/device.html
Some Links:
Notification background color
Status bar clock color
Notification font color
Notification bar shortcuts
Edit 9.png's
Install mobile defense as system app through terminal (I haven't tried this yet)
Resigning apps
http://forum.xda-developers.com/showthread.php?t=549109
http://androidforums.com/developer-101/8665-how-signing-roms.html This is the one I have been using. I just noticed its for roms
http://code.google.com/p/android-apktool/ Figured it out but no need for it as of yet
How to modify notification background colors
Some of the files; not sure which is the top band displaying carrier(semc_avctivity_title.9.png??):
statusbar_background.png
status_bar_background.png
status_bar_close_on.9.png
status_bar_header_background.9.png
status_bar_item_background_normal.9.png
They should be in res/drawable-240dpi. Once you find them open them and modify as you wish. Once completed save your changes.
Getting FLAC working, I was wrong, mixed up file folders. Apparently meridian pioneer works. Havent gotten a chance to test for sure yet. I am now trying to manually add flac support to mediascape
Second tutorial: Busting open apks so you can edit xml's!!
So has anyone tried opening up an xml file on their phone to edit only to find incoherent coding. Well I have. So I have stumbled upon a tool called apktool. The tool somehow breaks down the apk into readable xml files. I haven't gotten so far as to test out an edited xml because I wanted to post this so I don't forget how to do it.
1. follow instructions on installing apktool. Unzip the files into your android-sdk-windows/tools folder
2. Put a copy of your framework-res.apk into the same tools folder
3. from command type: java -jar apktool.jar if framework-res.apk
4. Put whatever apk you want to edit into tools folder and type this: java -jar apktool.jar d xxx.apk
5. Look in your tools folder and voila there will be a folder named with whatever apk you worked with.
Third tutorial: Use smali/baksmali to edit services.jar and services.odex
1. follow instructions on downloading and installing smali/baksmali
2. pull these files from your phone and place them into the same folder as smali (should be android-sdk-windows\tools):
code.odex
ext.odex
framework.odex
android.policy.odex
There may be other ones needed that Im missing so if you find this out please let me know
3. place the odex you want to modify into the same folder (android-sdk-windows\tools)
4. from the command line type java -jar baksmali-1.2.3.jar -x services.odex
your pc will work a little bit and when its finished will just show your directory again.
5. minimize that screen and go into the folder you put everything in there should be an out folder. Open it up and all the files to edit will be there!
I haven't recompiled yet but when I do Ill finish this tutorial.
COMMON PROBLEMS:
These are some problems I ran into because I am a noob. I figure it may help a couple people out
1.unable to access apktool.jar/baksmali-1.2.3.jar
Im pretty sure you are in the wrong directory
from the command line type: cd C:\whatever\directory\leadsto\android-sdk-windows\tools\the.jarfileyouaretryingtoaccess
2....
Modification requests:
Custom boot screens-- find your startupshow folder=== SOLVED
custom response to invalid password
Ad hoc support
Disable slide lock
App drawer categorization=== THERE'S AN APP
map hardkeys
cool, gonna try and change the battery indicators
I was able to replace framework-res while the phone was running, but now the phone wont boot.. good thing I made a backup of the original one
xxsashixx said:
I was able to replace framework-res while the phone was running, but now the phone wont boot.. good thing I made a backup of the original one
Click to expand...
Click to collapse
Thats where I'm stuck too. Did you resign the package after modifying it? Im going to try that in a bit.
Does anyone know of a good n00b guide to emulating our phone in eclipse?
@microkiwi can you post how it went?
I did make some new icons in PS, but unfortunately I wasn't able to boot the phone after pushing my new files to it
I also tried to sign it with the autosign (testsign.java) application but no luck...
mikrokiwi said:
I did make some new icons in PS, but unfortunately I wasn't able to boot the phone after pushing my new files to it
I also tried to sign it with the autosign (testsign.java) application but no luck...
Click to expand...
Click to collapse
Cool thanks, hey have you seen an app called metamorph? I just noticed it right now but it seems like stericson automated and simplified the process. Heres a link
http://forum.xda-developers.com/showthread.php?t=591329
Have you tried that app yet?
Yes, I have made a metamorph theme now and everything seems fine, the theme shows up and I can apply it and everything.
But after reboot the phone is still using the old icons
Any other metamorph themes that we can install?
I think for 1.6 only
gavriel18 said:
http://code.google.com/p/android-apktool/ Looks cool I just wish I knew how to use it
Click to expand...
Click to collapse
Apktool is just for everything else but signing ;-)
mikrokiwi said:
Yes, I have made a metamorph theme now and everything seems fine, the theme shows up and I can apply it and everything.
But after reboot the phone is still using the old icons
Click to expand...
Click to collapse
Could you please upload the theme, I'd like to learn how theming works. In the AndroidThemes thread I found only themes for custom roms. THX !
mikrokiwi said:
Yes, I have made a metamorph theme now and everything seems fine, the theme shows up and I can apply it and everything.
But after reboot the phone is still using the old icons
Click to expand...
Click to collapse
Could you please post the .png files from the framework pull? I would like to change the colors and then try to replace them with files in a theme that I found that might work with our phone. The only issue is the resolution of the theme that I had in mind. If this works then we can all make custom themes for our X10 using that theme as a template. Not sure if it will work, but I would like to try.
pietropizzi said:
Could you please upload the theme, I'd like to learn how theming works. In the AndroidThemes thread I found only themes for custom roms. THX !
Click to expand...
Click to collapse
Unfortunately it does not work at the moment, but when I get it to work I will upload it for everyone to use
troyjamz said:
Could you please post the .png files from the framework pull? I would like to change the colors and then try to replace them with files in a theme that I found that might work with our phone. The only issue is the resolution of the theme that I had in mind. If this works then we can all make custom themes for our X10 using that theme as a template. Not sure if it will work, but I would like to try.
Click to expand...
Click to collapse
http://www.mediafire.com/file/kkmhmnyhgyw/framework-res.apk open it with 7zip
Thx man!
mikrokiwi said:
Unfortunately it does not work at the moment, but when I get it to work I will upload it for everyone to use
http://www.mediafire.com/file/kkmhmnyhgyw/framework-res.apk open it with 7zip
Click to expand...
Click to collapse
Tack så mycket!
@microkiwi Thanks for the upload, do you mind if I post that link in the first post?
@brut.all Does it work the same way as autosign? I followed the instructions properly on installing it but when I try to open it a command line pops up for a second (too fast for me to read) and then closes. Am I missing something?
Also do you know if framework-res.apk needs special signing? I'm just trying to figure out why the phone gets stuck at boot after pushing the modified apk.
@pietropizzi I have made one as well it doesn't work but I'll upload it right away. Check out the metamorph thread for some tutorials on theming. It is surprisingly easy.
On another note has anyone gotten to move their apps to the sdcard? I've tried but with no luck..
heres a post I made about it:
http://forum.xda-developers.com/showthread.php?p=7037044#post7037044
Cool ,I'm going to try it tonight. Mind if I add it to the list at the top?
BTW did anyone know mediascape supports wav audio Swwweeeeeetttt
Ok well I don't like the default Asus buttons so I decided to get this http://forum.xda-developers.com/showthread.php?t=1120014
That was on the stock rom. I just flashed the Revolver rom however and noticed the icons were back to normal so I went through the process in the link like before however this time my wallpaper disappeared along with the navbar. I looked in Root Explorer and SystemUI was only a couple of kbs in size so obviously it got corrupted. I kept trying this method with the same result.
How else could I go about getting those buttons? Do I have to mod the SystemUI file manually and put them in, if so, how?
EDIT: Solved it. For anyone else experiencing issues with Metamorph, check out ZipThemer.
I manually add them from the linux command line. You have to use the update command to add them to the zip/apk. Don't sign the new apk after adding them.
unzip -l SystemUI.apk - look in the res folders
zip -ur SystemUI.apk res/blah/blah
for that last line, I just have a res/ directory with all the files that I want to replace in the proper subdirectories.
Good luck! use zip --help or unzip --help if you get stuck.
I have been on XDA for 2 and a half years or so. I have gained a vast amount of knowledge and skills and its all in part due to XDA and the individuals who spend their time helping others who have made this all possible. The list of those to thank is too long. So before you see what I have to offer below, I want to thank everyone around the forums here for your help, or criticism . Without you guys, I never would've learned what I know today.
Most of my hacks for the HD 10 are spread out around several threads. That makes it hard to keep everyone updated when I find or create new goodies. It also makes it hard for users to find these goodies. This thread aims to solve that problem. From now on, I will include, if possible, my tricks and hacks in this thread. This aims to make searching for and installing these modifications quick and simple.
I have created a flash zip that installs all my goodies and hacks I have come up with so far. I just need so others to test it and make sure the installation process works and everything that is installed works. So please report back your findings so I can remove test from the thread.
***IIf this zip doesn't work or if it fails the worst that can happen is you will have to flash back to fresh stock and start all over and re-root. So make note of your Fire OS version before installing this zip. I am not responsible for anything that doesn't work. If you install this zip, you are doing so at your own risk.***
This zip does NOT contain the Google Play Store. By installing this zip, I assume you already have it installed. ViPER4Android requires an extra step or two and SELinux switch. See below.
Requirements:
- HD 10 with Fire OS 5.6.1.0 or 5.6.2.0
- Rooted with Xposed installed and Flash Fire functioning properly. See here to get it up and running.
What this zip includes:
- *ALL* of my framework-res mods including WiFi and location service optimizations.
- My rewritten Settings.apk which also includes all of my mods.
- Stock Basic Dreams and Photo Table screensaver. This was one of my goals when I first signed up on XDA. I knew what needed to be done to get this to work, I just didn't know how. Finally after nearly 4 to 6 months of reading and testing, I was finally able to edit the framework-res.apk to bring you this and other features. I also had to track down a working Basic Dreams and Photo Table APK. That was half the battle. Go to settings -> display settings -> Daydream. You can choose colors, clock or set some custom photos in Photo Table. Tap three dots in upper right to decide when Daydream turns on. (Note: Photo table requires your images be placed in internal storage in the 'Pictures' folder).
- Google Calendar (assuming you have deleted Amazon's calendar).
- DeskClock latest update and APK for Google Clock (assuming you deleted Amazon's clock).
- Google Contacts Sync Adapter (Once installed, you can delete Amazon's contact sync adapter as seen here. Also for non-root users). This allows for a small amount of visual customization when you pull down the notification bar. When you customize your profile in Google Contacts (also included in this zip) with a photo, the icon in the notification panel will change to whatever you upload as your contacts photo.
- Google Contacts (requires sync adapter listed above).
- Google TTS. You can delete PicoTTS in /system/app once Google TTS is installed. It's very outdated. You can also delete both of the Ivona folders in /system/priv-app. Best to delete app data for all three before deleting.
- Latin IME (AOSP replacement for stock keyboard. Will only work when you delete Amazon's keyboard (com.amazon.redstone), any other keyboard you have installed, then perform a factory reset without installing a new one.
- Stock Android Marshmallow boot animation. The zip replaces the bootanimation binary file in /system/bin/bootanimation with one from from @ggow custom ROM for the Fire 7. Amazon had modified the stock bootanimation binary to force the gold 'fire' boot animation. Doing this made it impossible to customize the boot animation. So I replaced it under the assumption the Fire 7 ROM binary is from an AOSP build and is pretty much universal among most custom ROMs. And it worked!
- Gallery3d. Replaces Amazon Photos (You have to delete Amazon Photos on your own) with library injection so it is fully featured. You can edit all images with a full stock of editing options. (does not set lock screen wallpaper. To change lock screen wallpaper, see here. Requires root). I was able to find the APK and libraries in this thread. The flash zip there doesn't work for our devices so I modified the APK to be more tablet friendly, allowing for scrolling and viewing in landscape mode then added the relevant files to this zip. In the APK, I removed the options for a settings menu, because it doesn't function, but the library does a great job at making up for the loss of it.
- CM Browser. I was able to port over this APK along with CM File Manager, CM Wallpapers, Lock Clock and Trebuchet from an official CM Lollipop ROM for the Amazon HD 8.9.
- CM File Manager (Can replace your favorite root explorer).
- CM Wallpapers. Cyanogenmod actually had a few good wallpapers. I wish they had made their own live ones though.
- CM Lock Clock with weather. (Yahoo weather doesn't function. Use Open Weather and set update interval to 30mins).
- Trebuchet Launcher with basic launcher settings. (You have to delete fire launcher on your own for this to take effect. /system/priv-app/com.amazon.firelauncher)
- Google Calculator (assuming you deleted Amazon's)
- Stock Android Live Wallpapers and Live Wallpaper Picker (doesn't include Androids add on wallpapers. For all of Android's stock live wallpaper add ons and stock wallpaper images, see this thread.
What this zip DOES NOT include or do:
- Google Play store is NOT installed. It is best advised to do this manually. Even flashing Gapps doesn't stop you from needing to tweak Secure Settings a little bit.
- Does not delete or remove any files or folders. It does however overwrite some. The framework-res, FireTabletSettings and bootanimation files will all be overwritten.
- Not yet a custom ROM, but it's close.
-Build.prop edits are not included. My WiFi optimizations and ViPER4Android need a few tweaks. Please see the 'build.prop' section below for details.
Installation:
NOTE: If you only wish to install certain packages or tweaks such as ViPER4Android, see instructions below installation guide.
1. Simply place the DragonMods.zip into internal storage.
2. Open Flash Fire and tap the '+' and select Wipe.
3. Make sure ONLY Dalvik Cache and Cache Partition are selected and tap the check mark in the upper right of the pop-up.
4. Tap the '+' again and tap 'Flash Zip or OTA'
5. From internal storage, select my zip package DragonMods.zip.
6. Tap FLASH and wait for everything to happen. This will take upwards of 10 minutes or more, depending on many variables so be very patient.
Install only select packages:
1. Place DragonMods.zip on your PC desktop. For this I use 7zip for Windows. Right click on the zip file and select 7-zip and open as archive.
2. Double click on system folder then double click on the folder you you want to delete. Example: If you do not want to install my framework-res APK, delete the framework folder. If you don't want CM Browser, delete that folder.
3. Once you are happy with your custom installation, replace the zip on your tablet's internal storage and follow installation instructions above.
ViPER4Android:
I have not included this in my zip for a few reasons. The foremost one being it requires you to delete a couple key files so I would rather you make the choice yourself rather than me doing it for you. I confirm it is full operational and functional and doesn't force close once installed properly. If you aren't convinced, just activate the notification.
1. Download the V4A2.3.4.0 Lollipop.zip provided at the Google Drive link below or go to this thread and download it. Make sure Selinux switch is installed, set to permissive with notification enabled. Also make sure BusyBox is installed.
2. On your tablet, go to /vendor or /system/vendor and tap etc.
3. Back up both of the audio files, audio_effects.conf and audio_policy.conf then delete them from the folder
4. Go to storage -> downloads and tap on the V4A2.3.4.0 Lollipop.zip, system, etc, and extract the two .conf files.
5. Go to the folder they were extracted into and copy both of them to /system/etc, overwriting the ones that are located there. Set the permissions (rw-r--r--) and reboot.
6. Go to downloads again, tap the V4A2.3.4.0 Lollipop.zip and system, app and extract the APK.
7. Create a folder in /system/app titled 'ViPER4Android'. Rename the APK 'ViPER4Android.apk' and paste it into the folder.
8. Set folder permission rwxr-xr-x, APK permission rw-r--r-- and reboot.
9. Open App and follow instructions. Tap upper right for menu and set UI to expert.
build.prop edits:
1. ViPER4Android needs a few tweaks to the build prop. If these variables and values already exist in your build.prop, please change them to the ones below. You can use Build Prop Editor or a root file explorer to make the edit:
Code:
Ipa.decode=false
tunnel.decode=false
lpa.use-stagefright=false
2. The WiFi needs a tiny bit more tweaking here too. Locate the following line in /system/build.prop and add the value to it as seen below (there is currently no value set and the best ones are 1, 6 or 11. You can use any number as long as it's 11 or less.
Code:
ro.wifi.channels=11
3. Locate the following lines in your build.prop. Back them up to a text file then delete both lines (numbers might be different):
Code:
wifi rssi->bar thresholds
persist.wifi.rssi.thresholds=-84,-75,-66,-55
Downloads:
DragonMods.zip (the main zip you need) - Current as of November 16, 2018
DragonMods5-6-2-0.zip (for users on FireOS 5.6.2.0)
V4A2.3.4.0_Lollipop.zip
That's all for now. This includes pretty much every hack, trick and tweak I have been able to achieve on these tablets so far. I hope you enjoy all of these and watch out for more of my hacks. Thank you everyone for making all of this possible! Don't forget to hit the thank button
Change Log
- November 22, 2018: Updated links to reflect the following: Fixed issue with Trebuchet launcher missing from zip by readding it to the folder. I don't know How I missed that. Replaced google Clock with correct APK. I meant to put in the DeskClock available from the Play Store. If anyone would like a zip containing the CM/AOSP DeskClock that changes colors as the day and night change, let me know and I will upload the APK. The reason for this mess: I used the wrong zip template I have for this package. The one with the mess was intended for my personal device. My apologies.
Problems:
-If you delete Amazon photos, when you tap settings, display settings, wallpaper, it will kick you back to main settings. Solution: download Amazon photos from the play store as a user app then do this:
Code:
adb shell
su
pm disable com.amazon.photos
pm clear com.amazon.photos
.
Function returns.
not sure how to install this
darkfortedx said:
not sure how to install this
Click to expand...
Click to collapse
Flash it in flash fire...says that in the OP
Be advised
I just downloaded it and realized I didn't put th right folder in for Trebuchet launcher so the folder is empty. So don't flash this zip until I can fix it when I get home later.
Update November 22, 2018 1:42PM:
- Fixed issue regarding launcher. See change log at the end of the OP.
after changing the permissions for /system/vendor/etc to rw-r-r and rebooting, get the boot screen then boot to quick flash on desktop then to black, can only get the power down window to show when holding power. I'm trying to change the permissions back in adb. . can you please send code to do this correctly? if this is the correct approach. i backed up the 2 files in es file explored back up folder.
I got it....
adb shell
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
chmod 755 /system/vendor/etc
this worked... took me a while to figure it out. But it's all part of learning!
---------- Post added at 01:37 AM ---------- Previous post was at 01:33 AM ----------
I missed that it was for the two files not the folder lol....
nikothebarber said:
I got it....
adb shell
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
chmod 755 /system/vendor/etc
this worked... took me a while to figure it out. But it's all part of learning!
---------- Post added at 01:37 AM ---------- Previous post was at 01:33 AM ----------
I missed that it was for the two files not the folder lol....
Click to expand...
Click to collapse
I have an update of this I'll upload later. I just want to make sure everything works as advertised. Apologies if not. I made a stupid mistake earlier that I fixed but might have missed a small thing or two.
Sent from my MotoG3 using XDA Labs
When I tried to flash it if flashfire, it will juz stuck in the first black screen for over 15 mins.
I can juz simply quit the app and everything remains the same and work fine though.
What would possibly be the problem?
@DragonFire1024
Tried to Install ViPER4Android with the steps and files you linked but was unsuccessful. When I bring up the Driver status and they all say no to Enabled. It already prompted me to install drivers which I did and re booted and still no go. I'm familiar with installing ViPER4Android and have it installed on my phone but not able to get it going in HD10. This tablet needs some way to higher the sound, sound on this tablet SUCKS. Any help would be greatly appreciated.
Touchpad64gb said:
Tried to Install ViPER4Android with the steps and files you linked but was unsuccessful. When I bring up the Driver status and they all say no to Enabled. It already prompted me to install drivers which I did and re booted and still no go. I'm familiar with installing ViPER4Android and have it installed on my phone but not able to get it going in HD10. This tablet needs some way to higher the sound, sound on this tablet SUCKS. Any help would be greatly appreciated.
Click to expand...
Click to collapse
Sorry I've been very sick the last several days and have spent most of it in bed. Until I can look and see what's wrong, I can suggest you try 'volume boost by goodev' on the play store. You may need to make it a system app though.
Sent from my MotoG3 using XDA Labs
jeffreyyip314 said:
When I tried to flash it if flashfire, it will juz stuck in the first black screen for over 15 mins.
I can juz simply quit the app and everything remains the same and work fine though.
What would possibly be the problem?
@DragonFire1024
Click to expand...
Click to collapse
Flash fire will take approx. 10+ mins sometimes to go through the files then about the same time until the red flash fire bar appears at the top. With flash fire you just have to wait.
Sent from my MotoG3 using XDA Labs
DragonFire1024 said:
Sorry I've been very sick the last several days and have spent most of it in bed. Until I can look and see what's wrong, I can suggest you try 'volume boost by goodev' on the play store. You may need to make it a system app though.
Sent from my MotoG3 using XDA Labs
Click to expand...
Click to collapse
Thanks for your response, get some rest and I'll patiently wait to see what you come up with...Thanks again
Touchpad64gb said:
Thanks for your response, get some rest and I'll patiently wait to see what you come up with...Thanks again
Click to expand...
Click to collapse
Try deleting the viper folder if you installed it via a file explorer. Reboot then install viper as a regular app. Don't open it. In a root file explorer go to /data/app and copy viper folder to /system/app then reboot.
Sent from my MotoG3 using XDA Labs
DragonFire1024 said:
Try deleting the viper folder if you installed it via a file explorer. Reboot then install viper as a regular app. Don't open it. In a root file explorer go to /data/app and copy viper folder to /system/app then reboot.
Sent from my MotoG3 using XDA Labs
Click to expand...
Click to collapse
I did that the first time. I had to enable Selinux Switch and enable Permissive which it seems like you have to enable each time you want to use Viper. The Driver Status now says NEON enabled, Enabled=Yes, Status=Normal, Audio Format= Supported but it still sounds like it makes no difference in boost in volume. The App you suggested Volume Booster works great. On my phone I can notice the difference on Volume quality and boost but not on the HD10 using Viper. What settings are you using? Maybe it's the settings.
Touchpad64gb said:
I did that the first time. I had to enable Selinux Switch and enable Permissive which it seems like you have to enable each time you want to use Viper. The Driver Status now says NEON enabled, Enabled=Yes, Status=Normal, Audio Format= Supported but it still sounds like it makes no difference in boost in volume. The App you suggested Volume Booster works great. On my phone I can notice the difference on Volume quality and boost but not on the HD10 using Viper. What settings are you using? Maybe it's the settings.
Click to expand...
Click to collapse
Did you rename the audio.conf files in vendor?
Sent from my MotoG3 using XDA Labs
DragonFire1024 said:
Did you rename the audio.conf files in vendor?
Sent from my MotoG3 using XDA Labs
Click to expand...
Click to collapse
No, I didn't see any instructions to do so. Was I supposed to?
Touchpad64gb said:
No, I didn't see any instructions to do so. Was I supposed to?
Click to expand...
Click to collapse
Yes. Rename them. But you should do it before installing viper.
Sent from my MotoG3 using XDA Labs
DragonFire1024 said:
Yes. Rename them. But you should do it before installing viper.
Sent from my MotoG3 using XDA Labs
Click to expand...
Click to collapse
The original files were named the same as the files copied over that's why you have to allow it to overwrite. Original files and copied files were both named audio_effects.conf & audio_policy.conf. I also edited the build prop entries you mentioned. Can you share your build prop file so I can compare your entries to mine? What were the names you change audio_effects.conf & audio_policy.conf to?
Touchpad64gb said:
The original files were named the same as the files copied over that's why you have to allow it to overwrite. Original files and copied files were both named audio_effects.conf & audio_policy.conf. I also edited the build prop entries you mentioned. Can you share your build prop file so I can compare your entries to mine? What were the names you change audio_effects.conf & audio_policy.conf to?
Click to expand...
Click to collapse
Just put a _ at the end of .conf. I didn't add the removal of the vendor files in the zip and I think I stated that in the OP.
Sent from my MotoG3 using XDA Labs