[Q] - Android Q&A, Help & Troubleshooting

I need help making my ROM. Any help is apreciated. Thx http://www.vmroms.com/index.php?topic=827.msg14743#msg14743

Nick_73 said:
I need help making my ROM. Any help is apreciated. Thx http://www.vmroms.com/index.php?topic=827.msg14743#msg14743
Click to expand...
Click to collapse
What kind of help are you looking for? Do you want suggestions on what to add? Are stuck on how to add a particular feature to your ROM? One thing you could try is compiling AOSP and using that as the base for your ROM a great guide on doing that can be found here and here (Official Google guide to building AOSP). I'll be happy to help you out best I can so let me know if you still have questions.

shimp208 said:
What kind of help are you looking for? Do you want suggestions on what to add? Are stuck on how to add a particular feature to your ROM? One thing you could try is compiling AOSP and using that as the base for your ROM a great guide on doing that can be found here and here (Official Google guide to building AOSP). I'll be happy to help you out best I can so let me know if you still have questions.
Click to expand...
Click to collapse
I am building it from stock. Right now the custom launcher won't open. Also after boot, it loops. Does the services.jar need a new odex if modified?
Sent from my SCH-S738C using Tapatalk

I fixed the launcher issue but not the services.jar. Also, the Trev-E mod WiFi tether app force closes when I flash Rom and boot
Sent from my SPH-L300 using Tapatalk

Also if an admin could name this "[Q] Rom help" that'd be great
Sent from my SPH-L300 using Tapatalk

Nick_73 said:
I fixed the launcher issue but not the services.jar. Also, the Trev-E mod WiFi tether app force closes when I flash Rom and boot
Sent from my SPH-L300 using Tapatalk
Click to expand...
Click to collapse
Glad you were able to fix that, my main suggestion would be to modify only one part of your ROM at time (Just like a science experiment) that way you know that if it doesn't work it's very likely because of the modification you just made. Also logcat will be a big help to help you figure out where things are causing problems and what things are causing problems.

shimp208 said:
Glad you were able to fix that, my main suggestion would be to modify only one part of your ROM at time (Just like a science experiment) that way you know that if it doesn't work it's very likely because of the modification you just made. Also logcat will be a big help to help you figure out where things are causing problems and what things are causing problems.
Click to expand...
Click to collapse
Why do all system apps I add force close until they're updated?
Sent from my SPH-L300 using Tapatalk

Nick_73 said:
Why do all system apps I add force close until they're updated?
Sent from my SPH-L300 using Tapatalk
Click to expand...
Click to collapse
Try updating the system apps to their latest version and pulling the apk's of the updates version then including these latest version updated apk's in your ROM :good:.

shimp208 said:
Try updating the system apps to their latest version and pulling the apk's of the updates version then including these latest version updated apk's in your ROM :good:.
Click to expand...
Click to collapse
I did that, but still fc.
Sent from my SPH-L300 using Tapatalk

Nick_73 said:
I did that, but still fc.
Sent from my SPH-L300 using Tapatalk
Click to expand...
Click to collapse
Also make sure in your ROM's updater-script the system apps you have added are given the proper file permissions.

I did a work-around and made added apps get flashed to /data/app. But Play Store still fc's. I modified the updater-script from another Rom for this phone, but I only added lines.
Sent from my SPH-L300 using Tapatalk

shimp208 said:
Also make sure in your ROM's updater-script the system apps you have added are given the proper file permissions.
Click to expand...
Click to collapse
I have an issue with smali. I backsmali a classes.dex file. I can re package it with smali, when I don't edit files. If I edit any files within the output folder, I cannot repackage it with smali. It gives me an error... Unexpected top-level exception. And I cannot find any help online....
Sent from my GT-P5110 using Tapatalk

Never mind. I tried it a few times and it worked
Sent from my GT-P5110 using Tapatalk

Related

Try to get AOSP lockscreen

