[MOD] Settings.apk with ext partition info (for HD roms) - Desire Android Development

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I've modify standart Settings app from HD Rom, now Phone Storage Info is more friendly
It will work on Insert Coin or RCMixS or other Roms with 2.36.405.8 framework.
Here is 6 versions with different suffixes:
withCRT - with CRT TV animation switch
withoutCRT - without CRT TV animation switch
datasd - if ext partition mounted in /data/sd
systemsd - if ext partition mounted in /system/sd
sdext - if ext partition mounted in /sd-ext
Download and rename needed apk in Settings.apk and push in /system/app folder
Also Modified HTCAlbum, HTCMusic, Camera 3.0 and WeatherWidget here
*NOW ALL SIGNED))))

m0narx: have FC by tapping on Device Memory:
Code:
12:59:16.239 Info ActivityManager 528 Starting activity: Intent { act=android.intent.action.MAIN cmp=com.android.settings/.deviceinfo.Memory } from pid 2416
12:59:16.348 Error 2416 statfs /mnt/asec/sd-ext failed, errno: 2
12:59:16.348 Debug AndroidRuntime 2416 Shutting down VM
12:59:16.348 Warning dalvikvm 2416 threadid=1: thread exiting with uncaught exception (group=0x4001d5a0)
12:59:16.348 Error AndroidRuntime 2416 FATAL EXCEPTION: main
12:59:16.348 Error AndroidRuntime 2416 java.lang.RuntimeException: Unable to resume activity {com.android.settings/com.android.settings.deviceinfo.Memory}: java.lang.IllegalArgumentException
12:59:16.348 Error AndroidRuntime 2416 at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2434)
12:59:16.348 Error AndroidRuntime 2416 at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2455)
12:59:16.348 Error AndroidRuntime 2416 at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1842)
12:59:16.348 Error AndroidRuntime 2416 at android.app.ActivityThread.access$1500(ActivityThread.java:132)
12:59:16.348 Error AndroidRuntime 2416 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1033)
12:59:16.348 Error AndroidRuntime 2416 at android.os.Handler.dispatchMessage(Handler.java:99)
12:59:16.348 Error AndroidRuntime 2416 at android.os.Looper.loop(Looper.java:143)
12:59:16.348 Error AndroidRuntime 2416 at android.app.ActivityThread.main(ActivityThread.java:4196)
12:59:16.348 Error AndroidRuntime 2416 at java.lang.reflect.Method.invokeNative(Native Method)
12:59:16.348 Error AndroidRuntime 2416 at java.lang.reflect.Method.invoke(Method.java:507)
12:59:16.348 Error AndroidRuntime 2416 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
12:59:16.348 Error AndroidRuntime 2416 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
12:59:16.348 Error AndroidRuntime 2416 at dalvik.system.NativeStart.main(Native Method)
12:59:16.348 Error AndroidRuntime 2416 Caused by: java.lang.IllegalArgumentException
12:59:16.348 Error AndroidRuntime 2416 at android.os.StatFs.native_setup(Native Method)
12:59:16.348 Error AndroidRuntime 2416 at android.os.StatFs.<init>(StatFs.java:32)
12:59:16.348 Error AndroidRuntime 2416 at com.android.settings.deviceinfo.Memory.updateMemoryStatus(Memory.java:451)
12:59:16.348 Error AndroidRuntime 2416 at com.android.settings.deviceinfo.Memory.onResume(Memory.java:199)
12:59:16.348 Error AndroidRuntime 2416 at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1266)
12:59:16.348 Error AndroidRuntime 2416 at android.app.Activity.performResume(Activity.java:3917)
12:59:16.348 Error AndroidRuntime 2416 at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2424)
12:59:16.348 Error AndroidRuntime 2416 ... 12 more
12:59:16.348 Warning ActivityManager 528 Force finishing activity com.android.settings/.deviceinfo.Memory
12:59:16.348 Warning ActivityManager 528 Force finishing activity com.android.settings/.framework.activity.HtcSettings

m0narx said:
View attachment 613891
I've modify standart Settings app from HD Rom, now Phone Storage Info is more friendly
It will work on Insert Coin or RCMixS or other Roms with 2.36.405.8 framework.
Just push Settings.apk in /system/app folder
Click to expand...
Click to collapse
Just want to ask if it is the one with crt on/off switches ?
Muxeu said:
m0narx: have FC by tapping on Device Memory:
Click to expand...
Click to collapse
hehe you was quick to test

Sorry, im forgot, about different mountpoints, now uploading)))

