Jump to content

AOSP Eclair 2.1 r4 for GSM Hero (now with online kitchen)


Guest jnwhiteh

Recommended Posts

Guest jnwhiteh
Is this the new lockscreen or the old one?

Look at the screenshots posted in the first post. Please don't make me waste my time =/.

:) Hi all,

1. MANY THANKS

2. Camera KO, APN switch ON/OFF KO

3. Geolocalization (3G) KO

mmmmmm...waiting for some fix, I believe.

Though, many, many thanks....

What the hell does 'KO' mean? I assume you mean 'broken'?

1. YOu're welcome

2a. Camera does NOT force close if you follow directions and use 3MP and 2MP. This is in the FAQ.. so please don't post about it here.

2b. APN Switch, there are applications you can download from the Market. I don't know that I'll be altering AOSP enough to put it in here.

3. Are you talking about network location lookup based on cell towers? Join the club and help us fix it.

I'm sorry if my tone is snippy.. but I asked peopel to keep these forums clean. I'm not interested in reasons why someone will or won't use my rom..

is the CID issue fixed?

cant find any weather widget to recognize my location :)

No, as listed in the first post.

Wow this is awesome, i decided to register and post to say thank you for the effort!

p.s. I managed to install Launcher2.apk and it doesnt FC, but the scaling of the icons is all messed up. But the homescreen navigation buttons work properly and the expose stuff aswell...

So for anyone wondering if the new app drawer would even run on a Hero, Yes it does and theres no lag! Too bad the scaling is off atm, probably due to the resolution differences mentioned.

Yes it will, but its designed for an hdpi device including the graphics and the layouts. It's not a simple fix or I would have already done it.

Does anyone have strange issues with the Market header bar? On the new 2.1 build that I just flashed, the header (where it says "ANDROID market" and has a shopping bag) has a tiny strip of grey at the far left side, and the rest of the background is colored white. Once you select an app to view more information in the market, the app name and "Installed" or "Free" part doesn't seem right on a white background. I've included three images below. The first one is a screenshot showing the header as I've described. The second one is a screenshot that I grabbed from Google Images (note that the header has an entirely grey background.

The final image is from the Facebook app that was installed with the Googlebits 1.2. It also has a strange color bar at the top. In the past, there was a blue bar that ran across the top of the screen. With this version, it's a partial blue bar that stops about a quarter of the way over. I'm not sure if this is related, and I may somehow be the only one who sees this, but I just thought I would ask.

Those applications were taken from the Nexus One build, which is an hdpi device with a MUCH higher resolution. Things are bound to look a bit off if the application isn't properly designed for mdpi devices. You're welcome to use the old applications, but I'd rather take the new ones with the graphic glitches.

Somehow i'm missing the digital clock and date widget, that your homescreen shows. Did have it in earlier 2.0 builds. I flashed the Hero with Eclair 2.1 r1 and GoogleBits 1.2, and updated Googlebits with 1.3 a few minutes ago.

Those aren't AOSP. They won't be here.

Link to comment
Share on other sites

Guest jnwhiteh
anyone know why i cant connect to network data when wifi is off?

i config the APN and still nothing :)

I'm not sure.. I've not heard anyone else have this issue. If your APN is configured correctly then you should pick up the network.

Same for me "adb shell apps2sd on" command works in CMD but really doesn't, internal memory keeps lowering with every app install..

Great ROM by the way.

Did you partition your SD card? It's not magical.. you also don't check it by checking the internal memory, you use adb shell to see where your data/app directory is actually sitting =).

Great stuff! :)

I have a problem with connecting to pptp vpn networks. Similar to the issue posted here: http://code.google.com/p/cyanogenmod/issues/detail?id=855

pptpd server = pptpd v1.3.4 (Ubuntu 8.04)

On the pptpd server I see:

Jan  16 20:38:46 server pptpd[30023]: GRE:  read(fd=7,buffer=1002149c,len=8260) from network failed: status = -1  error = Protocol not available
tcpdump confirms the ICMP packet as origionating from the android client. 192.168.75.3 = pptpd server 192.168.75.22 = android client
20:59:56.633952 IP 192.168.75.22 > 192.168.75.3: ICMP 192.168.75.22 protocol 47 unreachable, length 6
logcat on the android client reports
I/mtpd	( 3520): Creating PPPoX socket	 

	 F/mtpd	( 3520): Socket() Address family not supported by protocol

Sadly if its something to do with the kernel, my hands are completely tied. We have no source.

Cool, just going through this ROM. All working good so far, but weird coming from sense!

I noticed the integrated Facebook account options in Settings/Accounts & sync and this then takes you to the Facebook app that comes with the rom.

Signs in fine etc.

But one thing i've noticed is my girlfriend sent me an SMS not long after and now her Facebook pic is displaying in her contact info.

Is this something that's not quite working yet where the new 2.1 should sync facebook pics to contacts like sense does?!

I don't know how the integration is meant to work in this version, to be completely honest.

<com.android.launcher2.AllAppsView

android:scrollbarStyle="0x03000000"

android:id="@7F070006"

android:layout_width="-1"

android:layout_height="-1"

android:listSelector="@7F02000C"

android:drawSelectorOnTop="false"

android:verticalSpacing="10.0dip"

android:numColumns="4"

>

</com.android.launcher2.AllAppsView>

Is there any way to convert XML back into Binary XML?

You give me patches and I compile them directly into AOSP. No need for binary hacking on an AOSP ROM, that's precisely the point.

Ooh on a Launcher2 related note! I just noticed that the Gallery app isnt drawing properly either! Perhaps the whole bad drawing is something wrong with the Rom?

Umm.. what isn't 'drawing' properly. Gallery3D works 100% perfectly for me. The issue with Launcehr is an issue with the application, not anything with the ROM.

Link to comment
Share on other sites

Guest jnwhiteh
<com.android.launcher2.AllAppsView

android:scrollbarStyle="0x03000000"

android:id="@7F070006"

android:layout_width="-1"

android:layout_height="-1"

android:listSelector="@7F02000C"