Hi,
since I don't really like the Glass lockscreen on YP-G1,I wanna change it to AOSP style.
However,UOT kitchen can't make it though I've tried many times uploading files
So,I searched for way to mod these files manually in forum.Like:
http://forum.xda-developers.com/showthread.php?t=969354
Stuck ROM's is fully odexed,so I got android.policy.jar and android.policy.odex.After decompiling android.policy.odex(340KB),editing codes,recompiling,I got a dex file(296KB).It was smaller than before,making me confused...
Then I renamed it to 'classes.dex' putting into android.policy.jar,and made a CWM zip and flashed it as usual.
Reboot,ah,just got a bootloop
Anyone could give me a hand?This stuff almost made me mad...
If AOSP lockscreen's codes were not exist in firmware,then what I've done was just in vain...
But Klin has succeed in changing lock style via UOT.So there should be sth wrong in editing these codes for me.
Keep working on it.
fromnowon said:
If AOSP lockscreen's codes were not exist in firmware,then what I've done was just in vain...
But Klin has succeed in changing lock style via UOT.So there should be sth wrong in editing these codes for me.
Keep working on it.
Click to expand...
Click to collapse
You have to change a method in android.policy.jar. I think it was in class lockpatternkeyguardview.
Sent using Tapatalk
klin1344 said:
You have to change a method in android.policy.jar. I think it was in class lockpatternkeyguardview.
Sent using Tapatalk
Click to expand...
Click to collapse
Hi,Klin.
Could you please send me your android.policy.jar and android.policy.odex?I downloaded your custom ROM R5,but couldn't be unpacked by UltraISO,even failed to mount the rfs file in Linux
Thax!
Ok, I'll give it to you when I get home this afternoon. But my rom is deodexed, so it doesn't have android.policy.jar.odex.
And also, the reason you can't mount the factoryfs.rfs is because it is an extremely image in an Odin flashable format. If you want it sooner, you could download r4 and mount it and take the file you need.
Sent using Tapatalk
klin1344 said:
Ok, I'll give it to you when I get home this afternoon. But my rom is deodexed, so it doesn't have android.policy.jar.odex.
And also, the reason you can't mount the factoryfs.rfs is because it is an extremely image in an Odin flashable format. If you want it sooner, you could download r4 and mount it and take the file you need.
Sent using Tapatalk
Click to expand...
Click to collapse
Thank you~
Starting to learn Android,I'm interested in everything about it.
Sorry for the delay, but here ya go.
There is no odex version because it is already deodexed.
So, would using a deodexed android.policy.jar on a stock odexed rom not work?
Sent using Tapatalk
iJimaniac said:
So, would using a deodexed android.policy.jar on a stock odexed rom not work?
Sent using Tapatalk
Click to expand...
Click to collapse
Probably not. But you could try it if you want, and if it boot loops just adb push the original one to your phone. But if your rom is a different framework other than 2.3.6 than this definitely won't work.
Sent using Tapatalk
klin1344 said:
Sorry for the delay, but here ya go.
There is no odex version because it is already deodexed.
Click to expand...
Click to collapse
Thx.
In fact I got lots of bootloop while testing such things,haha
I would investigate this file and hope to find sth.
Thx again!

Porting ROMs from other devices?

I asked this over in Android General and I was pointed here: http://forum.xda-developers.com/showthread.php?t=1598713
Could anyone confirm if this would allow porting of a ROM like HTC Sense to the Xperia?
I posted this here as I reckon that if it is indeed possible, it could be of some use to the dev community in here. If not, mods can delete this
Our phone only has 480mb internal storage.
HTC Sense is well over 1gb just for the ROM.
Sent from R800x
that's wron
a normal sense 4.0a rom needs 420mb system partition
our is only 300mb.
so we need to decrease the zip (remove apps) and move some apps to /data in zip.
then symlink /data
and then we can go porting it
I would use a Sense 4 rom , I'm going to mess around later lol.
TheCraig said:
I would use a Sense 4 rom , I'm going to mess around later lol.
Click to expand...
Click to collapse
Remember, you can only use a ROM for a device on the same Arm as Xperia Play.
I'm gonna have a look at messing around with the HTC One S firmware
ok, i will make a thread for a sense 4 port
i am working on it too
nickholtus said:
ok, i will make a thread for our sense 4 port
i am working on it too
Click to expand...
Click to collapse
Really ?
Sent from my Xperia Play using Tapatalk 2
RublJow said:
Really ?
Sent from my Xperia Play using Tapatalk 2
Click to expand...
Click to collapse
This is what exploring outside of he Xperia Play thread gets you
Sorting out permissions on the HTC One S Cyanogenmod ROM. Hopefully, with some luck, I should be good to go by the end of the night
Crossing my fingers I dont get some kind of catastrophic brick haha
Moment of truth guys
I'll report back if anything works....I hope *gulp*
Stuck at kernel :S
I'll keep trying though
can you upload your current version?
then i can take a look
nickholtus said:
can you upload your current version?
then i can take a look
Click to expand...
Click to collapse
I know what the error is. I need to jump into Linux to unpack the kernel and edit the init.rc file (Only possible on Linux).
Going to flash back to MIUI temporarily to move the files onto my SD card to shift them onto Linux. Going to do that a bit later on as Im going to be a bit busy. If I get anything working I'll PM you and Dropbox the ROM for you to try If all comes back working, I'll release it to the general users
This will hopefully be my first ROM development
Tried again and can't get past the kernel screen.
Back to the drawing board. Gonna try a Samsung CM7 build now
Having no luck with this. Any devs with more knowledge than me feel free to take over
CTU_Loscombe said:
Tried again and can't get past the kernel screen.
Back to the drawing board. Gonna try a Samsung CM7 build now
Having no luck with this. Any devs with more knowledge than me feel free to take over
Click to expand...
Click to collapse
Same thing happens with the arc rom I'm trying to port. Did you edit the boot class path?
Sent from my Xperia Play using Tapatalk 2
miui arc rom should boot when you edit all the audio libs (in /lib/hw the first 4 files and in /lib all files with libaudio...)
don't need to edit the rest to get it booting
Zerosuit Connor said:
Same thing happens with the arc rom I'm trying to port. Did you edit the boot class path?
Sent from my Xperia Play using Tapatalk 2
Click to expand...
Click to collapse
Yeah. I hate this script editing
Sent from my Xperia Play using xda premium
you don't need to edit scripts...
nickholtus said:
you don't need to edit scripts...
Click to expand...
Click to collapse
Wanna draw up a tut for us ? I'm sure all the play users would be delighted. I currently can't get anything at all to boot following multiple tuts.
Sent from my Xperia Play using Tapatalk 2
nickholtus said:
you don't need to edit scripts...
Click to expand...
Click to collapse
The instructions say to edit the updater-script though :S
Sent from my Xperia Play using xda premium
lol, that's very easy.
i really don't follow that guid, because it is not %100 right
nickholtus said:
lol, that's very easy.
i really don't follow that guid, because it is not %100 right
Click to expand...
Click to collapse
Maybe you could write up better instructions for us
Sent from my Xperia Play using xda premium

