SDK API level question - AT&T HTC One (M8)

I had converted my AT&T HTC One M8 to Developer edition. It has S-Off and unlocked bootloader. I have gotten the 5.0.1 update today and installed. I've noticed now under Software Information that under HTC SDK API level it says Unknown. Is this because of my unlocked bootloader? Any answer to this will be helpful. Do I need to be worried about this or not? Thanks in advance.

I was wondering the same things. I have unknown also. So maybe its not a problem.
Can you please tell me what is your hboot? is it still 3.19.0.0000

Well, there are at least three of us with the same question...

Yes make that 4, I am also on Hboot 3.19.0.0000 using the RevolutionHD ROM. 5.0.1 sense 6?

xgoochx said:
I had converted my AT&T HTC One M8 to Developer edition. It has S-Off and unlocked bootloader. I have gotten the 5.0.1 update today and installed. I've noticed now under Software Information that under HTC SDK API level it says Unknown. Is this because of my unlocked bootloader? Any answer to this will be helpful. Do I need to be worried about this or not? Thanks in advance.
Click to expand...
Click to collapse
It's because the file sdkinfo.xml is missing in the path /system/etc/sdk
You can make the file with notepad++ and put it in this path
This is the content
Code:
<?xml version="1.0" encoding="UTF-8"?>
<customization_form>
<item name="ext.version">HTCExtension_Sense60_L_2</item>
<item name="sdk.version">6.55</item>
</customization_form>

dmonium said:
It's because the file sdkinfo.xml is missing in the path /system/etc/sdk
You can make the file with notepad++ and put it in this path
This is the content
Code:
<?xml version="1.0" encoding="UTF-8"?>
<customization_form>
<item name="ext.version">HTCExtension_Sense60_L_2</item>
<item name="sdk.version">6.55</item>
</customization_form>
Click to expand...
Click to collapse
Will it be fixed if i do a reset factory?
or i should do that thing that you say?
because a have the same problem too

BZHI KURD said:
Will it be fixed if i do a reset factory?
or i should do that thing that you say?
because a have the same problem too
Click to expand...
Click to collapse
No, If you put the file in /system/etc/sdk, this will not remove when you make a reset factory.
but you need the device rooted for to do this.

dmonium said:
It's because the file sdkinfo.xml is missing in the path /system/etc/sdk
You can make the file with notepad++ and put it in this path
This is the content
Code:
<?xml version="1.0" encoding="UTF-8"?>
<customization_form>
<item name="ext.version">HTCExtension_Sense60_L_2</item>
<item name="sdk.version">6.55</item>
</customization_form>
Click to expand...
Click to collapse
If I followed your instructions will this help my phone get ota updates

Related

[Q][SOLVED]Problem with PreferenceScreen xml file

i have a gitc_preferences.xml layout file in my res/layout/ folder. i am using IntelliJ 10.0.3 and i love it. the code completion in java and in xml is by and far the best ive used. but for some reason when i am making a PreferenceScreen it seems to choke.
lemme show a little stub of something...
Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory
android:title="first_cat">
<CheckBoxPreference
android:key="checkbox_preference"
android:title="title toggle preference"
android:summary="bleh" />
</PreferenceCategory>
</PreferenceScreen>
now everything inside the <PreferenceScreen></PreferenceScreen> tag is red. it says "Element PreferenceCatagory is not allowed here" "Element CheckBoxPreference is not allowed here"
now it code completes to CheckBox but it turns red when i continue on to CheckBoxPreferences.
any help. it wont compile.
YAY! ive once again solved my own problem.
layouts of PreferenceScreen's cant be in res/layout/ they have to be in res/xml/
killersnowman said:
YAY! ive once again solved my own problem.
layouts of PreferenceScreen's cant be in res/layout/ they have to be in res/xml/
Click to expand...
Click to collapse
THANK YOU for your own answer, it helped me !
Thanks
killersnowman said:
YAY! ive once again solved my own problem.
layouts of PreferenceScreen's cant be in res/layout/ they have to be in res/xml/
Click to expand...
Click to collapse
Thanks you very much dude... only here I found this problem and the solution. :fingers-crossed::highfive:
Thank you
Thank you

Transparent Contacts.apk Froyo 2.2.2

