[Q] Modding SemcEmail.apk - not having much luck! - Xperia Arc Q&A, Help & Troubleshooting

After reading this thread: http://forum.xda-developers.com/showthread.php?t=1086976 I thought (with no experience of working with Android) I'd have a go at doing a similar mod for the email app on the Arc, as I DESPERATELY need more than a month's worth of emails on my phone.
Unfortunately, I have of course run into problems. Firstly, the modification required to the above email app (for the Galaxy S2) was relatively easy, just a change in couple of XML files to turn 1 day into 100 days. The Sony app on the other hand just lists the "sync window" options in order, 1 to 5. After much searching, I can't find any code that converts those values into days, so I'm guessing this is what is passed to the exchange server, which knows that 2="three days" for example? In \smali\com\android\email\Account.smali it also shows:
.field public static final SYNC_WINDOW_ALL:I = 0x6
So I was hopeful that 6="All", and so all I needed to do was modify some values in \res\values\arrays.xml and \res\values\strings.xml to change 1 into 6, and so 'one day' into 'all' (worth a go, anyway!)
But then I hit another problem. After compiling, the file is considerably smaller than the original (1.32MB instead of 2.05MB). When placed in /system/app and with permissions set appropriately, email does not appear in the list of apps. I have tried using apktool and also apkmanager (compiling both as a system app and not, signed and not signed) and get no error, but email still won't appear. I installed the sony framework in apktool, so no errors on decompiling either.
Any ideas? Or does anyone else fancy a go at doing the mod?
-edit-
I've attached the version 3 SemcEmail.apk from this thread: http://forum.xda-developers.com/showthread.php?t=1141898. This is also working fine with 2.3.3 and has colour coded accounts.
I tried just modifying Account.smali (swapping the 0x1 and 0x6) in this version, but even this made a file that didn't work, so there must be a problem with my compiling/decompiling...?

XTCrefugee said:
After reading this thread: http://forum.xda-developers.com/showthread.php?t=1086976 I thought (with no experience of working with Android) I'd have a go at doing a similar mod for the email app on the Arc, as I DESPERATELY need more than a month's worth of emails on my phone.
Unfortunately, I have of course run into problems. Firstly, the modification required to the above email app (for the Galaxy S2) was relatively easy, just a change in couple of XML files to turn 1 day into 100 days. The Sony app on the other hand just lists the "sync window" options in order, 1 to 5. After much searching, I can't find any code that converts those values into days, so I'm guessing this is what is passed to the exchange server, which knows that 2="three days" for example? In \smali\com\android\email\Account.smali it also shows:
.field public static final SYNC_WINDOW_ALL:I = 0x6
So I was hopeful that 6="All", and so all I needed to do was modify some values in \res\values\arrays.xml and \res\values\strings.xml to change 1 into 6, and so 'one day' into 'all' (worth a go, anyway!)
But then I hit another problem. After compiling, the file is considerably smaller than the original (1.32MB instead of 2.05MB). When placed in /system/app and with permissions set appropriately, email does not appear in the list of apps. I have tried using apktool and also apkmanager (compiling both as a system app and not, signed and not signed) and get no error, but email still won't appear. I installed the sony framework in apktool, so no errors on decompiling either.
Any ideas? Or does anyone else fancy a go at doing the mod?
-edit-
I've attached the version 3 SemcEmail.apk from this thread: http://forum.xda-developers.com/showthread.php?t=1141898. This is also working fine with 2.3.3 and has colour coded accounts.
I tried just modifying Account.smali (swapping the 0x1 and 0x6) in this version, but even this made a file that didn't work, so there must be a problem with my compiling/decompiling...?
Click to expand...
Click to collapse
Hi,
I don't know if you are using again your SE phone but i'm using again a lovely mango SK17i in android 2.3.4 mod and i want to continue to use it but i have exactly the same issue with SemcEmail.apk...
When i'm using my old but pretty X10 mini pro (U20i) under a android 2.3.7 mod, i have a SemcEmail.apk which could "pop" all of my mail for my Exchange accounts ... It was great and fully working ...
Now, whatever android version used on this mango (GB, ICS or JB), the email.apk is just for one month max for emails from exhange ... i also needing to get all of my mails ... That's why i decided to stay on android 2.3.x with a fully working email.apk ...
Did you find a way ?