android:drawSelectorOnTop="false"

android:verticalSpacing="10.0dip"

android:numColumns="4"

>

</com.android.launcher2.AllAppsView>

Is there any way to convert XML back into Binary XML?

I don't see any changes with this.. or are you just asking an academic question?

Link to comment
Share on other sites

Guest Revoked
I'm not sure.. I've not heard anyone else have this issue. If your APN is configured correctly then you should pick up the network.

Did you partition your SD card? It's not magical.. you also don't check it by checking the internal memory, you use adb shell to see where your data/app directory is actually sitting =).

Sadly if its something to do with the kernel, my hands are completely tied. We have no source.

I don't know how the integration is meant to work in this version, to be completely honest.

You give me patches and I compile them directly into AOSP. No need for binary hacking on an AOSP ROM, that's precisely the point.

Umm.. what isn't 'drawing' properly. Gallery3D works 100% perfectly for me. The issue with Launcehr is an issue with the application, not anything with the ROM.

The drawing of Gallery3D isnt 100% for me, the top right is falling off (No Camera Icon or atleast not the full icon)

Link to comment
Share on other sites

I'm not sure.. I've not heard anyone else have this issue. If your APN is configured correctly then you should pick up the network.

now i know why.

after reboot the APN list was empty although i config it before :)

thanks alot fot this GREAT rom !!! :)

Link to comment
Share on other sites

Did you partition your SD card? It's not magical.. you also don't check it by checking the internal memory, you use adb shell to see where your data/app directory is actually sitting =).

Yes, i've just switched from CKDroid 1.4, apps2sd was working fine.

It does say via command that apps2sd on is successful please reboot, reboot phone but when i check to see if apps are on SD, they aren't!

Link to comment
Share on other sites

Guest jnwhiteh
The drawing of Gallery3D isnt 100% for me, the top right is falling off (No Camera Icon or atleast not the full icon)

Similar issue with the layout and the application not being designed for this resolution, but that's hardly an 'issue'.

The versions we've gotten that have had mdpi support from from vendors who add that support in themselves on their own devices. The ones built from AOSP don't have that code, because no one commits their stuff to the repositories.

It's definitely possible that there's an issue somewhere else, but I'm not sure where to even begin looking for it. I'm fairly sure the launcher issue is because of the application design.

Switch from landscape to portrait in Gallery3D and watch the awesomeness.

Edited by jnwhiteh
Link to comment
Share on other sites

Guest jnwhiteh
Similar issue with the layout and the application not being designed for this resolution, but that's hardly an 'issue'.

The versions we've gotten that have had mdpi support from from vendors who add that support in themselves on their own devices. The ones built from AOSP don't have that code, because no one commits their stuff to the repositories.

It's definitely possible that there's an issue somewhere else, but I'm not sure where to even begin looking for it. I'm fairly sure the launcher issue is because of the application design.

Switch from landscape to portrait in Gallery3D and watch the awesomeness.

If you push a version from another ROM, the camera icon is fine (layout issue) but I've been able to reproduce the wonky switching orientation behavior a few times now. Not show-stopping for me.. but we're waiting on a lot from HTC, sadly unless I find something else =)

Link to comment
Share on other sites

Guest jnwhiteh
now i know why.

after reboot the APN list was empty although i config it before :)

thanks alot fot this GREAT rom !!! :)

Thanks for reporting back.

Yes, i've just switched from CKDroid 1.4, apps2sd was working fine.

It does say via command that apps2sd on is successful please reboot, reboot phone but when i check to see if apps are on SD, they aren't!

Yes, I know that.. but what does the logcat from te next boot say? That's where any errors or issues would appear. The script/system is still very untested and immature right now.

Link to comment
Share on other sites

Guest Revoked

Just ran a test by scaling the whole UI down and Gallery will fit properly if scaling down... So will the emergency call button.

ro.sf.lcd_density = 160

in build.prop

Too bad Launcher2.apk only the icons will scale down (But surprisingly not the Home button, so that icon isnt coded to scale down at all)

Edited by Revoked
Link to comment
Share on other sites

Guest jnwhiteh
Just ran a test by scaling the whole UI down and Gallery will fit properly if scaling down... So will the emergency call button.

ro.sf.lcd_density = 160

in build.prop

Too bad Launcher2.apk only the icons will scale down (But surprisingly not the Home button, so that icon isnt coded to scale down at all)

That property is already set in build.prop

ro.sf.lcd_density = 160

dount ur rom haw this funktion? http://images.pcworld.com/news/graphics/17...ct_original.jpg i wonder becus i cant get it to work

Just press on the image of your contact and the slider opens up.

1. Contacts

2. Click on the picture of a contact

3. Bar shows up and you select feature.

Link to comment
Share on other sites

Thanks for reporting back.

Yes, I know that.. but what does the logcat from te next boot say? That's where any errors or issues would appear. The script/system is still very untested and immature right now.

I've no idea how to do that, sorry! If i had a guide to follow on how to do that, no problem! But otherwise i'm an android novice and have no idea! :)

Link to comment
Share on other sites

Guest Revoked
That property is already set in build.prop

ro.sf.lcd_density = 160

Just press on the image of your contact and the slider opens up.

1. Contacts

2. Click on the picture of a contact

3. Bar shows up and you select feature.

I know, I meant I lowered the value to scale down the UI to see what would scale and what wouldnt. Gallery scales completely (Thus allowing it to fit on screen properly), So does emergency call button.

Link to comment
Share on other sites

Guest jnwhiteh
I know, I meant I lowered the value to scale down the UI to see what would scale and what wouldnt. Gallery scales completely (Thus allowing it to fit on screen properly), So does emergency call button.

Ah, thanks. I wonder why things are messed up, maybe something something simple in the build configuration..

Link to comment
Share on other sites

Guest karumbo
Sadly if its something to do with the kernel, my hands are completely tied. We have no source.

I thought that may be the case, but wasn't 100% whether we had kernel source or not. No biggie, but at least its recorded somewhere now. Roll on HTC's release to get updated drivers and kernel source then :)

