Where is it??? - Galaxy Ace S5830 Q&A, Help & Troubleshooting

Hi,
So guys I just want to ask you where is the file that contains the original settings of :
1.app(any apk)
2.rom
(I know some settings could be set through build.prop)
Thank ya all in advance, the thanks button is reserved for all who have something to say here.
Sent from my GT-S5830 using xda premium

Huh Wat do u mean by original settings maybe for app try clearing data of app?
Sent from my GT-S5830 using xda premium

Sikorsky96 said:
Hi,
So guys I just want to ask you where is the file that contains the original settings of :
1.app(any apk)
2.rom
(I know some settings could be set through build.prop)
Thank ya all in advance, the thanks button is reserved for all who have something to say here.
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
Its not one file. Its a set of folders. All user settings and data is stored in /data
___________XDA Premium__________
Don't be a noob. Be a newbie..!!
Details here.
____________________________________

Explain a bit please Search in /system/app and /data/data and /data/app

And if u get the correct dir then u will see a bunch of .so files
Sent from my GT-S5830 using xda premium

Well basically I want to modify an apk. Launcherpro.apk for example. I Meant the default settings. E.g by default the ani speed of launcherpro is set to 4 I wanna change it to 6 for example. By the way I know that This could be done once the app is installed either by changing it in the settings menu of the app itself or modifying the XML file in data/data/com.fede.launcher/shared_prefs. so long story short I want to modify the default settings of an app just any.
Hope that's clear enough. Cheers everyone!!!
Sent from my GT-S5830 using xda premium

Well, it depends on how the app works. Decompiling, editing and recompiling seems to be what you're lpoking for. You need to know how the app works to know where to start screwing with it.
If you're looking to do it for a rom or flashable zip, flashing the app's external data (/data/data for example) to the correct location will keep its settings. For example, use an app, change settings, go to data/data and extract the app's data, put it in your flashable zip and edit the updater-script of the zip to mount /data and flash the app's data to /data/data.

Oki, cheers bro. Yes I am looking into compiling apps. Well I have extracted a couple of apps and they all seem to have the same basics. Same folders and stuff. What I thought it would be like is that it might have some sort of XML file named style or settings or preferences or ... and all the default values are stored there which could be modified. Like I said I find such file in the data directory of an app but is there a simular file in the actual apk
Sent from my GT-S5830 using xda premium

Settings.xml
Then you can change some stuff but not all
Others are in the smali
Sent from my GT-S5830 using xda premium

CoolCatGetHome said:
Settings.xml
Then you can change some stuff but not all
Others are in the smali
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
Cheers bro. Ill try that out right away
Wish me luck
=============
Where is it though can't find it. Where are these kinda file normally stored. And more thing when I open some xmls it's full of question mark signs. What is the correct way of opening these xmls. I opened them with dreamweaver cs5.
Sent from my GT-S5830 using xda premium

Sikorsky96 said:
Cheers bro. Ill try that out right away
Wish me luck
=============
Where is it though can't find it. Where are these kinda file normally stored. And more thing when I open some xmls it's full of question mark signs. What is the correct way of opening these xmls. I opened them with dreamweaver cs5.
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
it should be under the layout folder.

masterex567 said:
it should be under the layout folder.
Click to expand...
Click to collapse
no its in res/xml/settings.xml
first decompile the apk with apktool

oh yup.
y was i daydreaming.

Ok great. Cheers guys. now how do I open these files. I mean if this is a XML then why does it show some weird unreadable characters ? is there a special way for opening XML files in android or to be precise in android apps
Sent from my GT-S5830 using xda premium

Sikorsky96 said:
Ok great. Cheers guys. now how do I open these files. I mean if this is a XML then why does it show some weird unreadable characters ? is there a special way for opening XML files in android or to be precise in android apps
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
Try notepad++, it supports lots of formats and funky sht.

You seem to be a newbie. Try reading some more. You just cannot decompile apks, open/edit them and recompile without errors. I suggest you try basic modding first. Then go for smali.
Just my suggestion though!
___________XDA Premium__________
Don't be a noob. Be a newbie..!!
Details here.
____________________________________

It's a fact which can't be denied but Im absolutely willing to learn I mean this is why I'm here so where would you suggest I shall start from? Any references anything would be appreciated bro.
Cheers!!!
Sent from my GT-S5830 using xda premium

