Mobile IDE does not work properly when edited - Android Q&A, Help & Troubleshooting

Hi, I have a question about some weird problem I'm facing with an app.
The app is called AIDE, it is an IDE which (also) supports java, and since I am away for 3 weeks with no pc/laptop in reach, this is awesome.
Now, I just started getting into learning java and only know very very basic stuff ("Hello World!" or "switch" or "if()" for example). So it would be nice to keep it up while I am away.
This might sound like a first world problem, but I absolutely do not like the colourscheme AIDE uses, so I took it upon myself to change the colours.
I changed the colours from this:
[I DO NOT HAVE 10 REP ]
To this (very much inspired by eclipse dark theme):
[I DO NOT HAVE 10 REP ]
I changed the colors.xml file within AIDE>res>values>[colors.xml] using apk editor (pro)
From: [I DO NOT HAVE 10 REP ]
To: [I DO NOT HAVE 10 REP ]
and replaced the original file with mine, then I had the app rebuild the apk, and installed it.
So what's weird is that I get these issues:
[I DO NOT HAVE 10 REP ]
[I DO NOT HAVE 10 REP ]
[I DO NOT HAVE 10 REP ]
I tried do decompile and recompile using a variety of different tools on pc but I just did not get it to work.
I thought maybe apk editor pro used a different signature for the app and it has some sort of protection? Or apk editor has issues/made mistakes recompiling.
Then I tried to replace the modded colors.xml with the original, and the same errors persist.
I am just not skilled enough to know how to work around this and of course my issue was nowhere to be found on the internet.
So if any of you know how I could change the colours without breaking the app or why the app breaks when it is edited, I would love to hear:angel:.
Now, this issue is not something extreme or whatever, I can still use AIDE and extremely appreciate what the developer did, but it would be nice to have nice colours to go together with my nice display.
I think I will have internet at the place where I go for my vacation. I would love to hear from you guys on how this maybe could be fixed or why I was stupid:good::fingers-crossed:.
Good day
-Rubet23
p.s. since I DO NOT HAVE 10 REP I thought to tell you what the error message says: "this method must return a value of type" " even though nothing is wrong with the code, this even happens on the tutorial example code (basic hello world thingie)

Related

Monster Galaxy Hack?

How do I edit the values to have more coffee, stars, and etc?
I believe the correct file to edit is located here:
/data/data/com.gaiaonline.monstergalaxy/files/monsterGalaxy
However, when trying to open the file "monsterGalaxy" with the text viewer on Root Explorer, I could read some words but a lot of it is like weird symbols. How do I open it so that there isn't any weird symbol? Like there's a lot of square boxes and question marks inside a triangle symbols.
iam also trying to open it but unfortunately i dont know how.
i managed to open the monstergalaxy db.file and edit the price for the i think its called nodes i would say the islands, but ive not tested yet.
u can really use gamecih2 for this.
i've tested and worked well. (but sometimes FC, when hacking energy for enter battle)
dude ive managed to get daily prize every 2 minutes and the price for battles are 5 energy or coins or whatever.^^ you have to edit the .db file in data/data/com.galaxy.monster use sqlite database brwoser for editing.
full totorial to hack monster galaxy zodiac islands using gameCIH
go to androidandros.blogspot.com the complete step-by-step is posted there.
selami023 said:
dude ive managed to get daily prize every 2 minutes and the price for battles are 5 energy or coins or whatever.^^ you have to edit the .db file in data/data/com.galaxy.monster use sqlite database brwoser for editing.
Click to expand...
Click to collapse
i tried to edit.. and now i can't open the game, always FC
Monster galaxy android hack
Link removed

(Q)\(R) Question & Request

I am wanting to know if there is a PC program to assist in themeing android devices? For example, it gets kind of tiring decompiling apks, editing pngs/XML files, recompiling,zipping & flashing for a trial and error test and if it isn't how you wanted it you have to go through the edit process all over again. I am requesting a PC program where you could load an apk and it visually show you an android handset where clicking different parts and selecting different options is a factor (change color/change image/change font etc.) If there is something like this that already exists please point me in the right direction and I'm not talking about using someone else's already made theme either. Thanks
Sent from my Nexus S 4G using XDA Premium App

Updated/Fixed wifi calling for ICS rom users