[Q] *Strange* Error when recompiling -none system apk-

Hi Guys ,
I've a Strange problem when i recompile
I'm getting this error when i recompile -without modification- :
http://pastebin.com/S8Td4QxV
Then i've searched about the error and found some answer that said delete public.xml , i do that then i've got this error :
http://pastebin.com/tRechubZ
Then i've searched about the error and found some answer that said add @+ before drawable in xml in drawable , i do that then the error message has gone and i recompiled and signed apk without errors but after install apk in device i got force close , so what's problem exactly
BTW i've tired recompiling other apks without any problems
apk in Attach
How i do fix that please
MPooZD said:
How i do fix that please
Click to expand...
Click to collapse
Hmm seems weird.. It's like it needs certain framework to pull the correct public ids.. is this a system app? Or what rom did you get it from? If you pulled it from a rom..try installing that roms frameworks in apk tool. .then decompile it..
If not..pull a log and see what errors it's throwing at you when it fcs. .If you want post it here..and I'll see if I can help you at all
Sent from my SCH-I605 using xda app-developers app
lacoursiere18 said:
Hmm seems weird.. It's like it needs certain framework to pull the correct public ids.. is this a system app? Or what rom did you get it from? If you pulled it from a rom..try installing that roms frameworks in apk tool. .then decompile it..
If not..pull a log and see what errors it's throwing at you when it fcs. .If you want post it here..and I'll see if I can help you at all
Sent from my SCH-I605 using xda app-developers app
Click to expand...
Click to collapse
Thanks for respond
it's none system app
[quote name="lacoursiere18" post=51624609]Hmm seems weird.. It's like it needs certain framework to pull the correct public ids.. is this a system app? Or what rom did you get it from? If you pulled it from a rom..try installing that roms frameworks in apk tool. .then decompile it..
If not..pull a log and see what errors it's throwing at you when it fcs. .If you want post it here..and I'll see if I can help you at all
Sent from my SCH-I605 using xda app-developers app
Click to expand...
Click to collapse
Thanks for respond
it's none system app[/QUOTE]
Looks like it is not installing correctly.. Also what Android version are you on? Does this app support it?
It is also requesting to write to internal storage which I know something in 4.4 have changed with that.
? Why are you decompiling it?
Sent from my SCH-I605 using xda app-developers app
lacoursiere18 said:
Looks like it is not installing correctly.. Also what Android version are you on? Does this app support it?
It is also requesting to write to internal storage which I know something in 4.4 have changed with that.
? Why are you decompiling it?
Sent from my SCH-I605 using xda app-developers app
Click to expand...
Click to collapse
i'm on 4.4.2 , yes support and works fine
But I got lots of error when i tried to decompile it without modified or changes !!
I'd change colors in xml
BTW all apps i had decompiled working fine , but had an error in this one
UP UP
BumpUp!
Is there any solutions

How to mod framework-res.apk having issues for call recording?