Link to comment
Share on other sites

Lucky for you, I have such a guide: http://htcpedia.com/forum/showthread.php?t=1541

    Apk com.android.providers.media:
(nothing executed)
#10026:
Wake lock window: (nothing executed)
Apk com.google.android.apps.genie.geniewidget:
Service com.google.android.apps.genie.geniewidget.GenieRefreshService:
Created for: 0ms uptime
Starts: 2, launches: 1
#10029:
Wake lock GridView.Slideshow.All: (nothing executed)
Wake lock window: (nothing executed)
Sensor 0: (not used)
Apk com.cooliris.media:
(nothing executed)
#10030:
Apk com.android.email:
(nothing executed)
#10033:
Wake lock window: (nothing executed)
#10034:
Wake lock StartingAlertService: (nothing executed)
Apk com.android.calendar:
(nothing executed)
#10037:
(nothing executed)
#10038:
(nothing executed)
#10039:
Wake lock window: (nothing executed)
Apk com.tni.TasKillerFull:
Service com.tni.TasKillerFull.TasKillerLauncher:
Created for: 0ms uptime
Starts: 1, launches: 0
-------------------------------------------------------------------------------
DUMP OF SERVICE entropy:
-------------------------------------------------------------------------------
DUMP OF SERVICE media.audio_flinger:
Clients:
Hardware status: 0

Output thread 0xd950 internals
last write occurred (msecs): 33262
total writes: 0
delayed writes: 0
blocked in write: 0
standby: 1
Sample rate: 44100
Frame count: 1200
Channel Count: 2
Format: 1
Frame size: 4

Pending setParameters commands:
Index Command

Pending config events:
Index event param

AudioMixer tracks: 00000000
Output thread 0xd950 tracks
Name Clien Typ Fmt Chn Buf S M F SRate LeftV RighV Serv User
Output thread 0xd950 active tracks
Name Clien Typ Fmt Chn Buf S M F SRate LeftV RighV Serv User
AudioHardwareBase::dumpState
mMode: 0
AudioHardwareBase::dumpState
mMode: 0
AudioHardware::dumpInternals
mInit: true
mMicMute: true
mBluetoothNrec: true
mBluetoothId: 0
AudioStreamOutMSM72xx::dump
sample rate: 44100
buffer size: 4800
channels: 12
format: 1
mHardware: 0xae88
mFd: -1
mStartCount: 0
mRetryCount: 0
mStandby: true
-------------------------------------------------------------------------------
DUMP OF SERVICE media.audio_policy:
PolicyManager Interface: 0xd738
Command Thread: 0xd638
Tones Thread: 0xd538
AudioCommandThread 0xd638 Dump
- Commands:
Command Time Wait pParam
Last Command
02 000007.622 1 0xfcd8
AudioCommandThread 0xd538 Dump
- Commands:
Command Time Wait pParam
Last Command
-1 32088581.071 109 0x690064

AudioPolicyManager Dump: 0xd738
Hardware Output: 1
A2DP Output: 0
Duplicated Output: 0
Output devices: 00000003
Input devices: 00040000
A2DP device address:
SCO device address:
Phone state: 0
Ringer mode: 0
Force use for communications 0
Force use for media 0
Force use for record 0
Force use for dock 0

Outputs dump:
- Output 1 dump:
Sampling rate: 44100
Format: 1
Channels: 0000000c
Latency: 54
Flags 00000000
Devices 00000002
Stream volume refCount
00 1.000 0
01 1.000 0
02 1.000 0
03 1.000 0
04 1.000 0
05 1.000 0
06 -1.000 0
07 1.000 0
08 1.000 0
09 1.000 0

Inputs dump:

Streams dump:
Stream Index Min Index Max Index Cur Mute Count Can be muted
00 00 01 01 00 1
01 00 01 01 00 1
02 00 01 01 00 1
03 00 01 01 00 1
04 00 01 01 00 1
05 00 01 01 00 1
06 00 01 01 00 1
07 00 01 01 00 1
08 00 01 01 00 1
09 00 01 01 00 1
-------------------------------------------------------------------------------
DUMP OF SERVICE media.camera:
No camera client yet.
-------------------------------------------------------------------------------
DUMP OF SERVICE media.player:
Files opened and/or mapped:
-------------------------------------------------------------------------------
DUMP OF SERVICE power:
Power Manager State:
mIsPowered=false mPowerState=15 mScreenOffTime=33300 ms
mPartialCount=3
mWakeLockState=
mUserState=
mPowerState=KEYBOARD_BRIGHT_BIT SCREEN_BRIGHT_BIT SCREEN_ON_BIT
mLocks.gather=SCREEN_ON_BIT
mNextTimeout=0 now=33299 -33s from now
mDimScreen=true mStayOnConditions=3
mScreenOffReason=0 mUserState=0
mBroadcastQueue={-1,-1,-1}
mBroadcastWhy={0,0,0}
mPokey=0 mPokeAwakeonSet=false
mKeyboardVisible=false mUserActivityAllowed=true
mKeylightDelay=6000 mDimDelay=47000 mScreenOffDelay=7000
mPreventScreenOn=false mScreenBrightnessOverride=-1
mTotalDelaySetting=60000
mLastScreenOnTime=32369
mBroadcastWakeLock=UnsynchronizedWakeLock(mFlags=0x1 mCount=1 mHeld=true)
mStayOnWhilePluggedInScreenDimLock=UnsynchronizedWakeLock(mFlags=0x6 mCount=0
mHeld=true)
mStayOnWhilePluggedInPartialLock=UnsynchronizedWakeLock(mFlags=0x1 mCount=0 mH
eld=true)
mPreventScreenOnPartialLock=UnsynchronizedWakeLock(mFlags=0x1 mCount=0 mHeld=f
alse)
mProximityPartialLock=UnsynchronizedWakeLock(mFlags=0x1 mCount=0 mHeld=false)
mProximityWakeLockCount=0
mProximitySensorEnabled=false
mProximitySensorActive=false
mProximityPendingValue=-1
mLastProximityEventTime=0
mLightSensorEnabled=false
mLightSensorValue=-1.0
mLightSensorPendingValue=-1.0
mUseSoftwareAutoBrightness=false
mAutoBrightessEnabled=false
mScreenBrightness: animating=false targetValue=30 curValue=30.0 delta=2.0
mKeyboardBrightness: animating=false targetValue=0 curValue=0.0 delta=0.0
mButtonBrightness: animating=false targetValue=0 curValue=0.0 delta=0.0