I wish to make transparent the contacts.apk on my streak , I have tried many guides but none of these worked for my froyo 2.2.2. Any of you tried by chance?
Have you looked here?
http://forum.xda-developers.com/showthread.php?t=990014
Seems to be a lot of transparent apps here and some instructions for editing your own.
thanks for the help (useful link), even if I meant something like
I'm sorry if you do not see too much but definitely makes the idea (sorry but taken from the web)
Now that is cool and I want it too....
I found this guide on the web,i tried many times it did not work :
What you have to do:
Extract the Contacts.apk from your phone/rom zip file
Decompile Contacts.apk
Open
call_background.xml
in res/drawable
Change
--- Code: ---<?xml version="1.0" encoding="UTF-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_window_focused="false" android:drawable="android:color/transparent" />
<item android:state_focused="false" android:state_pressed="true" android:drawable="android:drawable/menuitem_checkbox_on" />
<item android:state_focused="false" android:state_pressed="false" android:drawable="android:drawable/screen_background_dark" />
</selector>
--- End code ---
To:
--- Code: ---<?xml version="1.0" encoding="UTF-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_window_focused="false" android:drawable="android:color/transparent" />
<item android:state_focused="false" android:state_pressed="true" android:drawable="android:drawable/menuitem_checkbox_on" />
<item android:state_focused="false" android:state_pressed="false" android:drawable="android:color/transparent" />
</selector>
--- End code ---
Save and close.
Open
styles.xml
in res/values.
Change lines 3-6
--- Code: ---<style name="DialtactsTheme" parent="android:style/Theme">
<item name="android:windowNoTitle">true</item>
<item name="android:windowContentOverlay">null</item>
</style>
--- End code ---
To.
--- Code: ---<style name="DialtactsTheme" parent="android:style/Theme.Wallpaper">
<item name="android:windowBackground">drawable/custom_background_dialer</item>
<item name="android:windowNoTitle">null</item>
</style>
--- End code ---
Save and close.
Next add the transparent custom_background_dialer.png to the drawable-mdpi-finger folder.This can also be a custom image doesn't have to be a transparent one.
IN APKManager choose the option to compile your Contacts
Answer yes when you get asked if it is a system apk and if you want to copy files from the original framework. After the original framework has been extracted, change to your "keep"-Directory and delete the files resources.arsc and everything that you changed, (i.e. call_background.xml and the styles.xml is now hidden so you can't delete that so just delete the resources.arsc & call_background.xml)
Let apkmanager continue its work.
Now you have a new apk file in your place-here-for-modding directory, which you can push on your phone (DO IT IN RECOVERY): adb push unsignedContacts.apk /system/app/Contacts.apk or rename taking the unsigned out and put in your theme zip.
Now you must make the dialer buttons transparent.Change the following to be transparent,
Images are in the drawable-mdpi-finger folder:
btn_dial_action_left_disable.9
btn_dial_action_left_disable_focused.9
btn_dial_action_left_normal.9
btn_dial_action_left_pressed.9
btn_dial_action_left_selected.9
btn_dial_action_middle_disable.9
btn_dial_action_middle_disable_focused.9
btn_dial_action_middle_normal.9
btn_dial_action_middle_pressed.9
btn_dial_action_middle_selected.9
btn_dial_action_right_disable.9
btn_dial_action_right_disable_focused.9
btn_dial_action_right_normal.9
btn_dial_action_right_pressed.9
btn_dial_action_right_selected.9
btn_dial_normal.9
btn_dial_pressed.9
btn_dial_selected.9
btn_dial_textfield_activated.9
btn_dial_textfield_normal.9
btn_dial_textfield_pressed.9
btn_dial_textfield_selected.9
Screen Shot of what it looks like:
You have ideas on how to do (even call_background.xml is different )
I did ok, this is for you (although I have to change something again)
could we see a teaser screenie on the streak with this, thanks guys!
nice work!

Animation codes

1) Fly in straight line
----fly along X----
<?xml version="1.0" encoding="utf-8"?><set android:shareInterpolator="false" android:zAdjustment="top" xmlns:android="http://schemas.android.com/apk/res/android"> <translate android:duration="@integer/config_longAnimTime" android:fromXDelta="100.0%p" android:toXDelta="0.0" /></set>
----fly along y---
<?xml version="1.0" encoding="utf-8"?><set android:shareInterpolator="false" android:zAdjustment="top" xmlns:android="http://schemas.android.com/apk/res/android"> <translate android:duration="@integer/config_longAnimTime" android:fromYDelta="100.0%p" android:toYDelta="0.0" /></set>
---fly along X-Y-----
<?xml version="1.0" encoding="utf-8"?><set android:shareInterpolator="false" android:zAdjustment="top" xmlns:android="http://schemas.android.com/apk/res/android"> <translate android:duration="@integer/config_longAnimTime" android:fromYDelta="100.0%p" android:toYDelta="0.0" android:fromXDelta="100.0%p" android:toXDelta="0.0" /></set>
^^^^^^^^^CHANGE VALUES ACCORDINGLY TO ALTER DIRECTIONS^^^^^^^^^
---requirements------ basic knowledge of co-ordinate geometry----in translate animation,,,,, the center of mass of screen (if seen as a rectangle) is the ORIGIN (0,0)-=----------------------and 100%p means 100% (along X or Y , down or right if positive and up or left if negative) relative to paren]]]]]
2) Popup from CENTER
<?xml version="1.0" encoding="utf-8"?><set android:interpolator="@anim/decelerate_interpolator" xmlns:android="http://schemas.android.com/apk/res/android">
<scale android:duration="500 android:fromXScale="0.0" android:toXScale="1.0" android:fromYScale="0.0" android:toYScale="1.0" />
</set>
3) Popup from top-left (relative to you,, not screen)
<?xml version="1.0" encoding="utf-8"?><set android:interpolator="@anim/decelerate_interpolator" xmlns:android="http://schemas.android.com/apk/res/android">
<scale android:duration="500 androidivotX="100%p" android:fromXScale="0.0" android:toXScale="1.0" android:fromYScale="0.0" android:toYScale="1.0" />
</set>
4) Fade in
<?xml version="1.0" encoding="utf-8"?><set android:interpolator="@anim/decelerate_interpolator" xmlns:android="http://schemas.android.com/apk/res/android"> <alpha android:duration="@integer/config_mediumAnimTime" android:fromAlpha="0.0" android:toAlpha="1.0" /></set>
-------combine all these intelligently to create several combos------------------------
change values accordingly to create OUT animations
------------------------------------------------------------------PRESS THANKS IF YOU LIKE MY WORK :good: ---------------------------------------------------------------------
Can I apply this for lockscreen...
Regards,
Ganesh
Ganesh A said:
Can I apply this for lockscreen...
Regards,
Ganesh
Click to expand...
Click to collapse
yes you can... just edit lockscreen exit xml in framework-res/anim/
Great one ..... Helped meh alot !! (Y)
@aman d awsum--- COOL :good:
re animation
nice guide
i will try
where are the activity_open_enter, open_exit and activity_close_enter, close_exit used for? i mean, how do these work? if an app is opened, does activity_open_enter get used, and if an app is closed activity_close_exit is used?
How to do this with stock rom
mjz2cool said:
where are the activity_open_enter, open_exit and activity_close_enter, close_exit used for? i mean, how do these work? if an app is opened, does activity_open_enter get used, and if an app is closed activity_close_exit is used?
Click to expand...
Click to collapse
bro,,, see the anims that begin with the word wallpaper,,,, those are the one that show the way wallpaper and app opening closing etc!!! just search for them in styles.xml and you will know