Well as i said. Try basic moding first..
Try to understand apks.
___________XDA Premium__________
Don't be a noob. Be a newbie..!!
Details here.
____________________________________

Related

[SOLVED]CWM script command to modify lcd density?

I use cm9 with 240 lcd density.
The problem is whenever I flash a nightly, I have to modify density manually.
I want to know if I can create a cwm script which I can always flash with the nightly to modify the density.
Please dont advice to use apps to do it like lcd density modder, etc. I am well aware.
Thanks!
EDIT: Succeeded in making it. File attached.
Sent from my GT-N7000 using xda premium
jaiiscool said:
I use cm9 with 240 lcd density.
The problem is whenever I flash a nightly, I have to modify density manually.
I want to know if I can create a cwm script which I can always flash with the nightly to modify the density.
Please dont advice to use apps to do it like lcd density modder, etc. I am well aware.
Thanks!
Sent from my GT-N7000 using xda premium
Click to expand...
Click to collapse
Edit the build.prop from the CM_Nightly.zip and re-zip it.
Boy124 said:
Edit the build.prop from the CM_Nightly.zip and re-zip it.
Click to expand...
Click to collapse
I am aware of that but as I mentioned.....i need the cwm command and not some work around...
But thanks anyway
Sent from my GT-N7000 using xda premium
Look into creating a flashable zip file. Also look into adding code to delete old line and insert new line in buildprop.
Shouldnt be to hard. But thats easily spoken. Its to difficult for me.
Sent from my GT-N7000 using Tapatalk 2
baz77 said:
Look into creating a flashable zip file. Also look into adding code to delete old line and insert new line in buildprop.
Shouldnt be to hard. But thats easily spoken. Its to difficult for me.
Sent from my GT-N7000 using Tapatalk 2
Click to expand...
Click to collapse
That is what I am searching for, but did not find it anywhere and ended up posting it here.
Sent from my GT-N7000 using xda premium
jaiiscool said:
I am aware of that but as I mentioned.....i need the cwm command and not some work around...
But thanks anyway
Sent from my GT-N7000 using xda premium
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=17594598&postcount=30
success
Finally figured it out.
I had to use a UNIX shell script to accomplish it, but it is done.....yay!!!!
jaiiscool said:
Finally figured it out.
I had to use a UNIX shell script to accomplish it, but it is done.....yay!!!!
Click to expand...
Click to collapse
Awesome, can you share in developer section
Sent from my GT-N7000 using Tapatalk 2
baz77 said:
Awesome, can you share in developer section
Sent from my GT-N7000 using Tapatalk 2
Click to expand...
Click to collapse
Sure!
Sent from my GT-N7000 using xda premium
baz77 said:
Awesome, can you share in developer section
Sent from my GT-N7000 using Tapatalk 2
Click to expand...
Click to collapse
File attached in first post.
Moderator please move this thread to dev section!
will this work for my nexus 5? Does the lcd.sh go in the init.d folder?

How to change text below the toggle buttons

