Change the default settings? - Android

Hey, I tried googling and searching this but couldn't find my answer so thought I'd ask.
I just want to change the default settings of a ROM, what files do I edit and what's the basic syntax? I tried looking around Settings.apk but couldn't find the right file, I'm not sure what the structure of the apk is though.
Thanks in advance

Maybe build.prop in /system
Sent from my MB525 using XDA

Can't seem to find the settings in build.prop, just system values. I just want to change what the options under the Settings app are by default in the ROM.

Default Settings are in:
"/frameworks/base/packages/SettingsProvider/res/values/defaults.xml"
See Link
best regards

ExtremeGTX said:
Default Settings are in:
"/frameworks/base/packages/SettingsProvider/res/values/defaults.xml"
See Link
best regards
Click to expand...
Click to collapse
Thanks, that link shows the exact file I'm after. Sadly, however, the HTC ROM I'm working on appears to have a different structure. At least I know the file I'm looking for though, but sadly searching for the name doesn't do much because Ubuntu's search is useless

on Ubuntu i'm using Notepad++ search function (you will need Wine)
it's really awesome, especially with projects like linux kernel, AOSP, etc.

ExtremeGTX said:
on Ubuntu i'm using Notepad++ search function (you will need Wine)
it's really awesome, especially with projects like linux kernel, AOSP, etc.
Click to expand...
Click to collapse
Really? lol
Code:
grep -irn "STRING_TO_FIND" *
A lot of overhead to search eh?

I meant for finding files, not strings within those files, Gedit can do that easily

Hexgore said:
I meant for finding files, not strings within those files, Gedit can do that easily
Click to expand...
Click to collapse
For finding files you can use "find -name <filename>"
Sent from my GT-P1000 using XDA

cdesai said:
For finding files you can use "find -name <filename>"
Sent from my GT-P1000 using XDA
Click to expand...
Click to collapse
I'll try that next time I need it, thanks (just finished my ROM stuff for the day)

Related

AOSP ouptut

Hi all. I have been through the AOSP website and built a basic rom, but I can't find it.
Sorry this is such a basic point - and related to another site - but can anyone point me to the output from the build process. I initiated the build with lunch and then used make to, er, make it, but can't find what I've made.
Thanks
Edit: am I right in thinking the output is a .zip file? If so, think it has failed because there's no .zip anywhere
not in your work folder? (the folder you were in while 'making' the rom) lol
ldrifta said:
not in your work folder? (the folder you were in while 'making' the rom) lol
Click to expand...
Click to collapse
No. I'm assuming it'll be in zip format, and there's nothing like that in the working folder.
Sent from my HTC Desire S using XDA Premium App
If it compiled, you should be able to find it here:
WORKING_DIRECTORY/out/target/product/PRODUCT_NAME/ROM.zip
MongooseHelix said:
If it compiled, you should be able to find it here:
WORKING_DIRECTORY/out/target/product/PRODUCT_NAME/ROM.zip
Click to expand...
Click to collapse
I couldn't find it there, so I'm assuming it didn't compile properly.
Thanks.
Sent from my phone using fingers

How to install multiple instances of the same .apk

I was tinkering and editing an apk, and i managed to compile it and install it fine and it works and is suited to me. So i was wondering ( not too good with xmls ), is it possible to edit the manifest file to rename the apk so I can install multiple copies ( i.e. have the original unmodified one and the modified one at the same time ). I need this for testing purposes. Which lines do i need to edit exactly so the phone doesn't give me the "installing this application will replace the current..." warning, so I can multiple instances of it?
Hope I'm being clear on what exactly I need, any help is appreciated. Cheers
Edit : Just found a post from this guy on a simillar thread that i couldn't find using search
levenum said:
It is not a simple matter.
APKs are managed by package name, not by file name, but you can't simply change the package name in the manifest of a compiled APK.
Even assuming you manage to do it without messing up the file, which is not a simple task, there will still be code referring to the package name, so the app will crash.
Click to expand...
Click to collapse
So is this true ?
Yes it is, I've tried.
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to Q&A
Yeah. Even if you could modify the package name, there could be hardcoded references to this application's intents within the source, which could cause problems when you realise you'll have to also change all of the intent-filters as well.
Its probably more trouble than its worth, as you'll be spending most of your time working out bugs introduced by your editing the APK.
I know its not exactly what you're after but why not try to run the modified app in the emulator on ur computer?
- chris
cttttt said:
Yeah. Even if you could modify the package name, there could be hardcoded references to this application's intents within the source, which could cause problems when you realise you'll have to also change all of the intent-filters as well.
Its probably more trouble than its worth, as you'll be spending most of your time working out bugs introduced by your editing the APK.
I know its not exactly what you're after but why not try to run the modified app in the emulator on ur computer?
- chris
Click to expand...
Click to collapse
Yeah, thought so myself. Used the emu for a while, but It's so damn slow, can't compare it to actual testing. Nvm, I've dropped the matter anyway. Thanks for the reply
Hey try this
http://forum.xda-developers.com/android/software/tool-android-multiple-apk-file-t3516849
akash45 said:
Hey try this
http://forum.xda-developers.com/android/software/tool-android-multiple-apk-file-t3516849
Click to expand...
Click to collapse
Is not that a multiple app apk installer ?
I think op wants a way to install multiple instances of the same APk.
Thanks
prudra said:
Is not that a multiple app apk installer ?
I think op wants a way to install multiple instances of the same APk.
Thanks
Click to expand...
Click to collapse
Okay my bad

