GlobalAction$ smali not linked to power menu - Java for Android App Development

Hello all!
I have recently been attempting to create an extended power menu containing Reboot, Recovery, and Screenshot for a stock AOSP ROM.
After creating and editing several smali files within the android policy.jar, I successfully added the desired power menu options. The problem is only 2 of the 3 work. Reboot and Recovery work fine but Screenshot does nothing after it has been pressed. I just return to the home screen, no screenshot.
I believe the problem lies in not having the proper GlobalActions$ smali linked the the screenshot function. I am quite confused and I'm not sure how to fix this. Screenshot shows up on the Power menu but does nothing.
I have attached the files I am using as well as a screenshot and the smali file. If anyone could help me out I would be greatly appreciative. Thank you!
Smali file - http://db.tt/Ttle08LX
Androidpolicy.jar - http://db.tt/IOe6JAkn
Framework-res.apk - http://db.tt/xy0QGFiH
Sent from my Nexus 4

Related

REBOOT option in power menu... DONE.. :D

hey everyone..
finally i got though it and managed to add a REBOOT option in the power menu and it is working flawlessly......
just trying much to add recovery and download options
but i m stuck , i just need to know...
after editing the system/framework/framework-res.apk/res/values , now after this how to recomplie...
when i recompile the apk remains unchanged.....
the values folders are not visible while opening by archiver as it is in the resources.arsc and is only visible after proper decompiling....
for reboot i didnt need to edit this framework-res.apk but
but for others , i need to...
any help???

[Q] can you change the size of the on screen buttons

