Hiya,
I've been trying to get the Samsung Galaxy Applications, such as Memo.apk to work. Right now I keep getting FC's when I try to start Memo.apk, it, however, installs without any problems.
I pushed twframework.jar and twframework-res.apk, which are part of my deodexed framework archiv, to /system/framework.
I've edited init.rc and added /system/framework/twframework.jar, at my end it looks like this
Code:
export BOOTCLASSPATH /system/framework/core.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/twframework.jar
I pushed touchwiz.xml to system/etc/permissions/ - if you can't be arsed to download the full system dump, here is the content:
Code:
<?xml version="1.0" encoding="utf-8"?>
<permissions>
<library name="touchwiz" file="/system/framework/twframework.jar"/>
</permissions>
This allowed me to install Memo.apk without any problems.
However, as I already mentioned, I keep getting FC's - I'm done with my latin so maybe one of you guys know what to do next.
Here is the logcat output:
Code:
I/ActivityManager( 119): Starting activity: Intent { act=android.intent.action.MEMO_CREATE cmp=com.sec.android.app.memo/.MemoCreateActivity }
W/ResourceType( 723): Resources don't contain package for resource number 0x02050001
D/AndroidRuntime( 723): Shutting down VM
W/dalvikvm( 723): threadid=3: thread exiting with uncaught exception (group=0x4001b178)
E/AndroidRuntime( 723): Uncaught handler: thread main exiting due to uncaught exception
E/AndroidRuntime( 723): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.sec.android.app.memo/com.sec.android.app.memo.MemoCreateActivity}: android.view.InflateException: Binary XML file line #31: Error inflating class <unknown>
E/AndroidRuntime( 723): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
E/AndroidRuntime( 723): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
E/AndroidRuntime( 723): at android.app.ActivityThread.access$2200(ActivityThread.java:119)
E/AndroidRuntime( 723): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
E/AndroidRuntime( 723): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 723): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 723): at android.app.ActivityThread.main(ActivityThread.java:4363)
E/AndroidRuntime( 723): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 723): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 723): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime( 723): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/AndroidRuntime( 723): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 723): Caused by: android.view.InflateException: Binary XML file line #31: Error inflating class <unknown>
E/AndroidRuntime( 723): at android.view.LayoutInflater.createView(LayoutInflater.java:513)
E/AndroidRuntime( 723): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
E/AndroidRuntime( 723): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563)
E/AndroidRuntime( 723): at android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
E/AndroidRuntime( 723): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621)
E/AndroidRuntime( 723): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621)
E/AndroidRuntime( 723): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621)
E/AndroidRuntime( 723): at android.view.LayoutInflater.inflate(LayoutInflater.java:407)
E/AndroidRuntime( 723): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
E/AndroidRuntime( 723): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
E/AndroidRuntime( 723): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198)
E/AndroidRuntime( 723): at android.app.Activity.setContentView(Activity.java:1622)
E/AndroidRuntime( 723): at com.sec.android.app.memo.MemoCreateActivity.onCreate(MemoCreateActivity.java:114)
E/AndroidRuntime( 723): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
E/AndroidRuntime( 723): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
E/AndroidRuntime( 723): ... 11 more
E/AndroidRuntime( 723): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 723): at android.widget.TextView.<init>(TextView.java:320)
E/AndroidRuntime( 723): at java.lang.reflect.Constructor.constructNative(Native Method)
E/AndroidRuntime( 723): at java.lang.reflect.Constructor.newInstance(Constructor.java:446)
E/AndroidRuntime( 723): at android.view.LayoutInflater.createView(LayoutInflater.java:500)
E/AndroidRuntime( 723): ... 25 more
E/AndroidRuntime( 723): Caused by: android.content.res.Resources$NotFoundException: File res/drawable-hdpi/memo_more_bg.png from drawable resource ID #0x2050001: .xml extension required
E/AndroidRuntime( 723): at android.content.res.Resources.loadColorStateList(Resources.java:1820)
E/AndroidRuntime( 723): at android.content.res.TypedArray.getColorStateList(TypedArray.java:289)
E/AndroidRuntime( 723): at android.widget.TextView.<init>(TextView.java:627)
E/AndroidRuntime( 723): ... 29 more
Deodexed Framework: http://ul.to/6ocdh7
Deodexed Memo.apk http://ul.to/vmv7tc
/system dump of the Galaxy S:
frifox said:
EDIT: Thanks to jimbob343 for /system dump. Hopefully with no objections, here it is: http://www.mediafire.com/?uinwwjl0jhn ([email protected])
Click to expand...
Click to collapse
Good work
this is the root cause:
Caused by: android.content.res.Resources$NotFoundException: File res/drawable-hdpi/memo_more_bg.png from drawable resource ID #0x2050001: .xml extension required
Click to expand...
Click to collapse
Does the file exist? I dont know what it means by ".xml extension required"
borjus86 said:
Good work,but don't work at me
Click to expand...
Click to collapse
*facepalm*
I'm not sure but:
At boot the system could actually be skipping the twframework files if they contain duplicate information to an already loaded framework.
So, a suggestion is to move the twframeworks to a higher priority in the bootclasspath by including them earlier in the path. Not too early mind... and you may actually find this then breaks something else. If you have a Galaxy S kernel you could check the order they use.
It may not work at all but you could try:
Code:
export BOOTCLASSPATH /system/framework/core.jar:/system/framework/ext.jar:[COLOR="Red"]/system/framework/twframework.jar[/COLOR]:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar
This may just boot loop of course... if it does, move the twframework one to the next lowest priority in bootclasspath.
You need to logcat the boot though, whatever you do, to establish if the framework loads or if it's rejected and if it does load, does it all load.
That logcat above indicates to me that the necessary hooks in the framework weren't available to the app.
I'm just eagerly awaiting your touchwiz launcher, lol
Froyo?
it possible to support with Froyo?
as far as i know from playing with trying to get the HTC Sense framework loading you have to put the twframework before framework.jar
is there a twframework.apk file? is it might be looking for resources in that apk which aren't in the app you are trying to run.
as to how to make sure that frameworkapk is loaded i'm not sure.
You may need to get someone to integrate the framework into the app directly.
These are similar problems we encountered when trying to port the FM radio app to stock froyo.
Froyo
it support to froyo?
natz said:
it support to froyo?
Click to expand...
Click to collapse
Why the same question twice?? We can talk Froyo compatibility after there is some success...
since you have a system dump, maybe you can get the dialer pad.
Replacing the framework.jar from Galaxy S to Nexus One could be the ListView effect on the components, like the samsung ?
I'm trying to work on this as well to get the mediaplayer working on the nexus I am going to start trying some things based off what you did but I left my data cable at work so i'll try tomorrow when I get home
the ironic thing is, you guys want the programs that most vibrant users want off their phone
boodies said:
the ironic thing is, you guys want the programs that most vibrant users want off their phone
Click to expand...
Click to collapse
I think the media player in the vibrant is much nicer than stock android so I have no idea who wouldn't want that one
yes the media player is really nice. as well as the camera with touch to focus. maybe those can also be moved over.
Hi there guys, hows it going?
I needed to replace a system .apk file, but i ended screwing up my phone...
So the file was Bluetooth.apk and i pushed it onto /system/app/Bluetooth.apk, replacing the old file.
However, when i rebooted, the mobile hanged and i get the errors:
Code:
E/AndroidRuntime( 2301): Uncaught handler: thread android.server.ServerThread exiting due to uncaught exception
E/AndroidRuntime( 2301): *** EXCEPTION IN SYSTEM PROCESS. System will crash.
E/AndroidRuntime( 2301): dalvik.system.Stale[B]Dex[/B]CacheError: /system/app/Bluetooth.apk
E/AndroidRuntime( 2301): at dalvik.system.DexFile.isDexOptNeeded(Native Method)
E/AndroidRuntime( 2301): at com.android.server.PackageManagerService.performDexOptLI(PackageManagerService.java:2171)
E/AndroidRuntime( 2301): at com.android.server.PackageManagerService.scanPackageLI(PackageManagerService.java:2538)
E/AndroidRuntime( 2301): at com.android.server.PackageManagerService.scanPackageLI(PackageManagerService.java:2105)
E/AndroidRuntime( 2301): at com.android.server.PackageManagerService.scanDirLI(PackageManagerService.java:1992)
E/AndroidRuntime( 2301): at com.android.server.PackageManagerService.<init>(PackageManagerService.java:582)
E/AndroidRuntime( 2301): at com.android.server.PackageManagerService.main(PackageManagerService.java:339)
E/AndroidRuntime( 2301): at com.android.server.ServerThread.run(SystemServer.java:168)
E/AndroidRuntime( 2301): Crash logging skipped, no checkin service
I/ANDROID_DEBUG( 2301): dumpstate > /data/log/dumpstate_sys.log
I ripped this apk from a ROM where there was the .apk and the .odex file for each app in /system/app, so I think i'm missing something here.
Can anyone shed some light?
Thanks
Phk
So i'm trying to theme a google+ app for personal use, and I want to edit the XML files to get a full change out of it. The problem is that it force closes when I try to run the app on my phone (no problems decomp or compiling with apk manager or apktool)
The logcat (can't add links yet, in code tag below) points to a FATAL EXCEPTION in main, and goes on to state:
"Caused by: java.lang.RuntimeException: Binary XML file line #4: You must supply a layout_width attribute."
Of course I can't find anything labeled "main" and there I don't know which XML file to edit, and do not see anything wrong in the layout XML files (again, I haven't edited the files at all, it's simply decompiling an untouched app then compiling and installing to a phone and emulator - both resulting in a FC of the app)
Png editing is of course no issue, but it's not quite giving the effect I want (black on forest green is tough to read)
Any assistance or perhaps a nudge in the right direction so I can figure this out and start theming apps?
Code:
W/dalvikvm( 466): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
E/AndroidRuntime( 466): FATAL EXCEPTION: main
E/AndroidRuntime( 466): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.android.apps.plus/com.google.android.apps.circles.accounts.SelectAccountActivity}: java.lang.RuntimeException: Binary XML file line #4: You must supply a layout_width attribute.
E/AndroidRuntime( 466): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
E/AndroidRuntime( 466): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
E/AndroidRuntime( 466): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
E/AndroidRuntime( 466): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
E/AndroidRuntime( 466): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 466): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 466): at android.app.ActivityThread.main(ActivityThread.java:4627)
E/AndroidRuntime( 466): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 466): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 466): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
E/AndroidRuntime( 466): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
E/AndroidRuntime( 466): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 466): Caused by: java.lang.RuntimeException: Binary XML file line #4: You must supply a layout_width attribute.
E/AndroidRuntime( 466): at android.content.res.TypedArray.getLayoutDimension(TypedArray.java:491)
E/AndroidRuntime( 466): at android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:3592)
E/AndroidRuntime( 466): at android.view.ViewGroup$MarginLayoutParams.<init>(ViewGroup.java:3672)
E/AndroidRuntime( 466): at android.widget.LinearLayout$LayoutParams.<init>(LinearLayout.java:1395)
E/AndroidRuntime( 466): at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:1321)
E/AndroidRuntime( 466): at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:45)
E/AndroidRuntime( 466): at android.view.LayoutInflater.rInflate(LayoutInflater.java:620)
E/AndroidRuntime( 466): at android.view.LayoutInflater.inflate(LayoutInflater.java:407)
E/AndroidRuntime( 466): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
E/AndroidRuntime( 466): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
E/AndroidRuntime( 466): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198)
E/AndroidRuntime( 466): at android.app.Activity.setContentView(Activity.java:1647)
E/AndroidRuntime( 466): at com.google.android.apps.circles.accounts.SelectAccountActivity.onCreate(SelectAccountActivity.java:97)
E/AndroidRuntime( 466): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
E/AndroidRuntime( 466): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
E/AndroidRuntime( 466): ... 11 more
W/ActivityManager( 61): Force finishing activity com.google.android.apps.plus/com.google.android.apps.circles.accounts.SelectAccountActivity
W/ActivityManager( 61): Activity pause timeout for HistoryRecord{44ffd1d8 com.google.android.apps.plus/com.google.android.apps.circles.accounts.SelectAccountActivity}
W/ActivityManager( 61): Activity destroy timeout for HistoryRecord{44f51990 com.google.android.apps.plus/com.google.android.apps.plusone.app.HomeScreenActivity}
W/ActivityManager( 61): Activity destroy timeout for HistoryRecord{44ffd1d8 com.google.android.apps.plus/com.google.android.apps.circles.accounts.SelectAccountActivity}
Hi,
i just can't get Gamelofts N.O.V.A too run. Using CM7 with GO Launcher EX.
Usually the version for GalaxyTab P1000 works but not in this case.
It seems it has problems with the SD Card as alogcat shows below.
Any ideas? Thanks for any help.
--snip
Code:
I/GameInstaller( 6780): File required: weapon_sniper_rifle.pack
I/System.out( 6780): STATE_CHECK_ERRORSSTATE_CHECK_ERRORSSTATE_CHECK_ERRORS
E/ ( 6780): statfs sdcard/external_sd failed, errno: 2
W/dalvikvm( 6780): threadid=9: thread exiting with uncaught exception (group=0x40015560)
E/AndroidRuntime( 6780): FATAL EXCEPTION: Thread-10
E/AndroidRuntime( 6780): java.lang.IllegalArgumentException
E/AndroidRuntime( 6780): at android.os.StatFs.native_setup(Native Method)
E/AndroidRuntime( 6780): at android.os.StatFs.<init>(StatFs.java:32)
E/AndroidRuntime( 6780): at com.gameloft.android.GAND.GloftNOHP.GameInstaller.checkSDAvailable(GameInstaller.java:1832)
E/AndroidRuntime( 6780): at com.gameloft.android.GAND.GloftNOHP.GameInstaller.update(GameInstaller.java:1008)
E/AndroidRuntime( 6780): at com.gameloft.android.GAND.GloftNOHP.GameInstaller.run(GameInstaller.java:842)
E/AndroidRuntime( 6780): at java.lang.Thread.run(Thread.java:1019)
W/ActivityManager( 1454): Force finishing activity com.gameloft.android.GAND.GloftNOHP/.GameInstaller
I rooted my Tolino Page some times ago and was able to install "ADW Launcher" and set background image using "Wallpaper Changer". At the time the firmware was 10.0.1 based on Android 4.0.4.
Since some weeks tolino published an update to 11.2.3, based on Android 4.4.2.
Device updated, factory-reset, rooted, installed all apps again, all is working as expected with the exception the background image cannot be set in launcher. I tried different launchers, all with the same issue, I just get a message "Error appears, please try again after reboot" (message free translated from german).
Any idea what is missed? Is there any software I can install to try to solve the issue? What I can check to find the reason?
I am firm with linux-command line and can apply patches and compile components if I get the right howto how to setup build environment.
I can manupulate directly the system as root trough adb shell
The used build is [not allowed to post , search for "mytolino update", then "page"]
The source code is [not allowed to post , search for "mytolino open source", then "page"]
Found the next mesages in logcat
Code:
W/WallpaperManager( 3098): WallpaperService not running
W/WallpaperManager( 3098): WallpaperService not running
D/AndroidRuntime( 3098): Shutting down VM
W/dalvikvm( 3098): threadid=1: thread exiting with uncaught exception (group=0x40e27ba8)
E/AndroidRuntime( 3098): FATAL EXCEPTION: main
E/AndroidRuntime( 3098): Process: com.simplemobiletools.gallery, PID: 3098
E/AndroidRuntime( 3098): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.simplemobiletools.gallery/com.simplemobiletools.gallery.activities.SetWallpaperActivity}: java.lang.IllegalArgumentException: Cannot set aspect ratio value to a number less than or equal to 0.
E/AndroidRuntime( 3098): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)
E/AndroidRuntime( 3098): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
E/AndroidRuntime( 3098): at android.app.ActivityThread.access$800(ActivityThread.java:135)
E/AndroidRuntime( 3098): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
E/AndroidRuntime( 3098): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 3098): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime( 3098): at android.app.ActivityThread.main(ActivityThread.java:5017)
E/AndroidRuntime( 3098): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 3098): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 3098): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
E/AndroidRuntime( 3098): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
E/AndroidRuntime( 3098): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 3098): Caused by: java.lang.IllegalArgumentException: Cannot set aspect ratio value to a number less than or equal to 0.
E/AndroidRuntime( 3098): at com.theartofdev.edmodo.cropper.CropOverlayView.setAspectRatioX(SourceFile:274)
E/AndroidRuntime( 3098): at com.theartofdev.edmodo.cropper.CropImageView.a(SourceFile:523)
E/AndroidRuntime( 3098): at com.simplemobiletools.gallery.activities.SetWallpaperActivity.setupAspectRatio(SourceFile:75)
E/AndroidRuntime( 3098): at com.simplemobiletools.gallery.activities.SetWallpaperActivity.handleImage(SourceFile:60)
E/AndroidRuntime( 3098): at com.simplemobiletools.gallery.activities.SetWallpaperActivity.onCreate(SourceFile:42)
E/AndroidRuntime( 3098): at android.app.Activity.performCreate(Activity.java:5231)
E/AndroidRuntime( 3098): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
E/AndroidRuntime( 3098): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
E/AndroidRuntime( 3098): ... 11 more
W/ActivityManager( 2462): Force finishing activity com.simplemobiletools.gallery/.activities.SetWallpaperActivity
Any idea what is missed?
I am Android noob, but I get set up a working AOSP build environment for ntx_6sl. So I can try some compiled files if I know which are necessary to set the WallpaperService running