1024x600 screen size in android 2.1

by ajay pandey » Fri, 28 May 2010 22:08:53 GMT


Sponsored Links
 I made the below changes in the android 2.0 source code and able to
create 1024x600 screen size on emulator..

when I download android-2.1_r2 source code, in that I could not find
kernel-headers folder, so not able to make the above changes.
I manually downloaded the kernel-headers using:
git clone git://android.git.kernel.org/platform/external/kernel-headers

and then made the changes but it did not worked.

Please help me as I need to create 1024x600 in android 2.1




project bionic/
diff --git a/libc/kernel/arch-arm/asm/memory.h b/libc/kernel/arch-arm/
asm/memory.h
index c1137a7..743b6ef 100644
--- a/libc/kernel/arch-arm/asm/memory.h
+++ b/libc/kernel/arch-arm/asm/memory.h
@@ -46,7 +46,7 @@
 #define MODULE_START (PHYS_OFFSET)

 #ifndef CONSISTENT_DMA_SIZE
-#define CONSISTENT_DMA_SIZE SZ_2M
+#define CONSISTENT_DMA_SIZE SZ_4M
 #endif

 #ifndef __virt_to_phys

project external/kernel-headers/
diff --git a/original/asm-arm/memory.h b/original/asm-arm/memory.h
index 91d536c..fcec3b1 100644
--- a/original/asm-arm/memory.h
+++ b/original/asm-arm/memory.h
@@ -114,7 +114,7 @@
  * between 2MB and 14MB inclusive.
  */
 #ifndef CONSISTENT_DMA_SIZE
-#define CONSISTENT_DMA_SIZE SZ_2M
+#define CONSISTENT_DMA_SIZE SZ_4M
 #endif

 /*
diff --git a/original/linux/mmzone.h b/original/linux/mmzone.h
index f45163c..043a812 100644
--- a/original/linux/mmzone.h
+++ b/original/linux/mmzone.h
@@ -18,7 +18,7 @@

 /* Free memory management - zoned buddy allocator.  */
 #ifndef CONFIG_FORCE_MAX_ZONEORDER
-#define MAX_ORDER 11
+#define MAX_ORDER 12
 #else
 #define MAX_ORDER CONFIG_FORCE_MAX_ZONEORDER
 #endif

project external/qemu/
diff --git a/vl.c b/vl.c
index 3242c23..154f44f 100644
--- a/vl.c
+++ b/vl.c
@@ -181,7 +181,7 @@ int main(int argc, char **argv)
 #  define LOG_IOPORT(...) do { } while (0)
 #endif

-#define DEFAULT_RAM_SIZE 128
+#define DEFAULT_RAM_SIZE 512

 /* Max number of USB devices that can be specified on the
commandline.  */
 #define MAX_USB_CMDLINE 8

-- 



1024x600 screen size in android 2.1

by deepak singal » Mon, 07 Jun 2010 09:25:52 GMT


 Hi All,

1024x600 or 1024x768 or 1366x768 same screen size behaviour on android ?

Why this ok ?

Some side effect happen with several applications ?

Thanks & Regards
Deepak





> website: 


Sponsored Links


Other Threads

1. Need help in running the android junit test case for andriod APIDemo in eclipse

Hi,

I am trying to run Junit test case for the android APIDemo project
under eclipse.

I create an eclipse project from the APIDemo source, it compiles fine
and then I did:
1. Debug->Run as Junit tests

But I get this error:
'Lanuching AllTests' has encountered a problem.
Cannot connect to VM.

And I find this in the .log file in eclipse:
!ENTRY org.eclipse.core.net 1 0 2009-01-28 15:03:52.799
!MESSAGE System property http.nonProxyHosts has been set to
local|*.local|169.25
4/16|*.169.254/16 by an external source. This value will be
overwritten
using th
e values from the preferences

!ENTRY org.eclipse.jdt.launching 4 120 2009-01-28 15:04:03.269
!MESSAGE Cannot connect to VM
!STACK 0
java.net.SocketException: Socket closed
        at java.net.PlainSocketImpl.socketAccept(Native Method)
        at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
        at java.net.ServerSocket.implAccept(ServerSocket.java:450)
        at java.net.ServerSocket.accept(ServerSocket.java:421)
        at
org.eclipse.jdi.internal.connect.SocketTransportService.accept(Socket
TransportService.java:95)
        at
org.eclipse.jdi.internal.connect.SocketTransportImpl.accept(SocketTra
nsportImpl.java:56)
        at
org.eclipse.jdi.internal.connect.SocketListeningConnectorImpl.accept(
SocketListeningConnectorImpl.java:135)
        at
org.eclipse.jdt.internal.launching.StandardVMDe{*filter*}$ConnectRunnable
run(StandardVMDe{*filter*}.java:107)
        at java.lang.Thread.run(Thread.java:613)

!ENTRY org.eclipse.jdt.launching 4 120 2009-01-28 15:23:53.932
!MESSAGE Cannot connect to VM
!STACK 0
java.net.SocketException: Socket closed
        at java.net.PlainSocketImpl.socketAccept(Native Method)
        at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
        at java.net.ServerSocket.implAccept(ServerSocket.java:450)
        at java.net.ServerSocket.accept(ServerSocket.java:421)
        at
org.eclipse.jdi.internal.connect.SocketTransportService.accept(Socket
TransportService.java:95)
        at
org.eclipse.jdi.internal.connect.SocketTransportImpl.accept(SocketTra
nsportImpl.java:56)
        at
org.eclipse.jdi.internal.connect.SocketListeningConnectorImpl.accept(
SocketListeningConnectorImpl.java:135)
        at
org.eclipse.jdt.internal.launching.StandardVMDe{*filter*}$ConnectRunnable
run(StandardVMDe{*filter*}.java:107)
        at java.lang.Thread.run(Thread.java:613)


Thank you for any help.



--~--~---------~--~----~------------~-------~--~----~

2. Rendering the G1 screen on a computer screen via VNC software?

Yow, it works...  You da geek!   -T




> 

3. Install Android on Windows/Ubuntu Possible?

4. Problems in running ADT on eclipse on Mac

5. How to run the 'AllTests' of ApiDemos in the android sdk sample

6. Difference between kernel on git and kernel on code.google.com

7. When the dev phone will be available in Greece