i was wondering if there was a way to change the size of the soft buttons for home, back, ect. I was hoping to make them smaller as to not interfere with games and other apps. as well as making the home screen larger and better looking. please if any one has any info on this i would appreciate it. i am not a developer but do have lots of android experience so any info may be useful. Thanks
EDIT: with new firmware out if you have updated the frameworks posted here so far wont work. i am trying to get someone to post a new framework from the new firmware. Hopefully someone will. Thanks
The icons you're interested in are located in the drawable folder of the framework-res.apk (buttonbar_sys_*), along with the relevant xml files. I tried resizing the existing icons, but all you get is smaller icons! The buttonbar remains the same size. I'm currently looking at which xml file to edit to resize the bar itself.
cool looks like a start at least. keep me updated. thanks
You can remove side panel alltogether. Buttons will then placed in the top status panel. Root is needed.
From Archos Gen8 FAQ on 4pda.ru (can't posting outside links, sorry):
In the /data/local.prop file add string
Code:
ro.board.has_buttonbar=no
reboot
to change buttons size, install app LCD Density
add to local.prop sting
Code:
ro.sf.lcd_density=120
reboot
PS. Perhaps with modified buttons from reply #2 we don't need the last step, as it change font size too.
you can also use the app 'lcd density' to change the resolution of the screen, which makes the buttons smaller.
tashtego said:
You can remove side panel alltogether. Buttons will then placed in the top status panel. Root is needed.
From Archos Gen8 FAQ on 4pda.ru (can't posting outside links, sorry):
In the /data/local.prop file add string
Code:
ro.board.has_buttonbar=no
reboot
Click to expand...
Click to collapse
This (and other system settings) can also be found here at XDA
to change buttons size, install app LCD Density
add to local.prop sting
Code:
ro.sf.lcd_density=120
reboot
Click to expand...
Click to collapse
Just to clarify, you either need to add that string to local.prop or install LCD Density, no need for both. The only problem with this is that it changes the size of the entire UI, and makes the icons in the status bar really tiny. That really bugs me!
PS. Perhaps with modified buttons from reply #2 we don't need the last step, as it change font size too.
Click to expand...
Click to collapse
There are different images for the icons in the notification bar. They are also in the drawable folder, but are called stat_sys_*. Also, simply resizing those doesn't work either. Tried it, but the icon area stays the same, so the smaller icons are just stretched out to fill the space - doesn't look good!
Why all the guys want to kill the softbuttons?
Without them, it don´t work
The only thing is bad on the buttons is the fact that they still there by playing games
But on my Archos 5 IT , theres an fullscreen mode with that you can disable the bar/buttons by playing games.. maybe a dev can look at it
Lennb said:
Why all the guys want to kill the softbuttons?
Without them, it don´t work
The only thing is bad on the buttons is the fact that they still there by playing games
But on my Archos 5 IT , theres an fullscreen mode with that you can disable the bar/buttons by playing games.. maybe a dev can look at it
Click to expand...
Click to collapse
no, kill them than install softkeys, it works for me, no any problem^^
Reading through gen8 thread on 4pda.ru i have found another method:
For example, for 32px notification bar height, unpack framework_res.apk and change file \res\values-long-mdpi\dimens.xml as follows:
Code:
<dimen name="full_statusbar_height">32.0px</dimen>
<dimen name="compact_statusbar_height">32.0px</dimen>
<dimen name="statusbar_button_width">40.0px</dimen>
<dimen name="statusbar_button_height">32.0px</dimen>
And don't forget string "ro.board.has_buttonbar=no" in the \data\local.prop
No need to resize images. They will be scaled down automatically.
See attached screens.
ahh looks like progress , im guessing im going to need root if i want to change the framework_res.apk? which one is best for this archangle, uruk or churlis method?
tashtego said:
Reading through gen8 thread on 4pda.ru i have found another method:
For example, for 32px notification bar height, unpack framework_res.apk and change file \res\values-long-mdpi\dimens.xml as follows:
Code:
<dimen name="full_statusbar_height">32.0px</dimen>
<dimen name="compact_statusbar_height">32.0px</dimen>
<dimen name="statusbar_button_width">40.0px</dimen>
<dimen name="statusbar_button_height">32.0px</dimen>
And don't forget string "ro.board.has_buttonbar=no" in the \data\local.prop
No need to resize images. They will be scaled down automatically.
See attached screens.
Click to expand...
Click to collapse
Can you attach your moded framework-res.apk? I have an A70S if that matters. I don't knw how to mod the xml myself so please help out
tashtego said:
Reading through gen8 thread on 4pda.ru i have found another method:
For example, for 32px notification bar height, unpack framework_res.apk and change file \res\values-long-mdpi\dimens.xml as follows:
Click to expand...
Click to collapse
Nice find, thank you so much for sharing. Was still looking at xml files in the drawable folder.
Bickmista said:
ahh looks like progress , im guessing im going to need root if i want to change the framework_res.apk? which one is best for this archangle, uruk or churlis method?
Click to expand...
Click to collapse
Won't work with Archangel root, as that doesn't allow you to make changes to system files.
saprano614 said:
Can you attach your moded framework-res.apk?
Click to expand...
Click to collapse
Will be making some changes to my custom framework, so check out my thread over the next few days.
i need A framework for an 70it. I don't think that the one for a 101 will work on mine. But I don't know.
fisha21 said:
Won't work with Archangel root, as that doesn't allow you to make changes to system files.
Click to expand...
Click to collapse
cheers just one more question, would this work on the A43?
Attaching zipped framework apks, 32px and 24px versions fo 70IT, courtesy by bokorez from 4pda.ru. He used rooting method from here: http://forum.xda-developers.com/showthread.php?t=930197 (permanent r/w). I myself now only waiting for tablet, so i can't check files yet. Use it for your own risk please
It would be fine if somebody much knowledgeable than me would explain here, how to upload these files on the device.
Thanks alot. that helped out a great deal.
EDIT: I think that both are the same. i used them both and they worked but both changed the size to the same. i think that they are both 32px.
tashtego said:
Reading through gen8 thread on 4pda.ru i have found another method:
For example, for 32px notification bar height, unpack framework_res.apk and change file \res\values-long-mdpi\dimens.xml as follows:
Code:
<dimen name="full_statusbar_height">32.0px</dimen>
<dimen name="compact_statusbar_height">32.0px</dimen>
<dimen name="statusbar_button_width">40.0px</dimen>
<dimen name="statusbar_button_height">32.0px</dimen>
And don't forget string "ro.board.has_buttonbar=no" in the \data\local.prop
No need to resize images. They will be scaled down automatically.
See attached screens.
Click to expand...
Click to collapse
Ok I can't find that file in the framework-res.apk. there is no values-long-mdpi folder. A little help
saprano614 said:
Ok I can't find that file in the framework-res.apk. there is no values-long-mdpi folder. A little help
Click to expand...
Click to collapse
I don't know why, but if you open apk with archiver program, there is really no such folder, but if use
Code:
apktool -v d -s framework-res.apk
you get:
Code:
$ ls framework-res/res/values-long-ldpi/
dimens.xml
I think that both are the same. i used them both and they worked but both changed the size to the same. i think that they are both 32px.
Click to expand...
Click to collapse
No, they are different. File framework-res/res/values-long-ldpi/dimens.xml are the same in both versions and contain "24.0px" value (this is error, i suppose). Files framework-res/res/values-long-mdpi/dimens.xml are different and contain "24.0px" and "32.0px" values in 24- and 32-version respectively.
It seems i need to sort it out with the author on 4pda.ru, as i don't have device yet. Or you can try to change file dimens.xml in the folders values-long-* by yourself.
tashtego said:
Attaching zipped framework apks, 32px and 24px versions fo 70IT, courtesy by bokorez from 4pda.ru. He used rooting method from here: http://forum.xda-developers.com/showthread.php?t=930197 (permanent r/w). I myself now only waiting for tablet, so i can't check files yet. Use it for your own risk please
It would be fine if somebody much knowledgeable than me would explain here, how to upload these files on the device.
Click to expand...
Click to collapse
Very happy with the 32px framework!
Next step is to get button savior working properly (return and menu and search get disable themselves after a while , only home keeps working... ) and get completely rid of those buttons on the side AND in the bar
sibere said:
Next step is to get button savior working properly
Click to expand...
Click to collapse
Not sure if you saw the following posts on the enable system settings thread?
yepayepa said:
Mates,
I've investigated why Button Savior won't work, and I've found the solution.
In Uruk (since I'm using it), /system/bin/input shell script miss execute attributes.
So, as root just do this:
chmod +x /system/bin/input
That's all.
Cheers.
Click to expand...
Click to collapse
aznmode said:
Ok so here's exactly what I have to do to get all button on Button Savior to work.
Again I'm rooted via SDE so I'm not sure if this works for Archangel root.
1. With Root explorer, go to System> Bin and look for "input" file.
2. Press and hold for option to pop up and select "Permissions" and check all read, write, etc.
3. Reboot the device
4. Then press the regular Menu button (NOT on Button Savior yet) and go to Settings> Applications> Development then uncheck and recheck USB Debugging and hit OK.
5. Now on Button Savior press the either back or menu button.
6. The Superuser permission will pop up and select yes. If superuser is already set previously then a dialog box will shortly appear stating superuser permission applied.
7. Wait till the dialog box goes away, then press the back button. It should now back up one screen. If you press menu nothing will happen since you are in the Development screen which doesn't have a menu option so don't panic if that happens.
From here you can go back to home and test each button and they should all work now.
Each time you reset the buttons might not work again so what you need to do is go back and uncheck/recheck debugging first before pressing any of the Button Savior buttons. If you press any of Button Savior before recheck/unchecking debugging then it wont work. You'll need to reboot. To be safe uncheck/recheck it every reboot prior to using Button Savior.
The permissions should not be affected on reboot. The only time the permission gets unchecked is if you do the 10 second reset (holding power button for 10 seconds). In this case you have go back to step 1.
Click to expand...
Click to collapse

How to change text labels in ext. power menu (to replace download with screenshot)

Ok, here is the idea. Since the Download option in the Extended Power Menu is working, but will give you a non working download mode. I thought why not replace it with a Screenshot function?
I've already successfully replaced the function and the icon, but it still says Download. in the tutorial I followed they say edit this file:
res/values/strings.xml which should be in framework-res.apk
but the file does not exist! Does someone know how to change it then?
Edit: Added a screenshot!
Edit2: Never mind! I forgot to decompile with APK Manager I'll post the download soon
Edit3: framework-res.apk gives me a bootloop somehow.. hmm I followed the steps correctly
Can someone please do the following things because I get a bootloop after only changing the text "Download"
1. Put framework-res.apk in /place-apk-here-for-modding/ and start APK Manager, press 9
2. Go to projects/framework-res.apk/res/values and open strings.xml in notepad
3. Scroll to the bottom and change:
<string name="reboot_download">Download</string>
to
<string name="reboot_download">Screenshot</string>
4. Now when you are in APK Manager press 11
5. The output will be /place-apk-here-for-modding/unsignedframework-res.apk
Please send me that file. Thanks in advance
i'd like to help but all i can find looking for apk manager are links to megaupload
here you go
in public.xml theres a reference to reboot_download. i don't really know but if its not needed you could delete it probably?
<public type="string" name="reboot_download" id="0x010404c2" />
edit: i'd like to point out the part with "i don't really know"
to change something in the extended power menu you have to edit more than just the framework file
because in the framework file there are only the images
well im not sure but I know you have to decompile the classes.dex in a file
maybe it's the systemui.apk
when I'm back home I can tell you more
Sent from my GT-I9001 using XDA App
EDIT:
okay to change the function of the option Download you have to edit the file android.policy.jar
I already changed the function and the icon. but when I change the text from Download to Screenshot and then compile it I get a bootloop
okey i tried to compile it
here you go
Blumdum said:
okey i tried to compile it
here you go
Click to expand...
Click to collapse
Thanks gonna try it now.
Edit: Thanks! It works !
People behold a screenshot function

AURORA mods/addons+Connect to ad-hoc hotspots guide+decompile/compile/edit apks guide

*THESE MODS ARE FOR AURORA! USE THEM AT YOUR OWN RISK ! SEARCH THIS THREAD FOR BAD REPORTS BEFORE DOING ANYTHING ! SAY THANKS IF EVERYTHING GOES OK !*
*REMEMBER TO REBOOT YOUR PHONE IF YOU MAKE ANY CHANGES AT YOUR /SYSTEM/ FOLDER WITH A ROOT EXPLORER, IN ORDER FOR THE CHANGES TO TAKE EFFECT
REMEMBER ALSO TO SET THE SAME PERMISSIONS AS THE OTHER FILES OF THE FOLDER YOU EDITED
IT IS SUGGESTED TO WIPE CACHE & DALVIK CACHE BEFORE FLASHING ANYTHING
CWM 5.5.0.4 IS RECOMMENDED FOR FLASHING THESE MODS*
YOU MAY ALSO SEE THIS VERY USEFUL THREAD
ALL MODS UPDATED TO 5.0 (and compatible with any of the small updates, since they don't interfere with SystemUI, framework or android.policy.jar)
WAKEUP-WITH-VOLUME-KEYS:
UPDATE: Do you want this mod for your official 2.3.5?? See here
Hi there. I've modified a file of the dzo's aurora release in order to enable the "wakeup with volume keys" feature, when the phone is locked. I've been using it since the 1.6 dzo's release without having any problems and it has been tested also by other users without a problem yet. As many of us are having trouble with the nearly dead power button I think it may be useful. I have to pinpoint that this modification is NOT AN OPTION. IT IS PERMANENT. The only way to disable it is to reflash a regular (dzo's) aurora release, older, the same or newer, it doesn't matter or to flash the attached "stock_android.policy_(xxx)_flashable.zip" file.
So... the file that needs replacement is the /system/framework/android.policy.jar. As long as dzo doesn't make any changes to that file you can replace it without any problem at any aurora release. If any change is made I will update a new patch.
I suggest the following procedure to apply it:
1) Download the Aurora release you want.
2) Open the aurora_xx.zip file you've downloaded.
3) Navigate to /system/framework/ folder
3) Drag and drop inside that folder the "android.policy.jar" from the flashable zip attached. Replace if asked.
4) Flash the new .zip as usual.
Alternatively, you can try coping the android.policy.jar file with a root explorer to the same folder from your phone. Users have confirmed that this method works ok. I suggest the flashing method described above though.
EDIT: Flashable version added at the attachments. Flash it through clockworkmod normally. Thanks to sks976.
TABLET MODE
See this post and search this thread for reports.
http://forum.xda-developers.com/showpost.php?p=25452526&postcount=286
What is tablet mode? See this
FONT CHANGER - thank to leventccc and his thread here
Change the fonts of your phone. WARNING! COMPATIBLE WITH ANDROID 4.xx ONLY!
Flash the .zip through clockwork mod and follow the instructions. Navigate with volume buttons and select with power buttons.
It includes:
- Android Logo
- Gingerbread Stock
- MeeGo
- Nokia Pure View Font
- Roboto(Stock)
- Ubuntu
- Windows Phone 7
- Sony Xperia S
You can download the .zip from the original thread or you can get an updated version made by me (I only updated the Ubuntu fonts ) from here:
http://ubuntuone.com/3CfA4Hu4BKTjcCmPhxYzaa
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
ADDING SYSTEM APPLICATIONS:
Some other changes you can do is to add the applications you want at the /system/app/ folder. After flashing or copying, these application would be "system applications" and the only way to remove them is to delete their xxxxx.apk file from the /system/app/ folder of your phone. You can do that easily with a file explorer with root permissions (ex. Root Explorer). So these applications better be worth it. I do that for Nova Launcher and Apex Launcher. IF YOU COPY THEM MANUALLY REMEMBER TO SET THE CORRECT PERMISSIONS (rw-r--r--) AND REBOOT!
SGS3 Apps - thanks to sr21
http://forum.xda-developers.com/showthread.php?t=1682697
ICS Dictionary:
In the following link you will fild a post with a .zip attached. Inside the .zip is a version of LatinIME.apk with added these dictionaries:
English
French
German
Italian
Spanish
Greek
Enable it from "language & Input" settings and set the desired language! Thanks to halman for digging it for us.
THE FILE IS NOT A FLASHABLE .zip. I WON'T MAKE IT BECAUSE THE APK IS ABOUT 10MB SO COPYING IN MANUAL AS DESCRIBED ABOVE WILL ENSURE THAT YOU HAVE THE AMOUNT OF FREE SPACE NEEDED!
file here: http://forum.xda-developers.com/showpost.php?p=23949474&postcount=103
T9 Dialer:
thanks to boss_y and fsnelis for digging it up for us...
see here:
http://forum.xda-developers.com/showthread.php?t=1503581
Stock MMS APK with 160 characters sms capacity! - thanks to theos0o and mrasquinho - IMPLEMENTED ON AURORA 4.0 AND LATER
HUGEHUGEHUGEHUGE patch. See here: http://forum.xda-developers.com/showthread.php?t=1591989
You don't like the above?? You want our stock Aurora Mms.apk with correct translations?? See this - thanks to mrasquinho
http://forum.xda-developers.com/showpost.php?p=25577189&postcount=309
CM9 DSP Manager - thanks to eng.stk
see here:
http://forum.xda-developers.com/showthread.php?t=1636056
REMOVING SYSTEM APPLICATIONS:
You can also remove applications that you don't want from any rom, simply by deleting their xxxx.apk file from the /system/app/ folder of the rom's flashable .zip or from inside the phone (after flashing) with a root file manager. Just be careful with which you remove, because it may be important for the system to work properly. Here is a list of POSSIBLE unwanted applications. I haven't tested all of them, but there are reports that removing them won't harm anything. It's up to you.
OpenWnn.apk (Japanase IME) - safe to remove if you want
PinyinIME.apk (Chinese IME) - safe to remove if you want
BackupRestoreConfirmation.apk (Google's backup and restore - see settings->Backup & reset)
SharedStorageBackup.apk
WAPPushManager.apk (process incoming WAP Push messages, supported by your provider) - safe to remove if you want
PermissionToAccessLocApi.apk
PrivInit.apk
com.android.inputmethod.pinyin.apk
ChromeBookmarksSyncAdapter.apk (sync's your bookmarks from pc chrome if installed) - safe to remove if you want
Email.apk - If you use only Gmail)
Exchange.apk - If you use only Gmail)
Feedback on more apks and descriptions much appreciated!!
Thanks to eng.stk, wangjun1984
UI MODS:
SystemUI.apk:
SystemUI.apk is a system apk that controls the look/behaviour of your status bar. Here are some modified SystemUI.apk. Install them as described above (ADDING SYSTEM APPLICATIONS) or flash if .zip is a flashable file. BACKUP THE ORIGINAL SystemUI.APK AND REMEMBER TO SET THE RIGHT PERMISSIONS
return-to-stock-SystemUI.apk - flashable .zip
stock-SystemUI.apk + center clock - flashable .zip
- baterry percentage V2 (higher quality, ICS coloured) - flashable .zip
- center clock + battery percentage V2 - flashable .zip
- battery bar percentage - flashable .zip
- center clock + battery bar percentage - flashable .zip
- vertical battery percentage - flashable .zip
- vertical battery percentage + center clock -flashable .zip
- horizontal battery percentage - flashable .zip
- horizontal battery percentage + center clock - flashable .zip
- dotted circle battery percentage - flashable .zip
- dotted circle battery percentage + center clock - flashable .zip
- full circle battery percentage - flashable .zip
- full circle battery percentage + center clock - flashable .zip
- honeycomb battery - flashable .zip
- honeycomb battery + center clock - flashable .zip
- honeycomb battery V2 (only ICS colours and transparent background) - flashable .zip
- honeycomb battery V2 + center clock - flashable .zip
- liquid blue - flashable .zip
- liquid blue + center clock - flashable .zip
- more to come...
framework.apk
/system/framework/framework.apk is an .apk that configures the UI of your phone (transitions,look,icons e.t.c). Here are some mods:
return-to-stock-framework - flashable .zip
- lockscreen animation (only when screen turns off) - see howto on 3rd post - flashable.zip - thanks to fjsferreira - IMPLEMENTED BY DZO AT 4.1 AND LATER...
- Turn lockscreen animation off - flashable .zip
like this video
- lockscreen rotation - see howto on 3rd post - flashable .zip
- lockscreen animation + lockscreen rotation - see howto on 3rd post - flashable .zip
- ICS screen buttons - see howto on 3rd post - flashable .zip
- Turn lockscreen animation off + ICS screen buttons - flashable .zip
- Jellybean Animations - thanks to fjsferreira
see this post
http://forum.xda-developers.com/showpost.php?p=36596794&postcount=8326
- more to come...
If you want a combination of the above see post #3 for guides...
framework.apk + SystemUI.apk
stock framework.apk + SystemUI.apk - flashable .zip
vold.fstab - CHANGE THE DEFAULT SDCARD: -thanks to julle131
There is this file named vold.fstab at your /system/etc/ folder, which controls which of your sdcards (Internal/External) will be mounted when you connect your phone to the PC. The last 2 lines are the only that matter. These are the two possibilities:
EXTERNAL SDCARD MOUNTED (DEFAULT):
dev_mount sdcard /mnt/sdcard auto /devices/platform/msm_sdcc.4/mmc_host
dev_mount emmc /mnt/sdcard1 14 /devices/platform/msm_sdcc.2/mmc_host
INTERNAL SDCARD MOUNTED:
dev_mount sdcard /mnt/sdcard 14 /devices/platform/msm_sdcc.2/mmc_host
dev_mount emmc /mnt/sdcard1 auto /devices/platform/msm_sdcc.4/mmc_host
change them as you wish with a root explorer or before flashing.
Record Videos in .mp4 file format
I edited the /system/etc/media_profiles.xml in order to record all videos in .mp4 file format. Download it and replace the stock one on your phone with it. Remember to set the same permissions and reboot.
mp4_media_profiles.xml
Speedup wifi speeds - thanks to sbasil for the patch
Some reported that this works some didn't. Just try it if you have wifi speed problems. You can find the patch here
It replaces the /system/etc/firmware/wlan/qcom_cfg.ini file. The only difference from the original is at this line:
gDynamicPSPollvalue=5
that is commented out like this:
#gDynamicPSPollvalue=5
so you can do this change manually.
Ad-Blocking hosts
There is a file inside /system/etc/ folder named "hosts" which is responsible for blocking incoming links from the web. This can be used to filter out annoying ads from inside an app or at the browser. Flash normally without wipes. It's permissions must be rw-r--r--
download
If you want the default flash this
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
GENERAL GUIDES
GPS FIXES
CHANGE THE GPS SERVER - gps.conf:
There is a file at your system/etc/ folder named gps.conf. This file has information for your GPS in order to work properly. If you open this file the first lines look like this:
#Test
#NTP_SERVER=time.gpsonextra.net
#Asia
NTP_SERVER=asia.pool.ntp.org
#Europe
# NTP_SERVER=europe.pool.ntp.org
#North America
# NTP_SERVER=north-america.pool.ntp.org
These are the servers your gps is communicating with. By default a server at asia is chosen (everything after a '#' symbol is a comment and isn't "executed"). So if you are in europe you should change the default server to be the european one for better behaviour of the gps. I always do this change and my gps works good and locks really fast. So this is how you should change these lines for the european server (you can use any root explorer to open the file as text):
#Test
#NTP_SERVER=time.gpsonextra.net
#Asia
#NTP_SERVER=asia.pool.ntp.org
#Europe
NTP_SERVER=europe.pool.ntp.org
#North America
# NTP_SERVER=north-america.pool.ntp.org
and for the american:
#Test
#NTP_SERVER=time.gpsonextra.net
#Asia
#NTP_SERVER=asia.pool.ntp.org
#Europe
# NTP_SERVER=europe.pool.ntp.org
#North America
NTP_SERVER=north-america.pool.ntp.org
CHANGE THE GPS INTERMEDIATE_POS - gps.conf: ON 2.03test DZO MADE THIS CHANGE - THANKS
Do this only if you have problems with gps.
Inside the /system/etc/gps.conf file you will find a line
INTERMEDIATE_POS=1
change it to
INTERMEDIATE_POS=0
save and exit. Report if it works for you...
ADD YOUR BOOT ANIMATION:
It is very simple to add your own boot animation. Just copy/replace the desired bootanimation.zip file to /data/local/ with a root explorer. Set the permissions to rwxrwxr-x and reboot.... Done! This will not delete your stock bootanimation, it just replaces it. To revert delete or rename the file you pasted...
To find boot animations search google for "ICS Bootanimations" or "Android Bootanimations" and you will find many of them. If the file you find is a flashable .zip DON'T FLASH unless it's compatible for U8800. If it is for another phone (for ex Nexus), just extract the bootanimation.zip file from it and do the procedure described above! Make sure that the file you paste is named exactly "bootanimation.zip", else it won't work.
Here is a boot animation developing thread for dzo's aurora releases. Credits to kostasvr :
http://forum.xda-developers.com/showthread.php?p=22843604
CONNECT TO AD-HOC HOTSPOTS GUIDE - FOR ANY ANDROID VERSION:
I finally figured out how to connect to ad-hoc hotspots (hotspots from your pc) since android has disabled this, by filtering out the ad-hoc networks from the list. The best way to do this is to recompile the wpa_cli file removing this filtering but since I have no idea how to do that I found another way to bypass it. The idea is to manually create the profile of your wifi inside your phone and let it connect automatically! In order to do that you need a root file manager to edit the file : /data/misc/wifi/wpa_supplicant.conf.
Lets say the ad-hoc wifi you have created is called MyWiFi and it has no password. Here is the guide:
0) Disable your wifi
1) Goto /data/misc/wifi/ and open wpa_supplicant.conf as text
2) Add this entry somewhere:
network={
ssid="MyWiFi"
mode=1
frequency=2412
key_mgmt=NONE
priority=50
}
set priority as you wish. Wifi connects automatically to the lowest available profile
3) enable your wifi and let it connect automatically!!!!
If you need encryption to your wifi (WARNING: only plaintext and static WEP) you have 2 ways:
1) Add at your wifi sharing options on your PC, MAC address filtering and enter the MAC address of your mobile. This way only your mobile would be able to connect to your wifi and no changes are needed at your phone.
OR 2) Set a WEP encryption code from your computer and add these lines inside the {...} of the above code:
proto=WPA
key_mgmt=WPA-NONE
pairwise=NONE
group=TKIP
psk="secret passphrase"
I haven't tested it but it should work. Report if it does or not!
This entry wont be deleted until you do a FULL WIPE or delete it manually...
This is not only for Aurora, it is for any AOSP android which has ad-hoc filtering. But since MIUI and CM have this disabled I post it here and added it at the name of the thread.
BEWARE. WHEN THE PHONE IS CONNECTED TO AN AD-HOC NETWORK (MAYBE ALSO WHILE WIFI IS ON AND AT STANDBY) IT WON'T ENTER TO "DEEP-SLEEP" STATE NORMALLY, CAUSING GREATER BATTERY LOSS. I don't know why this is happening but it is a known problem!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I will support this thread with any other fixes-updates-tips-mods I find.
Thank you very much and CREDITS TO DZO FOR HIS WORK!
Enjoy!
Cheers
AURORA ICS- "wake with volume keys" + mods/addons + Connect to ad-hoc hotspots guide
As promised, this is a complete guide on how to edit apk files. It is not only for AURORA. It is a general guide!
TOOLS YOU NEED
- apktool (It can handle .jar files too)
OR
- apkManager: Uses apktool to decompile and compile apks but offers easier UI and other options, such as signing apk. Rcommended!
You can find any of the above tools for your platform (linux, Windows, MacOs) at google or at xda threads.I won't put any links here because there are many editions. Find what works for you best. Attached you can find the version of apkManager I use (only linux compatible, and with some fixes).
UPDATE! New version (4.3.1) added that supports decompiling framework-res.apk! Enjoy!
MOD APKS
To edit any apk you need to decompile it. This process will create some folders which include the .xml files, the icons and the .smali files of the apk. The .smali code is a pain in the ass to understand but it is the only "safe" way to decompile and recompile an apk without destroying it. To edit an apk you have to do the following:
STEP 1: You need the framework-res.apk of the rom you are editing, because it contains necessary information for the apktool to decompile or compile. Copy the framework-res.apk of the rom and paste it at the same folder with apktool (if you are using apkManager, apktool is inside its "other" folder; copy it there)
STEP 2: Open a terminal/command line and navigate at the directory of the apktool
STEP 3: type this command
Code:
./apktool if framework-res.apk
This will install the framework-res.apk to your system. In linux it installs it at ~/apktool/ . I don't know for windows .
STEP 3: Decompile an apk. Lets say you want to decompile the SystemUI.apk.
If you use apkManager copy SystemUI.apk (or any apk you want to decompile/compile) at the "place-apk-here-for-modding" folder and run the Script.sh and you will easily find how to decompile, compile and sign the apk.
If you are using apktool copy SystemUI.apk (or any apk you want to decompile/compile) at the same place with apktool and execute this at terminal
Code:
./apktool d SystemUI.apk
and you will find at the same directory a folder with the name of the apk you decompiled and all of its files inside.
STEP 4: Edit anything you want to edit!
STEP 5: Recompile...
With apkManager follow the on screen instructions of the Script.sh and also sign the apk. You will find the apk ready at the "place-apk-here-for-modding" with the the name "repackaged-signed.apk". Rename it as the original and you are ready to rock.
With apktool execute this command:
Code:
./apktool b SystemUI/
SystemUI is the folder of the decompiled apk. It could be any other apk name instead. After that you will find a folder named "dist" inside the SystemUI folder and inside of it a an .apk file which is the new .apk with your changes. In order to sign your apk you need some extra tools. You can search the web on how to sign an apk. I don't know what are the consequences of using an unsigned apk. Probably it would work ok but I haven't tried it.
STEP 6: You are ready to put the new apk at your phone. Remember if you are replacing a system apk to set the correct permissions after pasting.
Cheers
AURORA ICS- "wake with volume keys" + mods/addons + Connect to ad-hoc hotspots guide
How to Change Battery in ICS ROM - thanks to fergie716 and his guide here
After you got apktool all set up with ICS resources installed get the SystemUI.apk from your ICS ROM, decompile it.
Make sure you have installed framework-res.apk in apktool prior to decompiling ICS apks
Navigate to your decompiled SystemUI folder, go to /res/drawable-hdpi/
This is where the battery png's are in ICS. Copy/paste your battery png's. To make it more easy, make sure your png's follow the pattern (stat_sys_battery_1.png, etc)
If you plan on changing the png's for charging animation make sure you have the correct png's named stat_sys_battery_charge_anim0.png etc
(optional) Delete leftover battery png's, if any, from stock ICS
Once all your png's are in place, you need to modify the corresponding xml's
Those are found in SystemUI/res/drawable/stat_sys_battery.xml and stat_sys_battery_charge.xml
The first is responisble for the look of the battery while discharging and the second while charging. The form of them is like: When battery=20% show stat_sys_battery_20.png (random example). if you have percentage icons with all the values (0-100) you need to have a stat_sys_battery.xml like the attached named "stat_sys_battery_allpercentage.xml.zip".
For the charging images you can keep the stock stat_sys_battery_charge.xml or you can create a new based on the stock in order to show all percentages (if icons are provided). Attached you will find a charging animation .xml named "stat_sys_battery_charge_allpercentage_anim.xml.zip" which needs charging icons for all percentages in order to work properly.
If you have made mistakes at one of the .xml files the build will probalby fail or you will lose the battery icon. Your phone will work ok though and a flash of the stock SystemUI.apk will fix everything. You can decompile and use .xml files from other SystemUI.apk as long as the filenames match.
Now that you have your png's and xml's in place, go back and recompile.
How to Enable Lockscreen Rotation (ICS) - thanks to fergie716 and his guide here
-decompile framework-res.apk using apktool
-navigate to decompiled folder, go to /res/values/bools.xml
-change "config_enableLockScreenRotation" to "true"
-recompile framework-res.apk
HOW TO CENTER CLOCK - thanks to fergie716 and his guide here
-decompile your SystemUI.apk
-navigate to your decompiled folder and go to res>layout>status_bar.xml
-look for this line:
Code:
-press "enter" to create an empty line
-place your cursor at the beginning of that empty line and paste this line of code:
Code:
-make sure everything lines up (see the attached xml below)
-lastly, find this line:
Code:
name="notification_header_bg">
#00000000 would be fully transparent, #ff000000 is fully opaque.
[SIZE="5"][B]Lockscreen animation - thanks to fjsferreira for the guide[/B][/SIZE]
decompile framework-res.apk
go to res/values/bool.xml
change line
[CODE]true
to
Code:
false
Disable Unlock-with-menu-key - implemented by dzo on 2.05 and later
You may have noticed that if you are at lockscreen and press the menu key the phone unlocks. If you want to disable this do the following:
decompile framework-res.apk
go to res/values/bool.xml
change line
Code:
false
to
Code:
true
Enable ICS screen buttons
decompile framework-res.apk
go to res/values/bool.xml
change line
Code:
false
to
Code:
true
SystemUI.apk - bools.xml
After decompiling the SystemUI.apk you will find the bools.xml file inside res/values/ and it's stock form is this (I added descriptions, trueN, falseFF):
Code:
[COLOR="YellowGreen"][/COLOR]
false
[COLOR="YellowGreen"] [/COLOR]
false
[COLOR="YellowGreen"][/COLOR]
false
[COLOR="YellowGreen"][/COLOR]
false
[COLOR="YellowGreen"][/COLOR]
false
[COLOR="YellowGreen"][/COLOR]
false
Change them in your desire and report if you find something.
ENABLE VOLUME WAKE:
1) decompile android.policy.jar
I use apktool 1.4.3 for linux.
with the command:
apktool d [dir-of-the-.jar]
2) go to the apktool folder where the decompiled version is.
3) find the KeyguardViewMediator.smali source
4) change this:
...
.method private isWakeKeyWhenKeyguardShowing(IZ)Z
....
:sswitch_data_8
.sparse-switch
#0x18 remove
#0x19 remove
0x1b -> :sswitch_5
....
5) save and compile again with the command:
apktool b -f [dir-of-the-decompiled]
- ...more to come
Cheers
hey mate.
Just flashed 1.9, but forgot to change the android policy jar file
Well, tried to do it just moving it to the /system/framework, and it worked great, after reboot
thanks
Thanks spirosbond, REP+
thanks a lot. works great
Thanks for the feedback guys.
Cheers
Sent from my U8800 using xda premium
One thing you could add here (If you want) is a list of "bloatware" in this rom. The un-needed keyboards and some things. It would be easier to find the list from this topic than searching the post in ICS aurora topic.
julle131 said:
One thing you could add here (If you want) is a list of "bloatware" in this rom. The un-needed keyboards and some things. It would be easier to find the list from this topic than searching the post in ICS aurora topic.
Click to expand...
Click to collapse
Yes, I am preparing it!
Thanks
Nice work! Always nice with tweaks. Thanks!
Can you provide a simple solution/explanation how to get long press volume key to skip to next song in media players?
Thanks in advance!
cokratex said:
Nice work! Always nice with tweaks. Thanks!
Can you provide a simple solution/explanation how to get long press volume key to skip to next song in media players?
Thanks in advance!
Click to expand...
Click to collapse
I use player pro which has this option inbuilt . You can try it from market... it's a paid apk though...
spirosbond, can you add in the first post mod "center clock"?
Made for myself, decided to share)
View attachment center_clock.zip
sorry for my bad english)
sks976 said:
spirosbond, can you add in the first post mod "center clock"?
View attachment 919702
Made for myself, decided to share)
View attachment 919700
sorry for my bad english)
Click to expand...
Click to collapse
Thanks a lot sks. I've added all your work as UI MODS.
sks976,
How about working on a battery % icon for status bar ?!
The circle battery icon used on 2.1 roms would look great on this one!
Great work both of you !!! Thanks !!!
nrdl said:
sks976,
How about working on a battery % icon for status bar ?!
The circle battery icon used on 2.1 roms would look great on this one!
Great work both of you !!! Thanks !!!
Click to expand...
Click to collapse
I have long been using it) starting with version 1.7. Made it in UOT Kitchen - It is very simple)))
View attachment battery_1.9.zip
for undo stock battery flash this - View attachment battery_1.9_stock.zip
But when using this % battey mod need another center_clock.
Here it is - View attachment center_clock_forbatterymod.zip
But I have a problem with animation is charging. I do not have time to fix it.
I lost all statusbar icons, including clock, after flashing the center clock mod...
Sent from my U8800 using xda premium
Tested and approved
Thanks sks976!
I 've replaced ths file by root explorer and this method works ok without any problem ..
Thank u
olfyboy said:
I lost all statusbar icons, including clock, after flashing the center clock mod...
Sent from my U8800 using xda premium
Click to expand...
Click to collapse
Have you wipe anything ?
I made in this order:
Wipe Data Cache
Wipe Dalvik Cache
Flash battery_1.9
Flash center clock mod
Tested and working fine
nrdl said:
Have you wipe anything ?
I made in this order:
Wipe Data Cache
Wipe Dalvik Cache
Flash battery_1.9
Flash center clock mod
Tested and working fine
Click to expand...
Click to collapse
I didn't do that and work fine too...