mLocks.size=4:
SCREEN_DIM_WAKE_LOCK 'StayOnWhilePluggedIn Screen Dim' activated (mi
nState=1)
PARTIAL_WAKE_LOCK 'StayOnWhilePluggedIn Partial' activated (minSt
ate=0)
PARTIAL_WAKE_LOCK 'sleep_broadcast' activated (minState=0)
PARTIAL_WAKE_LOCK 'KeyInputQueue' activated (minState=0)

mPokeLocks.size=0:

-------------------------------------------------------------------------------
DUMP OF SERVICE telephony.registry:
last known state:
mCallState=0
mCallIncomingNumber=
mServiceState=1 home null null null Unknown CSS not supported 0 0RoamInd: 0De
fRoamInd: 0
mSignalStrength=SignalStrength: 99 -1 -1 -1 -1 -1 -1 gsm
mMessageWaiting=false
mCallForwarding=false
mDataActivity=0
mDataConnectionState=2
mDataConnectionPossible=false
mDataConnectionReason=
mDataConnectionApn=
mDataConnectionInterfaceName=
mCellLocation=Bundle[{cid=-1, lac=-1}]
registrations: count=0
-------------------------------------------------------------------------------
DUMP OF SERVICE usagestats:
Date: 20100121
com.protocol.x.su.fbs: 3 times, 167404 ms
com.protocol.x.su.fbs.ViewHandler: 3 starts, 2000-3000ms=1
com.android.providers.subscribedfeeds: 1 times, 4171 ms
com.android.settings.ManageAccountsSettings: 1 starts, 500-750ms=1
com.android.music: 1 times, 3206 ms
com.android.music.ArtistAlbumBrowserActivity: 1 starts, 1500-2000ms=1
com.android.music.MusicBrowserActivity: 1 starts
com.svox.pico: 1 times, 94 ms
com.svox.pico.CheckVoiceData: 1 starts
android: 6 times, 95404 ms
com.android.internal.app.RingtonePickerActivity: 3 starts, 500-750ms=1, 750-
1000ms=2
com.android.internal.app.UsbStorageStopActivity: 1 starts, 1500-2000ms=1
com.android.internal.app.UsbStorageActivity: 2 starts, 250-500ms=2
com.android.launcher: 20 times, 2589604 ms
com.android.launcher.Launcher: 20 starts, >=5000ms=2
com.android.camera: 1 times, 24266 ms
com.android.camera.Camera: 1 starts, >=5000ms=1
com.android.settings: 15 times, 195326 ms
com.android.settings.wifi.WifiSettings: 1 starts, 500-750ms=1
com.android.settings.ManageApplications: 1 starts
com.android.settings.AppWidgetPickActivity: 3 starts, 250-500ms=1, 500-750ms
=1, 750-1000ms=1
com.android.settings.vpn.VpnSettings: 1 starts, 250-500ms=1
com.android.settings.DateTimeSettings: 1 starts, 500-750ms=1
com.android.settings.deviceinfo.Memory: 3 starts, 500-750ms=1, 1500-2000ms=2

com.android.settings.AccessibilitySettings: 1 starts, 250-500ms=1
com.android.settings.bluetooth.BluetoothSettings: 1 starts, 500-750ms=1
com.android.settings.DevelopmentSettings: 1 starts, 500-750ms=1
com.android.settings.SecuritySettings: 1 starts, 500-750ms=1
com.android.settings.Settings: 19 starts, 750-1000ms=2, 1000-1500ms=1
com.android.settings.ApplicationSettings: 4 starts, 250-500ms=1
com.android.settings.SoundAndDisplaySettings: 3 starts, 500-750ms=1
com.android.settings.LanguageSettings: 2 starts, 500-750ms=1
com.android.settings.LocalePicker: 1 starts, 1000-1500ms=1
com.android.settings.deviceinfo.Status: 1 starts, 500-750ms=1
com.android.settings.RunningServices: 1 starts, >=5000ms=1
com.android.settings.PrivacySettings: 1 starts, 500-750ms=1
com.android.settings.WirelessSettings: 6 starts, 500-750ms=1
com.android.settings.TextToSpeechSettings: 2 starts, 2000-3000ms=1
com.android.settings.fuelgauge.PowerUsageSummary: 1 starts, 500-750ms=1
com.android.settings.DeviceInfoSettings: 3 starts, 750-1000ms=1
com.android.settings.ApnSettings: 1 starts, 250-500ms=1
com.cooliris.media: 3 times, 81583 ms
com.cooliris.media.Gallery: 3 starts, 750-1000ms=1, 2000-3000ms=1
com.android.deskclock: 4 times, 62499 ms
com.android.deskclock.SetAlarm: 2 starts, 1000-1500ms=1
com.android.deskclock.AlarmClock: 2 starts, 500-750ms=1
com.android.deskclock.DeskClock: 4 starts, 1500-2000ms=1
com.android.phone: 4 times, 20771 ms
com.android.phone.CallFeaturesSetting: 2 starts, 750-1000ms=1
com.android.phone.Settings: 3 starts, 250-500ms=1, 500-750ms=1
com.android.phone.GsmUmtsAdditionalCallOptions: 1 starts, 500-750ms=1
com.google.android.apps.genie.geniewidget: 2 times, 64593 ms
com.google.android.apps.genie.geniewidget.activities.NewsWidgetConfiguration
Activity: 1 starts, 2000-3000ms=1
com.google.android.apps.genie.geniewidget.activities.CustomLocationPreferenc
es: 1 starts, 250-500ms=1
com.google.android.apps.genie.geniewidget.activities.NewsActivity: 2 starts,
1000-1500ms=1
com.google.android.apps.genie.geniewidget.activities.LocationPreferences: 2
starts, 500-750ms=1
com.android.mms: 1 times, 3032 ms
com.android.mms.ui.ConversationList: 1 starts, 750-1000ms=1
com.tni.TasKillerFull: 2 times, 52143 ms
com.tni.TasKillerFull.PreferenceList: 2 starts, 250-500ms=1, 750-1000ms=1
com.tni.TasKillerFull.TasKiller: 4 starts, 500-750ms=1, 3000-4000ms=1
com.android.globalsearch: 1 times, 1465 ms
com.android.globalsearch.SearchSettings: 1 starts, 750-1000ms=1
org.zenthought.android.su: 1 times, 11663 ms
org.zenthought.android.su.SuRequest: 1 starts, 3000-4000ms=1