[help] port speed net meter for kitkat

Hi, i'm trying to port a speed net meter to work in my stock SystemUI for moto X, because the source is not compatible with the android 4.4.2. I don't know smaler and i want your help.
This is the source of the speed net meter:
SystemUI>res>layout/status_bar.xml
Code:
<com.android.systemui.statusbar.policy.Traffic android:textAppearance="@style/TextAppearance.StatusBar.Traffic" android:gravity="left|center" android:id="@id/traffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
SystemUI>res>values/ids.xml
Code:
<item type="id" name="traffic">false</item>
SystemUI>res/values/styles.xml
Code:
<style name="TextAppearance.StatusBar.Traffic" parent="@style/TextAppearance.StatusBar.Clock">
<item name="android:textSize">14.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
<item name="android:textAllCaps">false</item>
</style>
PS: i'm using apktool v2.0.0b9.
In the "ATTACHED FILES" have:
- the original smalis of the speed meter
- the smalis that i have make a part of the port
- the framework-res of my rom
- the SystemUI of my rom
Unless you're dead set on learning smali coding, you can just install the Xposed Framework and this module: http://repo.xposed.info/module/tw.fatminmin.xposed.networkspeedindicator
es0tericcha0s said:
Unless you're dead set on learning smali coding, you can just install the Xposed Framework and this module:
Click to expand...
Click to collapse
thanks, but i don't want use xposed! :good:
Help :c
moderators, close the thread! resolved!
ramon20 said:
moderators, close the thread! resolved!
Click to expand...
Click to collapse
mind mentioning first what was wrong? could be helpful for others having the same problem.. :fingers-crossed:
kermage said:
mind mentioning first what was wrong? could be helpful for others having the same problem.. :fingers-crossed:
Click to expand...
Click to collapse
was missing modify some parts of the code, and I do not know, I found the same smalis elsewhere, and they were already ported
ramon20 said:
was missing modify some parts of the code, and I do not know, I found the same smalis elsewhere, and they were already ported
Click to expand...
Click to collapse
:good:

How to use Java DOM to parse and then modify .xml file for android apps?

I have knowledge of preparing .xml files however I want to know how can an .xml file on Android Mobile app can be modified? One of my peers had suggested me Java DOM, so how can I do it and what is the process? Can anyone help me out here?
<?xml version="1.0" encoding="UTF-8"?>
<Safaris>
<safari type="Desert"/>
<safari type="Advanture"/>
</Safaris>
Click to expand...
Click to collapse
Here is where I want to modify XML.

Categories

Resources