[GUIDE/FIX] Installing Cyanogenmod 10.1 by ilyaaa299

I will gather tips also from latest versions, provoding you with one-place solution center so most common problems will be fixed without bothering the developer.
Alternative link for CM10.1 Version 10: http://skylancer.laser-beam.org/CM10/CM10.1-For-U8800-Version-10.zip
Some of the guidelines may apply for version 10, but I haven't installed it yet on my phone. Below are instructions for version 9.
For best experience of using CM10.1 version 9, follow these instructions that will fix:
- Volume rocker wake
- working Browser
- working settings after applying volume rocker wake
Alternative link for CM10.1 Version 9: http://skylancer.laser-beam.org/CM10/CM10.1 For U8800 Version 9.zip
!MAKE NANDROID BACKUP BEFORE DOING THINGS BELOW!
Step 1:
- boot into recovery, do factory reset (full wipe + dalvik wipe)
Step 2:
- partition your phone using this: http://skylancer.laser-beam.org/CM10/2G.zip
Step 3:
- reboot recovery
Step 4:
- install CM10.1 version 9 by ilyaa299
Step 5:
- boot the system
Step 6:
- reboot into recovery, flash this for volume rocker wake http://skylancer.laser-beam.org/CM10/Volume_Wake_cm10.1.zip
Step 7:
- boot the system, enable volume rocker wake in Settings -> Display -> Enable Volume rocker wake
Step 8:
- get these 3 files and put them on your sdcard:
http://skylancer.laser-beam.org/CM10/Browser.apk
http://skylancer.laser-beam.org/CM10/Settings.apk
http://skylancer.laser-beam.org/CM10/SettingsProvider.apk
Step 9:
- Open Root explorer, navigate to where you put files mentioned above, multi-select, copy, then go to /system/app and delete: Browser.apk, Settings.apk, SettingsProvider.apk.
- Press PASTE button, so files from Step 8 will be copied to your /system/app folder
- Fix permissions on those 3 files like this (long press on file, permissions): Owner - read, write; Group - read; Others - read (if you don't fix the permissions, your phone won't boot!)
- Reboot the phone
Bonus step:
Using this app https://play.google.com/store/apps/details?id=com.handyandy.appextractor&hl=en you can restore all your data from Nandroid backup (Wifi settings, Call log / Contacts, SMS, Applications + Data). Highly recommended if you have set up the phone you wanted and don't want to install everything again.
Follow the steps exactly and you should have an almost flawless ROM
Also, thanks to those who provided some of the solutions mentioned in my post, I've just gathered solutions + added my remarks in one place and posted what worked for me!
Good tips , but seems you put it in wrong section.
The three files from step 8 are wrong!
Do not download apk, download zip file.
Bruno Soares said:
The three files from step 8 are wrong!
Do not download apk, download zip file.
Click to expand...
Click to collapse
What do you mean that they are wrong? Those 3 files are:
- Browser.apk from AOSP, so it does not FC when you have CM10.1 Version 9 running
- Settings.apk - extracted from CM10.1 Version 9 (it is broken after applying volume rocker wake zip, so reapplying it fixes broken settings)
- SettingsProvider.apk - extracted from CM10.1 Version 9 (it is broken after applying volume rocker wake zip, so reapplying it fixes broken settings)
And yes, after reapplying settings apk's, volume rocker wake option is not visible anymore (which isn't anyway by default in Version 9), but it is working since it was applied in previous steps.
skyseel said:
What do you mean that they are wrong? Those 3 files are:
- Browser.apk from AOSP, so it does not FC when you have CM10.1 Version 9 running
- Settings.apk - extracted from CM10.1 Version 9 (it is broken after applying volume rocker wake zip, so reapplying it fixes broken settings)
- SettingsProvider.apk - extracted from CM10.1 Version 9 (it is broken after applying volume rocker wake zip, so reapplying it fixes broken settings)
And yes, after reapplying settings apk's, volume rocker wake option is not visible anymore (which isn't anyway by default in Version 9), but it is working since it was applied in previous steps.
Click to expand...
Click to collapse
He means that when you click the thing it goes to http://skylancer.laser-beam.org/CM10/2G.zip, not to the the file you meant to download, you messed up the names and the links.
skyseel said:
What do you mean that they are wrong? Those 3 files are:
- Browser.apk from AOSP, so it does not FC when you have CM10.1 Version 9 running
- Settings.apk - extracted from CM10.1 Version 9 (it is broken after applying volume rocker wake zip, so reapplying it fixes broken settings)
- SettingsProvider.apk - extracted from CM10.1 Version 9 (it is broken after applying volume rocker wake zip, so reapplying it fixes broken settings)
And yes, after reapplying settings apk's, volume rocker wake option is not visible anymore (which isn't anyway by default in Version 9), but it is working since it was applied in previous steps.
Click to expand...
Click to collapse
Not come as apk, come as zip file.
See the photo attached please.
Bruno Soares said:
The three files from step 8 are wrong!
Do not download apk, download zip file.
Click to expand...
Click to collapse
Demens said:
He means that when you click the thing it goes to http://skylancer.laser-beam.org/CM10/2G.zip, not to the the file you meant to download, you messed up the names and the links.
Click to expand...
Click to collapse
Ah, what a stupid mistake. Did a copy paste... Links are fixed now, sorry for the mess
WORKING FM RADIO on CM10.1 V9 but you can not change volume !!!!
I extract the apk from this ROM The apk is in the bottom.
After a long search i found this tread witch contains this:
It might help to set Debug->FM Chip to "QC V4L (HTC/u8800+)" and restart the app.
It might help to set Audio->Method to "HTC OneX". ( HERE I USE THE qdsp5v2 ) Huawei devices might work better with this than with the usual "Huawei Tavarua".
Also I use the low level API
Note that the old method of u8800 support used the low level "V4L" API that only required a /dev/radio0 device to exist. You can try to force this mode by setting Debug->FM API to "Low Level".
thanks man
ideos x5 u8800 Forum Runner
moving to general section
Hi guys..can someone provide me with the link with the zip to change the functionality of search button from acting as power button
Sent from my HUAWEI U8800 using xda premium
Thanks skyseel for starting this thread
i am unable to download from the link posted in this thread or from the yandex link can someone please upload the latest version to Dev-Host
I would like to have volWakeup on the latest version 10 too but didn't want to use settings from previous versions. So by searching XDA if found a tutorial which help me to correct recompiling the Settings.apk with volWakeup option enabled in settings -> display menu. I also found that this option doesn't wake up the phone if is in deepsleep, so I fount a mode from here:
http://forum.xda-developers.com/showthread.php?p=35230714&postcount=1
which solve this too.
The tutorial for editing settings.apk and correct sign it(I used another app before which caused that the settings don't open at all) is here:
http://forum.xda-developers.com/showthread.php?t=2184207
So here is the recompiled settings.apk with the fix:
https://www.dropbox.com/s/vq18o7xooz2k0vb/SettingVolWakeOption-CM10.1-v10.zip
I haven't test the zip, but I suppose that it will work because is the same from above link and I just added the /app/settings.apk. I have tested its on my device though. Just I directly copied the files of zip in the appropriate locations and works fine so far.
If you use it please confirm that works.
Is there any perspective about project butter in this cm10?
Sent from my U8800 using xda app-developers app

Categories

Resources