c:\android\tools>[/codebox]

Doesn't seem to select it all from where i start at adb devices, only selects so much? But thats what came up.

Link to comment
Share on other sites

Guest Revoked
Ah, thanks. I wonder why things are messed up, maybe something something simple in the build configuration..

Sadly it won't fix Launcher2 as it seems to have alot of static component not scaling whatsoever (except for the app icons)

Launcher2 seems to have some hardcoded values set.

Also, no clue how apks work but I found the raw drawing code in the apk. It seems to take some variables from the XML files... but this is in raw C format so no clue what the android system does with that, doubt it'll compile this on the run...

Owyeah this is a snippet from Launcher2.apk/res/raw/rollo.c

void
draw_page(int icon, int lastIcon, float centerAngle, float scale)
{
int row;
int col;

//debugF("center angle", centerAngle);

float iconTextureWidth = ICON_WIDTH_PX / (float)ICON_TEXTURE_WIDTH_PX;
float iconTextureHeight = ICON_HEIGHT_PX / (float)ICON_TEXTURE_HEIGHT_PX;

float iconWidthAngle = VIEW_ANGLE * ICON_WIDTH_PX / SCREEN_WIDTH_PX;
float columnGutterAngle = iconWidthAngle * 0.9f;

float farIconSize = FAR_ICON_SIZE;
float iconGutterHeight = farIconSize * 1.3f;

float farIconTextureSize = far_size(2 * ICON_TEXTURE_WIDTH_PX / (float)SCREEN_WIDTH_PX);

float normalizedLabelWidth = 2 * params->bubbleWidth / (float)SCREEN_WIDTH_PX;
float farLabelHeight = far_size(params->bubbleHeight * (normalizedLabelWidth / params->bubbleWidth));

for (row=0; row<=lastIcon; row++) {
float angle = centerAngle;
angle -= (columnGutterAngle + iconWidthAngle) * 1.5f;

float iconTop = (farIconSize + iconGutterHeight) * (1.85f + ICON_TOP_OFFSET)
- row * (farIconSize + iconGutterHeight);
float iconBottom = iconTop - farIconSize;

float labelY = iconBottom - farLabelHeight;
float iconTextureTop = iconTop + (0.5f * (farIconTextureSize - farIconSize));
float iconTextureBottom = iconTextureTop - farIconTextureSize;

for (col=0; col<=lastIcon; col++) {
// icon
float sine = sinf(angle);
float cosine = cosf(angle);

float centerX = sine * RADIUS;
float centerZ = cosine * RADIUS / scale;

if (scale > 1.f) {
centerX *= scale;
}

float iconLeftX = centerX - (/*cosine * */ farIconTextureSize * .5);
float iconRightX = centerX + (/*cosine * */ farIconTextureSize * .5);
float iconLeftZ = centerZ;// + (sine * farIconTextureSize * .5);
float iconRightZ = centerZ;// - (sine * farIconTextureSize * .5);

color(1.0f, 1.0f, 1.0f, 0.99f);
if (state->selectedIconIndex == icon) {
bindTexture(NAMED_PFTexLinear, 0, state->selectedIconTexture);
drawQuadTexCoords(
iconLeftX, iconTextureTop, iconLeftZ, 0.0f, 0.0f,
iconRightX, iconTextureTop, iconRightZ, 1.0f, 0.0f,
iconRightX, iconTextureBottom, iconRightZ, 1.0f, 1.0f,
iconLeftX, iconTextureBottom, iconLeftZ, 0.0f, 1.0f);
} else {
bindTexture(NAMED_PFTexLinear, 0, loadI32(ALLOC_ICON_IDS, icon));
drawQuadTexCoords(
iconLeftX, iconTextureTop, iconLeftZ, 0.0f, 0.0f,
iconRightX, iconTextureTop, iconRightZ, 1.0f, 0.0f,
iconRightX, iconTextureBottom, iconRightZ, 1.0f, 1.0f,
iconLeftX, iconTextureBottom, iconLeftZ, 0.0f, 1.0f);
}

// label
if (scale < 1.2f) {
float a = (1.2f - maxf(scale, 1.0f)) * 5;
color(1.0f, 1.0f, 1.0f, a);
bindTexture(NAMED_PFTexLinear, 0, loadI32(ALLOC_LABEL_IDS, icon));
drawSprite(centerX, labelY, centerZ,
params->bubbleBitmapWidth, params->bubbleBitmapHeight);
}

angle += columnGutterAngle + iconWidthAngle;
icon++;
}
}
}[/codebox]

Link to comment
Share on other sites

Guest jnwhiteh
Sadly it won't fix Launcher2 as it seems to have alot of static component not scaling whatsoever (except for the app icons)

Launcher2 seems to have some hardcoded values set.

Also, no clue how apks work but I found the raw drawing code in the apk. It seems to take some variables from the XML files... but this is in raw C format so no clue what the android system does with that, doubt it'll compile this on the run...

Owyeah this is a snippet from Launcher2.apk/res/raw/rollo.c