[Q] How to set livewallpaper auto enabled on fresh flash of ROM?

Hello web masters and developers,
I've got a noob question...
I've got Jusada's ICSunday Final ROM (all credits to Jusada, and of course I've got his permission to do moding), which I modified for my personal needs.
Until now I've added many options that missed in original release (so it's not barebone anymore) like live wallpapers, torch, RE, ScanMedia, battery drain fix and GPS fix, transparent status bar and modified Acheps CM theme (all credits to their developers, u can find the topics here in Ace forum) etc.
There is couple of things I currently cannot resolve and that drives me crazy.
When I make a fresh install of the ROM, it starts with default wallpaper (which I modified too). But since I often use my favorite livewallpaper, i really need it to be set by default from the system. Now, I've got Livewallpaperspicker.apk installed and working. I can put the livewallpaper's apk file in the /system/app and to be installed by default, but how to make it enabled by default instead of the static default_wallpaper.jpeg inside framework_res.apk?
Where in which file I should enable it bu default?
Thank you for your patience, and also excuse me for my bad english, and If I break the rules with this thread!
Regards!
P.S: Excuse me for the stupid thread title, I couldn't figure out a better one...
Obviously no one knows, or it's too difficult to explain for noobs like me... Sad... I search on Google but either I don't search with correct keyword or there are no such thread/topic/lesson...
Sent from my GT-S5830 using xda premium
Here is all the info you need, figure out yourself
http://forum.xda-developers.com/showpost.php?p=13649923&postcount=2
The line should be without the space (glitch in XDA forums LOL) in com.android.wallpaper
<string name="default_wallpaper_component">com.android.wallpaper/.nexus.NexusWallpaper</string>
not the one u see in the post
tomsons26 said:
Here is all the info you need, figure out yourself
http://forum.xda-developers.com/showpost.php?p=13649923&postcount=2
The line should be without the space (glitch in XDA forums LOL) in com.android.wallpaper
<string name="default_wallpaper_component">com.android.wallpaper/.nexus.NexusWallpaper</string>
not the one u see in the post
Click to expand...
Click to collapse
Thanks for the reply mate, but it seems that there is no "value" folder inside my /res folder. Anyway I searched for strings.xml inside other folders in /res folder but... no success... I'll extract the ROM's package right now and will search inside all folders for strings.xml and will see if such a file exist... Thanks btn pressed for the reply and for the idea
P.S: I've found the file that contains keyword "default_wallpaper_component" in it. It's framework.odex. Now I've got to figure out first how to edit it (with notepad++ there are a bunch of unusable characters) and what exactly to write to enable my favorite_livewallpaper.apk by default. Because it's gonna be normal, pre-installed .apk file (not inside the LiveWallpapers.apk) and I don't know how to call it inside the string... Damned, this is gonna be harder than I thought But... I like to be hard, if there are good people that wont mind to teach me or tip me for the answer)) Thanks
Spoonk said:
Thanks for the reply mate, but it seems that there is no "value" folder inside my /res folder. Anyway I searched for strings.xml inside other folders in /res folder but... no success... I'll extract the ROM's package right now and will search inside all folders for strings.xml and will see if such a file exist... Thanks btn pressed for the reply and for the idea
Click to expand...
Click to collapse
Some ROM modder you are LOL don't even know the basic
You need to decompile the framework-res.apk LOOOL
Good luck
tomsons26 said:
Some ROM modder you are LOL don't even know the basic
You need to decompile the framework-res.apk LOOOL
Good luck
Click to expand...
Click to collapse
I didn't say that I'm modder. I'm modding only Jusada's ICSunday ROM, and only for my personal use... anyhow, thanks for the tips, and replies. No offence, but... sometimes noobs want's to learn too, u know... keep it in mind.
Spoonk said:
I didn't say that I'm modder. I'm modding only Jusada's ICSunday ROM, and only for my personal use... anyhow, thanks for the tips, and replies. No offence, but... sometimes noobs want's to learn too, u know... keep it in mind.
Click to expand...
Click to collapse
How will they learn if everyone is laying info on a gold plate for them and serving them it
Ive never asked WHAT HOW instead i searched and read it and thus learned it myself
tomsons26 said:
How will they learn if everyone is laying info on a gold plate for them and serving them it
Ive never asked WHAT HOW instead i searched and read it and thus learned it myself
Click to expand...
Click to collapse
As I said before, I need just an advise on how to do-that. I don't need someone to "serve it in golden plate" All I needed was a little hint and you gave it to me, that's why I thanked you. And as I said before, I searched Google and xda but with no success - obviously I didn't know how to "ask", wrong keyword etc.
After your hint I remembered that I read somewhere that not all folders are visible with win rar (for example) and they need to be decompiled in a special way. I searched again and found APKTool, now I'll install it (inside Windows folder, i read) and will begin to learn how-to.
That's the way to learn I think?
Spoonk said:
As I said before, I need just an advise on how to do-that. I don't need someone to "serve it in golden plate" All I needed was a little hint and you gave it to me, that's why I thanked you. And as I said before, I searched Google and xda but with no success - obviously I didn't know how to "ask", wrong keyword etc.
After your hint I remembered that I read somewhere that not all folders are visible with win rar (for example) and they need to be decompiled in a special way. I searched again and found APKTool, now I'll install it (inside Windows folder, i read) and will begin to learn how-to.
That's the way to learn I think?
Click to expand...
Click to collapse
Yes, and xdaAutoTool is better and user friendly