i have the 15 toggle bar for the note n7000... but the text below them are too big.. can anyone tell me how to change them?
Hey anyone.. No replies yes.... Hmmmm..
I know that it's in the values folder.... String. Xml.... But when I edit the file and recompile the framework... The phone won't boot.
Sent from my GT-N7000 using xda premium
my question is add another language for title icon (i.e. italian) or change the title icon properly (i.e. flash light to flashlight).
i decompiled lidroid-res.apk add values-it and edit strings.xml, recompiled , put the new lidroid-res.apk into zip for cwm,
installed the zip via cwm, reboot but error ...
one week always error...
can someone help us?
Hey Devs.. please give us a hint of how to recompile the -res.apk file cuz we not getting any success.. i have been trying to get this done.. but failing every time... ...
You can try to recompile it, use and learn the tutorial on ApkTool (credits to memnoc) from this link -> http://forum.xda-developers.com/showthread.php?t=1511730
letters_to_cleo said:
You can try to recompile it, use and learn the tutorial on ApkTool (credits to memnoc) from this link -> http://forum.xda-developers.com/showthread.php?t=1511730
Click to expand...
Click to collapse
Thanks for ur response... but i seem to have used all the apktools available... i can recompile the "-res.apk" but when i put it back to \system\framework ... the UI FCs and the notification bar doesnot load.
unfortunately od has stopped. >> is the message i get when i put the modified "-res.apk".
i have noticed one thing that the recompiled apk doesnot have META-INF folder... although i tried to copy it and gave a try but still no go...
what i am trying to do is using a themed apk like lidroid or crikelos res .. decompile .. change some text under the toggle buttons ...
what am i doing wrong... ?
hmm... have you tried setting back the permissions on your modified -res.apk in /system/framework? Mounting it before hand?
If you have, you may indeed try to ask some devs or someone who knows their way in recompiling apks as this is a sensitive matter to touch with and I'm moderately more on contributing stuffs rather than delving into the internal programmings on the android ecosystem.
hmmm.. i have changed permissions as well still... Thanks for taking the time out
Sent from my GT-N7000 using xda premium
Go to apkyool.yml
Edit with notepad++
And below
-1
Add -2
So it would look like
-1
-2
Then compile it lidroid-res again
Also make sure you have twframework-res.apk
And framework-res.apk installed
Sent from my GT-S5830 using xda premium
nokiamodeln91 said:
hmmm.. i have changed permissions as well still... Thanks for taking the time out
Sent from my GT-N7000 using xda premium
Click to expand...
Click to collapse
No problems bud.
Hope somebody can take notice on your issue and give you a lending hand on it.
:victory:
---------- Post added at 10:08 PM ---------- Previous post was at 10:06 PM ----------
nokiamodeln91 said:
hmmm.. i have changed permissions as well still... Thanks for taking the time out
Sent from my GT-N7000 using xda premium
Click to expand...
Click to collapse
CoolCatGetHome said:
Go to apkyool.yml
Edit with notepad++
And below
-1
Add -2
So it would look like
-1
-2
Then compile it lidroid-res again
Also make sure you have twframework-res.apk
And framework-res.apk installed
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
Well there you go.. Cheers and Kudos to CoolCat on this :good:
CoolCatGetHome said:
Go to apkyool.yml
Edit with notepad++
And below
-1
Add -2
So it would look like
-1
-2
Then compile it lidroid-res again
Also make sure you have twframework-res.apk
And framework-res.apk installed
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
do we have to sign the lidroid again?
Sent from my GT-N7000 using xda premium
nokiamodeln91 said:
do we have to sign the lidroid again?
Sent from my GT-N7000 using xda premium
Click to expand...
Click to collapse
Only sign lidroid if you have signed every apk in your rom
I normally do this
Decompile apk
Make changes
Compile apk
Go to original apk
Press right
7-zip
Open as archive
Delete res
Delete resources.arsc
Leave the 7-zip archive open
Go to
The decompiled folder
Go to build/apk
Copy all except androidmanifest.xml to the archive
Then its done you have an apk
Sent from my GT-S5830 using xda premium
CoolCatGetHome said:
Only sign lidroid if you have signed every apk in your rom
I normally do this
Decompile apk
Make changes
Compile apk
Go to original apk
Press right
7-zip
Open as archive
Delete res
Delete resources.arsc
Leave the 7-zip archive open
Go to
The decompiled folder
Go to build/apk
Copy all except androidmanifest.xml to the archive
Then its done you have an apk
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
OMG....!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! It actually worked....
Oh CoolCatGetHome... where were u till today.... i cant thank u enof....
nokiamodeln91 said:
OMG....!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! It actually worked....
Oh CoolCatGetHome... where were u till today.... i cant thank u enof....
Click to expand...
Click to collapse
Xd i had same problem before
But after some experimenting it worked
I self never sign apks except i have urooted device and want to install apps manual like custom launchers
Sent from my GT-S5830 using xda premium
CoolCatGetHome infinite thanks
you saved me from sleepless nights looking for the solution
again thanks
CoolCatGetHome said:
Xd i had same problem before
But after some experimenting it worked
I self never sign apks except i have urooted device and want to install apps manual like custom launchers
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
hey cool cat get home.... another thing.... the app speed test. net.. As u see does not fill the screen... After decompiling.. I changed some dimensions in xml.. wen recompiling the apps do not install.. y is dat..
Sent from my GT-N7000 using xda premium
nokiamodeln91 said:
hey cool cat get home.... another thing.... the app speed test. net.. As u see does not fill the screen... After decompiling.. I changed some dimensions in xml.. wen recompiling the apps do not install.. y is dat..
Sent from my GT-N7000 using xda premium
Click to expand...
Click to collapse
U n eed to sign the apk to install manually
Thats the only time i sign apks
Sent from my GT-S5830 using xda premium
CoolCatGetHome said:
U n eed to sign the apk to install manually
Thats the only time i sign apks
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
so this is wat i do, correct me where i go wrong plz
1 decomiple app..
2. change the dimen.xml
3. recomile app
4. open the original app using 7z
5. go to the build/apk folder
6. copy the res folder and the .asrc file to the opened apk.
7. sign the apk
there is a classes.dex file as well... do i change it or do i keep the original
in this as well do i have to edit the "apkyool.yml" as this seems to be isframework=false
nokiamodeln91 said:
in this as well do i have to edit the "apkyool.yml" as this seems to be isframework=false
Click to expand...
Click to collapse
No that apk doesnt need to have that apktool.yml edit
Only lidroid needs it
But u need to sig it with
Android manager
Or apkmanager
Etc
Sent from my GT-S5830 using xda premium