void
draw_page(int icon, int lastIcon, float centerAngle, float scale)
{
int row;
int col;

//debugF("center angle", centerAngle);

float iconTextureWidth = ICON_WIDTH_PX / (float)ICON_TEXTURE_WIDTH_PX;
float iconTextureHeight = ICON_HEIGHT_PX / (float)ICON_TEXTURE_HEIGHT_PX;

float iconWidthAngle = VIEW_ANGLE * ICON_WIDTH_PX / SCREEN_WIDTH_PX;
float columnGutterAngle = iconWidthAngle * 0.9f;

float farIconSize = FAR_ICON_SIZE;
float iconGutterHeight = farIconSize * 1.3f;

float farIconTextureSize = far_size(2 * ICON_TEXTURE_WIDTH_PX / (float)SCREEN_WIDTH_PX);

float normalizedLabelWidth = 2 * params->bubbleWidth / (float)SCREEN_WIDTH_PX;
float farLabelHeight = far_size(params->bubbleHeight * (normalizedLabelWidth / params->bubbleWidth));

for (row=0; row<=lastIcon; row++) {
float angle = centerAngle;
angle -= (columnGutterAngle + iconWidthAngle) * 1.5f;

float iconTop = (farIconSize + iconGutterHeight) * (1.85f + ICON_TOP_OFFSET)
- row * (farIconSize + iconGutterHeight);
float iconBottom = iconTop - farIconSize;

float labelY = iconBottom - farLabelHeight;
float iconTextureTop = iconTop + (0.5f * (farIconTextureSize - farIconSize));
float iconTextureBottom = iconTextureTop - farIconTextureSize;

for (col=0; col<=lastIcon; col++) {
// icon
float sine = sinf(angle);
float cosine = cosf(angle);

float centerX = sine * RADIUS;
float centerZ = cosine * RADIUS / scale;

if (scale > 1.f) {
centerX *= scale;
}

float iconLeftX = centerX - (/*cosine * */ farIconTextureSize * .5);
float iconRightX = centerX + (/*cosine * */ farIconTextureSize * .5);
float iconLeftZ = centerZ;// + (sine * farIconTextureSize * .5);
float iconRightZ = centerZ;// - (sine * farIconTextureSize * .5);

color(1.0f, 1.0f, 1.0f, 0.99f);
if (state->selectedIconIndex == icon) {
bindTexture(NAMED_PFTexLinear, 0, state->selectedIconTexture);
drawQuadTexCoords(
iconLeftX, iconTextureTop, iconLeftZ, 0.0f, 0.0f,
iconRightX, iconTextureTop, iconRightZ, 1.0f, 0.0f,
iconRightX, iconTextureBottom, iconRightZ, 1.0f, 1.0f,
iconLeftX, iconTextureBottom, iconLeftZ, 0.0f, 1.0f);
} else {
bindTexture(NAMED_PFTexLinear, 0, loadI32(ALLOC_ICON_IDS, icon));
drawQuadTexCoords(
iconLeftX, iconTextureTop, iconLeftZ, 0.0f, 0.0f,
iconRightX, iconTextureTop, iconRightZ, 1.0f, 0.0f,
iconRightX, iconTextureBottom, iconRightZ, 1.0f, 1.0f,
iconLeftX, iconTextureBottom, iconLeftZ, 0.0f, 1.0f);
}

// label
if (scale < 1.2f) {
float a = (1.2f - maxf(scale, 1.0f)) * 5;
color(1.0f, 1.0f, 1.0f, a);
bindTexture(NAMED_PFTexLinear, 0, loadI32(ALLOC_LABEL_IDS, icon));
drawSprite(centerX, labelY, centerZ,
params->bubbleBitmapWidth, params->bubbleBitmapHeight);
}

angle += columnGutterAngle + iconWidthAngle;
icon++;
}
}
}[/codebox]

You should not be looking at the .apk. Look at the source: http://android.git.kernel.org/?p=platform/...clair;hb=eclair

Link to comment
Share on other sites

Guest jnwhiteh
    Apk com.android.providers.media:
(nothing executed)
#10026:
Wake lock window: (nothing executed)
Apk com.google.android.apps.genie.geniewidget:
Service com.google.android.apps.genie.geniewidget.GenieRefreshService:
Created for: 0ms uptime
Starts: 2, launches: 1
#10029:
Wake lock GridView.Slideshow.All: (nothing executed)
Wake lock window: (nothing executed)
Sensor 0: (not used)
Apk com.cooliris.media:
(nothing executed)
#10030:
Apk com.android.email:
(nothing executed)
#10033:
Wake lock window: (nothing executed)
#10034:
Wake lock StartingAlertService: (nothing executed)
Apk com.android.calendar:
(nothing executed)
#10037:
(nothing executed)
#10038:
(nothing executed)
#10039:
Wake lock window: (nothing executed)
Apk com.tni.TasKillerFull:
Service com.tni.TasKillerFull.TasKillerLauncher:
Created for: 0ms uptime
Starts: 1, launches: 0
-------------------------------------------------------------------------------
DUMP OF SERVICE entropy:
-------------------------------------------------------------------------------
DUMP OF SERVICE media.audio_flinger:
Clients:
Hardware status: 0

Output thread 0xd950 internals
last write occurred (msecs): 33262
total writes: 0
delayed writes: 0
blocked in write: 0
standby: 1
Sample rate: 44100
Frame count: 1200
Channel Count: 2
Format: 1
Frame size: 4

Pending setParameters commands:
Index Command

Pending config events:
Index event param

