[TWEAK] kuro tweak for ICS - Sony Xperia Miro, Tipo (Dual), J, E

Yaa...I know. you can find a lot of tweak in this forum. I just want to share the tweak I've made for you. this tweak is an enhanced version this old tweak http://forum.xda-developers.com/showthread.php?t=1714217. that tweak is for GB. I'm not recommend you to install that stuff to your system. if you're using ICS device, especially Xperia one, you can use this tweak instead.
all the files could be downloaded here:
v_0.1 : http://www.mediafire.com/?c4ua4cwwd0e774j
v_0.2 : http://www.mediafire.com/download.php?9ua4lz8wafqq79w
v_0.2.1 : http://www.mediafire.com/download.php?2bqcgbkt01banl6
(this latest update only contain add blocker tweak. you need to copy the hosts file into /system/etc to install it.)
sorry, no flashablel zip file yet, since we don't have working cwm at this moment.
PRE-REQUIREMENTS
1. rooted device
2. init.d support system
3. busybox with symlink installed
if you don't have a rom with init.d support, you can made it by yourself. simply create file named "install-recovery.sh" in /etc. and put these stuff inside that file
Code:
#!/system/bin/sh
# init.d activation script
busybox run-parts /system/etc/init.d/
to test your init.d script you can made a simple script in init.d contain
Code:
#!/system/bin/sh
# test code
touch /data/tes_kucing.log
echo "kucing meong" > /data/tes_kucing.log
if it succes, you'll find tes_kucing.log in /data after you reboot your device.
WHAT INSIDE IT?
this tweak consist of several parts.
1. kuro1 tweak - system tweak
2. kuro2 tweak - prop tweak
3. kuro4 tweak - sound enhancement
4. local.prop tweak
5. zipalign tweak
all the details about the tweak is already inside the tweak files.
HOW TO INSTALL
simply copy all files into their respective folders and give them rwxrwxrwx permission. after that type these command in your terminal
Code:
su
rm /data/dalvik-cache/*
reboot
after boot, check /data and see if you could find all the log files. if you got any problem, you can report here and show me the log files.
CHANGELOG:
v_0.2.1 (2-1-12):
- add blocker.
- this is a little addition for v_0.2. you need to install v_0.2 then copy hosts file to /system/etc to use the complete tweak.
v_0.2 (9-12-12) :
- new optimized script
- auto root for blast tool. no need to type su. just type "blast" in your terminal and the script will run with root permission
v_0.1 :
- initial public release
Click to expand...
Click to collapse
TERM OF USE AND SHARING:
this thread intent is for sharing. feel free to use, edit, distribute all material inside this thread which came from me. if there any parts of this mod which comes not from me please refer to the original dev I've mentioned in this thread. if want to share it to another forum or modify it you don't have to ask my permission. no need to credits, put links or whatsoever. you'll only need to remember that you should held all the responsibility by using this mod, modify it or distribute it. DO IT WITH YOUR OWN RISK
Click to expand...
Click to collapse

SPECIAL FEATURE
this tweak pack has special feature to clear up your memory so that you'll have more space to run app or run heavy app like games. in your terminal type
Code:
su
blast
a script will run and your memory will freed up. all the information about the memory you can get in your screen.
EDIT: if you're using the new version you only need to type 'blast' in your terminal.

GPS tweak
this tweak will make your gps acquire your postition relatively faster. to install it simply replace your gps.conf with this one and reboot. http://www.mediafire.com/download.php?vdkrzx55qkzqn27
please note that this gps.conf file is optimized for indonesian region. I'll show you which part I modified from the original one so that you can optimize your gps according to your country.
Code:
# more ntp server
NTP_SERVER=id.pool.ntp.org
# the line above is the ntp server for indonesia. you can replace it with your region id. the form will be <country code>.pool.ntp.org
NTP_SERVER=asia.pool.ntp.org
NTP_SERVER=europe.pool.ntp.org
NTP_SERVER=africa.pool.ntp.org
NTP_SERVER=north-america.pool.ntp.org
NTP_SERVER=south-america.pool.ntp.org
NTP_SERVER=oceania.ntp.org]
I also modify this part
Code:
# Intermediate position report, 1=enable, 0=disable
INTERMEDIATE_POS=1
# that line above is to enable intermediate position report. less accurate but faster gps lock
# Accuracy threshold for intermediate positions
# less accurate positions are ignored, 0 for passing all positions
# orig 5000
ACCURACY_THRES=100
# this line define the accuracy threshold if you activate intermediate position. If I'm mistaken the value is written in meter. less number means more accurate position, longer gps lock. while higher number means faster gps lock but less accurate position. you can modify this value on your own.

can you make a flashable since we have recovery for a few days now? im gonna test if it works.

Until there's update for this stuff there won't be any flashable zip. I know, its not convenience to copy the files one by one but I need to make sure the filesgot copied into system. Last time I checked into cwm thread there's a report about problem when install a flashable zip.

smokerman said:
can you make a flashable since we have recovery for a few days now? im gonna test if it works.
Click to expand...
Click to collapse
If you want tweaks...
Just visit the super thread for tweaks
http://forum.xda-developers.com/showthread.php?t=1908269
You can get many tweaks in flashable zip... Even bravia engine and xloud
Sent via 'rooted' BEETEL landline

thread updated with a lil new optimized tweak

thread updated with gps tweak as I've promised. check post 3#

3. kuro4 tweak - sound enhancement
Click to expand...
Click to collapse
Does that affect headphones volume which is not the best on stock? I'm sure the headphones volume is limited on purpose and I'm looking to boost it up since none of the Google Play volume boosting apps work on ICS and above.

i'm afraid not. the sound enhancement tweak is used to enhance the sound clarity, not the headphone volume. if you want a louder volume on your headphone you can try using eq app like the one in my beat bass app thread. try the latest one.

thread updated with add blocker tweak.

Nice work........

thanks for the mod... working fine on J .75 firmware . Ah, can you tell me how to enable boot animation. __

Goto /data/local.prop delete debug.sf.nobootanimation or change the value to zero

Not working for my Xperia Miro, phone stuck at Battery status after reboot.
Also cant find my region code for GPS tweak I am from and in Bulgaria.
Thanks

battery status? are you using cm10? which version of it?

Could you make this for flash gordon?
Sent from my ST26i using xda app-developers app

pardon me? what do you mean with flash gordon?

kurotsugi said:
battery status? are you using cm10? which version of it?
Click to expand...
Click to collapse
CM 10 FXP 220, just before enter the system there si battery status for JB 4.1 and my phone stuck there.
Also where to find my region code, I mean I am from, BUlgaria, but dont know is it "bul" or "bg" or someth. for the GPS tweak.

kurotsugi said:
pardon me? what do you mean with flash gordon?
Click to expand...
Click to collapse
Its an application That fakes recovery for xperia j and other phones without cwm. U can flash zips with it
Sent from my ST26i using xda app-developers app

Related

[Proof of Concept] Controlling your Rom installation with file_getprop

OK, so I've been playing around a lot lately with some edify scripting and looking through the Clockwork Mod source code.
I found some built-in commands that do not appear to be widely known.
I'll probably be creating some sort of "Everything I know about edify scripting" post eventually, but for now, I wanted to share this.
The Concept::
Having control of the zip installation using a config file placed onto the SD card.​
A Fictional Example::
For instance, lets say we have a Rom, we'll call it NubeRom (pronounced Nuber-Om). ;]
OK, so let's say that NubeRom does not install any Stock Samsung Widgets by default.
But NubeRom comes with a file named "options.cfg" that is to be placed onto the root of the SD card.
Inside the "options.cfg" file looks like this:
Code:
install.samsung.widgets=no
That would be the default setting of NOT installing the Samsung Widgets.
Lets say that we wanted to install the Samsung Widgets. We could simply change the file to look like:
Code:
install.samsung.widgets=yes
And then NubeRom's install script would install the Stock Samsung Widgets.​
What the script would look like::
Here is an example of what the install script for the fictional "NubeRom" would look like:
Code:
# mount sdcard so it can be read from
run_program("/sbin/mount/", "/sdcard");
# beginning of ifelse
ifelse(
# read the "install.samsung.widgets" value from the file and compare to "yes"
file_getprop("/sdcard/options.cfg", "install.samsung.widgets") == "yes,
(
# the value was "yes", install stock samsung widgets
ui_print("Installing Stock Samsung Widgets");
# code would go here to install the widgets....
),
(
# the value was not "yes", do not install stock samsung widgets
ui_print("Skipping Stock Samsung Widgets");
)
);
# unmount sdcard
unmount("/sdcard");
The code above is, of course, only the configurable stock widgets portion of the fictional script.​
Testing::
This was tested on an Epic 4G using Clockwork Mod recovery v3.0.0.6.
I have not fully tested what happens when the config file is not in the correct place (in this case the correct place is "/sdcard/options.cfg").
I believe you will get a file not found error or something.
Count that as, this still needs a bit more testing.​
Usage::
Place the "options.cfg" file onto the root of your SD card ("/sdcard").
Flash the "file_getprop_test.zip" file with Clockwork Mod recovery.
Watch the output change based on the config file's setting.​
Other notes::
While looking at the script in the attached test file, some people might notice the use of the concat() and sleep() functions.
Syntax for those is as follows:
Code:
concat("string1", "string2");
sleep(frac);
Example usage:
Code:
concat("Product Device : ", getprop("ro.product.device"));
outputs "Product Device: ~Value~"
Code:
sleep(2.5);
pauses the script for 2.5 seconds.​
Share it::
Link this thread to your favorite Rom dev/packer.
They might find it useful, and maybe some people will do something with this info.​
I've attached two Proof of concept files.
The Clockwork Mod flash-able zip: "file_getprop_test.zip".
The options config file (in a zip): "options.zip".
The forum made me zip the config file. so just extract it first.
=]
I know if we used the options script,this would make for some pretty big ROMs in the future if we included a lot of options that could be installed. Nice find though.
Sent from my SPH-D700 using XDA Premium App
I totally agree about the file size, it could grow exponentially.
It comes down to what the Rom maker chooses to do.
Maybe they choose make a stock base Rom and have a configurable add-on package.
There's also a decent example of using the ifelse() built-in in there.
=]
We could conceivably make some server side web scripts that can put together the config script dynamically and create the appropriate zip file on the fly for a user...
My thought....
Your_Rom_Name.zip
Your_Rom_Name_Install_Options.cfg
You could have a single ROM download and offer a stripped base rom or a full sized rom, all installed from the same ROM zip file. There would only be one ROM file to upload and maintain, but you could have multiple install packages based on it...much like an install shield type wizard would give options like minimum, standard, full.
Good find.
Have implemented these ideas with some additions to my own updater-script and posted info about how to do it here: http://forum.xda-developers.com/showthread.php?p=19962544#post19962544
Thanks so much! I linked back to this thread.
However, while this could result in singly large roms, it has a huge silver lining. The fact of the matter is that I post my roms with a standard and a lite version. For testing's sake, I keep both of them on my SD card, which results in up to 150 MB more memory usage than I need. Plus, I have to ensure that I update TWO packages identically, while this setup would allow me to focus on one.
I have been scouring the web for features like this, but for how widely used it is, resources on edify scripts are scant. This is a great find and I believe I will be implementing it in my future releases. The only thing that could be better would be active prompts and selections while running the installer... ah if only!
Boy I can't believe I never saw this thread before...
Thanks!
Kinda reminds me of Sashimi when I had my Touch Pro 2 (WinMo).
Awesome find ! I totaly agree with random king it is a pain in. The arse to maintain seperate roms... I will be implementing this, once again awesome work as usual.
Sent from my SPH-D700 using XDA Premium App
earthbound[iap] said:
Awesome find ! I totaly agree with random king it is a pain in. The arse to maintain seperate roms... I will be implementing this, once again awesome work as usual.
Sent from my SPH-D700 using XDA Premium App
Click to expand...
Click to collapse
It seems to work great. earthbound, I sent you a pm about an idea I have for this.

[ROM][ALPHA - TESTING ONLY] "Kifno"genMod / CM7 2.3.4 (5-3-11)

"Kifno"genMod / CM7​
PART1: Introduction/Information​
NOTE: Sorry if I rush this post tonight but my world has come crashing down and I'm trying to post one last thing that will hopefully be of some good before I leave for a while (I'll be back everyone).
Index
Part 1: Introduction/Information
Part 2: Instructions
Part 3: FAQ (Coming Soon!)
Part 4: Please Read This​
About "Kifno"genMod
This is the modded version of cyanogenmod that others and I have been working on. It is shrunken down without some of the "waste" IMO, and has had many modifications made to increase performance and battery life longer. This is only in testing because I never got to finish it.
What has been done?
Code:
[URL="http://forum.xda-developers.com/showpost.php?p=13487658&postcount=15"][SIZE="6"]CLICK HERE[/SIZE][/URL]
What doesn't work?
Code:
- works for me fine but i'd like to know all bugs weather you have issues with me or not, this is not about me, this is about making our phone better and i need to know every problem with this so that i can make it better before I submit the modifications to github
Screenshots Coming soon...
Instructions​
Index
Part 1: Introduction/Information
Part 2: Instructions
Part 3: FAQ (Coming Soon!)
Part 4: Please Read This​
[2.3.4] "Kifno"genMod​
BACKUP EVERYTHING
Wipe cache, dalvik, data/factory reset, format cache, data, system, and boot
Download and put the latest "Kifno"genMod rom on your sdcard
Get It Here
Flash the Rom
Download and put the latest gapps on your sdcard
Get It Here
Flash gapps
Reboot into system
Enjoy and please post feedback
FAQ coming soon after you all post questions!​
Index
Part 1: Introduction/Information
Part 2: Instructions
Part 3: FAQ (Coming Soon!)
Part 4: Please Read This​
Please Read This!​
Index
Part 1: Introduction/Information
Part 2: Instructions
Part 3: FAQ (Coming Soon!)
Part 4: Please Read This​
Donations​
I want everyone who is has ever donated, or has thought of donating me or anyone else to know this. XDA is a place for everyone to learn, teach, and share their work and new findings for android. Donations are not a right on XDA they are a privilege. Donations were allowed for XDA members to give and receive as a way for someone who really appreciates the original poster's work and is a way for the donor to show their thanks by doing more than pressing the thanks button. This is something that the original poster should appreciate and follow up with a PM as a thanks for their thanks, and use that as a notification, that they should keep up the good work and they're doing good things for XDA. Again recieving donations is not a right it is a privilege, that the original poster shouldn't abuse by asking for donations but instead appreciate when recieved. Asking for donations is not right and it is looked down upon on XDA because it goes against the meaning of what XDA is all about. This is something I want everyone to understand before even thinking of donating to me or anyone else or when given a donation. Don't donate because the original poster comes off as asking for money, instead if you choose to donate, donate out of showing more appreciation for another's work and as more of a way to show that you care for their work. I want everyone to understand that.
- Kifno
Credits:​
Code:
unCoRrUpTeD - help with kifno's script
brainmaster - a part of the help with kifno's script
farmatito - a part of the help with kifno's script
montalbert - a part of the help with kifno's script
FloHimself - a part of the help with kifno's script
mik_os - help with some optimizations
Saulcho009 - opengles 1.1
[B]LAST BUT NOT LEAST AND DEFINITELY THE MOST IMPORTANT...[/B]
[SIZE="5"]CYANOGEN AND THE CYANOGENMOD TEAM[/SIZE]
Where is the rom?
Sent from a delicious CDMA HTC Hero baked with Gingerbread covered in honey......mmmmm.....
XGodOfModzX said:
Where is the rom?
Sent from a delicious CDMA HTC Hero baked with Gingerbread covered in honey......mmmmm.....
Click to expand...
Click to collapse
give me a few minutes to set up the thread....
edit: all done...enjoy it and post all the positive feedback you can....i'll be available as much as i can but because i'm going through major issues i won't be available much
What did you change from CM7? I mean specifically
theimpaler747 said:
What did you change from CM7?
Click to expand...
Click to collapse
first post
theimpaler747 said:
What did you change from CM7? I mean specifically
Click to expand...
Click to collapse
kifno said:
first post
Click to expand...
Click to collapse
No. I mean what did you actually change to make this a new rom. Zipaligning and taking out "junk" does not a new rom make.
kifno said:
first post
Click to expand...
Click to collapse
Impaler asked what you changed specifically...
hardware/driver optimizations is not specific
removed junk is not specific
I'd like to know this too...
theimpaler747 said:
No. I mean what did you actually change to make this a new rom. Zipaligning and taking out "junk" does not a new rom make.
Click to expand...
Click to collapse
No that's just extra little basic stuff. Its more like the lib, xbin, bin files, stuff like that. plus removing the junk and extra boosting stuff. i'll be adding it to the gerrit soon
kifno said:
No that's just extra little basic stuff. Its more like the lib, xbin, bin files, stuff like that. plus removing the junk and extra boosting stuff. i'll be adding it to the gerrit soon
Click to expand...
Click to collapse
....... Again, not trying to beat a dead horse, but that's really not an answer....
HEROEVO said:
Impaler asked what you changed specifically...
hardware/driver optimizations is not specific
removed junk is not specific
I'd like to know this too...
Click to expand...
Click to collapse
oh didn't see this until after i posted but search and compare the two roms (make the two windows side by side and compare). i can't right now because i'm on xda while dealing with family issues AND MY TOES ARE STILL BROKEN AND I HAVEN'T WENT TO THE HOSPITAL
this is just a horrible day
theimpaler747 said:
....... Again, not trying to beat a dead horse, but that's really not an answer....
Click to expand...
Click to collapse
again didn't see this post but lets see what i can pull up really quick..
the opengles files, scripts, i opened up many (not all of the apk files) and then compressed the pngs while trying not to lose transparency on some.
i also replaced some of the xbin and bin files with some better ones. i can't go into specifics because of family issues...i don't want to put my personal information out on the internet because, its personal but please try to understand my world is crashing i and i can post even more specific post once i get things settled
edit: hey impaler please don't think i'm blowing this off just i'm going through issues....smh
HEROEVO said:
Impaler asked what you changed specifically...
hardware/driver optimizations is not specific
removed junk is not specific
I'd like to know this too...
Click to expand...
Click to collapse
Took a few minutes to do a quick review which showed:
Odexed build
PNG Optimization
Modified updater-script to print "Installing Kifnogenmod"
/system/app - removed Androidian, CMStats, CMUpdateNotify,CMWallpapers, Cyanbread, QuickSearchBox, RomManager
/system/app - added MIUIC
/system/bin - added kifCPU.sh
/system/etc/init.d - added 97noatime, 98io, 98kernel, 98memory, 98network, 98sdfix init scripts
/system/etc/init.local.rc - added oneshot service for /system/bin/kifCPU.sh
/system/etc/resolv.conf - changed nameserver address to 0.0.0.0
/system/fonts - removed DroidSansArabic.ttf and DroidSansHebrew.ttf
/system/lib/egl - replaced libGLES_android.so
/system/lib/hw - replaced gralloc.msm7k.so; added gralloc.morrison.so
/system/media/audio/notifications - removed all files
/system/media/audio/ringtones - removed many files, replaced a few, added one
/system/media/audio/ui - removed some files
/system/media/bootanimation.zip - removed file
/system/build.prop changes:
normal mods generated by rom build (i.e. date, user, host, name, etc.)
ro.modversion: from CyanogenMod to Kifnogenmod
wifi.supplicant_scan_interval: 45 -> 20
ro.com.google.clientidbase: android-sprint-us -> android-google-us
/system/build.prop adds:
ro.compcache.default=0
ro.telephony.call_ring.delay=500
windowsmgr.max_events_per_sec=70
ro.ril.hsxpa=2
ro.ril.gprsclass=8
ro.ril.hep=1
ro.ril.hsdpa.category=24
ro.ril.enable.3g.prefix=1
ro.ril.htcmaskw1.bitmask=4294967295
ro.ril.htcmaskw1=14449
ro.ril.hsupa.category=3
settings.display.autobacklight=1
settings.display.brightness=135
There are a few other files that have different md5sums, but they can be different coming from the same source, so I didn't include them.
Net net, primary changes are odexed build, removed a few apps, added MIUIC, removed a number of sound files and a couple of fonts, replaced/added some library files, and added the "tweak" (kifCPU.sh, init scripts, nameserver change, build.prop, etc.)
jaybob413 said:
/system/lib/hw - replaced gralloc.msm7k.so; added gralloc.morrison.so
Click to expand...
Click to collapse
And I bet they have the same MD5sum, right? IIRC the morrison file is just a copy of the msm7k file and was created for compatibility with the Motorola Cliq.
jasonmaloney said:
And I bet they have the same MD5sum, right? IIRC the morrison file is just a copy of the msm7k file and was created for compatibility with the Motorola Cliq.
Click to expand...
Click to collapse
That is correct.
jaybob413 said:
Took a few minutes to do a quick review which showed:
Odexed build
PNG Optimization
Modified updater-script to print "Installing Kifnogenmod"
/system/app - removed Androidian, CMStats, CMUpdateNotify,CMWallpapers, Cyanbread, QuickSearchBox, RomManager
/system/app - added MIUIC
/system/bin - added kifCPU.sh
/system/etc/init.d - added 97noatime, 98io, 98kernel, 98memory, 98network, 98sdfix init scripts
/system/etc/init.local.rc - added oneshot service for /system/bin/kifCPU.sh
/system/etc/resolv.conf - changed nameserver address to 0.0.0.0
/system/fonts - removed DroidSansArabic.ttf and DroidSansHebrew.ttf
/system/lib/egl - replaced libGLES_android.so
/system/lib/hw - replaced gralloc.msm7k.so; added gralloc.morrison.so
/system/media/audio/notifications - removed all files
/system/media/audio/ringtones - removed many files, replaced a few, added one
/system/media/audio/ui - removed some files
/system/media/bootanimation.zip - removed file
/system/build.prop changes:
normal mods generated by rom build (i.e. date, user, host, name, etc.)
ro.modversion: from CyanogenMod to Kifnogenmod
wifi.supplicant_scan_interval: 45 -> 20
ro.com.google.clientidbase: android-sprint-us -> android-google-us
/system/build.prop adds:
ro.compcache.default=0
ro.telephony.call_ring.delay=500
windowsmgr.max_events_per_sec=70
ro.ril.hsxpa=2
ro.ril.gprsclass=8
ro.ril.hep=1
ro.ril.hsdpa.category=24
ro.ril.enable.3g.prefix=1
ro.ril.htcmaskw1.bitmask=4294967295
ro.ril.htcmaskw1=14449
ro.ril.hsupa.category=3
settings.display.autobacklight=1
settings.display.brightness=135
There are a few other files that have different md5sums, but they can be different coming from the same source, so I didn't include them.
Net net, primary changes are odexed build, removed a few apps, added MIUIC, removed a number of sound files and a couple of fonts, replaced/added some library files, and added the "tweak" (kifCPU.sh, init scripts, nameserver change, build.prop, etc.)
Click to expand...
Click to collapse
yeah that's just about it. i didn't have the time to list it all but thanks
Installed this morning, reinstalled all my apps, haven't found any issues yet. Sweet work kinfo & all the others involved!!
thanks i didn't even get to finish it lol but glad its working

A way to Optimizing APK & Framework files

For optimizing apks, aside from fixAllAPKs by omniwolf, I found another one.
Note: I have no responsibility for breaking your ROM, so backup first.
Rights: No rights reserved, you can do whatever you like.
The classes.dex files have significant amount of debug infos in it, striping out those can reduce file size and increase some performance. I test it with all /system/app/ and /system/framework/ files, the ROM runs snapier, especially when you launching apps. Stripe out those debug info doesn't hurt anything, they are usefull only for original developer and one who wants to mod it, but you can always keep a copy of the original one for modding and debugging purpose.
Note that this does not boost performance like increase CPU freq, but the theory is, since the file size is reduced, dex and dalvik-cache became smaller in size, occupies memories smaller, thus processing is faster, and saves a little battery life, you can think it as something like optipng does.
Note also, you don't need to specify 0 compression, dex will be decompressed to /data/dalvik-cache, just use fixAllAPKs for fixing files inside APK that should not be compressed, and 0 compression for file type like xml isn't really a good idea.
Don't use this for ICS Framework files yet, there are specific files will causes surprising bugs when recompiled, but I'm lazy to find it out why and what, so just don't do it.
For FixAllAPKs, original thread here, http://forum.xda-developers.com/showthread.php?t=1123463
or post #36 by carl1961 http://forum.xda-developers.com/showpost.php?p=21458549&postcount=36
==========================================================================================================
RemoveDebuggingInfo_v2.2:
API Level must be specified to get 100% compatibility, it seems not forward nor backward compatible.
Froyo = 8, GB = 10, ICS4.0 ~ 4.0.2 = 14, ICS 4.0.3 = 15
Added API Level chooser, default 15 (ICS 4.0.3)
Added more descriptions.
Correct typos.
==========================================================================================================
depricated...
RemoveDebuggingInfo_v2.1:
First, Thanks to all who corrects me.
fix typo for menu selection 6
fix path for pulling for adb to work without setting PATH env variable
fix pushing framework to wrong directory
update smali/baksmali to v1.3.2
update script to compile/decompile using api level 15
added menu selection of fixAllAPKs
Instructions: Important
The default config is for ICS 4.03 base ROM, if you are gonna use it for Gingerbread Base ROM, need to edit the file RemoveDebuggingInfo.bat, and change the -a 15 to -a 10 for API level 10, then just double click start.bat and follow the on screen instruction.
java -jar baksmali-1.3.2.jar -b -a 10 -o .\classes .\classes.dex
java -jar smali-1.3.2.jar -a 10 .\classes -o .\classes.dex
Click to expand...
Click to collapse
Using API level 10 for ICS and API level 15 for GB will not work, you phone will just hang or endless reboots.
Pushing framework will reset all your settings, so if you choose to push framework, do a factory reset instead and just re-install your user apps.
After pushing /system/app, you must reboot to recovery and wipe dalvik and cache, another way of pushing is boot to recovery, mount /system then push.
I have only tested on Gingerbread 2.08.401.1 base, have no idea for ICS, but it should work, as the latest smali/baksmali supports ICS.
If you experience glitches, do it from the beginning by using un-modified apk and jar.
How it works: it is just baksmali (decompile dex to smali code WITHOUT debugging info) and then smali (compile back to dex)
Requirements: java and htc sync usb driver.
==========================================================================================================
Depricated - too much error.
RemoveDebuggingInfo_v2:
Added another script for simpler operations, instead of dragging hundreds of APKs, it is self descriptive, can pull and push /system/app, /system/framework, optimizing all files for app and framework, and reboot to recovery.
Tested on v2.08.401.1 ROM, on all files /system/app, /system/framework, should work on other device and ROM too, but not sure, test it yourself!
==========================================================================================================
For /data/app/ user application files, modify it may not installed at all, re-sign it also not help, so just do it manually to test.
But for now, here is a way to do it manually, since /system partition will not grow and many spaces left, you can simply put some APP on this partition, and following are working on my ROM, some should have naming as com.a.b.c... whatever is the name installed on /data/app/ stripe out the -1 at the end. Just besure the APP is uninstalled before pushing to /system/app/
Below are what I tested.
AdobePhotoshopExpress.apk
BarcodeScanner.apk
com.evernote.skitch.apk
ESFileExplorer.apk
GoogleDocs.apk
GoogleGoggles.apk
GoogleTranslate.apk
GPSTest.apk
org.hermit.audalyzer.apk
For APKs that has lib folder, you can just extract it and put it on /system/lib/ then del the lib folder inside the apk archive, e.g. flashplayer, adobereader.
adb should be start only once after booting your PC, if you get issues, like adb always shows restarting and out of date, it is because the included adb.exe in htc sync is out of date, and you had installed android sdk with environmental variable set, to fix it, both must have same version, or simply delete one of them, and if you have path variable set, you can del the included adb.exe as well.
Thanks for this, I will be sure to use it
Sent from my HTC Sensation XE with Beats Audio Z715e using xda premium
I have 189 Apps in system/app .... is there a way to make it with all files!?
Jonny said:
Thanks for this, I will be sure to use it
Just out of interest, what program do you use for getting the smali code?
Click to expand...
Click to collapse
It is the one and only, baksmali.jar and smali.jar http://code.google.com/p/smali/
xtcislove said:
I have 189 Apps in system/app .... is there a way to make it with all files!?
Click to expand...
Click to collapse
Yes I know it is so much, but need to write a sohphisticated code, maybe if I have time, I'll try to make it more easier, a vbscript or cmd script, or a shell script in linux. And don't forget the framework files too.
mudhi said:
I test it with all /system/app/ and /system/framework/ files, the ROM runs snapier, especially when you launching apps.
Click to expand...
Click to collapse
It is really so. I have checked it up.
mudhi said:
It is the one and only, baksmali.jar and smali.jar http://code.google.com/p/smali/
Click to expand...
Click to collapse
Thank you mudhi
a little off topic here, Is there a way to change smali files into a readable code (let's say i want to use it with eclipse !!)
i have tried searching and i came across Dex2Jar and jd-gui !!
my question here is: is there a way to use smali files into Eclipse ??
Alfaifi said:
Thank you mudhi
a little off topic here, Is there a way to change smali files into a readable code (let's say i want to use it with eclipse !!)
i have tried searching and i came across Dex2Jar and jd-gui !!
my question here is: is there a way to use smali files into Eclipse ??
Click to expand...
Click to collapse
Yes, use dex2jar to jar archive file, then jd-gui to view the source, you can also use DJ-decompiler (commercial) to view and change code, but that's not really readable, and compile back is too hard, and also jbe, ce etc... but I came to a conclusion.
Use dex2jar to decompile dex and use jd-gui to view the source for understand logic, method etc... and just reference it to smali code, and if you get use to it, hacking app will be easier, perhaps more easier than viewing the source code, because hackiing involviing mostly on 0 to 1, true to false, jump to where ... and that is only adding or changing a single code in smali, e.g. logic if a == b then c, if you want to make it always c, then just if 0 == 0 then c, or just a simple jump etc...
@mudhi new smali/baksmali 1.3.2 is out
And is also possible to remove debugging info from jar files that are present in framework folder?
texture said:
And is also possible to remove debugging info from jar files that are present in framework folder?
Click to expand...
Click to collapse
I think you can just rename them to .apk and then back to .jar.
mike1986. said:
I think you can just rename them to .apk and then back to .jar.
Click to expand...
Click to collapse
No you dont need to, just put(or pull) all framework files (both apks and jars) and it will process them all automatically.
Btw i just ran this on InsertCoin 4.1.1 for all APPS and Framework except i changed a script a bit (added -mx0) so it compresses APKS with 0 compression.
And can tell you that phone definitively feels faster, boots faster, apps open faster, and there a bit more free RAM available now.
Thank you mudhi allot for this!
mike1986. said:
@mudhi new smali/baksmali 1.3.2 is out
Click to expand...
Click to collapse
ah... hehe thank you, supposed ICS 4.0.3 is supported. Thank you!
Need a little clarification ..
java -version
if errorlevel 1 goto javaerr
---------------------
C:\>java -version
'java' is not recognized as an internal or external command,
operable program or batch file.
---------------------
I installed java however still get an error ..
What is needed > to install ? Link Maybe ?
Also ... I found a small ops in the bat file ..
:javaerr
cls
echo Java is not found, please install java and rerun the script.
echo Hit anykey to quit
PAUSE
goto end < forgot this ?
Thanks ..
WarlockW said:
Need a little clarification ..
java -version
if errorlevel 1 goto javaerr
---------------------
C:\>java -version
'java' is not recognized as an internal or external command,
operable program or batch file.
---------------------
I installed java however still get an error ..
What is needed > to install ? Link Maybe ?
Also ... I found a small ops in the bat file ..
:javaerr
cls
echo Java is not found, please install java and rerun the script.
echo Hit anykey to quit
PAUSE
goto end < forgot this ?
Thanks ..
Click to expand...
Click to collapse
You need to set java variable, here's how-to:
http://java.com/en/download/help/path.xml
mudhi, You've got few errors in start.bat file. If you want to pull the apps to "app" folder, use this command "adb pull /system/app/ app". If you do cd app, It won't find the adb in the app folder and won't do nothing.
ivicask said:
No you dont need to, just put(or pull) all framework files (both apks and jars) and it will process them all automatically.
Btw i just ran this on InsertCoin 4.1.1 for all APPS and Framework except i changed a script a bit (added -mx0) so it compresses APKS with 0 compression.
And can tell you that phone definitively feels faster, boots faster, apps open faster, and there a bit more free RAM available now.
Thank you mudhi allot for this!
Click to expand...
Click to collapse
Before optimizing with this script, my apks are all fixed with the vbscript by omniwolf, it only compress files that should be compressed, the script fixAllAPKs.vbs can be used before or after this. Anyway, I'll add a decision to run the script.
mudhi said:
Before optimizing with this script, my apks are all fixed with the vbscript by omniwolf, it only compress files that should be compressed, the script fixAllAPKs.vbs can be used before or after this. Anyway, I'll add a decision to run the script.
Click to expand...
Click to collapse
Is there any problem with doing 0 compression on all files? I dont have space problems, and doesnt that make phone run faster as it doesnt need to decompress any data? Saves both CPU and RAM?
drms12 said:
mudhi, You've got few errors in start.bat file. If you want to pull the apps to "app" folder, use this command "adb pull /system/app/ app". If you do cd app, It won't find the adb in the app folder and won't do nothing.
Click to expand...
Click to collapse
Oh yes, I know where's the error, because I have android sdk installed and environmental PATH variable are set, you can fix it by just set the PATH variable with where the adb.exe exist.
Or just change the script with this
ullapp
cd app
../adb pull /system/app/
or
ullapp
adb pull /system/app/ app
same as pullframe
mudhi said:
Oh yes, I know where's the error, because I have android sdk installed and environmental PATH variable are set, you can fix it by just set the PATH variable with where the adb.exe exist.
Or just change the script with this
ullapp
cd app
../adb pull /system/app/
or
ullapp
adb pull /system/app/ app
same as pullframe
Click to expand...
Click to collapse
Yes
I think you forgot to update the download, It still ver2.
There is an error in script - the push command to upload files to framework uploads them to /system/app
ICS 4.0.3 - got bootloop just after lockscreen shows. Had to restore system.

[ZIP] Dynamic automated build.prop editing

Hey,
since I'm flashing nightlies on a regular basis and also want to use my own custom /system/build.prop file, there are a few ways to accomplish both things as easy as possible:
Backing up /system/build.prop through a script in /system/addon.d
Flashing my own file using a zip after every update
Restoring previous build.prop using a Editor app and reboot
Manually change or add every desired entry and reboot
For most of you one of these ways should absolutely do the trick, but my problem was either things like build version, date, etc. got stuck at my custom file's one or I had to reboot after manually updating it, which got really annoying after several times.
So I decided to create my own flashable zip which works as follows:
Somewhere on the device is a simple text file in which are all those entries that shall be changed,added to or removed from /system/build.prop (In my case it's /sdcard/tweak.prop)
After mounting /system and /data (not if they are already) and setting write permissions to /system/build.prop the zip extracts a shell script to /tmp/tweakprop.sh
It This script scans the text file (aborts if not found) and looks for changed, new or unwanted entries in /system/build.prop in order to apply them. Changed entries will be overridden, new ones will be added, unwanted get removed and entries existing in /system/build.prop but not in your personal file will be ignored
When tweaking is done, it just removes /tmp/tweakprop.sh and unmounts /system and /data (only if they weren't mounted before) and reverts /system/build.prop's permissions to rw-r--r--
-> (See content of example.txt for more detailed examples and syntax!)
Using this method, you can not only forget about manually updating versions and/or lame reboots after updates for changes to take effect, but also edit your personal text file at any time without root rights beeing required. Once set up to be flashed after every update, your /system/build.prop is always tweaked as you wish and looks like a stock one (ROM version, etc. under About Phone).
The zip flashes well on all recoveries. Make sure your tweak.prop file ends with an empty line, otherwise the last line will be ignored!
I hope some of you can use this zip, it's free to modify. If you have any suggestions, let me know.
This project has been moved to a git repo at https://notabug.org/kl3/tweakprop. Please refer to it in the future to get updates as this is much easier for me to maintain. Upcoming changelog can be found here.
Changelog
Changelog
version 0.1:
initial release
version 0.2:
ignore lines in personal file not matching a valid entry pattern (someVAR=someVAL) to not mess up /system/build.prop and support personal structuring inside the file like "# media tweaks #", "# dalvik section #", etc.
code cleaned up
version 0.2.1:
typo fixed in line 24 of tweakprop.sh so the if-statement asks for the correct file (thanks to the_pirate_predator)
version 0.3:
changed the while-loop to get it's input directly from sed, which makes a second buffer file obsolete
version 0.3.5:
example.txt provided as tweak.prop template
ignore lines beginning with # or being empty
version 0.4:
instead of a fixed path, the personal file gets searched on internal storage (file name can be set in the script) so you can put your file anywhere - no more problems with /sdcard/ or /sdcard/0/ on different devices
personal file must not be empty, otherwise script aborts#
only override really different entry values in order to prevent "... value of someVAR overridden" spam in recovery log
version 0.4.5:
fixed last line of personal file being ignored due to deleting all empty lines before
speed up search for personal file, now looking on internal storage and even on external SD card if nothing was found before (ext. SD neither gets checked if present, nor mounted or unmounted, just trying to search on it silently)
version 0.4.5a:
same as 0.4.5a, but personal file is inside the zip and gets extracted to /tmp/tweak.prop, no need to have one on the internal storage
version 0.4.6(a):
output not shown in TWRP fixed, now works as it should
version 0.5:
code cleanup: everything's now in the update-binary, resulting in much less code and faster execution time
output to recovery should now work on all device-recovery combinations
version 0.5.1:
lines beginning with ! will be removed globally
little code-cleanup
version 0.5.2:
lines beginning with @ will append the string after | to values of existent entries
slight changes in code structure
version 0.5.3:
lines beginning with $ will change the value to the string after | only if the entry already exists, hence $telephony.lteCdmaDevice|1 is nothing but a more explicit approach of telephony.lteCdmaDevice=1, as the first one will only make changes but no new entries
version 0.5.4:
the build.prop file can now be backed up before editing using a BACKUP= line, see example.txt for details
tiny bug fixed
version 0.5.4a:
tweak.prop file (example.txt) is included, no personal file on your device's storage is used. Edit the zip's content before flashing!
version 0.5.9(a):
Error handling fixed, script properly exits now if anything failes and won't make further changes
More verbose output
Date and tweak.prop version added to backup files to keep track of them
Special characters like / are now escaped and handled correctly by sed
Slight changes in coding style as it's good practise
Click to expand...
Click to collapse
Such Awesome, much appreciate i wanted to make one too, but never got the time to.
Sent from my Xperia V using XDA Premium 4 mobile app
What should my text file look like if I just want to add one line of text at the end of my build.prop? For example,
qemu.hw.mainkeys=0
to activate softkeys on a device with capacitive buttons?
Thanks
Sent from my XT912 using Tapatalk
Need some information
I need explanation for the following lines of code.
Code:
## your personal file with tweaks and custom entries/values
tweak=/sdcard/0/tweak.prop
## abort execution if $tweaks not found
if [ ! -e $tweaks ]
then
ui_print "ERROR: Personal file not found. No changes were made."
ui_print "Script aborted. Check file path and flash again."
exit 0
fi
## read only lines matching any valid entry pattern (someVAR=someVAL), e.g.
## net.bt.name=Android, omni.device=n7100, url.legal=http://www ...
sed '/.*=.*/!d' $tweak > /tmp/tweak.prop
tweaks=/tmp/tweak.prop
You are giving a condition loop without even declaring the variable "tweaks" at first. You have declared only after the loop ends. Then that means, the code in the loop never executes. I think this is a small mistake you did with the code. Make sure you correct those.
But else, a great work!! :good: :good:
Sorry, but stick to one variable, "tweak", or "tweaks".
Otherwise, its a very simple, yet efficient algorithm. :good:
jonwgee said:
What should my text file look like if I just want to add one line of text at the end of my build.prop? For example,
qemu.hw.mainkeys=0
to activate softkeys on a device with capacitive buttons?
Click to expand...
Click to collapse
Just a simple text file containing your mentioned line. Any other empty or non-entry lines will be ignored by my script anyway.
the_pirate_predator said:
I need explanation for the following lines of code.
Code:
## your personal file with tweaks and custom entries/values
tweak=/sdcard/0/tweak.prop
## abort execution if $tweaks not found
if [ ! -e $tweaks ]
then
ui_print "ERROR: Personal file not found. No changes were made."
ui_print "Script aborted. Check file path and flash again."
exit 0
fi
## read only lines matching any valid entry pattern (someVAR=someVAL), e.g.
## net.bt.name=Android, omni.device=n7100, url.legal=http://www ...
sed '/.*=.*/!d' $tweak > /tmp/tweak.prop
tweaks=/tmp/tweak.prop
You are giving a condition loop without even declaring the variable "tweaks" at first. You have declared only after the loop ends. Then that means, the code in the loop never executes. I think this is a small mistake you did with the code. Make sure you correct those.
But else, a great work!! :good: :good:
Click to expand...
Click to collapse
You're right. It's a typo, I'm correcting it now. Thanks for your advice.
thewisenerd said:
Sorry, but stick to one variable, "tweak", or "tweaks".
Otherwise, its a very simple, yet efficient algorithm. :good:
Click to expand...
Click to collapse
I use a second buffer file that is a cleaned version of the original one. If I find a smarter way, I will.
I was searching for something like this for ages.
But i have a nob question! lol
I need to create a text file with all the lines i want to add to my built.prop file, so where I put the text file? And i have to give a certain name to that file or any name will do?
Hugo
oguh said:
I need to create a text file with all the lines i want to add to my built.prop file, so where I put the text file? And i have to give a certain name to that file or any name will do?
Click to expand...
Click to collapse
My script searches for a file called tweak.prop located at your internal storage (storage/emulated/0/tweak.prop or sdcard/tweak.prop or sdcard/0/tweak.prop), but you can freely change the line
PHP:
tweak=/sdcard/0/tweak.prop
to any path you want your personal file to be.
klenamenis said:
My script searches for a file called tweak.prop located at your internal storage (storage/emulated/0/tweak.prop or sdcard/tweak.prop or sdcard/0/tweak.prop), but you can freely change the line
PHP:
tweak=/sdcard/0/tweak.prop
to any path you want your personal file to be.
Click to expand...
Click to collapse
Thx for the quick response, and for your great work.
hugo
Sorry but i don't get it.
i need to create a txt file called tweak.prop and place it where i want, for example /sdcard/tweak.prop
after extracting the tweakprop-0.3.zip for editing the line /tmp/tweakprop.sh
Code:
## your personal file with tweaks and custom entries/values
tweak=/sdcard/tweak.prop
zipping meta-inf and tmp folder and finally flashing this zip.. am i doing something wrong ?
because it takes no changes.
got this line in tweak.prop at /sdcard/tweak.prop
Code:
ro.sf.lcd_density=400
sorry, i really dont get it.
bnbagiz said:
Sorry but i don't get it.
i need to create a txt file called tweak.prop and place it where i want, for example /sdcard/tweak.prop
after extracting the tweakprop-0.3.zip for editing the line /tmp/tweakprop.sh
Code:
## your personal file with tweaks and custom entries/values
tweak=/sdcard/tweak.prop
zipping meta-inf and tmp folder and finally flashing this zip.. am i doing something wrong ?
because it takes no changes.
Click to expand...
Click to collapse
As my script already shows, changing the path to /sdcard/0/tweak.prop again should do the trick.
I just want to change my DPI with this. What do I need to change in your default tweak.prop to be able to do that?
Click thanks if I helped you.
Sent from my SM-N900W8 using XDA Premium mobile app
Code:
klenamenis said:
As my script already shows, changing the path to /sdcard/0/tweak.prop again should do the trick.
Click to expand...
Click to collapse
did not work ! :/ you mean changing the path for the tweak.prop in the unzipped tweakprop.sh in /tmp/, aren't you ?
Code:
build=/system/build.prop
## your personal file with tweaks and custom entries/values
tweak=/sdcard/0/tweak.prop
---------- Post added at 02:41 PM ---------- Previous post was at 02:34 PM ----------
sauron82 said:
I just want to change my DPI with this. What do I need to change in your default tweak.prop to be able to do that?
Click thanks if I helped you.
Sent from my SM-N900W8 using XDA Premium mobile app
Click to expand...
Click to collapse
that is what i am trying to do
you need to change the line
Code:
ro.sf.lcd_density="value you like to have, i.e. 400"
bnbagiz said:
Code:
did not work ! :/ you mean changing the path for the tweak.prop in the unzipped tweakprop.sh in /tmp/, aren't you ?
Code:
build=/system/build.prop
## your personal file with tweaks and custom entries/values
tweak=/sdcard/0/tweak.prop
Click to expand...
Click to collapse
Yes, that's what I meant. Then just try any other path. I guess the internal storage's path is a device specific thing. Which device do you? I would try locating your personal file at /system as this path exists on all devices/ROMs.
klenamenis said:
Yes, that's what I meant. Then just try any other path. I guess the internal storage's path is a device specific thing. Which device do you? I would try locating your personal file at /system as this path exists on all devices/ROMs.
Click to expand...
Click to collapse
I am using a LG G2 Intern. D802
PAC-Man ROM (but thing thats irrelevant)
so if i place my tweak.prop in /system/ i need to edit the path in tweakprop.sh right ?
edit:
personal file is in /system/tweak.prop
editting tweakprop.sh line to
/system/tweak.prop
does not work don't get it .. sounds so simple, actually it is, but i don't know what i am doing wrong
bnbagiz said:
that is what i am trying to do you need to change the line
Code:
ro.sf.lcd_density="value you like to have, i.e. 400"
Click to expand...
Click to collapse
I know that, but where do I put it in the provided tweak.prop? What do I remove from the provided tweak.prop so that's the only change? I really don't know what any of this code actually means. Thanks to the OP for providing this, but instructions aren't very clear.
Click thanks if I helped you.
Sent from my SM-N900W8 using XDA Premium mobile app
You're my hero.So tired of changing build.prop values every time I try a different ROM. :good:
bnbagiz said:
edit:
personal file is in /system/tweak.prop
editting tweakprop.sh line to
/system/tweak.prop
does not work don't get it .. sounds so simple, actually it is, but i don't know what i am doing wrong
Click to expand...
Click to collapse
Hm.. Which recovery? Maybe it's a problem with the updater-script doesn't get executed correctly. Sadly, I have no possibilities to test those scenarios.
sauron82 said:
I know that, but where do I put it in the provided tweak.prop? What do I remove from the provided tweak.prop so that's the only change? I really don't know what any of this code actually means. Thanks to the OP for providing this, but instructions aren't very clear.
Click to expand...
Click to collapse
I didn't provide any personal file. If you only want to change this line, create a file called tweak.prop containing only this line and place it right on your internal storage.
Sent from my GT-N7100 using Tapatalk
bnbagiz said:
I am using a LG G2 Intern. D802
PAC-Man ROM (but thing thats irrelevant)
so if i place my tweak.prop in /system/ i need to edit the path in tweakprop.sh right ?
edit:
personal file is in /system/tweak.prop
editting tweakprop.sh line to
/system/tweak.prop
does not work don't get it .. sounds so simple, actually it is, but i don't know what i am doing wrong
Click to expand...
Click to collapse
If you put it in /system/ it'll get erased when you flash a new nightly anyways, as most .zip scripts wipe the /system partition... So... it would be best to keep it on the SD card.

[TEST] [Flash Zip] [HD 10] [ROOT] All-in-1: The ultimate hacks, tricks & mods zip

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

Categories

Resources