m0narx said:
Sorry, im forgot, about different mountpoints, now uploading)))
Click to expand...
Click to collapse
Hmm. Tried "sdext - if ext partition mounted in /sd-ext" with CRT:
Code:
15:30:39.918 Warning PackageParser 535 No actions in intent filter at /system/app/Settings.apk Binary XML file line #829
15:30:39.918 Info PackageManager 535 /system/app/Settings.apk changed; collecting certs
15:30:39.918 Debug dalvikvm 535 GC_CONCURRENT freed 213K, 37% free 4639K/7303K, external 0K/0K, paused 3ms+5ms
15:30:40.027 Error PackageParser 535 Package com.android.settings has no certificates at entry AndroidManifest.xml; ignoring!
15:30:40.027 Warning PackageManager 535 Failed verifying certificates for package:com.android.settings

Well, I signed pk and it works now
Thanks, man

Can you make a version for stock Sense FroYo ROMs?

Yes)) If you give framework and Settings.apk

Interesting!!!
Would you be able to make one for the HD2?!?!
I'm using the latest Bravo CyanogenMod-7 ROM (Nightly-91) - Slightly modded to run on the HD2 (Mods don't affect the framework-res.apk or Settings.apk).
My Ext3 Partition shows up as sd-ext.
I could provide whatever files you needed and test it willingly
A feature like this is always useful and now that i've seen it, I realise that it has always been missing!!!!
Thanks in advance

robocik said:
Just want to ask if it is the one with crt on/off switches ?
hehe you was quick to test
Click to expand...
Click to collapse
hey robo,
which one to choose for rcmix s
and how to apply it

nice work, i posted a link to your thread in my nightly build

That's awesome !
Why anybody didn't think of it previously?

This for the Cool Kingdom v4 would be nice.
Could you do that for it?
Just say what you need

ali_loly10 said:
hey robo,
which one to choose for rcmix s
and how to apply it
Click to expand...
Click to collapse
I'm using the CM7 version and have applied Settings.withoutCRT.systemsd.apk
You just replace rename it and replace settings.apk in the rom

KennyDumah said:
This for the Cool Kingdom v4 would be nice.
Could you do that for it?
Just say what you need
Click to expand...
Click to collapse
com.htc.resources.apk, framework-res.apk and Settings.apk)))

randomelements said:
I'm using the CM7 version and have applied Settings.withoutCRT.systemsd.apk
You just replace rename it and replace settings.apk in the rom
Click to expand...
Click to collapse
how to push the system app?
i've never tried using the adb push thingy. so i do not know how to push the settings.apk to system/app
can anyone teach me how to push this system apk and what app do i need?

Hey, monarx..
Are there additional dependencies for Settings.apk of GB Sense other than com.htc.resources.apk and framework-res.apk? I even tried Rosie.apk, but still a lot of values fail to decode