AudioMixer tracks: 00000000
Output thread 0xd950 tracks
Name Clien Typ Fmt Chn Buf S M F SRate LeftV RighV Serv User
Output thread 0xd950 active tracks
Name Clien Typ Fmt Chn Buf S M F SRate LeftV RighV Serv User
AudioHardwareBase::dumpState
mMode: 0
AudioHardwareBase::dumpState
mMode: 0
AudioHardware::dumpInternals
mInit: true
mMicMute: true
mBluetoothNrec: true
mBluetoothId: 0
AudioStreamOutMSM72xx::dump
sample rate: 44100
buffer size: 4800
channels: 12
format: 1
mHardware: 0xae88
mFd: -1
mStartCount: 0
mRetryCount: 0
mStandby: true
-------------------------------------------------------------------------------
DUMP OF SERVICE media.audio_policy:
PolicyManager Interface: 0xd738
Command Thread: 0xd638
Tones Thread: 0xd538
AudioCommandThread 0xd638 Dump
- Commands:
Command Time Wait pParam
Last Command
02 000007.622 1 0xfcd8
AudioCommandThread 0xd538 Dump
- Commands:
Command Time Wait pParam
Last Command
-1 32088581.071 109 0x690064

AudioPolicyManager Dump: 0xd738
Hardware Output: 1
A2DP Output: 0
Duplicated Output: 0
Output devices: 00000003
Input devices: 00040000
A2DP device address:
SCO device address:
Phone state: 0
Ringer mode: 0
Force use for communications 0
Force use for media 0
Force use for record 0
Force use for dock 0

Outputs dump:
- Output 1 dump:
Sampling rate: 44100
Format: 1
Channels: 0000000c
Latency: 54
Flags 00000000
Devices 00000002
Stream volume refCount
00 1.000 0
01 1.000 0
02 1.000 0
03 1.000 0
04 1.000 0
05 1.000 0
06 -1.000 0
07 1.000 0
08 1.000 0
09 1.000 0

Inputs dump:

Streams dump:
Stream Index Min Index Max Index Cur Mute Count Can be muted
00 00 01 01 00 1
01 00 01 01 00 1
02 00 01 01 00 1
03 00 01 01 00 1
04 00 01 01 00 1
05 00 01 01 00 1
06 00 01 01 00 1
07 00 01 01 00 1
08 00 01 01 00 1
09 00 01 01 00 1
-------------------------------------------------------------------------------
DUMP OF SERVICE media.camera:
No camera client yet.
-------------------------------------------------------------------------------
DUMP OF SERVICE media.player:
Files opened and/or mapped:
-------------------------------------------------------------------------------
DUMP OF SERVICE power:
Power Manager State:
mIsPowered=false mPowerState=15 mScreenOffTime=33300 ms
mPartialCount=3
mWakeLockState=
mUserState=
mPowerState=KEYBOARD_BRIGHT_BIT SCREEN_BRIGHT_BIT SCREEN_ON_BIT
mLocks.gather=SCREEN_ON_BIT
mNextTimeout=0 now=33299 -33s from now
mDimScreen=true mStayOnConditions=3
mScreenOffReason=0 mUserState=0
mBroadcastQueue={-1,-1,-1}
mBroadcastWhy={0,0,0}
mPokey=0 mPokeAwakeonSet=false
mKeyboardVisible=false mUserActivityAllowed=true
mKeylightDelay=6000 mDimDelay=47000 mScreenOffDelay=7000
mPreventScreenOn=false mScreenBrightnessOverride=-1
mTotalDelaySetting=60000
mLastScreenOnTime=32369
mBroadcastWakeLock=UnsynchronizedWakeLock(mFlags=0x1 mCount=1 mHeld=true)
mStayOnWhilePluggedInScreenDimLock=UnsynchronizedWakeLock(mFlags=0x6 mCount=0
mHeld=true)
mStayOnWhilePluggedInPartialLock=UnsynchronizedWakeLock(mFlags=0x1 mCount=0 mH
eld=true)
mPreventScreenOnPartialLock=UnsynchronizedWakeLock(mFlags=0x1 mCount=0 mHeld=f
alse)
mProximityPartialLock=UnsynchronizedWakeLock(mFlags=0x1 mCount=0 mHeld=false)
mProximityWakeLockCount=0
mProximitySensorEnabled=false
mProximitySensorActive=false
mProximityPendingValue=-1
mLastProximityEventTime=0
mLightSensorEnabled=false
mLightSensorValue=-1.0
mLightSensorPendingValue=-1.0
mUseSoftwareAutoBrightness=false
mAutoBrightessEnabled=false
mScreenBrightness: animating=false targetValue=30 curValue=30.0 delta=2.0
mKeyboardBrightness: animating=false targetValue=0 curValue=0.0 delta=0.0
mButtonBrightness: animating=false targetValue=0 curValue=0.0 delta=0.0

mLocks.size=4:
SCREEN_DIM_WAKE_LOCK 'StayOnWhilePluggedIn Screen Dim' activated (mi
nState=1)
PARTIAL_WAKE_LOCK 'StayOnWhilePluggedIn Partial' activated (minSt
ate=0)
PARTIAL_WAKE_LOCK 'sleep_broadcast' activated (minState=0)
PARTIAL_WAKE_LOCK 'KeyInputQueue' activated (minState=0)

mPokeLocks.size=0:

-------------------------------------------------------------------------------
DUMP OF SERVICE telephony.registry:
last known state:
mCallState=0
mCallIncomingNumber=
mServiceState=1 home null null null Unknown CSS not supported 0 0RoamInd: 0De
fRoamInd: 0
mSignalStrength=SignalStrength: 99 -1 -1 -1 -1 -1 -1 gsm
mMessageWaiting=false
mCallForwarding=false
mDataActivity=0
mDataConnectionState=2
mDataConnectionPossible=false
mDataConnectionReason=
mDataConnectionApn=
mDataConnectionInterfaceName=
mCellLocation=Bundle[{cid=-1, lac=-1}]
registrations: count=0
-------------------------------------------------------------------------------
DUMP OF SERVICE usagestats:
Date: 20100121
com.protocol.x.su.fbs: 3 times, 167404 ms
com.protocol.x.su.fbs.ViewHandler: 3 starts, 2000-3000ms=1
com.android.providers.subscribedfeeds: 1 times, 4171 ms
com.android.settings.ManageAccountsSettings: 1 starts, 500-750ms=1
com.android.music: 1 times, 3206 ms
com.android.music.ArtistAlbumBrowserActivity: 1 starts, 1500-2000ms=1
com.android.music.MusicBrowserActivity: 1 starts
com.svox.pico: 1 times, 94 ms
com.svox.pico.CheckVoiceData: 1 starts
android: 6 times, 95404 ms
com.android.internal.app.RingtonePickerActivity: 3 starts, 500-750ms=1, 750-
1000ms=2
com.android.internal.app.UsbStorageStopActivity: 1 starts, 1500-2000ms=1
com.android.internal.app.UsbStorageActivity: 2 starts, 250-500ms=2
com.android.launcher: 20 times, 2589604 ms
com.android.launcher.Launcher: 20 starts, >=5000ms=2
com.android.camera: 1 times, 24266 ms
com.android.camera.Camera: 1 starts, >=5000ms=1
com.android.settings: 15 times, 195326 ms
com.android.settings.wifi.WifiSettings: 1 starts, 500-750ms=1
com.android.settings.ManageApplications: 1 starts
com.android.settings.AppWidgetPickActivity: 3 starts, 250-500ms=1, 500-750ms
=1, 750-1000ms=1
com.android.settings.vpn.VpnSettings: 1 starts, 250-500ms=1
com.android.settings.DateTimeSettings: 1 starts, 500-750ms=1
com.android.settings.deviceinfo.Memory: 3 starts, 500-750ms=1, 1500-2000ms=2