[Q] Help adding menus to Setting app

Hello,
I've been trying to add a section to Settings, but whenever I recompile the app and push, setting permissions, it to my phone, my device will say "App not installed". I've just added a few lines to settings.xml, and then stated the string on values/strings.xml. It gives no error when recompiling, am I doing something wrong?
Thanks in advance.
ImSoBored said:
Hello,
I've been trying to add a section to Settings, but whenever I recompile the app and push, setting permissions, it to my phone, my device will say "App not installed". I've just added a few lines to settings.xml, and then stated the string on values/strings.xml. It gives no error when recompiling, am I doing something wrong?
Thanks in advance.
Click to expand...
Click to collapse
You have to sign the apk coz android won't allow unsigned apk to be the system app. Use signapk for signing the apk file. Its very common tool for signing u can find it in the forums or just Google it.
Sent from my GT-S5830 using xda premium
BhawaniSingh said:
You have to sign the apk coz android won't allow unsigned apk to be the system app. Use signapk for signing the apk file. Its very common tool for signing u can find it in the forums or just Google it.
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
Thanks, but it didn't work. I thought system apps didn't have to be signed unless AndroidManifest was touched...
That true
To add links to mai settings.xml
Make sure the packagenames are correct of the apk you want to link in the settings
An also add proper strings and icon resources
Sent from my GT-S5830 using xda premium
DeadSp1d3r said:
That true
To add links to mai settings.xml
Make sure the packagenames are correct of the apk you want to link in the settings
An also add proper strings and icon resources
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
With that's true, you mean signing the apk? I tried to sign it still, but still no luck. Thanks
ImSoBored said:
With that's true, you mean signing the apk? I tried to sign it still, but still no luck. Thanks
Click to expand...
Click to collapse
No sign apk
Did u replaced your res folder of compiled apk !
Sent from my GT-S5830 using xda premium

Editing systemui.apk

I decompiled systemui.apk using apk manager . ,added some smali's and edited xmls. Now I am going to recompile it. Do I need do delete the smali's and xmls from keep folder or the recourses file.?? Also after compilation it shows unsignedsystemui.apk if I sign it using 12 option it gives error please help
Note- don't post any links of tutorials as I have checked dem
Would really thankful
Sent from my GT-S5570 using xda premium
arpitkh96 said:
I decompiled systemui.apk using apk manager . ,added some smali's and edited xmls. Now I am going to recompile it. Do I need do delete the smali's and xmls from keep folder or the recourses file.?? Also after compilation it shows unsignedsystemui.apk if I sign it using 12 option it gives error please help
Note- don't post any links of tutorials as I have checked dem
Would really thankful
Sent from my GT-S5570 using xda premium
Click to expand...
Click to collapse
Not so expert in this but maybe this question solved could help you
http://forum.xda-developers.com/showthread.php?t=1852321
It didnt
Sent from my GT-S5570 using xda premium
arpitkh96 said:
It didnt
Sent from my GT-S5570 using xda premium
Click to expand...
Click to collapse
The keep folder contains the stock files unchanged..So if you changed a smali in your project folder you'll have to delete the classes.dex in the keep folder,if you changed xml you'll have to delete the resources.arsc in the keep folder..

How to change the title bar or actionbar ?