Hello all.
I was wondering if someone might be able to help me with this.
I am using the apk multitool and can decompile the framework but get loads of errors when I try to recompile it.
This method worked well on my s4 and other devices but am having issues with this one.
What programs are you using to decompile and recompile the framework.
Or can anyone mod it to include the wifi tethering bypass and call recording features?
Any help would be greatly appreciated
Can anyone help?
I don't know what I am doing wrong.
The recompile just won't go through.
Even if I don't make any changes.
Use the tool in my link. Worked just fine for me.
Sent from my SM-G900T using Tapatalk
---------- Post added at 09:51 AM ---------- Previous post was at 09:50 AM ----------
Also post any compile errors.
Sent from my SM-G900T using Tapatalk
elesbb said:
Use the tool in my link. Worked just fine for me.
Sent from my SM-G900T using Tapatalk
---------- Post added at 09:51 AM ---------- Previous post was at 09:50 AM ----------
Also post any compile errors.
Sent from my SM-G900T using Tapatalk
Click to expand...
Click to collapse
Thank you for the help,
I tried using your tool and can decompile the file okay now.
But am still running into problems recompiling it.
I have included the errors I am getting in a code block.
I am running Windows 8 and I am not sure if that might be part of the problem or not.
Any help would be appreciated with that.
Just still kinda amazed as this was working on my s4 without issue
TheArtiszan said:
Thank you for the help,
I tried using your tool and can decompile the file okay now.
But am still running into problems recompiling it.
I have included the errors I am getting in a code block.
I am running Windows 8 and I am not sure if that might be part of the problem or not.
Any help would be appreciated with that.
Just still kinda amazed as this was working on my s4 without issue
Click to expand...
Click to collapse
it's because you didn't install the framework to pc. depending upon what app you use, it needs to have the framework files from your device or it will be missing dependencies every time you recompile.
Sent from my SM-G900T using Tapatalk
How would I go about installing them with this tool?
I already have them copied out of the phone.
TheArtiszan said:
How would I go about installing them with this tool?
I already have them copied out of the phone.
Click to expand...
Click to collapse
I think I was using an older version of the program.
Found an update. Will download that and give it a try then.
I will report back what happens.
tp2215 said:
it's because you didn't install the framework to pc. depending upon what app you use, it needs to have the framework files from your device or it will be missing dependencies every time you recompile.
Sent from my SM-G900T using Tapatalk
Click to expand...
Click to collapse
Okay.
I have updated to the newest version of the tool on his page
Used the check mark for installing propritary frameworks and installed framework-res.apk twframework.apk and SystemUI.apk
and still am running into the same errors even though I have the framework installed.
What might I be doing wrong?
TheArtiszan said:
Okay.
I have updated to the newest version of the tool on his page
Used the check mark for installing propritary frameworks and installed framework-res.apk twframework.apk and SystemUI.apk
and still am running into the same errors even though I have the framework installed.
What might I be doing wrong?
Click to expand...
Click to collapse
what program are you using?
Sent from my SM-G900T using Tapatalk
tp2215 said:
what program are you using?
Sent from my SM-G900T using Tapatalk
Click to expand...
Click to collapse
I am using the one from elesbb's signature.
I pulled the framework from the s4 and I could decompile it and recomiple it with a problem.
Tried again with the s5 frameworks and have the trouble again.
Maybe the apktool.jar is too out of date.
I have attached the log from my recent try with the s5 framework.
And thank you for your help btw.
TheArtiszan said:
I am using the one from elesbb's signature.
I pulled the framework from the s4 and I could decompile it and recomiple it with a problem.
Tried again with the s5 frameworks and have the trouble again.
Maybe the apktool.jar is too out of date.
I have attached the log from my recent try with the s5 framework.
And thank you for your help btw.
Click to expand...
Click to collapse
i am certainly not discrediting any other app, but try this. .
http://forum.xda-developers.com/showthread.php?t=1633333
follow the op perfectly to properly set it up.
Sent from my SM-G900T using Tapatalk
tp2215 said:
i am certainly not discrediting any other app, but try this. .
http://forum.xda-developers.com/showthread.php?t=1633333
follow the op perfectly to properly set it up.
Sent from my SM-G900T using Tapatalk
Click to expand...
Click to collapse
Thanks I may try that later.
I just grabbed the apktool jar that was updated right from the source and was able to do it with command line.
Got a few aapt warnings but worked fine.
I think it was just the other tool using an older version of that file.

[Q] How to install APP twice?

Hello guys.
I'd like to install the same app (but different version) twice.
For example tapatalk 4.10 and 3.0 without replacing.
I hope u know what I mean.
I know how to compile, recompile apps, so don't worry.
I hope it's not wrong Forum for such thread.
Peace.
@refresh
dollar7 said:
refresh
Click to expand...
Click to collapse
Putting aside the question of why you would want Crapatalk installed on your phone in the first place, my understanding is that the only way you can have 2 different versions of the same app installed at once is if the 2 apks had different signatures.

Categories

Resources