[REQ] XML and Esclipse Tutorial

is there any tutorial about xml editing here ? I googled before but nothing
I mean what could be edited and what could be created...
Thanks !
kokzhanjia said:
is there any tutorial about xml editing here ? I googled before but nothing
I mean what could be edited and what could be created...
Thanks !
Click to expand...
Click to collapse
Xmls are usually in simple english with tags like html(though it has no relation with html.I wanted to mean for eg like <preference> </preference> ) if you read the lines you can understand I guess
Sent from my GT-N7000 using xda app-developers app
kokzhanjia said:
is there any tutorial about xml editing here ? I googled before but nothing
I mean what could be edited and what could be created...
Thanks !
Click to expand...
Click to collapse
Or use something like Eclipse where u have also a Visual way to "program" where u drag and drop object in the screen
deniel said:
Or use something like Eclipse where u have also a Visual way to "program" where u drag and drop object in the screen
Click to expand...
Click to collapse
How can i open the program for the visual ? I downloaded it but i cant find anyway...
Sent from my WT19i
kokzhanjia said:
How can i open the program for the visual ? I downloaded it but i cant find anyway...
Sent from my WT19i
Click to expand...
Click to collapse
The visual portion in Eclipse is for layout xml files. If your xml is just a plain xml it will not do anything for you visually.
What exactly are you trying do?
Use Google to find tutorials about xml file creation. A simple defined search such as "android xml tutorial" returns quite a bit of info.
blazingwolf said:
The visual portion in Eclipse is for layout xml files. If your xml is just a plain xml it will not do anything for you visually.
What exactly are you trying do?
Use Google to find tutorials about xml file creation. A simple defined search such as "android xml tutorial" returns quite a bit of info.
Click to expand...
Click to collapse
Well im trying to build a systemui. And i know i can pnly build it from scratch.
But the trouble im facing is i cant even start a project related to what i want to do..
I read and search for tutorials beyond tutorials but still cant find anything anout opening a window to do that.
Just some tutorials stating that what relative layout and linear layouts and some about how to add features related.
Havent looked into videos though. Because what i saw at the first page of google was about how to install adt plugin.
So the main problem im facing now is, could anyone give me some tips or guides to open a window to start my next phase of learning
I hereby support an OFF-Topic thread.
kokzhanjia said:
Well im trying to build a systemui. And i know i can pnly build it from scratch.
But the trouble im facing is i cant even start a project related to what i want to do..
I read and search for tutorials beyond tutorials but still cant find anything anout opening a window to do that.
Just some tutorials stating that what relative layout and linear layouts and some about how to add features related.
Havent looked into videos though. Because what i saw at the first page of google was about how to install adt plugin.
So the main problem im facing now is, could anyone give me some tips or guides to open a window to start my next phase of learning
I hereby support an OFF-Topic thread.
Click to expand...
Click to collapse
I'm going to assume, probably a bad idea (lol), that you mean for a sony device as that is what is in your signature. Why not pull apart an existing systmeui from that device and go through it to see what stuff is doing? Then you can create what you want.
Here is a link for a tutorial about a Sense device but the basic idea is similar for all devices just the procedure might be a little different. http://forum.xda-developers.com/showthread.php?t=1453869
Also, in this forum are threads on decompiling the systemui.apk.
kokzhanjia said:
is there any tutorial about xml editing here ? I googled before but nothing
I mean what could be edited and what could be created...
Thanks !
Click to expand...
Click to collapse
Refer this website (http://www.w3schools.com/xml/) to get a basic idea of XML.
blazingwolf said:
I'm going to assume, probably a bad idea (lol), that you mean for a sony device as that is what is in your signature. Why not pull apart an existing systmeui from that device and go through it to see what stuff is doing? Then you can create what you want.
Here is a link for a tutorial about a Sense device but the basic idea is similar for all devices just the procedure might be a little different. http://forum.xda-developers.com/showthread.php?t=1453869
Also, in this forum are threads on decompiling the systemui.apk.
Click to expand...
Click to collapse
I understand decompiling but i cant even open the window to start a normal xml project in esclipse
I hereby support an OFF-Topic thread.

[Q] How to change the list on press action or bg in Xperia U devices?

Hi guys, I'm fairly new to this but I wanted to know how I can change the list pressed animation style in Xperia U? I mean the white background glow on pressing and holding any list button in menus or tabs or buttons, for example see the following photo (attachments), how the background of the notification has turn to white (fading).
I thought there might be a. 9.png file for that, but when I started searching for in the drawable folder of framework-res.apk, I wasn't able to find it?
So I wanna know that am I searching wrongly or there is no such file and just a xml code which I'm not able to get my hands on because of lack of my knowledge of decompiling the apks. I tried decompiling it by apktool but it won't budge. Also to edit pngs I am using a simple technique (posted by a xda user, sorry for not recalling your name but thanks) that is to just open or extract the roms through 7zip and then just copy them back to the respective apk file. This seems to be working as I was able to create my own lockscreen. So please help me in finding where I'm going wrong.
Thanks in advanced...
You must decompile the framework-res.apk and then, search in /drawable-hdpi folder the image. Its name is notification-normal-bg.9.png or something like that. Edit it with photoshop, and, when you have all that you want, compile the framework-res.apk and change it in your phone. Do a backup before do anything.
Enviado desde mi ST25i usando XDA Premium HD app
Slash137 said:
You must decompile the framework-res.apk and then, search in /drawable-hdpi folder the image. Its name is notification-normal-bg.9.png or something like that. Edit it with photoshop, and, when you have all that you want, compile the framework-res.apk and change it in your phone. Do a backup before do anything.
Enviado desde mi ST25i usando XDA Premium HD app
Click to expand...
Click to collapse
First of all thanks for your advice, but as it turns out the Sony isn't using that file?? And also I just did it with my normal method (described before), so I guess it might be a problem that I'm not decompiling it, but as it turns out I don't know exactly how to. So can you suggest me a Guide or something like that through which I can learn to do it without any problems...?? Because last I time tried it, I got a failed app! Please help, thanks in advance...
divinemamgai said:
First of all thanks for your advice, but as it turns out the Sony isn't using that file?? And also I just did it with my normal method (described before), so I guess it might be a problem that I'm not decompiling it, but as it turns out I don't know exactly how to. So can you suggest me a Guide or something like that through which I can learn to do it without any problems...?? Because last I time tried it, I got a failed app! Please help, thanks in advance...
Click to expand...
Click to collapse
I have successfully figured out the first part of the problem, the sony uses the .png starting with semc... So I just searched for semc_list_.... And found what I was looking for. But still how to decompile system apps in Xperia based devices succesfully..? Please someone..?
divinemamgai said:
I have successfully figured out the first part of the problem, the sony uses the .png starting with semc... So I just searched for semc_list_.... And found what I was looking for. But still how to decompile system apps in Xperia based devices succesfully..? Please someone..?
Click to expand...
Click to collapse
You must use APKTool for decompile. When you got it it's so easy to use.
Slash137 said:
You must use APKTool for decompile. When you got it it's so easy to use.
Click to expand...
Click to collapse
Yeah buddy, it was pretty easy. And I figured out what I was doing wrong before, I wasn't including framework-res.apk and SemcGenericUxp.apk in the tool to help it compile the resources! Thanks.
divinemamgai said:
Yeah buddy, it was pretty easy. And I figured out what I was doing wrong before, I wasn't including framework-res.apk and SemcGenericUxp.apk in the tool to help it compile the resources! Thanks.
Click to expand...
Click to collapse
Can you suggest me a method of porting roms perfectly...?
divinemamgai said:
Can you suggest me a method of porting roms perfectly...?
Click to expand...
Click to collapse
Don't worry GOT.. IT....

Categories

Resources