Can anyone describe which PNG needs to be edited to change the action bar (not the status bar) the bar which is blue in tw and shows my files heading when we open my files...
sent from by speedster s advanz
amitnv said:
Can anyone describe which PNG needs to be edited to change the action bar (not the status bar) the bar which is blue in tw and shows my files heading when we open my files...
sent from by speedster s advanz
Click to expand...
Click to collapse
it might be, and I am not totally sure, the tw_quickpanel_top_bg.png in the res/drawable-hdpi folder of your systemui.apk
bobfrantic said:
it might be, and I am not totally sure, the tw_quickpanel_top_bg.png in the res/drawable-hdpi folder of your systemui.apk
Click to expand...
Click to collapse
Will the changes be applied to the whole OS I mean the theme of other apps like root explorer will also change or what ?
Because root explorer uses the default theme of android it looks different on different ROMS
sent from by speedster s advanz
amitnv said:
Will the changes be applied to the whole OS I mean the theme of other apps like root explorer will also change or what ?
Because root explorer uses the default theme of android it looks different on different ROMS
sent from by speedster s advanz
Click to expand...
Click to collapse
I think that while you use tw, it will be the same for apps like root explorer, my files and so on. some of the roms are themed so that may be why it looks different. can't really say as I prefer just plain stock, and even with holo launcher hd it uses the tw colors when opening apps.
bobfrantic said:
I think that while you use tw, it will be the same for apps like root explorer, my files and so on. some of the roms are themed so that may be why it looks different. can't really say as I prefer just plain stock, and even with holo launcher hd it uses the tw colors when opening apps.
Click to expand...
Click to collapse
That was useful
Sent from my GT-I9070 using xda premium
Yesterday I modified secphone images .pngs but even after replacing the modified apk with the one in system/app/ nothing changed can anyone describe why ? Should I theme the sec contact apk also ?
Or is it necessary to decompile the apk even for editing .pngs ? When I extract the apk I can see the changes made but not applied ?can anybody help ? If yes then I would be able to make a nice secphone ..
Sent from my GT-I9070 using xda premium
amitnv said:
Yesterday I modified secphone images .pngs but even after replacing the modified apk with the one in system/app/ nothing changed can anyone describe why ? Should I theme the sec contact apk also ?
Or is it necessary to decompile the apk even for editing .pngs ? When I extract the apk I can see the changes made but not applied ?can anybody help ? If yes then I would be able to make a nice secphone ..
Sent from my GT-I9070 using xda premium
Click to expand...
Click to collapse
Secphone is the phone during call. If you want to change how the app looks then you should edit the SecContacts
Sent from my GT-I9070 using xda premium
Abhinandh Ajay said:
Secphone is the phone during call. If you want to change how the app looks then you should edit the SecContacts
Sent from my GT-I9070 using xda premium
Click to expand...
Click to collapse
I'll try ..but the thing is I only changed the dailer colour from blue to orange and it didn't show up I changed each and every where the colour tell me where I've gone wrong after editing and placing my files ? Should I compulsorily make a flashable zip like the one I made for music player ? Because replacing system apk didn't help....
Sent from my GT-I9070 using xda premium
amitnv said:
I'll try ..but the thing is I only changed the dailer colour from blue to orange and it didn't show up I changed each and every where the colour tell me where I've gone wrong after editing and placing my files ? Should I compulsorily make a flashable zip like the one I made for music player ? Because replacing system apk didn't help....
Sent from my GT-I9070 using xda premium
Click to expand...
Click to collapse
Since you edited the SecPhone.apk check the in-call Dailer. And you don't have to create a flashable zip, you can just push file to /system
In call_dailer_press.9.PNG refers to the pressed button and in call_keypad_BG_01.PNG refers to the keypad I've edited only the later one but changes just don't show up this is the first time I've encountered such an error...
Sent from my GT-I9070 using xda premium
amitnv said:
In call_dailer_press.9.PNG refers to the pressed button and in call_keypad_BG_01.PNG refers to the keypad I've edited only the later one but changes just don't show up this is the first time I've encountered such an error...
Sent from my GT-I9070 using xda premium
Click to expand...
Click to collapse
You should do that in SecContacts.apk
Sent from my GT-I9070 using Tapatalk 4 Beta
Will try..
Sent from my GT-I9070 using xda premium

Categories

Resources