Arthur Schopenhauer said :
"A man can do what he wants, but not want what he wants"
Sunday, October 14, 2012
apk working with them
requirements
-APK Manager (get it from somewhere search on XDA)
-framework-res.apk
-Android SDK install it from sources
-JRE - search for Java Runtime and install it by default options
-to check your java version open cmd.exe and input java -version if you get error "not found" or something like that just install JRE or check if java folder is set to your path/ system variables - search somewhere how to do that
now open APK Manager (this is ver. 5.0.2) by script.bat located in program's folder
a window will be shown it looks like this
the most important options here are :
23- read important tips, request help link
22- set a project ( .apk file ) to work with
9 - to decompile an apk
11- to compile it back with modified sources/ resources
if you get in trouble comment this post or request help on XDA thread (original)
http://forum.xda-developers.com/showthread.php?t=695701
to start up just copy framework-res.apk to /place-apk-here-for-modding folder then open application by script.bat now prompt 22 and press enter to select desired apk to work with; in this case I select 3 then press enter to turn back to main window
now select 9 to decompile apk wait a while then look in /projects folder for application's files (decompiled); start editing files then compile it back by 11 option; when compiling you get a message press y for 2 times
..then look in the new-created /keep folder (this is important in fact everything is important because you work with an essential Android file ! ) if you omit this step nothing will be saved - you lost your work so proceed carefully with this step too- in this folder delete everything (every .jpg, .png ) that was changed by you and delete resources.arsc for the case you changed/ edited .xml files anyway you get the warning
..return to app window and press enter to continue compilation finally you get OK if everything is well done, now return where you started - /place-apk-here-for-modding folder then look for unsignedframework-res.apk you have to rename it to framework-res.apk and copy to phone but use adb utility not Root Explorer because it's a system file
NOTES
1. pay attention to *9.png files i.e. btn_dropdown_pressed.9.png is a *9.png file read somewhere how to edit these "expandable" images yes you can edit it by your favorite photo editor no problems but never ever do that - to touch black borders here I open above *.9.png by draw9patch.bat ( placed in android-sdk/tools folder)
one is to read about these black dots before to edit/change them
2. anytime you get a compiling error solve that before to flash framework to phone look at log.txt file for details
3. - edit .smali files to change code/ functionality
- edit .xml files to change appearance/ Android interface
sometimes it's not enough to edit framework-res.apk files are correlated i.e. to add new options/ entries to Power Menu you edit framework-res.apk to add resources (strings/ icons) and android.policy.jar to add functionality (action to run when pressing an option from Menu )
4. never sign a system apk so do not use 12 option
5. to get/ put framework from/to phone you can use adb push/ pull from SDK or you can use APK Manager
0 - pull/get file from phone
8 - push/send file to phone
to use these options you have to set environment variable tell Windows where to search for adb executable
6. this is not a detailed guide "how to do everything with apk" you should manage yourself to decompile an apk if you just want to change it anyway I try my best to change this based on your feedback - just comment it !
Cyanogenmod a friend
Starting with CWM Recovery - ported from CM sources, Cyanogenmod is a source of inspiration for me adding new and interesting features to this ROM and here is a new one coming to this Robinson ROM - not available on Move ROM : screenshot
It works by pressing power button : open an app press power button and your choice is "screenshot" then it happens a picture of that app window will be saved to
/mnt/sdcard/DCIM/screenshots
a hundred thanks to Cyanogenmod community !
well, here is a picture to prove it I made a screenshot by this feature just to remember that location where screenshots are saved to :)
when you tap on screenshot in menu system will call an intent android.intent.action.SCREENSHOT handled by CMScreenshot.apk then using a script/ code placed in system folder a screenshot is saved to sdcard
by the way : I used Wifi File Explorer (no usb cable, by default installed ) to copy this picture from the phone
Tuesday, October 9, 2012
Android is ..Linux
remember this keys combination from Linux
Ctrl+Alt+Backspace
how to do something like that on your device
open a Terminal / ConnectBot and insert
su
busybox killall system_server
I think this is the best task-killer for Android my intention is to implement this as an option in Power Menu
Thursday, September 27, 2012
a2sd
-a2sd useful commands here, use Terminal/ ConnectBot to input commands
-a2sd works with ext4 partition before to use enter CWM Recovery and create an ext4 part
(from recovery menu select Advanced/ Partition SD Card )
-a2sd works with ext4 partition before to use enter CWM Recovery and create an ext4 part
(from recovery menu select Advanced/ Partition SD Card )
a2sd check : a2sd status -displays information as where your apps/ cache/ data are placed
a2sd cachesd : to move Dalvik-cache to /sd-ext partition of sdcard you get at least 40-50 MB free on internal memory and I think that's great because this phone's internal memory is only 160 MB
a2sd nocache : move Dalvik back to the internal memory well do this if you experience low performance or system errors ( apps will crash) it is possible if you have a poor quality sdcard for me it works without problems
a2sd datasd : /data/data to /sd-ext/data to get even more free space
a2sd nodata : move back to internal memory
a2sd reinstall : move apps to external /sd-ext partition - it's not possible to move all apps
a2sd remove : move all apps back to internal
a2sd help : even more ! get a full list of commands available
NOTES
1. It is very important to move everything to sd-ext to get as much as possible free space on internal memory so move cache/application data/applications on sd-ext ! Above image is from my phone with ~ 40-50 installed apps -I got low-space message from phone of course; note that on some poor quality sdcards you can experiment crashes /hard-soft reboots then only solution is to buy a better quality sd card do not forget that important system files are placed/ cached here for now !
This is the way to keep hundreds of applications installed !
2. in order for a2sd to work on this phone as you know... firstly enter Recovery Mode and format sdcard to add an ext partition - in Menu select Advanced/ Partition SD Card
3.every app2sd app from Market work by pushing only parts of that app to sdcard it means that your internal memory becomes overwhelmed at one time... and some apps displaying a widget will not work (widget is not shown on workspace) well, a2sd has no limitations everything depends of your sdcard size and widgets will work just because this application uses an /ext partition not a /fat one - /ext is mounted to the system correctly /fat has some problems with "rights" so widgets will work only for this great a2sd application/ toolset in fact ! - thanks again Darktremor
NOTES
1. It is very important to move everything to sd-ext to get as much as possible free space on internal memory so move cache/application data/applications on sd-ext ! Above image is from my phone with ~ 40-50 installed apps -I got low-space message from phone of course; note that on some poor quality sdcards you can experiment crashes /hard-soft reboots then only solution is to buy a better quality sd card do not forget that important system files are placed/ cached here for now !
This is the way to keep hundreds of applications installed !
2. in order for a2sd to work on this phone as you know... firstly enter Recovery Mode and format sdcard to add an ext partition - in Menu select Advanced/ Partition SD Card
3.every app2sd app from Market work by pushing only parts of that app to sdcard it means that your internal memory becomes overwhelmed at one time... and some apps displaying a widget will not work (widget is not shown on workspace) well, a2sd has no limitations everything depends of your sdcard size and widgets will work just because this application uses an /ext partition not a /fat one - /ext is mounted to the system correctly /fat has some problems with "rights" so widgets will work only for this great a2sd application/ toolset in fact ! - thanks again Darktremor
Wednesday, September 19, 2012
how to flash recovery without PC
if you have a problem plugging the phone, broken cable or jack, to get recovery on the phone in order to flash a ROM or anything do like this:
copy recovery.img to sdcard
enter Terminal Emulator then enter these commands :
su
flash_image recovery /mnt/sdcard/recovery.img
reboot recovery
copy recovery.img to sdcard
enter Terminal Emulator then enter these commands :
su
flash_image recovery /mnt/sdcard/recovery.img
reboot recovery
Saturday, September 15, 2012
benchmarking PI
Monday, September 3, 2012
Gapps
About Gapps
http://goo.im/gapps/
-download a package that works for you - OS Froyo/2.2
I used gapps-mdpi-20110501-signed.zip also flash this package by CWM
NOTE
It's obvious that not all gapps from these packages will fully work for 908 i.e. the one above is made for HTC Passion = Nexus One so I have to prepare a specific package for this phone only
Update
I dropped it - old story :)
.now every (?) stock rom comes with many of them for the rest search on Market - it seems Google started to publish on Market these applications !
anyway is not good practice to flash a zip package to /system folder
Gapps are closed source applications developed and maintained by Google.
You have at least one of them on your phone- Google Play Store.
many stock ROMs got this package at least some of them usually is not good to include these apps in custom roms because they are closed source so it's hard to get customized.
I removed in Move ROM all these except for Google Play if you think you need them then
-download a package that works for you - OS Froyo/2.2
I used gapps-mdpi-20110501-signed.zip also flash this package by CWM
NOTE
It's obvious that not all gapps from these packages will fully work for 908 i.e. the one above is made for HTC Passion = Nexus One so I have to prepare a specific package for this phone only
Update
I dropped it - old story :)
.now every (?) stock rom comes with many of them for the rest search on Market - it seems Google started to publish on Market these applications !
anyway is not good practice to flash a zip package to /system folder
Sunday, September 2, 2012
CWM 5.0.2.8
- ported from Cyanogenmod 7
-full backup - it's about /custpack partition you know about that problem on the previous version
-comes in flashable .zip format -use old CWM to flash it
-download link on XDA post #332
-full backup - it's about /custpack partition you know about that problem on the previous version
-comes in flashable .zip format -use old CWM to flash it
-download link on XDA post #332
Subscribe to:
Posts (Atom)



