[Q] Getting ro.board.platform - Java for Android App Development

Hi.
Is there anyway I can get the "ro.board.platform" from the build.prop or anywhere else without accessing root and SuperUser ?
If yes, How can I do it ?
Thanks in advanced.

I'm not sure if this is exactly what you are looking for, but you can retrieve many values from the "android.Build" Class. I used these and they worked out rather well.
Code:
devManufacturer = android.os.Build.MANUFACTURER;
devModel = android.os.Build.MODEL;
devHardware = android.os.Build.HARDWARE;
devBoard = android.os.Build.BOARD;
devBootLoader = android.os.Build.BOOTLOADER;
devDeviceName = android.os.Build.DEVICE;
devBrand = android.os.Build.BRAND;
There are many more included, but I think you get the point. Good luck and happy coding
If this is not what you're looking for, my apologies. I will try to help as much as I can.

MattMatt0240 said:
I'm not sure if this is exactly what you are looking for, but you can retrieve many values from the "android.Build" Class. I used these and they worked out rather well.
Code:
devManufacturer = android.os.Build.MANUFACTURER;
devModel = android.os.Build.MODEL;
devHardware = android.os.Build.HARDWARE;
devBoard = android.os.Build.BOARD;
devBootLoader = android.os.Build.BOOTLOADER;
devDeviceName = android.os.Build.DEVICE;
devBrand = android.os.Build.BRAND;
There are many more included, but I think you get the point. Good luck and happy coding
If this is not what you're looking for, my apologies. I will try to help as much as I can.
Click to expand...
Click to collapse
Thank you.
But the build class contains things with thid format in build.prop : "ro.build.something" and as I mentioned I want to access the "ro.board.platform", which is not available in the build class.
Anyway, thank you.
​

torpedo mohammadi said:
Thank you.
But the build class contains things with thid format in build.prop : "ro.build.something" and as I mentioned I want to access the "ro.board.platform", which is not available in the build class.
Anyway, thank you.
​
Click to expand...
Click to collapse
Maybe this will help, you should be able to read (StringBuffer I believe should do the trick) but not write. Sorry for my lack of knowledge, I'm not very familiar with reading files in Android.
http://stackoverflow.com/questions/9937099/how-to-get-the-build-prop-values

Retrieved the data using the snippet described here : http://forum.xda-developers.com/showthread.php?p=43890821#post43890821
Many thanks.

Related

Help me to compile this open source project :)

