Re: Custom android.jar with hidden api's exposed.

1,403 views
Skip to first unread message

Ubuntu guy

unread,
Jul 17, 2012, 5:37:38 PM7/17/12
to android-platform
hidden apis have @hide in the javadoc section.
If you have access to the platform build, play with it...

On Jul 17, 2:23 pm, Pratik Prajapati <pratik.prajap...@gmail.com>
wrote:
> Hi All,
>
> Anybody knows, how to generate android.jar with hidden apis?
>
> Regards,
> Pratik

Asi Mugrabi

unread,
Jul 18, 2012, 6:56:56 AM7/18/12
to android-...@googlegroups.com, pratik.p...@gmail.com
@hide apis are a part of android.jar. But only the platform can call to them not applications.
You can delete @hide and build again.

On Wednesday, July 18, 2012 12:44:38 AM UTC+3, Pratik Prajapati wrote:
I am making new platform sdk, from the platform build. I found that android.jar created with sdk build contains only public APIs. I wanted all APIs marked as "@hide" also be part of android.jar. I am trying to undersand the build process to tweak doclava. But not able to find any way to change it.

Any idea which make file calls doclava?

Regards,
Pratik 




--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-platform@googlegroups.com.
To unsubscribe from this group, send email to android-platform+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.


Pratik Prajapati

unread,
Jul 17, 2012, 5:23:07 PM7/17/12
to android-...@googlegroups.com

Pratik Prajapati

unread,
Jul 17, 2012, 5:44:38 PM7/17/12
to android-...@googlegroups.com
I am making new platform sdk, from the platform build. I found that android.jar created with sdk build contains only public APIs. I wanted all APIs marked as "@hide" also be part of android.jar. I am trying to undersand the build process to tweak doclava. But not able to find any way to change it.

Any idea which make file calls doclava?

Regards,
Pratik 




On Tue, Jul 17, 2012 at 2:37 PM, Ubuntu guy <sam...@yahoo.co.in> wrote:
--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.

Jeffrey Brown

unread,
Jul 18, 2012, 4:35:32 AM7/18/12
to android-...@googlegroups.com

Do not use hidden APIs.

Pratik Prajapati

unread,
Jul 18, 2012, 12:30:43 PM7/18/12
to Asi Mugrabi, android-...@googlegroups.com
There are thousands of @hide APIs. Is there any flag of some option in build system to include them all?

--
Regards,
Pratik

Ron M

unread,
Jul 18, 2012, 12:56:19 PM7/18/12
to android-...@googlegroups.com
No.
There is a reason why they are hidden.
>>>> To post to this group, send email to android-...@googlegroups.com.
>>>> To unsubscribe from this group, send email to
>>>> android-platfo...@googlegroups.com.
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/android-platform?hl=en.
>>>>
>>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "android-platform" group.
> To post to this group, send email to android-...@googlegroups.com.
> To unsubscribe from this group, send email to
> android-platfo...@googlegroups.com.

Christopher Tate

unread,
Jul 18, 2012, 2:36:36 PM7/18/12
to android-...@googlegroups.com
Briefly: it is a terrible idea to build a custom SDK that exposes
nonstandard APIs. Everything that is marked @hide is subject to
change between every release, even point releases that do not
introduce a new SDK level. Furthermore, there is *no* guarantee that
two different devices have the same nonstandard APIs available, even
if they are both compliant with the same public API level. If you
build an application against such a custom SDK, that application will
effectively be tied to the specific *device release* corresponding to
the product tree that you used to generate the custom SDK.

... and since the app is only going to work when built for that
specific product, you're far better off just building it directly from
the normal source tree rather than fooling around with custom SDKs.

--
christopher tate
android framework engineer
>>>> To post to this group, send email to android-...@googlegroups.com.
>>>> To unsubscribe from this group, send email to
>>>> android-platfo...@googlegroups.com.
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/android-platform?hl=en.
>>>>
>>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "android-platform" group.
> To post to this group, send email to android-...@googlegroups.com.
> To unsubscribe from this group, send email to
> android-platfo...@googlegroups.com.

Pratik Prajapati

unread,
Jul 18, 2012, 4:41:07 PM7/18/12
to android-...@googlegroups.com
I am going to use the SDK internally only. 

--
Regards,
Pratik
Reply all
Reply to author
Forward
0 new messages