zegoo said:
Hi,
I don't know if you are using again your SE phone but i'm using again a lovely mango SK17i in android 2.3.4 mod and i want to continue to use it but i have exactly the same issue with SemcEmail.apk...
When i'm using my old but pretty X10 mini pro (U20i) under a android 2.3.7 mod, i have a SemcEmail.apk which could "pop" all of my mail for my Exchange accounts ... It was great and fully working ...
Now, whatever android version used on this mango (GB, ICS or JB), the email.apk is just for one month max for emails from exhange ... i also needing to get all of my mails ... That's why i decided to stay on android 2.3.x with a fully working email.apk ...
Did you find a way ?
Click to expand...
Click to collapse
IIRC in the end I installed a modded ICS release that was close to AOSP (sorry, I can't remember the name), and that included the ability to sync "all". But I've not used my Arc in a long while now due to a hardware fault.

XTCrefugee said:
IIRC in the end I installed a modded ICS release that was close to AOSP (sorry, I can't remember the name), and that included the ability to sync "all". But I've not used my Arc in a long while now due to a hardware fault.
Click to expand...
Click to collapse
Arrgh ! So thanks for your so faster answer ...
I had to find a way to sync all of my pro mails !
If you remember the ICS mod you used ... tell me more. :highfive:

Related

Noterrific - note keeping/structuring app

Noteriffic 0.53
Copyright (C) 2004 Rudis Muiznieks
Noteriffic is a quick little app I wrote because I felt that the PPC was
lacking a nice, simple, free note keeping/structuring application that has a
desktop counterpart....
All credit goes to Rudis, but now we have WVGA-Screens, so :
Could anybody of those famous and brave developers
compile this VB-Project for >> WVGA << ?
(Its working fine with QVGA and VGA)
Thanks a lot
Creature/entity appeared in mirror,
LOL
kahe40, I wanted to change something in this app the other day so downloaded a trial version of visual studio from MS plus dotnet compact framework. It let me edit the Noterrific source code and compiled a new version fine. I'm sorry I don't have time right now to work out incorporating WVGA, but thought you might like to know what I found out.
ps. if anyone wants the new source/compilation I can post. I simply added the ability for the app to remember which node it is on and return there next time it opens (otherwise it always ended up opening way down the list which drives me mad).
thanks ddk2, please have nice holidays, maybe later we can see...
what do you think about a dark grey background with white text ?
dont know, maybe there are problems with icons and checkboxes ?
and second: in settings, there is: use smaller font for list/display
would you please change to: use bigger font (only one step)
kahe40, did a very quick patch for you, no longer have large/small font, just textboxes so you can set your font size.
Source attached. Find exe's in each project (pda/desktop) in subdir bin\Release.
This version has my mods as described above.
Before you use it, take a copy of your data file (ntn ext) as mine was cleared out somewhere during testing and had to restore. I don't think its a bug, just something from testing, but take backup just to be safe.
Also did a quick test of grey background. Doesn't look that good to me, icons didn't come out well etc. Also presents issues that unless hardcode to grey, then need to make user option to set colour and that's a whole lot of frigging around....be my guest
very nice, good job, thanks a lot my friend
kahe40, don't know if you are still watching this but I just discovered I made a cockup in the last piece of code. I misinterpreted the use of one variable and the resultant problem shows up next time you go to add a node (I haven't added one for quite a while).
This version has corrected that. Also, changed the way I had it remembering which node it was on between sessions. Now saves with the apps variables (a sep file) rather than in the note file itself. Plus side is its much faster closing the app. Another sideaffect is that when syncing the file between pda and desktop, they each have their own memory of the last used node.
Yes, I am guilty my friend,
I traded my TouchHD for an iPhone, dont want to be banned from
this forum, but - man, oh man - what a wonderful OS ...
So I use the old version as shopping-list with my KS20 (QVGA).
Will test your new version soon, thanks a lot.
hello there
I've found this app some weeks ago to keep track of my actions on my work
Like a time log
Is there some some other app (free/paid) that does the same job.
I've found this one for ipod...http://ax.itunes.apple.com/app/id371157360?mt=8
shame that there isn't none for wm

SevenIM.exe

0rq06e23py
Is there an country where it works? I see this in every Firmware...
At the moment no chance to make it visible.
Best Regards
you could make it visible by changing customer.xml file. search for social hub tag and replace basic or basic plus to premium. after that you have to reinstall the preconfig of the region whoes customer.xml file was edited previously.
will that make the basic social hub to premium one? will this work here in the Philippines? please give us a detailed instructions. Thank you/
sorry for giving uncomplete info. actually i was not allowed to post two posts consicutively thats why i was not able to edit my previous post.
When you enable social hub by this method. it goes checking for samsung website and after 2-3 tries premium gets disabled and palringo comes back.
Although i was successfully blocked it by creating a new application using sdk. But my phone broke down due to some resion and i give a hault to this experiment. I had made some post regarding this in ipmart forum since at that time bada was not included in xda.
I've checked OXA CSC...
For all countries...
<SocialHubType>basic</SocialHubType>
Only KOR has:
<SocialHubType>basicplus</SocialHubType>
Strange, because I changed into String premium...
Is premium and basicplus the same?
Best Regards
in basicplus only push email option is available (i am not talking about exchange active sync but a real time push email) and the messanger remains old palringo but in premium, not only ypu get push email but also messangers for different client as you can see in your new modded fw.
what i have done is created a new dummy application using sdk named sevenIM and replaced its res folder content with the one in contents with 0rq06e23py. and run it as target release. after that using stune i have replaced exe file with one in 0rq06e23py. after that when i run the app on my phone i can see all the messanger but when i tap on them it did not proceed any further.

[XAP|Source] Marketplace Config - Easily change marketplace settings

Here is an app I made to quickly and easily change marketplace settings. Similar apps exist already, but this one has a few features I've not seen in the other ones. This project was more of a way for me to learn about homebrew dev, but it resulted in a useful program so nothing wrong with that
Source
This app is open source. It is hosted on Google Code. If anyone would like to help contribute, PM me and we'll discuss getting you added.
What you can do
Change OEM marketplace - You can choose from any of the 8 OEM stores, or view a combined market with all 8 at the same time.
Change MO marketplace - I'm working on getting as many as possible included. The app will ask kindly to submit if yours is a new one.
Change the maximum file size cap over 3g - Download larger apps and podcasts over 3G without needing a wifi connection
Lock the settings - Prevents your settings from reverting back in a day or two when the marketplace updates itself
Who can run this?
You need a root unlock. So either a full unlock or WP7 Root Tools with this app marked as Trusted.
Changelog
Beta 2.0.3 - 6/7/12 - Going off of the error reports I received from yesterday's release, I added better error handling to hopefully alleviate those problems.
Beta 2.0.2 - 6/6/12 - Added a better error handler. Users are now prompted with the option to submit bug reports, so I may better track down issues.
Beta 2.0.1 - 6/4/12 - Fixed a bug that would cause the app to crash if no MO store was configured on the device. The app also informs you if it's not set to Trusted in WP7 Root Tools.
Beta 2 - 5/31/12 - After spending too much time working on a rewrite, the next beta is ready. I've changed a ton of things under the hood, but the big new feature is viewing all OEM markets at the same time. I've also released the source as of this version, though I am not speaking for it's quality. Some parts are more polished than others.
Beta 1.4 - 5/2/12 - Added a few new mobile operators. Added country flags to MO selection screen. Fixed more crashed.
Beta 1.3 - 5/1/12 - Added a slew of new mobile operators, along with an option to remove it (for contract-free phones, direct from OEM, etc)
Beta 1.2 - 4/29/12 - Fixed crashing bug. Added Telekom MO (thanks contable). Added OEM logos.
Beta 1.1 - 4/28/12 - Removed device spoofing (it can break DRM, thanks for the heads up GoodDayToDie). Added Sprint MO.
Beta 1 - 4/28/12 - Initial release
Thanks to
Heathcliff74 for the wonderful WP7 Root Tools SDK
GoodDayToDie for his homebrew efforts, which I use for file IO
balcsida for providing new icons
It doesn't launch on my Titan...so it will probably need a higher level of unlock than a Dev unlock.
You'll need "root" unlock, meaning either full-unlock or WP7 Root Tools and the app marked as "Trusted".
@ken52787: Very cool! I was actually working on something very much like this. Would you mind sharing your source code? If I can merge what I was working on into what you've already got, that would be great.
One very big concern, though: changing the OEM name in DeviceTargetingInfo (which is what I assume you're doing to make apps like Nokia Drive work) is extremely dangerous. Although I'm not sure exactly what the trigger is (suggestions have been things like leaving it changed for more than 24 hours, or changing it more than 5 times), changing that value can permanently break the Marketplace DRM on your phone. All your Marketplace apps will stop launching, and you won't be able to install more. The only solution we know of is a hard-reset or a restore point; returning the registry value to the original OEM name does not help.
GoodDayToDie said:
You'll need "root" unlock, meaning either full-unlock or WP7 Root Tools and the app marked as "Trusted".
@ken52787: Very cool! I was actually working on something very much like this. Would you mind sharing your source code? If I can merge what I was working on into what you've already got, that would be great.
One very big concern, though: changing the OEM name in DeviceTargetingInfo (which is what I assume you're doing to make apps like Nokia Drive work) is extremely dangerous. Although I'm not sure exactly what the trigger is (suggestions have been things like leaving it changed for more than 24 hours, or changing it more than 5 times), changing that value can permanently break the Marketplace DRM on your phone. All your Marketplace apps will stop launching, and you won't be able to install more. The only solution we know of is a hard-reset or a restore point; returning the registry value to the original OEM name does not help.
Click to expand...
Click to collapse
Yikes! I was not aware of this. I took that out and reupped the xap.
And yes, I'll share the source soon, I just want to clean it up a bit first since it's rather sloppy at the moment
ken52787 said:
Here is an app I made to quickly and easily change marketplace settings. Similar apps exist already, but this one has a few features I've not seen in the other ones. This project was more of a way for me to learn about homebrew dev, but it resulted in a useful program so nothing wrong with that
The initial beta is a little rough around the edges, but should be stable. Please report any oddities you notice and provide feedback and suggestions.
What you can do
Change OEM marketplace - Included are Acer, Dell, Fujitsu, HTC, LG, Nokia, Samsung, and ZTE (although only HTC, LG, Nokia, and Samsung have accessible marketplaces)
Change MO marketplace - Included are AT&T, Orange, Sprint, and Verizon (I had a hard time finding other marketplaces. If you are on a carrier other than these, please send me your settings so I can include them, the program will automate this for you with your permission)
Change the maximum file size cap over 3g - Download larger apps and podcasts over 3G without needing a wifi connection
Lock the settings - Prevents your settings from reverting back in a day or two when the marketplace updates itself
Who can run this?
You need a root unlock. So either a full unlock or WP7 Root Tools with this app marked as Trusted.
Changelog
Beta 1.1 - 4/28/12 - Removed device spoofing (it can break DRM, thanks for the heads up GoodDayToDie). Added Sprint MO.
Beta 1 - 4/28/12 - Initial release
Thanks to
Heathcliff74 for the wonderful WP7 Root Tools SDK
GoodDayToDie for his homebrew efforts, which I use for file IO
Click to expand...
Click to collapse
not working with my mozart?
life25ak said:
not working with my mozart?
Click to expand...
Click to collapse
What kind of unlock do you have?
curious... why are XAPs being posted in this sub-forum when their is a WP7 Software Development sub-forum?
nice looking app, though. curious as to how you 'locked' the Market.
would love to add that into my version of this app, Market Select.
The Software Development sub-forum always seemsed more focused on general app development rather than tweaks to the OS. Last time I was reading that forum, it seemed like it was mostly stuff using the official APIs, too. Maybe I should start reading it again, though...
You can lock in changes to Marketplace configurations by setting read-only on the XML files.
@OP: Thanks for the quick fix, and you're welcome for the tip! The 1.1 version works well on my phone. Two (related) suggestions, though:
1: The messageboxes the pop up at first run block the UI from loading. If the UI doesn't load within a few seconds (10 or so) the OS will kill the app. You may want to cause them to pop up on a delay or something...
2: There's no option to send your MO (or OEM) files after the initial messagebox prompt. I'd like to send you the T-Mobile US files (not that the TMoUS apps are super-exciting) but the app was killed on me before I could click it! I can go pull them off the filesystem manually, of course...
Thx for this app.
I have sent you the settings for Telekom Germany (T-Mobile DE), would be nice if you could add them...
GoodDayToDie said:
@OP: Thanks for the quick fix, and you're welcome for the tip! The 1.1 version works well on my phone. Two (related) suggestions, though:
1: The messageboxes the pop up at first run block the UI from loading. If the UI doesn't load within a few seconds (10 or so) the OS will kill the app. You may want to cause them to pop up on a delay or something...
2: There's no option to send your MO (or OEM) files after the initial messagebox prompt. I'd like to send you the T-Mobile US files (not that the TMoUS apps are super-exciting) but the app was killed on me before I could click it! I can go pull them off the filesystem manually, of course...
Click to expand...
Click to collapse
See what I mean about sloppy coding and wanting to clean it up before releasing the source
App works good on my hd7. Although during first run it made a backup. Then asked me if I wanted to sent my carrier setting since you don't have them. I was going to then the app crashed and never gave me the option again. App runs fine other than the first run when it crashed.
Sent from my HD7 T9292 using XDA Windows Phone 7 App
I posted a quick update. This one fixes the crashing bug.
Thx for the quick update...
Sent from my OMNIA7 using XDA Windows Phone 7 App
Very Cool..!!! Thank you! Htc Arrive
v1.1 and v 1.2 are crash
it mean i install this app then set trust on root...it open but quickly get out
so;
whats the problem !?
Doesn't load on my Dev Unlocked TITAN.
Says something about an error occurred while reading current store config
VegaNovus said:
Doesn't load on my Dev Unlocked TITAN.
Says something about an error occurred while reading current store config
Click to expand...
Click to collapse
You need a full unlock or root access with WP7 Root Tools. Dev unlock is not enough (the phone doesn't like me messing about in the file system)
Also, I just posted an update. No changes other than adding a bunch of new MOs. Thanks to everyone who submitted them! I have some ideas for beta 2, if only I could find some time to work on it I also plan on releasing the source when I get that version out.
Using 1.3 with Samsung Focus... Set the Trust to ON through RootTools as well.
I Get the "an error occured while reading your current store config".
If i click on OK application shows the main screen briefly and then exists. Otherwise shows the following error:::
CreateFile failed for \My Documents\Zune\PimentoCache\Keepers\LKKG_MOStoreConfig.xml! GetLastError: 2
Thanks.
You're sure it's two Ks ("LKKG_MOStoreConfig.xml")? That's a typo, then. It would explain why you're getting an error of File Not Found as well.

[Q][DEV] Timescape buggy SNS sample

Hello, developers and users.
I want to write an extension that parses Last.FM friends feed and the tracks they loved recently. I haven't found one on the Internet so I decided to write one myself. I took the Sony's EDK SnsSampleExtension example for Timescape to start from.
I hope to find the answer to a very interesting issue I've found. So there's SNSDataProvider - a class that extends Android's ContentProvider in order to customize data fetching. In the example SQLite DB is used. And calling ContextResolver's insert(), query(), update() or delete() methods should (or at least I expect it to) result in calling SNSDataProvider's methods relatively. BUT despite overrided insert() and query() are called ok delete() is NOT called at all! I've added a line at the beginning of SNSDataProvider.delete() method:
Code:
Log.d("Database", "Delete URI: " + uri.toString());
and similar lines in insert() and query() methods. The log is in the attachement. Note: there must be the "Delete URI: ..." note in logs just before "Logout done" as the first Log note should be caused by database.cleanup(); line (that calls mCr.delete() in tis turn) in SNSSampleService.logout(), but it doesn't!
The main problem is that (old) events in the database can't be deleted so every time I login or logout or add more events to DB wthout being able to delete old ones I run into exception that is caused by overfilled DB.
Just in case: I got Sony Xperia S with Android 4.0.4 . Let me know if some more info needed.
I do hope I can use some help of experienced devs here.
Cheers.
OK. Thanks for not helping me. Gonna find the answer myself. Mods can shut this thread down.
I'd love to help, but I'm not familiar with making something like you are making..
Sent from my LT26i using xda app-developers app

Barebone Android (stripped system/apk folder)

Edit : I mean system/app folder for the title.
I manage to strip down my Android to bare minimum, and so far I'm VERY happy with the result.
My device is Samsung Galaxy Note 10.1 (GT-N8000) but I suppose it is applicable to other Samsung or even any other Android devices (probably custom ROM too) , since I did cross research to wide varieties of stripped devices (including S series, Sony and such).
So far the debloating guides I've encounter don't go this far. I'm left with 68 files within system/app folder.
Google doc spreadsheet :
http://bit.ly/1c647yf
By jermitano
https://spreadsheets.google.com/spr...1gdDJRekl4QmkyNmIzUmRvX2h3UDVkQXc&output=html
As I remember, his spreadsheet was one of my resource to find the useless apps. I will attempt to compare both spreadsheets, and maybe add some more infos to mine.
Scribd link (also attached as PDF) :
http://bit.ly/1gmRGAy
I shared the google doc to public with editing permitted.
So if you're planning to debloat on your device or have complete infos on each apk, you can add it up there so might help anyone attempting to debloat their devices.
note :
Keep in mind, I use my tablet for laptop replacement, which means I don't use it for phone, sms and such (altho they're still working properly) and I disabled contact sync too, so I'm left with contact list stored within my SIM/phone.
I don't use GPS on my tablet too, so I removed GPS location through network (but it still working as well)
I have hardware keyboard at my disposal so in that table I removed SamsungIME.apk since I can use my hardware keyboard for initial setup and such.
Original thread here ;
http://forum.xda-developers.com/showthread.php?t=2653655
Enjoy, and cheers. Hope this helps.
Google doc spreadsheet updated
http://bit.ly/1c647yf
Been couple of days, on heavy load (watching videos, playing 3D games, youtube and such) my Note 10.1 last about 15+ hours with this minimal settings. Of course I also turned on battery saving mode and turning off haptic feedback. I don't need all those.
Might last a week + if I put it on standby, since the battery consumption seems very flat and the only app listed within "battery" are only LCD screen. Phone, sms, GPS, etc, working great. Booting up is a snap, as well as starting apps and such. No crashes or force closes. AT ALL.
Some settings won't open when I tap them, but no crashes too. Simply, this is the android device of my dream.
Still need help and more infos on the safely removed apks. Or if you have other device than samsung, and want to do this to yours, I could use a bit of cross reference on what's the bare minimum of APKs.
Edit : Now I want to test out www.addictivetips.com/mobile/how-to-install-any-app-as-system-app-on-android and see if I did hard reset on it.
http://www.addictivetips.com/mobile/how-to-install-any-app-as-system-app-on-android
Work marvelously. Need to set the permissions on the app.
For commercial apps, it will install to .asec in app-private. Use ES Explorer to convert it to ,apk. Uninstall, then install as usual. Find the apk at data/app.
Need to have the /lib files within the /system/lib in order all these to work.
Also, remember to set the permissions to both the apk and the lib files.
Thanks to IrfanCore http://forum.xda-developers.com/showpost.php?p=50543779&postcount=28

Categories

Resources