Hey guys when the latest RUU was released I pulled all the WiFi calling stuff out (well.. lots of bits and pieces) to update my fourth bar install... Figured I'd share it here. This will fix the increasing lag/delay with WiFi calling on all ICS sense based roms..
It shouldn't work on cm10 but i haven't tried it.I am pretty sure the movial implementation of WiFi calling requires many sense hooks though... But the interesting thing to me is that I have modified fourth bar quite a lot from the original to the point where there is practically no sensE stuff left whatsoever.. so it's either a modified telephony provider or it doesn't require sense at all... I haven't tested it much. Feel free to play around if you want.
Made this on the fly from my phone (and also is why I using DB) so let me know if it works if not I'll make one proper. Feel free to try on viper but if you do I'd suggest also.copying over htc frameworks.as well as telephony provider from a sense rom, just a suggestion!
You can tell.the update worked.because the WiFi calling active icon will be different. Oh and those using fourth.bar or speedrom..WiFi calling doesn't have to be permanent.. simply make a shortcut to the WiFi calling activity "wificall preferences" using apex or nova activity shortcuts.. you can also make shortcuts to the full IMS config including SIP reg server, auth info, protocol type, etc. I wouldn't mess with these.settings but could be useful to those porting. FLASH.THE ZIP.IN RECOVERY
LINK: http://db.tt/4B6tcCE1
(uHH... got a PM asking if it was odexed... these files are obviously deodexed..lol.. considering there's no .odex file... but yeah I mounted the system.img from the latest RUU, extracted it, deodexed the entire thing.. and pulled these out to make this zip. I've actually been combed through it with diff to the last RUU and there's really not a lot changed at all. Couple libs here and there, maybe a few other APKs... Not much at all!.. if you need it odexed, it's easy enough to reodex.. I actually prefer my phone to be odexed as well. Good tool to do this is called Dexo, The Universal Odexer.. you can find it on google. It's basically a couple of binaries and a script.. works like a DREAM and the basic script odexes your system apps as well as framework.. and it's easy enough to modify to odex data.. only thing with odexed data is you must delete the .odex file manually after you uninstall any apps because you'll get out of space etc errors if you do not... I find things are much MUCH faster on an odexed system, by far... matter of fact I'll go ahead and create another post with the Tool and a quick batch file I wrote for windows that makes the process very quick and easy.)
Good work :dance:
Just wondering, would there be anyway to get it to work with Miui
build.prop
might need to add this to the build prop if it isn't there
ro.ril.enable.ganlite=1
ro.ril.def.agps.feature=1
chevycowboyusa said:
might need to add this to the build prop if it isn't there
ro.ril.enable.ganlite=1
ro.ril.def.agps.feature=1
Click to expand...
Click to collapse
actually I think that's for the Kineto Gan implementation of Wifi calling, which uses a Userspace application (The one we tried to port over for Viper)
This is actually the Movial IMS implementation. Have you tried this implementation on viper perhaps? You would need some framework files, I think... but it's worth a shot honestly. I don't think it's as tightly hooked into Sense as a lot of us originally thought. I decompiled all of the APKs and I combed through it and I didn't really see any hooks into Sense.. I think that it more than likely depends on a modified telephony provider..
The Kineto Gan implementation used a bit of trickery with what's called a RIL switch, where it would (as the name implies) basically switch the RIL out on the fly between Kineto's RIL (for wifi calling) and the normal one. This implementation is a lot cleaner, and the configurations are included within the files themselves... It actually uses SIP. All the configuration info is actually easily found within the XMLs once the APKs are installed as system apps. The trickery is with the authentication. I've been running wireshark and capturing packets... between that and decompiling the APKs it appears that a basic SIP registration address is used for everyone, it's not unique. There's some kind of SIP address->mobile number translation that happens... the IMS project is open source, and the full source code is actually available on Google Code.. and it has even been updated for Jelly Bean. The interesting part is, I was able to compile the IMS Test App for ICS, take the configuration information I found.. entered it into the test App, and was able to establish half-way working service with the Test application. The thing is, even though it uses SIP, it's not your everyday run of the mill SIP. There's some wrapping and translation going on that uses info contained in the packets to determine where it's going (mobile number).. and don't even get me started on Text Messaging.... that looks like one giant hack-job...basically hijacking the SIP/RTP protocol for a proprietary implementation that just uses the base outline.
I tried to register with a regular SIP client using the configuration information I found (The password was TMO-VOIP-TRIAL) and i couldn't establish registration... and looking at the source I could definitely see why. There's a lot of stuff going on behind the scenes.
The good news is there's VERY LITTLE that appears to have been changed when it was updated for jellybean... what this means is... theoretically if someone was skilled enough they could take the DIFF's (which are freely available on google code) and update the IMS implementation for jellybean. It would take a good amount of time and effort, but I honestly think it's much more possible than a lot of people originally believed. It's the authentication part that's tricky..
But yeah, you might want to give it a shot on Viper! For a start I would probably move over ip-provider.apk, ims-service.apk, IPService.apk, WifiCall.apk (This is basically the on/off switch that Settings calls.. you can just use an activity shortcut to reach it though), and gba-service.apk
Push those all to /system/app
Then on the framework side I would move over javax.obex.jar, gba-service-lib.jar, and the other important one is going to be jsr-api.jar... I didn't know that it was related but it's clearly defined in the IMS source code (https://code.google.com/p/the-ims-open-source-project-for-android/source/browse/#git/jsr-api)
I would also copy over TelephonyProvider.apk and Phone.apk, for good measure. .. and see what happens.
You would need a way to trigger it ON, which can easily be done with Nova/Apex by making an activity shortcut to WIfiCall.apk, you can also make activity shortcuts to all the configuration options within the IMS-server itself but it comes preconfigured.
it's worth a shot... currently WiFi calling is working flawlessly for me on Fourth Bar and I have pretty much EVERYTHING htc related disabled. Including com.htc etc...
Could be in the HTC frameworks though.. or somewhere else... but it's def. worth a shot!
I think this is a awaresome job,although I don't know what's this...
Please do that!
Great work. I tried your file to no avail. Good catch on the other files. I read somewhere that phonesky is also required.
Biggest issue I had with the semi working one that I used is that it wouldn't read the SIM. I moved some files around and then it hung on connecting to the Wi-Fi due to a lack of server address
I'll follow your instructions tonight and see where I can get... I still am working on GPS and now vpn too. Last night I attempted a sense 3.6 venom build.
Wasn't pretty. Something kept failing in the updater script and I got too tired to pay with it..
**tried all the files and made the short cut..
No love.. It didn't work..
Still trying a few things
Any other ideas?
chevycowboyusa said:
Great work. I tried your file to no avail. Good catch on the other files. I read somewhere that phonesky is also required.
Biggest issue I had with the semi working one that I used is that it wouldn't read the SIM. I moved some files around and then it hung on connecting to the Wi-Fi due to a lack of server address
I'll follow your instructions tonight and see where I can get... I still am working on GPS and now vpn too. Last night I attempted a sense 3.6 venom build.
Wasn't pretty. Something kept failing in the updater script and I got too tired to pay with it..
**tried all the files and made the short cut..
No love.. It didn't work..
Still trying a few things
Any other ideas?
Click to expand...
Click to collapse
Hmm... there IS a build.prop entry that I actually just noticed
ro.ril.ims=1
I would try to add that.
Phonesky is just the updated google play market, I believe.
I would try that build.prop entry, then get a logcat if you can and post it. I'd try but currently can't really mess around with my phone as I need wifi calling for work stuff.
See what is going on in the logcat, or post it and I'll comb through it. See if there's API calls that are failing under something like Function does not exist or something or another.. that would seem to indicate some missing framework stuff that provides those functions. Then it might just be including said frameworks as well as altering the bootclasspath in the kernel (Pretty easy thing to do, just break the boot.img into parts with unpackbootimg, un-gzip the ramdisk with gzip and CPIO, edit the init.rc, recompress the ram disk with GZIP, then recompile the boot.img with mkbootimg) and I believe you'd also have to deodex the ROM itself, then if you wanted it odexed you'd have to odex it back with the correct BOOTCLASSPATH or else it will not boot. I'm not sure but I THINK deodexed APKs need to be built with the right bootclasspath.
There HAS to be a way to get it working on Viper. After all it's the same underlying android OS version.. The sensation guys got it worknig on CM9...
ok..
ericdjobs said:
Hmm... there IS a build.prop entry that I actually just noticed
ro.ril.ims=1
I would try to add that.
Phonesky is just the updated google play market, I believe.
I would try that build.prop entry, then get a logcat if you can and post it. I'd try but currently can't really mess around with my phone as I need wifi calling for work stuff.
See what is going on in the logcat, or post it and I'll comb through it. See if there's API calls that are failing under something like Function does not exist or something or another.. that would seem to indicate some missing framework stuff that provides those functions. Then it might just be including said frameworks as well as altering the bootclasspath in the kernel (Pretty easy thing to do, just break the boot.img into parts with unpackbootimg, un-gzip the ramdisk with gzip and CPIO, edit the init.rc, recompress the ram disk with GZIP, then recompile the boot.img with mkbootimg) and I believe you'd also have to deodex the ROM itself, then if you wanted it odexed you'd have to odex it back with the correct BOOTCLASSPATH or else it will not boot. I'm not sure but I THINK deodexed APKs need to be built with the right bootclasspath.
There HAS to be a way to get it working on Viper. After all it's the same underlying android OS version.. The sensation guys got it worknig on CM9...
Click to expand...
Click to collapse
I fixed VPN and I'm uploading it in a few. I think I noticed something as well. I went back to stock ota to see what was going on and noticed wifi calling isn't showing up in settings/more should be there with vpn/ wifi hotspot/ nfc etc....
ericdjobs said:
The trickery is with the authentication. I've been running wireshark and capturing packets... between that and decompiling the APKs it appears that a basic SIP registration address is used for everyone, it's not unique. There's some kind of SIP address->mobile number translation that happens... the IMS project is open source, and the full source code is actually available on Google Code.. and it has even been updated for Jelly Bean. The interesting part is, I was able to compile the IMS Test App for ICS, take the configuration information I found.. entered it into the test App, and was able to establish half-way working service with the Test application. The thing is, even though it uses SIP, it's not your everyday run of the mill SIP. There's some wrapping and translation going on that uses info contained in the packets to determine where it's going (mobile number).. and don't even get me started on Text Messaging.... that looks like one giant hack-job...basically hijacking the SIP/RTP protocol for a proprietary implementation that just uses the base outline.
I tried to register with a regular SIP client using the configuration information I found (The password was TMO-VOIP-TRIAL) and i couldn't establish registration... and looking at the source I could definitely see why. There's a lot of stuff going on behind the scenes.
Click to expand...
Click to collapse
How was the Test App half-way working for you? I didn't compile it, but I tried an apk I found a while back and it CLAIMED it was registered, but I couldn't make it call out. I tried random presence and subscribe options but I don't think they were taking and nothing happened when I called my mobile number from somewhere else. My guess is that I have to subscribe or set presence to something magic for my phone number. After not really finding what I should actually be doing from skimming the 4th or 5th spec, and noticing that the nexus 4 guys have a $1400 bounty and don't really have progress, I gave up.
Yeah there's a pile of authentication (on both sides) that IMS has over SIP. If I understand right, the first part of registration is similar, but then TMO's side says you're unauthorized along with a challenge that's supposed to be sent to the ISIM and part of a key for establishing an IPSec tunnel that everything else goes through. Can't tunnel, then use SIP because you need the key (and part of that probably comes from the ISIM too), and a regular SIP client will just think it failed.

[Q] LWP...apk modification possibility?

Hey guys
Sorry if this doens't belong here.
I've recently purchased holo ring pro(for those who don't know it, its a pretty cool live wallpaper with a few rings spinning in the background) and to my surprise I found out that it doesn't allow some features like changing the background, it just lets you change its color.
So, of course I started googling and found the apk somewhere around. I unpacked it and found a folder with the default backround, so I guess that changing it for the background I want and repacking the apk should do the trick.
I tried installing that apk on my non rooted phone (for testing purposes of course :angel but of course it wouldn't pass the google license verification check
Now the thing is...I don't want to support piracy, I just want to make this small tweak to an app that I already bought so....is it possible to change the original apk and install it without license or checksum problems? Or finding the application files on my phone and changing them right there?
TL;DR - I wanna tweak an apk (of a paid app that I purchased) and install it on my non rooted phone. Is there any way to do it without rooting the device?
Thanks in advance !

file, i.e., text editor that monitors/detects file changes (locally)

Hello @all,<br>I'm kinda new to "asking a question on a forum" hence I kindly ask you in advance to be a bit apologetic for any blunder I'm going to 'produce' .. thx
The reason me being 'new' is because usually I find my way around—not that I consider myself almighty but a simple Google-search does it's magic .. usually. This time I ran out of luck, which surprised me (even a search-string-overhaul was to no avail).
I'm looking for a neat text/script editor that is capable of monitoring file-changes that may happen in the background while a file is open .. a standard for any given IDE on a PC-environment (in fact, the simplest notepad replacement would cover such basics). Or a precocious check upon file-saving would be sufficient. As of now every App I tried so far failed to notice when I "sneak into my own phone and 'secretly' modify a file" currently open by this very App (of course, there are different scenarios conceivable why a file might have changed, though). QuickEdit looked promising but .. alas .. and why the heck is no there UltraEdit available for Android .. but I reckon this would be an entirely different topic and too much to ask.
ps: chose the 'post'-icon because it seemed fit .. although in a slightly different way than probably intended
pps: for the non-working line-break .. just use your imagination

Categories

Resources