hi senior
thanks for great Mod
but i have HD2 and in hd2 don`t have edext partitions all HD2 with android have sd-ext
now in settings its work perfectly but free size for ext = system
for data and system is correct but value for sd-ext not correct,
please fix it (or set correct address for ed-ext )for me thank you very much

Related

Anyone know much about Package Manager? (logcat included)

working on getting the IM app instaleld..thought it might be as simple as pulling the apk and doing adb install IM.apk..it fails with a DEXOPT error, here's the logcat. Thoughts?
D/dalvikvm( 338): GC freed 8171 objects / 572600 bytes in 158ms
D/dalvikvm( 338): threadid=17 wakeup: interrupted
D/AndroidRuntime( 793):
D/AndroidRuntime( 793): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
D/AndroidRuntime( 793): CheckJNI is OFF
D/AndroidRuntime( 793): --- registering native functions ---
D/PackageParser( 58): Scanning package: /data/app/vmdl29166.tmp
I/PackageManager( 58): /data/app/vmdl29166.tmp changed; unpacking
D/installd( 36): DexInv: --- BEGIN '/data/app/vmdl29166.tmp' ---
W/dalvikvm( 800): DexOptZ: zip archive '/data/app/vmdl29166.tmp' does not inclu
de classes.dex
W/installd( 36): DexInv: --- END '/data/app/vmdl29166.tmp' --- status=0xff00,
process failed
E/installd( 36): dexopt failed on '/data/dalvik-cache/[email protected]@[email protected]
lasses.dex' res = 65280
W/PackageManager( 58): Package couldn't be installed in /data/app/com.android.
im.apk
Okay scrap that..found that classes.dex had to be there in the apk file - I grabbed the .odex from the IM app and put it in the apk as classes.dex -- right thing to do? wrong thing? now i'm getting this:
E:\>adb install E:\IM.apk
927 KB/s (0 bytes in 326585.000s)
pkg: /data/local/tmp/IM.apk
Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
adb logcat shows:
D/AndroidRuntime( 827):
D/AndroidRuntime( 827): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
D/AndroidRuntime( 827): CheckJNI is OFF
D/AndroidRuntime( 827): --- registering native functions ---
D/PackageParser( 58): Scanning package: /data/app/vmdl29167.tmp
E/PackageParser( 58): Package com.android.im has no certificates at entry clas
ses.dex; ignoring!
D/AndroidRuntime( 827): Shutting down VM
D/dalvikvm( 827): DestroyJavaVM waiting for non-daemon threads to exit
D/dalvikvm( 827): DestroyJavaVM shutting VM down
D/dalvikvm( 827): HeapWorker thread shutting down
D/dalvikvm( 827): HeapWorker thread has shut down
D/jdwp ( 827): JDWP shutting down net...
D/dalvikvm( 827): VM cleaning up
!
Does anyone have any ideas?
I've been working on getting the IM from CRB34 into 6.0r1. I really want it. But I get stuck, just like you.
Anyone wanna help us?
fwiw the IM app is definitely new. The IM app no longer includes gtalk as the gtalk app is used for that (from the HTC builds)
I'm convincing myself that someone who is online today will know more about package manager than yesterday..gogo!
You can't just rename the odex to dex and dump it into the apk file. Odex is the optimized dex file that is generated specifically for that build of a device. You'd essentially need to get a virgined dex file, or somehow fool the device into thinking its already installed and push the files.
afflaq said:
Okay scrap that..found that classes.dex had to be there in the apk file - I grabbed the .odex from the IM app and put it in the apk as classes.dex -- right thing to do? wrong thing? now i'm getting this:
E:\>adb install E:\IM.apk
927 KB/s (0 bytes in 326585.000s)
pkg: /data/local/tmp/IM.apk
Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
adb logcat shows:
D/AndroidRuntime( 827):
D/AndroidRuntime( 827): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
D/AndroidRuntime( 827): CheckJNI is OFF
D/AndroidRuntime( 827): --- registering native functions ---
D/PackageParser( 58): Scanning package: /data/app/vmdl29167.tmp
E/PackageParser( 58): Package com.android.im has no certificates at entry clas
ses.dex; ignoring!
D/AndroidRuntime( 827): Shutting down VM
D/dalvikvm( 827): DestroyJavaVM waiting for non-daemon threads to exit
D/dalvikvm( 827): DestroyJavaVM shutting VM down
D/dalvikvm( 827): HeapWorker thread shutting down
D/dalvikvm( 827): HeapWorker thread has shut down
D/jdwp ( 827): JDWP shutting down net...
D/dalvikvm( 827): VM cleaning up
Click to expand...
Click to collapse
strazzere said:
You can't just rename the odex to dex and dump it into the apk file. Odex is the optimized dex file that is generated specifically for that build of a device. You'd essentially need to get a virgined dex file, or somehow fool the device into thinking its already installed and push the files.
Click to expand...
Click to collapse
that was my fear -- any ideas on doing either of those things? dexdumping it perhaps?
afflaq said:
that was my fear -- any ideas on doing either of those things? dexdumping it perhaps?
Click to expand...
Click to collapse
I am not sure, but does it require you to install? Could you try pushing the apk and odex to apps directory and see if it shows up after reboot?

Facebook 1.8 Force Close when trying to update status - other fb account works...

Hi there,
i got some strange problem with the facebook app of a friend. We have both Samsung Galaxy SII with same ROM/Kernel and Baseband (2.3.6 XWKK5 with CF-Root CWM5). My Facebook app works flawless, but the fb app of my friend does not - which is very strange. everytime if the button for status update or location sharing is touched, the fb app force closes immediately.
i tried some debugging with logcat and got this exception here:
Code:
13:01:38.342 Error AndroidRuntime 18381 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.facebook.katana/com.facebook.katana.ComposerActivity}: java.lang.NumberFormatException: 1788360882834,2060337282074
13:01:38.342 Error AndroidRuntime 18381 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1651)
13:01:38.342 Error AndroidRuntime 18381 at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
13:01:38.342 Error AndroidRuntime 18381 at android.app.ActivityThread.access$1500(ActivityThread.java:117)
13:01:38.342 Error AndroidRuntime 18381 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
13:01:38.342 Error AndroidRuntime 18381 at android.os.Handler.dispatchMessage(Handler.java:99)
13:01:38.342 Error AndroidRuntime 18381 at android.os.Looper.loop(Looper.java:130)
13:01:38.342 Error AndroidRuntime 18381 at android.app.ActivityThread.main(ActivityThread.java:3691)
13:01:38.342 Error AndroidRuntime 18381 at java.lang.reflect.Method.invokeNative(Native Method)
13:01:38.342 Error AndroidRuntime 18381 at java.lang.reflect.Method.invoke(Method.java:507)
13:01:38.342 Error AndroidRuntime 18381 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907)
13:01:38.342 Error AndroidRuntime 18381 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665)
13:01:38.342 Error AndroidRuntime 18381 at dalvik.system.NativeStart.main(Native Method)
I tried everything... wiping data of fb app, wiping cache/dalvik cache,... but the problem still occurs.
Now, something really strange: I wiped data of the fb app, and logged in with MY account, not his... and now with my account it works flawlessy. but after i wiped data again and used the login data of my friend again => force close when trying to update status or location.
my fb account on my and his device: works
his fb account on my and his device: force close when updating status
someone any ideas ?
quite strange?
resolved:
for other users with the same problem:
problem occurs if you are using more than one custom list in the privacy settings, specially for the default posting permissions.
To check that goto the privacy settings, click on custom in the "Control your Default Privacy" Section.
For make this visible select "Friends" or "Specific People or Lists". If you use "Specific People or List", than more than ONE person or lists will cause the ForceClose. So just enter only ONE list/person.
For "hide this from" there is no limit of lists/persons, all working...
Solution confirmed working, had the same issue, fixed it by leaving just one list of people to share to... Thanks!

[Q] Having issues with my rom - ICS tablet mode will not engage.

So I'm at a point where this rom is perfect for my phone. It works just fine and has no crashes at all. The only problem is that when running a low enough DPI for tablet mode to work, SystemUI crashes out of nowhere.
I ran a logcat but I unfortunately can't read this very well, so I'm hoping someone else could chime in.
Code:
loading: class com.android.systemui.statusbar.tablet.TabletStatusBar
running: [email protected]
Resizing status bar plugged=false height=64 old=0
Shutting down VM
threadid=1: thread exiting with uncaught exception (group=0x40c0f1f8)
FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to create service com.android.systemui.SystemUIService: android.view.InflateException: Binary XMI file line #19: Error inflating class com.android.systemui.statusbar.tablet.TabletStatusBarView
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2275)
at android.app.ActivityThread.access$1600(ActivityThread.java:127)
at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4507)
at java.lang.reflect.Method.invokeNative(Native Method)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1213)
at android.os.Handler.dispatchMessage(Handler.java:99)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)
at dalvik.system.NativeStart.main(Native Method) Caused by: android.view.InflateException: Binary XMI file line #19: Error inflating class com.android.systemui.statusbar.tablet.TabletStatusBarView
at android.view.LayoutInflater.createView(LayoutInflater.java:606) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:680)
at android.view.LayoutInflater.inflate(LayoutInflater.java:466)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
at android.view.View.inflate(View.java:13742)
at com.android.systemui.statusbar.tablet.TabletStatusBar.makeStatusBarView(TabletStatusBar.java:773)
at com.android.systemui.statusbar.StatusBar.start(StatusBar.java:92) at com.android.systemui.statusbar.tablet.TabletStatusBar.start(TabletStatusBar.java:658)
at com.android.systemui.SystemUIService.onCreate(SystemUIService.java:93)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2265)
... 10 more
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.constructNative(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
at android.view.LayoutInflater.createView(LayoutInflater.java:586)
... 20 more
Caused by: android.content.res.Resources;NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x12/d=0x0 a=3 r=0x7f020173)
at android.content.res.Resources.loadDrawable(Resources.java:1899)
at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
at android.view.View.<init>(View.java:2839)
at android.view.ViewOroup.<init>(ViewOroup.java:385)
at android.widget.FrameLayout.<init>(FrameLayout.java:99)
at android.widget.FrameLayout.<init>(FrameLayout.java:95)
at com.android.systemui.statusbar.tablet.TabletStatusBarView.<init>(TabletStatusBarView.java:40)
... 23 more
id=37 Removed android/com.android.internal.app.ResolverActivity idx=0 Map Size=2
id=37 Removed android/com.android.internal.app.ResolverActivity idx=-2 Map Size=2
[email protected] > dumpstate -k -t -n -z -d -o /data/log/dumpstate_app_error Process com.andrcid.systemui has crashed ;co many times: killing!

[APP][DEV][4.0+][V1.3]ROM Mart Customizable HUB for ROM Developers

ROM Mart is an app that let you provide add-ons to custom ROM users, such as wallpapers, apps and mods.
The app is really flexible and the developer can set categories, sub-categories and some layout parameters.
The only thing developer needs to do is create a simple XML file and upload it on his server, then add some strings to the build.prop file
Special Thanks to @maximo76 for the app icon
Features:
Flexible UI : App UI can be customized by modifying xml parameters
Categorized: All the content can be categorized in categories and sub-categories
Notifications: When developer add/remove content from the remote file a notification will be prompted to the user
Updates check frequency: set when the app must check for updates
Set/Download wallpapers
Install apps
Install mods
updates checker service will automatically start/stop based on connection status! (WiFi, mobile data)
Should work with any device running Android 4.0+
No need to subscribe to any site, just put the link to the remote xml file and you are done!
Will always be free!
More will come in future based also on devs requests
Permissions explanation:
android.permission.WRITE_EXTERNAL_STORAGE" ==> Save content to SD-card
android.permission.SET_WALLPAPER" ==> permission to set device wallpaper
android.permission.INTERNET" ==> Download manifest and content
android.permission.ACCESS_NETWORK_STATE" ==> get network state to start/stop updates service
How To :
Add these lines to the build prop:
Code:
hub.pub.url= public url to the xml file
hub.ab.name=App ActionBar title
hub.dl.folder=complete path to your download folder (ex: /sdcard/hub-downloads). Folder will be automatically created by the app
hub.sched.time= Time in minutes for udates check
XML Syntax:
HTML:
<?xml version="1.0" encoding="utf-8"?>
<items>
<category name="your category name">
<sub-category name="your sub-category name"
images ="true | false"
apps="true | false "
mods="true | false"
use-grid="true | false"
use-cards="true | false">
<item url="URL to the content (images, apps, zips)"
thumbUrl="optional for images, required for apps and mods"
name="App/image/mod name"
author="author"
description="required for Apps and Mods, not used for images"
preview-images="Images Link separated by a semicolon (;). Required only for apps and mods"/>
</sub-category>
</category>
</items>
Tags explanation:
<category> :
This tag inside inside the app will be a ViewPager Tab
Attributes:
name="" ==> this will be the Tab name
Click to expand...
Click to collapse
Click to expand...
Click to collapse
<sub-category>
Every Sub-Category will be a list item inside the menu.
Attributes:
name="" ==> The sub-category name user will display inside the app
images="true|false" ==> needed to tell to the app if this sub-category contains images on not
apps="true|false" ==> Same as for images attribute.
mods="true|false" ==> Same as images and apps.
use-grid="true|false" ==> This will tell the app to use a ListView instead of GridView. default is false so it will use a listview.
use-cards="true|false" ==> This one will tell to the app if you want to use google cards look or not. Default is false.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
<item>
This is one of the downloadable contents you want provide to your users (an image, and app or a mod).
Attributes:
url="" ==> URL of the content
thumbUrl="" ==> unused for images, used by apps and mods to provide the image you'll see inside the list or gridview
name="" ==> image, app or mod name
author="" => image, app or mod author
description="" ==> Content description used only by apps and mods. Not required for images.
preview-images="" ==> Link or links to preview images separated by a semicolon ;. These images will be displayed on the detailed view when user clicks on a list/gridView item. Used for apps and mods, unused for images.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Note that Not required fields can be omitted in XML!
thumbUrl and name for images can be omitted! The app will generate a name automatically ("Item #xxyy")
A simple XML example, can be found here: manifest.xml
(It's based on DirtyUnicorns wallpapers xml)
Put the app in /data/app or in /system/app, as you wish
:::In case of Force Close:::
- Read this post and check Build.prop permissions ==> http://forum.xda-developers.com/showpost.php?p=52404174&postcount=13
- if it's not file's permissions related take a logcat and post the log
Click to expand...
Click to collapse
Warnings:
- all links must be publicly accessible and must be direct links to the content (check the example xml!!)
- of course, also the xml link must be publicly accessible!
- use an editor that provides also code highlighting and errors check (i use Komodo Edit)
Sharing policy:
- Let me know if you include it in your rom!
- Add credits to your thread! (me and DSHT, my team)
- Add a link to this thread in yours!
- You are not allowed to change app icon or any other resource inside the package.
- You are not allowed to change the app code
- Any violation will be reported to xda moderators!
Changelog:
V1.0:
- initial release
V1.1:
- fixed zip flash (SU required)
- new App icon by maximo76
V1.2:
- fixed API level issue
V1.3
- fixed NumberFormatException
Screenshots:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
XDA:DevDB Information
ROM Mart, App for all devices (see above for details)
Contributors
xcesco89
Version Information
Status: Stable
Current Stable Version: 1.3
Stable Release Date: 2014-05-04
Created 2014-05-03
Last Updated 2014-05-09
Great cesco my rom will have this
Inviato dal mio unknown utilizzando Tapatalk
What an awesome app
Good job cescuz
Great work. My rom will have that too
Sent from my HTC One using XDA Premium 4 mobile app
Ehehe,another Great work thanks Cesco
hmm. crashes on my Nexus 5 running CM11 when you open it.
This looks very promising
Sent from my Nexus 5 using Tapatalk
This looks very nice. Any free reliable servers that would be compatible with this that u can recommend?
Sent from my SM-G900T using Tapatalk
This looks great for start up ROM devs
You can either find a good or a free. Almost impossible to find both. Let alone one that will handle that kind of traffic reliably.
Bat cave One
zelendel said:
This looks great for start up ROM devs
You can either find a good or a free. Almost impossible to find both. Let alone one that will handle that kind of traffic reliably.
Bat cave One
Click to expand...
Click to collapse
I was afraid of that. Thanks for your response
Sent from my SM-G900T using Tapatalk
That's strange, on my N5 and G2 all works without issue, anyway I'll change some lines of code and upload a new version. As I see, seems there are problems with build.prop file permissions. (Usually these are rwxr-xr-x and all works)
Thanks for these reports
Inviato dal mio Nexus 5 utilizzando Tapatalk
FC on open.
Code:
E/AndroidRuntime(18968): FATAL EXCEPTION: main
E/AndroidRuntime(18968): Process: com.dsht.center, PID: 18968
E/AndroidRuntime(18968): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.dsht.center/com.dsht.center.MainActivity}: java.lang.NumberFormatException: [B]Invalid int: "disable"[/B]
E/AndroidRuntime(18968): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)
E/AndroidRuntime(18968): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
E/AndroidRuntime(18968): at android.app.ActivityThread.access$800(ActivityThread.java:135)
E/AndroidRuntime(18968): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
E/AndroidRuntime(18968): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(18968): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime(18968): at android.app.ActivityThread.main(ActivityThread.java:5017)
E/AndroidRuntime(18968): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(18968): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime(18968): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
E/AndroidRuntime(18968): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
E/AndroidRuntime(18968): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(18968): Caused by: java.lang.NumberFormatException: Invalid int: "disable"
E/AndroidRuntime(18968): at java.lang.Integer.invalidInt(Integer.java:137)
E/AndroidRuntime(18968): at java.lang.Integer.parse(Integer.java:374)
E/AndroidRuntime(18968): at java.lang.Integer.parseInt(Integer.java:365)
E/AndroidRuntime(18968): at java.lang.Integer.parseInt(Integer.java:331)
E/AndroidRuntime(18968): at com.dsht.center.MainActivity.onCreate(MainActivity.java:92)
E/AndroidRuntime(18968): at android.app.Activity.performCreate(Activity.java:5231)
E/AndroidRuntime(18968): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
E/AndroidRuntime(18968): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
E/AndroidRuntime(18968): ... 11 more
W/ActivityManager( 3398): Force finishing activity com.dsht.center/.MainActivity
xcesco89 said:
That's strange, on my N5 and G2 all works without issue, anyway I'll change some lines of code and upload a new version. As I see, seems there are problems with build.prop file permissions. (Usually these are rwxr-xr-x and all works)
Thanks for these reports
Inviato dal mio Nexus 5 utilizzando Tapatalk
Click to expand...
Click to collapse
build.prop should never be any other mode then 644. on legacy roms setting build.prop to 755 may cause bootloop (because of primitive system), I have had this on my old phone (i9001)
broodplank1337 said:
FC on open.
Code:
E/AndroidRuntime(18968): FATAL EXCEPTION: main
E/AndroidRuntime(18968): Process: com.dsht.center, PID: 18968
E/AndroidRuntime(18968): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.dsht.center/com.dsht.center.MainActivity}: java.lang.NumberFormatException: [B]Invalid int: "disable"[/B]
E/AndroidRuntime(18968): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)
E/AndroidRuntime(18968): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
E/AndroidRuntime(18968): at android.app.ActivityThread.access$800(ActivityThread.java:135)
E/AndroidRuntime(18968): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
E/AndroidRuntime(18968): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(18968): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime(18968): at android.app.ActivityThread.main(ActivityThread.java:5017)
E/AndroidRuntime(18968): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(18968): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime(18968): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
E/AndroidRuntime(18968): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
E/AndroidRuntime(18968): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(18968): Caused by: java.lang.NumberFormatException: Invalid int: "disable"
E/AndroidRuntime(18968): at java.lang.Integer.invalidInt(Integer.java:137)
E/AndroidRuntime(18968): at java.lang.Integer.parse(Integer.java:374)
E/AndroidRuntime(18968): at java.lang.Integer.parseInt(Integer.java:365)
E/AndroidRuntime(18968): at java.lang.Integer.parseInt(Integer.java:331)
E/AndroidRuntime(18968): at com.dsht.center.MainActivity.onCreate(MainActivity.java:92)
E/AndroidRuntime(18968): at android.app.Activity.performCreate(Activity.java:5231)
E/AndroidRuntime(18968): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
E/AndroidRuntime(18968): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
E/AndroidRuntime(18968): ... 11 more
W/ActivityManager( 3398): Force finishing activity com.dsht.center/.MainActivity
build.prop should never be any other mode then 644. on legacy roms setting build.prop to 755 may cause bootloop (because of primitive system), I have had this on my old phone (i9001)
Click to expand...
Click to collapse
i know. You'll probably get error when the file is 700 (rwx------). With 644 (rw-r--r--) | 744 (rwxr--r--) and 755(rwxr-xr-x) App works without issues (already tested).
I prefer avoid the use of su to read build.prop file because will cause the prompt of annoying toasts telling you "garanted superuser permissions". I can also copy the build.prop to the app files dir, but in case you change something in the prop the app will not recognize it.
I don't have devices with internal and external SDcard, so, try to use /mnt/extsd or whatever the path is instead of /data/media
EDIT:
You can also make a simple init.d script that changes permissions, or check your updater-script and change the permissions setting here
EDIT2:
Version 1.1 ready. Fixed some stuff related to zip flashing and new app icon by @maximo76
xcesco89 said:
ROM Mart is an app that let you provide add-ons to custom ROM users, such as wallpapers, apps and mods.
The app is really flexible and the developer can set categories, sub-categories and some layout parameters............
Click to expand...
Click to collapse
isnt it possible to make this a stand alone app ?
TheHaso said:
isnt it possible to make this a stand alone app ?
Click to expand...
Click to collapse
You mean by hardcoding build.prop strings inside the app?
Inviato dal mio Nexus 5 utilizzando Tapatalk
great work confirm that
v1.1 works now with SUpermissions when you try to flash a zip via recovery.
only thing left is that it dont read the build.prop and FC's
rwx---- permission :silly: all others like rw-r-r work fine
edit: question: why not use a manifest.xml in /system/ folder? its similar to the build.prop lines but then it dont matter what permission the build.prop has...
just an idea
skeleton1911 said:
great work confirm that
v1.1 works now with SUpermissions when you try to flash a zip via recovery.
only thing left is that it dont read the build.prop and FC's
rwx---- permission :silly: all others like rw-r-r work fine
edit: question: why not use a manifest.xml in /system/ folder? its similar to the build.prop lines but then it dont matter what permission the build.prop has...
just an idea
Click to expand...
Click to collapse
Rwx------ equals 700 and only root can read write and execute. So it's normal that app FC's when it tries to read the file: it doesn't have permissions
Just change file permissions to rwxr--r-- (744) or rw-r--r-- (644) and the app will not Force close. Check other files in /system, I doubt they all have 700 permission.
You can also try to make a simple init.d script that changes build.prop permissions (busybox chmod 644 /system/build.prop)
Inviato dal mio Nexus 5 utilizzando Tapatalk
xcesco89 said:
Rwx------ equals 700 and only root can read write and execute. So it's normal that app FC's when it tries to read the file: it doesn't have permissions
Just change file permissions to rwxr--r-- (744) or rw-r--r-- (644) and the app will not Force close. Check other files in /system, I doubt they all have 700 permission.
You can also try to make a simple init.d script that changes build.prop permissions (busybox chmod 644 /system/build.prop)
Inviato dal mio Nexus 5 utilizzando Tapatalk
Click to expand...
Click to collapse
Yep. Thank you mate. I Already did it with an init.d script thanks
Sent from my HTC One using XDA Premium 4 mobile app
Is there a way to get this app working without editing the build.prop?
FC when opening, using LG Optimus L9 (p760) with CM9:
Code:
D/TAG ( 1785): Helpers:findBuildPropValueOf found {hub.pub.url} with the value (https://dl.dropboxusercontent.com/u/13475549/wallpaper_manifest.xml)
D/TAG ( 1785): Helpers:findBuildPropValueOf found {hub.ab.name} with the value (Pollos)
D/TAG ( 1785): Helpers:findBuildPropValueOf found {hub.dl.folder} with the value (/mnt/sdcard/)
D/TAG ( 1785): Helpers:findBuildPropValueOf found {hub.sched.time} with the value (60)
D/dalvikvm( 286): GC_CONCURRENT freed 2794K, 41% free 7998K/13379K, paused 1ms+6ms
D/OpenGLRenderer( 527): Flushing caches (mode 1)
D/OpenGLRenderer( 1785): Enabling debug mode 0
I/ActivityManager( 286): Displayed com.dsht.center/.MainActivity: +677ms
D/OpenGLRenderer( 527): Flushing caches (mode 0)
D/AndroidRuntime( 1785): Shutting down VM
W/dalvikvm( 1785): threadid=1: thread exiting with uncaught exception (group=0x40a451f8)
E/AndroidRuntime( 1785): FATAL EXCEPTION: main
E/AndroidRuntime( 1785): java.lang.NoSuchMethodError: com.astuetz.viewpager.extensions.PagerSlidingTabStrip.setBackground
E/AndroidRuntime( 1785): at com.dsht.center.MainActivity.loadPreviewFragment(MainActivity.java:229)
E/AndroidRuntime( 1785): at com.dsht.center.MainActivity$LoadManifest.onPostExecute(MainActivity.java:206)
E/AndroidRuntime( 1785): at com.dsht.center.MainActivity$LoadManifest.onPostExecute(MainActivity.java:1)
E/AndroidRuntime( 1785): at android.os.AsyncTask.finish(AsyncTask.java:602)
E/AndroidRuntime( 1785): at android.os.AsyncTask.access$600(AsyncTask.java:156)
E/AndroidRuntime( 1785): at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:615)
E/AndroidRuntime( 1785): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 1785): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 1785): at android.app.ActivityThread.main(ActivityThread.java:4575)
E/AndroidRuntime( 1785): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1785): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 1785): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
E/AndroidRuntime( 1785): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
E/AndroidRuntime( 1785): at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 286): Force finishing activity com.dsht.center/.MainActivity

Porting CM to new device system_server crash

Hi !
I'm trying to port CM10 (old system) to Galaxy Fame Lite (old and cheap phone). I may try to port a later version of CM if I succeed for CM10...
Right now the system boots but remains blocked in the boot animation. I've managed to use adb shell (this has not been easy). What happens right now is that system_server commits suicide with the following message in /data/system/[email protected]<time>.txt
Code:
Process: system_server
Build: samsung/cm_nevisnvess/nevisnvess:4.1.2/JZO54K/eng.grenie.20160927.110731:eng/test-keys
android.view.InflateException: Binary XML file line #71: Error inflating class android.widget.ScrollView
at android.view.LayoutInflater.createView(LayoutInflater.java:613)
at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:660)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:275)
at com.android.internal.app.AlertController.installContent(AlertController.java:240)
at android.app.AlertDialog.onCreate(AlertDialog.java:336)
at android.app.Dialog.dispatchOnCreate(Dialog.java:351)
at android.app.Dialog.show(Dialog.java:256)
at com.android.server.am.ActivityManagerService$2.handleMessage(ActivityManagerService.java:910)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at com.android.server.am.ActivityManagerService$AThread.run(ActivityManagerService.java:1431)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.constructNative(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
at android.view.LayoutInflater.createView(LayoutInflater.java:587)
... 17 more
Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x1/d=0x10804f4 a=1 r=0x10804f4}
at android.content.res.Resources.loadDrawable(Resources.java:1921)
at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
at android.view.View.initializeScrollbars(View.java:3859)
at android.view.View.<init>(View.java:3493)
at android.view.ViewGroup.<init>(ViewGroup.java:427)
at android.widget.FrameLayout.<init>(FrameLayout.java:101)
at android.widget.ScrollView.<init>(ScrollView.java:161)
at android.widget.ScrollView.<init>(ScrollView.java:157)
... 20 more
Anybody knows what goes wrong?
Thanks!
Is there any custom recovery and rom for this device??

Categories

Resources