Which ROM are you using? Have you actually checked the CPU usage with some app, like System Panel? When does it occur? Which process is causing it?cool app, but i feel it spend alot of CPU resource , maybe my phone is slow
Which ROM are you using? Have you actually checked the CPU usage with some app, like System Panel? When does it occur? Which process is causing it?cool app, but i feel it spend alot of CPU resource , maybe my phone is slow
ILocationManager.java:0: error 10: Parameter of hidden type android.location.GeocoderParams in android.location.ILocationManager.getFromLocation()
ILocationManager.java:0: error 10: Parameter of hidden type android.location.GeocoderParams in android.location.ILocationManager.getFromLocationName()
Yeah, a complete build with PDroid won't work for some reason. You have to make a clean build first, then apply the patch and partially build only the modified portions by doing the following:I tried to build my own CM-Rom (for Desire-Z) with this but I can't compile it
Code:ILocationManager.java:0: error 10: Parameter of hidden type android.location.GeocoderParams in android.location.ILocationManager.getFromLocation() ILocationManager.java:0: error 10: Parameter of hidden type android.location.GeocoderParams in android.location.ILocationManager.getFromLocationName()
Without the patches compiling works perfectly.
source build/envsetup.sh
make update-api
mmm frameworks/base
mmm frameworks/base/services/java
mmm libcore
make snod
E/AndroidRuntime( 2266): FATAL EXCEPTION: main
E/AndroidRuntime( 2266): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.htc.launcher/com.htc.launcher.Launcher}: android.view.InflateException: Binary XML file line #5: Error inflating class com.htc.launcher.AllAppsGridView
E/AndroidRuntime( 2266): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1872)
E/AndroidRuntime( 2266): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1893)
E/AndroidRuntime( 2266): at android.app.ActivityThread.access$1500(ActivityThread.java:135)
E/AndroidRuntime( 2266): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1054)
E/AndroidRuntime( 2266): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 2266): at android.os.Looper.loop(Looper.java:150)
E/AndroidRuntime( 2266): at android.app.ActivityThread.main(ActivityThread.java:4385)
E/AndroidRuntime( 2266): at java.lang.reflect.Method.invokeNative(NativeMethod)
E/AndroidRuntime( 2266): at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 2266): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:849)
E/AndroidRuntime( 2266): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607)
E/AndroidRuntime( 2266): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 2266): Caused by: android.view.InflateException: Binary XML file line #5: Error inflating class com.htc.launcher.AllAppsGridView
E/AndroidRuntime( 2266): at android.view.LayoutInflater.createView(LayoutInflater.java:518)
E/AndroidRuntime( 2266): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:570)
E/AndroidRuntime( 2266): at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
E/AndroidRuntime( 2266): at android.view.LayoutInflater.parseInclude(LayoutInflater.java:707)
E/AndroidRuntime( 2266): at android.view.LayoutInflater.rInflate(LayoutInflater.java:619)
E/AndroidRuntime( 2266): at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
E/AndroidRuntime( 2266): at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
E/AndroidRuntime( 2266): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
E/AndroidRuntime( 2266): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
E/AndroidRuntime( 2266): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:250)
E/AndroidRuntime( 2266): at android.app.Activity.setContentView(Activity.java:1742)
E/AndroidRuntime( 2266): at com.htc.widget.CarouselActivity.setContentView(CarouselActivity.java:802)
E/AndroidRuntime( 2266): at com.htc.launcher.Launcher.onCreate(Launcher.java:668)
E/AndroidRuntime( 2266): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1072)
E/AndroidRuntime( 2266): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1836)
E/AndroidRuntime( 2266): ... 11 more
E/AndroidRuntime( 2266): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 2266): at java.lang.reflect.Constructor.constructNative(Native Method)
E/AndroidRuntime( 2266): at java.lang.reflect.Constructor.newInstance(Constructor.java:415)
E/AndroidRuntime( 2266): at android.view.LayoutInflater.createView(LayoutInflater.java:505)
E/AndroidRuntime( 2266): ... 25 more
E/AndroidRuntime( 2266): Caused by: java.lang.NoClassDefFoundError: com.android.server.senseui.SettingsUtility
E/AndroidRuntime( 2266): at com.htc.widget.PagedGridView.<init>PagedGridView.java)
E/AndroidRuntime( 2266): at com.htc.launcher.AllAppsGridView.<init>(AllAppsGridView.java:78)
E/AndroidRuntime( 2266): at com.htc.launcher.AllAppsGridView.<init>(AllAppsGridView.java:69)
E/AndroidRuntime( 2266): ... 28 more
D/InputDispatcher( 1540): setFocusedApplication, mFocusedApplication is NULL
V/BatteryStatsImpl( 1540): hold partial wakelock, name=ActivityManager-Launch, pid=1540
W/ActivityManager( 1540): Force finishing activity com.htc.launcher/.Launcher
Yeah, you're right. I don't see anything PDroid related in that stacktrace. I also looked at the BlueHD mods and they don't seem to modify anything PDroid related either. Might be some different issueI looked trough your code, and none of these seem to be related to your patch, but I wanted to report it anyway. I'll try again with a clean ARHD and let you know if it works correctly.
However, if you see anything that might be related to this issue, please let me know
Yeah, a complete build with PDroid won't work for some reason. You have to make a clean build first, then apply the patch and partially build only the modified portions by doing the following:
Importing the project into eclipse and checking for build errors might also be a good idea.Code:source build/envsetup.sh make update-api mmm frameworks/base mmm frameworks/base/services/java mmm libcore make snod
On a side note, I haven't built any Cyanogen ROMs this way before, so you might still encounter some issues. Plus, I am currently fixing some minor bugs I've recently discovered and will be uploading the new source soon, so you might want to wait a little.
However, if you do manage to build it, it would be nice if you would let me know which device and which exact ROM this is and send me the /system/framework/framework.jar /system/framework/services.jar and /system/framework/core.jar files so that I can include them for others to download
Haven't looked into it yet. I guess I'll have to get me some 32GB RAM rig first
I also looked at the BlueHD mods and they don't seem to modify anything PDroid related either.
Oh, didn't notice that. Then, that's most certainly the issue.BlueHD ships /system/framework/services.jar, which gets replaced by PDroid's.
Yes, in a couple of minutes.
Well, the problem is that not always the source of the target device is available, so that the only option is decompiling the ROM, patching it and then replacing original files.I think there should be a system that allows to combine mods more easily. Overwriting files is just not the way to do things
Yeah, a complete build with PDroid won't work for some reason. You have to make a clean build first, then apply the patch and partially build only the modified portions by doing the following:
Importing the project into eclipse and checking for build errors might also be a good idea.Code:source build/envsetup.sh make update-api mmm frameworks/base mmm frameworks/base/services/java mmm libcore make snod
On a side note, I haven't built any Cyanogen ROMs this way before, so you might still encounter some issues. Plus, I am currently fixing some minor bugs I've recently discovered and will be uploading the new source soon, so you might want to wait a little.
However, if you do manage to build it, it would be nice if you would let me know which device and which exact ROM this is and send me the /system/framework/framework.jar /system/framework/services.jar and /system/framework/core.jar files so that I can include them for others to download
'out/target/common/obj/JAVA_LIBRARIES/framework_intermediates//classes.dex' as 'classes.dex'...
Docs droiddoc: out/target/common/docs/api-stubs
ILocationManager.java:0: error 10: Parameter of hidden type android.location.GeocoderParams in android.location.ILocationManager.getFromLocation()
ILocationManager.java:0: error 10: Parameter of hidden type android.location.GeocoderParams in android.location.ILocationManager.getFromLocationName()
make: *** [out/target/common/docs/api-stubs-timestamp] Fehler 45
Thanks for releasing code. Now the challenge is up for me to integrate it with MIUI ( no source available !!!!!)
The error occurs when you try to do make update-api, right? Check your out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/src/privacy/java/android/privacy directory. If there are two files in there (IPrivacySettingsManager.java and IPrivacySettingsManager.P), you're good. Just continue partially building stuff with the mmm commandsI tried it again witht the latest patch (1.2) and the way you described it but it still doesn't compile.
Code:'out/target/common/obj/JAVA_LIBRARIES/framework_intermediates//classes.dex' as 'classes.dex'... Docs droiddoc: out/target/common/docs/api-stubs ILocationManager.java:0: error 10: Parameter of hidden type android.location.GeocoderParams in android.location.ILocationManager.getFromLocation() ILocationManager.java:0: error 10: Parameter of hidden type android.location.GeocoderParams in android.location.ILocationManager.getFromLocationName() make: *** [out/target/common/docs/api-stubs-timestamp] Fehler 45
I've actually quickly checked the ICS source now. From the application framework standpoint it looks pretty much identical to Gingerbread, if you ask me. So it won't be much of a problem to port PDroid to ICS-based devices.Haven't looked into it yet. I guess I'll have to get me some 32GB RAM rig first
Great! That sounds awesome. A lot of us in the nexus s section are running ICS now and a patch would be awesome. Are you pretty much doing the patches yourself or are you going to allow ROM modders to use your patch at apply it to various ROMs (with crediting you of course)?I've actually quickly checked the ICS source now. From the application framework standpoint it looks pretty much identical to Gingerbread, if you ask me. So it won't be much of a problem to port PDroid to ICS-based devices.
I'll put some work into making new patches for more devices now
patch -p1 -i build.patch
patch -p1 -i frameworks.patch
patch -p1 -i libcore.patch
source build/envsetup.sh
make update-api
mmm frameworks/base
mmm frameworks/base/services/java
mmm libcore
make snod
Right hereI do not have Market access, where can I download the PDroid app?
Controlling access to the network/internet requires either patching the kernel or using ROOT access within the PDroid app. I try avoiding the former due to portability and the latter due to user privacy/security reasons. I am looking into adding internet access control in a way, which would be the most acceptable/convenient for the user. However, this feature currently isn't on the top of my to-do list.
For experienced developers the following basic steps for creating a PDroid patch should be enough to get you started:
Yes. But I have not ported PDroid to Froyo or ICS yet. No ETAs yet. You'll need some patience there.
I might, when I get some more spare time
Yes, however you will need to backup your settings to internal memory (PDroid preferences) before making a backup with TitaniumBackup. After restoring with TitaniumBackup, you will need to restore the previously backed up settings. Alternatively you can backup privacy settings to the SD card.
Yes.
I have applied the correct patch but my device does not boot, how do I find out what the error is?
Have you flashed other mods to your ROM? If so, PDroid is most likely conflicting with them. You will need to create a patch for your customized ROM.I have flashed a patch but I am having very weird issues I didn't have before (like you cannot unlock the SIM card or there are weird graphics etc.)?
If your other mods DO NOT replace any of the three files: framework.jar, services.jar or core.jar in /system/framework, you can just create a patch normally based on your original ROM file.How do I make a patch for my device after I have flashed some other mods?