i was looking around for open source vnc android applications to study from ( i'm a newbie at android) and found bVNC , but i'm unable to compile it and run , please help me regarding it
if possible can you guys please check it on your system whether it compiles and runs (i.e it has no code error) so that i will look for another to study from instead of not knowing why its not compiling .
followed the build method written on page but still a lot of errors
here's the link :-
https://github.com/iiordanov/bVNC
also any bangalorean android developers here ? can you give 1 hour of your personal time so that we can meet ? anyone happy to help for just 1 hour ?
Thanks !!
rajeshjsl said:
i was looking around for open source vnc android applications to study from ( i'm a newbie at android) and found bVNC , but i'm unable to compile it and run , please help me regarding it
if possible can you guys please check it on your system whether it compiles and runs (i.e it has no code error) so that i will look for another to study from instead of not knowing why its not compiling .
followed the build method written on page but still a lot of errors
here's the link :-
https://github.com/iiordanov/bVNC
also any bangalorean android developers here ? can you give 1 hour of your personal time so that we can meet ? anyone happy to help for just 1 hour ?
Thanks !!
Click to expand...
Click to collapse
So you have added these libs ( ZoomerWithKeys and PubkeyGenerator) correctly?
nikwen said:
So you have added these libs ( ZoomerWithKeys and PubkeyGenerator) correctly?
Click to expand...
Click to collapse
yep , can't you please just check it by yourself , it takes 2 minutes
Thanks !
rajeshjsl said:
yep , can't you please just check it by yourself , it takes 2 minutes
Thanks !
Click to expand...
Click to collapse
Will try it later.
EDIT:
1. Install sqlitegen plugin into Eclipse from:
http://code.google.com/p/sqlitegen/
Click to expand...
Click to collapse
Did you do that?
Check your installation.
nikwen said:
Will try it later.
EDIT:
Did you do that?
Check your installation.
Click to expand...
Click to collapse
yes bro ! i told i did those things
sqlite annotation processing is ticked
I have tried and I have not got it to work yet. However, I found a tutorial on the web to fix it: http://code.google.com/p/android-vnc-viewer/issues/detail?id=282
Try it and report. It has not been working for me yet. (It is for androidVNC as your one seems to be a fork of AndroidVNC.)
If you still cannot get it to work, contact the developer of the programm. He should be able to help you.
nikwen said:
I have tried and I have not got it to work yet. However, I found a tutorial on the web to fix it: http://code.google.com/p/android-vnc-viewer/issues/detail?id=282
Try it and report. It has not been working for me yet. (It is for androidVNC as your one seems to be a fork of AndroidVNC.)
If you still cannot get it to work, contact the developer of the programm. He should be able to help you.
Click to expand...
Click to collapse
thanks a lot !!
please give another 2 mins of your time and see if android-vnc-viewer compiles and works on your eclipse ..
i will be higly obliged
rajeshjsl said:
thanks a lot !!
please give another 2 mins of your time and see if android-vnc-viewer compiles and works on your eclipse ..
i will be higly obliged
Click to expand...
Click to collapse
I do not think that there is any difference. As far as I have seen, bVNC is a fork of androidVNC. For that reason either both should work or no one.

problem rooting S5369

HI guys, I was looking at this thread http://forum.xda-developers.com/showthread.php?t=2085390 about rooting the S5360 (I have a s5369) but when I try to flash the update included in the thread I get an error, screenshot attached (the error says E:Error in /tmp/sideload/package.zip (status 7) Installation aborted)
Any idea?
Try this one instead, otherwise I will edit the updater-script of your package to make it compatible with your model. I think that you will able to install GT-S5360 ROMs on it, but can you give me technical details about your phone ?
Regards
Hi thank you for that. I tried your link but I don't seem to be able to download anything from there, it's just an empty blank page (not sure if the mega protocol isn't supported or what). If you could put it elsewhere I'll download and try it.
What technical details would you like me to give you? ANdroid version etc? GT-S5369, android 2.3.6, kernel 2.6.35.7
Let me know if you need anything else
thank you for your help
duratto said:
Hi thank you for that. I tried your link but I don't seem to be able to download anything from there, it's just an empty blank page (not sure if the mega protocol isn't supported or what). If you could put it elsewhere I'll download and try it.
What technical details would you like me to give you? ANdroid version etc? GT-S5369, android 2.3.6, kernel 2.6.35.7
Let me know if you need anything else
thank you for your help
Click to expand...
Click to collapse
Here's an another link ! I want some informations about the processor ect .. Just to check if the specs are the same with the GT-S5360 model. You're welcome !
Thanks mate, unfortunately even that link doesn't work, the page times out (tried yesterday and today with same result in different browsers). As for more details, I downloaded CPU-z and took some screenshots, attached, hopefully that will help you, let me know if you need more:
You will able to install normally GT-S5360 roms, they have the same specs. I joined the root access enable ZIP package. If I helped you, don't hesitate to use the little button below or if you need something else tell me !
thanks for the file, but if that's the same as the one found here http://forum.xda-developers.com/showthread.php?t=2085390 then I tried it already and my phone doesn't like it, I posted the error message at the beginning of the thread
duratto said:
thanks for the file, but if that's the same as the one found here http://forum.xda-developers.com/showthread.php?t=2085390 then I tried it already and my phone doesn't like it, I posted the error message at the beginning of the thread
Click to expand...
Click to collapse
Oops sorry ! Here's the fixed one.
Brilliant, thanks. The installation of the new file was successful, no errors and now I have superuser, so presumably the phone is now rooted.
Thanks for your help. In terms of android version, do you know where I can find a list of stable versions I can install? I checked cyanogen mod but I couldn't find my model
thanks
duratto said:
Brilliant, thanks. The installation of the new file was successful, no errors and now I have superuser, so presumably the phone is now rooted.
Thanks for your help. In terms of android version, do you know where I can find a list of stable versions I can install? I checked cyanogen mod but I couldn't find my model
thanks
Click to expand...
Click to collapse
Yes, you're now rooted ! Check the GT-S5360 development subforum and you will find a lot of ROMs, but for CyanogenMod, every ported version (7,9,11) has its specific bugs and you will need to choose the one which suits you. If you need any help, just mention me on your post ! Regards.
Fab, thank you very much for all your help, much appreciated.
BlackGunZ said:
Yes, you're now rooted ! Check the GT-S5360 development subforum and you will find a lot of ROMs, but for CyanogenMod, every ported version (7,9,11) has its specific bugs and you will need to choose the one which suits you. If you need any help, just mention me on your post ! Regards.
Click to expand...
Click to collapse
duratto said:
Fab, thank you very much for all your help, much appreciated.
Click to expand...
Click to collapse
I'm glad that I helped ! And it's very nice to read your good posts, I will send you a friend request and like this, you will send me PMs if you have a problem !
Have a good day. :good:
Thanks mate!
BlackGunZ said:
I'm glad that I helped ! And it's very nice to read your good posts, I will send you a friend request and like this, you will send me PMs if you have a problem !
Have a good day. :good:
Click to expand...
Click to collapse

How to change the installed RAM info on Lumias

Hi all,
Does anyone know how to change the installed RAM info on Lumias???
I mean by changing registry after devices get hacked
thanhquanctu said:
Hi all,
Does anyone know how to change the installed RAM info on Lumias???
I mean by changing registry after devices get hacked
Click to expand...
Click to collapse
IF your phone has build 10572 yes, yes you can.
If your build is higher, no, you can't.
Thanks,Sznabi
Okay what if I successfully changed it on the appropriate build then I upgrade later will i still have the tweak
Sent from my GT-I9305 using Tapatalk
Tali099 said:
Okay what if I successfully changed it on the appropriate build then I upgrade later will i still have the tweak
Sent from my GT-I9305 using Tapatalk
Click to expand...
Click to collapse
Well I don't think so... I tried with my lumia 630 build 10586, and it doesn't work.
But you still can try it yourself: http://forum.xda-developers.com/windows-10/windows-10-mobile/test-build-10572-t3241559
NOTE: don't change it more than 305!!! An user said that even if you change it to 1024 (I mean 1GB) it will use only 305!!
Leave a like if I helped you.
Thanks, Sznabi
thanhquanctu said:
Hi all,
Does anyone know how to change the installed RAM info on Lumias???
I mean by changing registry after devices get hacked
Click to expand...
Click to collapse
HKLM–>SYSTEM–>Platform–>DeviceTargetingInfo in the registry.
Areas of interest to change are:
PhoneManufacturer=
PhoneHardwareVariant=
Make sure you write down or take a screenshot of original values first. Change to what you need.
I got this from here XDA, and other sites. Do some searching. You'll find what you need. And you mean ROM, right? If not, then my bad. lol. :good:
mabry said:
HKLM–>SYSTEM–>Platform–>DeviceTargetingInfo in the registry.
Areas of interest to change are:
PhoneManufacturer=
PhoneHardwareVariant=
Make sure you write down or take a screenshot of original values first. Change to what you need.
I got this from here XDA, and other sites. Do some searching. You'll find what you need. And you mean ROM, right? If not, then my bad. lol. :good:
Click to expand...
Click to collapse
Thank you for taking time to reply me. Indeed, I am still unable to change the installed RAM info ... I don't exactly which field of registry contains it...
thanhquanctu said:
thank you for taking time to reply me. Indeed, i am still unable to change the installed ram info ... I don't exactly which field of registry contains it...
Click to expand...
Click to collapse
hklm= hkey local machine
help me please
How to get OS backup?
W10 build 10586

how to create a custom kernel ?

I am starting off . just. a noobie wants to create something
Pls help me creating kernel and pls answer the following questions respectively :
1. How much time
2. Which software
3. How much data (Poor guy ;( )
4. Effort required
Pls answer and help me create kernel for tissot
BTW thanks in advance . !
First u have to have a major in computer science, if not what you could do would be so worthless that anyone wouldnt want to even try what you did
Good programming is a job not a joke
Custom rom 243 said:
I am starting off . just. a noobie wants to create something
Pls help me creating kernel and pls answer the following questions respectively :
1. How much time
2. Which software
3. How much data (Poor guy ;( )
4. Effort required
Pls answer and help me create kernel for tissot
BTW thanks in advance . !
Click to expand...
Click to collapse
You should do a search on XDA. There are a lot of guides available!
akrai said:
First u have to have a major in computer science, if not what you could do would be so worthless that anyone wouldnt want to even try what you did
Good programming is a job not a joke
Click to expand...
Click to collapse
Yeaa titally agree with programming is a job not a joke ...

Kernel build config

Hi everyone!
I had such a problem.
I am trying to build a kernel based on this. Just by adding some code to internal .c files.
I am doing this for the first time, I do it according to different video instructions.
My question is that all build videos always use some non-standard build config, which is located in arm/arch64/configs.
I tried to use defconfig, but mostly it gives me errors.
Advise me how to get the right configuration file?
Thanks for the answer!
vendor/kona-perf_defconfig
ppajdek said:
vendor/kona-perf_defconfig
Click to expand...
Click to collapse
Yes friend, thank you. I have already come to this myself.
Now I have another error that I can't figure out how to solve yet.

Categories

Resources