com.android.settings.AccessibilitySettings: 1 starts, 250-500ms=1
com.android.settings.bluetooth.BluetoothSettings: 1 starts, 500-750ms=1
com.android.settings.DevelopmentSettings: 1 starts, 500-750ms=1
com.android.settings.SecuritySettings: 1 starts, 500-750ms=1
com.android.settings.Settings: 19 starts, 750-1000ms=2, 1000-1500ms=1
com.android.settings.ApplicationSettings: 4 starts, 250-500ms=1
com.android.settings.SoundAndDisplaySettings: 3 starts, 500-750ms=1
com.android.settings.LanguageSettings: 2 starts, 500-750ms=1
com.android.settings.LocalePicker: 1 starts, 1000-1500ms=1
com.android.settings.deviceinfo.Status: 1 starts, 500-750ms=1
com.android.settings.RunningServices: 1 starts, >=5000ms=1
com.android.settings.PrivacySettings: 1 starts, 500-750ms=1
com.android.settings.WirelessSettings: 6 starts, 500-750ms=1
com.android.settings.TextToSpeechSettings: 2 starts, 2000-3000ms=1
com.android.settings.fuelgauge.PowerUsageSummary: 1 starts, 500-750ms=1
com.android.settings.DeviceInfoSettings: 3 starts, 750-1000ms=1
com.android.settings.ApnSettings: 1 starts, 250-500ms=1
com.cooliris.media: 3 times, 81583 ms
com.cooliris.media.Gallery: 3 starts, 750-1000ms=1, 2000-3000ms=1
com.android.deskclock: 4 times, 62499 ms
com.android.deskclock.SetAlarm: 2 starts, 1000-1500ms=1
com.android.deskclock.AlarmClock: 2 starts, 500-750ms=1
com.android.deskclock.DeskClock: 4 starts, 1500-2000ms=1
com.android.phone: 4 times, 20771 ms
com.android.phone.CallFeaturesSetting: 2 starts, 750-1000ms=1
com.android.phone.Settings: 3 starts, 250-500ms=1, 500-750ms=1
com.android.phone.GsmUmtsAdditionalCallOptions: 1 starts, 500-750ms=1
com.google.android.apps.genie.geniewidget: 2 times, 64593 ms
com.google.android.apps.genie.geniewidget.activities.NewsWidgetConfiguration
Activity: 1 starts, 2000-3000ms=1
com.google.android.apps.genie.geniewidget.activities.CustomLocationPreferenc
es: 1 starts, 250-500ms=1
com.google.android.apps.genie.geniewidget.activities.NewsActivity: 2 starts,
1000-1500ms=1
com.google.android.apps.genie.geniewidget.activities.LocationPreferences: 2
starts, 500-750ms=1
com.android.mms: 1 times, 3032 ms
com.android.mms.ui.ConversationList: 1 starts, 750-1000ms=1
com.tni.TasKillerFull: 2 times, 52143 ms
com.tni.TasKillerFull.PreferenceList: 2 starts, 250-500ms=1, 750-1000ms=1
com.tni.TasKillerFull.TasKiller: 4 starts, 500-750ms=1, 3000-4000ms=1
com.android.globalsearch: 1 times, 1465 ms
com.android.globalsearch.SearchSettings: 1 starts, 750-1000ms=1
org.zenthought.android.su: 1 times, 11663 ms
org.zenthought.android.su.SuRequest: 1 starts, 3000-4000ms=1

c:\android\tools>[/codebox]

Doesn't seem to select it all from where i start at adb devices, only selects so much? But thats what came up.

I'm not really sure what that's a dump of..it's not the result of an adb logcat. I'll maybe mess with APP2SD sometime later this week.

Link to comment
Share on other sites

Guest J.L. Bloem

Wondering; Is there a way to add more dictionaries for the predictive typing? Tried to do some research, but it seems like it's not that easy.

Having a Dutch dictionary would make your release completely perfect, in my opinion. Wouldn't switch back to a 2.1 Sense release, way to clunky and flashy for me. I'm so happy with my clean looking Hero atm, with AOSP 2.1 flashed on it. Perfect for my job, lots of emailing, agenda syncing, etc.

Again, thanks for the hard work.

Link to comment
Share on other sites

Guest jnwhiteh
Wondering; Is there a way to add more dictionaries for the predictive typing? Tried to do some research, but it seems like it's not that easy.

Having a Dutch dictionary would make your release completely perfect, in my opinion. Wouldn't switch back to a 2.1 Sense release, way to clunky and flashy for me. I'm so happy with my clean looking Hero atm, with AOSP 2.1 flashed on it. Perfect for my job, lots of emailing, agenda syncing, etc.

Again, thanks for the hard work.

Yep, if you can find me a ROM that has a dictionary, I can get it into the ROM.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.